@aurodesignsystem-dev/auro-formkit 0.0.0-pr593.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/CHANGELOG.md +5 -0
- package/LICENSE +201 -0
- package/NOTICE +2 -0
- package/README.md +314 -0
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +39 -0
- package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
- package/components/bibtemplate/dist/index.d.ts +2 -0
- package/components/bibtemplate/dist/index.js +709 -0
- package/components/bibtemplate/dist/registered.js +709 -0
- package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
- package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
- package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
- package/components/checkbox/README.md +142 -0
- package/components/checkbox/demo/api.html +55 -0
- package/components/checkbox/demo/api.js +17 -0
- package/components/checkbox/demo/api.md +401 -0
- package/components/checkbox/demo/api.min.js +1833 -0
- package/components/checkbox/demo/index.html +51 -0
- package/components/checkbox/demo/index.js +8 -0
- package/components/checkbox/demo/index.md +327 -0
- package/components/checkbox/demo/index.min.js +1808 -0
- package/components/checkbox/demo/readme.html +50 -0
- package/components/checkbox/demo/readme.md +142 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts +166 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +129 -0
- package/components/checkbox/dist/helptextVersion.d.ts +2 -0
- package/components/checkbox/dist/index.d.ts +3 -0
- package/components/checkbox/dist/index.js +1757 -0
- package/components/checkbox/dist/registered.js +1758 -0
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
- package/components/checkbox/dist/styles/color-css.d.ts +2 -0
- package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
- package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
- package/components/combobox/README.md +152 -0
- package/components/combobox/demo/api.html +57 -0
- package/components/combobox/demo/api.js +36 -0
- package/components/combobox/demo/api.md +1209 -0
- package/components/combobox/demo/api.min.js +15117 -0
- package/components/combobox/demo/index.html +56 -0
- package/components/combobox/demo/index.js +26 -0
- package/components/combobox/demo/index.md +621 -0
- package/components/combobox/demo/index.min.js +14971 -0
- package/components/combobox/demo/readme.html +50 -0
- package/components/combobox/demo/readme.md +152 -0
- package/components/combobox/dist/auro-combobox.d.ts +384 -0
- package/components/combobox/dist/bibtemplateVersion.d.ts +2 -0
- package/components/combobox/dist/dropdownVersion.d.ts +2 -0
- package/components/combobox/dist/index.d.ts +2 -0
- package/components/combobox/dist/index.js +13554 -0
- package/components/combobox/dist/inputVersion.d.ts +2 -0
- package/components/combobox/dist/registered.js +13556 -0
- package/components/combobox/dist/styles/style-css.d.ts +2 -0
- package/components/counter/README.md +146 -0
- package/components/counter/demo/api.html +54 -0
- package/components/counter/demo/api.js +20 -0
- package/components/counter/demo/api.md +584 -0
- package/components/counter/demo/api.min.js +7111 -0
- package/components/counter/demo/index.html +54 -0
- package/components/counter/demo/index.js +21 -0
- package/components/counter/demo/index.md +244 -0
- package/components/counter/demo/index.min.js +7075 -0
- package/components/counter/demo/readme.html +50 -0
- package/components/counter/demo/readme.md +146 -0
- package/components/counter/dist/auro-counter-button.d.ts +12 -0
- package/components/counter/dist/auro-counter-group.d.ts +235 -0
- package/components/counter/dist/auro-counter-wrapper.d.ts +22 -0
- package/components/counter/dist/auro-counter.d.ts +97 -0
- package/components/counter/dist/bibtemplateVersion.d.ts +2 -0
- package/components/counter/dist/dropdownVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +2 -0
- package/components/counter/dist/index.d.ts +3 -0
- package/components/counter/dist/index.js +7018 -0
- package/components/counter/dist/registered.js +7019 -0
- package/components/counter/dist/styles/color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
- package/components/counter/dist/styles/style-css.d.ts +2 -0
- package/components/counter/dist/styles/tokens-css.d.ts +2 -0
- package/components/datepicker/README.md +140 -0
- package/components/datepicker/demo/api.html +57 -0
- package/components/datepicker/demo/api.js +35 -0
- package/components/datepicker/demo/api.md +1479 -0
- package/components/datepicker/demo/api.min.js +24534 -0
- package/components/datepicker/demo/index.html +56 -0
- package/components/datepicker/demo/index.js +19 -0
- package/components/datepicker/demo/index.md +112 -0
- package/components/datepicker/demo/index.min.js +24255 -0
- package/components/datepicker/demo/readme.html +50 -0
- package/components/datepicker/demo/readme.md +140 -0
- package/components/datepicker/dist/auro-calendar-cell.d.ts +163 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
- package/components/datepicker/dist/auro-calendar.d.ts +133 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +466 -0
- package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
- package/components/datepicker/dist/buttonVersion.d.ts +2 -0
- package/components/datepicker/dist/dropdownVersion.d.ts +2 -0
- package/components/datepicker/dist/index.d.ts +2 -0
- package/components/datepicker/dist/index.js +24185 -0
- package/components/datepicker/dist/inputVersion.d.ts +2 -0
- package/components/datepicker/dist/popoverVersion.d.ts +2 -0
- package/components/datepicker/dist/registered.js +24185 -0
- package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
- package/components/datepicker/dist/utilities.d.ts +78 -0
- package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
- package/components/dropdown/README.md +144 -0
- package/components/dropdown/demo/api.html +57 -0
- package/components/dropdown/demo/api.js +21 -0
- package/components/dropdown/demo/api.md +1434 -0
- package/components/dropdown/demo/api.min.js +3826 -0
- package/components/dropdown/demo/index.html +55 -0
- package/components/dropdown/demo/index.js +19 -0
- package/components/dropdown/demo/index.md +510 -0
- package/components/dropdown/demo/index.min.js +3789 -0
- package/components/dropdown/demo/readme.html +50 -0
- package/components/dropdown/demo/readme.md +144 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +406 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +46 -0
- package/components/dropdown/dist/dropdownVersion.d.ts +2 -0
- package/components/dropdown/dist/helptextVersion.d.ts +2 -0
- package/components/dropdown/dist/iconVersion.d.ts +2 -0
- package/components/dropdown/dist/index.d.ts +2 -0
- package/components/dropdown/dist/index.js +3734 -0
- package/components/dropdown/dist/registered.js +3734 -0
- package/components/dropdown/dist/styles/bibColors-css.d.ts +2 -0
- package/components/dropdown/dist/styles/bibStyles-css.d.ts +2 -0
- package/components/dropdown/dist/styles/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
- package/components/form/README.md +142 -0
- package/components/form/demo/api.html +49 -0
- package/components/form/demo/api.js +3 -0
- package/components/form/demo/api.md +51 -0
- package/components/form/demo/api.min.js +638 -0
- package/components/form/demo/autocomplete.html +15 -0
- package/components/form/demo/index.html +50 -0
- package/components/form/demo/index.js +4 -0
- package/components/form/demo/index.md +403 -0
- package/components/form/demo/index.min.js +639 -0
- package/components/form/demo/readme.html +50 -0
- package/components/form/demo/readme.md +142 -0
- package/components/form/demo/registerDemoDeps.js +23 -0
- package/components/form/demo/working.html +118 -0
- package/components/form/dist/auro-form.d.ts +223 -0
- package/components/form/dist/index.d.ts +2 -0
- package/components/form/dist/index.js +614 -0
- package/components/form/dist/registered.d.ts +1 -0
- package/components/form/dist/registered.js +614 -0
- package/components/form/dist/styles/style-css.d.ts +2 -0
- package/components/helptext/dist/auro-helptext.d.ts +61 -0
- package/components/helptext/dist/index.d.ts +2 -0
- package/components/helptext/dist/index.js +209 -0
- package/components/helptext/dist/registered.js +209 -0
- package/components/helptext/dist/styles/color-css.d.ts +2 -0
- package/components/helptext/dist/styles/style-css.d.ts +2 -0
- package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
- package/components/input/README.md +135 -0
- package/components/input/demo/api.html +42 -0
- package/components/input/demo/api.js +29 -0
- package/components/input/demo/api.md +1252 -0
- package/components/input/demo/api.min.js +7238 -0
- package/components/input/demo/index.html +43 -0
- package/components/input/demo/index.js +20 -0
- package/components/input/demo/index.md +202 -0
- package/components/input/demo/index.min.js +7157 -0
- package/components/input/demo/readme.html +50 -0
- package/components/input/demo/readme.md +135 -0
- package/components/input/dist/auro-input.d.ts +31 -0
- package/components/input/dist/base-input.d.ts +512 -0
- package/components/input/dist/buttonVersion.d.ts +2 -0
- package/components/input/dist/helptextVersion.d.ts +2 -0
- package/components/input/dist/i18n.d.ts +18 -0
- package/components/input/dist/iconVersion.d.ts +2 -0
- package/components/input/dist/index.d.ts +2 -0
- package/components/input/dist/index.js +7063 -0
- package/components/input/dist/registered.js +7063 -0
- package/components/input/dist/styles/borders-css.d.ts +2 -0
- package/components/input/dist/styles/color-css.d.ts +2 -0
- package/components/input/dist/styles/input-css.d.ts +2 -0
- package/components/input/dist/styles/label-css.d.ts +2 -0
- package/components/input/dist/styles/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/style-css.d.ts +2 -0
- package/components/input/dist/styles/tokens-css.d.ts +2 -0
- package/components/input/dist/utilities.d.ts +25 -0
- package/components/menu/README.md +145 -0
- package/components/menu/demo/api.html +55 -0
- package/components/menu/demo/api.js +27 -0
- package/components/menu/demo/api.md +954 -0
- package/components/menu/demo/api.min.js +1538 -0
- package/components/menu/demo/index.html +52 -0
- package/components/menu/demo/index.js +28 -0
- package/components/menu/demo/index.md +61 -0
- package/components/menu/demo/index.min.js +1484 -0
- package/components/menu/demo/readme.html +50 -0
- package/components/menu/demo/readme.md +145 -0
- package/components/menu/dist/auro-menu-utils.d.ts +42 -0
- package/components/menu/dist/auro-menu.d.ts +205 -0
- package/components/menu/dist/auro-menuoption.d.ts +63 -0
- package/components/menu/dist/dropdownVersion.d.ts +2 -0
- package/components/menu/dist/iconVersion.d.ts +2 -0
- package/components/menu/dist/index.d.ts +4 -0
- package/components/menu/dist/index.js +1426 -0
- package/components/menu/dist/registered.js +1427 -0
- package/components/menu/dist/styles/color-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/tokens-css.d.ts +2 -0
- package/components/radio/README.md +137 -0
- package/components/radio/demo/api.html +53 -0
- package/components/radio/demo/api.js +19 -0
- package/components/radio/demo/api.md +562 -0
- package/components/radio/demo/api.min.js +1944 -0
- package/components/radio/demo/index.html +50 -0
- package/components/radio/demo/index.js +8 -0
- package/components/radio/demo/index.md +150 -0
- package/components/radio/demo/index.min.js +1901 -0
- package/components/radio/demo/readme.html +50 -0
- package/components/radio/demo/readme.md +137 -0
- package/components/radio/dist/auro-radio-group.d.ts +194 -0
- package/components/radio/dist/auro-radio.d.ts +144 -0
- package/components/radio/dist/helptextVersion.d.ts +2 -0
- package/components/radio/dist/index.d.ts +3 -0
- package/components/radio/dist/index.js +1850 -0
- package/components/radio/dist/registered.js +1851 -0
- package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
- package/components/radio/dist/styles/color-css.d.ts +2 -0
- package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
- package/components/radio/dist/styles/style-css.d.ts +2 -0
- package/components/radio/dist/styles/tokens-css.d.ts +2 -0
- package/components/select/README.md +144 -0
- package/components/select/demo/api.html +71 -0
- package/components/select/demo/api.js +35 -0
- package/components/select/demo/api.md +1313 -0
- package/components/select/demo/api.min.js +7763 -0
- package/components/select/demo/index.html +66 -0
- package/components/select/demo/index.js +9 -0
- package/components/select/demo/index.md +815 -0
- package/components/select/demo/index.min.js +7651 -0
- package/components/select/demo/readme.html +50 -0
- package/components/select/demo/readme.md +144 -0
- package/components/select/dist/auro-select.d.ts +359 -0
- package/components/select/dist/bibtemplateVersion.d.ts +2 -0
- package/components/select/dist/dropdownVersion.d.ts +2 -0
- package/components/select/dist/index.d.ts +2 -0
- package/components/select/dist/index.js +6300 -0
- package/components/select/dist/registered.js +6300 -0
- package/components/select/dist/styles/style-css.d.ts +2 -0
- package/package.json +217 -0
- package/packages/build-tools/src/postinstall.mjs +12 -0
|
@@ -0,0 +1,584 @@
|
|
|
1
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/api.md) -->
|
|
2
|
+
<!-- The below content is automatically added from ./../docs/api.md -->
|
|
3
|
+
|
|
4
|
+
# auro-counter
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|------------|------------|-----------|-------------|--------------------------------------------------|
|
|
10
|
+
| [disabled](#disabled) | `disabled` | `boolean` | false | Indicates if the counter is disabled. |
|
|
11
|
+
| [max](#max) | `max` | `number` | 9 | The maximum value for the counter. |
|
|
12
|
+
| [min](#min) | `min` | `number` | 0 | The minimum value for the counter. |
|
|
13
|
+
| [onDark](#onDark) | `onDark` | `boolean` | false | If declared, the counter will be rendered with onDark styles. |
|
|
14
|
+
| [validity](#validity) | `validity` | `string` | "undefined" | The validity state of the counter. |
|
|
15
|
+
| [value](#value) | `value` | `number` | "undefined" | The current value of the counter. |
|
|
16
|
+
|
|
17
|
+
## Methods
|
|
18
|
+
|
|
19
|
+
| Method | Type | Description |
|
|
20
|
+
|-------------|----------------------------------------|--------------------------------------------------|
|
|
21
|
+
| [decrement](#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. |
|
|
22
|
+
| [increment](#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. |
|
|
23
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
24
|
+
|
|
25
|
+
## Events
|
|
26
|
+
|
|
27
|
+
| Event | Type |
|
|
28
|
+
|---------|------------------------------------------------|
|
|
29
|
+
| [input](#input) | `CustomEvent<{ value: number \| undefined; }>` |
|
|
30
|
+
|
|
31
|
+
## Slots
|
|
32
|
+
|
|
33
|
+
| Name | Description |
|
|
34
|
+
|---------------|--------------------------------------|
|
|
35
|
+
| [default](#default) | Main label content for the counter. |
|
|
36
|
+
| [description](#description) | Descriptive content for the counter. |
|
|
37
|
+
|
|
38
|
+
# auro-counter-group
|
|
39
|
+
|
|
40
|
+
## Properties
|
|
41
|
+
|
|
42
|
+
| Property | Attribute | Type | Default | Description |
|
|
43
|
+
|---------------------------|---------------------------|-----------|----------------|--------------------------------------------------|
|
|
44
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
45
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />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. |
|
|
46
|
+
| [isDropdown](#isDropdown) | `isDropdown` | `boolean` | false | Indicates if the counter group is displayed as a dropdown. |
|
|
47
|
+
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
48
|
+
| [max](#max) | `max` | `number` | "undefined" | The maximum value allowed for the whole group of counters. |
|
|
49
|
+
| [min](#min) | `min` | `number` | "undefined" | The minimum value allowed for the whole group of counters. |
|
|
50
|
+
| [noFlip](#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`. |
|
|
51
|
+
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
52
|
+
| [onDark](#onDark) | `onDark` | `boolean` | false | If declared, counters and dropdown will be rendered with onDark styles. |
|
|
53
|
+
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
|
|
54
|
+
| [total](#total) | `total` | `number` | "undefined" | The total value of the counters. |
|
|
55
|
+
| [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
|
|
56
|
+
| [value](#value) | `value` | `object` | "undefined" | The current individual values of the nested counters. |
|
|
57
|
+
|
|
58
|
+
## Methods
|
|
59
|
+
|
|
60
|
+
| Method | Type | Description |
|
|
61
|
+
|------------|----------------------------------------|--------------------------------------------------|
|
|
62
|
+
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
63
|
+
|
|
64
|
+
## Events
|
|
65
|
+
|
|
66
|
+
| Event | Type |
|
|
67
|
+
|---------|--------------------------------------------------|
|
|
68
|
+
| [input](#input) | `CustomEvent<{ total: number \| undefined; value: {} \| undefined; }>` |
|
|
69
|
+
|
|
70
|
+
## Slots
|
|
71
|
+
|
|
72
|
+
| Name | Description |
|
|
73
|
+
|---------------------------|--------------------------------------------------|
|
|
74
|
+
| `bib.fullscreen.footer` | Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true. |
|
|
75
|
+
| `bib.fullscreen.headline` | Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required. |
|
|
76
|
+
| [default](#default) | Slot for counter elements. |
|
|
77
|
+
| [helpText](#helpText) | Dropdown help text content. Only used when `isDropdown` is true. |
|
|
78
|
+
| [label](#label) | Dropdown label content. Only used when `isDropdown` is true. |
|
|
79
|
+
| [valueText](#valueText) | Dropdown value text display. Only used when `isDropdown` is true. |
|
|
80
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
81
|
+
|
|
82
|
+
## API Examples
|
|
83
|
+
|
|
84
|
+
### Counter
|
|
85
|
+
|
|
86
|
+
#### Min/Max and Value
|
|
87
|
+
<div class="exampleWrapper">
|
|
88
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/counter-minmax.html) -->
|
|
89
|
+
<!-- The below content is automatically added from ./../apiExamples/counter-minmax.html -->
|
|
90
|
+
<auro-counter min="1" max="5" value="2">
|
|
91
|
+
Adults
|
|
92
|
+
<span slot="description">Min: 1, Max: 5</span>
|
|
93
|
+
</auro-counter>
|
|
94
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
95
|
+
</div>
|
|
96
|
+
<auro-accordion alignRight>
|
|
97
|
+
<span slot="trigger">See code</span>
|
|
98
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/counter-minmax.html) -->
|
|
99
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/counter-minmax.html -->
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<auro-counter min="1" max="5" value="2">
|
|
103
|
+
Adults
|
|
104
|
+
<span slot="description">Min: 1, Max: 5</span>
|
|
105
|
+
</auro-counter>
|
|
106
|
+
```
|
|
107
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
108
|
+
</auro-accordion>
|
|
109
|
+
|
|
110
|
+
#### Disabled State
|
|
111
|
+
|
|
112
|
+
<div class="exampleWrapper">
|
|
113
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/counter-disabled.html) -->
|
|
114
|
+
<!-- The below content is automatically added from ./../apiExamples/counter-disabled.html -->
|
|
115
|
+
<auro-counter disabled value="0">
|
|
116
|
+
Disabled counter
|
|
117
|
+
<span slot="description">This counter cannot be modified</span>
|
|
118
|
+
</auro-counter>
|
|
119
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
120
|
+
</div>
|
|
121
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
122
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
123
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
124
|
+
<auro-counter onDark disabled value="0">
|
|
125
|
+
Disabled counter
|
|
126
|
+
<span slot="description">This counter cannot be modified</span>
|
|
127
|
+
</auro-counter>
|
|
128
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
129
|
+
</div>
|
|
130
|
+
<auro-accordion alignRight>
|
|
131
|
+
<span slot="trigger">See code</span>
|
|
132
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/counter-disabled.html) -->
|
|
133
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/counter-disabled.html -->
|
|
134
|
+
|
|
135
|
+
```html
|
|
136
|
+
<auro-counter disabled value="0">
|
|
137
|
+
Disabled counter
|
|
138
|
+
<span slot="description">This counter cannot be modified</span>
|
|
139
|
+
</auro-counter>
|
|
140
|
+
```
|
|
141
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
142
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
143
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
144
|
+
<auro-counter onDark disabled value="0">
|
|
145
|
+
Disabled counter
|
|
146
|
+
<span slot="description">This counter cannot be modified</span>
|
|
147
|
+
</auro-counter>
|
|
148
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
149
|
+
</auro-accordion>
|
|
150
|
+
|
|
151
|
+
### Counter Group
|
|
152
|
+
|
|
153
|
+
#### Group Properties
|
|
154
|
+
All available counter-group properties:
|
|
155
|
+
|
|
156
|
+
<div class="exampleWrapper">
|
|
157
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/api-group-properties.html) -->
|
|
158
|
+
<!-- The below content is automatically added from ./../apiExamples/api-group-properties.html -->
|
|
159
|
+
<!-- Example of counter-group properties -->
|
|
160
|
+
<auro-counter-group max="10" min="2" isDropdown>
|
|
161
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
162
|
+
<div slot="label">Group with all properties</div>
|
|
163
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
164
|
+
<div slot="valueText">Custom total display</div>
|
|
165
|
+
<auro-counter>
|
|
166
|
+
Counter 1
|
|
167
|
+
</auro-counter>
|
|
168
|
+
<auro-counter>
|
|
169
|
+
Counter 2
|
|
170
|
+
</auro-counter>
|
|
171
|
+
</auro-counter-group>
|
|
172
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
173
|
+
</div>
|
|
174
|
+
<auro-accordion alignRight>
|
|
175
|
+
<span slot="trigger">See code</span>
|
|
176
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/api-group-properties.html) -->
|
|
177
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/api-group-properties.html -->
|
|
178
|
+
|
|
179
|
+
```html
|
|
180
|
+
<!-- Example of counter-group properties -->
|
|
181
|
+
<auro-counter-group max="10" min="2" isDropdown>
|
|
182
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
183
|
+
<div slot="label">Group with all properties</div>
|
|
184
|
+
<div slot="helpText">Total must be between 2-10</div>
|
|
185
|
+
<div slot="valueText">Custom total display</div>
|
|
186
|
+
<auro-counter>
|
|
187
|
+
Counter 1
|
|
188
|
+
</auro-counter>
|
|
189
|
+
<auro-counter>
|
|
190
|
+
Counter 2
|
|
191
|
+
</auro-counter>
|
|
192
|
+
</auro-counter-group>
|
|
193
|
+
```
|
|
194
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
195
|
+
</auro-accordion>
|
|
196
|
+
|
|
197
|
+
#### Available Slots
|
|
198
|
+
All available slots for both components:
|
|
199
|
+
|
|
200
|
+
<div class="exampleWrapper">
|
|
201
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/api-slots.html) -->
|
|
202
|
+
<!-- The below content is automatically added from ./../apiExamples/api-slots.html -->
|
|
203
|
+
<!-- Example of all available slots -->
|
|
204
|
+
<auro-counter-group isDropdown>
|
|
205
|
+
<!-- Group slots -->
|
|
206
|
+
<div slot="label">Group with all slots</div>
|
|
207
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
208
|
+
<div slot="helpText">Help text appears below the group</div>
|
|
209
|
+
<div slot="valueText">Custom value display</div>
|
|
210
|
+
<!-- Counter with all slots -->
|
|
211
|
+
<auro-counter>
|
|
212
|
+
Default slot content
|
|
213
|
+
<span slot="description">Description slot content</span>
|
|
214
|
+
</auro-counter>
|
|
215
|
+
</auro-counter-group>
|
|
216
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
217
|
+
</div>
|
|
218
|
+
<auro-accordion alignRight>
|
|
219
|
+
<span slot="trigger">See code</span>
|
|
220
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/api-slots.html) -->
|
|
221
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/api-slots.html -->
|
|
222
|
+
|
|
223
|
+
```html
|
|
224
|
+
<!-- Example of all available slots -->
|
|
225
|
+
<auro-counter-group isDropdown>
|
|
226
|
+
<!-- Group slots -->
|
|
227
|
+
<div slot="label">Group with all slots</div>
|
|
228
|
+
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
229
|
+
<div slot="helpText">Help text appears below the group</div>
|
|
230
|
+
<div slot="valueText">Custom value display</div>
|
|
231
|
+
<!-- Counter with all slots -->
|
|
232
|
+
<auro-counter>
|
|
233
|
+
Default slot content
|
|
234
|
+
<span slot="description">Description slot content</span>
|
|
235
|
+
</auro-counter>
|
|
236
|
+
</auro-counter-group>
|
|
237
|
+
```
|
|
238
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
239
|
+
</auro-accordion>
|
|
240
|
+
|
|
241
|
+
### Event Handling
|
|
242
|
+
Listen for `input` events to react to user interactions.
|
|
243
|
+
|
|
244
|
+
<code id="eventOutput">
|
|
245
|
+
Event values will appear here
|
|
246
|
+
</code><br><br>
|
|
247
|
+
<div class="exampleWrapper">
|
|
248
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/events.html) -->
|
|
249
|
+
<!-- The below content is automatically added from ./../apiExamples/events.html -->
|
|
250
|
+
<auro-counter-group id="eventExample">
|
|
251
|
+
<auro-counter>
|
|
252
|
+
Adults
|
|
253
|
+
</auro-counter>
|
|
254
|
+
<auro-counter>
|
|
255
|
+
Children
|
|
256
|
+
</auro-counter>
|
|
257
|
+
</auro-counter-group>
|
|
258
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
259
|
+
</div>
|
|
260
|
+
<auro-accordion alignRight>
|
|
261
|
+
<span slot="trigger">See code</span>
|
|
262
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/events.html) -->
|
|
263
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/events.html -->
|
|
264
|
+
|
|
265
|
+
```html
|
|
266
|
+
<auro-counter-group id="eventExample">
|
|
267
|
+
<auro-counter>
|
|
268
|
+
Adults
|
|
269
|
+
</auro-counter>
|
|
270
|
+
<auro-counter>
|
|
271
|
+
Children
|
|
272
|
+
</auro-counter>
|
|
273
|
+
</auro-counter-group>
|
|
274
|
+
```
|
|
275
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
276
|
+
----
|
|
277
|
+
|
|
278
|
+
```javascript
|
|
279
|
+
const counter = document.getElementById('eventExample');
|
|
280
|
+
counter.addEventListener('input', (event) => {
|
|
281
|
+
console.log(`Values updated: ${JSON.stringify(event.detail)}`);
|
|
282
|
+
});
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
</auro-accordion>
|
|
286
|
+
|
|
287
|
+
#### Custom Value Display
|
|
288
|
+
<div class="exampleWrapper">
|
|
289
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-value-text.html) -->
|
|
290
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown-value-text.html -->
|
|
291
|
+
<div style="max-width: 350px;">
|
|
292
|
+
<auro-counter-group isDropdown>
|
|
293
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
294
|
+
<div slot="valueText">Custom value text</div>
|
|
295
|
+
<div slot="label"></div>
|
|
296
|
+
<auro-counter>
|
|
297
|
+
Adults
|
|
298
|
+
<span slot="description">18 years or older</span>
|
|
299
|
+
</auro-counter>
|
|
300
|
+
<auro-counter>
|
|
301
|
+
Children
|
|
302
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
303
|
+
</auro-counter>
|
|
304
|
+
<auro-counter>
|
|
305
|
+
Lap Infants
|
|
306
|
+
<span slot="description">Under 2 years</span>
|
|
307
|
+
</auro-counter>
|
|
308
|
+
</auro-counter-group>
|
|
309
|
+
</div>
|
|
310
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
311
|
+
</div>
|
|
312
|
+
<auro-accordion alignRight>
|
|
313
|
+
<span slot="trigger">See code</span>
|
|
314
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-value-text.html) -->
|
|
315
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-value-text.html -->
|
|
316
|
+
|
|
317
|
+
```html
|
|
318
|
+
<div style="max-width: 350px;">
|
|
319
|
+
<auro-counter-group isDropdown>
|
|
320
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
321
|
+
<div slot="valueText">Custom value text</div>
|
|
322
|
+
<div slot="label"></div>
|
|
323
|
+
<auro-counter>
|
|
324
|
+
Adults
|
|
325
|
+
<span slot="description">18 years or older</span>
|
|
326
|
+
</auro-counter>
|
|
327
|
+
<auro-counter>
|
|
328
|
+
Children
|
|
329
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
330
|
+
</auro-counter>
|
|
331
|
+
<auro-counter>
|
|
332
|
+
Lap Infants
|
|
333
|
+
<span slot="description">Under 2 years</span>
|
|
334
|
+
</auro-counter>
|
|
335
|
+
</auro-counter-group>
|
|
336
|
+
</div>
|
|
337
|
+
```
|
|
338
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
339
|
+
</auro-accordion>
|
|
340
|
+
|
|
341
|
+
### Group Max/Min
|
|
342
|
+
|
|
343
|
+
The group counter max or min property sets the value for all counters in the group. If a counter has a max value set, the group max attribute will override it. All increment buttons as a result will be disabled to prevent the group of counters from exceeding the group max.
|
|
344
|
+
|
|
345
|
+
**Example has group max set to 12**
|
|
346
|
+
|
|
347
|
+
<div class="exampleWrapper">
|
|
348
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/group-max.html) -->
|
|
349
|
+
<!-- The below content is automatically added from ./../apiExamples/group-max.html -->
|
|
350
|
+
<auro-counter-group max="12" min="0">
|
|
351
|
+
<auro-counter>
|
|
352
|
+
Short label
|
|
353
|
+
</auro-counter>
|
|
354
|
+
<auro-counter>
|
|
355
|
+
This is an example of the wrapping behavior for a long label
|
|
356
|
+
</auro-counter>
|
|
357
|
+
</auro-counter-group>
|
|
358
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
359
|
+
</div>
|
|
360
|
+
<auro-accordion alignRight>
|
|
361
|
+
<span slot="trigger">See code</span>
|
|
362
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/group-max.html) -->
|
|
363
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/group-max.html -->
|
|
364
|
+
|
|
365
|
+
```html
|
|
366
|
+
<auro-counter-group max="12" min="0">
|
|
367
|
+
<auro-counter>
|
|
368
|
+
Short label
|
|
369
|
+
</auro-counter>
|
|
370
|
+
<auro-counter>
|
|
371
|
+
This is an example of the wrapping behavior for a long label
|
|
372
|
+
</auro-counter>
|
|
373
|
+
</auro-counter-group>
|
|
374
|
+
```
|
|
375
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
376
|
+
</auro-accordion>
|
|
377
|
+
|
|
378
|
+
### Counter Max/Min
|
|
379
|
+
|
|
380
|
+
You can also individually set the max or min value for each counter in a group.
|
|
381
|
+
|
|
382
|
+
**Example has group max set to 12**
|
|
383
|
+
|
|
384
|
+
<div class="exampleWrapper">
|
|
385
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/group-counter-max.html) -->
|
|
386
|
+
<!-- The below content is automatically added from ./../apiExamples/group-counter-max.html -->
|
|
387
|
+
<auro-counter-group max="12" min="0">
|
|
388
|
+
<auro-counter max="5">
|
|
389
|
+
This counter has a max value of 5
|
|
390
|
+
</auro-counter>
|
|
391
|
+
<auro-counter max="8">
|
|
392
|
+
This counter has a max value of 8
|
|
393
|
+
</auro-counter>
|
|
394
|
+
</auro-counter-group>
|
|
395
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
396
|
+
</div>
|
|
397
|
+
<auro-accordion alignRight>
|
|
398
|
+
<span slot="trigger">See code</span>
|
|
399
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/group-counter-max.html) -->
|
|
400
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/group-counter-max.html -->
|
|
401
|
+
|
|
402
|
+
```html
|
|
403
|
+
<auro-counter-group max="12" min="0">
|
|
404
|
+
<auro-counter max="5">
|
|
405
|
+
This counter has a max value of 5
|
|
406
|
+
</auro-counter>
|
|
407
|
+
<auro-counter max="8">
|
|
408
|
+
This counter has a max value of 8
|
|
409
|
+
</auro-counter>
|
|
410
|
+
</auro-counter-group>
|
|
411
|
+
```
|
|
412
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
413
|
+
</auro-accordion>
|
|
414
|
+
|
|
415
|
+
### Customized bib position
|
|
416
|
+
The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement` attributes.
|
|
417
|
+
|
|
418
|
+
- `placement` specifies the preferred position where the bib should appear relative to the trigger.
|
|
419
|
+
- `offset` sets the distance between the trigger and the bib.
|
|
420
|
+
- When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
|
|
421
|
+
- Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
|
|
422
|
+
|
|
423
|
+
<div class="exampleWrapper">
|
|
424
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floaterConfig.html) -->
|
|
425
|
+
<!-- The below content is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
426
|
+
<div style="width: 350px">
|
|
427
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
428
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
429
|
+
<div slot="label">bottome-end bib with 20px offset</div>
|
|
430
|
+
<auro-counter>
|
|
431
|
+
Adults
|
|
432
|
+
<span slot="description">18 years or older</span>
|
|
433
|
+
</auro-counter>
|
|
434
|
+
<auro-counter>
|
|
435
|
+
Children
|
|
436
|
+
<span slot="description">2-17 years</span>
|
|
437
|
+
</auro-counter>
|
|
438
|
+
</auro-counter-group>
|
|
439
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
440
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
441
|
+
<div slot="label">bottome-end bib with 20px offset and noFlip</div>
|
|
442
|
+
<auro-counter>
|
|
443
|
+
Adults
|
|
444
|
+
<span slot="description">18 years or older</span>
|
|
445
|
+
</auro-counter>
|
|
446
|
+
<auro-counter>
|
|
447
|
+
Children
|
|
448
|
+
<span slot="description">2-17 years</span>
|
|
449
|
+
</auro-counter>
|
|
450
|
+
</auro-counter-group>
|
|
451
|
+
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
452
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
453
|
+
<div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
|
|
454
|
+
<auro-counter>
|
|
455
|
+
Adults
|
|
456
|
+
<span slot="description">18 years or older</span>
|
|
457
|
+
</auro-counter>
|
|
458
|
+
<auro-counter>
|
|
459
|
+
Children
|
|
460
|
+
<span slot="description">2-17 years</span>
|
|
461
|
+
</auro-counter>
|
|
462
|
+
</auro-counter-group>
|
|
463
|
+
</div>
|
|
464
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
465
|
+
</div>
|
|
466
|
+
<auro-accordion alignRight>
|
|
467
|
+
<span slot="trigger">See code</span>
|
|
468
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floaterConfig.html) -->
|
|
469
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/floaterConfig.html -->
|
|
470
|
+
|
|
471
|
+
```html
|
|
472
|
+
<div style="width: 350px">
|
|
473
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end">
|
|
474
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
475
|
+
<div slot="label">bottome-end bib with 20px offset</div>
|
|
476
|
+
<auro-counter>
|
|
477
|
+
Adults
|
|
478
|
+
<span slot="description">18 years or older</span>
|
|
479
|
+
</auro-counter>
|
|
480
|
+
<auro-counter>
|
|
481
|
+
Children
|
|
482
|
+
<span slot="description">2-17 years</span>
|
|
483
|
+
</auro-counter>
|
|
484
|
+
</auro-counter-group>
|
|
485
|
+
<auro-counter-group isDropdown offset="20" placement="bottom-end" noFlip>
|
|
486
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
487
|
+
<div slot="label">bottome-end bib with 20px offset and noFlip</div>
|
|
488
|
+
<auro-counter>
|
|
489
|
+
Adults
|
|
490
|
+
<span slot="description">18 years or older</span>
|
|
491
|
+
</auro-counter>
|
|
492
|
+
<auro-counter>
|
|
493
|
+
Children
|
|
494
|
+
<span slot="description">2-17 years</span>
|
|
495
|
+
</auro-counter>
|
|
496
|
+
</auro-counter-group>
|
|
497
|
+
<auro-counter-group isDropdown offset="20" placement="right" noFlip autoPlacement>
|
|
498
|
+
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
499
|
+
<div slot="label">right bib with 20px offset, noFlip and autoPlacement</div>
|
|
500
|
+
<auro-counter>
|
|
501
|
+
Adults
|
|
502
|
+
<span slot="description">18 years or older</span>
|
|
503
|
+
</auro-counter>
|
|
504
|
+
<auro-counter>
|
|
505
|
+
Children
|
|
506
|
+
<span slot="description">2-17 years</span>
|
|
507
|
+
</auro-counter>
|
|
508
|
+
</auro-counter-group>
|
|
509
|
+
</div>
|
|
510
|
+
```
|
|
511
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
512
|
+
</auro-accordion>
|
|
513
|
+
|
|
514
|
+
### Dropdown with fullscreen bib
|
|
515
|
+
|
|
516
|
+
You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
|
|
517
|
+
|
|
518
|
+
The default value of `fullscreenBreakpoint` is `sm`.
|
|
519
|
+
|
|
520
|
+
Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/developers/design-tokens)
|
|
521
|
+
|
|
522
|
+
To support fullscreen bib, setting the `bib.fullscreen.headline` slot is **REQUIRED**.
|
|
523
|
+
You can also set `bib.fullscreen.footer` slot to add any additional options on fullscreen view.
|
|
524
|
+
|
|
525
|
+
<div class="exampleWrapper">
|
|
526
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-mobile-properties.html) -->
|
|
527
|
+
<!-- The below content is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
|
|
528
|
+
<div style="max-width: 350px;">
|
|
529
|
+
<auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
|
|
530
|
+
<span slot="label">Passengers</span>
|
|
531
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
532
|
+
<div slot="helpText">This is help text</div>
|
|
533
|
+
<auro-counter>
|
|
534
|
+
Adults
|
|
535
|
+
<span slot="description">18 years or older</span>
|
|
536
|
+
</auro-counter>
|
|
537
|
+
<auro-counter>
|
|
538
|
+
Children
|
|
539
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
540
|
+
</auro-counter>
|
|
541
|
+
<auro-counter>
|
|
542
|
+
Lap Infants
|
|
543
|
+
<span slot="description">Under 2 years</span>
|
|
544
|
+
</auro-counter>
|
|
545
|
+
<div slot="bib.fullscreen.footer" style="display:flex; justify-content: stretch; gap: 1.5rem">
|
|
546
|
+
<auro-button id="dropdownCounterExampleResetbutton" fluid variant="secondary" style="flex: 1 50%">Reset</auro-button>
|
|
547
|
+
<auro-button id="dropdownCounterExampleSavebutton" fluid style="flex: 1 50%">Save</auro-button>
|
|
548
|
+
</div>
|
|
549
|
+
</auro-counter-group>
|
|
550
|
+
</div>
|
|
551
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
552
|
+
</div>
|
|
553
|
+
<auro-accordion alignRight>
|
|
554
|
+
<span slot="trigger">See code</span>
|
|
555
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dropdown-mobile-properties.html) -->
|
|
556
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
|
|
557
|
+
|
|
558
|
+
```html
|
|
559
|
+
<div style="max-width: 350px;">
|
|
560
|
+
<auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
|
|
561
|
+
<span slot="label">Passengers</span>
|
|
562
|
+
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
563
|
+
<div slot="helpText">This is help text</div>
|
|
564
|
+
<auro-counter>
|
|
565
|
+
Adults
|
|
566
|
+
<span slot="description">18 years or older</span>
|
|
567
|
+
</auro-counter>
|
|
568
|
+
<auro-counter>
|
|
569
|
+
Children
|
|
570
|
+
<span slot="description">Under 17 years old. Restrictions apply if traveling without an adult.</span>
|
|
571
|
+
</auro-counter>
|
|
572
|
+
<auro-counter>
|
|
573
|
+
Lap Infants
|
|
574
|
+
<span slot="description">Under 2 years</span>
|
|
575
|
+
</auro-counter>
|
|
576
|
+
<div slot="bib.fullscreen.footer" style="display:flex; justify-content: stretch; gap: 1.5rem">
|
|
577
|
+
<auro-button id="dropdownCounterExampleResetbutton" fluid variant="secondary" style="flex: 1 50%">Reset</auro-button>
|
|
578
|
+
<auro-button id="dropdownCounterExampleSavebutton" fluid style="flex: 1 50%">Save</auro-button>
|
|
579
|
+
</div>
|
|
580
|
+
</auro-counter-group>
|
|
581
|
+
</div>
|
|
582
|
+
```
|
|
583
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
584
|
+
</auro-accordion>
|