@aurodesignsystem/auro-formkit 2.0.0-beta.8 → 2.0.0-beta.9
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/.turbo/cache/012997da408d7381-meta.json +1 -0
- package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -1
- package/.turbo/cache/114f70925d97840c-meta.json +1 -0
- package/.turbo/cache/114f70925d97840c.tar.zst +0 -0
- package/.turbo/cache/144803363093af6b-meta.json +1 -0
- package/.turbo/cache/18129dba20f51b6b-meta.json +1 -1
- package/.turbo/cache/19afa09c8e45c25d-meta.json +1 -0
- package/.turbo/cache/19afa09c8e45c25d.tar.zst +0 -0
- package/.turbo/cache/20a17be1e896dc95-meta.json +1 -0
- package/.turbo/cache/20a17be1e896dc95.tar.zst +0 -0
- package/.turbo/cache/2624bedf18a03ab1-meta.json +1 -0
- package/.turbo/cache/2624bedf18a03ab1.tar.zst +0 -0
- package/.turbo/cache/2706814699cff63a-meta.json +1 -0
- package/.turbo/cache/2787020e69f50af2-meta.json +1 -1
- package/.turbo/cache/29d704afd7578cda-meta.json +1 -0
- package/.turbo/cache/2edcc8b31cd713fc-meta.json +1 -0
- package/.turbo/cache/2edcc8b31cd713fc.tar.zst +0 -0
- package/.turbo/cache/318a9085a92f2d32-meta.json +1 -0
- package/.turbo/cache/326d9e4692d61af1-meta.json +1 -0
- package/.turbo/cache/326d9e4692d61af1.tar.zst +0 -0
- package/.turbo/cache/36962b1c4c89a3a2-meta.json +1 -0
- package/.turbo/cache/{0ca9c5ccf3e90704.tar.zst → 36962b1c4c89a3a2.tar.zst} +0 -0
- package/.turbo/cache/3cd8fc5f388323db-meta.json +1 -1
- package/.turbo/cache/3f8ea42b850fd7b1-meta.json +1 -0
- package/.turbo/cache/3f8ea42b850fd7b1.tar.zst +0 -0
- package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
- package/.turbo/cache/457af7906413d2ff-meta.json +1 -0
- package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
- package/.turbo/cache/508f2fcc60e5046f-meta.json +1 -0
- package/.turbo/cache/508f2fcc60e5046f.tar.zst +0 -0
- package/.turbo/cache/50993de942ec15a9-meta.json +1 -1
- package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
- package/.turbo/cache/5567d6b2fdae56a9-meta.json +1 -0
- package/.turbo/cache/5a6290b52b84f5ef-meta.json +1 -0
- package/.turbo/cache/5a6290b52b84f5ef.tar.zst +0 -0
- package/.turbo/cache/5aadae8d3f94202e-meta.json +1 -1
- package/.turbo/cache/6081837e8943b62e-meta.json +1 -0
- package/.turbo/cache/6081837e8943b62e.tar.zst +0 -0
- package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
- package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
- package/.turbo/cache/64ac8d6a4669ba20-meta.json +1 -0
- package/.turbo/cache/64ac8d6a4669ba20.tar.zst +0 -0
- package/.turbo/cache/706649b429184693-meta.json +1 -0
- package/.turbo/cache/706649b429184693.tar.zst +0 -0
- package/.turbo/cache/71dbeaf0706c12fe-meta.json +1 -1
- package/.turbo/cache/7445df6e7feed2a7-meta.json +1 -1
- package/.turbo/cache/769652d1b874d7cf-meta.json +1 -0
- package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
- package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
- package/.turbo/cache/7c4645de5001b034-meta.json +1 -0
- package/.turbo/cache/7c4645de5001b034.tar.zst +0 -0
- package/.turbo/cache/7e3244d67de2d977-meta.json +1 -0
- package/.turbo/cache/7e3244d67de2d977.tar.zst +0 -0
- package/.turbo/cache/7f3b42ddf36d0158-meta.json +1 -1
- package/.turbo/cache/804ad767c7ba2fc3-meta.json +1 -0
- package/.turbo/cache/8366405184d123d2-meta.json +1 -0
- package/.turbo/cache/8366405184d123d2.tar.zst +0 -0
- package/.turbo/cache/85cc23a2de6b1009-meta.json +1 -0
- package/.turbo/cache/99936b010f1533f9-meta.json +1 -0
- package/.turbo/cache/{dc6fbe2a8d5b9d9b.tar.zst → 99936b010f1533f9.tar.zst} +0 -0
- package/.turbo/cache/9a9b4e449cd84be4-meta.json +1 -1
- package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -1
- package/.turbo/cache/a275406512608e45-meta.json +1 -1
- package/.turbo/cache/a54b4d75b5d265de-meta.json +1 -0
- package/.turbo/cache/b280ed4daaf15dcb-meta.json +1 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
- package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
- package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -1
- package/.turbo/cache/c47b8032d18fc452-meta.json +1 -0
- package/.turbo/cache/c47b8032d18fc452.tar.zst +0 -0
- package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
- package/.turbo/cache/d3a05e38449c9b24-meta.json +1 -1
- package/.turbo/cache/d44acd685455b288-meta.json +1 -0
- package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
- package/.turbo/cache/d683a7d23b0d7073-meta.json +1 -0
- package/.turbo/cache/d683a7d23b0d7073.tar.zst +0 -0
- package/.turbo/cache/d7caaacb8114772f-meta.json +1 -0
- package/.turbo/cache/d7caaacb8114772f.tar.zst +0 -0
- package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -0
- package/.turbo/cache/dad3d78b33edd9e4.tar.zst +0 -0
- package/.turbo/cache/db4ea5071b44ee8c-meta.json +1 -1
- package/.turbo/cache/de44707e76bdd80c-meta.json +1 -0
- package/.turbo/cache/de44707e76bdd80c.tar.zst +0 -0
- package/.turbo/cache/e03997efe5adad43-meta.json +1 -0
- package/.turbo/cache/e1aa836f0cc2d7c5-meta.json +1 -0
- package/.turbo/cache/e1aa836f0cc2d7c5.tar.zst +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
- package/.turbo/cache/e820cc8f220a05f3-meta.json +1 -0
- package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -0
- package/.turbo/cache/e9e36823f6c98f07.tar.zst +0 -0
- package/.turbo/cache/f3f4ddfd3230e489-meta.json +1 -0
- package/.turbo/cache/f3f4ddfd3230e489.tar.zst +0 -0
- package/.turbo/cache/fdaf484b1ec4b5ed-meta.json +1 -0
- package/.vscode/settings.json +3 -0
- package/CHANGELOG.md +20 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +79 -20
- package/components/checkbox/demo/index.min.js +79 -20
- package/components/checkbox/dist/index.js +79 -20
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/.turbo/turbo-bundler.log +3 -3
- package/components/combobox/README.md +4 -4
- package/components/combobox/demo/api.min.js +160 -42
- package/components/combobox/demo/index.min.js +160 -42
- package/components/combobox/dist/index.js +158 -40
- package/components/counter/.turbo/turbo-build$colon$sass.log +172 -0
- package/components/counter/.turbo/turbo-build$colon$version.log +10 -0
- package/components/counter/.turbo/turbo-build.log +278 -4
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/counter/.turbo/turbo-sass$colon$render.log +36 -0
- package/components/counter/README.md +188 -0
- package/components/counter/demo/api.md +98 -1016
- package/components/counter/demo/api.min.js +1670 -32
- package/components/counter/demo/index.js +2 -1
- package/components/counter/demo/index.md +194 -0
- package/components/counter/demo/index.min.js +1702 -19
- package/components/counter/dist/auro-counter-button.d.ts +13 -0
- package/components/counter/dist/auro-counter-button.d.ts.map +1 -0
- package/components/counter/dist/auro-counter-group.d.ts +77 -6
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/auro-counter.d.ts +78 -0
- package/components/counter/dist/auro-counter.d.ts.map +1 -1
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/counter/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/counter/dist/iconVersion.d.ts +3 -0
- package/components/counter/dist/iconVersion.d.ts.map +1 -0
- package/components/counter/dist/index.js +1670 -32
- package/components/counter/dist/styles/color-css.d.ts +3 -0
- package/components/counter/dist/styles/color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts.map +1 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-group-color-css.d.ts.map +1 -0
- package/components/counter/dist/styles/tokens-css.d.ts +3 -0
- package/components/counter/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/counter/package.json +8 -2
- package/components/counter/src/auro-counter-button.js +42 -0
- package/components/counter/src/auro-counter-group.js +150 -21
- package/components/counter/src/auro-counter.js +272 -12
- package/components/counter/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/counter/src/iconVersion.js +1 -0
- package/components/counter/src/index.js +1 -1
- package/components/counter/src/styles/color-css.js +2 -0
- package/components/counter/src/styles/color.css +25 -0
- package/components/counter/src/styles/color.scss +44 -0
- package/components/counter/src/styles/counter-button-color-css.js +2 -0
- package/components/counter/src/styles/counter-button-color.css +14 -0
- package/components/counter/src/styles/counter-button-color.scss +29 -0
- package/components/counter/src/styles/counter-button-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens-css.js +2 -0
- package/components/counter/src/styles/counter-button-tokens.css +7 -0
- package/components/counter/src/styles/counter-button-tokens.scss +9 -0
- package/components/counter/src/styles/counter-button.css +187 -0
- package/components/counter/src/styles/counter-button.scss +83 -0
- package/components/counter/src/styles/counter-group-color-css.js +2 -0
- package/components/counter/src/styles/counter-group-color.css +4 -0
- package/components/counter/src/styles/counter-group-color.scss +19 -0
- package/components/counter/src/styles/counter-group-css.js +1 -1
- package/components/counter/src/styles/counter-group.css +13 -1
- package/components/counter/src/styles/counter-group.scss +14 -1
- package/components/counter/src/styles/style-css.js +1 -1
- package/components/counter/src/styles/style.css +43 -1
- package/components/counter/src/styles/style.scss +48 -2
- package/components/counter/src/styles/tokens-css.js +2 -0
- package/components/counter/src/styles/tokens.css +11 -0
- package/components/counter/src/styles/tokens.scss +24 -0
- package/components/datepicker/.turbo/turbo-build.log +2 -2
- package/components/datepicker/.turbo/turbo-bundler.log +2 -2
- package/components/datepicker/README.md +4 -4
- package/components/datepicker/demo/api.min.js +158 -40
- package/components/datepicker/demo/index.min.js +158 -40
- package/components/datepicker/dist/index.js +158 -40
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- package/components/dropdown/README.md +1 -1
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/form/README.md +1 -1
- package/components/input/.turbo/turbo-build.log +2 -2
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +79 -20
- package/components/input/demo/index.min.js +79 -20
- package/components/input/dist/index.js +79 -20
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +2 -2
- package/components/menu/README.md +1 -1
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +79 -20
- package/components/radio/demo/index.min.js +79 -20
- package/components/radio/dist/index.js +79 -20
- package/components/select/.turbo/turbo-build.log +3 -3
- package/components/select/.turbo/turbo-bundler.log +6 -3
- package/components/select/README.md +3 -3
- package/components/select/demo/api.min.js +79 -20
- package/components/select/demo/index.min.js +79 -20
- package/components/select/dist/index.js +79 -20
- package/package.json +1 -1
- package/packages/form-validation/src/validation.js +79 -20
- package/packages/utils/package.json +12 -0
- package/packages/utils/src/iconUtil.js +25 -0
- package/packages/utils/src/index.js +1 -0
- package/.turbo/cache/06845874cc82b186-meta.json +0 -1
- package/.turbo/cache/06845874cc82b186.tar.zst +0 -0
- package/.turbo/cache/0a96f136af026d57-meta.json +0 -1
- package/.turbo/cache/0a96f136af026d57.tar.zst +0 -0
- package/.turbo/cache/0c9ee13a7c863709-meta.json +0 -1
- package/.turbo/cache/0ca9c5ccf3e90704-meta.json +0 -1
- package/.turbo/cache/1a8d6e4cab38121a-meta.json +0 -1
- package/.turbo/cache/1ce32edb29492636-meta.json +0 -1
- package/.turbo/cache/1ce32edb29492636.tar.zst +0 -0
- package/.turbo/cache/2ec1b6d23563659e-meta.json +0 -1
- package/.turbo/cache/3afc5b2ea7c1bf51-meta.json +0 -1
- package/.turbo/cache/3afc5b2ea7c1bf51.tar.zst +0 -0
- package/.turbo/cache/40de011abc31c0cf-meta.json +0 -1
- package/.turbo/cache/40de011abc31c0cf.tar.zst +0 -0
- package/.turbo/cache/426c825f57054f5f-meta.json +0 -1
- package/.turbo/cache/426c825f57054f5f.tar.zst +0 -0
- package/.turbo/cache/4524aae614598308-meta.json +0 -1
- package/.turbo/cache/4524aae614598308.tar.zst +0 -0
- package/.turbo/cache/45ea3e30ae949d53-meta.json +0 -1
- package/.turbo/cache/45ea3e30ae949d53.tar.zst +0 -0
- package/.turbo/cache/577d86e4072c01f5-meta.json +0 -1
- package/.turbo/cache/577d86e4072c01f5.tar.zst +0 -0
- package/.turbo/cache/5d770c787aa78d4d-meta.json +0 -1
- package/.turbo/cache/5d770c787aa78d4d.tar.zst +0 -0
- package/.turbo/cache/624bf5350aacae42-meta.json +0 -1
- package/.turbo/cache/68060c79df03f45a-meta.json +0 -1
- package/.turbo/cache/68060c79df03f45a.tar.zst +0 -0
- package/.turbo/cache/68e3afb31feab4e9-meta.json +0 -1
- package/.turbo/cache/6a1c28febca6163f-meta.json +0 -1
- package/.turbo/cache/6bc4e2d881af6ffb-meta.json +0 -1
- package/.turbo/cache/6bc4e2d881af6ffb.tar.zst +0 -0
- package/.turbo/cache/6c8ea74dc3b07640-meta.json +0 -1
- package/.turbo/cache/7a6ef918375d4010-meta.json +0 -1
- package/.turbo/cache/7a6ef918375d4010.tar.zst +0 -0
- package/.turbo/cache/7da23884069695e6-meta.json +0 -1
- package/.turbo/cache/7da23884069695e6.tar.zst +0 -0
- package/.turbo/cache/83e1029b14af6545-meta.json +0 -1
- package/.turbo/cache/8410cd8eeadc3af7-meta.json +0 -1
- package/.turbo/cache/98936c69a55361fc-meta.json +0 -1
- package/.turbo/cache/a3db8f78e018a955-meta.json +0 -1
- package/.turbo/cache/a3db8f78e018a955.tar.zst +0 -0
- package/.turbo/cache/b91d2888e699c76a-meta.json +0 -1
- package/.turbo/cache/b91d2888e699c76a.tar.zst +0 -0
- package/.turbo/cache/bdc6aadfdbb6feb9-meta.json +0 -1
- package/.turbo/cache/c114d428251f56a5-meta.json +0 -1
- package/.turbo/cache/c114d428251f56a5.tar.zst +0 -0
- package/.turbo/cache/c7338727efbc457a-meta.json +0 -1
- package/.turbo/cache/c7338727efbc457a.tar.zst +0 -0
- package/.turbo/cache/cf235df1ef8d90b0-meta.json +0 -1
- package/.turbo/cache/d1d1a072ee099992-meta.json +0 -1
- package/.turbo/cache/d9331772756d3d94-meta.json +0 -1
- package/.turbo/cache/d9331772756d3d94.tar.zst +0 -0
- package/.turbo/cache/dc6fbe2a8d5b9d9b-meta.json +0 -1
- package/.turbo/cache/df28a5ee199e995d-meta.json +0 -1
- package/.turbo/cache/e1e2582a7131011f-meta.json +0 -1
- package/.turbo/cache/e6271174c00888fe-meta.json +0 -1
- package/.turbo/cache/e8485d2a584b5f08-meta.json +0 -1
- package/.turbo/cache/e8485d2a584b5f08.tar.zst +0 -0
- package/.turbo/cache/e86451b8f88594b2-meta.json +0 -1
- package/.turbo/cache/e86451b8f88594b2.tar.zst +0 -0
- package/.turbo/cache/e9872ba002963dd3-meta.json +0 -1
- package/.turbo/cache/e9872ba002963dd3.tar.zst +0 -0
- /package/.turbo/cache/{e6271174c00888fe.tar.zst → 012997da408d7381.tar.zst} +0 -0
- /package/.turbo/cache/{6a1c28febca6163f.tar.zst → 144803363093af6b.tar.zst} +0 -0
- /package/.turbo/cache/{0c9ee13a7c863709.tar.zst → 2706814699cff63a.tar.zst} +0 -0
- /package/.turbo/cache/{8410cd8eeadc3af7.tar.zst → 29d704afd7578cda.tar.zst} +0 -0
- /package/.turbo/cache/{68e3afb31feab4e9.tar.zst → 318a9085a92f2d32.tar.zst} +0 -0
- /package/.turbo/cache/{1a8d6e4cab38121a.tar.zst → 457af7906413d2ff.tar.zst} +0 -0
- /package/.turbo/cache/{6c8ea74dc3b07640.tar.zst → 5567d6b2fdae56a9.tar.zst} +0 -0
- /package/.turbo/cache/{d1d1a072ee099992.tar.zst → 769652d1b874d7cf.tar.zst} +0 -0
- /package/.turbo/cache/{df28a5ee199e995d.tar.zst → 804ad767c7ba2fc3.tar.zst} +0 -0
- /package/.turbo/cache/{bdc6aadfdbb6feb9.tar.zst → 85cc23a2de6b1009.tar.zst} +0 -0
- /package/.turbo/cache/{e1e2582a7131011f.tar.zst → a54b4d75b5d265de.tar.zst} +0 -0
- /package/.turbo/cache/{83e1029b14af6545.tar.zst → b280ed4daaf15dcb.tar.zst} +0 -0
- /package/.turbo/cache/{624bf5350aacae42.tar.zst → d44acd685455b288.tar.zst} +0 -0
- /package/.turbo/cache/{cf235df1ef8d90b0.tar.zst → e03997efe5adad43.tar.zst} +0 -0
- /package/.turbo/cache/{2ec1b6d23563659e.tar.zst → e820cc8f220a05f3.tar.zst} +0 -0
- /package/.turbo/cache/{98936c69a55361fc.tar.zst → fdaf484b1ec4b5ed.tar.zst} +0 -0
|
@@ -1,1053 +1,135 @@
|
|
|
1
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../api.md) -->
|
|
2
|
-
<!-- The below content is automatically added from ./../api.md -->
|
|
3
|
-
|
|
4
|
-
# auro-counter
|
|
5
|
-
|
|
6
|
-
## Attributes
|
|
7
|
-
|
|
8
|
-
| Attribute | Type | Description |
|
|
9
|
-
|--------------------|-------------|--------------------------------------------------|
|
|
10
|
-
| [disableEventShow](#disableEventShow) | ` Boolean ` | If declared, the dropdown will only show by calling the API .show() public method. |
|
|
11
|
-
|
|
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
|
+
|
|
12
6
|
## Properties
|
|
13
7
|
|
|
14
|
-
| Property
|
|
15
|
-
|
|
16
|
-
| [
|
|
17
|
-
| [
|
|
18
|
-
| [
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
21
|
-
| [isPopoverVisible](#isPopoverVisible) | `isPopoverVisible` | ` Boolean ` | false | If true, the dropdown bib is displayed. |
|
|
22
|
-
| [matchWidth](#matchWidth) | `matchWidth` | ` Boolean ` | false | If declared, the popover and trigger will be set to the same width. |
|
|
23
|
-
| [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | ` Boolean ` | false | If delclared, the dropdown will not hide when moving focus outside the element. |
|
|
24
|
-
| [noToggle](#noToggle) | `noToggle` | ` Boolean ` | | If declared, the trigger will only show the dropdown bib. |
|
|
25
|
-
| [ready](#ready) | `ready` | ` Boolean ` | | When false the component API should not be called. |
|
|
26
|
-
| [rounded](#rounded) | `rounded` | ` Boolean ` | | If declared, will apply border-radius to trigger and default slots. |
|
|
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
|
+
| [validity](#validity) | `validity` | `string` | "undefined" | The validity state of the counter. |
|
|
14
|
+
| [value](#value) | `value` | `number` | "undefined" | The current value of the counter. |
|
|
27
15
|
|
|
28
16
|
## Methods
|
|
29
17
|
|
|
30
|
-
| Method
|
|
31
|
-
|
|
32
|
-
| [
|
|
33
|
-
| [
|
|
18
|
+
| Method | Type | Description |
|
|
19
|
+
|--------------------|---------------------------------------|--------------------------------------------------|
|
|
20
|
+
| [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. |
|
|
21
|
+
| [handleSlotChange](#handleSlotChange) | `(): void` | |
|
|
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. |
|
|
34
23
|
|
|
35
24
|
## Events
|
|
36
25
|
|
|
37
|
-
| Event
|
|
38
|
-
|
|
39
|
-
|
|
|
40
|
-
| `auroDropdown-toggled` | `CustomEvent<{ expanded: boolean; }>` | Notifies that the visibility of the dropdown bib has changed. |
|
|
41
|
-
| `auroDropdown-triggerClick` | `CustomEvent<any>` | Notifies that the trigger has been clicked. |
|
|
42
|
-
| [dropdownToggled](#dropdownToggled) | `CustomEvent<{ expanded: boolean; }>` | (DEPRECATED) Notifies that the visibility of the dropdown bib has changed. |
|
|
26
|
+
| Event | Type |
|
|
27
|
+
|---------|------------------------------------------------|
|
|
28
|
+
| [input](#input) | `CustomEvent<{ value: number \| undefined; }>` |
|
|
43
29
|
|
|
44
30
|
## Slots
|
|
45
31
|
|
|
46
|
-
| Name
|
|
47
|
-
|
|
48
|
-
|
|
|
49
|
-
| [
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
##
|
|
54
|
-
|
|
55
|
-
| Part | Description |
|
|
56
|
-
|------------|----------------------------------------------|
|
|
57
|
-
| [chevron](#chevron) | The collapsed/expanded state icon container. |
|
|
58
|
-
| [helpText](#helpText) | The helpText content container. |
|
|
59
|
-
| [popover](#popover) | The bib content container. |
|
|
60
|
-
| [trigger](#trigger) | The trigger content container. |
|
|
61
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
62
|
-
|
|
63
|
-
## API Examples
|
|
64
|
-
|
|
65
|
-
### Basic
|
|
66
|
-
|
|
67
|
-
The most basic, simple version of auro-drodown.
|
|
68
|
-
|
|
69
|
-
<div class="exampleWrapper">
|
|
70
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/basic.html) -->
|
|
71
|
-
<!-- The below content is automatically added from ./../../apiExamples/basic.html -->
|
|
72
|
-
<auro-counter aria-label="custom label">
|
|
73
|
-
Lorem ipsum solar
|
|
74
|
-
<div slot="trigger">
|
|
75
|
-
Trigger
|
|
76
|
-
</div>
|
|
77
|
-
</auro-counter>
|
|
78
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
79
|
-
</div>
|
|
80
|
-
<auro-accordion alignRight>
|
|
81
|
-
<span slot="trigger">See code</span>
|
|
82
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/basic.html) -->
|
|
83
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/basic.html -->
|
|
84
|
-
|
|
85
|
-
```html
|
|
86
|
-
<auro-counter aria-label="custom label">
|
|
87
|
-
Lorem ipsum solar
|
|
88
|
-
<div slot="trigger">
|
|
89
|
-
Trigger
|
|
90
|
-
</div>
|
|
91
|
-
</auro-counter>
|
|
92
|
-
```
|
|
93
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
94
|
-
</auro-accordion>
|
|
95
|
-
<div class="exampleWrapper">
|
|
96
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/basicIcon.html) -->
|
|
97
|
-
<!-- The below content is automatically added from ./../../apiExamples/basicIcon.html -->
|
|
98
|
-
<auro-counter aria-label="custom label">
|
|
99
|
-
Lorem ipsum solar
|
|
100
|
-
<div slot="trigger">
|
|
101
|
-
<auro-icon
|
|
102
|
-
category="interface"
|
|
103
|
-
name="arrow-down"></auro-icon>
|
|
104
|
-
</div>
|
|
105
|
-
</auro-counter>
|
|
106
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
107
|
-
</div>
|
|
108
|
-
<auro-accordion alignRight>
|
|
109
|
-
<span slot="trigger">See code</span>
|
|
110
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/basicIcon.html) -->
|
|
111
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/basicIcon.html -->
|
|
112
|
-
|
|
113
|
-
```html
|
|
114
|
-
<auro-counter aria-label="custom label">
|
|
115
|
-
Lorem ipsum solar
|
|
116
|
-
<div slot="trigger">
|
|
117
|
-
<auro-icon
|
|
118
|
-
category="interface"
|
|
119
|
-
name="arrow-down"></auro-icon>
|
|
120
|
-
</div>
|
|
121
|
-
</auro-counter>
|
|
122
|
-
```
|
|
123
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
124
|
-
</auro-accordion>
|
|
125
|
-
<div class="exampleWrapper">
|
|
126
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/basicButton.html) -->
|
|
127
|
-
<!-- The below content is automatically added from ./../../apiExamples/basicButton.html -->
|
|
128
|
-
<auro-counter aria-label="custom label">
|
|
129
|
-
Lorem ipsum solar
|
|
130
|
-
<div slot="trigger">
|
|
131
|
-
<auro-button
|
|
132
|
-
slot="trigger"
|
|
133
|
-
fluid>
|
|
134
|
-
Dropdown
|
|
135
|
-
</auro-button>
|
|
136
|
-
</div>
|
|
137
|
-
</auro-counter>
|
|
138
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
139
|
-
</div>
|
|
140
|
-
<auro-accordion alignRight>
|
|
141
|
-
<span slot="trigger">See code</span>
|
|
142
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/basicButton.html) -->
|
|
143
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/basicButton.html -->
|
|
144
|
-
|
|
145
|
-
```html
|
|
146
|
-
<auro-counter aria-label="custom label">
|
|
147
|
-
Lorem ipsum solar
|
|
148
|
-
<div slot="trigger">
|
|
149
|
-
<auro-button
|
|
150
|
-
slot="trigger"
|
|
151
|
-
fluid>
|
|
152
|
-
Dropdown
|
|
153
|
-
</auro-button>
|
|
154
|
-
</div>
|
|
155
|
-
</auro-counter>
|
|
156
|
-
```
|
|
157
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
158
|
-
</auro-accordion>
|
|
159
|
-
<div class="exampleWrapper">
|
|
160
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/basicInput.html) -->
|
|
161
|
-
<!-- The below content is automatically added from ./../../apiExamples/basicInput.html -->
|
|
162
|
-
<auro-counter aria-label="custom label">
|
|
163
|
-
Lorem ipsum solar
|
|
164
|
-
<div slot="trigger">
|
|
165
|
-
<auro-input
|
|
166
|
-
borderless
|
|
167
|
-
slot="trigger"
|
|
168
|
-
id="inputExampleTrigger">
|
|
169
|
-
</auro-input>
|
|
170
|
-
</div>
|
|
171
|
-
</auro-counter>
|
|
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/basicInput.html) -->
|
|
177
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/basicInput.html -->
|
|
178
|
-
|
|
179
|
-
```html
|
|
180
|
-
<auro-counter aria-label="custom label">
|
|
181
|
-
Lorem ipsum solar
|
|
182
|
-
<div slot="trigger">
|
|
183
|
-
<auro-input
|
|
184
|
-
borderless
|
|
185
|
-
slot="trigger"
|
|
186
|
-
id="inputExampleTrigger">
|
|
187
|
-
</auro-input>
|
|
188
|
-
</div>
|
|
189
|
-
</auro-counter>
|
|
190
|
-
```
|
|
191
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
192
|
-
</auro-accordion>
|
|
193
|
-
|
|
194
|
-
### Property Examples
|
|
195
|
-
|
|
196
|
-
#### bordered
|
|
197
|
-
|
|
198
|
-
Adds the border style around the dropdown trigger.
|
|
199
|
-
|
|
200
|
-
<div class="exampleWrapper">
|
|
201
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/bordered.html) -->
|
|
202
|
-
<!-- The below content is automatically added from ./../../apiExamples/bordered.html -->
|
|
203
|
-
<auro-counter aria-label="custom label" bordered>
|
|
204
|
-
Lorem ipsum solar
|
|
205
|
-
<div slot="trigger">
|
|
206
|
-
Trigger
|
|
207
|
-
</div>
|
|
208
|
-
</auro-counter>
|
|
209
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
210
|
-
</div>
|
|
211
|
-
<auro-accordion alignRight>
|
|
212
|
-
<span slot="trigger">See code</span>
|
|
213
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/bordered.html) -->
|
|
214
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/bordered.html -->
|
|
215
|
-
|
|
216
|
-
```html
|
|
217
|
-
<auro-counter aria-label="custom label" bordered>
|
|
218
|
-
Lorem ipsum solar
|
|
219
|
-
<div slot="trigger">
|
|
220
|
-
Trigger
|
|
221
|
-
</div>
|
|
222
|
-
</auro-counter>
|
|
223
|
-
```
|
|
224
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
225
|
-
</auro-accordion>
|
|
226
|
-
|
|
227
|
-
#### chevron
|
|
228
|
-
|
|
229
|
-
Adds the bib visibility state chevron to the right side of the trigger content.
|
|
230
|
-
|
|
231
|
-
<div class="exampleWrapper">
|
|
232
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/chevron.html) -->
|
|
233
|
-
<!-- The below content is automatically added from ./../../apiExamples/chevron.html -->
|
|
234
|
-
<auro-counter aria-label="custom label" chevron>
|
|
235
|
-
Lorem ipsum solar
|
|
236
|
-
<div slot="trigger">
|
|
237
|
-
Trigger
|
|
238
|
-
</div>
|
|
239
|
-
</auro-counter>
|
|
240
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
241
|
-
</div>
|
|
242
|
-
<auro-accordion alignRight>
|
|
243
|
-
<span slot="trigger">See code</span>
|
|
244
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/chevron.html) -->
|
|
245
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/chevron.html -->
|
|
246
|
-
|
|
247
|
-
```html
|
|
248
|
-
<auro-counter aria-label="custom label" chevron>
|
|
249
|
-
Lorem ipsum solar
|
|
250
|
-
<div slot="trigger">
|
|
251
|
-
Trigger
|
|
252
|
-
</div>
|
|
253
|
-
</auro-counter>
|
|
254
|
-
```
|
|
255
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
256
|
-
</auro-accordion>
|
|
257
|
-
<div class="exampleWrapper">
|
|
258
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/chevronIcon.html) -->
|
|
259
|
-
<!-- The below content is automatically added from ./../../apiExamples/chevronIcon.html -->
|
|
260
|
-
<auro-counter aria-label="custom label" chevron>
|
|
261
|
-
Lorem ipsum solar
|
|
262
|
-
<div slot="trigger">
|
|
263
|
-
<auro-icon
|
|
264
|
-
category="interface"
|
|
265
|
-
name="arrow-down"></auro-icon>
|
|
266
|
-
</div>
|
|
267
|
-
</auro-counter>
|
|
268
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
269
|
-
</div>
|
|
270
|
-
<auro-accordion alignRight>
|
|
271
|
-
<span slot="trigger">See code</span>
|
|
272
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/chevronIcon.html) -->
|
|
273
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/chevronIcon.html -->
|
|
274
|
-
|
|
275
|
-
```html
|
|
276
|
-
<auro-counter aria-label="custom label" chevron>
|
|
277
|
-
Lorem ipsum solar
|
|
278
|
-
<div slot="trigger">
|
|
279
|
-
<auro-icon
|
|
280
|
-
category="interface"
|
|
281
|
-
name="arrow-down"></auro-icon>
|
|
282
|
-
</div>
|
|
283
|
-
</auro-counter>
|
|
284
|
-
```
|
|
285
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
286
|
-
</auro-accordion>
|
|
287
|
-
<div class="exampleWrapper">
|
|
288
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/chevronButton.html) -->
|
|
289
|
-
<!-- The below content is automatically added from ./../../apiExamples/chevronButton.html -->
|
|
290
|
-
<auro-counter aria-label="custom label" chevron>
|
|
291
|
-
Lorem ipsum solar
|
|
292
|
-
<div slot="trigger">
|
|
293
|
-
<auro-button
|
|
294
|
-
slot="trigger"
|
|
295
|
-
fluid>
|
|
296
|
-
Dropdown
|
|
297
|
-
</auro-button>
|
|
298
|
-
</div>
|
|
299
|
-
</auro-counter>
|
|
300
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
301
|
-
</div>
|
|
302
|
-
<auro-accordion alignRight>
|
|
303
|
-
<span slot="trigger">See code</span>
|
|
304
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/chevronButton.html) -->
|
|
305
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/chevronButton.html -->
|
|
306
|
-
|
|
307
|
-
```html
|
|
308
|
-
<auro-counter aria-label="custom label" chevron>
|
|
309
|
-
Lorem ipsum solar
|
|
310
|
-
<div slot="trigger">
|
|
311
|
-
<auro-button
|
|
312
|
-
slot="trigger"
|
|
313
|
-
fluid>
|
|
314
|
-
Dropdown
|
|
315
|
-
</auro-button>
|
|
316
|
-
</div>
|
|
317
|
-
</auro-counter>
|
|
318
|
-
```
|
|
319
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
320
|
-
</auro-accordion>
|
|
321
|
-
<div class="exampleWrapper">
|
|
322
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/chevronInput.html) -->
|
|
323
|
-
<!-- The below content is automatically added from ./../../apiExamples/chevronInput.html -->
|
|
324
|
-
<auro-counter aria-label="custom label" chevron>
|
|
325
|
-
Lorem ipsum solar
|
|
326
|
-
<div slot="trigger">
|
|
327
|
-
<auro-input
|
|
328
|
-
slot="trigger"
|
|
329
|
-
id="inputExampleTrigger">
|
|
330
|
-
</auro-input>
|
|
331
|
-
</div>
|
|
332
|
-
</auro-counter>
|
|
333
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
334
|
-
</div>
|
|
335
|
-
<auro-accordion alignRight>
|
|
336
|
-
<span slot="trigger">See code</span>
|
|
337
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/chevronInput.html) -->
|
|
338
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/chevronInput.html -->
|
|
339
|
-
|
|
340
|
-
```html
|
|
341
|
-
<auro-counter aria-label="custom label" chevron>
|
|
342
|
-
Lorem ipsum solar
|
|
343
|
-
<div slot="trigger">
|
|
344
|
-
<auro-input
|
|
345
|
-
slot="trigger"
|
|
346
|
-
id="inputExampleTrigger">
|
|
347
|
-
</auro-input>
|
|
348
|
-
</div>
|
|
349
|
-
</auro-counter>
|
|
350
|
-
```
|
|
351
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
352
|
-
</auro-accordion>
|
|
353
|
-
|
|
354
|
-
#### disabled
|
|
355
|
-
|
|
356
|
-
Disables the trigger preventing the dropdown bib from being shown.
|
|
357
|
-
|
|
358
|
-
<div class="exampleWrapper">
|
|
359
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/disabled.html) -->
|
|
360
|
-
<!-- The below content is automatically added from ./../../apiExamples/disabled.html -->
|
|
361
|
-
<auro-counter aria-label="custom label" disabled>
|
|
362
|
-
Lorem ipsum solar
|
|
363
|
-
<div slot="trigger">
|
|
364
|
-
Trigger
|
|
365
|
-
</div>
|
|
366
|
-
</auro-counter>
|
|
367
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
368
|
-
</div>
|
|
369
|
-
<auro-accordion alignRight>
|
|
370
|
-
<span slot="trigger">See code</span>
|
|
371
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/disabled.html) -->
|
|
372
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/disabled.html -->
|
|
373
|
-
|
|
374
|
-
```html
|
|
375
|
-
<auro-counter aria-label="custom label" disabled>
|
|
376
|
-
Lorem ipsum solar
|
|
377
|
-
<div slot="trigger">
|
|
378
|
-
Trigger
|
|
379
|
-
</div>
|
|
380
|
-
</auro-counter>
|
|
381
|
-
```
|
|
382
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
383
|
-
</auro-accordion>
|
|
384
|
-
<div class="exampleWrapper">
|
|
385
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/disabledAll.html) -->
|
|
386
|
-
<!-- The below content is automatically added from ./../../apiExamples/disabledAll.html -->
|
|
387
|
-
<auro-counter
|
|
388
|
-
aria-label="custom label"
|
|
389
|
-
disabled
|
|
390
|
-
chevron
|
|
391
|
-
rounded
|
|
392
|
-
inset
|
|
393
|
-
bordered>
|
|
394
|
-
Lorem ipsum solar
|
|
395
|
-
<div slot="trigger">
|
|
396
|
-
Trigger
|
|
397
|
-
</div>
|
|
398
|
-
<span slot="helpText">
|
|
399
|
-
Helper text
|
|
400
|
-
</span>
|
|
401
|
-
<span slot="label">
|
|
402
|
-
Name
|
|
403
|
-
</span>
|
|
404
|
-
</auro-counter>
|
|
405
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
406
|
-
</div>
|
|
407
|
-
<auro-accordion alignRight>
|
|
408
|
-
<span slot="trigger">See code</span>
|
|
409
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/disabledAll.html) -->
|
|
410
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/disabledAll.html -->
|
|
411
|
-
|
|
412
|
-
```html
|
|
413
|
-
<auro-counter
|
|
414
|
-
aria-label="custom label"
|
|
415
|
-
disabled
|
|
416
|
-
chevron
|
|
417
|
-
rounded
|
|
418
|
-
inset
|
|
419
|
-
bordered>
|
|
420
|
-
Lorem ipsum solar
|
|
421
|
-
<div slot="trigger">
|
|
422
|
-
Trigger
|
|
423
|
-
</div>
|
|
424
|
-
<span slot="helpText">
|
|
425
|
-
Helper text
|
|
426
|
-
</span>
|
|
427
|
-
<span slot="label">
|
|
428
|
-
Name
|
|
429
|
-
</span>
|
|
430
|
-
</auro-counter>
|
|
431
|
-
```
|
|
432
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
433
|
-
</auro-accordion>
|
|
434
|
-
|
|
435
|
-
#### error
|
|
436
|
-
|
|
437
|
-
Adds the error state UI to the trigger.
|
|
438
|
-
|
|
439
|
-
<div class="exampleWrapper">
|
|
440
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/error.html) -->
|
|
441
|
-
<!-- The below content is automatically added from ./../../apiExamples/error.html -->
|
|
442
|
-
<auro-counter aria-label="custom label" error>
|
|
443
|
-
Lorem ipsum solar
|
|
444
|
-
<div slot="trigger">
|
|
445
|
-
Trigger
|
|
446
|
-
</div>
|
|
447
|
-
</auro-counter>
|
|
448
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
449
|
-
</div>
|
|
450
|
-
<auro-accordion alignRight>
|
|
451
|
-
<span slot="trigger">See code</span>
|
|
452
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/error.html) -->
|
|
453
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/error.html -->
|
|
454
|
-
|
|
455
|
-
```html
|
|
456
|
-
<auro-counter aria-label="custom label" error>
|
|
457
|
-
Lorem ipsum solar
|
|
458
|
-
<div slot="trigger">
|
|
459
|
-
Trigger
|
|
460
|
-
</div>
|
|
461
|
-
</auro-counter>
|
|
462
|
-
```
|
|
463
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
464
|
-
</auro-accordion>
|
|
465
|
-
<div class="exampleWrapper">
|
|
466
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/errorBordered.html) -->
|
|
467
|
-
<!-- The below content is automatically added from ./../../apiExamples/errorBordered.html -->
|
|
468
|
-
<auro-counter
|
|
469
|
-
aria-label="custom label"
|
|
470
|
-
inset
|
|
471
|
-
error
|
|
472
|
-
rounded
|
|
473
|
-
bordered>
|
|
474
|
-
Lorem ipsum solar
|
|
475
|
-
<div slot="trigger">
|
|
476
|
-
Trigger
|
|
477
|
-
</div>
|
|
478
|
-
</auro-counter>
|
|
479
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
480
|
-
</div>
|
|
481
|
-
<auro-accordion alignRight>
|
|
482
|
-
<span slot="trigger">See code</span>
|
|
483
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/errorBordered.html) -->
|
|
484
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/errorBordered.html -->
|
|
485
|
-
|
|
486
|
-
```html
|
|
487
|
-
<auro-counter
|
|
488
|
-
aria-label="custom label"
|
|
489
|
-
inset
|
|
490
|
-
error
|
|
491
|
-
rounded
|
|
492
|
-
bordered>
|
|
493
|
-
Lorem ipsum solar
|
|
494
|
-
<div slot="trigger">
|
|
495
|
-
Trigger
|
|
496
|
-
</div>
|
|
497
|
-
</auro-counter>
|
|
498
|
-
```
|
|
499
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
500
|
-
</auro-accordion>
|
|
501
|
-
|
|
502
|
-
#### inset
|
|
503
|
-
|
|
504
|
-
The `inset` property applies a predefined amount of CSS `padding` to the `trigger` slot content.
|
|
505
|
-
|
|
506
|
-
<div class="exampleWrapper">
|
|
507
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/inset.html) -->
|
|
508
|
-
<!-- The below content is automatically added from ./../../apiExamples/inset.html -->
|
|
509
|
-
<auro-counter aria-label="custom label" inset>
|
|
510
|
-
Lorem ipsum solar
|
|
511
|
-
<div slot="trigger">
|
|
512
|
-
Trigger
|
|
513
|
-
</div>
|
|
514
|
-
</auro-counter>
|
|
515
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
516
|
-
</div>
|
|
517
|
-
<auro-accordion alignRight>
|
|
518
|
-
<span slot="trigger">See code</span>
|
|
519
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/inset.html) -->
|
|
520
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/inset.html -->
|
|
521
|
-
|
|
522
|
-
```html
|
|
523
|
-
<auro-counter aria-label="custom label" inset>
|
|
524
|
-
Lorem ipsum solar
|
|
525
|
-
<div slot="trigger">
|
|
526
|
-
Trigger
|
|
527
|
-
</div>
|
|
528
|
-
</auro-counter>
|
|
529
|
-
```
|
|
530
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
531
|
-
</auro-accordion>
|
|
532
|
-
<div class="exampleWrapper">
|
|
533
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/insetBordered.html) -->
|
|
534
|
-
<!-- The below content is automatically added from ./../../apiExamples/insetBordered.html -->
|
|
535
|
-
<auro-counter
|
|
536
|
-
aria-label="custom label"
|
|
537
|
-
inset
|
|
538
|
-
rounded
|
|
539
|
-
bordered>
|
|
540
|
-
Lorem ipsum solar
|
|
541
|
-
<div slot="trigger">
|
|
542
|
-
Trigger
|
|
543
|
-
</div>
|
|
544
|
-
</auro-counter>
|
|
545
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
546
|
-
</div>
|
|
547
|
-
<auro-accordion alignRight>
|
|
548
|
-
<span slot="trigger">See code</span>
|
|
549
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/insetBordered.html) -->
|
|
550
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/insetBordered.html -->
|
|
551
|
-
|
|
552
|
-
```html
|
|
553
|
-
<auro-counter
|
|
554
|
-
aria-label="custom label"
|
|
555
|
-
inset
|
|
556
|
-
rounded
|
|
557
|
-
bordered>
|
|
558
|
-
Lorem ipsum solar
|
|
559
|
-
<div slot="trigger">
|
|
560
|
-
Trigger
|
|
561
|
-
</div>
|
|
562
|
-
</auro-counter>
|
|
563
|
-
```
|
|
564
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
565
|
-
</auro-accordion>
|
|
566
|
-
|
|
567
|
-
#### rounded
|
|
568
|
-
|
|
569
|
-
The `rounded` property applies `border-radius` CSS to the trigger and default slot content.
|
|
570
|
-
|
|
571
|
-
<div class="exampleWrapper">
|
|
572
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/rounded.html) -->
|
|
573
|
-
<!-- The below content is automatically added from ./../../apiExamples/rounded.html -->
|
|
574
|
-
<auro-counter
|
|
575
|
-
aria-label="custom label"
|
|
576
|
-
rounded
|
|
577
|
-
bordered>
|
|
578
|
-
Lorem ipsum solar
|
|
579
|
-
<div slot="trigger">
|
|
580
|
-
Trigger
|
|
581
|
-
</div>
|
|
582
|
-
</auro-counter>
|
|
583
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
584
|
-
</div>
|
|
585
|
-
<auro-accordion alignRight>
|
|
586
|
-
<span slot="trigger">See code</span>
|
|
587
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/rounded.html) -->
|
|
588
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/rounded.html -->
|
|
589
|
-
|
|
590
|
-
```html
|
|
591
|
-
<auro-counter
|
|
592
|
-
aria-label="custom label"
|
|
593
|
-
rounded
|
|
594
|
-
bordered>
|
|
595
|
-
Lorem ipsum solar
|
|
596
|
-
<div slot="trigger">
|
|
597
|
-
Trigger
|
|
598
|
-
</div>
|
|
599
|
-
</auro-counter>
|
|
600
|
-
```
|
|
601
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
602
|
-
</auro-accordion>
|
|
603
|
-
|
|
604
|
-
#### noToggle
|
|
605
|
-
|
|
606
|
-
In cases where it is desired behavior for `auro-counter` to only show, not toggle, the bib content when activating the trigger the `noToggle` attribute must be applied.
|
|
607
|
-
|
|
608
|
-
<div class="exampleWrapper">
|
|
609
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/noToggle.html) -->
|
|
610
|
-
<!-- The below content is automatically added from ./../../apiExamples/noToggle.html -->
|
|
611
|
-
<auro-counter aria-label="custom label" noToggle>
|
|
612
|
-
Lorem ipsum solar
|
|
613
|
-
<div slot="trigger">
|
|
614
|
-
Trigger
|
|
615
|
-
</div>
|
|
616
|
-
</auro-counter>
|
|
617
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
618
|
-
</div>
|
|
619
|
-
<auro-accordion alignRight>
|
|
620
|
-
<span slot="trigger">See code</span>
|
|
621
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/noToggle.html) -->
|
|
622
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/noToggle.html -->
|
|
623
|
-
|
|
624
|
-
```html
|
|
625
|
-
<auro-counter aria-label="custom label" noToggle>
|
|
626
|
-
Lorem ipsum solar
|
|
627
|
-
<div slot="trigger">
|
|
628
|
-
Trigger
|
|
629
|
-
</div>
|
|
630
|
-
</auro-counter>
|
|
631
|
-
```
|
|
632
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
633
|
-
</auro-accordion>
|
|
634
|
-
|
|
635
|
-
### Slot Examples
|
|
636
|
-
|
|
637
|
-
#### trigger & default
|
|
638
|
-
|
|
639
|
-
All examples shown on this page include default and `trigger` slot content.
|
|
640
|
-
|
|
641
|
-
#### label
|
|
642
|
-
|
|
643
|
-
Content defined in the `label` slot will be rendered left aligned inside the trigger above all other defined trigger slot content.
|
|
644
|
-
|
|
645
|
-
<div class="exampleWrapper">
|
|
646
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/label.html) -->
|
|
647
|
-
<!-- The below content is automatically added from ./../../apiExamples/label.html -->
|
|
648
|
-
<auro-counter
|
|
649
|
-
bordered
|
|
650
|
-
rounded
|
|
651
|
-
inset
|
|
652
|
-
chevron>
|
|
653
|
-
Lorem ipsum solar
|
|
654
|
-
<span slot="label">Name</span>
|
|
655
|
-
<div slot="trigger">
|
|
656
|
-
Trigger
|
|
657
|
-
</div>
|
|
658
|
-
</auro-counter>
|
|
659
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
660
|
-
</div>
|
|
661
|
-
<auro-accordion alignRight>
|
|
662
|
-
<span slot="trigger">See code</span>
|
|
663
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/label.html) -->
|
|
664
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/label.html -->
|
|
32
|
+
| Name | Description |
|
|
33
|
+
|---------------|--------------------------------------|
|
|
34
|
+
| [Default](#Default) | Main label content for the counter. |
|
|
35
|
+
| [description](#description) | Descriptive content for the counter. |
|
|
36
|
+
|
|
37
|
+
# auro-counter-group
|
|
38
|
+
|
|
39
|
+
## Properties
|
|
665
40
|
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
Lorem ipsum solar
|
|
673
|
-
<span slot="label">Name</span>
|
|
674
|
-
<div slot="trigger">
|
|
675
|
-
Trigger
|
|
676
|
-
</div>
|
|
677
|
-
</auro-counter>
|
|
678
|
-
```
|
|
679
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
680
|
-
</auro-accordion>
|
|
41
|
+
| Property | Attribute | Type | Default | Description |
|
|
42
|
+
|------------|------------|----------|-------------|--------------------------------------------------|
|
|
43
|
+
| [max](#max) | `max` | `number` | "undefined" | The maximum value allowed for the whole group of counters. |
|
|
44
|
+
| [min](#min) | `min` | `number` | "undefined" | The minimum value allowed for the whole group of counters. |
|
|
45
|
+
| [validity](#validity) | `validity` | `string` | "undefined" | Reflects the validity state. |
|
|
46
|
+
| [value](#value) | `value` | `number` | "undefined" | The current value. |
|
|
681
47
|
|
|
682
|
-
|
|
48
|
+
## Events
|
|
683
49
|
|
|
684
|
-
|
|
50
|
+
| Event | Type |
|
|
51
|
+
|---------|------------------------------------------------|
|
|
52
|
+
| [input](#input) | `CustomEvent<{ value: number \| undefined; }>` |
|
|
685
53
|
|
|
686
|
-
|
|
687
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/helpText.html) -->
|
|
688
|
-
<!-- The below content is automatically added from ./../../apiExamples/helpText.html -->
|
|
689
|
-
<auro-counter
|
|
690
|
-
aria-label="custom label"
|
|
691
|
-
inset
|
|
692
|
-
bordered
|
|
693
|
-
rounded>
|
|
694
|
-
Lorem ipsum solar
|
|
695
|
-
<span slot="helpText">
|
|
696
|
-
Helper text
|
|
697
|
-
</span>
|
|
698
|
-
<div slot="trigger">
|
|
699
|
-
Trigger
|
|
700
|
-
</div>
|
|
701
|
-
</auro-counter>
|
|
702
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
703
|
-
</div>
|
|
704
|
-
<auro-accordion alignRight>
|
|
705
|
-
<span slot="trigger">See code</span>
|
|
706
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/helpText.html) -->
|
|
707
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/helpText.html -->
|
|
54
|
+
## Slots
|
|
708
55
|
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
Helper text
|
|
718
|
-
</span>
|
|
719
|
-
<div slot="trigger">
|
|
720
|
-
Trigger
|
|
721
|
-
</div>
|
|
722
|
-
</auro-counter>
|
|
723
|
-
```
|
|
724
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
725
|
-
</auro-accordion>
|
|
56
|
+
| Name | Description |
|
|
57
|
+
|-----------|----------------------------|
|
|
58
|
+
| [Default](#Default) | Slot for counter elements. |
|
|
59
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
60
|
+
|
|
61
|
+
## API Examples
|
|
62
|
+
|
|
63
|
+
### Group Max/Min
|
|
726
64
|
|
|
727
|
-
|
|
65
|
+
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.
|
|
728
66
|
|
|
729
|
-
|
|
67
|
+
**Example has group max set to 12**
|
|
730
68
|
|
|
731
69
|
<div class="exampleWrapper">
|
|
732
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
733
|
-
<!-- The below content is automatically added from
|
|
734
|
-
<auro-counter
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
Helper text
|
|
743
|
-
</span>
|
|
744
|
-
<div slot="trigger">
|
|
745
|
-
Trigger
|
|
746
|
-
</div>
|
|
747
|
-
</auro-counter>
|
|
70
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/group-max.html) -->
|
|
71
|
+
<!-- The below content is automatically added from ./../apiExamples/group-max.html -->
|
|
72
|
+
<auro-counter-group max="12" min="0">
|
|
73
|
+
<auro-counter>
|
|
74
|
+
Short label
|
|
75
|
+
</auro-counter>
|
|
76
|
+
<auro-counter>
|
|
77
|
+
This is an example of the wrapping behavior for a long label
|
|
78
|
+
</auro-counter>
|
|
79
|
+
</auro-counter-group>
|
|
748
80
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
749
|
-
</div>
|
|
81
|
+
</div>
|
|
750
82
|
<auro-accordion alignRight>
|
|
751
|
-
<span slot="trigger">See code</span>
|
|
752
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src
|
|
753
|
-
<!-- The below code snippet is automatically added from
|
|
754
|
-
|
|
83
|
+
<span slot="trigger">See code</span>
|
|
84
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/group-max.html) -->
|
|
85
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/group-max.html -->
|
|
86
|
+
|
|
755
87
|
```html
|
|
756
|
-
<auro-counter
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
bordered
|
|
760
|
-
rounded
|
|
761
|
-
error>
|
|
762
|
-
Lorem ipsum solar
|
|
763
|
-
<span slot="helpText">
|
|
764
|
-
Helper text
|
|
765
|
-
</span>
|
|
766
|
-
<div slot="trigger">
|
|
767
|
-
Trigger
|
|
768
|
-
</div>
|
|
769
|
-
</auro-counter>
|
|
770
|
-
```
|
|
771
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
772
|
-
</auro-accordion>
|
|
773
|
-
|
|
774
|
-
### Method Examples
|
|
775
|
-
|
|
776
|
-
#### show
|
|
777
|
-
|
|
778
|
-
The `show` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').show()`. This example will execute the `show` method on a `keydown` event with focus in the input element.
|
|
779
|
-
|
|
780
|
-
<div class="exampleWrapper">
|
|
781
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/programmaticallyShow.html) -->
|
|
782
|
-
<!-- The below content is automatically added from ./../../apiExamples/programmaticallyShow.html -->
|
|
783
|
-
<auro-input id="showExampleTriggerInput" required>
|
|
784
|
-
<span slot="label">Enter a value to show the dropdown</span>
|
|
785
|
-
</auro-input>
|
|
786
|
-
<auro-counter id="showMethodExample" aria-label="custom label" rounded bordered inset>
|
|
787
|
-
<p>
|
|
788
|
-
Lorem ipsum solar
|
|
789
|
-
</p>
|
|
790
|
-
<span slot="trigger">Trigger Label</span>
|
|
88
|
+
<auro-counter-group max="12" min="0">
|
|
89
|
+
<auro-counter>
|
|
90
|
+
Short label
|
|
791
91
|
</auro-counter>
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
<auro-accordion alignRight>
|
|
795
|
-
<span slot="trigger">See code</span>
|
|
796
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/programmaticallyShow.html) -->
|
|
797
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/programmaticallyShow.html -->
|
|
798
|
-
|
|
799
|
-
```html
|
|
800
|
-
<auro-input id="showExampleTriggerInput" required>
|
|
801
|
-
<span slot="label">Enter a value to show the dropdown</span>
|
|
802
|
-
</auro-input>
|
|
803
|
-
<auro-counter id="showMethodExample" aria-label="custom label" rounded bordered inset>
|
|
804
|
-
<p>
|
|
805
|
-
Lorem ipsum solar
|
|
806
|
-
</p>
|
|
807
|
-
<span slot="trigger">Trigger Label</span>
|
|
808
|
-
</auro-counter>
|
|
809
|
-
```
|
|
810
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
811
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/programmaticallyShow.js) -->
|
|
812
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/programmaticallyShow.js -->
|
|
813
|
-
|
|
814
|
-
```js
|
|
815
|
-
export function showExample() {
|
|
816
|
-
const triggerInput = document.querySelector('#showExampleTriggerInput');
|
|
817
|
-
const dropdownElem = document.querySelector('#showMethodExample');
|
|
818
|
-
|
|
819
|
-
triggerInput.addEventListener('keydown', () => {
|
|
820
|
-
dropdownElem.show();
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
```
|
|
824
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
825
|
-
</auro-accordion>
|
|
826
|
-
|
|
827
|
-
#### hide
|
|
828
|
-
|
|
829
|
-
The `hide` method can be called from within the default slot content. This is useful for cases such as `auro-select` when the dropdown should be collapsed after making a selection.
|
|
830
|
-
|
|
831
|
-
The `hide` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').hide()`.
|
|
832
|
-
|
|
833
|
-
This example demonstrations collapsing the dropdown by clicking a button within the dropdown bib content.
|
|
834
|
-
|
|
835
|
-
<div class="exampleWrapper">
|
|
836
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/programmaticallyHide.html) -->
|
|
837
|
-
<!-- The below content is automatically added from ./../../apiExamples/programmaticallyHide.html -->
|
|
838
|
-
<auro-counter id="hideExample" aria-label="custom label" rounded bordered inset>
|
|
839
|
-
<p>
|
|
840
|
-
Lorem ipsum solar
|
|
841
|
-
</p>
|
|
842
|
-
<auro-button id="hideExampleBtn">
|
|
843
|
-
Dismiss Dropdown
|
|
844
|
-
</auro-button>
|
|
845
|
-
<auro-input
|
|
846
|
-
slot="trigger"
|
|
847
|
-
id="hideExampleTrigger">
|
|
848
|
-
</auro-input>
|
|
92
|
+
<auro-counter>
|
|
93
|
+
This is an example of the wrapping behavior for a long label
|
|
849
94
|
</auro-counter>
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
```html
|
|
858
|
-
<auro-counter id="hideExample" aria-label="custom label" rounded bordered inset>
|
|
859
|
-
<p>
|
|
860
|
-
Lorem ipsum solar
|
|
861
|
-
</p>
|
|
862
|
-
<auro-button id="hideExampleBtn">
|
|
863
|
-
Dismiss Dropdown
|
|
864
|
-
</auro-button>
|
|
865
|
-
<auro-input
|
|
866
|
-
slot="trigger"
|
|
867
|
-
id="hideExampleTrigger">
|
|
868
|
-
</auro-input>
|
|
869
|
-
</auro-counter>
|
|
870
|
-
```
|
|
871
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
872
|
-
</auro-accordion>
|
|
873
|
-
</auro-accordion>
|
|
95
|
+
</auro-counter-group>
|
|
96
|
+
```
|
|
97
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
98
|
+
</auro-accordion>
|
|
99
|
+
|
|
100
|
+
### Counter Max/Min
|
|
874
101
|
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
#### Width and Sizing Behavior
|
|
878
|
-
|
|
879
|
-
##### Width
|
|
880
|
-
`auro-counter` will consume all available width of the parent container. `auro-counter` can be made narrower by wrapping it in a container of the desired width.
|
|
881
|
-
|
|
882
|
-
##### Dropdown Content Sizing
|
|
883
|
-
If the dropdown's content size should not exceed a certain height, you can control it using CSS. Add a `max-height` property and set `overflow: scroll` to enable scrollability for content that exceeds the specified height.
|
|
102
|
+
You can also individually set the max or min value for each counter in a group.
|
|
884
103
|
|
|
104
|
+
**Example has group max set to 12**
|
|
885
105
|
|
|
886
106
|
<div class="exampleWrapper">
|
|
887
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
888
|
-
<!-- The below content is automatically added from
|
|
889
|
-
<
|
|
890
|
-
<auro-counter
|
|
891
|
-
|
|
892
|
-
<p>
|
|
893
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
894
|
-
</p>
|
|
895
|
-
<p>
|
|
896
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
897
|
-
</p>
|
|
898
|
-
<p>
|
|
899
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
900
|
-
</p>
|
|
901
|
-
</div>
|
|
902
|
-
<div slot="trigger">
|
|
903
|
-
Trigger
|
|
904
|
-
</div>
|
|
107
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/group-counter-max.html) -->
|
|
108
|
+
<!-- The below content is automatically added from ./../apiExamples/group-counter-max.html -->
|
|
109
|
+
<auro-counter-group max="12" min="0">
|
|
110
|
+
<auro-counter max="5">
|
|
111
|
+
This counter has a max value of 5
|
|
905
112
|
</auro-counter>
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
</div>
|
|
909
|
-
<auro-accordion alignRight>
|
|
910
|
-
<span slot="trigger">See code</span>
|
|
911
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/customDimensions100.html) -->
|
|
912
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/customDimensions100.html -->
|
|
913
|
-
|
|
914
|
-
```html
|
|
915
|
-
<div style="width: 100px;" aria-label="custom label">
|
|
916
|
-
<auro-counter inset bordered rounded chevron>
|
|
917
|
-
<div style="width: 100px; max-height: 200px; overflow: scroll;">
|
|
918
|
-
<p>
|
|
919
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
920
|
-
</p>
|
|
921
|
-
<p>
|
|
922
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
923
|
-
</p>
|
|
924
|
-
<p>
|
|
925
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
926
|
-
</p>
|
|
927
|
-
</div>
|
|
928
|
-
<div slot="trigger">
|
|
929
|
-
Trigger
|
|
930
|
-
</div>
|
|
931
|
-
</auro-counter>
|
|
932
|
-
</div>
|
|
933
|
-
```
|
|
934
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
935
|
-
</auro-accordion>
|
|
936
|
-
|
|
937
|
-
<div class="exampleWrapper">
|
|
938
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/customDimensions300.html) -->
|
|
939
|
-
<!-- The below content is automatically added from ./../../apiExamples/customDimensions300.html -->
|
|
940
|
-
<div style="width: 300px;" aria-label="custom label">
|
|
941
|
-
<auro-counter inset bordered rounded chevron>
|
|
942
|
-
<div style="width: 300px; max-height: 200px; overflow: scroll;">
|
|
943
|
-
<p>
|
|
944
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
945
|
-
</p>
|
|
946
|
-
<p>
|
|
947
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
948
|
-
</p>
|
|
949
|
-
<p>
|
|
950
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
951
|
-
</p>
|
|
952
|
-
</div>
|
|
953
|
-
<div slot="trigger">
|
|
954
|
-
Trigger
|
|
955
|
-
</div>
|
|
113
|
+
<auro-counter max="8">
|
|
114
|
+
This counter has a max value of 8
|
|
956
115
|
</auro-counter>
|
|
957
|
-
</
|
|
116
|
+
</auro-counter-group>
|
|
958
117
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
959
|
-
</div>
|
|
118
|
+
</div>
|
|
960
119
|
<auro-accordion alignRight>
|
|
961
|
-
<span slot="trigger">See code</span>
|
|
962
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src
|
|
963
|
-
<!-- The below code snippet is automatically added from
|
|
964
|
-
|
|
120
|
+
<span slot="trigger">See code</span>
|
|
121
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/group-counter-max.html) -->
|
|
122
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/group-counter-max.html -->
|
|
123
|
+
|
|
965
124
|
```html
|
|
966
|
-
<
|
|
967
|
-
<auro-counter
|
|
968
|
-
|
|
969
|
-
<p>
|
|
970
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
971
|
-
</p>
|
|
972
|
-
<p>
|
|
973
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
974
|
-
</p>
|
|
975
|
-
<p>
|
|
976
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
977
|
-
</p>
|
|
978
|
-
</div>
|
|
979
|
-
<div slot="trigger">
|
|
980
|
-
Trigger
|
|
981
|
-
</div>
|
|
125
|
+
<auro-counter-group max="12" min="0">
|
|
126
|
+
<auro-counter max="5">
|
|
127
|
+
This counter has a max value of 5
|
|
982
128
|
</auro-counter>
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
986
|
-
</auro-accordion>
|
|
987
|
-
|
|
988
|
-
#### Truncated trigger component with fixed width
|
|
989
|
-
|
|
990
|
-
`auro-counter` trigger component will be truncated if the text is too long than its container width.
|
|
991
|
-
|
|
992
|
-
<div class="exampleWrapper">
|
|
993
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/truncatedText.html) -->
|
|
994
|
-
<!-- The below content is automatically added from ./../../apiExamples/truncatedText.html -->
|
|
995
|
-
<div style="width: 250px;">
|
|
996
|
-
<auro-counter common aria-label="Label content for screen reader">
|
|
997
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
998
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
999
|
-
</div>
|
|
1000
|
-
<span slot="helpText">
|
|
1001
|
-
Help text
|
|
1002
|
-
</span>
|
|
1003
|
-
<div slot="trigger">
|
|
1004
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1005
|
-
</div>
|
|
1006
|
-
</auro-counter>
|
|
1007
|
-
</div>
|
|
1008
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1009
|
-
</div>
|
|
1010
|
-
<auro-accordion alignRight>
|
|
1011
|
-
<span slot="trigger">See code</span>
|
|
1012
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../apiExamples/truncatedText.html) -->
|
|
1013
|
-
<!-- The below code snippet is automatically added from ./../../apiExamples/truncatedText.html -->
|
|
1014
|
-
|
|
1015
|
-
```html
|
|
1016
|
-
<div style="width: 250px;">
|
|
1017
|
-
<auro-counter common aria-label="Label content for screen reader">
|
|
1018
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
1019
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1020
|
-
</div>
|
|
1021
|
-
<span slot="helpText">
|
|
1022
|
-
Help text
|
|
1023
|
-
</span>
|
|
1024
|
-
<div slot="trigger">
|
|
1025
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1026
|
-
</div>
|
|
129
|
+
<auro-counter max="8">
|
|
130
|
+
This counter has a max value of 8
|
|
1027
131
|
</auro-counter>
|
|
1028
|
-
</
|
|
1029
|
-
```
|
|
1030
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
132
|
+
</auro-counter-group>
|
|
133
|
+
```
|
|
134
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1031
135
|
</auro-accordion>
|
|
1032
|
-
|
|
1033
|
-
### Theme Support
|
|
1034
|
-
|
|
1035
|
-
The component may be restyled using the following code sample and changing the values of the following token(s).
|
|
1036
|
-
|
|
1037
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../src/tokens.scss) -->
|
|
1038
|
-
<!-- The below code snippet is automatically added from ./../../src/tokens.scss -->
|
|
1039
|
-
|
|
1040
|
-
```scss
|
|
1041
|
-
:host {
|
|
1042
|
-
--ds-auro-counter-help-text-color: var(--ds-color-text-secondary-default, $ds-color-text-secondary-default);
|
|
1043
|
-
--ds-auro-counter-label-text-color: var(--ds-color-text-secondary-default, $ds-color-text-secondary-default);
|
|
1044
|
-
--ds-auro-counter-popover-border-color: transparent;
|
|
1045
|
-
--ds-auro-counter-popover-boxshadow-color: rgba(0 0 0 / .08);
|
|
1046
|
-
--ds-auro-counter-popover-container-color: var(--ds-color-container-primary-default, $ds-color-container-primary-default);
|
|
1047
|
-
--ds-auro-counter-popover-text-color: var(--ds-color-text-primary-default, $ds-color-text-primary-default);
|
|
1048
|
-
--ds-auro-counter-trigger-container-color: var(--ds-color-container-primary-default, $ds-color-container-primary-default);
|
|
1049
|
-
--ds-auro-counter-trigger-border-color: transparent;
|
|
1050
|
-
--ds-auro-counter-trigger-text-color: var(--ds-color-text-primary-default, $ds-color-text-primary-default);
|
|
1051
|
-
}
|
|
1052
|
-
```
|
|
1053
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|