diff --git a/static/usage/v8/checkbox/migration/index.md b/static/usage/v8/checkbox/migration/index.md new file mode 100644 index 00000000000..acf77957566 --- /dev/null +++ b/static/usage/v8/checkbox/migration/index.md @@ -0,0 +1,188 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +````mdx-code-block + + + +```html + + + + + Checkbox Label + + + + + + Checkbox Label + + + + + + + Checkbox Label + + + + + + Checkbox Label + + + + + + + Checkbox Label + + + + + + Checkbox Label + +``` + + + +```html + + + + + Checkbox Label + + + + + + Checkbox Label + + + + + + + Checkbox Label + + + + + + Checkbox Label + + + + + + + Checkbox Label + + + + + + Checkbox Label + +``` + + + +```tsx +{/* Basic */} + +{/* Before */} + + Checkbox Label + + + +{/* After */} + + Checkbox Label + + +{/* Fixed Labels */} + +{/* Before */} + + Checkbox Label + + + +{/* After */} + + Checkbox Label + + +{/* Checkbox at the start of line, Label at the end of line */} + +{/* Before */} + + Checkbox Label + + + +{/* After */} + + Checkbox Label + +``` + + + +```html + + + + + Checkbox Label + + + + + + Checkbox Label + + + + + + + Checkbox Label + + + + + + Checkbox Label + + + + + + + Checkbox Label + + + + + + Checkbox Label + +``` + + +```` diff --git a/static/usage/v8/input/migration/index.md b/static/usage/v8/input/migration/index.md new file mode 100644 index 00000000000..34e3ccaece5 --- /dev/null +++ b/static/usage/v8/input/migration/index.md @@ -0,0 +1,248 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +````mdx-code-block + + + +```html + + + + + Email: + + + + + + + + + + + + + + Email: + + + + + + + + + + + + + Email: + +
Enter an email
+
Please enter a valid email
+
+ + + + + + +``` +
+ + +```html + + + + + Email: + + + + + + + + + + + + + + Email: + + + + + + + + + + + + + Email: + +
Enter an email
+
Please enter a valid email
+
+ + + + + + +``` +
+ + +```tsx +{/* Label and Label Position */} + +{/* Before */} + + Email: + + + +{/* After */} + + + + + +{/* Fill */} + +{/* Before */} + + Email: + + + +{/* After */} + +{/* Inputs using `fill` should not be placed in IonItem */} + + +{/* Input-specific features on IonItem */} + +{/* Before */} + + Email: + +
Enter an email
+
Please enter a valid email
+
+ +{/* After */} + +{/* + Metadata such as counters and helper text should not + be used when an input is in an item/list. If you need to + provide more context on a input, consider using an IonNote + underneath the IonList. +*/} + + +``` +
+ + +```html + + + + + Email: + + + + + + + + + + + + + + Email: + + + + + + + + + + + + + Email: + +
Enter an email
+
Please enter a valid email
+
+ + + + + + +``` +
+
+```` diff --git a/static/usage/v8/radio/migration/index.md b/static/usage/v8/radio/migration/index.md new file mode 100644 index 00000000000..4c0477f1e4a --- /dev/null +++ b/static/usage/v8/radio/migration/index.md @@ -0,0 +1,188 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +````mdx-code-block + + + +```html + + + + + Radio Label + + + + + + Radio Label + + + + + + + Radio Label + + + + + + Radio Label + + + + + + + Radio Label + + + + + + Radio Label + +``` + + + +```html + + + + + Radio Label + + + + + + Radio Label + + + + + + + Radio Label + + + + + + Radio Label + + + + + + + Radio Label + + + + + + Radio Label + +``` + + + +```tsx +{/* Basic */} + +{/* Before */} + + Radio Label + + + +{/* After */} + + Radio Label + + +{/* Fixed Labels */} + +{/* Before */} + + Radio Label + + + +{/* After */} + + Radio Label + + +{/* Radio at the start of line, Label at the end of line */} + +{/* Before */} + + Radio Label + + + +{/* After */} + + Radio Label + +``` + + + +```html + + + + + Radio Label + + + + + + Radio Label + + + + + + + Radio Label + + + + + + Radio Label + + + + + + + Radio Label + + + + + + Radio Label + +``` + + +```` diff --git a/static/usage/v8/range/migration/index.md b/static/usage/v8/range/migration/index.md new file mode 100644 index 00000000000..4025f91bc31 --- /dev/null +++ b/static/usage/v8/range/migration/index.md @@ -0,0 +1,256 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +````mdx-code-block + + + +```html + + + + + Notifications + + + + + + + + + + + + + Notifications + + + + + + + + + + + + + Notifications + + + + + + + + + + + + + +
Notifications
+
+ +
+ + + + +
Notifications
+
+
+``` +
+ + +```html + + + + + Notifications + + + + + + + + + + + + + Notifications + + + + + + + + + + + + + Notifications + + + + + + + + + + + + + +
Notifications
+
+ +
+ + + + +
Notifications
+
+
+``` +
+ + +```tsx +{/* Basic */} + +{/* Before */} + + Notifications + + + +{/* After */} + + + + +{/* Fixed Labels */} + +{/* Before */} + + Notifications + + + +{/* After */} + + + + +{/* Range at the start of line, Label at the end of line */} + +{/* Before */} + + Notifications + + + +{/* After */} + + + + +{/* Custom HTML label */} + +{/* Before */} + + +
Notifications
+
+ +
+ + + + +
Notifications
+
+
+``` +
+ + +```html + + + + + Notifications + + + + + + + + + + + + + Notifications + + + + + + + + + + + + + Notifications + + + + + + + + + + + + + +
Notifications
+
+ +
+ + + + +
Notifications
+
+
+``` +
+
+```` diff --git a/static/usage/v8/select/migration/index.md b/static/usage/v8/select/migration/index.md new file mode 100644 index 00000000000..daf1a3a2612 --- /dev/null +++ b/static/usage/v8/select/migration/index.md @@ -0,0 +1,140 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +````mdx-code-block + + + +```html + + + + + Favorite Fruit: + ... + + + + + ... + + + + + + + + Favorite Fruit: + ... + + + + + +... +``` + + + +```html + + + + + Favorite Fruit: + ... + + + + + ... + + + + + + + + Favorite Fruit: + ... + + + + + +... +``` + + + +```tsx +{/* Label and Label Position */} + +{/* Before */} + + Favorite Fruit: + ... + + +{/* After */} + + ... + + + +{/* Fill */} + +{/* Before */} + + Favorite Fruit: + ... + + +{/* After */} + +{/* Inputs using `fill` should not be placed in IonItem */} +... +``` + + + +```html + + + + + Favorite Fruit: + ... + + + + + ... + + + + + + + + Favorite Fruit: + ... + + + + + +... +``` + + +```` diff --git a/static/usage/v8/textarea/migration/index.md b/static/usage/v8/textarea/migration/index.md new file mode 100644 index 00000000000..aa820c53b48 --- /dev/null +++ b/static/usage/v8/textarea/migration/index.md @@ -0,0 +1,248 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +````mdx-code-block + + + +```html + + + + + Label: + + + + + + + + + + + + + + Label: + + + + + + + + + + + + + Label: + +
Enter text
+
Please enter text
+
+ + + + + + +``` +
+ + +```html + + + + + Label: + + + + + + + + + + + + + + Label: + + + + + + + + + + + + + Label: + +
Enter text
+
Please enter text
+
+ + + + + + +``` +
+ + +```tsx +{/* Label and Label Position */} + +{/* Before */} + + Label: + + + +{/* After */} + + + + + +{/* Fill */} + +{/* Before */} + + Label: + + + +{/* After */} + +{/* Textareas using `fill` should not be placed in IonItem */} + + +{/* Textarea-specific features on IonItem */} + +{/* Before */} + + Label: + +
Enter text
+
Please enter text
+
+ +{/* After */} + +{/* + Metadata such as counters and helper text should not + be used when a textarea is in an item/list. If you need to + provide more context on a textarea, consider using an IonNote + underneath the IonList. +*/} + + +``` +
+ + +```html + + + + + Label: + + + + + + + + + + + + + + Label: + + + + + + + + + + + + + Label: + +
Enter text
+
Please enter text
+
+ + + + + + +``` +
+
+```` diff --git a/static/usage/v8/toggle/migration/index.md b/static/usage/v8/toggle/migration/index.md new file mode 100644 index 00000000000..a1f855766b8 --- /dev/null +++ b/static/usage/v8/toggle/migration/index.md @@ -0,0 +1,188 @@ +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +````mdx-code-block + + + +```html + + + + + Notifications + + + + + + Notifications + + + + + + + Notifications + + + + + + Notifications + + + + + + + Notifications + + + + + + Notifications + +``` + + + +```html + + + + + Notifications + + + + + + Notifications + + + + + + + Notifications + + + + + + Notifications + + + + + + + Notifications + + + + + + Notifications + +``` + + + +```tsx +{/* Basic */} + +{/* Before */} + + Notifications + + + +{/* After */} + + Notifications + + +{/* Fixed Labels */} + +{/* Before */} + + Notifications + + + +{/* After */} + + Notifications + + +{/* Toggle at the start of line, Label at the end of line */} + +{/* Before */} + + Notifications + + + +{/* After */} + + Notifications + +``` + + + +```html + + + + + Notifications + + + + + + Notifications + + + + + + + Notifications + + + + + + Notifications + + + + + + + Notifications + + + + + + Notifications + +``` + + +````