@aurodesignsystem-dev/auro-formkit 0.0.0-pr1456.1 → 0.0.0-pr1457.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +10 -10
- package/components/bibtemplate/dist/registered.js +10 -10
- package/components/checkbox/README.md +26 -56
- package/components/checkbox/demo/accessibility.html +48 -0
- package/components/checkbox/demo/accessibility.md +44 -0
- package/components/checkbox/demo/api.html +17 -26
- package/components/checkbox/demo/api.md +0 -396
- package/components/checkbox/demo/api.min.js +2 -2106
- package/components/checkbox/demo/customize.html +51 -0
- package/components/checkbox/demo/customize.md +361 -0
- package/components/checkbox/demo/demo-support.js +60 -0
- package/components/checkbox/demo/demo-support.min.js +55732 -0
- package/components/checkbox/demo/design.html +51 -0
- package/components/checkbox/demo/design.md +149 -0
- package/components/checkbox/demo/getting-started.html +51 -0
- package/components/checkbox/demo/getting-started.md +261 -0
- package/components/checkbox/demo/index.html +17 -21
- package/components/checkbox/demo/index.md +158 -45
- package/components/checkbox/demo/index.min.js +2 -3
- package/components/checkbox/demo/install.md +82 -0
- package/components/checkbox/demo/keyboard-behavior.html +48 -0
- package/components/checkbox/demo/readme.html +10 -18
- package/components/checkbox/demo/readme.md +26 -56
- package/components/checkbox/demo/styles.min.css +1 -0
- package/components/checkbox/demo/styles.scss +1 -0
- package/components/checkbox/demo/voiceover.html +48 -0
- package/components/checkbox/demo/voiceover.md +37 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts +6 -6
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -9
- package/components/checkbox/dist/index.js +2 -3
- package/components/checkbox/dist/registered.js +2 -3
- package/components/combobox/README.md +41 -66
- package/components/combobox/demo/accessibility.html +50 -0
- package/components/combobox/demo/accessibility.md +77 -0
- package/components/combobox/demo/api.html +8 -20
- package/components/combobox/demo/api.md +54 -2334
- package/components/combobox/demo/api.min.js +3 -17971
- package/components/combobox/demo/customize.html +52 -0
- package/components/combobox/demo/customize.js +24 -0
- package/components/combobox/demo/customize.md +1249 -0
- package/components/combobox/demo/customize.min.js +177 -0
- package/components/combobox/demo/demo-support.js +60 -0
- package/components/combobox/demo/demo-support.min.js +55732 -0
- package/components/combobox/demo/design.html +53 -0
- package/components/combobox/demo/design.md +283 -0
- package/components/combobox/demo/getting-started.html +52 -0
- package/components/combobox/demo/getting-started.js +21 -0
- package/components/combobox/demo/getting-started.md +397 -0
- package/components/combobox/demo/getting-started.min.js +12 -0
- package/components/combobox/demo/index.html +16 -22
- package/components/combobox/demo/index.js +3 -2
- package/components/combobox/demo/index.md +298 -188
- package/components/combobox/demo/index.min.js +13 -17956
- package/components/combobox/demo/install.md +77 -0
- package/components/combobox/demo/{keyboardBehavior.html → keyboard-behavior.html} +5 -11
- package/components/combobox/demo/keyboard-behavior.md +276 -0
- package/components/combobox/demo/readme.html +5 -11
- package/components/combobox/demo/readme.md +41 -66
- package/components/combobox/demo/registered.min.js +18095 -0
- package/components/combobox/demo/styles.css +974 -0
- package/components/combobox/demo/styles.min.css +1 -0
- package/components/combobox/demo/styles.scss +1 -0
- package/components/combobox/demo/swap-value.min.js +16 -0
- package/components/combobox/demo/voiceover.html +59 -0
- package/components/combobox/demo/voiceover.md +118 -0
- package/components/combobox/dist/auro-combobox.d.ts +35 -35
- package/components/combobox/dist/index.js +183 -46
- package/components/combobox/dist/registered.js +183 -46
- package/components/counter/README.md +37 -55
- package/components/counter/demo/api.md +745 -813
- package/components/counter/demo/api.min.js +182 -44
- package/components/counter/demo/index.md +28 -32
- package/components/counter/demo/index.min.js +182 -44
- package/components/counter/demo/keyboard-behavior.md +127 -0
- package/components/counter/demo/readme.md +37 -55
- package/components/counter/dist/auro-counter-group.d.ts +2 -2
- package/components/counter/dist/auro-counter.d.ts +10 -10
- package/components/counter/dist/index.js +181 -43
- package/components/counter/dist/registered.js +181 -43
- package/components/datepicker/README.md +23 -51
- package/components/datepicker/demo/accessibility.html +50 -0
- package/components/datepicker/demo/accessibility.md +64 -0
- package/components/datepicker/demo/api.md +0 -1774
- package/components/datepicker/demo/api.min.js +2 -24475
- package/components/datepicker/demo/auro-datepicker.min.js +24613 -0
- package/components/datepicker/demo/customize.html +52 -0
- package/components/datepicker/demo/customize.md +723 -0
- package/components/datepicker/demo/demo-support.js +60 -0
- package/components/datepicker/demo/demo-support.min.js +55732 -0
- package/components/datepicker/demo/design.html +54 -0
- package/components/datepicker/demo/design.md +158 -0
- package/components/datepicker/demo/getting-started.html +52 -0
- package/components/datepicker/demo/getting-started.md +237 -0
- package/components/datepicker/demo/index.html +14 -35
- package/components/datepicker/demo/index.md +201 -152
- package/components/datepicker/demo/index.min.js +1 -24474
- package/components/datepicker/demo/keyboard-behavior.html +12 -33
- package/components/datepicker/demo/readme.md +23 -51
- package/components/datepicker/demo/styles.min.css +1 -0
- package/components/datepicker/demo/styles.scss +1 -0
- package/components/datepicker/demo/voiceover.html +59 -0
- package/components/datepicker/demo/voiceover.md +98 -0
- package/components/datepicker/dist/index.js +194 -57
- package/components/datepicker/dist/registered.js +194 -57
- package/components/datepicker/dist/{auro-calendar-cell.d.ts → src/auro-calendar-cell.d.ts} +2 -2
- package/components/datepicker/dist/{auro-datepicker.d.ts → src/auro-datepicker.d.ts} +13 -13
- package/components/datepicker/dist/src/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/{utilities.d.ts → src/utilities.d.ts} +4 -4
- package/components/datepicker/dist/{utilitiesCalendar.d.ts → src/utilitiesCalendar.d.ts} +3 -3
- package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-calendar.d.ts +2 -2
- package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker.d.ts +1 -1
- package/components/dropdown/README.md +35 -53
- package/components/dropdown/demo/api.md +717 -773
- package/components/dropdown/demo/api.min.js +161 -23
- package/components/dropdown/demo/index.md +120 -130
- package/components/dropdown/demo/index.min.js +161 -23
- package/components/dropdown/demo/{keyboardBehavior.md → keyboard-behavior.md} +52 -57
- package/components/dropdown/demo/readme.md +35 -53
- package/components/dropdown/dist/auro-dropdown.d.ts +22 -22
- package/components/dropdown/dist/auro-dropdownBib.d.ts +3 -3
- package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +1 -1
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +160 -22
- package/components/dropdown/dist/registered.js +160 -22
- package/components/form/README.md +14 -34
- package/components/form/demo/api.md +156 -162
- package/components/form/demo/api.min.js +756 -208
- package/components/form/demo/index.md +27 -33
- package/components/form/demo/index.min.js +756 -208
- package/components/form/demo/keyboard-behavior.md +38 -0
- package/components/form/demo/readme.md +14 -34
- package/components/input/README.md +28 -53
- package/components/input/demo/accessibility.html +37 -0
- package/components/input/demo/accessibility.md +69 -0
- package/components/input/demo/api.html +17 -23
- package/components/input/demo/api.js +4 -23
- package/components/input/demo/api.md +67 -1359
- package/components/input/demo/api.min.js +1 -7453
- package/components/input/demo/auro-input.min.js +7362 -0
- package/components/input/demo/customize.html +53 -0
- package/components/input/demo/customize.js +25 -0
- package/components/input/demo/customize.md +1372 -0
- package/components/input/demo/customize.min.js +71 -0
- package/components/input/demo/demo-support.js +60 -0
- package/components/input/demo/demo-support.min.js +55732 -0
- package/components/input/demo/design.html +38 -0
- package/components/input/demo/design.md +224 -0
- package/components/input/demo/getting-started.html +52 -0
- package/components/input/demo/getting-started.js +8 -0
- package/components/input/demo/getting-started.md +312 -0
- package/components/input/demo/getting-started.min.js +9 -0
- package/components/input/demo/index.html +16 -23
- package/components/input/demo/index.js +0 -11
- package/components/input/demo/index.md +180 -154
- package/components/input/demo/index.min.js +1 -7373
- package/components/input/demo/keyboard-behavior.html +37 -0
- package/components/input/demo/readme.md +28 -53
- package/components/input/demo/styles.css +974 -0
- package/components/input/demo/styles.min.css +1 -0
- package/components/input/demo/styles.scss +1 -0
- package/components/input/demo/voiceover.html +37 -0
- package/components/input/demo/voiceover.md +70 -0
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +29 -30
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +10 -11
- package/components/input/dist/registered.js +10 -11
- package/components/menu/README.md +24 -42
- package/components/menu/demo/api.md +785 -829
- package/components/menu/demo/api.min.js +7 -7
- package/components/menu/demo/index.md +33 -35
- package/components/menu/demo/index.min.js +7 -7
- package/components/menu/demo/keyboard-behavior.md +18 -0
- package/components/menu/demo/readme.md +24 -42
- package/components/menu/dist/auro-menu-utils.d.ts +1 -1
- package/components/menu/dist/auro-menu.context.d.ts +3 -3
- package/components/menu/dist/auro-menu.d.ts +4 -4
- package/components/menu/dist/auro-menuoption.d.ts +6 -6
- package/components/menu/dist/index.js +6 -6
- package/components/menu/dist/registered.js +6 -6
- package/components/radio/README.md +22 -49
- package/components/radio/demo/accessibility.html +51 -0
- package/components/radio/demo/accessibility.md +44 -0
- package/components/radio/demo/api.html +13 -20
- package/components/radio/demo/api.md +44 -621
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/customize.html +53 -0
- package/components/radio/demo/customize.md +368 -0
- package/components/radio/demo/demo-support.js +60 -0
- package/components/radio/demo/design.html +52 -0
- package/components/radio/demo/design.md +143 -0
- package/components/radio/demo/getting-started.html +54 -0
- package/components/radio/demo/getting-started.md +296 -0
- package/components/radio/demo/index.html +16 -19
- package/components/radio/demo/index.md +124 -63
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/keyboard-behavior.html +51 -0
- package/components/radio/demo/keyboard-behavior.md +72 -0
- package/components/radio/demo/layout.md +30 -0
- package/components/radio/demo/readme.html +11 -17
- package/components/radio/demo/readme.md +22 -49
- package/components/radio/demo/styles.css +974 -0
- package/components/radio/demo/voiceover.html +51 -0
- package/components/radio/demo/voiceover.md +43 -0
- package/components/radio/dist/auro-radio-group.d.ts +9 -9
- package/components/radio/dist/auro-radio.d.ts +8 -8
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +50 -68
- package/components/select/demo/accessibility.html +50 -0
- package/components/select/demo/accessibility.md +76 -0
- package/components/select/demo/api.html +5 -17
- package/components/select/demo/api.md +52 -2422
- package/components/select/demo/customize.html +52 -0
- package/components/select/demo/customize.js +11 -0
- package/components/select/demo/customize.md +1049 -0
- package/components/select/demo/customize.min.js +12 -0
- package/components/select/demo/demo-support.js +60 -0
- package/components/select/demo/demo-support.min.js +55732 -0
- package/components/select/demo/design.html +51 -0
- package/components/select/demo/design.md +391 -0
- package/components/select/demo/getting-started.html +52 -0
- package/components/select/demo/getting-started.js +26 -0
- package/components/select/demo/getting-started.md +412 -0
- package/components/select/demo/getting-started.min.js +56 -0
- package/components/select/demo/index.html +18 -35
- package/components/select/demo/index.js +5 -3
- package/components/select/demo/index.md +165 -345
- package/components/select/demo/index.min.js +6 -10484
- package/components/select/demo/install.md +95 -0
- package/components/select/demo/keyboard-behavior.html +8 -39
- package/components/select/demo/keyboard-behavior.md +249 -0
- package/components/select/demo/keyboardBehavior.html +5 -38
- package/components/select/demo/layout.html +51 -0
- package/components/select/demo/readme.html +5 -13
- package/components/select/demo/readme.md +50 -68
- package/components/select/demo/{api.min.js → registered.min.js} +179 -151
- package/components/select/demo/styles.min.css +1 -0
- package/components/select/demo/styles.scss +1 -0
- package/components/select/demo/voiceover.html +48 -0
- package/components/select/demo/voiceover.md +183 -0
- package/components/select/dist/auro-select.d.ts +11 -11
- package/components/select/dist/index.js +171 -33
- package/components/select/dist/registered.js +171 -33
- package/custom-elements.json +1491 -1494
- package/package.json +37 -30
- package/components/checkbox/demo/keyboardBehavior.md +0 -0
- package/components/combobox/demo/keyboardBehavior.md +0 -281
- package/components/counter/demo/keyboardBehavior.md +0 -127
- package/components/datepicker/demo/keyboardBehavior.md +0 -19
- package/components/datepicker/dist/iconVersion.d.ts +0 -2
- package/components/form/demo/keyboardBehavior.md +0 -0
- package/components/input/demo/keyboardBehavior.md +0 -0
- package/components/menu/demo/keyboardBehavior.md +0 -0
- package/components/radio/demo/keyboardBehavior.md +0 -0
- package/components/select/demo/api.js +0 -39
- package/components/select/demo/keyboardBehavior.md +0 -245
- /package/components/datepicker/dist/{auro-calendar-month.d.ts → src/auro-calendar-month.d.ts} +0 -0
- /package/components/datepicker/dist/{auro-calendar.d.ts → src/auro-calendar.d.ts} +0 -0
- /package/components/datepicker/dist/{buttonVersion.d.ts → src/buttonVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{datepickerKeyboardStrategy.d.ts → src/datepickerKeyboardStrategy.d.ts} +0 -0
- /package/components/datepicker/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/components/datepicker/dist/{popoverVersion.d.ts → src/popoverVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/classic/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/classic/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/shapeSize-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/snowflake/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/snowflake/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/tokens-css.d.ts +0 -0
- /package/components/datepicker/dist/{utilitiesCalendarRender.d.ts → src/utilitiesCalendarRender.d.ts} +0 -0
- /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/day.d.ts +0 -0
- /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-cell.d.ts +0 -0
|
@@ -8,39 +8,39 @@ The `auro-counter-group` element provides a flexible interface for grouping mult
|
|
|
8
8
|
## Properties
|
|
9
9
|
|
|
10
10
|
| Property | Attribute | Type | Default | Description |
|
|
11
|
-
|---------------------------|---------------------------|--------------------------------------------------|------------------|--------------------------------------------------|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
11
|
+
|---------------------------|---------------------------|--------------------------------------------------|------------------|--------------------------------------------------|
|
|
12
|
+
| `appearance` | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
13
|
+
| `autoPlacement` | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
14
|
+
| `error` | `error` | `string` | | The current error message to display when the component is invalid. |
|
|
15
|
+
| `fullscreenBreakpoint` | `fullscreenBreakpoint` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
16
|
+
| `isDropdown` | `isDropdown` | `boolean` | false | If true, the counter group is displayed as a dropdown. |
|
|
17
|
+
| `largeFullscreenHeadline` | `largeFullscreenHeadline` | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
18
|
+
| `layout` | `layout` | `'classic' \| 'snowflake'` | "'classic'" | Determines the layout style of the counter group when it is a dropdown. |
|
|
19
|
+
| `matchWidth` | `matchWidth` | `boolean` | false | If declared, the dropdown will expand to the width of its parent container.<br />Otherwise, the dropdown width will be determined by its content. |
|
|
20
|
+
| `max` | `max` | `number` | "undefined" | The maximum value allowed for the whole group of counters. |
|
|
21
|
+
| `min` | `min` | `number` | "undefined" | The minimum value allowed for the whole group of counters. |
|
|
22
|
+
| `noFlip` | `noFlip` | `boolean` | false | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
23
|
+
| `offset` | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
24
|
+
| `onDark` | `onDark` | `boolean` | false | DEPRECATED - use `appearance` instead. |
|
|
25
|
+
| `placement` | `placement` | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'" | Position where the bib should appear relative to the trigger. |
|
|
26
|
+
| `shift` | `shift` | `boolean` | false | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
|
|
27
|
+
| `total` | `total` | `number` | "undefined" | The total value of the counters. |
|
|
28
|
+
| `validity` | `validity` | `string` | "undefined" | Reflects the validity state. |
|
|
29
|
+
| `value` | `value` | `object` | "undefined" | The current individual values of the nested counters. |
|
|
30
30
|
|
|
31
31
|
## Methods
|
|
32
32
|
|
|
33
33
|
| Method | Type | Description |
|
|
34
|
-
|------------|----------------------------------------|--------------------------------------------------|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
34
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
35
|
+
| `hideBib` | `(): void` | Hides the dropdown bib if its open. |
|
|
36
|
+
| `showBib` | `(): void` | Shows the dropdown bib if there are options to show. |
|
|
37
|
+
| `validate` | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
38
38
|
|
|
39
39
|
## Events
|
|
40
40
|
|
|
41
41
|
| Event | Type |
|
|
42
|
-
|---------|--------------------------------------------------|
|
|
43
|
-
|
|
|
42
|
+
|---------|--------------------------------------------------|
|
|
43
|
+
| `input` | `CustomEvent<{ total: number \| undefined; value: {} \| undefined; }>` |
|
|
44
44
|
|
|
45
45
|
## Slots
|
|
46
46
|
|
|
@@ -48,11 +48,11 @@ The `auro-counter-group` element provides a flexible interface for grouping mult
|
|
|
48
48
|
|---------------------------|--------------------------------------------------|
|
|
49
49
|
| `ariaLabel.bib.close` | Sets aria-label on close button in fullscreen bib |
|
|
50
50
|
| `bib.fullscreen.footer` | Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true. |
|
|
51
|
-
| `bib.fullscreen.headline` | Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required. |
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
55
|
-
|
|
|
51
|
+
| `bib.fullscreen.headline` | Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required. |
|
|
52
|
+
| `default` | Slot for counter elements. |
|
|
53
|
+
| `helpText` | Dropdown help text content. Only used when `isDropdown` is true. |
|
|
54
|
+
| `label` | Dropdown label content. Only used when `isDropdown` is true. |
|
|
55
|
+
| `valueText` | Dropdown value text display. Only used when `isDropdown` is true. |
|
|
56
56
|
|
|
57
57
|
# auro-counter
|
|
58
58
|
|
|
@@ -61,100 +61,96 @@ The `auro-counter` element provides a flexible counter interface with increment
|
|
|
61
61
|
## Properties
|
|
62
62
|
|
|
63
63
|
| Property | Attribute | Type | Default | Description |
|
|
64
|
-
|--------------|--------------|--------------------------|-------------|--------------------------------------------------|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
64
|
+
|--------------|--------------|--------------------------|-------------|--------------------------------------------------|
|
|
65
|
+
| `appearance` | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
66
|
+
| `disabled` | `disabled` | `boolean` | | Indicates if the counter is disabled. |
|
|
67
|
+
| `error` | `error` | `string` | | Error state and message.<br />True if set, value is the error message. |
|
|
68
|
+
| `max` | `max` | `number` | | The maximum value for the counter. |
|
|
69
|
+
| `min` | `min` | `number` | | The minimum value for the counter. |
|
|
70
|
+
| `onDark` | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
71
|
+
| `validity` | `validity` | `string` | | The validity state of the counter. |
|
|
72
|
+
| `value` | `value` | `number \| undefined` | | Gets the current value of the counter. |
|
|
73
73
|
|
|
74
74
|
## Methods
|
|
75
75
|
|
|
76
76
|
| Method | Type | Description |
|
|
77
|
-
|-------------|----------------------------------------|--------------------------------------------------|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
77
|
+
|-------------|----------------------------------------|--------------------------------------------------|
|
|
78
|
+
| `decrement` | `(value?: number \| undefined): void` | Decrements the value of the counter by 1. If a value is provided, it decrements by that amount.<br /><br />**value**: The amount to decrement by. |
|
|
79
|
+
| `increment` | `(value?: number \| undefined): void` | Increments the counter value by 1. If a value is provided, it increments by that amount.<br /><br />**value**: The amount to increment by. |
|
|
80
|
+
| `validate` | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
81
81
|
|
|
82
82
|
## Events
|
|
83
83
|
|
|
84
84
|
| Event | Type |
|
|
85
|
-
|---------|------------------------------------------------|
|
|
86
|
-
|
|
|
85
|
+
|---------|------------------------------------------------|
|
|
86
|
+
| `input` | `CustomEvent<{ value: number \| undefined; }>` |
|
|
87
87
|
|
|
88
88
|
## Slots
|
|
89
89
|
|
|
90
90
|
| Name | Description |
|
|
91
91
|
|-------------------|--------------------------------------------|
|
|
92
92
|
| `ariaLabel.minus` | Accessible label for the decrement button. |
|
|
93
|
-
| `ariaLabel.plus` | Accessible label for the increment button. |
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
93
|
+
| `ariaLabel.plus` | Accessible label for the increment button. |
|
|
94
|
+
| `default` | Main label content for the counter. |
|
|
95
|
+
| `description` | Descriptive content for the counter. |
|
|
96
|
+
| `helpText` | Help text content for the counter. |
|
|
97
97
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
98
98
|
|
|
99
99
|
## Basic Counter
|
|
100
100
|
|
|
101
101
|
<div class="exampleWrapper">
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-standalone.html) -->
|
|
103
|
+
<!-- The below content is automatically added from ./../apiExamples/basic-standalone.html -->
|
|
104
|
+
<auro-counter>
|
|
105
105
|
Adults
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
</auro-counter>
|
|
107
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
108
108
|
</div>
|
|
109
109
|
<auro-accordion alignRight>
|
|
110
|
-
|
|
110
|
+
<span slot="trigger">See code</span>
|
|
111
111
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-standalone.html) -->
|
|
112
112
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic-standalone.html -->
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
<auro-counter>
|
|
114
|
+
<pre class="language-html"><code class="language-html"><auro-counter>
|
|
116
115
|
Adults
|
|
117
|
-
|
|
118
|
-
```
|
|
116
|
+
</auro-counter></code></pre>
|
|
119
117
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
120
118
|
</auro-accordion>
|
|
121
119
|
|
|
122
120
|
## Basic Counter Group
|
|
123
121
|
|
|
124
122
|
<div class="exampleWrapper">
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
124
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
125
|
+
<auro-counter-group>
|
|
126
|
+
<auro-counter>
|
|
129
127
|
Short label
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
</auro-counter>
|
|
129
|
+
<auro-counter>
|
|
132
130
|
Another short label
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
</auro-counter>
|
|
132
|
+
<auro-counter>
|
|
135
133
|
This is an example of the wrapping behavior for a long label
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
</auro-counter>
|
|
135
|
+
</auro-counter-group>
|
|
136
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
139
137
|
</div>
|
|
140
138
|
<auro-accordion alignRight>
|
|
141
|
-
|
|
139
|
+
<span slot="trigger">See code</span>
|
|
142
140
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
143
141
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
144
142
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
<auro-counter>
|
|
143
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group>
|
|
144
|
+
<auro-counter>
|
|
148
145
|
Short label
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
</auro-counter>
|
|
147
|
+
<auro-counter>
|
|
151
148
|
Another short label
|
|
152
|
-
|
|
153
|
-
|
|
149
|
+
</auro-counter>
|
|
150
|
+
<auro-counter>
|
|
154
151
|
This is an example of the wrapping behavior for a long label
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
```
|
|
152
|
+
</auro-counter>
|
|
153
|
+
</auro-counter-group></code></pre>
|
|
158
154
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
159
155
|
</auro-accordion>
|
|
160
156
|
|
|
@@ -165,23 +161,21 @@ The `auro-counter` element provides a flexible counter interface with increment
|
|
|
165
161
|
Use `appearance="inverse"` to ensure proper contrast on dark backgrounds.
|
|
166
162
|
|
|
167
163
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
165
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
166
|
+
<auro-counter appearance="inverse">
|
|
171
167
|
Adults
|
|
172
|
-
|
|
173
|
-
|
|
168
|
+
</auro-counter>
|
|
169
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
174
170
|
</div>
|
|
175
171
|
<auro-accordion alignRight>
|
|
176
|
-
|
|
172
|
+
<span slot="trigger">See code</span>
|
|
177
173
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
|
|
178
174
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
179
175
|
|
|
180
|
-
|
|
181
|
-
<auro-counter appearance="inverse">
|
|
176
|
+
<pre class="language-html"><code class="language-html"><auro-counter appearance="inverse">
|
|
182
177
|
Adults
|
|
183
|
-
|
|
184
|
-
```
|
|
178
|
+
</auro-counter></code></pre>
|
|
185
179
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
186
180
|
</auro-accordion>
|
|
187
181
|
|
|
@@ -190,44 +184,40 @@ Use `appearance="inverse"` to ensure proper contrast on dark backgrounds.
|
|
|
190
184
|
A counter can be disabled by adding the `disabled` attribute.
|
|
191
185
|
|
|
192
186
|
<div class="exampleWrapper">
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
187
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/counter-disabled.html) -->
|
|
188
|
+
<!-- The below content is automatically added from ./../apiExamples/counter-disabled.html -->
|
|
189
|
+
<auro-counter disabled value="0">
|
|
196
190
|
Disabled counter
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
191
|
+
<span slot="description">This counter cannot be modified</span>
|
|
192
|
+
</auro-counter>
|
|
193
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
200
194
|
</div>
|
|
201
195
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
196
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
197
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
198
|
+
<auro-counter appearance="inverse" disabled value="0">
|
|
205
199
|
Disabled counter
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
200
|
+
<span slot="description">This counter cannot be modified</span>
|
|
201
|
+
</auro-counter>
|
|
202
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
209
203
|
</div>
|
|
210
204
|
<auro-accordion alignRight>
|
|
211
|
-
|
|
205
|
+
<span slot="trigger">See code</span>
|
|
212
206
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/counter-disabled.html) -->
|
|
213
207
|
<!-- The below code snippet is automatically added from ./../apiExamples/counter-disabled.html -->
|
|
214
208
|
|
|
215
|
-
|
|
216
|
-
<auro-counter disabled value="0">
|
|
209
|
+
<pre class="language-html"><code class="language-html"><auro-counter disabled value="0">
|
|
217
210
|
Disabled counter
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
```
|
|
211
|
+
<span slot="description">This counter cannot be modified</span>
|
|
212
|
+
</auro-counter></code></pre>
|
|
221
213
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
222
214
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
223
215
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
224
216
|
|
|
225
|
-
|
|
226
|
-
<auro-counter appearance="inverse" disabled value="0">
|
|
217
|
+
<pre class="language-html"><code class="language-html"><auro-counter appearance="inverse" disabled value="0">
|
|
227
218
|
Disabled counter
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
```
|
|
219
|
+
<span slot="description">This counter cannot be modified</span>
|
|
220
|
+
</auro-counter></code></pre>
|
|
231
221
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
232
222
|
</auro-accordion>
|
|
233
223
|
|
|
@@ -236,40 +226,36 @@ A counter can be disabled by adding the `disabled` attribute.
|
|
|
236
226
|
A custom error can be set on the counter by adding the `error` attribute the desired message.
|
|
237
227
|
|
|
238
228
|
<div class="exampleWrapper">
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
229
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/counter-error.html) -->
|
|
230
|
+
<!-- The below content is automatically added from ./../apiExamples/counter-error.html -->
|
|
231
|
+
<auro-counter error="There is an error with the counter">
|
|
242
232
|
Adults
|
|
243
|
-
|
|
244
|
-
|
|
233
|
+
</auro-counter>
|
|
234
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
245
235
|
</div>
|
|
246
236
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
237
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
238
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
239
|
+
<auro-counter appearance="inverse" error="There is an error with the counter">
|
|
250
240
|
Adults
|
|
251
|
-
|
|
252
|
-
|
|
241
|
+
</auro-counter>
|
|
242
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
253
243
|
</div>
|
|
254
244
|
<auro-accordion alignRight>
|
|
255
|
-
|
|
245
|
+
<span slot="trigger">See code</span>
|
|
256
246
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/counter-error.html) -->
|
|
257
247
|
<!-- The below code snippet is automatically added from ./../apiExamples/counter-error.html -->
|
|
258
248
|
|
|
259
|
-
|
|
260
|
-
<auro-counter error="There is an error with the counter">
|
|
249
|
+
<pre class="language-html"><code class="language-html"><auro-counter error="There is an error with the counter">
|
|
261
250
|
Adults
|
|
262
|
-
|
|
263
|
-
```
|
|
251
|
+
</auro-counter></code></pre>
|
|
264
252
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
265
253
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
266
254
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
267
255
|
|
|
268
|
-
|
|
269
|
-
<auro-counter appearance="inverse" error="There is an error with the counter">
|
|
256
|
+
<pre class="language-html"><code class="language-html"><auro-counter appearance="inverse" error="There is an error with the counter">
|
|
270
257
|
Adults
|
|
271
|
-
|
|
272
|
-
```
|
|
258
|
+
</auro-counter></code></pre>
|
|
273
259
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
274
260
|
</auro-accordion>
|
|
275
261
|
|
|
@@ -278,25 +264,23 @@ A custom error can be set on the counter by adding the `error` attribute the des
|
|
|
278
264
|
Use the `min`, `max`, and `value` attributes to set the minimum and maximum allowable values for the counter, as well as its initial value.
|
|
279
265
|
|
|
280
266
|
<div class="exampleWrapper">
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
267
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/counter-minmax.html) -->
|
|
268
|
+
<!-- The below content is automatically added from ./../apiExamples/counter-minmax.html -->
|
|
269
|
+
<auro-counter min="1" max="5" value="2">
|
|
284
270
|
Adults
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
271
|
+
<span slot="description">Min: 1, Max: 5</span>
|
|
272
|
+
</auro-counter>
|
|
273
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
288
274
|
</div>
|
|
289
275
|
<auro-accordion alignRight>
|
|
290
|
-
|
|
276
|
+
<span slot="trigger">See code</span>
|
|
291
277
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/counter-minmax.html) -->
|
|
292
278
|
<!-- The below code snippet is automatically added from ./../apiExamples/counter-minmax.html -->
|
|
293
279
|
|
|
294
|
-
|
|
295
|
-
<auro-counter min="1" max="5" value="2">
|
|
280
|
+
<pre class="language-html"><code class="language-html"><auro-counter min="1" max="5" value="2">
|
|
296
281
|
Adults
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
```
|
|
282
|
+
<span slot="description">Min: 1, Max: 5</span>
|
|
283
|
+
</auro-counter></code></pre>
|
|
300
284
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
301
285
|
</auro-accordion>
|
|
302
286
|
|
|
@@ -307,44 +291,40 @@ Use the `min`, `max`, and `value` attributes to set the minimum and maximum allo
|
|
|
307
291
|
A description can be added with the `description` slot. The description appears below the main label and is useful for displaying important information or requirements.
|
|
308
292
|
|
|
309
293
|
<div class="exampleWrapper">
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
294
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/description.html) -->
|
|
295
|
+
<!-- The below content is automatically added from ./../apiExamples/description.html -->
|
|
296
|
+
<auro-counter>
|
|
313
297
|
Adults
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
298
|
+
<span slot="description">18 years or older</span>
|
|
299
|
+
</auro-counter>
|
|
300
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
317
301
|
</div>
|
|
318
302
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
303
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-description.html) -->
|
|
304
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-description.html -->
|
|
305
|
+
<auro-counter appearance="inverse">
|
|
322
306
|
Adults
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
307
|
+
<span slot="description">18 years or older</span>
|
|
308
|
+
</auro-counter>
|
|
309
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
326
310
|
</div>
|
|
327
311
|
<auro-accordion alignRight>
|
|
328
|
-
|
|
312
|
+
<span slot="trigger">See code</span>
|
|
329
313
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/description.html) -->
|
|
330
314
|
<!-- The below code snippet is automatically added from ./../apiExamples/description.html -->
|
|
331
315
|
|
|
332
|
-
|
|
333
|
-
<auro-counter>
|
|
316
|
+
<pre class="language-html"><code class="language-html"><auro-counter>
|
|
334
317
|
Adults
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
```
|
|
318
|
+
<span slot="description">18 years or older</span>
|
|
319
|
+
</auro-counter></code></pre>
|
|
338
320
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
339
321
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-description.html) -->
|
|
340
322
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-description.html -->
|
|
341
323
|
|
|
342
|
-
|
|
343
|
-
<auro-counter appearance="inverse">
|
|
324
|
+
<pre class="language-html"><code class="language-html"><auro-counter appearance="inverse">
|
|
344
325
|
Adults
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
```
|
|
326
|
+
<span slot="description">18 years or older</span>
|
|
327
|
+
</auro-counter></code></pre>
|
|
348
328
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
349
329
|
</auro-accordion>
|
|
350
330
|
|
|
@@ -353,44 +333,40 @@ A description can be added with the `description` slot. The description appears
|
|
|
353
333
|
Help text is supported with counters, and can be added by targetting the `helptext` slot.
|
|
354
334
|
|
|
355
335
|
<div class="exampleWrapper">
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
336
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/counter-helptext.html) -->
|
|
337
|
+
<!-- The below content is automatically added from ./../apiExamples/counter-helptext.html -->
|
|
338
|
+
<auro-counter>
|
|
359
339
|
Adults
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
340
|
+
<span slot="helpText">This is help text for the counter</span>
|
|
341
|
+
</auro-counter>
|
|
342
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
363
343
|
</div>
|
|
364
344
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
345
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-helptext.html) -->
|
|
346
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-helptext.html -->
|
|
347
|
+
<auro-counter appearance="inverse">
|
|
368
348
|
Adults
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
349
|
+
<span slot="helpText">This is help text for the counter</span>
|
|
350
|
+
</auro-counter>
|
|
351
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
372
352
|
</div>
|
|
373
353
|
<auro-accordion alignRight>
|
|
374
|
-
|
|
354
|
+
<span slot="trigger">See code</span>
|
|
375
355
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/counter-helptext.html) -->
|
|
376
356
|
<!-- The below code snippet is automatically added from ./../apiExamples/counter-helptext.html -->
|
|
377
357
|
|
|
378
|
-
|
|
379
|
-
<auro-counter>
|
|
358
|
+
<pre class="language-html"><code class="language-html"><auro-counter>
|
|
380
359
|
Adults
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
```
|
|
360
|
+
<span slot="helpText">This is help text for the counter</span>
|
|
361
|
+
</auro-counter></code></pre>
|
|
384
362
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
385
363
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-helptext.html) -->
|
|
386
364
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-helptext.html -->
|
|
387
365
|
|
|
388
|
-
|
|
389
|
-
<auro-counter appearance="inverse">
|
|
366
|
+
<pre class="language-html"><code class="language-html"><auro-counter appearance="inverse">
|
|
390
367
|
Adults
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
```
|
|
368
|
+
<span slot="helpText">This is help text for the counter</span>
|
|
369
|
+
</auro-counter></code></pre>
|
|
394
370
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
395
371
|
</auro-accordion>
|
|
396
372
|
|
|
@@ -401,39 +377,37 @@ Help text is supported with counters, and can be added by targetting the `helpte
|
|
|
401
377
|
Use `appearance="inverse"` to ensure proper contrast on dark backgrounds.
|
|
402
378
|
|
|
403
379
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
380
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-group.html) -->
|
|
381
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-group.html -->
|
|
382
|
+
<auro-counter-group appearance="inverse">
|
|
383
|
+
<auro-counter>
|
|
408
384
|
Short label
|
|
409
|
-
|
|
410
|
-
|
|
385
|
+
</auro-counter>
|
|
386
|
+
<auro-counter>
|
|
411
387
|
Another short label
|
|
412
|
-
|
|
413
|
-
|
|
388
|
+
</auro-counter>
|
|
389
|
+
<auro-counter>
|
|
414
390
|
This is an example of the wrapping behavior for a long label
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
391
|
+
</auro-counter>
|
|
392
|
+
</auro-counter-group>
|
|
393
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
418
394
|
</div>
|
|
419
395
|
<auro-accordion alignRight>
|
|
420
|
-
|
|
396
|
+
<span slot="trigger">See code</span>
|
|
421
397
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-group.html) -->
|
|
422
398
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-group.html -->
|
|
423
399
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
<auro-counter>
|
|
400
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group appearance="inverse">
|
|
401
|
+
<auro-counter>
|
|
427
402
|
Short label
|
|
428
|
-
|
|
429
|
-
|
|
403
|
+
</auro-counter>
|
|
404
|
+
<auro-counter>
|
|
430
405
|
Another short label
|
|
431
|
-
|
|
432
|
-
|
|
406
|
+
</auro-counter>
|
|
407
|
+
<auro-counter>
|
|
433
408
|
This is an example of the wrapping behavior for a long label
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
```
|
|
409
|
+
</auro-counter>
|
|
410
|
+
</auro-counter-group></code></pre>
|
|
437
411
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
438
412
|
</auro-accordion>
|
|
439
413
|
|
|
@@ -442,86 +416,82 @@ Use `appearance="inverse"` to ensure proper contrast on dark backgrounds.
|
|
|
442
416
|
Use the `isDropdown` attribute to place a counter group into the dropdown menu. The dropdown mode provides a more compact interface, ideal for forms where space is limited. It collapses the counters into a dropdown that expands when clicked.
|
|
443
417
|
|
|
444
418
|
<div class="exampleWrapper">
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
419
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown.html) -->
|
|
420
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown.html -->
|
|
421
|
+
<auro-counter-group isDropdown>
|
|
422
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
423
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
424
|
+
<div slot="label">Passengers</div>
|
|
425
|
+
<auro-counter>
|
|
452
426
|
Adults
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
427
|
+
<span slot="description">18 years or older</span>
|
|
428
|
+
</auro-counter>
|
|
429
|
+
<auro-counter>
|
|
456
430
|
Children
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
431
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
432
|
+
</auro-counter>
|
|
433
|
+
<auro-counter>
|
|
460
434
|
Lap Infants
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
435
|
+
<span slot="description">Under 2 years</span>
|
|
436
|
+
</auro-counter>
|
|
437
|
+
</auro-counter-group>
|
|
438
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
465
439
|
</div>
|
|
466
440
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
441
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-dropdown.html) -->
|
|
442
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-dropdown.html -->
|
|
443
|
+
<auro-counter-group appearance="inverse" isDropdown>
|
|
444
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
445
|
+
<div slot="label">Passengers</div>
|
|
446
|
+
<auro-counter>
|
|
473
447
|
Adults
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
448
|
+
<span slot="description">18 years or older</span>
|
|
449
|
+
</auro-counter>
|
|
450
|
+
<auro-counter>
|
|
477
451
|
Children
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
452
|
+
<span slot="description">2-17 years</span>
|
|
453
|
+
</auro-counter>
|
|
454
|
+
</auro-counter-group>
|
|
455
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
482
456
|
</div>
|
|
483
457
|
<auro-accordion alignRight>
|
|
484
|
-
|
|
458
|
+
<span slot="trigger">See code</span>
|
|
485
459
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown.html) -->
|
|
486
460
|
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown.html -->
|
|
487
461
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
<auro-counter>
|
|
462
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group isDropdown>
|
|
463
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
464
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
465
|
+
<div slot="label">Passengers</div>
|
|
466
|
+
<auro-counter>
|
|
494
467
|
Adults
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
468
|
+
<span slot="description">18 years or older</span>
|
|
469
|
+
</auro-counter>
|
|
470
|
+
<auro-counter>
|
|
498
471
|
Children
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
472
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
473
|
+
</auro-counter>
|
|
474
|
+
<auro-counter>
|
|
502
475
|
Lap Infants
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
```
|
|
476
|
+
<span slot="description">Under 2 years</span>
|
|
477
|
+
</auro-counter>
|
|
478
|
+
</auro-counter-group></code></pre>
|
|
507
479
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
508
480
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-dropdown.html) -->
|
|
509
481
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-dropdown.html -->
|
|
510
482
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
<auro-counter>
|
|
483
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group appearance="inverse" isDropdown>
|
|
484
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
485
|
+
<div slot="label">Passengers</div>
|
|
486
|
+
<auro-counter>
|
|
516
487
|
Adults
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
488
|
+
<span slot="description">18 years or older</span>
|
|
489
|
+
</auro-counter>
|
|
490
|
+
<auro-counter>
|
|
520
491
|
Children
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
```
|
|
492
|
+
<span slot="description">2-17 years</span>
|
|
493
|
+
</auro-counter>
|
|
494
|
+
</auro-counter-group></code></pre>
|
|
525
495
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
526
496
|
</auro-accordion>
|
|
527
497
|
|
|
@@ -530,84 +500,80 @@ Use the `isDropdown` attribute to place a counter group into the dropdown menu.
|
|
|
530
500
|
Counter dropdowns support an alternate "snowflake" layout, using `layout="snowflake"`.
|
|
531
501
|
|
|
532
502
|
<div class="exampleWrapper">
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
503
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-snowflake.html) -->
|
|
504
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown-snowflake.html -->
|
|
505
|
+
<!-- Example of counter-group properties -->
|
|
506
|
+
<auro-counter-group max="10" min="2" isDropdown layout="snowflake">
|
|
507
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
508
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
509
|
+
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
510
|
+
<div slot="label">Snowflake Dropdown Group</div>
|
|
511
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
512
|
+
<auro-counter>
|
|
543
513
|
Counter 1
|
|
544
|
-
|
|
545
|
-
|
|
514
|
+
</auro-counter>
|
|
515
|
+
<auro-counter>
|
|
546
516
|
Counter 2
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
517
|
+
</auro-counter>
|
|
518
|
+
</auro-counter-group>
|
|
519
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
550
520
|
</div>
|
|
551
521
|
<div class="exampleWrapper--ondark">
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
522
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-snowflake.html) -->
|
|
523
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-snowflake.html -->
|
|
524
|
+
<!-- Example of counter-group properties -->
|
|
525
|
+
<auro-counter-group max="10" min="2" isDropdown layout="snowflake" appearance="inverse">
|
|
526
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
527
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
528
|
+
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
529
|
+
<div slot="label">Snowflake Dropdown Group</div>
|
|
530
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
531
|
+
<auro-counter>
|
|
562
532
|
Counter 1
|
|
563
|
-
|
|
564
|
-
|
|
533
|
+
</auro-counter>
|
|
534
|
+
<auro-counter>
|
|
565
535
|
Counter 2
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
536
|
+
</auro-counter>
|
|
537
|
+
</auro-counter-group>
|
|
538
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
569
539
|
</div>
|
|
570
540
|
<auro-accordion alignRight>
|
|
571
|
-
|
|
541
|
+
<span slot="trigger">See code</span>
|
|
572
542
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-snowflake.html) -->
|
|
573
543
|
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-snowflake.html -->
|
|
574
544
|
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
<auro-counter>
|
|
545
|
+
<pre class="language-html"><code class="language-html"><!-- Example of counter-group properties -->
|
|
546
|
+
<auro-counter-group max="10" min="2" isDropdown layout="snowflake">
|
|
547
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
548
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
549
|
+
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
550
|
+
<div slot="label">Snowflake Dropdown Group</div>
|
|
551
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
552
|
+
<auro-counter>
|
|
584
553
|
Counter 1
|
|
585
|
-
|
|
586
|
-
|
|
554
|
+
</auro-counter>
|
|
555
|
+
<auro-counter>
|
|
587
556
|
Counter 2
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
```
|
|
557
|
+
</auro-counter>
|
|
558
|
+
</auro-counter-group></code></pre>
|
|
591
559
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
592
560
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-snowflake.html) -->
|
|
593
561
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-snowflake.html -->
|
|
594
562
|
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
<auro-counter>
|
|
563
|
+
<pre class="language-html"><code class="language-html"><!-- Example of counter-group properties -->
|
|
564
|
+
<auro-counter-group max="10" min="2" isDropdown layout="snowflake" appearance="inverse">
|
|
565
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
566
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
567
|
+
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
568
|
+
<div slot="label">Snowflake Dropdown Group</div>
|
|
569
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
570
|
+
<auro-counter>
|
|
604
571
|
Counter 1
|
|
605
|
-
|
|
606
|
-
|
|
572
|
+
</auro-counter>
|
|
573
|
+
<auro-counter>
|
|
607
574
|
Counter 2
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
```
|
|
575
|
+
</auro-counter>
|
|
576
|
+
</auro-counter-group></code></pre>
|
|
611
577
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
612
578
|
</auro-accordion>
|
|
613
579
|
|
|
@@ -616,43 +582,41 @@ Counter dropdowns support an alternate "snowflake" layout, using `layout="snowfl
|
|
|
616
582
|
A counter dropdown with individual counters in an errored state will display the errors for each errored counter by default.
|
|
617
583
|
|
|
618
584
|
<div class="exampleWrapper">
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
585
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error.html) -->
|
|
586
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown-error.html -->
|
|
587
|
+
<auro-counter-group isDropdown>
|
|
588
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
589
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
590
|
+
<div slot="label">Passengers</div>
|
|
591
|
+
<auro-counter error="Custom error on Adults counter">
|
|
626
592
|
Adults
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
593
|
+
<span slot="description">18 years or older</span>
|
|
594
|
+
</auro-counter>
|
|
595
|
+
<auro-counter error="Custom error on Children counter">
|
|
630
596
|
Children
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
597
|
+
<span slot="description">2-17 years</span>
|
|
598
|
+
</auro-counter>
|
|
599
|
+
</auro-counter-group>
|
|
600
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
635
601
|
</div>
|
|
636
602
|
<auro-accordion alignRight>
|
|
637
|
-
|
|
603
|
+
<span slot="trigger">See code</span>
|
|
638
604
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-error.html) -->
|
|
639
605
|
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-error.html -->
|
|
640
606
|
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
<auro-counter error="Custom error on Adults counter">
|
|
607
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group isDropdown>
|
|
608
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
609
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
610
|
+
<div slot="label">Passengers</div>
|
|
611
|
+
<auro-counter error="Custom error on Adults counter">
|
|
647
612
|
Adults
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
613
|
+
<span slot="description">18 years or older</span>
|
|
614
|
+
</auro-counter>
|
|
615
|
+
<auro-counter error="Custom error on Children counter">
|
|
651
616
|
Children
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
```
|
|
617
|
+
<span slot="description">2-17 years</span>
|
|
618
|
+
</auro-counter>
|
|
619
|
+
</auro-counter-group></code></pre>
|
|
656
620
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
657
621
|
</auro-accordion>
|
|
658
622
|
|
|
@@ -661,43 +625,41 @@ A counter dropdown with individual counters in an errored state will display the
|
|
|
661
625
|
The `error` attribute can also be used on the counter group to set a custom error message. This will override any individual counter error messages.
|
|
662
626
|
|
|
663
627
|
<div class="exampleWrapper">
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
628
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-group.html) -->
|
|
629
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown-error-group.html -->
|
|
630
|
+
<auro-counter-group error="Custom error on counter group" isDropdown>
|
|
631
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
632
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
633
|
+
<div slot="label">Passengers</div>
|
|
634
|
+
<auro-counter error="Custom error on Adults counter">
|
|
671
635
|
Adults
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
636
|
+
<span slot="description">18 years or older</span>
|
|
637
|
+
</auro-counter>
|
|
638
|
+
<auro-counter error="Custom error on Children counter">
|
|
675
639
|
Children
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
640
|
+
<span slot="description">2-17 years</span>
|
|
641
|
+
</auro-counter>
|
|
642
|
+
</auro-counter-group>
|
|
643
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
680
644
|
</div>
|
|
681
645
|
<auro-accordion alignRight>
|
|
682
|
-
|
|
646
|
+
<span slot="trigger">See code</span>
|
|
683
647
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-error-group.html) -->
|
|
684
648
|
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-error-group.html -->
|
|
685
649
|
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
<auro-counter error="Custom error on Adults counter">
|
|
650
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group error="Custom error on counter group" isDropdown>
|
|
651
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
652
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
653
|
+
<div slot="label">Passengers</div>
|
|
654
|
+
<auro-counter error="Custom error on Adults counter">
|
|
692
655
|
Adults
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
656
|
+
<span slot="description">18 years or older</span>
|
|
657
|
+
</auro-counter>
|
|
658
|
+
<auro-counter error="Custom error on Children counter">
|
|
696
659
|
Children
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
```
|
|
660
|
+
<span slot="description">2-17 years</span>
|
|
661
|
+
</auro-counter>
|
|
662
|
+
</auro-counter-group></code></pre>
|
|
701
663
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
702
664
|
</auro-accordion>
|
|
703
665
|
|
|
@@ -708,33 +670,31 @@ The group counter `max` or `min` property sets the property for all counters in
|
|
|
708
670
|
**Example has group max set to 12**
|
|
709
671
|
|
|
710
672
|
<div class="exampleWrapper">
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
673
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/group-max.html) -->
|
|
674
|
+
<!-- The below content is automatically added from ./../apiExamples/group-max.html -->
|
|
675
|
+
<auro-counter-group max="12" min="0">
|
|
676
|
+
<auro-counter>
|
|
715
677
|
Short label
|
|
716
|
-
|
|
717
|
-
|
|
678
|
+
</auro-counter>
|
|
679
|
+
<auro-counter>
|
|
718
680
|
This is an example of the wrapping behavior for a long label
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
681
|
+
</auro-counter>
|
|
682
|
+
</auro-counter-group>
|
|
683
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
722
684
|
</div>
|
|
723
685
|
<auro-accordion alignRight>
|
|
724
|
-
|
|
686
|
+
<span slot="trigger">See code</span>
|
|
725
687
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/group-max.html) -->
|
|
726
688
|
<!-- The below code snippet is automatically added from ./../apiExamples/group-max.html -->
|
|
727
689
|
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
<auro-counter>
|
|
690
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group max="12" min="0">
|
|
691
|
+
<auro-counter>
|
|
731
692
|
Short label
|
|
732
|
-
|
|
733
|
-
|
|
693
|
+
</auro-counter>
|
|
694
|
+
<auro-counter>
|
|
734
695
|
This is an example of the wrapping behavior for a long label
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
```
|
|
696
|
+
</auro-counter>
|
|
697
|
+
</auro-counter-group></code></pre>
|
|
738
698
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
739
699
|
</auro-accordion>
|
|
740
700
|
|
|
@@ -745,33 +705,31 @@ You can also individually set the `max` or `min` value for each counter in a gro
|
|
|
745
705
|
**Example has group max set to 12**
|
|
746
706
|
|
|
747
707
|
<div class="exampleWrapper">
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
708
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/group-counter-max.html) -->
|
|
709
|
+
<!-- The below content is automatically added from ./../apiExamples/group-counter-max.html -->
|
|
710
|
+
<auro-counter-group max="12" min="0">
|
|
711
|
+
<auro-counter max="5">
|
|
752
712
|
This counter has a max value of 5
|
|
753
|
-
|
|
754
|
-
|
|
713
|
+
</auro-counter>
|
|
714
|
+
<auro-counter max="8">
|
|
755
715
|
This counter has a max value of 8
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
716
|
+
</auro-counter>
|
|
717
|
+
</auro-counter-group>
|
|
718
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
759
719
|
</div>
|
|
760
720
|
<auro-accordion alignRight>
|
|
761
|
-
|
|
721
|
+
<span slot="trigger">See code</span>
|
|
762
722
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/group-counter-max.html) -->
|
|
763
723
|
<!-- The below code snippet is automatically added from ./../apiExamples/group-counter-max.html -->
|
|
764
724
|
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
<auro-counter max="5">
|
|
725
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group max="12" min="0">
|
|
726
|
+
<auro-counter max="5">
|
|
768
727
|
This counter has a max value of 5
|
|
769
|
-
|
|
770
|
-
|
|
728
|
+
</auro-counter>
|
|
729
|
+
<auro-counter max="8">
|
|
771
730
|
This counter has a max value of 8
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
```
|
|
731
|
+
</auro-counter>
|
|
732
|
+
</auro-counter-group></code></pre>
|
|
775
733
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
776
734
|
</auro-accordion>
|
|
777
735
|
|
|
@@ -786,125 +744,123 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
786
744
|
- `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
|
|
787
745
|
|
|
788
746
|
<div class="exampleWrapper">
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
747
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floaterConfig.html) -->
|
|
748
|
+
<!-- The below content is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
749
|
+
<div style="width: 350px">
|
|
750
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
751
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
752
|
+
<span slot="label">Label</span>
|
|
753
|
+
<span slot="helpText">bottom-end bib with 20px offset</span>
|
|
754
|
+
<auro-counter>
|
|
797
755
|
Adults
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
756
|
+
<span slot="description">18 years or older</span>
|
|
757
|
+
</auro-counter>
|
|
758
|
+
<auro-counter>
|
|
801
759
|
Children
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
760
|
+
<span slot="description">2-17 years</span>
|
|
761
|
+
</auro-counter>
|
|
762
|
+
</auro-counter-group>
|
|
763
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
764
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
765
|
+
<span slot="label">Label</span>
|
|
766
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
767
|
+
<auro-counter>
|
|
810
768
|
Adults
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
769
|
+
<span slot="description">18 years or older</span>
|
|
770
|
+
</auro-counter>
|
|
771
|
+
<auro-counter>
|
|
814
772
|
Children
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
773
|
+
<span slot="description">2-17 years</span>
|
|
774
|
+
</auro-counter>
|
|
775
|
+
</auro-counter-group>
|
|
776
|
+
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
777
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
778
|
+
<span slot="label">Label</span>
|
|
779
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
780
|
+
<auro-counter>
|
|
823
781
|
Adults
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
782
|
+
<span slot="description">18 years or older</span>
|
|
783
|
+
</auro-counter>
|
|
784
|
+
<auro-counter>
|
|
827
785
|
Children
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
786
|
+
<span slot="description">2-17 years</span>
|
|
787
|
+
</auro-counter>
|
|
788
|
+
</auro-counter-group>
|
|
789
|
+
<auro-counter-group width="350px" isDropdown offset="20" placement="bottom-start" shift noFlip>
|
|
790
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
791
|
+
<span slot="label">Label</span>
|
|
792
|
+
<span slot="helpText">bottom-start with 20px offset, noFlip and shift enabled</span>
|
|
793
|
+
<auro-counter>
|
|
836
794
|
Adults
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
795
|
+
<span slot="description">18 years or older</span>
|
|
796
|
+
</auro-counter>
|
|
797
|
+
<auro-counter>
|
|
840
798
|
Children
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
799
|
+
<span slot="description">2-17 years</span>
|
|
800
|
+
</auro-counter>
|
|
801
|
+
</auro-counter-group>
|
|
802
|
+
</div>
|
|
803
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
846
804
|
</div>
|
|
847
805
|
<auro-accordion alignRight>
|
|
848
|
-
|
|
806
|
+
<span slot="trigger">See code</span>
|
|
849
807
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floaterConfig.html) -->
|
|
850
808
|
<!-- The below code snippet is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
851
809
|
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
<auro-counter>
|
|
810
|
+
<pre class="language-html"><code class="language-html"><div style="width: 350px">
|
|
811
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
812
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
813
|
+
<span slot="label">Label</span>
|
|
814
|
+
<span slot="helpText">bottom-end bib with 20px offset</span>
|
|
815
|
+
<auro-counter>
|
|
859
816
|
Adults
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
817
|
+
<span slot="description">18 years or older</span>
|
|
818
|
+
</auro-counter>
|
|
819
|
+
<auro-counter>
|
|
863
820
|
Children
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
821
|
+
<span slot="description">2-17 years</span>
|
|
822
|
+
</auro-counter>
|
|
823
|
+
</auro-counter-group>
|
|
824
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
825
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
826
|
+
<span slot="label">Label</span>
|
|
827
|
+
<span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
|
|
828
|
+
<auro-counter>
|
|
872
829
|
Adults
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
830
|
+
<span slot="description">18 years or older</span>
|
|
831
|
+
</auro-counter>
|
|
832
|
+
<auro-counter>
|
|
876
833
|
Children
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
834
|
+
<span slot="description">2-17 years</span>
|
|
835
|
+
</auro-counter>
|
|
836
|
+
</auro-counter-group>
|
|
837
|
+
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
838
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
839
|
+
<span slot="label">Label</span>
|
|
840
|
+
<span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
|
|
841
|
+
<auro-counter>
|
|
885
842
|
Adults
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
843
|
+
<span slot="description">18 years or older</span>
|
|
844
|
+
</auro-counter>
|
|
845
|
+
<auro-counter>
|
|
889
846
|
Children
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
847
|
+
<span slot="description">2-17 years</span>
|
|
848
|
+
</auro-counter>
|
|
849
|
+
</auro-counter-group>
|
|
850
|
+
<auro-counter-group width="350px" isDropdown offset="20" placement="bottom-start" shift noFlip>
|
|
851
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
852
|
+
<span slot="label">Label</span>
|
|
853
|
+
<span slot="helpText">bottom-start with 20px offset, noFlip and shift enabled</span>
|
|
854
|
+
<auro-counter>
|
|
898
855
|
Adults
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
856
|
+
<span slot="description">18 years or older</span>
|
|
857
|
+
</auro-counter>
|
|
858
|
+
<auro-counter>
|
|
902
859
|
Children
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
```
|
|
860
|
+
<span slot="description">2-17 years</span>
|
|
861
|
+
</auro-counter>
|
|
862
|
+
</auro-counter-group>
|
|
863
|
+
</div></code></pre>
|
|
908
864
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
909
865
|
</auro-accordion>
|
|
910
866
|
|
|
@@ -920,65 +876,63 @@ To support fullscreen bib, setting the `bib.fullscreen.headline` slot is **REQUI
|
|
|
920
876
|
You can also set `bib.fullscreen.footer` slot to add any additional options on fullscreen view.
|
|
921
877
|
|
|
922
878
|
<div class="exampleWrapper">
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
879
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-mobile-properties.html) -->
|
|
880
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
|
|
881
|
+
<div style="max-width: 350px;">
|
|
882
|
+
<auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
|
|
883
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
884
|
+
<span slot="label">Passengers</span>
|
|
885
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
886
|
+
<div slot="helpText">This is help text</div>
|
|
887
|
+
<auro-counter>
|
|
932
888
|
Adults
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
889
|
+
<span slot="description">18 years or older</span>
|
|
890
|
+
</auro-counter>
|
|
891
|
+
<auro-counter>
|
|
936
892
|
Children
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
893
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
894
|
+
</auro-counter>
|
|
895
|
+
<auro-counter>
|
|
940
896
|
Lap Infants
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
897
|
+
<span slot="description">Under 2 years</span>
|
|
898
|
+
</auro-counter>
|
|
899
|
+
<div slot="bib.fullscreen.footer" style="display:flex; justify-content: stretch; gap: 1.5rem">
|
|
900
|
+
<auro-button id="dropdownCounterExampleResetbutton" fluid variant="secondary" style="flex: 1 50%">Reset</auro-button>
|
|
901
|
+
<auro-button id="dropdownCounterExampleSavebutton" fluid style="flex: 1 50%">Save</auro-button>
|
|
902
|
+
</div>
|
|
903
|
+
</auro-counter-group>
|
|
904
|
+
</div>
|
|
905
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
950
906
|
</div>
|
|
951
907
|
<auro-accordion alignRight>
|
|
952
|
-
|
|
908
|
+
<span slot="trigger">See code</span>
|
|
953
909
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-mobile-properties.html) -->
|
|
954
910
|
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
|
|
955
911
|
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
<auro-counter>
|
|
912
|
+
<pre class="language-html"><code class="language-html"><div style="max-width: 350px;">
|
|
913
|
+
<auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
|
|
914
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
915
|
+
<span slot="label">Passengers</span>
|
|
916
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
917
|
+
<div slot="helpText">This is help text</div>
|
|
918
|
+
<auro-counter>
|
|
964
919
|
Adults
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
920
|
+
<span slot="description">18 years or older</span>
|
|
921
|
+
</auro-counter>
|
|
922
|
+
<auro-counter>
|
|
968
923
|
Children
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
924
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
925
|
+
</auro-counter>
|
|
926
|
+
<auro-counter>
|
|
972
927
|
Lap Infants
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
```
|
|
928
|
+
<span slot="description">Under 2 years</span>
|
|
929
|
+
</auro-counter>
|
|
930
|
+
<div slot="bib.fullscreen.footer" style="display:flex; justify-content: stretch; gap: 1.5rem">
|
|
931
|
+
<auro-button id="dropdownCounterExampleResetbutton" fluid variant="secondary" style="flex: 1 50%">Reset</auro-button>
|
|
932
|
+
<auro-button id="dropdownCounterExampleSavebutton" fluid style="flex: 1 50%">Save</auro-button>
|
|
933
|
+
</div>
|
|
934
|
+
</auro-counter-group>
|
|
935
|
+
</div></code></pre>
|
|
982
936
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
983
937
|
</auro-accordion>
|
|
984
938
|
|
|
@@ -989,57 +943,55 @@ You can also set `bib.fullscreen.footer` slot to add any additional options on f
|
|
|
989
943
|
Use the `valueText` slot to customize the value display in the dropdown trigger.
|
|
990
944
|
|
|
991
945
|
<div class="exampleWrapper">
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
946
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-value-text.html) -->
|
|
947
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown-value-text.html -->
|
|
948
|
+
<div style="max-width: 350px;">
|
|
949
|
+
<auro-counter-group isDropdown>
|
|
950
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
951
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
952
|
+
<div slot="valueText">Custom value text</div>
|
|
953
|
+
<div slot="label"></div>
|
|
954
|
+
<auro-counter>
|
|
1001
955
|
Adults
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
956
|
+
<span slot="description">18 years or older</span>
|
|
957
|
+
</auro-counter>
|
|
958
|
+
<auro-counter>
|
|
1005
959
|
Children
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
960
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
961
|
+
</auro-counter>
|
|
962
|
+
<auro-counter>
|
|
1009
963
|
Lap Infants
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
964
|
+
<span slot="description">Under 2 years</span>
|
|
965
|
+
</auro-counter>
|
|
966
|
+
</auro-counter-group>
|
|
967
|
+
</div>
|
|
968
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1015
969
|
</div>
|
|
1016
970
|
<auro-accordion alignRight>
|
|
1017
|
-
|
|
971
|
+
<span slot="trigger">See code</span>
|
|
1018
972
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-value-text.html) -->
|
|
1019
973
|
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-value-text.html -->
|
|
1020
974
|
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
<auro-counter>
|
|
975
|
+
<pre class="language-html"><code class="language-html"><div style="max-width: 350px;">
|
|
976
|
+
<auro-counter-group isDropdown>
|
|
977
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
978
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
979
|
+
<div slot="valueText">Custom value text</div>
|
|
980
|
+
<div slot="label"></div>
|
|
981
|
+
<auro-counter>
|
|
1029
982
|
Adults
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
983
|
+
<span slot="description">18 years or older</span>
|
|
984
|
+
</auro-counter>
|
|
985
|
+
<auro-counter>
|
|
1033
986
|
Children
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
987
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
988
|
+
</auro-counter>
|
|
989
|
+
<auro-counter>
|
|
1037
990
|
Lap Infants
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
```
|
|
991
|
+
<span slot="description">Under 2 years</span>
|
|
992
|
+
</auro-counter>
|
|
993
|
+
</auro-counter-group>
|
|
994
|
+
</div></code></pre>
|
|
1043
995
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1044
996
|
</auro-accordion>
|
|
1045
997
|
|
|
@@ -1052,46 +1004,42 @@ Listen for `input` events to react to user interactions. Open the browser consol
|
|
|
1052
1004
|
This event fires both on individual counter changes and when the counter group value changes. The event detail contains the current values of all counters in the group.
|
|
1053
1005
|
|
|
1054
1006
|
<div class="exampleWrapper">
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1007
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/events.html) -->
|
|
1008
|
+
<!-- The below content is automatically added from ./../apiExamples/events.html -->
|
|
1009
|
+
<auro-counter-group id="eventExample">
|
|
1010
|
+
<auro-counter>
|
|
1059
1011
|
Adults
|
|
1060
|
-
|
|
1061
|
-
|
|
1012
|
+
</auro-counter>
|
|
1013
|
+
<auro-counter>
|
|
1062
1014
|
Children
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1015
|
+
</auro-counter>
|
|
1016
|
+
</auro-counter-group>
|
|
1017
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1066
1018
|
</div>
|
|
1067
1019
|
<auro-accordion alignRight>
|
|
1068
|
-
|
|
1020
|
+
<span slot="trigger">See code</span>
|
|
1069
1021
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/events.html) -->
|
|
1070
1022
|
<!-- The below code snippet is automatically added from ./../apiExamples/events.html -->
|
|
1071
1023
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
<auro-counter>
|
|
1024
|
+
<pre class="language-html"><code class="language-html"><auro-counter-group id="eventExample">
|
|
1025
|
+
<auro-counter>
|
|
1075
1026
|
Adults
|
|
1076
|
-
|
|
1077
|
-
|
|
1027
|
+
</auro-counter>
|
|
1028
|
+
<auro-counter>
|
|
1078
1029
|
Children
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
```
|
|
1030
|
+
</auro-counter>
|
|
1031
|
+
</auro-counter-group></code></pre>
|
|
1082
1032
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1083
1033
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/events.js) -->
|
|
1084
1034
|
<!-- The below code snippet is automatically added from ./../apiExamples/events.js -->
|
|
1085
1035
|
|
|
1086
|
-
|
|
1087
|
-
export function eventCounterExample() {
|
|
1036
|
+
<pre class="language-js"><code class="language-js">export function eventCounterExample() {
|
|
1088
1037
|
const counter = document.getElementById('eventExample');
|
|
1089
|
-
|
|
1090
|
-
counter.addEventListener('input', (event)
|
|
1038
|
+
|
|
1039
|
+
counter.addEventListener('input', (event) => {
|
|
1091
1040
|
console.log(`Values updated: ${JSON.stringify(event.detail)}`);
|
|
1092
1041
|
});
|
|
1093
|
-
}
|
|
1094
|
-
```
|
|
1042
|
+
}</code></pre>
|
|
1095
1043
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1096
1044
|
</auro-accordion>
|
|
1097
1045
|
|
|
@@ -1102,39 +1050,37 @@ export function eventCounterExample() {
|
|
|
1102
1050
|
This example demonstrates the use of all available counter properties.
|
|
1103
1051
|
|
|
1104
1052
|
<div class="exampleWrapper">
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1053
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/api-properties.html) -->
|
|
1054
|
+
<!-- The below content is automatically added from ./../apiExamples/api-properties.html -->
|
|
1055
|
+
<!-- Example of all counter properties -->
|
|
1056
|
+
<auro-counter-group>
|
|
1057
|
+
<!-- Basic counter with min/max -->
|
|
1058
|
+
<auro-counter min="1" max="5" value="2">
|
|
1111
1059
|
Min 1, Max 5
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1060
|
+
</auro-counter>
|
|
1061
|
+
<!-- Disabled counter -->
|
|
1062
|
+
<auro-counter disabled value="0">
|
|
1115
1063
|
Disabled counter
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1064
|
+
</auro-counter>
|
|
1065
|
+
</auro-counter-group>
|
|
1066
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1119
1067
|
</div>
|
|
1120
1068
|
<auro-accordion alignRight>
|
|
1121
|
-
|
|
1069
|
+
<span slot="trigger">See code</span>
|
|
1122
1070
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/api-properties.html) -->
|
|
1123
1071
|
<!-- The below code snippet is automatically added from ./../apiExamples/api-properties.html -->
|
|
1124
1072
|
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
<auro-counter min="1" max="5" value="2">
|
|
1073
|
+
<pre class="language-html"><code class="language-html"><!-- Example of all counter properties -->
|
|
1074
|
+
<auro-counter-group>
|
|
1075
|
+
<!-- Basic counter with min/max -->
|
|
1076
|
+
<auro-counter min="1" max="5" value="2">
|
|
1130
1077
|
Min 1, Max 5
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1078
|
+
</auro-counter>
|
|
1079
|
+
<!-- Disabled counter -->
|
|
1080
|
+
<auro-counter disabled value="0">
|
|
1134
1081
|
Disabled counter
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
```
|
|
1082
|
+
</auro-counter>
|
|
1083
|
+
</auro-counter-group></code></pre>
|
|
1138
1084
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1139
1085
|
</auro-accordion>
|
|
1140
1086
|
|
|
@@ -1143,43 +1089,41 @@ This example demonstrates the use of all available counter properties.
|
|
|
1143
1089
|
This example demonstrates the use of all available counter group properties.
|
|
1144
1090
|
|
|
1145
1091
|
<div class="exampleWrapper">
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1092
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/api-group-properties.html) -->
|
|
1093
|
+
<!-- The below content is automatically added from ./../apiExamples/api-group-properties.html -->
|
|
1094
|
+
<!-- Example of counter-group properties -->
|
|
1095
|
+
<auro-counter-group max="10" min="2" isDropdown>
|
|
1096
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
1097
|
+
<div slot="label">Group with all properties</div>
|
|
1098
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
1099
|
+
<div slot="valueText">Custom total display</div>
|
|
1100
|
+
<auro-counter>
|
|
1155
1101
|
Counter 1
|
|
1156
|
-
|
|
1157
|
-
|
|
1102
|
+
</auro-counter>
|
|
1103
|
+
<auro-counter>
|
|
1158
1104
|
Counter 2
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1105
|
+
</auro-counter>
|
|
1106
|
+
</auro-counter-group>
|
|
1107
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1162
1108
|
</div>
|
|
1163
1109
|
<auro-accordion alignRight>
|
|
1164
|
-
|
|
1110
|
+
<span slot="trigger">See code</span>
|
|
1165
1111
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/api-group-properties.html) -->
|
|
1166
1112
|
<!-- The below code snippet is automatically added from ./../apiExamples/api-group-properties.html -->
|
|
1167
1113
|
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
<auro-counter>
|
|
1114
|
+
<pre class="language-html"><code class="language-html"><!-- Example of counter-group properties -->
|
|
1115
|
+
<auro-counter-group max="10" min="2" isDropdown>
|
|
1116
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
1117
|
+
<div slot="label">Group with all properties</div>
|
|
1118
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
1119
|
+
<div slot="valueText">Custom total display</div>
|
|
1120
|
+
<auro-counter>
|
|
1176
1121
|
Counter 1
|
|
1177
|
-
|
|
1178
|
-
|
|
1122
|
+
</auro-counter>
|
|
1123
|
+
<auro-counter>
|
|
1179
1124
|
Counter 2
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
```
|
|
1125
|
+
</auro-counter>
|
|
1126
|
+
</auro-counter-group></code></pre>
|
|
1183
1127
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1184
1128
|
</auro-accordion>
|
|
1185
1129
|
|
|
@@ -1188,47 +1132,45 @@ This example demonstrates the use of all available counter group properties.
|
|
|
1188
1132
|
All available slots for both components.
|
|
1189
1133
|
|
|
1190
1134
|
<div class="exampleWrapper">
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1135
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/api-slots.html) -->
|
|
1136
|
+
<!-- The below content is automatically added from ./../apiExamples/api-slots.html -->
|
|
1137
|
+
<!-- Example of all available slots -->
|
|
1138
|
+
<auro-counter-group isDropdown>
|
|
1139
|
+
<!-- Group slots -->
|
|
1140
|
+
<div slot="label">Group with all slots</div>
|
|
1141
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
1142
|
+
<div slot="helpText">Help text appears below the group</div>
|
|
1143
|
+
<div slot="valueText">Custom value display</div>
|
|
1144
|
+
<!-- Counter with all slots -->
|
|
1145
|
+
<auro-counter>
|
|
1202
1146
|
Default slot content
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1147
|
+
<span slot="ariaLabel.minus">Custom Minus Button Label</span>
|
|
1148
|
+
<span slot="ariaLabel.plus">Custom Plus Button Label</span>
|
|
1149
|
+
<span slot="description">Description slot content</span>
|
|
1150
|
+
</auro-counter>
|
|
1151
|
+
</auro-counter-group>
|
|
1152
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1209
1153
|
</div>
|
|
1210
1154
|
<auro-accordion alignRight>
|
|
1211
|
-
|
|
1155
|
+
<span slot="trigger">See code</span>
|
|
1212
1156
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/api-slots.html) -->
|
|
1213
1157
|
<!-- The below code snippet is automatically added from ./../apiExamples/api-slots.html -->
|
|
1214
1158
|
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
<auro-counter>
|
|
1159
|
+
<pre class="language-html"><code class="language-html"><!-- Example of all available slots -->
|
|
1160
|
+
<auro-counter-group isDropdown>
|
|
1161
|
+
<!-- Group slots -->
|
|
1162
|
+
<div slot="label">Group with all slots</div>
|
|
1163
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
1164
|
+
<div slot="helpText">Help text appears below the group</div>
|
|
1165
|
+
<div slot="valueText">Custom value display</div>
|
|
1166
|
+
<!-- Counter with all slots -->
|
|
1167
|
+
<auro-counter>
|
|
1225
1168
|
Default slot content
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
```
|
|
1169
|
+
<span slot="ariaLabel.minus">Custom Minus Button Label</span>
|
|
1170
|
+
<span slot="ariaLabel.plus">Custom Plus Button Label</span>
|
|
1171
|
+
<span slot="description">Description slot content</span>
|
|
1172
|
+
</auro-counter>
|
|
1173
|
+
</auro-counter-group></code></pre>
|
|
1232
1174
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1233
1175
|
</auro-accordion>
|
|
1234
1176
|
|
|
@@ -1237,61 +1179,57 @@ All available slots for both components.
|
|
|
1237
1179
|
The element used within an `auro-dialog`.
|
|
1238
1180
|
|
|
1239
1181
|
<div class="exampleWrapper">
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1182
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-dialog.html) -->
|
|
1183
|
+
<!-- The below content is automatically added from ./../apiExamples/in-dialog.html -->
|
|
1184
|
+
<div>
|
|
1185
|
+
<auro-button id="counter-dialog-opener">Counter Group in Dialog</auro-button>
|
|
1186
|
+
<auro-dialog id="counter-dialog">
|
|
1187
|
+
<span slot="header">Counter Group in Dialog</span>
|
|
1188
|
+
<div slot="content">
|
|
1189
|
+
<auro-counter-group isDropdown>
|
|
1190
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
1191
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
1192
|
+
<div slot="label">Counter Group</div>
|
|
1193
|
+
<div slot="helpText">Select a value</div>
|
|
1194
|
+
<auro-counter>Counter 1</auro-counter>
|
|
1195
|
+
<auro-counter>Counter 2</auro-counter>
|
|
1196
|
+
</auro-counter-group>
|
|
1197
|
+
</div>
|
|
1198
|
+
</auro-dialog>
|
|
1199
|
+
</div>
|
|
1200
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1259
1201
|
</div>
|
|
1260
1202
|
<auro-accordion alignRight>
|
|
1261
|
-
|
|
1203
|
+
<span slot="trigger">See code</span>
|
|
1262
1204
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.html) -->
|
|
1263
1205
|
<!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.html -->
|
|
1264
1206
|
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
</div>
|
|
1282
|
-
```
|
|
1207
|
+
<pre class="language-html"><code class="language-html"><div>
|
|
1208
|
+
<auro-button id="counter-dialog-opener">Counter Group in Dialog</auro-button>
|
|
1209
|
+
<auro-dialog id="counter-dialog">
|
|
1210
|
+
<span slot="header">Counter Group in Dialog</span>
|
|
1211
|
+
<div slot="content">
|
|
1212
|
+
<auro-counter-group isDropdown>
|
|
1213
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
1214
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
1215
|
+
<div slot="label">Counter Group</div>
|
|
1216
|
+
<div slot="helpText">Select a value</div>
|
|
1217
|
+
<auro-counter>Counter 1</auro-counter>
|
|
1218
|
+
<auro-counter>Counter 2</auro-counter>
|
|
1219
|
+
</auro-counter-group>
|
|
1220
|
+
</div>
|
|
1221
|
+
</auro-dialog>
|
|
1222
|
+
</div></code></pre>
|
|
1283
1223
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1284
1224
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.js) -->
|
|
1285
1225
|
<!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.js -->
|
|
1286
1226
|
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
document.querySelector("#counter-dialog-opener").addEventListener("click", () => {
|
|
1227
|
+
<pre class="language-js"><code class="language-js">export function inDialogExample() {
|
|
1228
|
+
document.querySelector("#counter-dialog-opener").addEventListener("click", () => {
|
|
1290
1229
|
const dialog = document.querySelector("#counter-dialog");
|
|
1291
1230
|
dialog.open = true;
|
|
1292
1231
|
});
|
|
1293
|
-
}
|
|
1294
|
-
```
|
|
1232
|
+
};</code></pre>
|
|
1295
1233
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1296
1234
|
</auro-accordion>
|
|
1297
1235
|
|
|
@@ -1300,56 +1238,53 @@ export function inDialogExample() {
|
|
|
1300
1238
|
The element used within an `auro-drawer`.
|
|
1301
1239
|
|
|
1302
1240
|
<div class="exampleWrapper">
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1241
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-drawer.html) -->
|
|
1242
|
+
<!-- The below content is automatically added from ./../apiExamples/in-drawer.html -->
|
|
1243
|
+
<div>
|
|
1244
|
+
<auro-button id="counter-drawer-opener">Counter Group in Drawer</auro-button>
|
|
1245
|
+
<auro-drawer id="counter-drawer">
|
|
1246
|
+
<span slot="header">Counter Group in Drawer</span>
|
|
1247
|
+
<div slot="content">
|
|
1248
|
+
<auro-counter-group isDropdown>
|
|
1249
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
1250
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
1251
|
+
<div slot="label">Counter Group</div>
|
|
1252
|
+
<div slot="helpText">Select a value</div>
|
|
1253
|
+
<auro-counter>Counter 1</auro-counter>
|
|
1254
|
+
<auro-counter>Counter 2</auro-counter>
|
|
1255
|
+
</auro-counter-group>
|
|
1256
|
+
</div>
|
|
1257
|
+
</auro-drawer>
|
|
1258
|
+
</div>
|
|
1259
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1322
1260
|
</div>
|
|
1323
1261
|
<auro-accordion alignRight>
|
|
1324
|
-
|
|
1262
|
+
<span slot="trigger">See code</span>
|
|
1325
1263
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.html) -->
|
|
1326
1264
|
<!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.html -->
|
|
1327
1265
|
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
</div>
|
|
1345
|
-
```
|
|
1266
|
+
<pre class="language-html"><code class="language-html"><div>
|
|
1267
|
+
<auro-button id="counter-drawer-opener">Counter Group in Drawer</auro-button>
|
|
1268
|
+
<auro-drawer id="counter-drawer">
|
|
1269
|
+
<span slot="header">Counter Group in Drawer</span>
|
|
1270
|
+
<div slot="content">
|
|
1271
|
+
<auro-counter-group isDropdown>
|
|
1272
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
1273
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
1274
|
+
<div slot="label">Counter Group</div>
|
|
1275
|
+
<div slot="helpText">Select a value</div>
|
|
1276
|
+
<auro-counter>Counter 1</auro-counter>
|
|
1277
|
+
<auro-counter>Counter 2</auro-counter>
|
|
1278
|
+
</auro-counter-group>
|
|
1279
|
+
</div>
|
|
1280
|
+
</auro-drawer>
|
|
1281
|
+
</div></code></pre>
|
|
1346
1282
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1347
1283
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.js) -->
|
|
1348
1284
|
<!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.js -->
|
|
1349
1285
|
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
document.querySelector("#counter-drawer-opener").addEventListener("click", () => {
|
|
1286
|
+
<pre class="language-js"><code class="language-js">export function inDrawerExample() {
|
|
1287
|
+
document.querySelector("#counter-drawer-opener").addEventListener("click", () => {
|
|
1353
1288
|
const drawer = document.querySelector("#counter-drawer");
|
|
1354
1289
|
if (drawer.hasAttribute('open')) {
|
|
1355
1290
|
drawer.removeAttribute('open');
|
|
@@ -1357,8 +1292,7 @@ export function inDrawerExample() {
|
|
|
1357
1292
|
drawer.setAttribute('open', true);
|
|
1358
1293
|
}
|
|
1359
1294
|
});
|
|
1360
|
-
}
|
|
1361
|
-
```
|
|
1295
|
+
};</code></pre>
|
|
1362
1296
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1363
1297
|
</auro-accordion>
|
|
1364
1298
|
|
|
@@ -1369,9 +1303,8 @@ The component may be restyled by changing the values of the following token(s).
|
|
|
1369
1303
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
1370
1304
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
1371
1305
|
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1306
|
+
<pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
1307
|
+
|
|
1375
1308
|
:host(:not([ondark])),
|
|
1376
1309
|
:host(:not([appearance="inverse"])) {
|
|
1377
1310
|
/* Snowflake Dropdown Tokens */
|
|
@@ -1382,7 +1315,7 @@ The component may be restyled by changing the values of the following token(s).
|
|
|
1382
1315
|
--ds-auro-counter-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
1383
1316
|
--ds-auro-counter-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
|
|
1384
1317
|
--ds-auro-counter-outline-color: transparent;
|
|
1385
|
-
|
|
1318
|
+
|
|
1386
1319
|
/* Classic Tokens */
|
|
1387
1320
|
--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background, #{v.$ds-advanced-color-button-tertiary-background});
|
|
1388
1321
|
--ds-auro-counter-control-border-color: var(--ds-advanced-color-state-focused, #{v.$ds-advanced-color-state-focused});
|
|
@@ -1391,7 +1324,7 @@ The component may be restyled by changing the values of the following token(s).
|
|
|
1391
1324
|
--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
1392
1325
|
--ds-auro-counter-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
|
|
1393
1326
|
}
|
|
1394
|
-
|
|
1327
|
+
|
|
1395
1328
|
:host([ondark]),
|
|
1396
1329
|
:host([appearance="inverse"]) {
|
|
1397
1330
|
/* Snowflake Dropdown Tokens */
|
|
@@ -1402,7 +1335,7 @@ The component may be restyled by changing the values of the following token(s).
|
|
|
1402
1335
|
--ds-auro-counter-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
1403
1336
|
--ds-auro-counter-error-icon-color: var(--ds-advanced-color-state-error-inverse, #{v.$ds-advanced-color-state-error-inverse});
|
|
1404
1337
|
--ds-auro-counter-outline-color: transparent;
|
|
1405
|
-
|
|
1338
|
+
|
|
1406
1339
|
/* Classic Tokens */
|
|
1407
1340
|
--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background-inverse, #{v.$ds-advanced-color-button-tertiary-background-inverse});
|
|
1408
1341
|
--ds-auro-counter-control-border-color: var(--ds-advanced-color-state-focused-inverse, #{v.$ds-advanced-color-state-focused-inverse});
|
|
@@ -1410,6 +1343,5 @@ The component may be restyled by changing the values of the following token(s).
|
|
|
1410
1343
|
--ds-auro-counter-icon-color: var(--ds-advanced-color-button-tertiary-text-inverse, #{v.$ds-advanced-color-button-tertiary-text-inverse});
|
|
1411
1344
|
--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
1412
1345
|
--ds-auro-counter-divider-color: var(--ds-basic-color-border-divider-inverse, #{v.$ds-basic-color-border-divider-inverse});
|
|
1413
|
-
}
|
|
1414
|
-
```
|
|
1346
|
+
}</code></pre>
|
|
1415
1347
|
<!-- AURO-GENERATED-CONTENT:END -->
|