@aurodesignsystem/auro-formkit 1.6.0-beta.4
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/.husky/commit-msg +4 -0
- package/.husky/pre-commit +3 -0
- package/.turbo/cache/06e8fe5b2ddad186-meta.json +1 -0
- package/.turbo/cache/06e8fe5b2ddad186.tar.zst +0 -0
- package/.turbo/cache/10feda0f037804bb-meta.json +1 -0
- package/.turbo/cache/10feda0f037804bb.tar.zst +0 -0
- package/.turbo/cache/12f223ca7c12a587-meta.json +1 -0
- package/.turbo/cache/12f223ca7c12a587.tar.zst +0 -0
- package/.turbo/cache/144e8e78657bf800-meta.json +1 -0
- package/.turbo/cache/144e8e78657bf800.tar.zst +0 -0
- package/.turbo/cache/18939b2c7c83b163-meta.json +1 -0
- package/.turbo/cache/18939b2c7c83b163.tar.zst +0 -0
- package/.turbo/cache/1de685df0eaa39c8-meta.json +1 -0
- package/.turbo/cache/1de685df0eaa39c8.tar.zst +0 -0
- package/.turbo/cache/1f3b6e5b310ff590-meta.json +1 -0
- package/.turbo/cache/1f3b6e5b310ff590.tar.zst +0 -0
- package/.turbo/cache/1f53ce3a28c56cdf-meta.json +1 -0
- package/.turbo/cache/1f53ce3a28c56cdf.tar.zst +0 -0
- package/.turbo/cache/235d3af66386f827-meta.json +1 -0
- package/.turbo/cache/235d3af66386f827.tar.zst +0 -0
- package/.turbo/cache/23bf100310bd9f5a-meta.json +1 -0
- package/.turbo/cache/23bf100310bd9f5a.tar.zst +0 -0
- package/.turbo/cache/2900e7ec28e1488f-meta.json +1 -0
- package/.turbo/cache/2900e7ec28e1488f.tar.zst +0 -0
- package/.turbo/cache/2dd00eb6e255bd02-meta.json +1 -0
- package/.turbo/cache/2dd00eb6e255bd02.tar.zst +0 -0
- package/.turbo/cache/33466ea2930c3714-meta.json +1 -0
- package/.turbo/cache/33466ea2930c3714.tar.zst +0 -0
- package/.turbo/cache/451e562c76f74ec6-meta.json +1 -0
- package/.turbo/cache/451e562c76f74ec6.tar.zst +0 -0
- package/.turbo/cache/4520919609c97850-meta.json +1 -0
- package/.turbo/cache/4520919609c97850.tar.zst +0 -0
- package/.turbo/cache/45542e8beda9bb05-meta.json +1 -0
- package/.turbo/cache/45542e8beda9bb05.tar.zst +0 -0
- package/.turbo/cache/4a510678a1fcfe5c-meta.json +1 -0
- package/.turbo/cache/4a510678a1fcfe5c.tar.zst +0 -0
- package/.turbo/cache/5058ecc7f1e34496-meta.json +1 -0
- package/.turbo/cache/5058ecc7f1e34496.tar.zst +0 -0
- package/.turbo/cache/5e689c61e1109b98-meta.json +1 -0
- package/.turbo/cache/5e689c61e1109b98.tar.zst +0 -0
- package/.turbo/cache/62519d73b891d83c-meta.json +1 -0
- package/.turbo/cache/62519d73b891d83c.tar.zst +0 -0
- package/.turbo/cache/65511706643c4a44-meta.json +1 -0
- package/.turbo/cache/65511706643c4a44.tar.zst +0 -0
- package/.turbo/cache/6992d7134a39e43e-meta.json +1 -0
- package/.turbo/cache/6992d7134a39e43e.tar.zst +0 -0
- package/.turbo/cache/6bbc14e82dbe2dab-meta.json +1 -0
- package/.turbo/cache/6bbc14e82dbe2dab.tar.zst +0 -0
- package/.turbo/cache/706d4f762cc8061c-meta.json +1 -0
- package/.turbo/cache/706d4f762cc8061c.tar.zst +0 -0
- package/.turbo/cache/70d7b72f15ee97a4-meta.json +1 -0
- package/.turbo/cache/70d7b72f15ee97a4.tar.zst +0 -0
- package/.turbo/cache/7255686674920f97-meta.json +1 -0
- package/.turbo/cache/7255686674920f97.tar.zst +0 -0
- package/.turbo/cache/73572172d84713cd-meta.json +1 -0
- package/.turbo/cache/73572172d84713cd.tar.zst +0 -0
- package/.turbo/cache/7ddb7ace73fe6ec2-meta.json +1 -0
- package/.turbo/cache/7ddb7ace73fe6ec2.tar.zst +0 -0
- package/.turbo/cache/7e901cc4235b7051-meta.json +1 -0
- package/.turbo/cache/7e901cc4235b7051.tar.zst +0 -0
- package/.turbo/cache/821d931bf082b7de-meta.json +1 -0
- package/.turbo/cache/821d931bf082b7de.tar.zst +0 -0
- package/.turbo/cache/897b0d8a0c301207-meta.json +1 -0
- package/.turbo/cache/897b0d8a0c301207.tar.zst +0 -0
- package/.turbo/cache/8b7cdb9a0d4c3112-meta.json +1 -0
- package/.turbo/cache/8b7cdb9a0d4c3112.tar.zst +0 -0
- package/.turbo/cache/9135f474c69d1b3c-meta.json +1 -0
- package/.turbo/cache/9135f474c69d1b3c.tar.zst +0 -0
- package/.turbo/cache/9a7ab914e08ce75f-meta.json +1 -0
- package/.turbo/cache/9a7ab914e08ce75f.tar.zst +0 -0
- package/.turbo/cache/a174f9409e2dbb04-meta.json +1 -0
- package/.turbo/cache/a174f9409e2dbb04.tar.zst +0 -0
- package/.turbo/cache/a7bf477bbdabc7bc-meta.json +1 -0
- package/.turbo/cache/a7bf477bbdabc7bc.tar.zst +0 -0
- package/.turbo/cache/a90aa34f427a2f62-meta.json +1 -0
- package/.turbo/cache/a90aa34f427a2f62.tar.zst +0 -0
- package/.turbo/cache/aeee74f29106cab5-meta.json +1 -0
- package/.turbo/cache/aeee74f29106cab5.tar.zst +0 -0
- package/.turbo/cache/b61416daf63fbaad-meta.json +1 -0
- package/.turbo/cache/b61416daf63fbaad.tar.zst +0 -0
- package/.turbo/cache/b9463532618cdc61-meta.json +1 -0
- package/.turbo/cache/b9463532618cdc61.tar.zst +0 -0
- package/.turbo/cache/bb3afea40c91e8ba-meta.json +1 -0
- package/.turbo/cache/bb3afea40c91e8ba.tar.zst +0 -0
- package/.turbo/cache/c2e5da6599ac51c9-meta.json +1 -0
- package/.turbo/cache/c2e5da6599ac51c9.tar.zst +0 -0
- package/.turbo/cache/c53689c4c8b7448c-meta.json +1 -0
- package/.turbo/cache/c53689c4c8b7448c.tar.zst +0 -0
- package/.turbo/cache/c63dc7b6157da70b-meta.json +1 -0
- package/.turbo/cache/c63dc7b6157da70b.tar.zst +0 -0
- package/.turbo/cache/c7bb3445b71ead45-meta.json +1 -0
- package/.turbo/cache/c7bb3445b71ead45.tar.zst +0 -0
- package/.turbo/cache/c8b63b6e8a190eb9-meta.json +1 -0
- package/.turbo/cache/c8b63b6e8a190eb9.tar.zst +0 -0
- package/.turbo/cache/cd8bab87240a17ed-meta.json +1 -0
- package/.turbo/cache/cd8bab87240a17ed.tar.zst +0 -0
- package/.turbo/cache/d35b1eee9f2881af-meta.json +1 -0
- package/.turbo/cache/d35b1eee9f2881af.tar.zst +0 -0
- package/.turbo/cache/d641ace8fafc5cd2-meta.json +1 -0
- package/.turbo/cache/d641ace8fafc5cd2.tar.zst +0 -0
- package/.turbo/cache/d8bd6f80733c28af-meta.json +1 -0
- package/.turbo/cache/d8bd6f80733c28af.tar.zst +0 -0
- package/.turbo/cache/e4b3ec56d4ae56ba-meta.json +1 -0
- package/.turbo/cache/e4b3ec56d4ae56ba.tar.zst +0 -0
- package/.turbo/cache/e6f030eddf6fbf4e-meta.json +1 -0
- package/.turbo/cache/e6f030eddf6fbf4e.tar.zst +0 -0
- package/.turbo/cache/e81d7d64333b17e4-meta.json +1 -0
- package/.turbo/cache/e81d7d64333b17e4.tar.zst +0 -0
- package/.turbo/cache/ec4e1a5bd603f7ef-meta.json +1 -0
- package/.turbo/cache/ec4e1a5bd603f7ef.tar.zst +0 -0
- package/.turbo/cache/f6ee0c1e3e6753e1-meta.json +1 -0
- package/.turbo/cache/f6ee0c1e3e6753e1.tar.zst +0 -0
- package/.turbo/cache/f88563bd8d462bf1-meta.json +1 -0
- package/.turbo/cache/f88563bd8d462bf1.tar.zst +0 -0
- package/.turbo/cache/fdce614efad05760-meta.json +1 -0
- package/.turbo/cache/fdce614efad05760.tar.zst +0 -0
- package/.turbo/cache/fdd1bdd173a4185c-meta.json +1 -0
- package/.turbo/cache/fdd1bdd173a4185c.tar.zst +0 -0
- package/CHANGELOG.md +367 -0
- package/LICENSE +201 -0
- package/README.md +225 -0
- package/components/checkbox/.stylelintrc.json +3 -0
- package/components/checkbox/.turbo/turbo-build$colon$sass.log +98 -0
- package/components/checkbox/.turbo/turbo-build.log +182 -0
- package/components/checkbox/.turbo/turbo-bundler.log +13 -0
- package/components/checkbox/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/checkbox/.turbo/turbo-sass$colon$render.log +34 -0
- package/components/checkbox/.turbo/turbo-types.log +4 -0
- package/components/checkbox/README.md +187 -0
- package/components/checkbox/demo/api.html +48 -0
- package/components/checkbox/demo/api.js +1 -0
- package/components/checkbox/demo/api.md +272 -0
- package/components/checkbox/demo/api.min.js +845 -0
- package/components/checkbox/demo/index.js +8 -0
- package/components/checkbox/demo/index.md +306 -0
- package/components/checkbox/demo/index.min.js +845 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts +119 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +75 -0
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -0
- package/components/checkbox/dist/index.d.ts +4 -0
- package/components/checkbox/dist/index.d.ts.map +1 -0
- package/components/checkbox/dist/index.js +844 -0
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +3 -0
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts.map +1 -0
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +3 -0
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts.map +1 -0
- package/components/checkbox/dist/styles/color-css.d.ts +3 -0
- package/components/checkbox/dist/styles/color-css.d.ts.map +1 -0
- package/components/checkbox/dist/styles/colorGroup-css.d.ts +3 -0
- package/components/checkbox/dist/styles/colorGroup-css.d.ts.map +1 -0
- package/components/checkbox/dist/styles/tokens-css.d.ts +3 -0
- package/components/checkbox/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/checkbox/node_modules/chalk/package.json +83 -0
- package/components/checkbox/node_modules/chalk/readme.md +325 -0
- package/components/checkbox/node_modules/chalk/source/index.d.ts +320 -0
- package/components/checkbox/node_modules/chalk/source/index.js +225 -0
- package/components/checkbox/node_modules/chalk/source/utilities.js +33 -0
- package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/checkbox/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/checkbox/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/checkbox/package.json +68 -0
- package/components/checkbox/src/auro-checkbox-group.js +319 -0
- package/components/checkbox/src/auro-checkbox.js +184 -0
- package/components/checkbox/src/index.js +8 -0
- package/components/checkbox/src/styles/auro-checkbox-css.js +2 -0
- package/components/checkbox/src/styles/auro-checkbox-group-css.js +2 -0
- package/components/checkbox/src/styles/auro-checkbox-group.css +26 -0
- package/components/checkbox/src/styles/auro-checkbox-group.scss +38 -0
- package/components/checkbox/src/styles/auro-checkbox.css +123 -0
- package/components/checkbox/src/styles/auro-checkbox.scss +100 -0
- package/components/checkbox/src/styles/color-css.js +2 -0
- package/components/checkbox/src/styles/color.css +84 -0
- package/components/checkbox/src/styles/color.scss +118 -0
- package/components/checkbox/src/styles/colorGroup-css.js +2 -0
- package/components/checkbox/src/styles/colorGroup.css +16 -0
- package/components/checkbox/src/styles/colorGroup.scss +24 -0
- package/components/checkbox/src/styles/tokens-css.js +2 -0
- package/components/checkbox/src/styles/tokens.css +9 -0
- package/components/checkbox/src/styles/tokens.scss +11 -0
- package/components/combobox/.stylelintrc.json +3 -0
- package/components/combobox/.turbo/turbo-build$colon$sass.log +46 -0
- package/components/combobox/.turbo/turbo-build.log +157 -0
- package/components/combobox/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/combobox/.turbo/turbo-sass$colon$render.log +10 -0
- package/components/combobox/README.md +200 -0
- package/components/combobox/demo/api.html +54 -0
- package/components/combobox/demo/api.js +32 -0
- package/components/combobox/demo/api.md +743 -0
- package/components/combobox/demo/api.min.js +9017 -0
- package/components/combobox/demo/index.js +26 -0
- package/components/combobox/demo/index.md +626 -0
- package/components/combobox/demo/index.min.js +8919 -0
- package/components/combobox/dist/auro-combobox.d.ts +221 -0
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -0
- package/components/combobox/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/combobox/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/combobox/dist/formkit/auro-inputVersion.d.ts +3 -0
- package/components/combobox/dist/formkit/auro-inputVersion.d.ts.map +1 -0
- package/components/combobox/dist/index.d.ts +3 -0
- package/components/combobox/dist/index.d.ts.map +1 -0
- package/components/combobox/dist/index.js +7842 -0
- package/components/combobox/dist/styles/style-css.d.ts +3 -0
- package/components/combobox/dist/styles/style-css.d.ts.map +1 -0
- package/components/combobox/node_modules/chalk/package.json +83 -0
- package/components/combobox/node_modules/chalk/readme.md +325 -0
- package/components/combobox/node_modules/chalk/source/index.d.ts +320 -0
- package/components/combobox/node_modules/chalk/source/index.js +225 -0
- package/components/combobox/node_modules/chalk/source/utilities.js +33 -0
- package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/combobox/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/combobox/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/combobox/package.json +67 -0
- package/components/combobox/src/auro-combobox.js +674 -0
- package/components/combobox/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/combobox/src/formkit/auro-inputVersion.js +1 -0
- package/components/combobox/src/index.js +6 -0
- package/components/combobox/src/styles/style-css.js +2 -0
- package/components/combobox/src/styles/style.css +60 -0
- package/components/combobox/src/styles/style.scss +46 -0
- package/components/counter/.stylelintrc.json +3 -0
- package/components/counter/.turbo/turbo-build$colon$sass.log +66 -0
- package/components/counter/.turbo/turbo-build.log +87 -0
- package/components/counter/.turbo/turbo-bundler.log +13 -0
- package/components/counter/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/counter/.turbo/turbo-sass$colon$render.log +16 -0
- package/components/counter/.turbo/turbo-types.log +4 -0
- package/components/counter/demo/api.html +52 -0
- package/components/counter/demo/api.js +16 -0
- package/components/counter/demo/api.md +1053 -0
- package/components/counter/demo/api.min.js +115 -0
- package/components/counter/demo/index.js +20 -0
- package/components/counter/demo/index.md +12 -0
- package/components/counter/demo/index.min.js +71 -0
- package/components/counter/dist/auro-counter-group.d.ts +20 -0
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -0
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/auro-counter.d.ts.map +1 -0
- package/components/counter/dist/index.d.ts +4 -0
- package/components/counter/dist/index.d.ts.map +1 -0
- package/components/counter/dist/index.js +110 -0
- package/components/counter/dist/styles/counter-group-css.d.ts +3 -0
- package/components/counter/dist/styles/counter-group-css.d.ts.map +1 -0
- package/components/counter/dist/styles/style-css.d.ts +3 -0
- package/components/counter/dist/styles/style-css.d.ts.map +1 -0
- package/components/counter/node_modules/chalk/package.json +83 -0
- package/components/counter/node_modules/chalk/readme.md +325 -0
- package/components/counter/node_modules/chalk/source/index.d.ts +320 -0
- package/components/counter/node_modules/chalk/source/index.js +225 -0
- package/components/counter/node_modules/chalk/source/utilities.js +33 -0
- package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/counter/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/counter/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/counter/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/counter/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/counter/package.json +50 -0
- package/components/counter/src/auro-counter-group.js +48 -0
- package/components/counter/src/auro-counter.js +29 -0
- package/components/counter/src/index.js +8 -0
- package/components/counter/src/styles/counter-group-css.js +2 -0
- package/components/counter/src/styles/counter-group.css +4 -0
- package/components/counter/src/styles/counter-group.scss +17 -0
- package/components/counter/src/styles/style-css.js +2 -0
- package/components/counter/src/styles/style.css +4 -0
- package/components/counter/src/styles/style.scss +17 -0
- package/components/datepicker/.stylelintrc.json +3 -0
- package/components/datepicker/.turbo/turbo-build$colon$sass.log +352 -0
- package/components/datepicker/.turbo/turbo-build.log +489 -0
- package/components/datepicker/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/datepicker/.turbo/turbo-sass$colon$render.log +58 -0
- package/components/datepicker/README.md +181 -0
- package/components/datepicker/demo/api.html +58 -0
- package/components/datepicker/demo/api.js +33 -0
- package/components/datepicker/demo/api.md +1172 -0
- package/components/datepicker/demo/api.min.js +18446 -0
- package/components/datepicker/demo/index.js +19 -0
- package/components/datepicker/demo/index.md +107 -0
- package/components/datepicker/demo/index.min.js +18175 -0
- package/components/datepicker/dist/auro-calendar-cell.d.ts +163 -0
- package/components/datepicker/dist/auro-calendar-cell.d.ts.map +1 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +5 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts.map +1 -0
- package/components/datepicker/dist/auro-calendar.d.ts +105 -0
- package/components/datepicker/dist/auro-calendar.d.ts.map +1 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +336 -0
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -0
- package/components/datepicker/dist/dropdownVersion.d.ts +1 -0
- package/components/datepicker/dist/dropdownVersion.d.ts.map +1 -0
- package/components/datepicker/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/datepicker/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/datepicker/dist/formkit/auro-inputVersion.d.ts +3 -0
- package/components/datepicker/dist/formkit/auro-inputVersion.d.ts.map +1 -0
- package/components/datepicker/dist/index.d.ts +3 -0
- package/components/datepicker/dist/index.d.ts.map +1 -0
- package/components/datepicker/dist/index.js +18171 -0
- package/components/datepicker/dist/popoverVersion.d.ts +3 -0
- package/components/datepicker/dist/popoverVersion.d.ts.map +1 -0
- package/components/datepicker/dist/styles/color-calendar-css.d.ts +3 -0
- package/components/datepicker/dist/styles/color-calendar-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/color-cell-css.d.ts +3 -0
- package/components/datepicker/dist/styles/color-cell-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/color-css.d.ts +3 -0
- package/components/datepicker/dist/styles/color-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/color-month-css.d.ts +3 -0
- package/components/datepicker/dist/styles/color-month-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +3 -0
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +3 -0
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +3 -0
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/style-css.d.ts +3 -0
- package/components/datepicker/dist/styles/style-css.d.ts.map +1 -0
- package/components/datepicker/dist/styles/tokens-css.d.ts +3 -0
- package/components/datepicker/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/datepicker/dist/utilities.d.ts +47 -0
- package/components/datepicker/dist/utilities.d.ts.map +1 -0
- package/components/datepicker/dist/utilitiesCalendar.d.ts +39 -0
- package/components/datepicker/dist/utilitiesCalendar.d.ts.map +1 -0
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +51 -0
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts.map +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +6 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts.map +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +61 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts.map +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +2 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts.map +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +58 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts.map +1 -0
- package/components/datepicker/node_modules/chalk/package.json +83 -0
- package/components/datepicker/node_modules/chalk/readme.md +325 -0
- package/components/datepicker/node_modules/chalk/source/index.d.ts +320 -0
- package/components/datepicker/node_modules/chalk/source/index.js +225 -0
- package/components/datepicker/node_modules/chalk/source/utilities.js +33 -0
- package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/datepicker/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/datepicker/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/LICENSE.md +21 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/README.md +137 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.cjs +181 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/dist/index.mjs +173 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/index.d.ts +75 -0
- package/components/datepicker/node_modules/rollup-plugin-serve/package.json +51 -0
- package/components/datepicker/package.json +79 -0
- package/components/datepicker/src/auro-calendar-cell.js +381 -0
- package/components/datepicker/src/auro-calendar-month.js +128 -0
- package/components/datepicker/src/auro-calendar.js +328 -0
- package/components/datepicker/src/auro-datepicker.js +968 -0
- package/components/datepicker/src/dropdownVersion.js +0 -0
- package/components/datepicker/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/datepicker/src/formkit/auro-inputVersion.js +1 -0
- package/components/datepicker/src/index.js +6 -0
- package/components/datepicker/src/popoverVersion.js +1 -0
- package/components/datepicker/src/styles/color-calendar-css.js +2 -0
- package/components/datepicker/src/styles/color-calendar.css +35 -0
- package/components/datepicker/src/styles/color-calendar.scss +51 -0
- package/components/datepicker/src/styles/color-cell-css.js +2 -0
- package/components/datepicker/src/styles/color-cell.css +45 -0
- package/components/datepicker/src/styles/color-cell.scss +73 -0
- package/components/datepicker/src/styles/color-css.js +2 -0
- package/components/datepicker/src/styles/color-month-css.js +2 -0
- package/components/datepicker/src/styles/color-month.css +34 -0
- package/components/datepicker/src/styles/color-month.scss +27 -0
- package/components/datepicker/src/styles/color.css +43 -0
- package/components/datepicker/src/styles/color.scss +30 -0
- package/components/datepicker/src/styles/style-auro-calendar-cell-css.js +2 -0
- package/components/datepicker/src/styles/style-auro-calendar-cell.css +123 -0
- package/components/datepicker/src/styles/style-auro-calendar-cell.scss +147 -0
- package/components/datepicker/src/styles/style-auro-calendar-css.js +2 -0
- package/components/datepicker/src/styles/style-auro-calendar-month-css.js +2 -0
- package/components/datepicker/src/styles/style-auro-calendar-month.css +121 -0
- package/components/datepicker/src/styles/style-auro-calendar-month.scss +141 -0
- package/components/datepicker/src/styles/style-auro-calendar.css +152 -0
- package/components/datepicker/src/styles/style-auro-calendar.scss +191 -0
- package/components/datepicker/src/styles/style-css.js +2 -0
- package/components/datepicker/src/styles/style.css +111 -0
- package/components/datepicker/src/styles/style.scss +107 -0
- package/components/datepicker/src/styles/tokens-css.js +2 -0
- package/components/datepicker/src/styles/tokens.css +22 -0
- package/components/datepicker/src/styles/tokens.scss +25 -0
- package/components/datepicker/src/utilities.js +87 -0
- package/components/datepicker/src/utilitiesCalendar.js +139 -0
- package/components/datepicker/src/utilitiesCalendarRender.js +156 -0
- package/components/datepicker/src/vendor/wc-range-datepicker/day.js +8 -0
- package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-calendar.js +521 -0
- package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker-cell.js +211 -0
- package/components/datepicker/src/vendor/wc-range-datepicker/range-datepicker.js +254 -0
- package/components/dropdown/.stylelintrc.json +3 -0
- package/components/dropdown/.turbo/turbo-build$colon$sass.log +75 -0
- package/components/dropdown/.turbo/turbo-build$colon$version.log +7 -0
- package/components/dropdown/.turbo/turbo-build.log +206 -0
- package/components/dropdown/.turbo/turbo-bundler.log +13 -0
- package/components/dropdown/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/dropdown/.turbo/turbo-sass$colon$render.log +34 -0
- package/components/dropdown/.turbo/turbo-types.log +4 -0
- package/components/dropdown/README.md +188 -0
- package/components/dropdown/demo/api.html +53 -0
- package/components/dropdown/demo/api.js +21 -0
- package/components/dropdown/demo/api.md +1173 -0
- package/components/dropdown/demo/api.min.js +2868 -0
- package/components/dropdown/demo/index.js +22 -0
- package/components/dropdown/demo/index.md +360 -0
- package/components/dropdown/demo/index.min.js +2834 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +189 -0
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +33 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -0
- package/components/dropdown/dist/floatingUI.d.mts +68 -0
- package/components/dropdown/dist/floatingUI.d.mts.map +1 -0
- package/components/dropdown/dist/iconVersion.d.ts +3 -0
- package/components/dropdown/dist/iconVersion.d.ts.map +1 -0
- package/components/dropdown/dist/index.d.ts +3 -0
- package/components/dropdown/dist/index.d.ts.map +1 -0
- package/components/dropdown/dist/index.js +2825 -0
- package/components/dropdown/dist/styles/bibColors-css.d.ts +3 -0
- package/components/dropdown/dist/styles/bibColors-css.d.ts.map +1 -0
- package/components/dropdown/dist/styles/bibStyles-css.d.ts +3 -0
- package/components/dropdown/dist/styles/bibStyles-css.d.ts.map +1 -0
- package/components/dropdown/dist/styles/color-css.d.ts +3 -0
- package/components/dropdown/dist/styles/color-css.d.ts.map +1 -0
- package/components/dropdown/dist/styles/style-css.d.ts +3 -0
- package/components/dropdown/dist/styles/style-css.d.ts.map +1 -0
- package/components/dropdown/dist/styles/tokens-css.d.ts +3 -0
- package/components/dropdown/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/dropdown/node_modules/chalk/package.json +83 -0
- package/components/dropdown/node_modules/chalk/readme.md +325 -0
- package/components/dropdown/node_modules/chalk/source/index.d.ts +320 -0
- package/components/dropdown/node_modules/chalk/source/index.js +225 -0
- package/components/dropdown/node_modules/chalk/source/utilities.js +33 -0
- package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/dropdown/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/dropdown/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/dropdown/package.json +57 -0
- package/components/dropdown/src/auro-dropdown.js +354 -0
- package/components/dropdown/src/auro-dropdownBib.js +97 -0
- package/components/dropdown/src/floatingUI.mjs +381 -0
- package/components/dropdown/src/iconVersion.js +1 -0
- package/components/dropdown/src/index.js +6 -0
- package/components/dropdown/src/styles/bibColors-css.js +2 -0
- package/components/dropdown/src/styles/bibColors.css +6 -0
- package/components/dropdown/src/styles/bibColors.scss +18 -0
- package/components/dropdown/src/styles/bibStyles-css.js +2 -0
- package/components/dropdown/src/styles/bibStyles.css +48 -0
- package/components/dropdown/src/styles/bibStyles.scss +67 -0
- package/components/dropdown/src/styles/color-css.js +2 -0
- package/components/dropdown/src/styles/color.css +60 -0
- package/components/dropdown/src/styles/color.scss +79 -0
- package/components/dropdown/src/styles/style-css.js +2 -0
- package/components/dropdown/src/styles/style.css +81 -0
- package/components/dropdown/src/styles/style.scss +110 -0
- package/components/dropdown/src/styles/tokens-css.js +2 -0
- package/components/dropdown/src/styles/tokens.css +13 -0
- package/components/dropdown/src/styles/tokens.scss +15 -0
- package/components/form/.stylelintrc.json +3 -0
- package/components/form/.turbo/turbo-build$colon$sass.log +57 -0
- package/components/form/.turbo/turbo-build$colon$version.log +4 -0
- package/components/form/.turbo/turbo-build.log +113 -0
- package/components/form/.turbo/turbo-bundler.log +13 -0
- package/components/form/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/form/.turbo/turbo-sass$colon$render.log +10 -0
- package/components/form/.turbo/turbo-types.log +4 -0
- package/components/form/README.md +186 -0
- package/components/form/demo/api.html +48 -0
- package/components/form/demo/api.js +3 -0
- package/components/form/demo/api.md +0 -0
- package/components/form/demo/api.min.js +160 -0
- package/components/form/demo/index.js +4 -0
- package/components/form/demo/index.md +40 -0
- package/components/form/demo/index.min.js +161 -0
- package/components/form/dist/auro-form.d.ts +26 -0
- package/components/form/dist/auro-form.d.ts.map +1 -0
- package/components/form/dist/index.d.ts +3 -0
- package/components/form/dist/index.d.ts.map +1 -0
- package/components/form/dist/index.js +162 -0
- package/components/form/dist/styles/style-css.d.ts +3 -0
- package/components/form/dist/styles/style-css.d.ts.map +1 -0
- package/components/form/node_modules/chalk/package.json +83 -0
- package/components/form/node_modules/chalk/readme.md +325 -0
- package/components/form/node_modules/chalk/source/index.d.ts +320 -0
- package/components/form/node_modules/chalk/source/index.js +225 -0
- package/components/form/node_modules/chalk/source/utilities.js +33 -0
- package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/form/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/form/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/form/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/form/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/form/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/form/package.json +72 -0
- package/components/form/src/auro-form.js +74 -0
- package/components/form/src/index.js +6 -0
- package/components/form/src/styles/style-css.js +2 -0
- package/components/form/src/styles/style.css +36 -0
- package/components/form/src/styles/style.scss +37 -0
- package/components/input/.stylelintrc.json +3 -0
- package/components/input/.turbo/turbo-build$colon$sass.log +148 -0
- package/components/input/.turbo/turbo-build$colon$version.log +10 -0
- package/components/input/.turbo/turbo-build.log +300 -0
- package/components/input/.turbo/turbo-bundler.log +13 -0
- package/components/input/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/input/.turbo/turbo-sass$colon$render.log +52 -0
- package/components/input/.turbo/turbo-types.log +4 -0
- package/components/input/README.md +176 -0
- package/components/input/demo/api.html +40 -0
- package/components/input/demo/api.js +25 -0
- package/components/input/demo/api.md +1251 -0
- package/components/input/demo/api.min.js +4068 -0
- package/components/input/demo/index.js +20 -0
- package/components/input/demo/index.md +253 -0
- package/components/input/demo/index.min.js +4010 -0
- package/components/input/dist/auro-input.d.ts +29 -0
- package/components/input/dist/auro-input.d.ts.map +1 -0
- package/components/input/dist/base-input.d.ts +359 -0
- package/components/input/dist/base-input.d.ts.map +1 -0
- package/components/input/dist/buttonVersion.d.ts +3 -0
- package/components/input/dist/buttonVersion.d.ts.map +1 -0
- package/components/input/dist/i18n.d.ts +19 -0
- package/components/input/dist/i18n.d.ts.map +1 -0
- package/components/input/dist/iconVersion.d.ts +3 -0
- package/components/input/dist/iconVersion.d.ts.map +1 -0
- package/components/input/dist/index.d.ts +3 -0
- package/components/input/dist/index.d.ts.map +1 -0
- package/components/input/dist/index.js +3977 -0
- package/components/input/dist/styles/borders-css.d.ts +3 -0
- package/components/input/dist/styles/borders-css.d.ts.map +1 -0
- package/components/input/dist/styles/color-css.d.ts +3 -0
- package/components/input/dist/styles/color-css.d.ts.map +1 -0
- package/components/input/dist/styles/helpText-css.d.ts +3 -0
- package/components/input/dist/styles/helpText-css.d.ts.map +1 -0
- package/components/input/dist/styles/input-css.d.ts +3 -0
- package/components/input/dist/styles/input-css.d.ts.map +1 -0
- package/components/input/dist/styles/label-css.d.ts +3 -0
- package/components/input/dist/styles/label-css.d.ts.map +1 -0
- package/components/input/dist/styles/notificationIcons-css.d.ts +3 -0
- package/components/input/dist/styles/notificationIcons-css.d.ts.map +1 -0
- package/components/input/dist/styles/style-css.d.ts +3 -0
- package/components/input/dist/styles/style-css.d.ts.map +1 -0
- package/components/input/dist/styles/tokens-css.d.ts +3 -0
- package/components/input/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/input/node_modules/chalk/package.json +83 -0
- package/components/input/node_modules/chalk/readme.md +325 -0
- package/components/input/node_modules/chalk/source/index.d.ts +320 -0
- package/components/input/node_modules/chalk/source/index.js +225 -0
- package/components/input/node_modules/chalk/source/utilities.js +33 -0
- package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/input/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/input/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/input/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/input/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/input/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/input/package.json +75 -0
- package/components/input/src/auro-input.js +242 -0
- package/components/input/src/base-input.js +942 -0
- package/components/input/src/buttonVersion.js +1 -0
- package/components/input/src/i18n.js +102 -0
- package/components/input/src/iconVersion.js +1 -0
- package/components/input/src/index.js +6 -0
- package/components/input/src/styles/@aurodesignsystem/webcorestylesheets/src/breakpoints +0 -0
- package/components/input/src/styles/borders-css.js +2 -0
- package/components/input/src/styles/borders.css +35 -0
- package/components/input/src/styles/borders.scss +65 -0
- package/components/input/src/styles/color-css.js +2 -0
- package/components/input/src/styles/color.css +63 -0
- package/components/input/src/styles/color.scss +96 -0
- package/components/input/src/styles/helpText-css.js +2 -0
- package/components/input/src/styles/helpText.css +6 -0
- package/components/input/src/styles/helpText.scss +9 -0
- package/components/input/src/styles/input-css.js +2 -0
- package/components/input/src/styles/input.css +22 -0
- package/components/input/src/styles/input.scss +29 -0
- package/components/input/src/styles/label-css.js +2 -0
- package/components/input/src/styles/label.css +45 -0
- package/components/input/src/styles/label.scss +75 -0
- package/components/input/src/styles/notificationIcons-css.js +2 -0
- package/components/input/src/styles/notificationIcons.css +76 -0
- package/components/input/src/styles/notificationIcons.scss +103 -0
- package/components/input/src/styles/style-css.js +2 -0
- package/components/input/src/styles/style.css +272 -0
- package/components/input/src/styles/style.scss +57 -0
- package/components/input/src/styles/tokens-css.js +2 -0
- package/components/input/src/styles/tokens.css +9 -0
- package/components/input/src/styles/tokens.scss +11 -0
- package/components/menu/.stylelintrc.json +3 -0
- package/components/menu/.turbo/turbo-build$colon$sass.log +86 -0
- package/components/menu/.turbo/turbo-build$colon$version.log +7 -0
- package/components/menu/.turbo/turbo-build.log +181 -0
- package/components/menu/.turbo/turbo-bundler.log +13 -0
- package/components/menu/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/menu/.turbo/turbo-sass$colon$render.log +34 -0
- package/components/menu/.turbo/turbo-types.log +4 -0
- package/components/menu/README.md +190 -0
- package/components/menu/demo/api.html +51 -0
- package/components/menu/demo/api.js +25 -0
- package/components/menu/demo/api.md +781 -0
- package/components/menu/demo/api.min.js +1233 -0
- package/components/menu/demo/index.js +28 -0
- package/components/menu/demo/index.md +104 -0
- package/components/menu/demo/index.min.js +1186 -0
- package/components/menu/dist/auro-menu.d.ts +168 -0
- package/components/menu/dist/auro-menu.d.ts.map +1 -0
- package/components/menu/dist/auro-menuoption.d.ts +65 -0
- package/components/menu/dist/auro-menuoption.d.ts.map +1 -0
- package/components/menu/dist/iconVersion.d.ts +3 -0
- package/components/menu/dist/iconVersion.d.ts.map +1 -0
- package/components/menu/dist/index.d.ts +4 -0
- package/components/menu/dist/index.d.ts.map +1 -0
- package/components/menu/dist/index.js +1178 -0
- package/components/menu/dist/styles/color-menu-css.d.ts +3 -0
- package/components/menu/dist/styles/color-menu-css.d.ts.map +1 -0
- package/components/menu/dist/styles/color-menuoption-css.d.ts +3 -0
- package/components/menu/dist/styles/color-menuoption-css.d.ts.map +1 -0
- package/components/menu/dist/styles/style-menu-css.d.ts +3 -0
- package/components/menu/dist/styles/style-menu-css.d.ts.map +1 -0
- package/components/menu/dist/styles/style-menuoption-css.d.ts +3 -0
- package/components/menu/dist/styles/style-menuoption-css.d.ts.map +1 -0
- package/components/menu/dist/styles/tokens-css.d.ts +3 -0
- package/components/menu/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/menu/node_modules/chalk/package.json +83 -0
- package/components/menu/node_modules/chalk/readme.md +325 -0
- package/components/menu/node_modules/chalk/source/index.d.ts +320 -0
- package/components/menu/node_modules/chalk/source/index.js +225 -0
- package/components/menu/node_modules/chalk/source/utilities.js +33 -0
- package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/menu/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/menu/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/menu/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/menu/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/menu/node_modules/mime/CHANGELOG.md +296 -0
- package/components/menu/node_modules/mime/Mime.js +97 -0
- package/components/menu/node_modules/mime/README.md +187 -0
- package/components/menu/node_modules/mime/cli.js +46 -0
- package/components/menu/node_modules/mime/index.js +4 -0
- package/components/menu/node_modules/mime/lite.js +4 -0
- package/components/menu/node_modules/mime/package.json +52 -0
- package/components/menu/node_modules/mime/types/other.js +1 -0
- package/components/menu/node_modules/mime/types/standard.js +1 -0
- package/components/menu/node_modules/rollup-plugin-serve/LICENSE.md +21 -0
- package/components/menu/node_modules/rollup-plugin-serve/README.md +135 -0
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs +181 -0
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.cjs.js +197 -0
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.es.js +193 -0
- package/components/menu/node_modules/rollup-plugin-serve/dist/index.mjs +173 -0
- package/components/menu/node_modules/rollup-plugin-serve/package.json +44 -0
- package/components/menu/package.json +70 -0
- package/components/menu/src/auro-menu.js +521 -0
- package/components/menu/src/auro-menuoption.js +148 -0
- package/components/menu/src/iconVersion.js +1 -0
- package/components/menu/src/index.js +8 -0
- package/components/menu/src/styles/color-menu-css.js +2 -0
- package/components/menu/src/styles/color-menu.css +4 -0
- package/components/menu/src/styles/color-menu.scss +12 -0
- package/components/menu/src/styles/color-menuoption-css.js +2 -0
- package/components/menu/src/styles/color-menuoption.css +23 -0
- package/components/menu/src/styles/color-menuoption.scss +33 -0
- package/components/menu/src/styles/style-menu-css.js +2 -0
- package/components/menu/src/styles/style-menu.css +2043 -0
- package/components/menu/src/styles/style-menu.scss +58 -0
- package/components/menu/src/styles/style-menuoption-css.js +2 -0
- package/components/menu/src/styles/style-menuoption.css +45 -0
- package/components/menu/src/styles/style-menuoption.scss +66 -0
- package/components/menu/src/styles/tokens-css.js +2 -0
- package/components/menu/src/styles/tokens.css +6 -0
- package/components/menu/src/styles/tokens.scss +6 -0
- package/components/radio/.stylelintrc.json +3 -0
- package/components/radio/.turbo/turbo-build$colon$sass.log +130 -0
- package/components/radio/.turbo/turbo-build.log +213 -0
- package/components/radio/.turbo/turbo-bundler.log +13 -0
- package/components/radio/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/radio/.turbo/turbo-sass$colon$render.log +34 -0
- package/components/radio/.turbo/turbo-types.log +4 -0
- package/components/radio/README.md +176 -0
- package/components/radio/demo/api.html +50 -0
- package/components/radio/demo/api.js +17 -0
- package/components/radio/demo/api.md +401 -0
- package/components/radio/demo/api.min.js +1050 -0
- package/components/radio/demo/index.js +8 -0
- package/components/radio/demo/index.md +122 -0
- package/components/radio/demo/index.min.js +1016 -0
- package/components/radio/dist/auro-radio-group.d.ts +171 -0
- package/components/radio/dist/auro-radio-group.d.ts.map +1 -0
- package/components/radio/dist/auro-radio.d.ts +113 -0
- package/components/radio/dist/auro-radio.d.ts.map +1 -0
- package/components/radio/dist/index.d.ts +4 -0
- package/components/radio/dist/index.d.ts.map +1 -0
- package/components/radio/dist/index.js +1015 -0
- package/components/radio/dist/styles/auro-radio-group-css.d.ts +3 -0
- package/components/radio/dist/styles/auro-radio-group-css.d.ts.map +1 -0
- package/components/radio/dist/styles/color-css.d.ts +3 -0
- package/components/radio/dist/styles/color-css.d.ts.map +1 -0
- package/components/radio/dist/styles/groupColor-css.d.ts +3 -0
- package/components/radio/dist/styles/groupColor-css.d.ts.map +1 -0
- package/components/radio/dist/styles/style-css.d.ts +3 -0
- package/components/radio/dist/styles/style-css.d.ts.map +1 -0
- package/components/radio/dist/styles/tokens-css.d.ts +3 -0
- package/components/radio/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/radio/node_modules/chalk/package.json +83 -0
- package/components/radio/node_modules/chalk/readme.md +325 -0
- package/components/radio/node_modules/chalk/source/index.d.ts +320 -0
- package/components/radio/node_modules/chalk/source/index.js +225 -0
- package/components/radio/node_modules/chalk/source/utilities.js +33 -0
- package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/radio/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/radio/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/radio/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/radio/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/radio/package.json +69 -0
- package/components/radio/src/auro-radio-group.js +433 -0
- package/components/radio/src/auro-radio.js +247 -0
- package/components/radio/src/index.js +8 -0
- package/components/radio/src/styles/auro-radio-group-css.js +2 -0
- package/components/radio/src/styles/auro-radio-group.css +23 -0
- package/components/radio/src/styles/auro-radio-group.scss +36 -0
- package/components/radio/src/styles/color-css.js +2 -0
- package/components/radio/src/styles/color.css +45 -0
- package/components/radio/src/styles/color.scss +56 -0
- package/components/radio/src/styles/groupColor-css.js +2 -0
- package/components/radio/src/styles/groupColor.css +21 -0
- package/components/radio/src/styles/groupColor.scss +33 -0
- package/components/radio/src/styles/style-css.js +2 -0
- package/components/radio/src/styles/style.css +113 -0
- package/components/radio/src/styles/style.scss +99 -0
- package/components/radio/src/styles/tokens-css.js +2 -0
- package/components/radio/src/styles/tokens.css +9 -0
- package/components/radio/src/styles/tokens.scss +12 -0
- package/components/select/.stylelintrc.json +3 -0
- package/components/select/.turbo/turbo-build$colon$sass.log +122 -0
- package/components/select/.turbo/turbo-build.log +237 -0
- package/components/select/.turbo/turbo-postCss$colon$component.log +5 -0
- package/components/select/.turbo/turbo-sass$colon$render.log +22 -0
- package/components/select/README.md +205 -0
- package/components/select/demo/alertValue.js +6 -0
- package/components/select/demo/api.html +53 -0
- package/components/select/demo/api.js +31 -0
- package/components/select/demo/api.md +748 -0
- package/components/select/demo/api.min.js +4845 -0
- package/components/select/demo/index.js +9 -0
- package/components/select/demo/index.md +470 -0
- package/components/select/demo/index.min.js +4768 -0
- package/components/select/dist/auro-select.d.ts +174 -0
- package/components/select/dist/auro-select.d.ts.map +1 -0
- package/components/select/dist/formkit/auro-dropdownVersion.d.ts +3 -0
- package/components/select/dist/formkit/auro-dropdownVersion.d.ts.map +1 -0
- package/components/select/dist/index.d.ts +3 -0
- package/components/select/dist/index.d.ts.map +1 -0
- package/components/select/dist/index.js +3732 -0
- package/components/select/dist/styles/color-css.d.ts +3 -0
- package/components/select/dist/styles/color-css.d.ts.map +1 -0
- package/components/select/dist/styles/style-css.d.ts +3 -0
- package/components/select/dist/styles/style-css.d.ts.map +1 -0
- package/components/select/dist/styles/tokens-css.d.ts +3 -0
- package/components/select/dist/styles/tokens-css.d.ts.map +1 -0
- package/components/select/node_modules/chalk/package.json +83 -0
- package/components/select/node_modules/chalk/readme.md +325 -0
- package/components/select/node_modules/chalk/source/index.d.ts +320 -0
- package/components/select/node_modules/chalk/source/index.js +225 -0
- package/components/select/node_modules/chalk/source/utilities.js +33 -0
- package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/components/select/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/components/select/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/components/select/node_modules/chalk/source/vendor/supports-color/browser.js +30 -0
- package/components/select/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/components/select/node_modules/chalk/source/vendor/supports-color/index.js +182 -0
- package/components/select/node_modules/mime/CHANGELOG.md +296 -0
- package/components/select/node_modules/mime/Mime.js +97 -0
- package/components/select/node_modules/mime/README.md +187 -0
- package/components/select/node_modules/mime/cli.js +46 -0
- package/components/select/node_modules/mime/index.js +4 -0
- package/components/select/node_modules/mime/lite.js +4 -0
- package/components/select/node_modules/mime/package.json +52 -0
- package/components/select/node_modules/mime/types/other.js +1 -0
- package/components/select/node_modules/mime/types/standard.js +1 -0
- package/components/select/node_modules/rollup-plugin-serve/LICENSE.md +21 -0
- package/components/select/node_modules/rollup-plugin-serve/README.md +135 -0
- package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs +181 -0
- package/components/select/node_modules/rollup-plugin-serve/dist/index.cjs.js +197 -0
- package/components/select/node_modules/rollup-plugin-serve/dist/index.es.js +193 -0
- package/components/select/node_modules/rollup-plugin-serve/dist/index.mjs +173 -0
- package/components/select/node_modules/rollup-plugin-serve/package.json +44 -0
- package/components/select/package.json +70 -0
- package/components/select/packageScripts/postinstall.mjs +28 -0
- package/components/select/src/auro-select.js +537 -0
- package/components/select/src/formkit/auro-dropdownVersion.js +1 -0
- package/components/select/src/index.js +6 -0
- package/components/select/src/styles/color-css.js +2 -0
- package/components/select/src/styles/color.css +63 -0
- package/components/select/src/styles/color.scss +33 -0
- package/components/select/src/styles/style-css.js +2 -0
- package/components/select/src/styles/style.css +97 -0
- package/components/select/src/styles/style.scss +66 -0
- package/components/select/src/styles/tokens-css.js +2 -0
- package/components/select/src/styles/tokens.css +3 -0
- package/components/select/src/styles/tokens.scss +5 -0
- package/package.json +142 -0
- package/packages/build-tools/package.json +18 -0
- package/packages/build-tools/src/docProcessor.mjs +104 -0
- package/packages/build-tools/src/formVersionWriter.mjs +75 -0
- package/packages/build-tools/src/index.js +1 -0
- package/packages/build-tools/src/kitDocProcessor.mjs +66 -0
- package/packages/form-validation/package.json +12 -0
- package/packages/form-validation/src/index.js +1 -0
- package/packages/form-validation/src/validation.js +239 -0
- package/packages/typescript/base.json +19 -0
- package/packages/typescript/package.json +20 -0
- package/turbo.json +100 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
// ---------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
import { LitElement, html } from "lit";
|
|
7
|
+
|
|
8
|
+
import styleCss from "./styles/style-menu-css.js";
|
|
9
|
+
import colorCss from "./styles/color-menu-css.js";
|
|
10
|
+
import tokensCss from "./styles/tokens-css.js";
|
|
11
|
+
|
|
12
|
+
import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
|
|
13
|
+
|
|
14
|
+
import './auro-menuoption.js';
|
|
15
|
+
|
|
16
|
+
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
17
|
+
/**
|
|
18
|
+
* The auro-menu element provides users a way to select from a list of options.
|
|
19
|
+
* @attr {Object} optionSelected - Specifies the current selected menuOption.
|
|
20
|
+
* @attr {String} matchWord - Specifies the a string used to highlight matched string parts in options.
|
|
21
|
+
* @attr {Boolean} disabled - When true, the entire menu and all options are disabled;
|
|
22
|
+
* @attr {Boolean} noCheckmark - When true, selected option will not show the checkmark.
|
|
23
|
+
* @attr {String} value - Value selected for the menu.
|
|
24
|
+
* @event auroMenu-selectedOption - Notifies that a new menuoption selection has been made.
|
|
25
|
+
* @event selectedOption - (DEPRECATED) Notifies that a new menuoption selection has been made.
|
|
26
|
+
* @event auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
27
|
+
* @event auroMenuActivatedOption - (DEPRECATED) Notifies that a menuoption has been made `active`.
|
|
28
|
+
* @event auroMenu-selectValueFailure - Notifies that a an attempt to select a menuoption by matching a value has failed.
|
|
29
|
+
* @event auroMenuSelectValueFailure - (DEPRECATED) Notifies that a an attempt to select a menuoption by matching a value has failed.
|
|
30
|
+
* @event auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
31
|
+
* @event auroMenuCustomEventFired - (DEPRECATED) Notifies that a custom event has been fired.
|
|
32
|
+
* @event auroMenu-selectValueReset - Notifies that the component value has been reset.
|
|
33
|
+
* @slot Slot for insertion of menu options.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/* eslint-disable no-magic-numbers, max-lines */
|
|
37
|
+
|
|
38
|
+
export class AuroMenu extends LitElement {
|
|
39
|
+
constructor() {
|
|
40
|
+
super();
|
|
41
|
+
this.value = undefined;
|
|
42
|
+
this.optionSelected = undefined;
|
|
43
|
+
this.matchWord = undefined;
|
|
44
|
+
this.noCheckmark = false;
|
|
45
|
+
this.optionActive = undefined;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
50
|
+
this.rootMenu = true;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @private
|
|
54
|
+
*/
|
|
55
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @private
|
|
59
|
+
*/
|
|
60
|
+
this.nestingSpacer = '<span class="nestingSpacer"></span>';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static get properties() {
|
|
64
|
+
return {
|
|
65
|
+
noCheckmark: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
reflect: true
|
|
68
|
+
},
|
|
69
|
+
disabled: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
reflect: true
|
|
72
|
+
},
|
|
73
|
+
optionSelected: { type: Object },
|
|
74
|
+
optionActive: { type: Object },
|
|
75
|
+
matchWord: { type: String },
|
|
76
|
+
value: { type: String }
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
static get styles() {
|
|
81
|
+
return [
|
|
82
|
+
styleCss,
|
|
83
|
+
colorCss,
|
|
84
|
+
tokensCss
|
|
85
|
+
];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* This will register this element with the browser.
|
|
90
|
+
* @param {string} [name="auro-menu"] - The name of element that you want to register to.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
static register(name = "auro-menu") {
|
|
97
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroMenu);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Passes the noCheckmark attribute to all nested auro-menuoptions.
|
|
102
|
+
* @private
|
|
103
|
+
* @returns {void}
|
|
104
|
+
*/
|
|
105
|
+
handleNoCheckmarkAttr() {
|
|
106
|
+
if (this.noCheckmark) {
|
|
107
|
+
const menus = this.querySelectorAll('auro-menu, [auro-menu]');
|
|
108
|
+
|
|
109
|
+
menus.forEach((menu) => {
|
|
110
|
+
menu.setAttribute('noCheckmark', '');
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
const options = this.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
114
|
+
|
|
115
|
+
options.forEach((option) => {
|
|
116
|
+
option.setAttribute('noCheckmark', '');
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
firstUpdated() {
|
|
122
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
123
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-menu');
|
|
124
|
+
|
|
125
|
+
this.addEventListener('keydown', this.handleKeyDown);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
updated(changedProperties) {
|
|
129
|
+
if (changedProperties.has('matchWord')) {
|
|
130
|
+
this.markOptions();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (changedProperties.has('value')) {
|
|
134
|
+
this.selectByValue(this.value);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (changedProperties.has('disabled')) {
|
|
138
|
+
const options = Array.from(this.querySelectorAll('auro-menuoption, [auro-menuoption]'));
|
|
139
|
+
|
|
140
|
+
for (const element of options) {
|
|
141
|
+
element.disabled = this.disabled;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @private
|
|
148
|
+
* @param {Object} option - The menuoption to check for interactive state.
|
|
149
|
+
* @returns {Boolean} Returns true if the option is interactive.
|
|
150
|
+
*/
|
|
151
|
+
optionInteractive(option) {
|
|
152
|
+
return !option.hasAttribute('hidden') && !option.hasAttribute('disabled') && !option.hasAttribute('static');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @private
|
|
157
|
+
* @returns {void} When called will update the DOM with visible suggest text matches.
|
|
158
|
+
*/
|
|
159
|
+
markOptions() {
|
|
160
|
+
if (this.items && this.items.length > 0 && (this.matchWord && this.matchWord.length > 0)) {
|
|
161
|
+
|
|
162
|
+
// Escape special regex characters
|
|
163
|
+
const escapedWord = this.matchWord.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
|
|
164
|
+
|
|
165
|
+
// Global, case-insensitive, unicode matching regex pattern
|
|
166
|
+
const regexWord = new RegExp(escapedWord, 'giu');
|
|
167
|
+
|
|
168
|
+
this.items.forEach((item) => {
|
|
169
|
+
if (this.optionInteractive(item) && !item.hasAttribute('persistent')) {
|
|
170
|
+
const nested = item.querySelectorAll('.nestingSpacer');
|
|
171
|
+
const nestingSpacerBundle = [...nested].map(() => this.nestingSpacer).join('');
|
|
172
|
+
|
|
173
|
+
item.innerHTML = nestingSpacerBundle + item.textContent.replace(regexWord, (match) => `<strong>${match}</strong>`);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Reset the menu and all options.
|
|
181
|
+
*/
|
|
182
|
+
resetOptionsStates() {
|
|
183
|
+
this.optionSelected = undefined;
|
|
184
|
+
if (this.items) {
|
|
185
|
+
this.items.forEach((item) => {
|
|
186
|
+
item.classList.remove('active');
|
|
187
|
+
item.removeAttribute('selected');
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Set the attributes on the selected menuoption, the menu value and stored option.
|
|
194
|
+
* @param {Object} option - The menuoption to be selected.
|
|
195
|
+
* @private
|
|
196
|
+
*/
|
|
197
|
+
handleLocalSelectState(option) {
|
|
198
|
+
option.setAttribute('selected', '');
|
|
199
|
+
option.classList.add('active');
|
|
200
|
+
option.ariaSelected = true;
|
|
201
|
+
|
|
202
|
+
this.value = option.value;
|
|
203
|
+
this.optionSelected = option;
|
|
204
|
+
this.index = this.items.indexOf(option);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Notify selection change.
|
|
209
|
+
* @private
|
|
210
|
+
* @return {void}
|
|
211
|
+
*/
|
|
212
|
+
notifySelectionChange() {
|
|
213
|
+
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
214
|
+
this.dispatchEvent(new CustomEvent('selectedOption', {
|
|
215
|
+
bubbles: true,
|
|
216
|
+
cancelable: false,
|
|
217
|
+
composed: true,
|
|
218
|
+
}));
|
|
219
|
+
|
|
220
|
+
this.dispatchEvent(new CustomEvent('auroMenu-selectedOption', {
|
|
221
|
+
bubbles: true,
|
|
222
|
+
cancelable: false,
|
|
223
|
+
composed: true,
|
|
224
|
+
}));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Process actions for making making a menuoption selection.
|
|
229
|
+
*/
|
|
230
|
+
makeSelection() {
|
|
231
|
+
if (!this.items) {
|
|
232
|
+
this.initItems();
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (this.items[this.index] && !this.items[this.index].hasAttribute('disabled')) {
|
|
236
|
+
this.resetOptionsStates();
|
|
237
|
+
|
|
238
|
+
if (this.index >= 0) {
|
|
239
|
+
const option = this.items[this.index];
|
|
240
|
+
|
|
241
|
+
// only handle options that are not disabled, hidden or static
|
|
242
|
+
if (option && this.optionInteractive(option)) {
|
|
243
|
+
// fire custom event if defined otherwise make selection
|
|
244
|
+
if (option.hasAttribute('event')) {
|
|
245
|
+
this.dispatchEvent(new CustomEvent(option.getAttribute('event'), {
|
|
246
|
+
bubbles: true,
|
|
247
|
+
cancelable: false,
|
|
248
|
+
composed: true,
|
|
249
|
+
}));
|
|
250
|
+
|
|
251
|
+
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
252
|
+
this.dispatchEvent(new CustomEvent('auroMenuCustomEventFired', {
|
|
253
|
+
bubbles: true,
|
|
254
|
+
cancelable: false,
|
|
255
|
+
composed: true,
|
|
256
|
+
}));
|
|
257
|
+
|
|
258
|
+
this.dispatchEvent(new CustomEvent('auroMenu-customEventFired', {
|
|
259
|
+
bubbles: true,
|
|
260
|
+
cancelable: false,
|
|
261
|
+
composed: true,
|
|
262
|
+
}));
|
|
263
|
+
} else {
|
|
264
|
+
this.handleLocalSelectState(option);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
this.notifySelectionChange();
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Manage ArrowDown, ArrowUp and Enter keyboard events.
|
|
275
|
+
* @private
|
|
276
|
+
* @param {Object} event - Event object from the browser.
|
|
277
|
+
*/
|
|
278
|
+
handleKeyDown(event) {
|
|
279
|
+
event.preventDefault();
|
|
280
|
+
|
|
281
|
+
// With ArrowDown/ArrowUp events, pass new value to selectNextItem()
|
|
282
|
+
// With Enter event, set value and apply attrs
|
|
283
|
+
switch (event.key) {
|
|
284
|
+
case "ArrowDown":
|
|
285
|
+
this.selectNextItem('down');
|
|
286
|
+
break;
|
|
287
|
+
|
|
288
|
+
case "ArrowUp":
|
|
289
|
+
this.selectNextItem('up');
|
|
290
|
+
break;
|
|
291
|
+
|
|
292
|
+
case "Enter":
|
|
293
|
+
this.makeSelection();
|
|
294
|
+
break;
|
|
295
|
+
default:
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Initializes all menu options in the DOM. This must be re-run every time the options are changed.
|
|
302
|
+
* @private
|
|
303
|
+
*/
|
|
304
|
+
initItems() {
|
|
305
|
+
this.items = Array.from(this.querySelectorAll('auro-menuoption, [auro-menuoption]'));
|
|
306
|
+
this.handleNoCheckmarkAttr();
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Sets the index value of the selected item or first non-disabled menuoption.
|
|
311
|
+
* @private
|
|
312
|
+
*/
|
|
313
|
+
getSelectedIndex() {
|
|
314
|
+
// find the first `selected` and not `disabled`, `hidden` or `static` option
|
|
315
|
+
const index = this.items.findIndex((option) => option.hasAttribute('selected') && this.optionInteractive(option));
|
|
316
|
+
|
|
317
|
+
if (index >= 0) {
|
|
318
|
+
this.index = index;
|
|
319
|
+
this.makeSelection();
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Using value of current this.index evaluates index
|
|
325
|
+
* of next :focus to set based on array of this.items ignoring items
|
|
326
|
+
* with disabled attr.
|
|
327
|
+
*
|
|
328
|
+
* The event.target is not used as the function needs to know where to go,
|
|
329
|
+
* versus knowing where it is.
|
|
330
|
+
* @param {String} moveDirection - Up or Down based on keyboard event.
|
|
331
|
+
*/
|
|
332
|
+
selectNextItem(moveDirection) {
|
|
333
|
+
if (this.index >= 0) {
|
|
334
|
+
this.items[this.index].classList.remove('active');
|
|
335
|
+
|
|
336
|
+
// calculate which is the selection we should focus next
|
|
337
|
+
let increment = 0;
|
|
338
|
+
|
|
339
|
+
if (moveDirection === 'down') {
|
|
340
|
+
increment = 1;
|
|
341
|
+
} else if (moveDirection === 'up') {
|
|
342
|
+
increment = -1;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
this.index += increment;
|
|
346
|
+
|
|
347
|
+
// keep looping inside the array of options
|
|
348
|
+
if (this.index > this.items.length - 1) {
|
|
349
|
+
this.index = 0;
|
|
350
|
+
} else if (this.index < 0) {
|
|
351
|
+
this.index = this.items.length - 1;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// check if new index is disabled, static or hidden, if so, execute again
|
|
355
|
+
if (!this.optionInteractive(this.items[this.index])) {
|
|
356
|
+
this.selectNextItem(moveDirection);
|
|
357
|
+
} else {
|
|
358
|
+
// apply focus to new index
|
|
359
|
+
this.updateActiveOption(this.index);
|
|
360
|
+
}
|
|
361
|
+
} else {
|
|
362
|
+
this.index = 0;
|
|
363
|
+
|
|
364
|
+
if (this.items[this.index].hasAttribute('hidden') || this.items[this.index].hasAttribute('disabled')) {
|
|
365
|
+
this.selectNextItem(moveDirection);
|
|
366
|
+
} else {
|
|
367
|
+
this.updateActiveOption(this.index);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Used for applying indentation to each level of nested menu.
|
|
374
|
+
* @private
|
|
375
|
+
* @param {String} menu - Root level menu object.
|
|
376
|
+
*/
|
|
377
|
+
handleNestedMenus(menu) {
|
|
378
|
+
const nestedMenus = menu.querySelectorAll('auro-menu, [auro-menu');
|
|
379
|
+
|
|
380
|
+
if (nestedMenus.length === 0) {
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
nestedMenus.forEach((nestedMenu) => {
|
|
385
|
+
const options = nestedMenu.querySelectorAll(':scope > auro-menuoption, :scope > [auro-menuoption');
|
|
386
|
+
|
|
387
|
+
options.forEach((option) => {
|
|
388
|
+
option.innerHTML = this.nestingSpacer + option.innerHTML;
|
|
389
|
+
});
|
|
390
|
+
|
|
391
|
+
this.handleNestedMenus(nestedMenu);
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Method to apply `selected` attribute to `menuoption` via `value`.
|
|
397
|
+
* @private
|
|
398
|
+
* @param {String} value - Must match a unique `menuoption` value.
|
|
399
|
+
*/
|
|
400
|
+
selectByValue(value) {
|
|
401
|
+
let valueMatch = false;
|
|
402
|
+
if (!this.items) {
|
|
403
|
+
this.initItems();
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
this.index = undefined;
|
|
407
|
+
|
|
408
|
+
if (this.value && this.value.length > 0) {
|
|
409
|
+
for (let index = 0; index < this.items.length; index += 1) {
|
|
410
|
+
if (this.items[index].value === value) {
|
|
411
|
+
valueMatch = true;
|
|
412
|
+
this.index = index;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (!valueMatch) {
|
|
417
|
+
// reset the menu to no selection
|
|
418
|
+
this.index = undefined;
|
|
419
|
+
|
|
420
|
+
// this event needs to be removed after select and combobox are updated to use the new standard name
|
|
421
|
+
this.dispatchEvent(new CustomEvent('auroMenuSelectValueFailure', {
|
|
422
|
+
bubbles: true,
|
|
423
|
+
cancelable: false,
|
|
424
|
+
composed: true,
|
|
425
|
+
}));
|
|
426
|
+
|
|
427
|
+
this.dispatchEvent(new CustomEvent('auroMenu-selectValueFailure', {
|
|
428
|
+
bubbles: true,
|
|
429
|
+
cancelable: false,
|
|
430
|
+
composed: true,
|
|
431
|
+
}));
|
|
432
|
+
} else {
|
|
433
|
+
this.makeSelection();
|
|
434
|
+
}
|
|
435
|
+
} else {
|
|
436
|
+
this.resetOptionsStates();
|
|
437
|
+
|
|
438
|
+
this.dispatchEvent(new CustomEvent('auroMenu-selectValueReset', {
|
|
439
|
+
bubbles: true,
|
|
440
|
+
cancelable: false,
|
|
441
|
+
composed: true,
|
|
442
|
+
}));
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Used to make the active state for options follow mouseover.
|
|
448
|
+
* @param {Number} index - Index of the menuoption that will be made active.
|
|
449
|
+
* @private
|
|
450
|
+
*/
|
|
451
|
+
updateActiveOption(index) {
|
|
452
|
+
this.items.forEach((item) => {
|
|
453
|
+
item.classList.remove('active');
|
|
454
|
+
});
|
|
455
|
+
this.items[index].classList.add('active');
|
|
456
|
+
this.optionActive = this.items[index];
|
|
457
|
+
|
|
458
|
+
this.dispatchEvent(new CustomEvent('auroMenuActivatedOption', {
|
|
459
|
+
bubbles: true,
|
|
460
|
+
cancelable: false,
|
|
461
|
+
composed: true,
|
|
462
|
+
detail: this.items[index]
|
|
463
|
+
}));
|
|
464
|
+
|
|
465
|
+
this.dispatchEvent(new CustomEvent('auroMenu-activatedOption', {
|
|
466
|
+
bubbles: true,
|
|
467
|
+
cancelable: false,
|
|
468
|
+
composed: true,
|
|
469
|
+
detail: this.items[index]
|
|
470
|
+
}));
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Used to only make a selection when a menuoption is receiving a mousedown event.
|
|
475
|
+
* @param {Event} evt - Mousedown event.
|
|
476
|
+
* @private
|
|
477
|
+
*/
|
|
478
|
+
handleMenuMouseDown(evt) {
|
|
479
|
+
if (evt.target !== this) {
|
|
480
|
+
this.makeSelection();
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Used for @slotchange event on slotted element.
|
|
486
|
+
* @private
|
|
487
|
+
*/
|
|
488
|
+
handleSlotItems() {
|
|
489
|
+
// Determine if this is the root of the menu/submenu layout.
|
|
490
|
+
if (this.parentElement && this.parentElement.closest('auro-menu, [auro-menu]')) {
|
|
491
|
+
this.rootMenu = false;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
// If this is the root menu (not a nested menu) handle events, states and styling.
|
|
495
|
+
if (this.rootMenu) {
|
|
496
|
+
this.initItems();
|
|
497
|
+
this.setAttribute('role', 'listbox');
|
|
498
|
+
this.setAttribute('root', '');
|
|
499
|
+
this.handleNestedMenus(this);
|
|
500
|
+
this.markOptions();
|
|
501
|
+
this.index = -1;
|
|
502
|
+
this.getSelectedIndex();
|
|
503
|
+
|
|
504
|
+
this.addEventListener('keydown', this.handleKeyDown);
|
|
505
|
+
this.addEventListener('mousedown', this.handleMenuMouseDown);
|
|
506
|
+
this.addEventListener('auroMenuOption-mouseover', (evt) => {
|
|
507
|
+
this.index = this.items.indexOf(evt.target);
|
|
508
|
+
this.updateActiveOption(this.index);
|
|
509
|
+
});
|
|
510
|
+
} else {
|
|
511
|
+
// make sure to update all menuoption noCheckmark attributes when the menu is dynamically changed
|
|
512
|
+
this.handleNoCheckmarkAttr();
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
render() {
|
|
517
|
+
return html`
|
|
518
|
+
<slot @slotchange=${this.handleSlotItems}></slot>
|
|
519
|
+
`;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
|
5
|
+
|
|
6
|
+
// ---------------------------------------------------------------------
|
|
7
|
+
import { LitElement } from "lit";
|
|
8
|
+
import { html } from 'lit/static-html.js';
|
|
9
|
+
|
|
10
|
+
import styleCss from "./styles/style-menuoption-css.js";
|
|
11
|
+
import colorCss from "./styles/color-menuoption-css.js";
|
|
12
|
+
import tokensCss from "./styles/tokens-css.js";
|
|
13
|
+
|
|
14
|
+
import AuroLibraryRuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
|
|
15
|
+
import { AuroDependencyVersioning } from '@aurodesignsystem/auro-library/scripts/runtime/dependencyTagVersioning.mjs';
|
|
16
|
+
|
|
17
|
+
import { AuroIcon } from '@aurodesignsystem/auro-icon/src/auro-icon.js';
|
|
18
|
+
import iconVersion from './iconVersion.js';
|
|
19
|
+
|
|
20
|
+
import checkmarkIcon from '@alaskaairux/icons/dist/icons/interface/checkmark-sm.mjs';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The auro-menu element provides users a way to define a menu option.
|
|
24
|
+
*
|
|
25
|
+
* @attr {String} value - Specifies the value to be sent to a server.
|
|
26
|
+
* @attr {String} noCheckmark - When true, selected option will not show the checkmark.
|
|
27
|
+
* @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
|
|
28
|
+
* @attr {Boolean} selected - Specifies that an option is selected.
|
|
29
|
+
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
30
|
+
* @slot Specifies text for an option, but is not the value.
|
|
31
|
+
*/
|
|
32
|
+
export class AuroMenuOption extends LitElement {
|
|
33
|
+
constructor() {
|
|
34
|
+
super();
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Generate unique names for dependency components.
|
|
38
|
+
*/
|
|
39
|
+
const versioning = new AuroDependencyVersioning();
|
|
40
|
+
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
41
|
+
|
|
42
|
+
this.selected = false;
|
|
43
|
+
this.nocheckmark = false;
|
|
44
|
+
this.disabled = false;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
this.tabIndex = -1;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @private
|
|
53
|
+
*/
|
|
54
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static get properties() {
|
|
58
|
+
return {
|
|
59
|
+
nocheckmark: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
reflect: true
|
|
62
|
+
},
|
|
63
|
+
selected: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
reflect: true
|
|
66
|
+
},
|
|
67
|
+
disabled: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
reflect: true
|
|
70
|
+
},
|
|
71
|
+
value: {
|
|
72
|
+
type: String,
|
|
73
|
+
reflect: true
|
|
74
|
+
},
|
|
75
|
+
tabIndex: {
|
|
76
|
+
type: Number,
|
|
77
|
+
reflect: true
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static get styles() {
|
|
83
|
+
return [
|
|
84
|
+
styleCss,
|
|
85
|
+
colorCss,
|
|
86
|
+
tokensCss
|
|
87
|
+
];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* This will register this element with the browser.
|
|
92
|
+
* @param {string} [name="auro-menuoption"] - The name of element that you want to register to.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
static register(name = "auro-menuoption") {
|
|
99
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroMenuOption);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
firstUpdated() {
|
|
103
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
104
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');
|
|
105
|
+
|
|
106
|
+
this.setAttribute('role', 'option');
|
|
107
|
+
this.setAttribute('aria-selected', 'false');
|
|
108
|
+
|
|
109
|
+
this.addEventListener('mouseover', () => {
|
|
110
|
+
this.dispatchEvent(new CustomEvent('auroMenuOption-mouseover', {
|
|
111
|
+
bubbles: true,
|
|
112
|
+
cancelable: false,
|
|
113
|
+
composed: true,
|
|
114
|
+
detail: this
|
|
115
|
+
}));
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// observer for selected property changes
|
|
120
|
+
updated(changedProperties) {
|
|
121
|
+
if (changedProperties.has('selected')) {
|
|
122
|
+
this.setAttribute('aria-selected', this.selected.toString());
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Generates an HTML element containing an SVG icon based on the provided `svgContent`.
|
|
128
|
+
*
|
|
129
|
+
* @private
|
|
130
|
+
* @param {string} svgContent - The SVG content to be embedded.
|
|
131
|
+
* @returns {Element} The HTML element containing the SVG icon.
|
|
132
|
+
*/
|
|
133
|
+
generateIconHtml(svgContent) {
|
|
134
|
+
const dom = new DOMParser().parseFromString(svgContent, 'text/html');
|
|
135
|
+
const svg = dom.body.firstChild;
|
|
136
|
+
|
|
137
|
+
svg.setAttribute('slot', 'svg');
|
|
138
|
+
|
|
139
|
+
return html`<${this.iconTag} customColor customSvg slot="icon">${svg}</${this.iconTag}>`;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
render() {
|
|
143
|
+
return html`
|
|
144
|
+
${this.selected && !this.nocheckmark ? this.generateIconHtml(checkmarkIcon.svg) : undefined}
|
|
145
|
+
<slot></slot>
|
|
146
|
+
`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default '6.1.1';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2
|
+
// See LICENSE in the project root for license information.
|
|
3
|
+
|
|
4
|
+
// ---------------------------------------------------------------------
|
|
5
|
+
|
|
6
|
+
/* stylelint-disable declaration-no-important */
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
::slotted(hr) {
|
|
10
|
+
border-top-color: var(--ds-auro-menu-divider-color) !important;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export default css`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color) !important}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-color-container-ui-primary-default-default, #2c67b5);--ds-auro-menuoption-text-color: var(--ds-color-text-primary-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-color-icon-emphasis-inverse, #ffffff)}`;
|