From 5a9c20e8c771294198d667e4632b376a3e738531 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 17 Jul 2024 17:15:25 -0400 Subject: [PATCH 1/2] docs(fab): update icon playgrounds to use addIcons usage --- .../example_component_html.md} | 0 .../fab/basic/angular/example_component_ts.md | 22 +++++++++ static/usage/v7/fab/basic/index.md | 35 ++++++++++++-- .../index_html.md} | 0 .../usage/v7/fab/basic/javascript/index_ts.md | 35 ++++++++++++++ .../example_component_html.md} | 0 .../angular/example_component_ts.md | 22 +++++++++ static/usage/v7/fab/button-sizing/index.md | 35 ++++++++++++-- .../index_html.md} | 0 .../fab/button-sizing/javascript/index_ts.md | 35 ++++++++++++++ .../example_component_html.md} | 0 .../list-side/angular/example_component_ts.md | 22 +++++++++ static/usage/v7/fab/list-side/index.md | 35 ++++++++++++-- .../index_html.md} | 0 .../v7/fab/list-side/javascript/index_ts.md | 35 ++++++++++++++ .../example_component_html.md} | 0 .../angular/example_component_ts.md | 22 +++++++++ static/usage/v7/fab/positioning/index.md | 31 ++++++++++-- .../index_html.md} | 0 .../v7/fab/positioning/javascript/index_ts.md | 37 ++++++++++++++ .../safe-area/angular/example_component_ts.md | 22 +++++++++ static/usage/v7/fab/safe-area/index.md | 18 ++++++- .../index_html.md} | 0 .../v7/fab/safe-area/javascript/index_ts.md | 36 ++++++++++++++ .../example_component_html.md} | 0 .../colors/angular/example_component_ts.md | 22 +++++++++ static/usage/v7/fab/theming/colors/index.md | 35 ++++++++++++-- .../index_html.md} | 0 .../fab/theming/colors/javascript/index_ts.md | 37 ++++++++++++++ .../angular/example_component_ts.md | 22 +++++++++ .../theming/css-custom-properties/index.md | 18 ++++++- .../index_html.md} | 0 .../javascript/index_ts.md | 36 ++++++++++++++ .../angular/example_component_ts.md | 22 +++++++++ .../v7/fab/theming/css-shadow-parts/index.md | 18 ++++++- .../index_html.md} | 0 .../css-shadow-parts/javascript/index_ts.md | 36 ++++++++++++++ .../example_component_html.md} | 0 .../fab/basic/angular/example_component_ts.md | 22 +++++++++ static/usage/v8/fab/basic/index.md | 35 ++++++++++++-- .../index_html.md} | 0 .../usage/v8/fab/basic/javascript/index_ts.md | 46 ++++++++++++++++++ .../angular/example_component_ts.md | 12 +++++ static/usage/v8/fab/before-content/index.md | 17 ++++++- .../index_html.md} | 0 .../fab/before-content/javascript/index_ts.md | 46 ++++++++++++++++++ .../example_component_html.md} | 0 .../angular/example_component_ts.md | 22 +++++++++ static/usage/v8/fab/button-sizing/index.md | 35 ++++++++++++-- .../index_html.md} | 0 .../fab/button-sizing/javascript/index_ts.md | 46 ++++++++++++++++++ .../example_component_html.md} | 0 .../list-side/angular/example_component_ts.md | 22 +++++++++ static/usage/v8/fab/list-side/index.md | 35 ++++++++++++-- .../index_html.md} | 0 .../v8/fab/list-side/javascript/index_ts.md | 46 ++++++++++++++++++ .../example_component_html.md} | 0 .../angular/example_component_ts.md | 22 +++++++++ static/usage/v8/fab/positioning/index.md | 31 ++++++++++-- .../index_html.md} | 0 .../v8/fab/positioning/javascript/index_ts.md | 48 +++++++++++++++++++ .../safe-area/angular/example_component_ts.md | 22 +++++++++ static/usage/v8/fab/safe-area/index.md | 18 ++++++- .../index_html.md} | 0 .../v8/fab/safe-area/javascript/index_ts.md | 47 ++++++++++++++++++ .../example_component_html.md} | 0 .../colors/angular/example_component_ts.md | 22 +++++++++ static/usage/v8/fab/theming/colors/index.md | 35 ++++++++++++-- .../index_html.md} | 0 .../fab/theming/colors/javascript/index_ts.md | 48 +++++++++++++++++++ .../angular/example_component_ts.md | 22 +++++++++ .../theming/css-custom-properties/index.md | 18 ++++++- .../index_html.md} | 0 .../javascript/index_ts.md | 47 ++++++++++++++++++ .../angular/example_component_ts.md | 22 +++++++++ .../v8/fab/theming/css-shadow-parts/index.md | 19 +++++++- .../css-shadow-parts/javascript/index_html.md | 35 ++++++++++++++ .../css-shadow-parts/javascript/index_ts.md | 47 ++++++++++++++++++ 78 files changed, 1531 insertions(+), 44 deletions(-) rename static/usage/v7/fab/basic/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v7/fab/basic/angular/example_component_ts.md rename static/usage/v7/fab/basic/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v7/fab/basic/javascript/index_ts.md rename static/usage/v7/fab/button-sizing/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v7/fab/button-sizing/angular/example_component_ts.md rename static/usage/v7/fab/button-sizing/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v7/fab/button-sizing/javascript/index_ts.md rename static/usage/v7/fab/list-side/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v7/fab/list-side/angular/example_component_ts.md rename static/usage/v7/fab/list-side/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v7/fab/list-side/javascript/index_ts.md rename static/usage/v7/fab/positioning/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v7/fab/positioning/angular/example_component_ts.md rename static/usage/v7/fab/positioning/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v7/fab/positioning/javascript/index_ts.md create mode 100644 static/usage/v7/fab/safe-area/angular/example_component_ts.md rename static/usage/v7/fab/safe-area/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v7/fab/safe-area/javascript/index_ts.md rename static/usage/v7/fab/theming/colors/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v7/fab/theming/colors/angular/example_component_ts.md rename static/usage/v7/fab/theming/colors/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v7/fab/theming/colors/javascript/index_ts.md create mode 100644 static/usage/v7/fab/theming/css-custom-properties/angular/example_component_ts.md rename static/usage/v7/fab/theming/css-custom-properties/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v7/fab/theming/css-custom-properties/javascript/index_ts.md create mode 100644 static/usage/v7/fab/theming/css-shadow-parts/angular/example_component_ts.md rename static/usage/v7/fab/theming/css-shadow-parts/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v7/fab/theming/css-shadow-parts/javascript/index_ts.md rename static/usage/v8/fab/basic/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v8/fab/basic/angular/example_component_ts.md rename static/usage/v8/fab/basic/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/fab/basic/javascript/index_ts.md rename static/usage/v8/fab/before-content/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/fab/before-content/javascript/index_ts.md rename static/usage/v8/fab/button-sizing/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v8/fab/button-sizing/angular/example_component_ts.md rename static/usage/v8/fab/button-sizing/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/fab/button-sizing/javascript/index_ts.md rename static/usage/v8/fab/list-side/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v8/fab/list-side/angular/example_component_ts.md rename static/usage/v8/fab/list-side/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/fab/list-side/javascript/index_ts.md rename static/usage/v8/fab/positioning/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v8/fab/positioning/angular/example_component_ts.md rename static/usage/v8/fab/positioning/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/fab/positioning/javascript/index_ts.md create mode 100644 static/usage/v8/fab/safe-area/angular/example_component_ts.md rename static/usage/v8/fab/safe-area/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/fab/safe-area/javascript/index_ts.md rename static/usage/v8/fab/theming/colors/{angular.md => angular/example_component_html.md} (100%) create mode 100644 static/usage/v8/fab/theming/colors/angular/example_component_ts.md rename static/usage/v8/fab/theming/colors/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/fab/theming/colors/javascript/index_ts.md create mode 100644 static/usage/v8/fab/theming/css-custom-properties/angular/example_component_ts.md rename static/usage/v8/fab/theming/css-custom-properties/{javascript.md => javascript/index_html.md} (100%) create mode 100644 static/usage/v8/fab/theming/css-custom-properties/javascript/index_ts.md create mode 100644 static/usage/v8/fab/theming/css-shadow-parts/angular/example_component_ts.md create mode 100644 static/usage/v8/fab/theming/css-shadow-parts/javascript/index_html.md create mode 100644 static/usage/v8/fab/theming/css-shadow-parts/javascript/index_ts.md diff --git a/static/usage/v7/fab/basic/angular.md b/static/usage/v7/fab/basic/angular/example_component_html.md similarity index 100% rename from static/usage/v7/fab/basic/angular.md rename to static/usage/v7/fab/basic/angular/example_component_html.md diff --git a/static/usage/v7/fab/basic/angular/example_component_ts.md b/static/usage/v7/fab/basic/angular/example_component_ts.md new file mode 100644 index 00000000000..f881c10c61c --- /dev/null +++ b/static/usage/v7/fab/basic/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { add } 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({ add }); + } +} +``` diff --git a/static/usage/v7/fab/basic/index.md b/static/usage/v7/fab/basic/index.md index d1172ccc7c7..c5ff4558a2e 100644 --- a/static/usage/v7/fab/basic/index.md +++ b/static/usage/v7/fab/basic/index.md @@ -1,8 +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/fab/basic/javascript.md b/static/usage/v7/fab/basic/javascript/index_html.md similarity index 100% rename from static/usage/v7/fab/basic/javascript.md rename to static/usage/v7/fab/basic/javascript/index_html.md diff --git a/static/usage/v7/fab/basic/javascript/index_ts.md b/static/usage/v7/fab/basic/javascript/index_ts.md new file mode 100644 index 00000000000..fbfd34ddf0f --- /dev/null +++ b/static/usage/v7/fab/basic/javascript/index_ts.md @@ -0,0 +1,35 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { add } 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+ this icon + * gets mapped to a "add" key. + * Alternatively, developers can do: + * addIcons({ 'add': add }); + */ +addIcons({ add }); + +defineCustomElements(); +``` diff --git a/static/usage/v7/fab/button-sizing/angular.md b/static/usage/v7/fab/button-sizing/angular/example_component_html.md similarity index 100% rename from static/usage/v7/fab/button-sizing/angular.md rename to static/usage/v7/fab/button-sizing/angular/example_component_html.md diff --git a/static/usage/v7/fab/button-sizing/angular/example_component_ts.md b/static/usage/v7/fab/button-sizing/angular/example_component_ts.md new file mode 100644 index 00000000000..403209255c4 --- /dev/null +++ b/static/usage/v7/fab/button-sizing/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { add, colorPalette, document, globe } 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({ add, colorPalette, document, globe }); + } +} +``` diff --git a/static/usage/v7/fab/button-sizing/index.md b/static/usage/v7/fab/button-sizing/index.md index 4c0eeba8100..ab2225085d0 100644 --- a/static/usage/v7/fab/button-sizing/index.md +++ b/static/usage/v7/fab/button-sizing/index.md @@ -1,8 +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/fab/button-sizing/javascript.md b/static/usage/v7/fab/button-sizing/javascript/index_html.md similarity index 100% rename from static/usage/v7/fab/button-sizing/javascript.md rename to static/usage/v7/fab/button-sizing/javascript/index_html.md diff --git a/static/usage/v7/fab/button-sizing/javascript/index_ts.md b/static/usage/v7/fab/button-sizing/javascript/index_ts.md new file mode 100644 index 00000000000..56fc991b335 --- /dev/null +++ b/static/usage/v7/fab/button-sizing/javascript/index_ts.md @@ -0,0 +1,35 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { add, colorPalette, document, globe } 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({ 'add': add, 'color-palette': colorPalette, 'document': document, 'globe': globe }); + */ +addIcons({ add, colorPalette, document, globe }); + +defineCustomElements(); +``` diff --git a/static/usage/v7/fab/list-side/angular.md b/static/usage/v7/fab/list-side/angular/example_component_html.md similarity index 100% rename from static/usage/v7/fab/list-side/angular.md rename to static/usage/v7/fab/list-side/angular/example_component_html.md diff --git a/static/usage/v7/fab/list-side/angular/example_component_ts.md b/static/usage/v7/fab/list-side/angular/example_component_ts.md new file mode 100644 index 00000000000..bc62ad83c78 --- /dev/null +++ b/static/usage/v7/fab/list-side/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { add, chevronBack, chevronDown, chevronForward, chevronUp } 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({ add, chevronBack, chevronDown, chevronForward, chevronUp }); + } +} +``` diff --git a/static/usage/v7/fab/list-side/index.md b/static/usage/v7/fab/list-side/index.md index 23d2789fe3b..873dc1e239a 100644 --- a/static/usage/v7/fab/list-side/index.md +++ b/static/usage/v7/fab/list-side/index.md @@ -1,8 +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/fab/list-side/javascript.md b/static/usage/v7/fab/list-side/javascript/index_html.md similarity index 100% rename from static/usage/v7/fab/list-side/javascript.md rename to static/usage/v7/fab/list-side/javascript/index_html.md diff --git a/static/usage/v7/fab/list-side/javascript/index_ts.md b/static/usage/v7/fab/list-side/javascript/index_ts.md new file mode 100644 index 00000000000..936d323a917 --- /dev/null +++ b/static/usage/v7/fab/list-side/javascript/index_ts.md @@ -0,0 +1,35 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { add, chevronBack, chevronDown, chevronForward, chevronUp } 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({ 'add': add, 'chevron-back': chevronBack, 'chevron-down': chevronDown, 'chevron-forward': chevronForward, 'chevron-up': chevronUp }); + */ +addIcons({ add, chevronBack, chevronDown, chevronForward, chevronUp }); + +defineCustomElements(); +``` diff --git a/static/usage/v7/fab/positioning/angular.md b/static/usage/v7/fab/positioning/angular/example_component_html.md similarity index 100% rename from static/usage/v7/fab/positioning/angular.md rename to static/usage/v7/fab/positioning/angular/example_component_html.md diff --git a/static/usage/v7/fab/positioning/angular/example_component_ts.md b/static/usage/v7/fab/positioning/angular/example_component_ts.md new file mode 100644 index 00000000000..c73b67d5a24 --- /dev/null +++ b/static/usage/v7/fab/positioning/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalette, document, globe } 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({ chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalette, document, globe }); + } +} +``` diff --git a/static/usage/v7/fab/positioning/index.md b/static/usage/v7/fab/positioning/index.md index deb0474e9a5..7146fb2d81d 100644 --- a/static/usage/v7/fab/positioning/index.md +++ b/static/usage/v7/fab/positioning/index.md @@ -1,13 +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'; +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/fab/theming/colors/javascript.md b/static/usage/v7/fab/theming/colors/javascript/index_html.md similarity index 100% rename from static/usage/v7/fab/theming/colors/javascript.md rename to static/usage/v7/fab/theming/colors/javascript/index_html.md diff --git a/static/usage/v7/fab/theming/colors/javascript/index_ts.md b/static/usage/v7/fab/theming/colors/javascript/index_ts.md new file mode 100644 index 00000000000..00521a77402 --- /dev/null +++ b/static/usage/v7/fab/theming/colors/javascript/index_ts.md @@ -0,0 +1,37 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { add, chevronBack, chevronDown, chevronForward, chevronUp } 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({ 'add': add, 'chevron-back': chevronBack, 'chevron-down': chevronDown, 'chevron-forward': chevronForward, + * 'chevron-up': chevronUp }); + */ +addIcons({ add, chevronBack, chevronDown, chevronForward, chevronUp }); + +defineCustomElements(); +``` + diff --git a/static/usage/v7/fab/theming/css-custom-properties/angular/example_component_ts.md b/static/usage/v7/fab/theming/css-custom-properties/angular/example_component_ts.md new file mode 100644 index 00000000000..403209255c4 --- /dev/null +++ b/static/usage/v7/fab/theming/css-custom-properties/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { add, colorPalette, document, globe } 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({ add, colorPalette, document, globe }); + } +} +``` diff --git a/static/usage/v7/fab/theming/css-custom-properties/index.md b/static/usage/v7/fab/theming/css-custom-properties/index.md index 94ebf3e223c..3452b784129 100644 --- a/static/usage/v7/fab/theming/css-custom-properties/index.md +++ b/static/usage/v7/fab/theming/css-custom-properties/index.md @@ -1,6 +1,7 @@ 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_main_tsx from './react/main_tsx.md'; import react_main_css from './react/main_css.md'; @@ -9,11 +10,20 @@ import vue from './vue.md'; import angular_example_component_html from './angular/example_component_html.md'; import angular_example_component_css from './angular/example_component_css.md'; +import angular_example_component_ts from './angular/example_component_ts.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/fab/basic/javascript.md b/static/usage/v8/fab/basic/javascript/index_html.md similarity index 100% rename from static/usage/v8/fab/basic/javascript.md rename to static/usage/v8/fab/basic/javascript/index_html.md diff --git a/static/usage/v8/fab/basic/javascript/index_ts.md b/static/usage/v8/fab/basic/javascript/index_ts.md new file mode 100644 index 00000000000..f226e918a7f --- /dev/null +++ b/static/usage/v8/fab/basic/javascript/index_ts.md @@ -0,0 +1,46 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { add } 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+ this icon + * gets mapped to a "add" key. + * Alternatively, developers can do: + * addIcons({ 'add': add }); + */ +addIcons({ add }); + +defineCustomElements(); +``` diff --git a/static/usage/v8/fab/before-content/angular/example_component_ts.md b/static/usage/v8/fab/before-content/angular/example_component_ts.md index 7a4ee72cdd0..b5b93c657db 100644 --- a/static/usage/v8/fab/before-content/angular/example_component_ts.md +++ b/static/usage/v8/fab/before-content/angular/example_component_ts.md @@ -3,6 +3,9 @@ import { Component, OnInit } from '@angular/core'; import { InfiniteScrollCustomEvent } from '@ionic/angular'; +import { addIcons } from 'ionicons'; +import { add } from 'ionicons/icons'; + @Component({ selector: 'app-example', templateUrl: 'example.component.html', @@ -10,6 +13,15 @@ import { InfiniteScrollCustomEvent } from '@ionic/angular'; export class ExampleComponent implements OnInit { items = []; + 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({ add }); + } + ngOnInit() { this.generateItems(); } diff --git a/static/usage/v8/fab/before-content/index.md b/static/usage/v8/fab/before-content/index.md index 79e37a29118..e9c5e273349 100644 --- a/static/usage/v8/fab/before-content/index.md +++ b/static/usage/v8/fab/before-content/index.md @@ -1,6 +1,8 @@ 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'; @@ -10,7 +12,15 @@ import angular_example_component_ts from './angular/example_component_ts.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/fab/button-sizing/javascript.md b/static/usage/v8/fab/button-sizing/javascript/index_html.md similarity index 100% rename from static/usage/v8/fab/button-sizing/javascript.md rename to static/usage/v8/fab/button-sizing/javascript/index_html.md diff --git a/static/usage/v8/fab/button-sizing/javascript/index_ts.md b/static/usage/v8/fab/button-sizing/javascript/index_ts.md new file mode 100644 index 00000000000..d431cfbcd23 --- /dev/null +++ b/static/usage/v8/fab/button-sizing/javascript/index_ts.md @@ -0,0 +1,46 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { add, colorPalette, document, globe } 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({ 'add': add, 'color-palette': colorPalette, 'document': document, 'globe': globe }); + */ +addIcons({ add, colorPalette, document, globe }); + +defineCustomElements(); +``` diff --git a/static/usage/v8/fab/list-side/angular.md b/static/usage/v8/fab/list-side/angular/example_component_html.md similarity index 100% rename from static/usage/v8/fab/list-side/angular.md rename to static/usage/v8/fab/list-side/angular/example_component_html.md diff --git a/static/usage/v8/fab/list-side/angular/example_component_ts.md b/static/usage/v8/fab/list-side/angular/example_component_ts.md new file mode 100644 index 00000000000..bc62ad83c78 --- /dev/null +++ b/static/usage/v8/fab/list-side/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { add, chevronBack, chevronDown, chevronForward, chevronUp } 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({ add, chevronBack, chevronDown, chevronForward, chevronUp }); + } +} +``` diff --git a/static/usage/v8/fab/list-side/index.md b/static/usage/v8/fab/list-side/index.md index d45287ba1a1..dc7dde49882 100644 --- a/static/usage/v8/fab/list-side/index.md +++ b/static/usage/v8/fab/list-side/index.md @@ -1,8 +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/fab/list-side/javascript.md b/static/usage/v8/fab/list-side/javascript/index_html.md similarity index 100% rename from static/usage/v8/fab/list-side/javascript.md rename to static/usage/v8/fab/list-side/javascript/index_html.md diff --git a/static/usage/v8/fab/list-side/javascript/index_ts.md b/static/usage/v8/fab/list-side/javascript/index_ts.md new file mode 100644 index 00000000000..38ec3e6600b --- /dev/null +++ b/static/usage/v8/fab/list-side/javascript/index_ts.md @@ -0,0 +1,46 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { add, chevronBack, chevronDown, chevronForward, chevronUp } 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({ 'add': add, 'chevron-back': chevronBack, 'chevron-down': chevronDown, 'chevron-forward': chevronForward, 'chevron-up': chevronUp }); + */ +addIcons({ add, chevronBack, chevronDown, chevronForward, chevronUp }); + +defineCustomElements(); +``` diff --git a/static/usage/v8/fab/positioning/angular.md b/static/usage/v8/fab/positioning/angular/example_component_html.md similarity index 100% rename from static/usage/v8/fab/positioning/angular.md rename to static/usage/v8/fab/positioning/angular/example_component_html.md diff --git a/static/usage/v8/fab/positioning/angular/example_component_ts.md b/static/usage/v8/fab/positioning/angular/example_component_ts.md new file mode 100644 index 00000000000..c73b67d5a24 --- /dev/null +++ b/static/usage/v8/fab/positioning/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalette, document, globe } 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({ chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalette, document, globe }); + } +} +``` diff --git a/static/usage/v8/fab/positioning/index.md b/static/usage/v8/fab/positioning/index.md index 6d1252709a6..0c95f0ba457 100644 --- a/static/usage/v8/fab/positioning/index.md +++ b/static/usage/v8/fab/positioning/index.md @@ -1,13 +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'; +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/fab/theming/colors/javascript.md b/static/usage/v8/fab/theming/colors/javascript/index_html.md similarity index 100% rename from static/usage/v8/fab/theming/colors/javascript.md rename to static/usage/v8/fab/theming/colors/javascript/index_html.md diff --git a/static/usage/v8/fab/theming/colors/javascript/index_ts.md b/static/usage/v8/fab/theming/colors/javascript/index_ts.md new file mode 100644 index 00000000000..2cfc32517fa --- /dev/null +++ b/static/usage/v8/fab/theming/colors/javascript/index_ts.md @@ -0,0 +1,48 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { add, chevronBack, chevronDown, chevronForward, chevronUp } 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({ 'add': add, 'chevron-back': chevronBack, 'chevron-down': chevronDown, 'chevron-forward': chevronForward, + * 'chevron-up': chevronUp }); + */ +addIcons({ add, chevronBack, chevronDown, chevronForward, chevronUp }); + +defineCustomElements(); +``` + diff --git a/static/usage/v8/fab/theming/css-custom-properties/angular/example_component_ts.md b/static/usage/v8/fab/theming/css-custom-properties/angular/example_component_ts.md new file mode 100644 index 00000000000..403209255c4 --- /dev/null +++ b/static/usage/v8/fab/theming/css-custom-properties/angular/example_component_ts.md @@ -0,0 +1,22 @@ +```ts +import { Component } from '@angular/core'; + +import { addIcons } from 'ionicons'; +import { add, colorPalette, document, globe } 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({ add, colorPalette, document, globe }); + } +} +``` diff --git a/static/usage/v8/fab/theming/css-custom-properties/index.md b/static/usage/v8/fab/theming/css-custom-properties/index.md index bcf87e5c4a5..21610784934 100644 --- a/static/usage/v8/fab/theming/css-custom-properties/index.md +++ b/static/usage/v8/fab/theming/css-custom-properties/index.md @@ -1,6 +1,7 @@ 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_main_tsx from './react/main_tsx.md'; import react_main_css from './react/main_css.md'; @@ -9,11 +10,20 @@ import vue from './vue.md'; import angular_example_component_html from './angular/example_component_html.md'; import angular_example_component_css from './angular/example_component_css.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + diff --git a/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_html.md b/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_html.md new file mode 100644 index 00000000000..19c1441fe2f --- /dev/null +++ b/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_html.md @@ -0,0 +1,35 @@ +```html + + + + + + + + + + + + + + + + + + +``` diff --git a/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_ts.md b/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_ts.md new file mode 100644 index 00000000000..6923fb4d7cc --- /dev/null +++ b/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_ts.md @@ -0,0 +1,47 @@ +```ts +import { defineCustomElements } from '@ionic/core/loader'; + +import { addIcons } from 'ionicons'; +import { add, colorPalette, document, globe } 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({ 'add': add, 'color-palette': colorPalette, 'document': document, 'globe': globe }); + */ +addIcons({ add, colorPalette, document, globe }); + +defineCustomElements(); +``` + From c290208adeb81e0f926a4dcfccc4f01e87abf482 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Wed, 17 Jul 2024 17:18:07 -0400 Subject: [PATCH 2/2] style: lint --- .../v7/fab/positioning/angular/example_component_ts.md | 9 ++++++++- static/usage/v7/fab/positioning/javascript/index_ts.md | 10 ++++++++-- static/usage/v7/fab/safe-area/javascript/index_ts.md | 1 - .../usage/v7/fab/theming/colors/javascript/index_ts.md | 1 - .../css-custom-properties/javascript/index_ts.md | 1 - .../theming/css-shadow-parts/javascript/index_ts.md | 1 - .../v8/fab/positioning/angular/example_component_ts.md | 9 ++++++++- static/usage/v8/fab/positioning/javascript/index_ts.md | 10 ++++++++-- static/usage/v8/fab/safe-area/javascript/index_ts.md | 1 - .../usage/v8/fab/theming/colors/javascript/index_ts.md | 1 - .../css-custom-properties/javascript/index_ts.md | 1 - static/usage/v8/fab/theming/css-shadow-parts/index.md | 1 - .../theming/css-shadow-parts/javascript/index_ts.md | 1 - 13 files changed, 32 insertions(+), 15 deletions(-) diff --git a/static/usage/v7/fab/positioning/angular/example_component_ts.md b/static/usage/v7/fab/positioning/angular/example_component_ts.md index c73b67d5a24..4fed5b64b8a 100644 --- a/static/usage/v7/fab/positioning/angular/example_component_ts.md +++ b/static/usage/v7/fab/positioning/angular/example_component_ts.md @@ -2,7 +2,14 @@ import { Component } from '@angular/core'; import { addIcons } from 'ionicons'; -import { chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalette, document, globe } from 'ionicons/icons'; +import { + chevronDownCircle, + chevronForwardCircle, + chevronUpCircle, + colorPalette, + document, + globe, +} from 'ionicons/icons'; @Component({ selector: 'app-example', diff --git a/static/usage/v7/fab/positioning/javascript/index_ts.md b/static/usage/v7/fab/positioning/javascript/index_ts.md index 51a6d5259c7..a601db098ae 100644 --- a/static/usage/v7/fab/positioning/javascript/index_ts.md +++ b/static/usage/v7/fab/positioning/javascript/index_ts.md @@ -2,7 +2,14 @@ import { defineCustomElements } from '@ionic/core/loader'; import { addIcons } from 'ionicons'; -import { chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalette, document, globe } from 'ionicons/icons'; +import { + chevronDownCircle, + chevronForwardCircle, + chevronUpCircle, + colorPalette, + document, + globe, +} from 'ionicons/icons'; /* Core CSS required for Ionic components to work properly */ import '@ionic/core/css/core.css'; @@ -34,4 +41,3 @@ addIcons({ chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalett defineCustomElements(); ``` - diff --git a/static/usage/v7/fab/safe-area/javascript/index_ts.md b/static/usage/v7/fab/safe-area/javascript/index_ts.md index ce85b11f728..de431404d2d 100644 --- a/static/usage/v7/fab/safe-area/javascript/index_ts.md +++ b/static/usage/v7/fab/safe-area/javascript/index_ts.md @@ -33,4 +33,3 @@ addIcons({ add }); defineCustomElements(); ``` - diff --git a/static/usage/v7/fab/theming/colors/javascript/index_ts.md b/static/usage/v7/fab/theming/colors/javascript/index_ts.md index 00521a77402..d85a0e6c6b4 100644 --- a/static/usage/v7/fab/theming/colors/javascript/index_ts.md +++ b/static/usage/v7/fab/theming/colors/javascript/index_ts.md @@ -34,4 +34,3 @@ addIcons({ add, chevronBack, chevronDown, chevronForward, chevronUp }); defineCustomElements(); ``` - diff --git a/static/usage/v7/fab/theming/css-custom-properties/javascript/index_ts.md b/static/usage/v7/fab/theming/css-custom-properties/javascript/index_ts.md index c7fcc0d1151..56fc991b335 100644 --- a/static/usage/v7/fab/theming/css-custom-properties/javascript/index_ts.md +++ b/static/usage/v7/fab/theming/css-custom-properties/javascript/index_ts.md @@ -33,4 +33,3 @@ addIcons({ add, colorPalette, document, globe }); defineCustomElements(); ``` - diff --git a/static/usage/v7/fab/theming/css-shadow-parts/javascript/index_ts.md b/static/usage/v7/fab/theming/css-shadow-parts/javascript/index_ts.md index c7fcc0d1151..56fc991b335 100644 --- a/static/usage/v7/fab/theming/css-shadow-parts/javascript/index_ts.md +++ b/static/usage/v7/fab/theming/css-shadow-parts/javascript/index_ts.md @@ -33,4 +33,3 @@ addIcons({ add, colorPalette, document, globe }); defineCustomElements(); ``` - diff --git a/static/usage/v8/fab/positioning/angular/example_component_ts.md b/static/usage/v8/fab/positioning/angular/example_component_ts.md index c73b67d5a24..4fed5b64b8a 100644 --- a/static/usage/v8/fab/positioning/angular/example_component_ts.md +++ b/static/usage/v8/fab/positioning/angular/example_component_ts.md @@ -2,7 +2,14 @@ import { Component } from '@angular/core'; import { addIcons } from 'ionicons'; -import { chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalette, document, globe } from 'ionicons/icons'; +import { + chevronDownCircle, + chevronForwardCircle, + chevronUpCircle, + colorPalette, + document, + globe, +} from 'ionicons/icons'; @Component({ selector: 'app-example', diff --git a/static/usage/v8/fab/positioning/javascript/index_ts.md b/static/usage/v8/fab/positioning/javascript/index_ts.md index 27f334f1506..1297bfd3631 100644 --- a/static/usage/v8/fab/positioning/javascript/index_ts.md +++ b/static/usage/v8/fab/positioning/javascript/index_ts.md @@ -2,7 +2,14 @@ import { defineCustomElements } from '@ionic/core/loader'; import { addIcons } from 'ionicons'; -import { chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalette, document, globe } from 'ionicons/icons'; +import { + chevronDownCircle, + chevronForwardCircle, + chevronUpCircle, + colorPalette, + document, + globe, +} from 'ionicons/icons'; /* Core CSS required for Ionic components to work properly */ import '@ionic/core/css/core.css'; @@ -45,4 +52,3 @@ addIcons({ chevronDownCircle, chevronForwardCircle, chevronUpCircle, colorPalett defineCustomElements(); ``` - diff --git a/static/usage/v8/fab/safe-area/javascript/index_ts.md b/static/usage/v8/fab/safe-area/javascript/index_ts.md index da7a93dcfda..0cc844e6ea6 100644 --- a/static/usage/v8/fab/safe-area/javascript/index_ts.md +++ b/static/usage/v8/fab/safe-area/javascript/index_ts.md @@ -44,4 +44,3 @@ addIcons({ add }); defineCustomElements(); ``` - diff --git a/static/usage/v8/fab/theming/colors/javascript/index_ts.md b/static/usage/v8/fab/theming/colors/javascript/index_ts.md index 2cfc32517fa..56f0a7960e5 100644 --- a/static/usage/v8/fab/theming/colors/javascript/index_ts.md +++ b/static/usage/v8/fab/theming/colors/javascript/index_ts.md @@ -45,4 +45,3 @@ addIcons({ add, chevronBack, chevronDown, chevronForward, chevronUp }); defineCustomElements(); ``` - diff --git a/static/usage/v8/fab/theming/css-custom-properties/javascript/index_ts.md b/static/usage/v8/fab/theming/css-custom-properties/javascript/index_ts.md index 6923fb4d7cc..d431cfbcd23 100644 --- a/static/usage/v8/fab/theming/css-custom-properties/javascript/index_ts.md +++ b/static/usage/v8/fab/theming/css-custom-properties/javascript/index_ts.md @@ -44,4 +44,3 @@ addIcons({ add, colorPalette, document, globe }); defineCustomElements(); ``` - diff --git a/static/usage/v8/fab/theming/css-shadow-parts/index.md b/static/usage/v8/fab/theming/css-shadow-parts/index.md index 1bc7fae5435..2f6f9cbb82b 100644 --- a/static/usage/v8/fab/theming/css-shadow-parts/index.md +++ b/static/usage/v8/fab/theming/css-shadow-parts/index.md @@ -44,4 +44,3 @@ import angular_example_component_ts from './angular/example_component_ts.md'; }} src="usage/v8/fab/theming/css-shadow-parts/demo.html" /> - diff --git a/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_ts.md b/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_ts.md index 6923fb4d7cc..d431cfbcd23 100644 --- a/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_ts.md +++ b/static/usage/v8/fab/theming/css-shadow-parts/javascript/index_ts.md @@ -44,4 +44,3 @@ addIcons({ add, colorPalette, document, globe }); defineCustomElements(); ``` -