diff --git a/static/usage/v7/item/buttons/angular.md b/static/usage/v7/item/buttons/angular/example_component_html.md similarity index 100% rename from static/usage/v7/item/buttons/angular.md rename to static/usage/v7/item/buttons/angular/example_component_html.md diff --git a/static/usage/v7/item/buttons/angular/example_component_ts.md b/static/usage/v7/item/buttons/angular/example_component_ts.md new file mode 100644 index 00000000000..5f8f10b788e --- /dev/null +++ b/static/usage/v7/item/buttons/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { home, navigate, star } from 'ionicons/icons'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', + styleUrls: ['example.component.css'], +}) +export class ExampleComponent { + constructor() { + /** + * Any icons you want to use in your application + * can be registered in app.component.ts and then + * referenced by name anywhere in your application. + */ + addIcons({ home, navigate, star }); + } +} +``` diff --git a/static/usage/v7/item/buttons/index.md b/static/usage/v7/item/buttons/index.md index dc0db44f71d..3fb93273ccf 100644 --- a/static/usage/v7/item/buttons/index.md +++ b/static/usage/v7/item/buttons/index.md @@ -1,8 +1,38 @@ import Playground from '@site/src/components/global/Playground'; -import javascript from './javascript.md'; +import javascript_index_html from './javascript/index_html.md'; +import javascript_index_ts from './javascript/index_ts.md'; + import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; - +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v7/item/buttons/javascript.md b/static/usage/v7/item/buttons/javascript/index_html.md similarity index 100% rename from static/usage/v7/item/buttons/javascript.md rename to static/usage/v7/item/buttons/javascript/index_html.md diff --git a/static/usage/v7/item/buttons/javascript/index_ts.md b/static/usage/v7/item/buttons/javascript/index_ts.md new file mode 100644 index 00000000000..d67d2e14567 --- /dev/null +++ b/static/usage/v7/item/buttons/javascript/index_ts.md @@ -0,0 +1,35 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { home, navigate, star } from 'ionicons/icons'; + +/* Core CSS required for Ionic components to work properly */ +import '@ionic/core/css/core.css'; + +/* Basic CSS for apps built with Ionic */ +import '@ionic/core/css/normalize.css'; +import '@ionic/core/css/structure.css'; +import '@ionic/core/css/typography.css'; + +/* Optional CSS utils that can be commented out */ +import '@ionic/core/css/padding.css'; +import '@ionic/core/css/float-elements.css'; +import '@ionic/core/css/text-alignment.css'; +import '@ionic/core/css/text-transformation.css'; +import '@ionic/core/css/flex-utils.css'; +import '@ionic/core/css/display.css'; + +/* Theme variables */ +import './theme/variables.css'; + +/** + * On Ionicons 7.2+ these icons + * get mapped to a kebab-case key. + * Alternatively, developers can do: + * addIcons({ 'home': home, 'navigate': navigate, 'star': star }); + */ +addIcons({ home, navigate, star }); + +defineCustomElements(); +``` diff --git a/static/usage/v7/item/content-types/actions/angular.md b/static/usage/v7/item/content-types/actions/angular/example_component_html.md similarity index 100% rename from static/usage/v7/item/content-types/actions/angular.md rename to static/usage/v7/item/content-types/actions/angular/example_component_html.md diff --git a/static/usage/v7/item/content-types/actions/angular/example_component_ts.md b/static/usage/v7/item/content-types/actions/angular/example_component_ts.md new file mode 100644 index 00000000000..019d31f99f1 --- /dev/null +++ b/static/usage/v7/item/content-types/actions/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { pin, share, trash } from 'ionicons/icons'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', + styleUrls: ['example.component.css'], +}) +export class ExampleComponent { + constructor() { + /** + * Any icons you want to use in your application + * can be registered in app.component.ts and then + * referenced by name anywhere in your application. + */ + addIcons({ pin, share, trash }); + } +} +``` diff --git a/static/usage/v7/item/content-types/actions/index.md b/static/usage/v7/item/content-types/actions/index.md index d2977e414d2..c61c5d0dde8 100644 --- a/static/usage/v7/item/content-types/actions/index.md +++ b/static/usage/v7/item/content-types/actions/index.md @@ -1,17 +1,37 @@ import Playground from '@site/src/components/global/Playground'; -import javascript from './javascript.md'; +import javascript_index_html from './javascript/index_html.md'; +import javascript_index_ts from './javascript/index_ts.md'; + import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; + +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; diff --git a/static/usage/v7/item/content-types/supporting-visuals/javascript.md b/static/usage/v7/item/content-types/supporting-visuals/javascript/index_html.md similarity index 100% rename from static/usage/v7/item/content-types/supporting-visuals/javascript.md rename to static/usage/v7/item/content-types/supporting-visuals/javascript/index_html.md diff --git a/static/usage/v7/item/content-types/supporting-visuals/javascript/index_ts.md b/static/usage/v7/item/content-types/supporting-visuals/javascript/index_ts.md new file mode 100644 index 00000000000..e5b0aeaed3c --- /dev/null +++ b/static/usage/v7/item/content-types/supporting-visuals/javascript/index_ts.md @@ -0,0 +1,35 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { airplane, bluetooth, call, wifi } from 'ionicons/icons'; + +/* Core CSS required for Ionic components to work properly */ +import '@ionic/core/css/core.css'; + +/* Basic CSS for apps built with Ionic */ +import '@ionic/core/css/normalize.css'; +import '@ionic/core/css/structure.css'; +import '@ionic/core/css/typography.css'; + +/* Optional CSS utils that can be commented out */ +import '@ionic/core/css/padding.css'; +import '@ionic/core/css/float-elements.css'; +import '@ionic/core/css/text-alignment.css'; +import '@ionic/core/css/text-transformation.css'; +import '@ionic/core/css/flex-utils.css'; +import '@ionic/core/css/display.css'; + +/* Theme variables */ +import './theme/variables.css'; + +/** + * On Ionicons 7.2+ these icons + * get mapped to a kebab-case key. + * Alternatively, developers can do: + * addIcons({ 'airplane': airplane, 'bluetooth': bluetooth, 'call': call, 'wifi': wifi }); + */ +addIcons({ airplane, bluetooth, call, wifi }); + +defineCustomElements(); +``` diff --git a/static/usage/v7/item/icons/angular.md b/static/usage/v7/item/icons/angular.md deleted file mode 100644 index b81a463e004..00000000000 --- a/static/usage/v7/item/icons/angular.md +++ /dev/null @@ -1,21 +0,0 @@ -```html - - Default Icon - - - - - Large Icon - - - - - Small Icon - - - - - - Default Icon - -``` diff --git a/static/usage/v7/item/icons/demo.html b/static/usage/v7/item/icons/demo.html deleted file mode 100644 index d94d5b8523a..00000000000 --- a/static/usage/v7/item/icons/demo.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - Item - - - - - - - - - - - -
- - Default Icon - - - - - Large Icon - - - - - Small Icon - - - - - - Default Icon - -
-
-
- - diff --git a/static/usage/v7/item/icons/index.md b/static/usage/v7/item/icons/index.md deleted file mode 100644 index 69563c44023..00000000000 --- a/static/usage/v7/item/icons/index.md +++ /dev/null @@ -1,8 +0,0 @@ -import Playground from '@site/src/components/global/Playground'; - -import javascript from './javascript.md'; -import react from './react.md'; -import vue from './vue.md'; -import angular from './angular.md'; - - diff --git a/static/usage/v7/item/icons/javascript.md b/static/usage/v7/item/icons/javascript.md deleted file mode 100644 index b81a463e004..00000000000 --- a/static/usage/v7/item/icons/javascript.md +++ /dev/null @@ -1,21 +0,0 @@ -```html - - Default Icon - - - - - Large Icon - - - - - Small Icon - - - - - - Default Icon - -``` diff --git a/static/usage/v7/item/icons/react.md b/static/usage/v7/item/icons/react.md deleted file mode 100644 index 09496398f7f..00000000000 --- a/static/usage/v7/item/icons/react.md +++ /dev/null @@ -1,32 +0,0 @@ -```tsx -import React from 'react'; -import { IonIcon, IonItem, IonLabel } from '@ionic/react'; -import { informationCircle, star } from 'ionicons/icons'; - -function Example() { - return ( - <> - - Default Icon - - - - - Large Icon - - - - - Small Icon - - - - - - Default Icon - - - ); -} -export default Example; -``` diff --git a/static/usage/v7/item/icons/vue.md b/static/usage/v7/item/icons/vue.md deleted file mode 100644 index a89e5e6aad0..00000000000 --- a/static/usage/v7/item/icons/vue.md +++ /dev/null @@ -1,36 +0,0 @@ -```html - - - -``` diff --git a/static/usage/v7/item/lines/angular.md b/static/usage/v7/item/lines/angular/example_component_html.md similarity index 100% rename from static/usage/v7/item/lines/angular.md rename to static/usage/v7/item/lines/angular/example_component_html.md diff --git a/static/usage/v7/item/lines/angular/example_component_ts.md b/static/usage/v7/item/lines/angular/example_component_ts.md new file mode 100644 index 00000000000..3122a1f730f --- /dev/null +++ b/static/usage/v7/item/lines/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { informationCircle, star } from 'ionicons/icons'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', + styleUrls: ['example.component.css'], +}) +export class ExampleComponent { + constructor() { + /** + * Any icons you want to use in your application + * can be registered in app.component.ts and then + * referenced by name anywhere in your application. + */ + addIcons({ informationCircle, star }); + } +} +``` diff --git a/static/usage/v7/item/lines/index.md b/static/usage/v7/item/lines/index.md index 717465e6906..c23f2ff068d 100644 --- a/static/usage/v7/item/lines/index.md +++ b/static/usage/v7/item/lines/index.md @@ -1,8 +1,38 @@ import Playground from '@site/src/components/global/Playground'; -import javascript from './javascript.md'; +import javascript_index_html from './javascript/index_html.md'; +import javascript_index_ts from './javascript/index_ts.md'; + import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; - +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v7/item/lines/javascript.md b/static/usage/v7/item/lines/javascript/index_html.md similarity index 100% rename from static/usage/v7/item/lines/javascript.md rename to static/usage/v7/item/lines/javascript/index_html.md diff --git a/static/usage/v7/item/lines/javascript/index_ts.md b/static/usage/v7/item/lines/javascript/index_ts.md new file mode 100644 index 00000000000..53de054f22b --- /dev/null +++ b/static/usage/v7/item/lines/javascript/index_ts.md @@ -0,0 +1,35 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { informationCircle, star } from 'ionicons/icons'; + +/* Core CSS required for Ionic components to work properly */ +import '@ionic/core/css/core.css'; + +/* Basic CSS for apps built with Ionic */ +import '@ionic/core/css/normalize.css'; +import '@ionic/core/css/structure.css'; +import '@ionic/core/css/typography.css'; + +/* Optional CSS utils that can be commented out */ +import '@ionic/core/css/padding.css'; +import '@ionic/core/css/float-elements.css'; +import '@ionic/core/css/text-alignment.css'; +import '@ionic/core/css/text-transformation.css'; +import '@ionic/core/css/flex-utils.css'; +import '@ionic/core/css/display.css'; + +/* Theme variables */ +import './theme/variables.css'; + +/** + * On Ionicons 7.2+ these icons + * get mapped to a kebab-case key. + * Alternatively, developers can do: + * addIcons({ 'information-circle': informationCircle, 'star': star }); + */ +addIcons({ informationCircle, star }); + +defineCustomElements(); +``` diff --git a/static/usage/v8/item/buttons/angular.md b/static/usage/v8/item/buttons/angular/example_component_html.md similarity index 100% rename from static/usage/v8/item/buttons/angular.md rename to static/usage/v8/item/buttons/angular/example_component_html.md diff --git a/static/usage/v8/item/buttons/angular/example_component_ts.md b/static/usage/v8/item/buttons/angular/example_component_ts.md new file mode 100644 index 00000000000..5f8f10b788e --- /dev/null +++ b/static/usage/v8/item/buttons/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { home, navigate, star } from 'ionicons/icons'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', + styleUrls: ['example.component.css'], +}) +export class ExampleComponent { + constructor() { + /** + * Any icons you want to use in your application + * can be registered in app.component.ts and then + * referenced by name anywhere in your application. + */ + addIcons({ home, navigate, star }); + } +} +``` diff --git a/static/usage/v8/item/buttons/index.md b/static/usage/v8/item/buttons/index.md index 120b0ef8eb6..d3634a1f0e9 100644 --- a/static/usage/v8/item/buttons/index.md +++ b/static/usage/v8/item/buttons/index.md @@ -1,8 +1,38 @@ import Playground from '@site/src/components/global/Playground'; -import javascript from './javascript.md'; +import javascript_index_html from './javascript/index_html.md'; +import javascript_index_ts from './javascript/index_ts.md'; + import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; - +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v8/item/buttons/javascript.md b/static/usage/v8/item/buttons/javascript/index_html.md similarity index 100% rename from static/usage/v8/item/buttons/javascript.md rename to static/usage/v8/item/buttons/javascript/index_html.md diff --git a/static/usage/v8/item/buttons/javascript/index_ts.md b/static/usage/v8/item/buttons/javascript/index_ts.md new file mode 100644 index 00000000000..995c556b121 --- /dev/null +++ b/static/usage/v8/item/buttons/javascript/index_ts.md @@ -0,0 +1,46 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { home, navigate, star } from 'ionicons/icons'; + +/* Core CSS required for Ionic components to work properly */ +import '@ionic/core/css/core.css'; + +/* Basic CSS for apps built with Ionic */ +import '@ionic/core/css/normalize.css'; +import '@ionic/core/css/structure.css'; +import '@ionic/core/css/typography.css'; + +/* Optional CSS utils that can be commented out */ +import '@ionic/core/css/padding.css'; +import '@ionic/core/css/float-elements.css'; +import '@ionic/core/css/text-alignment.css'; +import '@ionic/core/css/text-transformation.css'; +import '@ionic/core/css/flex-utils.css'; +import '@ionic/core/css/display.css'; + +/** + * Ionic Dark Theme + * ----------------------------------------------------- + * For more information, please see: + * https://ionicframework.com/docs/theming/dark-mode + */ + +// import '@ionic/core/css/palettes/dark.always.css'; +// import '@ionic/core/css/palettes/dark.class.css'; +import '@ionic/core/css/palettes/dark.system.css'; + +/* Theme variables */ +import './theme/variables.css'; + +/** + * On Ionicons 7.2+ these icons + * get mapped to a kebab-case key. + * Alternatively, developers can do: + * addIcons({ 'home': home, 'navigate': navigate, 'star': star }); + */ +addIcons({ home, navigate, star }); + +defineCustomElements(); +``` diff --git a/static/usage/v8/item/content-types/actions/angular.md b/static/usage/v8/item/content-types/actions/angular/example_component_html.md similarity index 100% rename from static/usage/v8/item/content-types/actions/angular.md rename to static/usage/v8/item/content-types/actions/angular/example_component_html.md diff --git a/static/usage/v8/item/content-types/actions/angular/example_component_ts.md b/static/usage/v8/item/content-types/actions/angular/example_component_ts.md new file mode 100644 index 00000000000..019d31f99f1 --- /dev/null +++ b/static/usage/v8/item/content-types/actions/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { pin, share, trash } from 'ionicons/icons'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', + styleUrls: ['example.component.css'], +}) +export class ExampleComponent { + constructor() { + /** + * Any icons you want to use in your application + * can be registered in app.component.ts and then + * referenced by name anywhere in your application. + */ + addIcons({ pin, share, trash }); + } +} +``` diff --git a/static/usage/v8/item/content-types/actions/index.md b/static/usage/v8/item/content-types/actions/index.md index f494aedcedc..21371ed26b1 100644 --- a/static/usage/v8/item/content-types/actions/index.md +++ b/static/usage/v8/item/content-types/actions/index.md @@ -1,17 +1,37 @@ import Playground from '@site/src/components/global/Playground'; -import javascript from './javascript.md'; +import javascript_index_html from './javascript/index_html.md'; +import javascript_index_ts from './javascript/index_ts.md'; + import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; + +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; diff --git a/static/usage/v8/item/content-types/supporting-visuals/javascript.md b/static/usage/v8/item/content-types/supporting-visuals/javascript/index_html.md similarity index 100% rename from static/usage/v8/item/content-types/supporting-visuals/javascript.md rename to static/usage/v8/item/content-types/supporting-visuals/javascript/index_html.md diff --git a/static/usage/v8/item/content-types/supporting-visuals/javascript/index_ts.md b/static/usage/v8/item/content-types/supporting-visuals/javascript/index_ts.md new file mode 100644 index 00000000000..34dbd23294b --- /dev/null +++ b/static/usage/v8/item/content-types/supporting-visuals/javascript/index_ts.md @@ -0,0 +1,46 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { airplane, bluetooth, call, wifi } from 'ionicons/icons'; + +/* Core CSS required for Ionic components to work properly */ +import '@ionic/core/css/core.css'; + +/* Basic CSS for apps built with Ionic */ +import '@ionic/core/css/normalize.css'; +import '@ionic/core/css/structure.css'; +import '@ionic/core/css/typography.css'; + +/* Optional CSS utils that can be commented out */ +import '@ionic/core/css/padding.css'; +import '@ionic/core/css/float-elements.css'; +import '@ionic/core/css/text-alignment.css'; +import '@ionic/core/css/text-transformation.css'; +import '@ionic/core/css/flex-utils.css'; +import '@ionic/core/css/display.css'; + +/** + * Ionic Dark Theme + * ----------------------------------------------------- + * For more information, please see: + * https://ionicframework.com/docs/theming/dark-mode + */ + +// import '@ionic/core/css/palettes/dark.always.css'; +// import '@ionic/core/css/palettes/dark.class.css'; +import '@ionic/core/css/palettes/dark.system.css'; + +/* Theme variables */ +import './theme/variables.css'; + +/** + * On Ionicons 7.2+ these icons + * get mapped to a kebab-case key. + * Alternatively, developers can do: + * addIcons({ 'airplane': airplane, 'bluetooth': bluetooth, 'call': call, 'wifi': wifi }); + */ +addIcons({ airplane, bluetooth, call, wifi }); + +defineCustomElements(); +``` diff --git a/static/usage/v8/item/icons/angular.md b/static/usage/v8/item/icons/angular.md deleted file mode 100644 index b81a463e004..00000000000 --- a/static/usage/v8/item/icons/angular.md +++ /dev/null @@ -1,21 +0,0 @@ -```html - - Default Icon - - - - - Large Icon - - - - - Small Icon - - - - - - Default Icon - -``` diff --git a/static/usage/v8/item/icons/demo.html b/static/usage/v8/item/icons/demo.html deleted file mode 100644 index f2ac9385557..00000000000 --- a/static/usage/v8/item/icons/demo.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - Item - - - - - - - - - - - -
- - Default Icon - - - - - Large Icon - - - - - Small Icon - - - - - - Default Icon - -
-
-
- - diff --git a/static/usage/v8/item/icons/index.md b/static/usage/v8/item/icons/index.md deleted file mode 100644 index 99c1f785775..00000000000 --- a/static/usage/v8/item/icons/index.md +++ /dev/null @@ -1,8 +0,0 @@ -import Playground from '@site/src/components/global/Playground'; - -import javascript from './javascript.md'; -import react from './react.md'; -import vue from './vue.md'; -import angular from './angular.md'; - - diff --git a/static/usage/v8/item/icons/javascript.md b/static/usage/v8/item/icons/javascript.md deleted file mode 100644 index b81a463e004..00000000000 --- a/static/usage/v8/item/icons/javascript.md +++ /dev/null @@ -1,21 +0,0 @@ -```html - - Default Icon - - - - - Large Icon - - - - - Small Icon - - - - - - Default Icon - -``` diff --git a/static/usage/v8/item/icons/react.md b/static/usage/v8/item/icons/react.md deleted file mode 100644 index 09496398f7f..00000000000 --- a/static/usage/v8/item/icons/react.md +++ /dev/null @@ -1,32 +0,0 @@ -```tsx -import React from 'react'; -import { IonIcon, IonItem, IonLabel } from '@ionic/react'; -import { informationCircle, star } from 'ionicons/icons'; - -function Example() { - return ( - <> - - Default Icon - - - - - Large Icon - - - - - Small Icon - - - - - - Default Icon - - - ); -} -export default Example; -``` diff --git a/static/usage/v8/item/icons/vue.md b/static/usage/v8/item/icons/vue.md deleted file mode 100644 index a89e5e6aad0..00000000000 --- a/static/usage/v8/item/icons/vue.md +++ /dev/null @@ -1,36 +0,0 @@ -```html - - - -``` diff --git a/static/usage/v8/item/lines/angular.md b/static/usage/v8/item/lines/angular/example_component_html.md similarity index 100% rename from static/usage/v8/item/lines/angular.md rename to static/usage/v8/item/lines/angular/example_component_html.md diff --git a/static/usage/v8/item/lines/angular/example_component_ts.md b/static/usage/v8/item/lines/angular/example_component_ts.md new file mode 100644 index 00000000000..3122a1f730f --- /dev/null +++ b/static/usage/v8/item/lines/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { informationCircle, star } from 'ionicons/icons'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', + styleUrls: ['example.component.css'], +}) +export class ExampleComponent { + constructor() { + /** + * Any icons you want to use in your application + * can be registered in app.component.ts and then + * referenced by name anywhere in your application. + */ + addIcons({ informationCircle, star }); + } +} +``` diff --git a/static/usage/v8/item/lines/index.md b/static/usage/v8/item/lines/index.md index 0c052ebce97..d62e39eb8e3 100644 --- a/static/usage/v8/item/lines/index.md +++ b/static/usage/v8/item/lines/index.md @@ -1,8 +1,38 @@ import Playground from '@site/src/components/global/Playground'; -import javascript from './javascript.md'; +import javascript_index_html from './javascript/index_html.md'; +import javascript_index_ts from './javascript/index_ts.md'; + import react from './react.md'; import vue from './vue.md'; -import angular from './angular.md'; - +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v8/item/lines/javascript.md b/static/usage/v8/item/lines/javascript/index_html.md similarity index 100% rename from static/usage/v8/item/lines/javascript.md rename to static/usage/v8/item/lines/javascript/index_html.md diff --git a/static/usage/v8/item/lines/javascript/index_ts.md b/static/usage/v8/item/lines/javascript/index_ts.md new file mode 100644 index 00000000000..06906923db4 --- /dev/null +++ b/static/usage/v8/item/lines/javascript/index_ts.md @@ -0,0 +1,46 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { informationCircle, star } from 'ionicons/icons'; + +/* Core CSS required for Ionic components to work properly */ +import '@ionic/core/css/core.css'; + +/* Basic CSS for apps built with Ionic */ +import '@ionic/core/css/normalize.css'; +import '@ionic/core/css/structure.css'; +import '@ionic/core/css/typography.css'; + +/* Optional CSS utils that can be commented out */ +import '@ionic/core/css/padding.css'; +import '@ionic/core/css/float-elements.css'; +import '@ionic/core/css/text-alignment.css'; +import '@ionic/core/css/text-transformation.css'; +import '@ionic/core/css/flex-utils.css'; +import '@ionic/core/css/display.css'; + +/** + * Ionic Dark Theme + * ----------------------------------------------------- + * For more information, please see: + * https://ionicframework.com/docs/theming/dark-mode + */ + +// import '@ionic/core/css/palettes/dark.always.css'; +// import '@ionic/core/css/palettes/dark.class.css'; +import '@ionic/core/css/palettes/dark.system.css'; + +/* Theme variables */ +import './theme/variables.css'; + +/** + * On Ionicons 7.2+ these icons + * get mapped to a kebab-case key. + * Alternatively, developers can do: + * addIcons({ 'information-circle': informationCircle, 'star': star }); + */ +addIcons({ informationCircle, star }); + +defineCustomElements(); +```