@re-code/aurora 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +92 -2
- package/dist/aurora/aurora.esm.js +1 -0
- package/dist/aurora/index.esm.js +1 -0
- package/dist/aurora/p-038b2190.entry.js +1 -0
- package/dist/aurora/p-0608e910.entry.js +1 -0
- package/dist/aurora/p-17210bb6.entry.js +1 -0
- package/dist/aurora/p-17e65032.entry.js +1 -0
- package/dist/aurora/p-21786a68.entry.js +1 -0
- package/dist/aurora/p-23e57d65.entry.js +1 -0
- package/dist/aurora/p-278d3434.entry.js +1 -0
- package/dist/aurora/p-2a16d544.entry.js +1 -0
- package/dist/aurora/p-31a86367.entry.js +1 -0
- package/dist/aurora/p-35edd036.entry.js +1 -0
- package/dist/aurora/p-372a3416.entry.js +1 -0
- package/dist/aurora/p-40bb52c3.entry.js +1 -0
- package/dist/aurora/p-487df7d8.entry.js +1 -0
- package/dist/aurora/p-546a2f69.entry.js +1 -0
- package/dist/aurora/p-57512cd7.entry.js +1 -0
- package/dist/aurora/p-5d2a88ca.entry.js +1 -0
- package/dist/aurora/p-62ccacf0.entry.js +1 -0
- package/dist/aurora/p-64229ad2.entry.js +1 -0
- package/dist/aurora/p-685b9e53.entry.js +1 -0
- package/dist/aurora/p-689f37db.entry.js +1 -0
- package/dist/aurora/p-746825ce.entry.js +1 -0
- package/dist/aurora/p-88b72de7.entry.js +1 -0
- package/dist/aurora/p-89b66c7a.entry.js +1 -0
- package/dist/aurora/p-8de508c7.entry.js +1 -0
- package/dist/aurora/p-8ed72e5b.entry.js +1 -0
- package/dist/aurora/p-B3rlZvSP.js +7 -0
- package/dist/aurora/p-B71krpcd.js +1 -0
- package/dist/aurora/p-BTRtOC1j.js +1 -0
- package/dist/aurora/p-BTZwl4uD.js +7 -0
- package/dist/aurora/p-BvnCPjl5.js +1 -0
- package/dist/aurora/p-C-bRwiWx.js +1 -0
- package/dist/aurora/p-C2iVoG0G.js +1 -0
- package/dist/aurora/p-C48ks26E.js +1 -0
- package/dist/aurora/p-C6E5E18W.js +7 -0
- package/dist/aurora/p-CA3n-tpF.js +7 -0
- package/dist/aurora/p-CIZeCYao.js +1 -0
- package/dist/aurora/p-CJtRxiuh.js +7 -0
- package/dist/aurora/p-CU9sZ49I.js +7 -0
- package/dist/aurora/p-CfazOBmW.js +1 -0
- package/dist/aurora/p-Ci-XzGE3.js +1 -0
- package/dist/aurora/p-CnJOd66V.js +7 -0
- package/dist/aurora/p-CoyAdNcI.js +1 -0
- package/dist/aurora/p-Cq5N0E4D.js +7 -0
- package/dist/aurora/p-CrKUXDm4.js +1 -0
- package/dist/aurora/p-DBHfOAQc.js +1 -0
- package/dist/aurora/p-DD6GCVQb.js +1 -0
- package/dist/aurora/p-DQuL1Twl.js +1 -0
- package/dist/aurora/p-DTEnois3.js +7 -0
- package/dist/aurora/p-DVGjumbs.js +1 -0
- package/dist/aurora/p-DXbj-yic.js +1 -0
- package/dist/aurora/p-DgfWQsck.js +1 -0
- package/dist/aurora/p-Dogh3-Bf.js +1 -0
- package/dist/aurora/p-DqqWqhAT.js +1 -0
- package/dist/aurora/p-Dv3Jcvbc.js +1 -0
- package/dist/aurora/p-DzNA1eDU.js +1 -0
- package/dist/aurora/p-JU60IJxn.js +1 -0
- package/dist/aurora/p-KLUZmSN-.js +3 -0
- package/dist/aurora/p-TdUs41zm.js +1 -0
- package/dist/aurora/p-a1e257c7.entry.js +1 -0
- package/dist/aurora/p-a72596b4.entry.js +1 -0
- package/dist/aurora/p-a87dc1d3.entry.js +1 -0
- package/dist/aurora/p-a8e984e1.entry.js +1 -0
- package/dist/aurora/p-b2feddb2.entry.js +1 -0
- package/dist/aurora/p-bd1f6486.entry.js +1 -0
- package/dist/aurora/p-c330982c.entry.js +1 -0
- package/dist/aurora/p-c3668073.entry.js +1 -0
- package/dist/aurora/p-e1c97234.entry.js +1 -0
- package/dist/aurora/p-e72126a2.entry.js +1 -0
- package/dist/aurora/p-e7c81a6b.entry.js +1 -0
- package/dist/aurora/p-ec96e6ff.entry.js +1 -0
- package/dist/aurora/p-ed998b0c.entry.js +1 -0
- package/dist/aurora/p-ee2ea46e.entry.js +1 -0
- package/dist/aurora/p-ee4475a6.entry.js +1 -0
- package/dist/aurora/p-efa289c1.entry.js +1 -0
- package/dist/aurora/p-efd60427.entry.js +1 -0
- package/dist/aurora/p-f89bde2b.entry.js +1 -0
- package/dist/aurora/p-fd4e9cdd.entry.js +1 -0
- package/dist/aurora/p-gvyxpLwV.js +1 -0
- package/dist/aurora/p-kEvQ5xF7.js +1 -0
- package/dist/aurora/p-kbAXs-sG.js +7 -0
- package/dist/aurora/p-klxij34W.js +1 -0
- package/dist/aurora/p-kpQFQ7bu.js +7 -0
- package/dist/aurora/p-tdx7CCkD.js +7 -0
- package/dist/aurora/p-vjn4H-yX.js +1 -0
- package/dist/cjs/accordion-DlPfFEHE.js +37 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/attributes-Bn886Odj.js +30 -0
- package/dist/cjs/au-accordion-item.cjs.entry.js +88 -0
- package/dist/cjs/au-accordion.cjs.entry.js +100 -0
- package/dist/cjs/au-alert.cjs.entry.js +117 -0
- package/dist/cjs/au-avatar.cjs.entry.js +177 -0
- package/dist/cjs/au-badge.cjs.entry.js +60 -0
- package/dist/cjs/au-breadcrumb-item.cjs.entry.js +84 -0
- package/dist/cjs/au-breadcrumb.cjs.entry.js +80 -0
- package/dist/cjs/au-button.cjs.entry.js +328 -0
- package/dist/cjs/au-card.cjs.entry.js +76 -0
- package/dist/cjs/au-checkbox.cjs.entry.js +183 -0
- package/dist/cjs/au-chip.cjs.entry.js +249 -0
- package/dist/cjs/au-code-block.cjs.entry.js +678 -0
- package/dist/cjs/au-combobox.cjs.entry.js +755 -0
- package/dist/cjs/au-container.cjs.entry.js +58 -0
- package/dist/cjs/au-dialog.cjs.entry.js +377 -0
- package/dist/cjs/au-divider.cjs.entry.js +106 -0
- package/dist/cjs/au-field.cjs.entry.js +185 -0
- package/dist/cjs/au-icon-D0L9Wwy0.js +350 -0
- package/dist/cjs/au-icon.cjs.entry.js +9 -0
- package/dist/cjs/au-input.cjs.entry.js +312 -0
- package/dist/cjs/au-label.cjs.entry.js +45 -0
- package/dist/cjs/au-menu-item.cjs.entry.js +71 -0
- package/dist/cjs/au-menu.cjs.entry.js +347 -0
- package/dist/cjs/au-nav-group.cjs.entry.js +50 -0
- package/dist/cjs/au-nav-link.cjs.entry.js +84 -0
- package/dist/cjs/au-navbar.cjs.entry.js +306 -0
- package/dist/cjs/au-number-input.cjs.entry.js +350 -0
- package/dist/cjs/au-popover.cjs.entry.js +130 -0
- package/dist/cjs/au-radio-group.cjs.entry.js +348 -0
- package/dist/cjs/au-radio.cjs.entry.js +45 -0
- package/dist/cjs/au-segmented-control.cjs.entry.js +544 -0
- package/dist/cjs/au-segmented-option.cjs.entry.js +78 -0
- package/dist/cjs/au-select.cjs.entry.js +336 -0
- package/dist/cjs/au-sidebar-nav.cjs.entry.js +178 -0
- package/dist/cjs/au-slider.cjs.entry.js +286 -0
- package/dist/cjs/au-splitter.cjs.entry.js +230 -0
- package/dist/cjs/au-switch.cjs.entry.js +175 -0
- package/dist/cjs/au-tab-panel.cjs.entry.js +63 -0
- package/dist/cjs/au-tab.cjs.entry.js +41 -0
- package/dist/cjs/au-tabs.cjs.entry.js +406 -0
- package/dist/cjs/au-textarea.cjs.entry.js +245 -0
- package/dist/cjs/au-toast-region.cjs.entry.js +692 -0
- package/dist/cjs/au-toast.cjs.entry.js +63 -0
- package/dist/cjs/au-toc.cjs.entry.js +445 -0
- package/dist/cjs/au-tooltip.cjs.entry.js +395 -0
- package/dist/cjs/aurora.cjs.js +25 -0
- package/dist/cjs/check-D8fNlWlh.js +16 -0
- package/dist/cjs/checkable-DhECpB9t.js +8 -0
- package/dist/cjs/circle-check-B3FqDucz.js +20 -0
- package/dist/cjs/circle-x-Tf2qIuBI.js +21 -0
- package/dist/cjs/constants.generated-CnWw9jDb.js +134 -0
- package/dist/cjs/control-id-CcdWN8_D.js +16 -0
- package/dist/cjs/copy-DJmgvzQq.js +19 -0
- package/dist/cjs/copy-check-Bktgfkg4.js +20 -0
- package/dist/cjs/deep-active-element-CoEYUbhF.js +11 -0
- package/dist/cjs/group-validity-D2brpooM.js +11 -0
- package/dist/cjs/icon-loader-DyRasOnf.js +111 -0
- package/dist/cjs/index-B8lDYTMv.js +2314 -0
- package/dist/cjs/index-DI4bia-1.js +159 -0
- package/dist/cjs/index.cjs.js +358 -0
- package/dist/cjs/info-BLcxKacU.js +20 -0
- package/dist/cjs/initial-value-CfGBZMr4.js +13 -0
- package/dist/cjs/item-update-DZTXbDLY.js +15 -0
- package/dist/cjs/link-state-B3rIWSPS.js +40 -0
- package/dist/cjs/live-announcer-vcS-BUxR.js +400 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/menu-CSfWKlaI.js +41 -0
- package/dist/cjs/minus-6XziUaOZ.js +16 -0
- package/dist/cjs/navigation-lpcPjVEI.js +63 -0
- package/dist/cjs/octagon-alert-CFrlltqZ.js +27 -0
- package/dist/cjs/plus-D3o9M7Mi.js +19 -0
- package/dist/cjs/popover-controller-B95YfF3I.js +237 -0
- package/dist/cjs/popover-support-CmR5F5K2.js +250 -0
- package/dist/cjs/resolve-size-LxALRdcg.js +13 -0
- package/dist/cjs/restore-DQu6RpSH.js +148 -0
- package/dist/cjs/reveal-BTJffR-G.js +69 -0
- package/dist/cjs/roving-CFu47frk.js +70 -0
- package/dist/cjs/segmented-CfUI9Mjx.js +53 -0
- package/dist/cjs/slider-DX8MuU0y.js +84 -0
- package/dist/cjs/toast-request-C-x_BbsL.js +67 -0
- package/dist/cjs/triangle-alert-VJkqaFrl.js +27 -0
- package/dist/cjs/user-round-Bb69LiUK.js +20 -0
- package/dist/cjs/warn-once-lHF-gQZp.js +21 -0
- package/dist/cjs/x-BmyhNJrF.js +19 -0
- package/dist/collection/collection-manifest.json +56 -0
- package/dist/collection/components/actions/au-button/au-button.constants.js +65 -0
- package/dist/collection/components/actions/au-button/au-button.css +224 -0
- package/dist/collection/components/actions/au-button/au-button.js +636 -0
- package/dist/collection/components/actions/au-button/au-button.types.js +1 -0
- package/dist/collection/components/actions/au-button/index.js +2 -0
- package/dist/collection/components/data-display/au-accordion/au-accordion.constants.js +11 -0
- package/dist/collection/components/data-display/au-accordion/au-accordion.css +7 -0
- package/dist/collection/components/data-display/au-accordion/au-accordion.js +143 -0
- package/dist/collection/components/data-display/au-accordion/au-accordion.types.js +1 -0
- package/dist/collection/components/data-display/au-accordion/index.js +2 -0
- package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.css +156 -0
- package/dist/collection/components/data-display/au-accordion-item/au-accordion-item.js +186 -0
- package/dist/collection/components/data-display/au-accordion-item/index.js +1 -0
- package/dist/collection/components/data-display/au-avatar/au-avatar.constants.js +26 -0
- package/dist/collection/components/data-display/au-avatar/au-avatar.css +93 -0
- package/dist/collection/components/data-display/au-avatar/au-avatar.js +308 -0
- package/dist/collection/components/data-display/au-avatar/au-avatar.types.js +1 -0
- package/dist/collection/components/data-display/au-avatar/index.js +2 -0
- package/dist/collection/components/data-display/au-avatar/internal/initials.js +41 -0
- package/dist/collection/components/data-display/au-badge/au-badge.constants.js +29 -0
- package/dist/collection/components/data-display/au-badge/au-badge.css +152 -0
- package/dist/collection/components/data-display/au-badge/au-badge.js +142 -0
- package/dist/collection/components/data-display/au-badge/au-badge.types.js +1 -0
- package/dist/collection/components/data-display/au-badge/index.js +2 -0
- package/dist/collection/components/data-display/au-card/au-card.constants.js +20 -0
- package/dist/collection/components/data-display/au-card/au-card.css +125 -0
- package/dist/collection/components/data-display/au-card/au-card.js +127 -0
- package/dist/collection/components/data-display/au-card/au-card.types.js +1 -0
- package/dist/collection/components/data-display/au-card/index.js +2 -0
- package/dist/collection/components/data-display/au-chip/au-chip.constants.js +22 -0
- package/dist/collection/components/data-display/au-chip/au-chip.css +207 -0
- package/dist/collection/components/data-display/au-chip/au-chip.js +371 -0
- package/dist/collection/components/data-display/au-chip/au-chip.types.js +1 -0
- package/dist/collection/components/data-display/au-chip/index.js +2 -0
- package/dist/collection/components/data-display/au-chip/internal/neighbor.js +48 -0
- package/dist/collection/components/data-display/au-chip/internal/remove-key.js +13 -0
- package/dist/collection/components/data-display/au-code-block/au-code-block.constants.js +31 -0
- package/dist/collection/components/data-display/au-code-block/au-code-block.css +331 -0
- package/dist/collection/components/data-display/au-code-block/au-code-block.js +576 -0
- package/dist/collection/components/data-display/au-code-block/au-code-block.types.js +1 -0
- package/dist/collection/components/data-display/au-code-block/index.js +2 -0
- package/dist/collection/components/data-display/au-code-block/internal/highlight-lines.js +29 -0
- package/dist/collection/components/data-display/au-code-block/internal/highlight-result.js +42 -0
- package/dist/collection/components/data-display/au-code-block/internal/light-source.js +30 -0
- package/dist/collection/components/data-display/au-code-block/internal/normalize-code.js +48 -0
- package/dist/collection/components/data-display/internal/accordion.js +31 -0
- package/dist/collection/components/feedback/au-alert/au-alert.constants.js +20 -0
- package/dist/collection/components/feedback/au-alert/au-alert.css +171 -0
- package/dist/collection/components/feedback/au-alert/au-alert.js +241 -0
- package/dist/collection/components/feedback/au-alert/au-alert.types.js +1 -0
- package/dist/collection/components/feedback/au-alert/index.js +2 -0
- package/dist/collection/components/feedback/au-toast/au-toast.constants.js +1 -0
- package/dist/collection/components/feedback/au-toast/au-toast.css +150 -0
- package/dist/collection/components/feedback/au-toast/au-toast.js +145 -0
- package/dist/collection/components/feedback/au-toast/au-toast.service.js +140 -0
- package/dist/collection/components/feedback/au-toast/au-toast.types.js +1 -0
- package/dist/collection/components/feedback/au-toast/index.js +2 -0
- package/dist/collection/components/feedback/au-toast-region/au-toast-region.css +71 -0
- package/dist/collection/components/feedback/au-toast-region/au-toast-region.js +653 -0
- package/dist/collection/components/feedback/au-toast-region/index.js +2 -0
- package/dist/collection/components/feedback/internal/toast-announcer.js +5 -0
- package/dist/collection/components/feedback/internal/toast-constants.js +52 -0
- package/dist/collection/components/feedback/internal/toast-options.js +64 -0
- package/dist/collection/components/feedback/internal/toast-popover.js +22 -0
- package/dist/collection/components/feedback/internal/toast-queue.js +74 -0
- package/dist/collection/components/feedback/internal/toast-registry.js +24 -0
- package/dist/collection/components/feedback/internal/toast-request.js +6 -0
- package/dist/collection/components/feedback/internal/toast-timers.js +61 -0
- package/dist/collection/components/feedback/internal/toast-timing.js +5 -0
- package/dist/collection/components/feedback/internal/toast-types.js +1 -0
- package/dist/collection/components/forms/au-checkbox/au-checkbox.constants.js +2 -0
- package/dist/collection/components/forms/au-checkbox/au-checkbox.css +212 -0
- package/dist/collection/components/forms/au-checkbox/au-checkbox.js +468 -0
- package/dist/collection/components/forms/au-checkbox/au-checkbox.types.js +1 -0
- package/dist/collection/components/forms/au-checkbox/index.js +2 -0
- package/dist/collection/components/forms/au-combobox/au-combobox.constants.js +26 -0
- package/dist/collection/components/forms/au-combobox/au-combobox.css +374 -0
- package/dist/collection/components/forms/au-combobox/au-combobox.js +1165 -0
- package/dist/collection/components/forms/au-combobox/au-combobox.types.js +1 -0
- package/dist/collection/components/forms/au-combobox/index.js +2 -0
- package/dist/collection/components/forms/au-field/au-field.css +78 -0
- package/dist/collection/components/forms/au-field/au-field.js +195 -0
- package/dist/collection/components/forms/au-field/index.js +1 -0
- package/dist/collection/components/forms/au-input/au-input.constants.js +35 -0
- package/dist/collection/components/forms/au-input/au-input.css +195 -0
- package/dist/collection/components/forms/au-input/au-input.js +845 -0
- package/dist/collection/components/forms/au-input/au-input.types.js +1 -0
- package/dist/collection/components/forms/au-input/index.js +2 -0
- package/dist/collection/components/forms/au-label/au-label.constants.js +7 -0
- package/dist/collection/components/forms/au-label/au-label.css +38 -0
- package/dist/collection/components/forms/au-label/au-label.js +109 -0
- package/dist/collection/components/forms/au-label/au-label.types.js +1 -0
- package/dist/collection/components/forms/au-label/index.js +2 -0
- package/dist/collection/components/forms/au-number-input/au-number-input.constants.js +15 -0
- package/dist/collection/components/forms/au-number-input/au-number-input.css +276 -0
- package/dist/collection/components/forms/au-number-input/au-number-input.js +711 -0
- package/dist/collection/components/forms/au-number-input/au-number-input.types.js +1 -0
- package/dist/collection/components/forms/au-number-input/index.js +2 -0
- package/dist/collection/components/forms/au-radio/au-radio.constants.js +2 -0
- package/dist/collection/components/forms/au-radio/au-radio.css +126 -0
- package/dist/collection/components/forms/au-radio/au-radio.js +129 -0
- package/dist/collection/components/forms/au-radio/au-radio.types.js +1 -0
- package/dist/collection/components/forms/au-radio/index.js +2 -0
- package/dist/collection/components/forms/au-radio-group/au-radio-group.constants.js +6 -0
- package/dist/collection/components/forms/au-radio-group/au-radio-group.css +67 -0
- package/dist/collection/components/forms/au-radio-group/au-radio-group.js +643 -0
- package/dist/collection/components/forms/au-radio-group/au-radio-group.types.js +1 -0
- package/dist/collection/components/forms/au-radio-group/index.js +2 -0
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.constants.js +26 -0
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.css +92 -0
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.js +916 -0
- package/dist/collection/components/forms/au-segmented-control/au-segmented-control.types.js +1 -0
- package/dist/collection/components/forms/au-segmented-control/index.js +2 -0
- package/dist/collection/components/forms/au-segmented-option/au-segmented-option.css +103 -0
- package/dist/collection/components/forms/au-segmented-option/au-segmented-option.js +191 -0
- package/dist/collection/components/forms/au-segmented-option/au-segmented-option.types.js +1 -0
- package/dist/collection/components/forms/au-segmented-option/index.js +1 -0
- package/dist/collection/components/forms/au-select/au-select.constants.js +7 -0
- package/dist/collection/components/forms/au-select/au-select.css +194 -0
- package/dist/collection/components/forms/au-select/au-select.js +589 -0
- package/dist/collection/components/forms/au-select/au-select.types.js +1 -0
- package/dist/collection/components/forms/au-select/index.js +2 -0
- package/dist/collection/components/forms/au-select/internal/read-select-options.js +45 -0
- package/dist/collection/components/forms/au-slider/au-slider.constants.js +11 -0
- package/dist/collection/components/forms/au-slider/au-slider.css +296 -0
- package/dist/collection/components/forms/au-slider/au-slider.js +675 -0
- package/dist/collection/components/forms/au-slider/au-slider.types.js +1 -0
- package/dist/collection/components/forms/au-slider/index.js +2 -0
- package/dist/collection/components/forms/au-switch/au-switch.constants.js +2 -0
- package/dist/collection/components/forms/au-switch/au-switch.css +201 -0
- package/dist/collection/components/forms/au-switch/au-switch.js +440 -0
- package/dist/collection/components/forms/au-switch/au-switch.types.js +1 -0
- package/dist/collection/components/forms/au-switch/index.js +2 -0
- package/dist/collection/components/forms/au-textarea/au-textarea.constants.js +16 -0
- package/dist/collection/components/forms/au-textarea/au-textarea.css +187 -0
- package/dist/collection/components/forms/au-textarea/au-textarea.js +694 -0
- package/dist/collection/components/forms/au-textarea/au-textarea.types.js +1 -0
- package/dist/collection/components/forms/au-textarea/index.js +2 -0
- package/dist/collection/components/forms/internal/combobox.js +86 -0
- package/dist/collection/components/forms/internal/number-input.js +54 -0
- package/dist/collection/components/forms/internal/segmented.js +43 -0
- package/dist/collection/components/forms/internal/slider.js +76 -0
- package/dist/collection/components/layout/au-container/au-container.constants.js +22 -0
- package/dist/collection/components/layout/au-container/au-container.css +109 -0
- package/dist/collection/components/layout/au-container/au-container.js +144 -0
- package/dist/collection/components/layout/au-container/au-container.types.js +1 -0
- package/dist/collection/components/layout/au-container/index.js +2 -0
- package/dist/collection/components/layout/au-divider/au-divider.constants.js +23 -0
- package/dist/collection/components/layout/au-divider/au-divider.css +73 -0
- package/dist/collection/components/layout/au-divider/au-divider.js +194 -0
- package/dist/collection/components/layout/au-divider/au-divider.types.js +1 -0
- package/dist/collection/components/layout/au-divider/index.js +2 -0
- package/dist/collection/components/layout/au-splitter/au-splitter.constants.js +9 -0
- package/dist/collection/components/layout/au-splitter/au-splitter.css +168 -0
- package/dist/collection/components/layout/au-splitter/au-splitter.js +376 -0
- package/dist/collection/components/layout/au-splitter/au-splitter.types.js +1 -0
- package/dist/collection/components/layout/au-splitter/index.js +2 -0
- package/dist/collection/components/layout/internal/splitter.js +27 -0
- package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.constants.js +4 -0
- package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.css +20 -0
- package/dist/collection/components/navigation/au-breadcrumb/au-breadcrumb.js +110 -0
- package/dist/collection/components/navigation/au-breadcrumb/index.js +2 -0
- package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.css +127 -0
- package/dist/collection/components/navigation/au-breadcrumb-item/au-breadcrumb-item.js +186 -0
- package/dist/collection/components/navigation/au-breadcrumb-item/index.js +1 -0
- package/dist/collection/components/navigation/au-nav-group/au-nav-group.css +137 -0
- package/dist/collection/components/navigation/au-nav-group/au-nav-group.js +96 -0
- package/dist/collection/components/navigation/au-nav-group/index.js +1 -0
- package/dist/collection/components/navigation/au-nav-link/au-nav-link.css +128 -0
- package/dist/collection/components/navigation/au-nav-link/au-nav-link.js +205 -0
- package/dist/collection/components/navigation/au-nav-link/index.js +1 -0
- package/dist/collection/components/navigation/au-navbar/au-navbar.constants.js +40 -0
- package/dist/collection/components/navigation/au-navbar/au-navbar.css +185 -0
- package/dist/collection/components/navigation/au-navbar/au-navbar.js +409 -0
- package/dist/collection/components/navigation/au-navbar/au-navbar.types.js +1 -0
- package/dist/collection/components/navigation/au-navbar/index.js +2 -0
- package/dist/collection/components/navigation/au-navbar/internal/collapse.js +14 -0
- package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.js +2 -0
- package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.css +29 -0
- package/dist/collection/components/navigation/au-sidebar-nav/au-sidebar-nav.js +251 -0
- package/dist/collection/components/navigation/au-sidebar-nav/index.js +2 -0
- package/dist/collection/components/navigation/au-tab/au-tab.css +84 -0
- package/dist/collection/components/navigation/au-tab/au-tab.js +107 -0
- package/dist/collection/components/navigation/au-tab/index.js +1 -0
- package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.css +20 -0
- package/dist/collection/components/navigation/au-tab-panel/au-tab-panel.js +134 -0
- package/dist/collection/components/navigation/au-tab-panel/index.js +1 -0
- package/dist/collection/components/navigation/au-tabs/au-tabs.constants.js +12 -0
- package/dist/collection/components/navigation/au-tabs/au-tabs.css +107 -0
- package/dist/collection/components/navigation/au-tabs/au-tabs.js +554 -0
- package/dist/collection/components/navigation/au-tabs/au-tabs.types.js +1 -0
- package/dist/collection/components/navigation/au-tabs/index.js +2 -0
- package/dist/collection/components/navigation/au-tabs/internal/indicator-geometry.js +18 -0
- package/dist/collection/components/navigation/au-toc/au-toc.constants.js +6 -0
- package/dist/collection/components/navigation/au-toc/au-toc.css +107 -0
- package/dist/collection/components/navigation/au-toc/au-toc.js +462 -0
- package/dist/collection/components/navigation/au-toc/index.js +2 -0
- package/dist/collection/components/navigation/au-toc/internal/toc-model.js +89 -0
- package/dist/collection/components/navigation/internal/reveal.js +65 -0
- package/dist/collection/components/overlays/au-dialog/au-dialog.constants.js +29 -0
- package/dist/collection/components/overlays/au-dialog/au-dialog.css +324 -0
- package/dist/collection/components/overlays/au-dialog/au-dialog.js +618 -0
- package/dist/collection/components/overlays/au-dialog/au-dialog.types.js +1 -0
- package/dist/collection/components/overlays/au-dialog/index.js +2 -0
- package/dist/collection/components/overlays/au-menu/au-menu.constants.js +37 -0
- package/dist/collection/components/overlays/au-menu/au-menu.css +163 -0
- package/dist/collection/components/overlays/au-menu/au-menu.js +507 -0
- package/dist/collection/components/overlays/au-menu/au-menu.types.js +1 -0
- package/dist/collection/components/overlays/au-menu/index.js +2 -0
- package/dist/collection/components/overlays/au-menu-item/au-menu-item.css +127 -0
- package/dist/collection/components/overlays/au-menu-item/au-menu-item.js +185 -0
- package/dist/collection/components/overlays/au-menu-item/au-menu-item.types.js +1 -0
- package/dist/collection/components/overlays/au-menu-item/index.js +1 -0
- package/dist/collection/components/overlays/au-popover/au-popover.constants.js +24 -0
- package/dist/collection/components/overlays/au-popover/au-popover.css +149 -0
- package/dist/collection/components/overlays/au-popover/au-popover.js +253 -0
- package/dist/collection/components/overlays/au-popover/au-popover.types.js +1 -0
- package/dist/collection/components/overlays/au-popover/index.js +2 -0
- package/dist/collection/components/overlays/au-tooltip/au-tooltip.constants.js +19 -0
- package/dist/collection/components/overlays/au-tooltip/au-tooltip.css +144 -0
- package/dist/collection/components/overlays/au-tooltip/au-tooltip.js +517 -0
- package/dist/collection/components/overlays/au-tooltip/index.js +2 -0
- package/dist/collection/components/overlays/internal/menu.js +34 -0
- package/dist/collection/components/overlays/internal/popover-controller.js +233 -0
- package/dist/collection/components/overlays/internal/typeahead.js +28 -0
- package/dist/collection/components/primitives/au-icon/au-icon.constants.js +3 -0
- package/dist/collection/components/primitives/au-icon/au-icon.css +36 -0
- package/dist/collection/components/primitives/au-icon/au-icon.js +367 -0
- package/dist/collection/components/primitives/au-icon/au-icon.types.js +1 -0
- package/dist/collection/components/primitives/au-icon/core-icons.js +20 -0
- package/dist/collection/components/primitives/au-icon/icon-loader.js +76 -0
- package/dist/collection/components/primitives/au-icon/index.js +1 -0
- package/dist/collection/foundations/constants/constants.generated.mjs +119 -0
- package/dist/collection/foundations/constants/index.js +2 -0
- package/dist/collection/foundations/constants/resolve-size.js +9 -0
- package/dist/collection/foundations/icons/autoload.js +21 -0
- package/dist/collection/foundations/icons/icon-autoload-hook.js +13 -0
- package/dist/collection/foundations/icons/icon-registry.js +147 -0
- package/dist/collection/foundations/icons/icon-sizes.js +8 -0
- package/dist/collection/foundations/icons/icon-slug.js +26 -0
- package/dist/collection/foundations/icons/icon.constants.generated.js +2284 -0
- package/dist/collection/foundations/icons/icon.constants.js +18 -0
- package/dist/collection/foundations/icons/icon.types.js +1 -0
- package/dist/collection/foundations/icons/index.js +3 -0
- package/dist/collection/foundations/icons/mdi-map.js +86 -0
- package/dist/collection/foundations/icons/register-lucide-icons.js +30 -0
- package/dist/collection/foundations/themes/theme.js +161 -0
- package/dist/collection/foundations/tokens/index.js +2 -0
- package/dist/collection/foundations/tokens/tokens.generated.mjs +178 -0
- package/dist/collection/index.js +10 -0
- package/dist/collection/integrations/basics/index.js +2 -0
- package/dist/collection/integrations/basics/is-plain-object.js +1 -0
- package/dist/collection/integrations/flux/index.js +1 -0
- package/dist/collection/integrations/flux/loader.js +66 -0
- package/dist/collection/integrations/flux/provide.js +16 -0
- package/dist/collection/integrations/flux/registry.js +42 -0
- package/dist/collection/shared/anchored/anchor-position.js +101 -0
- package/dist/collection/shared/anchored/js-positioning.js +113 -0
- package/dist/collection/shared/anchored/popover-support.js +30 -0
- package/dist/collection/shared/clipboard/clipboard.js +14 -0
- package/dist/collection/shared/clipboard/copy-procedure.js +189 -0
- package/dist/collection/shared/clipboard/copy-types.js +15 -0
- package/dist/collection/shared/focus/deep-active-element.js +7 -0
- package/dist/collection/shared/focus/index.js +1 -0
- package/dist/collection/shared/form-control/attributes.js +25 -0
- package/dist/collection/shared/form-control/checkable.js +4 -0
- package/dist/collection/shared/form-control/control-id.js +11 -0
- package/dist/collection/shared/form-control/described-by.js +5 -0
- package/dist/collection/shared/form-control/form-control-controller.js +88 -0
- package/dist/collection/shared/form-control/group-validity.js +7 -0
- package/dist/collection/shared/form-control/host-events.js +19 -0
- package/dist/collection/shared/form-control/index.js +10 -0
- package/dist/collection/shared/form-control/initial-value.js +9 -0
- package/dist/collection/shared/form-control/restore.js +12 -0
- package/dist/collection/shared/form-control/validation-message.js +12 -0
- package/dist/collection/shared/live-announcer/announce-queue.js +141 -0
- package/dist/collection/shared/live-announcer/announce-timing.js +12 -0
- package/dist/collection/shared/live-announcer/index.js +1 -0
- package/dist/collection/shared/live-announcer/live-announcer.js +150 -0
- package/dist/collection/shared/live-announcer/public.js +6 -0
- package/dist/collection/shared/modal-placement.js +42 -0
- package/dist/collection/shared/modal-target.js +59 -0
- package/dist/collection/shared/navigation/index.js +2 -0
- package/dist/collection/shared/navigation/link-state.js +34 -0
- package/dist/collection/shared/navigation/navigation.js +56 -0
- package/dist/collection/shared/observers/index.js +180 -0
- package/dist/collection/shared/roving-focus/index.js +2 -0
- package/dist/collection/shared/roving-focus/item-update.js +11 -0
- package/dist/collection/shared/roving-focus/roving.js +65 -0
- package/dist/collection/shared/warn-once.js +17 -0
- package/dist/components/au-accordion-item.d.ts +11 -0
- package/dist/components/au-accordion-item.js +1 -0
- package/dist/components/au-accordion.d.ts +11 -0
- package/dist/components/au-accordion.js +1 -0
- package/dist/components/au-alert.d.ts +11 -0
- package/dist/components/au-alert.js +1 -0
- package/dist/components/au-avatar.d.ts +11 -0
- package/dist/components/au-avatar.js +1 -0
- package/dist/components/au-badge.d.ts +11 -0
- package/dist/components/au-badge.js +1 -0
- package/dist/components/au-breadcrumb-item.d.ts +11 -0
- package/dist/components/au-breadcrumb-item.js +1 -0
- package/dist/components/au-breadcrumb.d.ts +11 -0
- package/dist/components/au-breadcrumb.js +1 -0
- package/dist/components/au-button.d.ts +11 -0
- package/dist/components/au-button.js +1 -0
- package/dist/components/au-card.d.ts +11 -0
- package/dist/components/au-card.js +1 -0
- package/dist/components/au-checkbox.d.ts +11 -0
- package/dist/components/au-checkbox.js +1 -0
- package/dist/components/au-chip.d.ts +11 -0
- package/dist/components/au-chip.js +1 -0
- package/dist/components/au-code-block.d.ts +11 -0
- package/dist/components/au-code-block.js +1 -0
- package/dist/components/au-combobox.d.ts +11 -0
- package/dist/components/au-combobox.js +1 -0
- package/dist/components/au-container.d.ts +11 -0
- package/dist/components/au-container.js +1 -0
- package/dist/components/au-dialog.d.ts +11 -0
- package/dist/components/au-dialog.js +1 -0
- package/dist/components/au-divider.d.ts +11 -0
- package/dist/components/au-divider.js +1 -0
- package/dist/components/au-field.d.ts +11 -0
- package/dist/components/au-field.js +1 -0
- package/dist/components/au-icon.d.ts +11 -0
- package/dist/components/au-icon.js +1 -0
- package/dist/components/au-input.d.ts +11 -0
- package/dist/components/au-input.js +1 -0
- package/dist/components/au-label.d.ts +11 -0
- package/dist/components/au-label.js +1 -0
- package/dist/components/au-menu-item.d.ts +11 -0
- package/dist/components/au-menu-item.js +1 -0
- package/dist/components/au-menu.d.ts +11 -0
- package/dist/components/au-menu.js +1 -0
- package/dist/components/au-nav-group.d.ts +11 -0
- package/dist/components/au-nav-group.js +1 -0
- package/dist/components/au-nav-link.d.ts +11 -0
- package/dist/components/au-nav-link.js +1 -0
- package/dist/components/au-navbar.d.ts +11 -0
- package/dist/components/au-navbar.js +1 -0
- package/dist/components/au-number-input.d.ts +11 -0
- package/dist/components/au-number-input.js +1 -0
- package/dist/components/au-popover.d.ts +11 -0
- package/dist/components/au-popover.js +1 -0
- package/dist/components/au-radio-group.d.ts +11 -0
- package/dist/components/au-radio-group.js +1 -0
- package/dist/components/au-radio.d.ts +11 -0
- package/dist/components/au-radio.js +1 -0
- package/dist/components/au-segmented-control.d.ts +11 -0
- package/dist/components/au-segmented-control.js +1 -0
- package/dist/components/au-segmented-option.d.ts +11 -0
- package/dist/components/au-segmented-option.js +1 -0
- package/dist/components/au-select.d.ts +11 -0
- package/dist/components/au-select.js +1 -0
- package/dist/components/au-sidebar-nav.d.ts +11 -0
- package/dist/components/au-sidebar-nav.js +1 -0
- package/dist/components/au-slider.d.ts +11 -0
- package/dist/components/au-slider.js +1 -0
- package/dist/components/au-splitter.d.ts +11 -0
- package/dist/components/au-splitter.js +1 -0
- package/dist/components/au-switch.d.ts +11 -0
- package/dist/components/au-switch.js +1 -0
- package/dist/components/au-tab-panel.d.ts +11 -0
- package/dist/components/au-tab-panel.js +1 -0
- package/dist/components/au-tab.d.ts +11 -0
- package/dist/components/au-tab.js +1 -0
- package/dist/components/au-tabs.d.ts +11 -0
- package/dist/components/au-tabs.js +1 -0
- package/dist/components/au-textarea.d.ts +11 -0
- package/dist/components/au-textarea.js +1 -0
- package/dist/components/au-toast-region.d.ts +11 -0
- package/dist/components/au-toast-region.js +1 -0
- package/dist/components/au-toast.d.ts +11 -0
- package/dist/components/au-toast.js +1 -0
- package/dist/components/au-toc.d.ts +11 -0
- package/dist/components/au-toc.js +1 -0
- package/dist/components/au-tooltip.d.ts +11 -0
- package/dist/components/au-tooltip.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-B3rlZvSP.js +7 -0
- package/dist/components/p-B71krpcd.js +1 -0
- package/dist/components/p-BTRtOC1j.js +1 -0
- package/dist/components/p-BTZwl4uD.js +7 -0
- package/dist/components/p-BvnCPjl5.js +1 -0
- package/dist/components/p-C-bRwiWx.js +1 -0
- package/dist/components/p-C2iVoG0G.js +1 -0
- package/dist/components/p-C48ks26E.js +1 -0
- package/dist/components/p-C6E5E18W.js +7 -0
- package/dist/components/p-CA3n-tpF.js +7 -0
- package/dist/components/p-CIZeCYao.js +1 -0
- package/dist/components/p-CJtRxiuh.js +7 -0
- package/dist/components/p-CU9sZ49I.js +7 -0
- package/dist/components/p-CfazOBmW.js +1 -0
- package/dist/components/p-Ci-XzGE3.js +1 -0
- package/dist/components/p-CnJOd66V.js +7 -0
- package/dist/components/p-Cq5N0E4D.js +7 -0
- package/dist/components/p-CrKUXDm4.js +1 -0
- package/dist/components/p-DAqsVCAy.js +1 -0
- package/dist/components/p-DBHfOAQc.js +1 -0
- package/dist/components/p-DD6GCVQb.js +1 -0
- package/dist/components/p-DIL-tsh4.js +1 -0
- package/dist/components/p-DTEnois3.js +7 -0
- package/dist/components/p-DTeHrc-Q.js +1 -0
- package/dist/components/p-DgfWQsck.js +1 -0
- package/dist/components/p-Dogh3-Bf.js +1 -0
- package/dist/components/p-DqqWqhAT.js +1 -0
- package/dist/components/p-Dv3Jcvbc.js +1 -0
- package/dist/components/p-DzNA1eDU.js +1 -0
- package/dist/components/p-JU60IJxn.js +1 -0
- package/dist/components/p-M21eKzKU.js +1 -0
- package/dist/components/p-TdUs41zm.js +1 -0
- package/dist/components/p-gvyxpLwV.js +1 -0
- package/dist/components/p-kEvQ5xF7.js +1 -0
- package/dist/components/p-kbAXs-sG.js +7 -0
- package/dist/components/p-klxij34W.js +1 -0
- package/dist/components/p-kpQFQ7bu.js +7 -0
- package/dist/components/p-tdx7CCkD.js +7 -0
- package/dist/components/p-vjn4H-yX.js +1 -0
- package/dist/custom-elements.json +9944 -0
- package/dist/esm/accordion-CfazOBmW.js +33 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/attributes-CrKUXDm4.js +27 -0
- package/dist/esm/au-accordion-item.entry.js +86 -0
- package/dist/esm/au-accordion.entry.js +98 -0
- package/dist/esm/au-alert.entry.js +115 -0
- package/dist/esm/au-avatar.entry.js +175 -0
- package/dist/esm/au-badge.entry.js +58 -0
- package/dist/esm/au-breadcrumb-item.entry.js +82 -0
- package/dist/esm/au-breadcrumb.entry.js +78 -0
- package/dist/esm/au-button.entry.js +326 -0
- package/dist/esm/au-card.entry.js +74 -0
- package/dist/esm/au-checkbox.entry.js +181 -0
- package/dist/esm/au-chip.entry.js +247 -0
- package/dist/esm/au-code-block.entry.js +676 -0
- package/dist/esm/au-combobox.entry.js +753 -0
- package/dist/esm/au-container.entry.js +56 -0
- package/dist/esm/au-dialog.entry.js +375 -0
- package/dist/esm/au-divider.entry.js +104 -0
- package/dist/esm/au-field.entry.js +183 -0
- package/dist/esm/au-icon-B17psn7x.js +344 -0
- package/dist/esm/au-icon.entry.js +3 -0
- package/dist/esm/au-input.entry.js +310 -0
- package/dist/esm/au-label.entry.js +43 -0
- package/dist/esm/au-menu-item.entry.js +69 -0
- package/dist/esm/au-menu.entry.js +345 -0
- package/dist/esm/au-nav-group.entry.js +48 -0
- package/dist/esm/au-nav-link.entry.js +82 -0
- package/dist/esm/au-navbar.entry.js +304 -0
- package/dist/esm/au-number-input.entry.js +348 -0
- package/dist/esm/au-popover.entry.js +128 -0
- package/dist/esm/au-radio-group.entry.js +346 -0
- package/dist/esm/au-radio.entry.js +43 -0
- package/dist/esm/au-segmented-control.entry.js +542 -0
- package/dist/esm/au-segmented-option.entry.js +76 -0
- package/dist/esm/au-select.entry.js +334 -0
- package/dist/esm/au-sidebar-nav.entry.js +176 -0
- package/dist/esm/au-slider.entry.js +284 -0
- package/dist/esm/au-splitter.entry.js +228 -0
- package/dist/esm/au-switch.entry.js +173 -0
- package/dist/esm/au-tab-panel.entry.js +61 -0
- package/dist/esm/au-tab.entry.js +39 -0
- package/dist/esm/au-tabs.entry.js +404 -0
- package/dist/esm/au-textarea.entry.js +243 -0
- package/dist/esm/au-toast-region.entry.js +690 -0
- package/dist/esm/au-toast.entry.js +61 -0
- package/dist/esm/au-toc.entry.js +443 -0
- package/dist/esm/au-tooltip.entry.js +393 -0
- package/dist/esm/aurora.js +21 -0
- package/dist/esm/check-CnJOd66V.js +14 -0
- package/dist/esm/checkable-kEvQ5xF7.js +6 -0
- package/dist/esm/circle-check-kpQFQ7bu.js +18 -0
- package/dist/esm/circle-x-tdx7CCkD.js +19 -0
- package/dist/esm/constants.generated-DqqWqhAT.js +120 -0
- package/dist/esm/control-id-C48ks26E.js +13 -0
- package/dist/esm/copy-B3rlZvSP.js +17 -0
- package/dist/esm/copy-check-Cq5N0E4D.js +18 -0
- package/dist/esm/deep-active-element-C-bRwiWx.js +9 -0
- package/dist/esm/group-validity-C2iVoG0G.js +9 -0
- package/dist/esm/icon-loader-CqLCmu4h.js +109 -0
- package/dist/esm/index-JU60IJxn.js +155 -0
- package/dist/esm/index-KLUZmSN-.js +2304 -0
- package/dist/esm/index.js +321 -0
- package/dist/esm/info-CA3n-tpF.js +18 -0
- package/dist/esm/initial-value-B71krpcd.js +11 -0
- package/dist/esm/item-update-DgfWQsck.js +13 -0
- package/dist/esm/link-state-DhPKwPml.js +37 -0
- package/dist/esm/live-announcer-CXd2OhYs.js +391 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/menu-vjn4H-yX.js +35 -0
- package/dist/esm/minus-kbAXs-sG.js +14 -0
- package/dist/esm/navigation-TdUs41zm.js +58 -0
- package/dist/esm/octagon-alert-DTEnois3.js +25 -0
- package/dist/esm/plus-CU9sZ49I.js +17 -0
- package/dist/esm/popover-controller-DUrPFfIx.js +235 -0
- package/dist/esm/popover-support-DBHfOAQc.js +247 -0
- package/dist/esm/resolve-size-DD6GCVQb.js +11 -0
- package/dist/esm/restore-gvyxpLwV.js +141 -0
- package/dist/esm/reveal-BvnCPjl5.js +67 -0
- package/dist/esm/roving-Dogh3-Bf.js +67 -0
- package/dist/esm/segmented-BTRtOC1j.js +45 -0
- package/dist/esm/slider-CIZeCYao.js +78 -0
- package/dist/esm/toast-request-Kwv9rt06.js +55 -0
- package/dist/esm/triangle-alert-CJtRxiuh.js +25 -0
- package/dist/esm/user-round-C6E5E18W.js +18 -0
- package/dist/esm/warn-once-Ci-XzGE3.js +19 -0
- package/dist/esm/x-BTZwl4uD.js +17 -0
- package/dist/foundations/accessibility/_index.scss +34 -0
- package/dist/foundations/constants/_config.scss +119 -0
- package/dist/foundations/constants/_index.scss +1 -0
- package/dist/foundations/interactions/_index.scss +19 -0
- package/dist/foundations/responsive/_breakpoints.scss +104 -0
- package/dist/foundations/responsive/_index.scss +1 -0
- package/dist/foundations/themes/_dark.scss +60 -0
- package/dist/foundations/themes/_default.scss +37 -0
- package/dist/foundations/themes/_glass.scss +98 -0
- package/dist/foundations/themes/_index.scss +2 -0
- package/dist/foundations/themes/_minimal.scss +54 -0
- package/dist/foundations/tokens/_config.scss +186 -0
- package/dist/foundations/tokens/_functions.scss +19 -0
- package/dist/foundations/tokens/_index.scss +3 -0
- package/dist/foundations/tokens/_runtime.scss +102 -0
- package/dist/foundations/utilities/_borders.scss +116 -0
- package/dist/foundations/utilities/_colors.scss +17 -0
- package/dist/foundations/utilities/_flex.scss +144 -0
- package/dist/foundations/utilities/_grid.scss +105 -0
- package/dist/foundations/utilities/_index.scss +92 -0
- package/dist/foundations/utilities/_positioning.scss +44 -0
- package/dist/foundations/utilities/_sizing.scss +38 -0
- package/dist/foundations/utilities/_spacing.scss +119 -0
- package/dist/foundations/utilities/_typography.scss +85 -0
- package/dist/icons/foundations/icons/autoload.d.ts +9 -0
- package/dist/icons/foundations/icons/autoload.js +21 -0
- package/dist/icons/foundations/icons/icon-autoload-hook.d.ts +14 -0
- package/dist/icons/foundations/icons/icon-autoload-hook.js +13 -0
- package/dist/icons/foundations/icons/icon-registry.d.ts +11 -0
- package/dist/icons/foundations/icons/icon-registry.js +147 -0
- package/dist/icons/foundations/icons/icon-sizes.d.ts +8 -0
- package/dist/icons/foundations/icons/icon-sizes.js +8 -0
- package/dist/icons/foundations/icons/icon-slug.d.ts +6 -0
- package/dist/icons/foundations/icons/icon-slug.js +26 -0
- package/dist/icons/foundations/icons/icon.constants.d.ts +14 -0
- package/dist/icons/foundations/icons/icon.constants.generated.d.ts +2281 -0
- package/dist/icons/foundations/icons/icon.constants.generated.js +2284 -0
- package/dist/icons/foundations/icons/icon.constants.js +18 -0
- package/dist/icons/foundations/icons/icon.types.d.ts +21 -0
- package/dist/icons/foundations/icons/icon.types.js +1 -0
- package/dist/icons/foundations/icons/index.d.ts +5 -0
- package/dist/icons/foundations/icons/index.js +3 -0
- package/dist/icons/foundations/icons/mdi-map.d.ts +92 -0
- package/dist/icons/foundations/icons/mdi-map.js +86 -0
- package/dist/icons/foundations/icons/register-lucide-icons.d.ts +14 -0
- package/dist/icons/foundations/icons/register-lucide-icons.js +30 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.js +2 -0
- package/dist/icons/integrations/basics/index.d.ts +2 -0
- package/dist/icons/integrations/basics/index.js +2 -0
- package/dist/icons/integrations/basics/is-plain-object.d.ts +1 -0
- package/dist/icons/integrations/basics/is-plain-object.js +1 -0
- package/dist/icons/package.json +3 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/scss/index.scss +4 -0
- package/dist/scss/interactions.scss +1 -0
- package/dist/scss/responsive.scss +2 -0
- package/dist/scss/themes/dark.scss +1 -0
- package/dist/scss/themes/default.scss +1 -0
- package/dist/scss/themes/glass.scss +1 -0
- package/dist/scss/themes/minimal.scss +1 -0
- package/dist/scss/tokens.scss +1 -0
- package/dist/scss/utilities/_index.scss +5 -0
- package/dist/scss/utilities/borders.scss +3 -0
- package/dist/scss/utilities/colors.scss +2 -0
- package/dist/scss/utilities/flex.scss +1 -0
- package/dist/scss/utilities/grid.scss +1 -0
- package/dist/scss/utilities/positioning.scss +2 -0
- package/dist/scss/utilities/sizing.scss +3 -0
- package/dist/scss/utilities/spacing.scss +3 -0
- package/dist/scss/utilities/typography.scss +3 -0
- package/dist/styles.css +263 -0
- package/dist/themes/glass.css +88 -0
- package/dist/themes/minimal.css +50 -0
- package/dist/tokens.cjs +38 -0
- package/dist/tokens.d.ts +337 -0
- package/dist/tokens.mjs +35 -0
- package/dist/types/components/actions/au-button/au-button.constants.d.ts +57 -0
- package/dist/types/components/actions/au-button/au-button.d.ts +93 -0
- package/dist/types/components/actions/au-button/au-button.types.d.ts +9 -0
- package/dist/types/components/actions/au-button/index.d.ts +2 -0
- package/dist/types/components/data-display/au-accordion/au-accordion.constants.d.ts +12 -0
- package/dist/types/components/data-display/au-accordion/au-accordion.d.ts +27 -0
- package/dist/types/components/data-display/au-accordion/au-accordion.types.d.ts +1 -0
- package/dist/types/components/data-display/au-accordion/index.d.ts +3 -0
- package/dist/types/components/data-display/au-accordion-item/au-accordion-item.d.ts +31 -0
- package/dist/types/components/data-display/au-accordion-item/index.d.ts +1 -0
- package/dist/types/components/data-display/au-avatar/au-avatar.constants.d.ts +26 -0
- package/dist/types/components/data-display/au-avatar/au-avatar.d.ts +39 -0
- package/dist/types/components/data-display/au-avatar/au-avatar.types.d.ts +1 -0
- package/dist/types/components/data-display/au-avatar/index.d.ts +3 -0
- package/dist/types/components/data-display/au-avatar/internal/initials.d.ts +7 -0
- package/dist/types/components/data-display/au-badge/au-badge.constants.d.ts +43 -0
- package/dist/types/components/data-display/au-badge/au-badge.d.ts +15 -0
- package/dist/types/components/data-display/au-badge/au-badge.types.d.ts +1 -0
- package/dist/types/components/data-display/au-badge/index.d.ts +3 -0
- package/dist/types/components/data-display/au-card/au-card.constants.d.ts +29 -0
- package/dist/types/components/data-display/au-card/au-card.d.ts +17 -0
- package/dist/types/components/data-display/au-card/au-card.types.d.ts +1 -0
- package/dist/types/components/data-display/au-card/index.d.ts +3 -0
- package/dist/types/components/data-display/au-chip/au-chip.constants.d.ts +23 -0
- package/dist/types/components/data-display/au-chip/au-chip.d.ts +46 -0
- package/dist/types/components/data-display/au-chip/au-chip.types.d.ts +10 -0
- package/dist/types/components/data-display/au-chip/index.d.ts +3 -0
- package/dist/types/components/data-display/au-chip/internal/neighbor.d.ts +6 -0
- package/dist/types/components/data-display/au-chip/internal/remove-key.d.ts +16 -0
- package/dist/types/components/data-display/au-code-block/au-code-block.constants.d.ts +32 -0
- package/dist/types/components/data-display/au-code-block/au-code-block.d.ts +89 -0
- package/dist/types/components/data-display/au-code-block/au-code-block.types.d.ts +17 -0
- package/dist/types/components/data-display/au-code-block/index.d.ts +3 -0
- package/dist/types/components/data-display/au-code-block/internal/highlight-lines.d.ts +10 -0
- package/dist/types/components/data-display/au-code-block/internal/highlight-result.d.ts +22 -0
- package/dist/types/components/data-display/au-code-block/internal/light-source.d.ts +10 -0
- package/dist/types/components/data-display/au-code-block/internal/normalize-code.d.ts +9 -0
- package/dist/types/components/data-display/internal/accordion.d.ts +26 -0
- package/dist/types/components/feedback/au-alert/au-alert.constants.d.ts +24 -0
- package/dist/types/components/feedback/au-alert/au-alert.d.ts +37 -0
- package/dist/types/components/feedback/au-alert/au-alert.types.d.ts +1 -0
- package/dist/types/components/feedback/au-alert/index.d.ts +3 -0
- package/dist/types/components/feedback/au-toast/au-toast.constants.d.ts +2 -0
- package/dist/types/components/feedback/au-toast/au-toast.d.ts +25 -0
- package/dist/types/components/feedback/au-toast/au-toast.service.d.ts +8 -0
- package/dist/types/components/feedback/au-toast/au-toast.types.d.ts +1 -0
- package/dist/types/components/feedback/au-toast/index.d.ts +3 -0
- package/dist/types/components/feedback/au-toast-region/au-toast-region.d.ts +106 -0
- package/dist/types/components/feedback/au-toast-region/index.d.ts +4 -0
- package/dist/types/components/feedback/internal/toast-announcer.d.ts +5 -0
- package/dist/types/components/feedback/internal/toast-constants.d.ts +70 -0
- package/dist/types/components/feedback/internal/toast-options.d.ts +28 -0
- package/dist/types/components/feedback/internal/toast-popover.d.ts +4 -0
- package/dist/types/components/feedback/internal/toast-queue.d.ts +39 -0
- package/dist/types/components/feedback/internal/toast-registry.d.ts +11 -0
- package/dist/types/components/feedback/internal/toast-request.d.ts +10 -0
- package/dist/types/components/feedback/internal/toast-timers.d.ts +19 -0
- package/dist/types/components/feedback/internal/toast-timing.d.ts +5 -0
- package/dist/types/components/feedback/internal/toast-types.d.ts +37 -0
- package/dist/types/components/forms/au-checkbox/au-checkbox.constants.d.ts +2 -0
- package/dist/types/components/forms/au-checkbox/au-checkbox.d.ts +63 -0
- package/dist/types/components/forms/au-checkbox/au-checkbox.types.d.ts +23 -0
- package/dist/types/components/forms/au-checkbox/index.d.ts +3 -0
- package/dist/types/components/forms/au-combobox/au-combobox.constants.d.ts +26 -0
- package/dist/types/components/forms/au-combobox/au-combobox.d.ts +167 -0
- package/dist/types/components/forms/au-combobox/au-combobox.types.d.ts +49 -0
- package/dist/types/components/forms/au-combobox/index.d.ts +4 -0
- package/dist/types/components/forms/au-field/au-field.d.ts +31 -0
- package/dist/types/components/forms/au-field/index.d.ts +1 -0
- package/dist/types/components/forms/au-input/au-input.constants.d.ts +35 -0
- package/dist/types/components/forms/au-input/au-input.d.ts +104 -0
- package/dist/types/components/forms/au-input/au-input.types.d.ts +35 -0
- package/dist/types/components/forms/au-input/index.d.ts +4 -0
- package/dist/types/components/forms/au-label/au-label.constants.d.ts +7 -0
- package/dist/types/components/forms/au-label/au-label.d.ts +12 -0
- package/dist/types/components/forms/au-label/au-label.types.d.ts +7 -0
- package/dist/types/components/forms/au-label/index.d.ts +2 -0
- package/dist/types/components/forms/au-number-input/au-number-input.constants.d.ts +15 -0
- package/dist/types/components/forms/au-number-input/au-number-input.d.ts +93 -0
- package/dist/types/components/forms/au-number-input/au-number-input.types.d.ts +35 -0
- package/dist/types/components/forms/au-number-input/index.d.ts +4 -0
- package/dist/types/components/forms/au-radio/au-radio.constants.d.ts +2 -0
- package/dist/types/components/forms/au-radio/au-radio.d.ts +13 -0
- package/dist/types/components/forms/au-radio/au-radio.types.d.ts +11 -0
- package/dist/types/components/forms/au-radio/index.d.ts +3 -0
- package/dist/types/components/forms/au-radio-group/au-radio-group.constants.d.ts +6 -0
- package/dist/types/components/forms/au-radio-group/au-radio-group.d.ts +89 -0
- package/dist/types/components/forms/au-radio-group/au-radio-group.types.d.ts +23 -0
- package/dist/types/components/forms/au-radio-group/index.d.ts +4 -0
- package/dist/types/components/forms/au-segmented-control/au-segmented-control.constants.d.ts +26 -0
- package/dist/types/components/forms/au-segmented-control/au-segmented-control.d.ts +113 -0
- package/dist/types/components/forms/au-segmented-control/au-segmented-control.types.d.ts +30 -0
- package/dist/types/components/forms/au-segmented-control/index.d.ts +4 -0
- package/dist/types/components/forms/au-segmented-option/au-segmented-option.d.ts +23 -0
- package/dist/types/components/forms/au-segmented-option/au-segmented-option.types.d.ts +14 -0
- package/dist/types/components/forms/au-segmented-option/index.d.ts +2 -0
- package/dist/types/components/forms/au-select/au-select.constants.d.ts +7 -0
- package/dist/types/components/forms/au-select/au-select.d.ts +91 -0
- package/dist/types/components/forms/au-select/au-select.types.d.ts +25 -0
- package/dist/types/components/forms/au-select/index.d.ts +4 -0
- package/dist/types/components/forms/au-select/internal/read-select-options.d.ts +28 -0
- package/dist/types/components/forms/au-slider/au-slider.constants.d.ts +11 -0
- package/dist/types/components/forms/au-slider/au-slider.d.ts +84 -0
- package/dist/types/components/forms/au-slider/au-slider.types.d.ts +41 -0
- package/dist/types/components/forms/au-slider/index.d.ts +4 -0
- package/dist/types/components/forms/au-switch/au-switch.constants.d.ts +2 -0
- package/dist/types/components/forms/au-switch/au-switch.d.ts +61 -0
- package/dist/types/components/forms/au-switch/au-switch.types.d.ts +21 -0
- package/dist/types/components/forms/au-switch/index.d.ts +3 -0
- package/dist/types/components/forms/au-textarea/au-textarea.constants.d.ts +16 -0
- package/dist/types/components/forms/au-textarea/au-textarea.d.ts +87 -0
- package/dist/types/components/forms/au-textarea/au-textarea.types.d.ts +33 -0
- package/dist/types/components/forms/au-textarea/index.d.ts +4 -0
- package/dist/types/components/forms/internal/combobox.d.ts +51 -0
- package/dist/types/components/forms/internal/number-input.d.ts +18 -0
- package/dist/types/components/forms/internal/segmented.d.ts +34 -0
- package/dist/types/components/forms/internal/slider.d.ts +42 -0
- package/dist/types/components/layout/au-container/au-container.constants.d.ts +24 -0
- package/dist/types/components/layout/au-container/au-container.d.ts +15 -0
- package/dist/types/components/layout/au-container/au-container.types.d.ts +1 -0
- package/dist/types/components/layout/au-container/index.d.ts +3 -0
- package/dist/types/components/layout/au-divider/au-divider.constants.d.ts +23 -0
- package/dist/types/components/layout/au-divider/au-divider.d.ts +23 -0
- package/dist/types/components/layout/au-divider/au-divider.types.d.ts +1 -0
- package/dist/types/components/layout/au-divider/index.d.ts +3 -0
- package/dist/types/components/layout/au-splitter/au-splitter.constants.d.ts +9 -0
- package/dist/types/components/layout/au-splitter/au-splitter.d.ts +53 -0
- package/dist/types/components/layout/au-splitter/au-splitter.types.d.ts +19 -0
- package/dist/types/components/layout/au-splitter/index.d.ts +4 -0
- package/dist/types/components/layout/internal/splitter.d.ts +22 -0
- package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.constants.d.ts +4 -0
- package/dist/types/components/navigation/au-breadcrumb/au-breadcrumb.d.ts +23 -0
- package/dist/types/components/navigation/au-breadcrumb/index.d.ts +2 -0
- package/dist/types/components/navigation/au-breadcrumb-item/au-breadcrumb-item.d.ts +28 -0
- package/dist/types/components/navigation/au-breadcrumb-item/index.d.ts +1 -0
- package/dist/types/components/navigation/au-nav-group/au-nav-group.d.ts +16 -0
- package/dist/types/components/navigation/au-nav-group/index.d.ts +1 -0
- package/dist/types/components/navigation/au-nav-link/au-nav-link.d.ts +25 -0
- package/dist/types/components/navigation/au-nav-link/index.d.ts +1 -0
- package/dist/types/components/navigation/au-navbar/au-navbar.constants.d.ts +40 -0
- package/dist/types/components/navigation/au-navbar/au-navbar.d.ts +74 -0
- package/dist/types/components/navigation/au-navbar/au-navbar.types.d.ts +9 -0
- package/dist/types/components/navigation/au-navbar/index.d.ts +4 -0
- package/dist/types/components/navigation/au-navbar/internal/collapse.d.ts +6 -0
- package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.constants.d.ts +2 -0
- package/dist/types/components/navigation/au-sidebar-nav/au-sidebar-nav.d.ts +49 -0
- package/dist/types/components/navigation/au-sidebar-nav/index.d.ts +2 -0
- package/dist/types/components/navigation/au-tab/au-tab.d.ts +11 -0
- package/dist/types/components/navigation/au-tab/index.d.ts +1 -0
- package/dist/types/components/navigation/au-tab-panel/au-tab-panel.d.ts +20 -0
- package/dist/types/components/navigation/au-tab-panel/index.d.ts +1 -0
- package/dist/types/components/navigation/au-tabs/au-tabs.constants.d.ts +12 -0
- package/dist/types/components/navigation/au-tabs/au-tabs.d.ts +79 -0
- package/dist/types/components/navigation/au-tabs/au-tabs.types.d.ts +7 -0
- package/dist/types/components/navigation/au-tabs/index.d.ts +4 -0
- package/dist/types/components/navigation/au-tabs/internal/indicator-geometry.d.ts +31 -0
- package/dist/types/components/navigation/au-toc/au-toc.constants.d.ts +6 -0
- package/dist/types/components/navigation/au-toc/au-toc.d.ts +84 -0
- package/dist/types/components/navigation/au-toc/index.d.ts +2 -0
- package/dist/types/components/navigation/au-toc/internal/toc-model.d.ts +41 -0
- package/dist/types/components/navigation/internal/reveal.d.ts +24 -0
- package/dist/types/components/overlays/au-dialog/au-dialog.constants.d.ts +33 -0
- package/dist/types/components/overlays/au-dialog/au-dialog.d.ts +103 -0
- package/dist/types/components/overlays/au-dialog/au-dialog.types.d.ts +11 -0
- package/dist/types/components/overlays/au-dialog/index.d.ts +3 -0
- package/dist/types/components/overlays/au-menu/au-menu.constants.d.ts +37 -0
- package/dist/types/components/overlays/au-menu/au-menu.d.ts +67 -0
- package/dist/types/components/overlays/au-menu/au-menu.types.d.ts +12 -0
- package/dist/types/components/overlays/au-menu/index.d.ts +4 -0
- package/dist/types/components/overlays/au-menu-item/au-menu-item.d.ts +19 -0
- package/dist/types/components/overlays/au-menu-item/au-menu-item.types.d.ts +14 -0
- package/dist/types/components/overlays/au-menu-item/index.d.ts +2 -0
- package/dist/types/components/overlays/au-popover/au-popover.constants.d.ts +33 -0
- package/dist/types/components/overlays/au-popover/au-popover.d.ts +28 -0
- package/dist/types/components/overlays/au-popover/au-popover.types.d.ts +10 -0
- package/dist/types/components/overlays/au-popover/index.d.ts +3 -0
- package/dist/types/components/overlays/au-tooltip/au-tooltip.constants.d.ts +28 -0
- package/dist/types/components/overlays/au-tooltip/au-tooltip.d.ts +80 -0
- package/dist/types/components/overlays/au-tooltip/index.d.ts +3 -0
- package/dist/types/components/overlays/internal/menu.d.ts +34 -0
- package/dist/types/components/overlays/internal/popover-controller.d.ts +102 -0
- package/dist/types/components/overlays/internal/typeahead.d.ts +17 -0
- package/dist/types/components/primitives/au-icon/au-icon.constants.d.ts +5 -0
- package/dist/types/components/primitives/au-icon/au-icon.d.ts +37 -0
- package/dist/types/components/primitives/au-icon/au-icon.types.d.ts +13 -0
- package/dist/types/components/primitives/au-icon/core-icons.d.ts +9 -0
- package/dist/types/components/primitives/au-icon/icon-loader.d.ts +8 -0
- package/dist/types/components/primitives/au-icon/index.d.ts +3 -0
- package/dist/types/components.d.ts +4419 -0
- package/dist/types/foundations/constants/constants.generated.d.mts +136 -0
- package/dist/types/foundations/constants/index.d.ts +3 -0
- package/dist/types/foundations/constants/resolve-size.d.ts +5 -0
- package/dist/types/foundations/icons/autoload.d.ts +9 -0
- package/dist/types/foundations/icons/icon-autoload-hook.d.ts +14 -0
- package/dist/types/foundations/icons/icon-registry.d.ts +11 -0
- package/dist/types/foundations/icons/icon-sizes.d.ts +8 -0
- package/dist/types/foundations/icons/icon-slug.d.ts +6 -0
- package/dist/types/foundations/icons/icon.constants.d.ts +14 -0
- package/dist/types/foundations/icons/icon.constants.generated.d.ts +2281 -0
- package/dist/types/foundations/icons/icon.types.d.ts +21 -0
- package/dist/types/foundations/icons/index.d.ts +5 -0
- package/dist/types/foundations/icons/mdi-map.d.ts +92 -0
- package/dist/types/foundations/icons/register-lucide-icons.d.ts +14 -0
- package/dist/types/foundations/themes/theme.d.ts +68 -0
- package/dist/types/foundations/tokens/index.d.ts +4 -0
- package/dist/types/foundations/tokens/tokens.generated.d.mts +199 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/integrations/basics/index.d.ts +2 -0
- package/dist/types/integrations/basics/is-plain-object.d.ts +1 -0
- package/dist/types/integrations/flux/index.d.ts +2 -0
- package/dist/types/integrations/flux/loader.d.ts +21 -0
- package/dist/types/integrations/flux/provide.d.ts +12 -0
- package/dist/types/integrations/flux/registry.d.ts +25 -0
- package/dist/types/shared/anchored/anchor-position.d.ts +43 -0
- package/dist/types/shared/anchored/js-positioning.d.ts +36 -0
- package/dist/types/shared/anchored/popover-support.d.ts +15 -0
- package/dist/types/shared/clipboard/clipboard.d.ts +13 -0
- package/dist/types/shared/clipboard/copy-procedure.d.ts +17 -0
- package/dist/types/shared/clipboard/copy-types.d.ts +33 -0
- package/dist/types/shared/focus/deep-active-element.d.ts +2 -0
- package/dist/types/shared/focus/index.d.ts +1 -0
- package/dist/types/shared/form-control/attributes.d.ts +11 -0
- package/dist/types/shared/form-control/checkable.d.ts +5 -0
- package/dist/types/shared/form-control/control-id.d.ts +7 -0
- package/dist/types/shared/form-control/described-by.d.ts +2 -0
- package/dist/types/shared/form-control/form-control-controller.d.ts +40 -0
- package/dist/types/shared/form-control/group-validity.d.ts +5 -0
- package/dist/types/shared/form-control/host-events.d.ts +13 -0
- package/dist/types/shared/form-control/index.d.ts +11 -0
- package/dist/types/shared/form-control/initial-value.d.ts +5 -0
- package/dist/types/shared/form-control/restore.d.ts +4 -0
- package/dist/types/shared/form-control/validation-message.d.ts +11 -0
- package/dist/types/shared/live-announcer/announce-queue.d.ts +51 -0
- package/dist/types/shared/live-announcer/announce-timing.d.ts +12 -0
- package/dist/types/shared/live-announcer/index.d.ts +2 -0
- package/dist/types/shared/live-announcer/live-announcer.d.ts +31 -0
- package/dist/types/shared/live-announcer/public.d.ts +7 -0
- package/dist/types/shared/modal-placement.d.ts +14 -0
- package/dist/types/shared/modal-target.d.ts +22 -0
- package/dist/types/shared/navigation/index.d.ts +4 -0
- package/dist/types/shared/navigation/link-state.d.ts +34 -0
- package/dist/types/shared/navigation/navigation.d.ts +28 -0
- package/dist/types/shared/observers/index.d.ts +42 -0
- package/dist/types/shared/roving-focus/index.d.ts +3 -0
- package/dist/types/shared/roving-focus/item-update.d.ts +8 -0
- package/dist/types/shared/roving-focus/roving.d.ts +22 -0
- package/dist/types/shared/warn-once.d.ts +5 -0
- package/dist/types/stencil-public-runtime.d.ts +1879 -0
- package/dist/types/vue.d.ts +68 -0
- package/dist/utilities/base.css +3160 -0
- package/dist/utilities/responsive.css +11165 -0
- package/dist/utilities.css +14326 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +493 -4
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { warnOncePerDocument } from "../../../shared/warn-once.js";
|
|
3
|
+
import { AVATAR_DEFAULT_ICON, AVATAR_LOADING, AVATAR_SHAPE, AVATAR_SIZE, isAvatarLoading, isAvatarShape, isAvatarSize, } from "./au-avatar.constants.js";
|
|
4
|
+
import { deriveInitials, normalizeInitials } from "./internal/initials.js";
|
|
5
|
+
/** The class suffix of a size (`extraLarge` is `extra-large`). */
|
|
6
|
+
const SIZE_CLASS = {
|
|
7
|
+
extraSmall: 'extra-small',
|
|
8
|
+
small: 'small',
|
|
9
|
+
medium: 'medium',
|
|
10
|
+
large: 'large',
|
|
11
|
+
extraLarge: 'extra-large',
|
|
12
|
+
};
|
|
13
|
+
/** A trimmed string, `''` for anything else. */
|
|
14
|
+
const trimmed = (value) => (typeof value === 'string' ? value.trim() : '');
|
|
15
|
+
export class AuAvatar {
|
|
16
|
+
host;
|
|
17
|
+
/** Image address. Trimmed; blank means no image. */
|
|
18
|
+
src;
|
|
19
|
+
/** The accessible name and the source of the derived initials. Trimmed. */
|
|
20
|
+
label;
|
|
21
|
+
/** Explicit initials: trimmed, at most three graphemes, kept as written. Blank falls back to the label. */
|
|
22
|
+
initials;
|
|
23
|
+
/** Fallback icon when there is neither an image nor initials. */
|
|
24
|
+
icon = AVATAR_DEFAULT_ICON;
|
|
25
|
+
/** Removes the name and hides the avatar. For an avatar beside a visible name. */
|
|
26
|
+
decorative = false;
|
|
27
|
+
/** Preset size. Unsupported values render `medium` and warn once. */
|
|
28
|
+
size = AVATAR_SIZE.medium;
|
|
29
|
+
/** Shape. Unsupported values render `circle` and warn once. */
|
|
30
|
+
shape = AVATAR_SHAPE.circle;
|
|
31
|
+
/** How the image is loaded. Unsupported values render `lazy`. */
|
|
32
|
+
loading = AVATAR_LOADING.lazy;
|
|
33
|
+
/** The state of the current image (the host's `image-state` attribute, with a non-blank `src`). */
|
|
34
|
+
imageState = 'loading';
|
|
35
|
+
imageElement;
|
|
36
|
+
loaded = false;
|
|
37
|
+
onSrcChange(next, previous) {
|
|
38
|
+
if (trimmed(next) !== trimmed(previous))
|
|
39
|
+
this.imageState = 'loading';
|
|
40
|
+
}
|
|
41
|
+
connectedCallback() {
|
|
42
|
+
if (this.loaded)
|
|
43
|
+
this.classifySettledImage();
|
|
44
|
+
}
|
|
45
|
+
componentWillRender() {
|
|
46
|
+
this.warnAboutProperties();
|
|
47
|
+
}
|
|
48
|
+
componentDidLoad() {
|
|
49
|
+
this.loaded = true;
|
|
50
|
+
this.classifySettledImage();
|
|
51
|
+
}
|
|
52
|
+
warn(key, message) {
|
|
53
|
+
warnOncePerDocument(this.host.ownerDocument, `au-avatar:${key}`, `[au-avatar] ${message}`);
|
|
54
|
+
}
|
|
55
|
+
warnAboutProperties() {
|
|
56
|
+
if (trimmed(this.label) === '' && !this.decorative) {
|
|
57
|
+
this.warn('unnamed', 'This avatar has no "label" and is not "decorative", so it is hidden from assistive technology. Set "label" to the name, or "decorative" when the name is next to it.');
|
|
58
|
+
}
|
|
59
|
+
if (!isAvatarSize(this.size)) {
|
|
60
|
+
this.warn('size', `Unsupported size ${JSON.stringify(this.size)}; it renders "medium". Use "extraSmall", "small", "medium", "large" or "extraLarge".`);
|
|
61
|
+
}
|
|
62
|
+
if (!isAvatarShape(this.shape)) {
|
|
63
|
+
this.warn('shape', `Unsupported shape ${JSON.stringify(this.shape)}; it renders "circle". Use "circle" or "square".`);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* An image that settled before the listeners ran (prerender, hydration, a moved element) never
|
|
68
|
+
* fires an event the component can see. A deferred lazy image is not `complete`, so it stays loading.
|
|
69
|
+
*/
|
|
70
|
+
classifySettledImage() {
|
|
71
|
+
const image = this.imageElement;
|
|
72
|
+
if (!image || this.imageState !== 'loading' || !image.complete)
|
|
73
|
+
return;
|
|
74
|
+
this.imageState = image.naturalWidth > 0 ? 'loaded' : 'error';
|
|
75
|
+
}
|
|
76
|
+
handleLoad = () => {
|
|
77
|
+
this.imageState = 'loaded';
|
|
78
|
+
};
|
|
79
|
+
handleError = () => {
|
|
80
|
+
this.imageState = 'error';
|
|
81
|
+
};
|
|
82
|
+
render() {
|
|
83
|
+
const label = trimmed(this.label);
|
|
84
|
+
const named = !this.decorative && label !== '';
|
|
85
|
+
const src = trimmed(this.src);
|
|
86
|
+
const showImage = src !== '' && this.imageState !== 'error';
|
|
87
|
+
const initials = normalizeInitials(this.initials) || deriveInitials(label);
|
|
88
|
+
const size = isAvatarSize(this.size) ? this.size : AVATAR_SIZE.medium;
|
|
89
|
+
const shape = isAvatarShape(this.shape) ? this.shape : AVATAR_SHAPE.circle;
|
|
90
|
+
const icon = trimmed(this.icon) === '' ? AVATAR_DEFAULT_ICON : this.icon;
|
|
91
|
+
return (h(Host, { key: 'b0e7980c6ebd6ee5ac63b7c8622ac607d15c2b47', ...(src !== '' ? { 'image-state': this.imageState } : {}) }, h("span", { key: 'dc2bc506eee9ca41ee0749020ed9c1e9a584f999', part: "base", class: `avatar avatar--size-${SIZE_CLASS[size]} avatar--shape-${shape}`, ...(named ? { role: 'img', 'aria-label': label } : { 'aria-hidden': 'true' }) }, initials !== '' ? (h("span", { part: "initials", class: "avatar__initials", "aria-hidden": "true" }, initials)) : (h("au-icon", { part: "icon", class: "avatar__icon", icon: icon, decorative: true })), showImage && (h("img", { key: '52c20ab0d43f930e8b0aa759a4feb0d9cba1f929', part: "image", class: "avatar__image", alt: "", src: src, loading: isAvatarLoading(this.loading) ? this.loading : AVATAR_LOADING.lazy, decoding: "async", ref: (element) => {
|
|
92
|
+
this.imageElement = element;
|
|
93
|
+
}, onLoad: this.handleLoad, onError: this.handleError })))));
|
|
94
|
+
}
|
|
95
|
+
static get is() { return "au-avatar"; }
|
|
96
|
+
static get encapsulation() { return "shadow"; }
|
|
97
|
+
static get originalStyleUrls() {
|
|
98
|
+
return {
|
|
99
|
+
"$": ["au-avatar.scss"]
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
static get styleUrls() {
|
|
103
|
+
return {
|
|
104
|
+
"$": ["au-avatar.css"]
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
static get properties() {
|
|
108
|
+
return {
|
|
109
|
+
"src": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "string",
|
|
114
|
+
"resolved": "string | undefined",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": true,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Image address. Trimmed; blank means no image."
|
|
122
|
+
},
|
|
123
|
+
"getter": false,
|
|
124
|
+
"setter": false,
|
|
125
|
+
"reflect": false,
|
|
126
|
+
"attribute": "src"
|
|
127
|
+
},
|
|
128
|
+
"label": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "string",
|
|
133
|
+
"resolved": "string | undefined",
|
|
134
|
+
"references": {}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": true,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": "The accessible name and the source of the derived initials. Trimmed."
|
|
141
|
+
},
|
|
142
|
+
"getter": false,
|
|
143
|
+
"setter": false,
|
|
144
|
+
"reflect": false,
|
|
145
|
+
"attribute": "label"
|
|
146
|
+
},
|
|
147
|
+
"initials": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string | undefined",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": true,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "Explicit initials: trimmed, at most three graphemes, kept as written. Blank falls back to the label."
|
|
160
|
+
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
163
|
+
"reflect": false,
|
|
164
|
+
"attribute": "initials"
|
|
165
|
+
},
|
|
166
|
+
"icon": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "IconName",
|
|
171
|
+
"resolved": "\"a-arrow-down\" | \"a-arrow-up\" | \"a-large-small\" | \"accessibility\" | \"activity\" | \"activity-square\" | \"ad\" | \"air-vent\" | \"airplay\" | \"alarm-check\" | \"alarm-clock\" | \"alarm-clock-check\" | \"alarm-clock-minus\" | \"alarm-clock-off\" | \"alarm-clock-plus\" | \"alarm-minus\" | \"alarm-plus\" | \"alarm-smoke\" | \"album\" | \"alert-circle\" | \"alert-octagon\" | \"alert-triangle\" | \"align-center\" | \"align-center-horizontal\" | \"align-center-vertical\" | \"align-end-horizontal\" | \"align-end-vertical\" | \"align-horizontal-distribute-center\" | \"align-horizontal-distribute-end\" | \"align-horizontal-distribute-start\" | \"align-horizontal-justify-center\" | \"align-horizontal-justify-end\" | \"align-horizontal-justify-start\" | \"align-horizontal-space-around\" | \"align-horizontal-space-between\" | \"align-justify\" | \"align-left\" | \"align-right\" | \"align-start-horizontal\" | \"align-start-vertical\" | \"align-vertical-distribute-center\" | \"align-vertical-distribute-end\" | \"align-vertical-distribute-start\" | \"align-vertical-justify-center\" | \"align-vertical-justify-end\" | \"align-vertical-justify-start\" | \"align-vertical-space-around\" | \"align-vertical-space-between\" | \"ambulance\" | \"ampersand\" | \"ampersands\" | \"amphora\" | \"anchor\" | \"angle\" | \"angry\" | \"annoyed\" | \"antenna\" | \"anvil\" | \"aperture\" | \"app-window\" | \"app-window-mac\" | \"apple\" | \"archive\" | \"archive-arrow-down\" | \"archive-arrow-up\" | \"archive-restore\" | \"archive-x\" | \"area-chart\" | \"armchair\" | \"armenian-dram\" | \"arrow-big-down\" | \"arrow-big-down-dash\" | \"arrow-big-left\" | \"arrow-big-left-dash\" | \"arrow-big-right\" | \"arrow-big-right-dash\" | \"arrow-big-up\" | \"arrow-big-up-dash\" | \"arrow-down\" | \"arrow-down-0-1\" | \"arrow-down-01\" | \"arrow-down-1-0\" | \"arrow-down-10\" | \"arrow-down-a-z\" | \"arrow-down-az\" | \"arrow-down-circle\" | \"arrow-down-from-line\" | \"arrow-down-left\" | \"arrow-down-left-from-circle\" | \"arrow-down-left-from-square\" | \"arrow-down-left-square\" | \"arrow-down-narrow-wide\" | \"arrow-down-right\" | \"arrow-down-right-from-circle\" | \"arrow-down-right-from-square\" | \"arrow-down-right-square\" | \"arrow-down-square\" | \"arrow-down-to-dot\" | \"arrow-down-to-line\" | \"arrow-down-up\" | \"arrow-down-wide-narrow\" | \"arrow-down-z-a\" | \"arrow-down-za\" | \"arrow-left\" | \"arrow-left-circle\" | \"arrow-left-from-line\" | \"arrow-left-right\" | \"arrow-left-square\" | \"arrow-left-to-line\" | \"arrow-right\" | \"arrow-right-circle\" | \"arrow-right-from-line\" | \"arrow-right-left\" | \"arrow-right-square\" | \"arrow-right-to-line\" | \"arrow-up\" | \"arrow-up-0-1\" | \"arrow-up-01\" | \"arrow-up-1-0\" | \"arrow-up-10\" | \"arrow-up-a-z\" | \"arrow-up-az\" | \"arrow-up-circle\" | \"arrow-up-down\" | \"arrow-up-from-dot\" | \"arrow-up-from-line\" | \"arrow-up-left\" | \"arrow-up-left-from-circle\" | \"arrow-up-left-from-square\" | \"arrow-up-left-square\" | \"arrow-up-narrow-wide\" | \"arrow-up-right\" | \"arrow-up-right-from-circle\" | \"arrow-up-right-from-square\" | \"arrow-up-right-square\" | \"arrow-up-square\" | \"arrow-up-to-line\" | \"arrow-up-wide-narrow\" | \"arrow-up-z-a\" | \"arrow-up-za\" | \"arrows-up-from-line\" | \"asterisk\" | \"asterisk-square\" | \"astroid\" | \"at-sign\" | \"atom\" | \"audio-lines\" | \"audio-lines-off\" | \"audio-lines-x\" | \"audio-waveform\" | \"avocado\" | \"award\" | \"axe\" | \"axis-3-d\" | \"axis-3d\" | \"azerbaijani-manat\" | \"baby\" | \"backpack\" | \"bacon\" | \"badge\" | \"badge-alert\" | \"badge-cent\" | \"badge-check\" | \"badge-dollar-sign\" | \"badge-euro\" | \"badge-help\" | \"badge-indian-rupee\" | \"badge-info\" | \"badge-japanese-yen\" | \"badge-minus\" | \"badge-percent\" | \"badge-plus\" | \"badge-pound-sterling\" | \"badge-question-mark\" | \"badge-russian-ruble\" | \"badge-swiss-franc\" | \"badge-turkish-lira\" | \"badge-x\" | \"baggage-claim\" | \"ball-wave\" | \"balloon\" | \"ban\" | \"banana\" | \"bandage\" | \"bangladeshi-taka\" | \"banknote\" | \"banknote-arrow-down\" | \"banknote-arrow-up\" | \"banknote-check\" | \"banknote-x\" | \"bar-chart\" | \"bar-chart-2\" | \"bar-chart-3\" | \"bar-chart-4\" | \"bar-chart-big\" | \"bar-chart-horizontal\" | \"bar-chart-horizontal-big\" | \"barcode\" | \"barrel\" | \"baseline\" | \"bath\" | \"battery\" | \"battery-charging\" | \"battery-full\" | \"battery-low\" | \"battery-medium\" | \"battery-plus\" | \"battery-warning\" | \"beaker\" | \"bean\" | \"bean-off\" | \"bed\" | \"bed-double\" | \"bed-single\" | \"beef\" | \"beef-off\" | \"beer\" | \"beer-off\" | \"belarusian-ruble\" | \"bell\" | \"bell-check\" | \"bell-dot\" | \"bell-electric\" | \"bell-minus\" | \"bell-off\" | \"bell-plus\" | \"bell-ring\" | \"between-horizonal-end\" | \"between-horizonal-start\" | \"between-horizontal-end\" | \"between-horizontal-start\" | \"between-vertical-end\" | \"between-vertical-start\" | \"biceps-flexed\" | \"bike\" | \"binary\" | \"binoculars\" | \"biohazard\" | \"bird\" | \"birdhouse\" | \"bitcoin\" | \"blend\" | \"blender\" | \"blinds\" | \"blocks\" | \"bluetooth\" | \"bluetooth-connected\" | \"bluetooth-off\" | \"bluetooth-searching\" | \"bold\" | \"bolt\" | \"bomb\" | \"bone\" | \"bone-fracture\" | \"book\" | \"book-a\" | \"book-alert\" | \"book-audio\" | \"book-bookmark\" | \"book-check\" | \"book-copy\" | \"book-dashed\" | \"book-down\" | \"book-headphones\" | \"book-heart\" | \"book-image\" | \"book-key\" | \"book-lock\" | \"book-marked\" | \"book-minus\" | \"book-open\" | \"book-open-check\" | \"book-open-text\" | \"book-plus\" | \"book-search\" | \"book-template\" | \"book-text\" | \"book-type\" | \"book-up\" | \"book-up-2\" | \"book-user\" | \"book-x\" | \"bookmark\" | \"bookmark-check\" | \"bookmark-minus\" | \"bookmark-off\" | \"bookmark-plus\" | \"bookmark-x\" | \"boom-box\" | \"bot\" | \"bot-message-square\" | \"bot-off\" | \"bottle-wine\" | \"bow-arrow\" | \"box\" | \"box-select\" | \"boxes\" | \"boxes-linked\" | \"braces\" | \"brackets\" | \"brain\" | \"brain-circuit\" | \"brain-cog\" | \"brain-off\" | \"brick-wall\" | \"brick-wall-fire\" | \"brick-wall-shield\" | \"bridge\" | \"briefcase\" | \"briefcase-business\" | \"briefcase-conveyor-belt\" | \"briefcase-medical\" | \"briefcase-plus\" | \"bring-to-front\" | \"broccoli\" | \"broom\" | \"broom-sparkles\" | \"brush\" | \"brush-cleaning\" | \"bubbles\" | \"bug\" | \"bug-off\" | \"bug-play\" | \"building\" | \"building-2\" | \"building-complex\" | \"building-complex-plus\" | \"bus\" | \"bus-front\" | \"cable\" | \"cable-car\" | \"cake\" | \"cake-slice\" | \"calculator\" | \"calendar\" | \"calendar-1\" | \"calendar-arrow-down\" | \"calendar-arrow-left\" | \"calendar-arrow-right\" | \"calendar-arrow-up\" | \"calendar-check\" | \"calendar-check-2\" | \"calendar-chevrons-left\" | \"calendar-chevrons-right\" | \"calendar-clock\" | \"calendar-cog\" | \"calendar-days\" | \"calendar-fold\" | \"calendar-heart\" | \"calendar-minus\" | \"calendar-minus-2\" | \"calendar-off\" | \"calendar-plus\" | \"calendar-plus-2\" | \"calendar-range\" | \"calendar-search\" | \"calendar-sync\" | \"calendar-x\" | \"calendar-x-2\" | \"calendars\" | \"camera\" | \"camera-off\" | \"can\" | \"can-soda\" | \"candlestick-chart\" | \"candy\" | \"candy-cane\" | \"candy-off\" | \"cannabis\" | \"cannabis-off\" | \"captions\" | \"captions-off\" | \"car\" | \"car-battery\" | \"car-front\" | \"car-taxi-front\" | \"caravan\" | \"card-sim\" | \"carrot\" | \"carton\" | \"carton-off\" | \"case-lower\" | \"case-sensitive\" | \"case-upper\" | \"cassette-tape\" | \"cast\" | \"castle\" | \"cat\" | \"cctv\" | \"cctv-off\" | \"certificate\" | \"chart-area\" | \"chart-bar\" | \"chart-bar-big\" | \"chart-bar-decreasing\" | \"chart-bar-increasing\" | \"chart-bar-stacked\" | \"chart-candlestick\" | \"chart-column\" | \"chart-column-big\" | \"chart-column-decreasing\" | \"chart-column-increasing\" | \"chart-column-stacked\" | \"chart-gantt\" | \"chart-line\" | \"chart-network\" | \"chart-no-axes-column\" | \"chart-no-axes-column-decreasing\" | \"chart-no-axes-column-increasing\" | \"chart-no-axes-combined\" | \"chart-no-axes-gantt\" | \"chart-pie\" | \"chart-quadrant\" | \"chart-radar\" | \"chart-scatter\" | \"chart-spline\" | \"check\" | \"check-check\" | \"check-circle\" | \"check-circle-2\" | \"check-line\" | \"check-square\" | \"check-square-2\" | \"chef-hat\" | \"cherry\" | \"chess-bishop\" | \"chess-king\" | \"chess-knight\" | \"chess-pawn\" | \"chess-queen\" | \"chess-rook\" | \"chevron-down\" | \"chevron-down-circle\" | \"chevron-down-square\" | \"chevron-first\" | \"chevron-last\" | \"chevron-left\" | \"chevron-left-circle\" | \"chevron-left-square\" | \"chevron-right\" | \"chevron-right-circle\" | \"chevron-right-square\" | \"chevron-up\" | \"chevron-up-circle\" | \"chevron-up-square\" | \"chevrons-down\" | \"chevrons-down-up\" | \"chevrons-left\" | \"chevrons-left-right\" | \"chevrons-left-right-ellipsis\" | \"chevrons-right\" | \"chevrons-right-left\" | \"chevrons-up\" | \"chevrons-up-down\" | \"church\" | \"cigarette\" | \"cigarette-off\" | \"circle\" | \"circle-alert\" | \"circle-arrow-down\" | \"circle-arrow-left\" | \"circle-arrow-out-down-left\" | \"circle-arrow-out-down-right\" | \"circle-arrow-out-up-left\" | \"circle-arrow-out-up-right\" | \"circle-arrow-right\" | \"circle-arrow-up\" | \"circle-check\" | \"circle-check-big\" | \"circle-chevron-down\" | \"circle-chevron-left\" | \"circle-chevron-right\" | \"circle-chevron-up\" | \"circle-chevrons-down\" | \"circle-chevrons-left\" | \"circle-chevrons-right\" | \"circle-chevrons-up\" | \"circle-dashed\" | \"circle-dashed-check\" | \"circle-divide\" | \"circle-dollar-sign\" | \"circle-dot\" | \"circle-dot-dashed\" | \"circle-ellipsis\" | \"circle-equal\" | \"circle-euro\" | \"circle-fading-arrow-up\" | \"circle-fading-play\" | \"circle-fading-plus\" | \"circle-gauge\" | \"circle-help\" | \"circle-letter-a\" | \"circle-letter-b\" | \"circle-letter-c\" | \"circle-letter-d\" | \"circle-letter-e\" | \"circle-letter-f\" | \"circle-letter-g\" | \"circle-letter-h\" | \"circle-letter-i\" | \"circle-letter-j\" | \"circle-letter-k\" | \"circle-letter-l\" | \"circle-letter-m\" | \"circle-letter-n\" | \"circle-letter-o\" | \"circle-letter-p\" | \"circle-letter-p-off\" | \"circle-letter-q\" | \"circle-letter-r\" | \"circle-letter-s\" | \"circle-letter-t\" | \"circle-letter-u\" | \"circle-letter-v\" | \"circle-letter-w\" | \"circle-letter-x\" | \"circle-letter-y\" | \"circle-letter-z\" | \"circle-minus\" | \"circle-off\" | \"circle-parking\" | \"circle-parking-off\" | \"circle-pause\" | \"circle-percent\" | \"circle-pile\" | \"circle-play\" | \"circle-plus\" | \"circle-pound-sterling\" | \"circle-power\" | \"circle-question-mark\" | \"circle-slash\" | \"circle-slash-2\" | \"circle-slashed\" | \"circle-small\" | \"circle-star\" | \"circle-stop\" | \"circle-user\" | \"circle-user-round\" | \"circle-x\" | \"circuit-board\" | \"citrus\" | \"clapperboard\" | \"clef-alto\" | \"clef-bass\" | \"clef-treble\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-clock\" | \"clipboard-copy\" | \"clipboard-edit\" | \"clipboard-list\" | \"clipboard-minus\" | \"clipboard-paste\" | \"clipboard-pen\" | \"clipboard-pen-line\" | \"clipboard-plus\" | \"clipboard-signature\" | \"clipboard-type\" | \"clipboard-x\" | \"clock\" | \"clock-1\" | \"clock-10\" | \"clock-11\" | \"clock-12\" | \"clock-2\" | \"clock-3\" | \"clock-4\" | \"clock-5\" | \"clock-6\" | \"clock-7\" | \"clock-8\" | \"clock-9\" | \"clock-alert\" | \"clock-arrow-down\" | \"clock-arrow-left\" | \"clock-arrow-right\" | \"clock-arrow-up\" | \"clock-check\" | \"clock-fading\" | \"clock-plus\" | \"closed-caption\" | \"cloud\" | \"cloud-alert\" | \"cloud-backup\" | \"cloud-check\" | \"cloud-cog\" | \"cloud-download\" | \"cloud-drizzle\" | \"cloud-fog\" | \"cloud-hail\" | \"cloud-lightning\" | \"cloud-moon\" | \"cloud-moon-rain\" | \"cloud-off\" | \"cloud-rain\" | \"cloud-rain-wind\" | \"cloud-snow\" | \"cloud-sun\" | \"cloud-sun-rain\" | \"cloud-sync\" | \"cloud-upload\" | \"cloudy\" | \"clover\" | \"club\" | \"code\" | \"code-2\" | \"code-square\" | \"code-xml\" | \"coffee\" | \"cog\" | \"coins\" | \"columns\" | \"columns-2\" | \"columns-3\" | \"columns-3-cog\" | \"columns-4\" | \"columns-settings\" | \"combine\" | \"command\" | \"compass\" | \"component\" | \"computer\" | \"concierge-bell\" | \"cone\" | \"construction\" | \"contact\" | \"contact-2\" | \"contact-round\" | \"container\" | \"contrast\" | \"cookie\" | \"cooking-pot\" | \"copy\" | \"copy-check\" | \"copy-minus\" | \"copy-plus\" | \"copy-slash\" | \"copy-x\" | \"copyleft\" | \"copyright\" | \"corner-down-left\" | \"corner-down-right\" | \"corner-left-down\" | \"corner-left-up\" | \"corner-right-down\" | \"corner-right-up\" | \"corner-up-left\" | \"corner-up-right\" | \"cpu\" | \"cpu-ai\" | \"creative-commons\" | \"credit-card\" | \"credit-card-check\" | \"credit-card-minus\" | \"credit-card-plus\" | \"credit-card-reader\" | \"credit-card-x\" | \"croissant\" | \"crop\" | \"cross\" | \"crosshair\" | \"crown\" | \"cuboid\" | \"cup-soda\" | \"cupcake\" | \"curly-braces\" | \"currency\" | \"cylinder\" | \"dam\" | \"database\" | \"database-arrow-down\" | \"database-arrow-up\" | \"database-backup\" | \"database-check\" | \"database-cog\" | \"database-minus\" | \"database-plus\" | \"database-search\" | \"database-x\" | \"database-zap\" | \"decimals-arrow-left\" | \"decimals-arrow-right\" | \"delete\" | \"dessert\" | \"diameter\" | \"diamond\" | \"diamond-minus\" | \"diamond-percent\" | \"diamond-plus\" | \"dice-1\" | \"dice-2\" | \"dice-3\" | \"dice-4\" | \"dice-5\" | \"dice-6\" | \"dices\" | \"diff\" | \"disc\" | \"disc-2\" | \"disc-3\" | \"disc-album\" | \"divide\" | \"divide-circle\" | \"divide-square\" | \"dna\" | \"dna-off\" | \"dock\" | \"dog\" | \"dollar-sign\" | \"dome\" | \"donut\" | \"door-closed\" | \"door-closed-cog\" | \"door-closed-locked\" | \"door-closed-package\" | \"door-open\" | \"door-stairwell\" | \"dot\" | \"dot-square\" | \"download\" | \"download-cloud\" | \"drafting-compass\" | \"drama\" | \"drill\" | \"drone\" | \"droplet\" | \"droplet-off\" | \"droplets\" | \"drum\" | \"drumstick\" | \"dumbbell\" | \"ear\" | \"ear-off\" | \"earbuds\" | \"earbuds-off\" | \"earth\" | \"earth-lock\" | \"eclipse\" | \"edit\" | \"edit-2\" | \"edit-3\" | \"egg\" | \"egg-fried\" | \"egg-off\" | \"eighth-note\" | \"eighth-notes\" | \"eject\" | \"ellipse\" | \"ellipsis\" | \"ellipsis-vertical\" | \"emirati-dirham\" | \"engine\" | \"equal\" | \"equal-approximately\" | \"equal-approximately-not\" | \"equal-not\" | \"equal-square\" | \"eraser\" | \"ethernet-port\" | \"euro\" | \"ev-charger\" | \"expand\" | \"external-link\" | \"eye\" | \"eye-closed\" | \"eye-dashed\" | \"eye-off\" | \"face-angry\" | \"face-expressionless\" | \"face-grinning\" | \"face-neutral\" | \"face-slightly-frowning\" | \"face-slightly-smiling\" | \"face-slightly-smiling-plus\" | \"factory\" | \"fan\" | \"fast-forward\" | \"faucet\" | \"feather\" | \"fence\" | \"ferris-wheel\" | \"file\" | \"file-archive\" | \"file-audio\" | \"file-audio-2\" | \"file-axis-3-d\" | \"file-axis-3d\" | \"file-badge\" | \"file-badge-2\" | \"file-bar-chart\" | \"file-bar-chart-2\" | \"file-box\" | \"file-braces\" | \"file-braces-corner\" | \"file-chart-column\" | \"file-chart-column-increasing\" | \"file-chart-line\" | \"file-chart-pie\" | \"file-check\" | \"file-check-2\" | \"file-check-corner\" | \"file-clock\" | \"file-code\" | \"file-code-2\" | \"file-code-corner\" | \"file-cog\" | \"file-cog-2\" | \"file-diff\" | \"file-digit\" | \"file-down\" | \"file-edit\" | \"file-exclamation-point\" | \"file-headphone\" | \"file-heart\" | \"file-image\" | \"file-input\" | \"file-json\" | \"file-json-2\" | \"file-key\" | \"file-key-2\" | \"file-line-chart\" | \"file-lock\" | \"file-lock-2\" | \"file-minus\" | \"file-minus-2\" | \"file-minus-corner\" | \"file-music\" | \"file-output\" | \"file-pen\" | \"file-pen-line\" | \"file-pie-chart\" | \"file-play\" | \"file-plus\" | \"file-plus-2\" | \"file-plus-corner\" | \"file-question\" | \"file-question-mark\" | \"file-scan\" | \"file-search\" | \"file-search-2\" | \"file-search-corner\" | \"file-signal\" | \"file-signature\" | \"file-sliders\" | \"file-spreadsheet\" | \"file-stack\" | \"file-symlink\" | \"file-terminal\" | \"file-text\" | \"file-type\" | \"file-type-2\" | \"file-type-corner\" | \"file-up\" | \"file-user\" | \"file-video\" | \"file-video-2\" | \"file-video-camera\" | \"file-volume\" | \"file-volume-2\" | \"file-warning\" | \"file-x\" | \"file-x-2\" | \"file-x-corner\" | \"files\" | \"film\" | \"filter\" | \"filter-x\" | \"fingerprint\" | \"fingerprint-pattern\" | \"fire-extinguisher\" | \"fish\" | \"fish-off\" | \"fish-symbol\" | \"fishing-hook\" | \"fishing-rod\" | \"flag\" | \"flag-off\" | \"flag-triangle-left\" | \"flag-triangle-right\" | \"flame\" | \"flame-kindling\" | \"flashlight\" | \"flashlight-off\" | \"flask-conical\" | \"flask-conical-off\" | \"flask-round\" | \"flip-horizontal\" | \"flip-horizontal-2\" | \"flip-vertical\" | \"flip-vertical-2\" | \"flower\" | \"flower-2\" | \"focus\" | \"fold-horizontal\" | \"fold-vertical\" | \"folder\" | \"folder-archive\" | \"folder-bookmark\" | \"folder-check\" | \"folder-clock\" | \"folder-closed\" | \"folder-code\" | \"folder-cog\" | \"folder-cog-2\" | \"folder-dot\" | \"folder-down\" | \"folder-edit\" | \"folder-git\" | \"folder-git-2\" | \"folder-heart\" | \"folder-input\" | \"folder-kanban\" | \"folder-key\" | \"folder-lock\" | \"folder-minus\" | \"folder-open\" | \"folder-open-dot\" | \"folder-output\" | \"folder-pen\" | \"folder-plus\" | \"folder-root\" | \"folder-search\" | \"folder-search-2\" | \"folder-symlink\" | \"folder-sync\" | \"folder-tree\" | \"folder-up\" | \"folder-user\" | \"folder-users\" | \"folder-x\" | \"folders\" | \"footprints\" | \"fork-knife\" | \"fork-knife-crossed\" | \"forklift\" | \"form\" | \"form-input\" | \"forward\" | \"frame\" | \"frown\" | \"fuel\" | \"fullscreen\" | \"function-square\" | \"funnel\" | \"funnel-plus\" | \"funnel-x\" | \"galaxy\" | \"gallery-horizontal\" | \"gallery-horizontal-end\" | \"gallery-thumbnails\" | \"gallery-vertical\" | \"gallery-vertical-end\" | \"gamepad\" | \"gamepad-2\" | \"gamepad-directional\" | \"gantt-chart\" | \"gantt-chart-square\" | \"gap-horizontal\" | \"gap-vertical\" | \"gauge\" | \"gauge-circle\" | \"gavel\" | \"gem\" | \"georgian-lari\" | \"germ\" | \"germ-off\" | \"ghost\" | \"gift\" | \"git-branch\" | \"git-branch-minus\" | \"git-branch-plus\" | \"git-commit\" | \"git-commit-horizontal\" | \"git-commit-vertical\" | \"git-compare\" | \"git-compare-arrows\" | \"git-fork\" | \"git-graph\" | \"git-merge\" | \"git-merge-conflict\" | \"git-pull-request\" | \"git-pull-request-arrow\" | \"git-pull-request-closed\" | \"git-pull-request-create\" | \"git-pull-request-create-arrow\" | \"git-pull-request-draft\" | \"glass-water\" | \"glasses\" | \"globe\" | \"globe-2\" | \"globe-check\" | \"globe-code\" | \"globe-lock\" | \"globe-off\" | \"globe-x\" | \"goal\" | \"gpu\" | \"grab\" | \"graduation-cap\" | \"grape\" | \"graph-hub\" | \"graph-star\" | \"grid\" | \"grid-2-x-2\" | \"grid-2-x-2-check\" | \"grid-2-x-2-plus\" | \"grid-2-x-2-x\" | \"grid-2x2\" | \"grid-2x2-check\" | \"grid-2x2-plus\" | \"grid-2x2-x\" | \"grid-3-x-3\" | \"grid-3x2\" | \"grid-3x3\" | \"grip\" | \"grip-horizontal\" | \"grip-vertical\" | \"groceries\" | \"group\" | \"guitar\" | \"guitar-electric\" | \"half-note\" | \"ham\" | \"hamburger\" | \"hammer\" | \"hand\" | \"hand-coins\" | \"hand-fist\" | \"hand-grab\" | \"hand-heart\" | \"hand-helping\" | \"hand-metal\" | \"hand-platter\" | \"handbag\" | \"handle-bottom-right\" | \"handshake\" | \"hard-drive\" | \"hard-drive-download\" | \"hard-drive-upload\" | \"hard-hat\" | \"hash\" | \"hat-glasses\" | \"haze\" | \"hd\" | \"hdmi-port\" | \"heading\" | \"heading-1\" | \"heading-2\" | \"heading-3\" | \"heading-4\" | \"heading-5\" | \"heading-6\" | \"headphone-off\" | \"headphones\" | \"headset\" | \"heart\" | \"heart-crack\" | \"heart-handshake\" | \"heart-minus\" | \"heart-off\" | \"heart-plus\" | \"heart-pulse\" | \"heart-x\" | \"heater\" | \"helicopter\" | \"help-circle\" | \"helping-hand\" | \"hexagon\" | \"highlighter\" | \"hiking-stick\" | \"history\" | \"hockey-stick\" | \"hop\" | \"hop-off\" | \"hospital\" | \"hot-air-balloon\" | \"hotel\" | \"hourglass\" | \"hourglass-cog\" | \"house\" | \"house-cog\" | \"house-heart\" | \"house-plug\" | \"house-plus\" | \"house-wifi\" | \"houses\" | \"ice-cream\" | \"ice-cream-2\" | \"ice-cream-bowl\" | \"ice-cream-cone\" | \"id-card\" | \"id-card-lanyard\" | \"image\" | \"image-down\" | \"image-minus\" | \"image-off\" | \"image-play\" | \"image-plus\" | \"image-up\" | \"image-upscale\" | \"images\" | \"import\" | \"inbox\" | \"indent\" | \"indent-decrease\" | \"indent-increase\" | \"indian-rupee\" | \"infinity\" | \"info\" | \"inspect\" | \"inspection-panel\" | \"italic\" | \"iteration-ccw\" | \"iteration-cw\" | \"iv-bag\" | \"japanese-yen\" | \"joystick\" | \"kanban\" | \"kanban-square\" | \"kanban-square-dashed\" | \"kayak\" | \"kazakh-tenge\" | \"key\" | \"key-round\" | \"key-square\" | \"keyboard\" | \"keyboard-music\" | \"keyboard-off\" | \"lambda\" | \"lamp\" | \"lamp-ceiling\" | \"lamp-desk\" | \"lamp-floor\" | \"lamp-wall-down\" | \"lamp-wall-up\" | \"land-plot\" | \"landmark\" | \"languages\" | \"laptop\" | \"laptop-2\" | \"laptop-minimal\" | \"laptop-minimal-check\" | \"laser\" | \"lasso\" | \"lasso-select\" | \"laugh\" | \"layer-arrow-down\" | \"layer-arrow-up\" | \"layers\" | \"layers-2\" | \"layers-3\" | \"layers-arrow-down\" | \"layers-arrow-up\" | \"layers-minus\" | \"layers-plus\" | \"layout\" | \"layout-arrow-down\" | \"layout-arrow-right\" | \"layout-dashboard\" | \"layout-freeform\" | \"layout-grid\" | \"layout-grid-circles\" | \"layout-list\" | \"layout-panel-left\" | \"layout-panel-top\" | \"layout-template\" | \"leaf\" | \"leafy-green\" | \"lectern\" | \"lens\" | \"lens-concave\" | \"lens-convex\" | \"letter-a\" | \"letter-b\" | \"letter-c\" | \"letter-d\" | \"letter-e\" | \"letter-f\" | \"letter-g\" | \"letter-h\" | \"letter-i\" | \"letter-j\" | \"letter-k\" | \"letter-l\" | \"letter-m\" | \"letter-n\" | \"letter-o\" | \"letter-p\" | \"letter-q\" | \"letter-r\" | \"letter-s\" | \"letter-spacing\" | \"letter-t\" | \"letter-text\" | \"letter-u\" | \"letter-v\" | \"letter-w\" | \"letter-x\" | \"letter-y\" | \"letter-z\" | \"letters\" | \"library\" | \"library-big\" | \"library-square\" | \"life-buoy\" | \"ligature\" | \"lightbulb\" | \"lightbulb-off\" | \"lighthouse\" | \"line-chart\" | \"line-dot-bottom-vertical\" | \"line-dot-left-horizontal\" | \"line-dot-right-horizontal\" | \"line-dot-top-vertical\" | \"line-height\" | \"line-squiggle\" | \"line-style\" | \"link\" | \"link-2\" | \"link-2-off\" | \"list\" | \"list-check\" | \"list-checks\" | \"list-chevrons-down-up\" | \"list-chevrons-up-down\" | \"list-clock\" | \"list-collapse\" | \"list-end\" | \"list-filter\" | \"list-filter-plus\" | \"list-indent-decrease\" | \"list-indent-increase\" | \"list-minus\" | \"list-music\" | \"list-ordered\" | \"list-plus\" | \"list-restart\" | \"list-sort-ascending\" | \"list-sort-descending\" | \"list-start\" | \"list-todo\" | \"list-tree\" | \"list-video\" | \"list-x\" | \"loader\" | \"loader-2\" | \"loader-circle\" | \"loader-pinwheel\" | \"locate\" | \"locate-fixed\" | \"locate-off\" | \"location-edit\" | \"lock\" | \"lock-keyhole\" | \"lock-keyhole-open\" | \"lock-open\" | \"log-in\" | \"log-out\" | \"logs\" | \"lollipop\" | \"luggage\" | \"m-square\" | \"magnet\" | \"mail\" | \"mail-badge\" | \"mail-check\" | \"mail-clock\" | \"mail-dot\" | \"mail-minus\" | \"mail-open\" | \"mail-pen\" | \"mail-plus\" | \"mail-question\" | \"mail-question-mark\" | \"mail-search\" | \"mail-warning\" | \"mail-x\" | \"mailbox\" | \"mails\" | \"map\" | \"map-minus\" | \"map-pin\" | \"map-pin-check\" | \"map-pin-check-inside\" | \"map-pin-house\" | \"map-pin-minus\" | \"map-pin-minus-inside\" | \"map-pin-off\" | \"map-pin-pen\" | \"map-pin-plus\" | \"map-pin-plus-inside\" | \"map-pin-search\" | \"map-pin-x\" | \"map-pin-x-inside\" | \"map-pinned\" | \"map-plus\" | \"mars\" | \"mars-stroke\" | \"martini\" | \"maximize\" | \"maximize-2\" | \"medal\" | \"megaphone\" | \"megaphone-off\" | \"meh\" | \"memory-stick\" | \"menu\" | \"menu-square\" | \"merge\" | \"message-circle\" | \"message-circle-check\" | \"message-circle-code\" | \"message-circle-dashed\" | \"message-circle-dashed-check\" | \"message-circle-heart\" | \"message-circle-more\" | \"message-circle-off\" | \"message-circle-plus\" | \"message-circle-question\" | \"message-circle-question-mark\" | \"message-circle-reply\" | \"message-circle-text\" | \"message-circle-warning\" | \"message-circle-x\" | \"message-square\" | \"message-square-check\" | \"message-square-code\" | \"message-square-dashed\" | \"message-square-diff\" | \"message-square-dot\" | \"message-square-heart\" | \"message-square-lock\" | \"message-square-more\" | \"message-square-off\" | \"message-square-plus\" | \"message-square-quote\" | \"message-square-reply\" | \"message-square-share\" | \"message-square-text\" | \"message-square-warning\" | \"message-square-x\" | \"messages-circle\" | \"messages-square\" | \"metronome\" | \"mic\" | \"mic-2\" | \"mic-audio-lines\" | \"mic-off\" | \"mic-signal\" | \"mic-vocal\" | \"microchip\" | \"microscope\" | \"microwave\" | \"midi-port\" | \"milestone\" | \"milk\" | \"milk-off\" | \"minimize\" | \"minimize-2\" | \"minus\" | \"minus-circle\" | \"minus-square\" | \"mirror-rectangular\" | \"mirror-round\" | \"monitor\" | \"monitor-check\" | \"monitor-cloud\" | \"monitor-cog\" | \"monitor-dot\" | \"monitor-down\" | \"monitor-off\" | \"monitor-pause\" | \"monitor-pc\" | \"monitor-play\" | \"monitor-smartphone\" | \"monitor-speaker\" | \"monitor-stop\" | \"monitor-up\" | \"monitor-x\" | \"moon\" | \"moon-star\" | \"mop\" | \"mop-sparkles\" | \"more-horizontal\" | \"more-vertical\" | \"mosque\" | \"motorbike\" | \"mountain\" | \"mountain-snow\" | \"mouse\" | \"mouse-left\" | \"mouse-off\" | \"mouse-pointer\" | \"mouse-pointer-2\" | \"mouse-pointer-2-off\" | \"mouse-pointer-ban\" | \"mouse-pointer-click\" | \"mouse-pointer-square-dashed\" | \"mouse-right\" | \"mouth\" | \"mouth-off\" | \"move\" | \"move-3-d\" | \"move-3d\" | \"move-diagonal\" | \"move-diagonal-2\" | \"move-down\" | \"move-down-left\" | \"move-down-right\" | \"move-horizontal\" | \"move-left\" | \"move-right\" | \"move-up\" | \"move-up-left\" | \"move-up-right\" | \"move-vertical\" | \"music\" | \"music-2\" | \"music-3\" | \"music-4\" | \"navigation\" | \"navigation-2\" | \"navigation-2-off\" | \"navigation-off\" | \"nepali-rupee\" | \"network\" | \"newspaper\" | \"nfc\" | \"non-binary\" | \"notebook\" | \"notebook-dot\" | \"notebook-pen\" | \"notebook-tabs\" | \"notebook-text\" | \"notepad-text\" | \"notepad-text-dashed\" | \"numbers\" | \"nut\" | \"nut-off\" | \"octagon\" | \"octagon-alert\" | \"octagon-minus\" | \"octagon-pause\" | \"octagon-x\" | \"omega\" | \"option\" | \"orbit\" | \"origami\" | \"outdent\" | \"package\" | \"package-2\" | \"package-check\" | \"package-minus\" | \"package-open\" | \"package-plus\" | \"package-search\" | \"package-x\" | \"paint-bucket\" | \"paint-roller\" | \"paintbrush\" | \"paintbrush-2\" | \"paintbrush-vertical\" | \"palette\" | \"palmtree\" | \"panda\" | \"panel-bottom\" | \"panel-bottom-close\" | \"panel-bottom-dashed\" | \"panel-bottom-inactive\" | \"panel-bottom-open\" | \"panel-left\" | \"panel-left-close\" | \"panel-left-dashed\" | \"panel-left-inactive\" | \"panel-left-open\" | \"panel-left-right-dashed\" | \"panel-right\" | \"panel-right-close\" | \"panel-right-dashed\" | \"panel-right-inactive\" | \"panel-right-open\" | \"panel-top\" | \"panel-top-bottom-dashed\" | \"panel-top-close\" | \"panel-top-dashed\" | \"panel-top-inactive\" | \"panel-top-open\" | \"panels-left-bottom\" | \"panels-left-right\" | \"panels-right-bottom\" | \"panels-top-bottom\" | \"panels-top-left\" | \"paper-bag\" | \"paperclip\" | \"parasol\" | \"parentheses\" | \"park\" | \"parking-circle\" | \"parking-circle-off\" | \"parking-meter\" | \"parking-square\" | \"parking-square-off\" | \"party-popper\" | \"pause\" | \"pause-circle\" | \"pause-octagon\" | \"paw-print\" | \"pc-case\" | \"pen\" | \"pen-box\" | \"pen-line\" | \"pen-off\" | \"pen-square\" | \"pen-tool\" | \"pencil\" | \"pencil-line\" | \"pencil-off\" | \"pencil-ruler\" | \"pencil-sparkles\" | \"pentagon\" | \"percent\" | \"percent-circle\" | \"percent-diamond\" | \"percent-square\" | \"perfume-bottle\" | \"person-standing\" | \"phi\" | \"philippine-peso\" | \"phone\" | \"phone-call\" | \"phone-forwarded\" | \"phone-incoming\" | \"phone-log\" | \"phone-missed\" | \"phone-off\" | \"phone-outgoing\" | \"pi\" | \"pi-square\" | \"piano\" | \"pickaxe\" | \"picture-in-picture\" | \"picture-in-picture-2\" | \"pie-chart\" | \"piggy-bank\" | \"pilcrow\" | \"pilcrow-left\" | \"pilcrow-right\" | \"pilcrow-square\" | \"pill\" | \"pill-bottle\" | \"pin\" | \"pin-off\" | \"pipette\" | \"pizza\" | \"plane\" | \"plane-landing\" | \"plane-takeoff\" | \"plant-pot\" | \"play\" | \"play-circle\" | \"play-off\" | \"play-square\" | \"playing-card\" | \"playing-cards\" | \"playing-cards-fan\" | \"plug\" | \"plug-2\" | \"plug-zap\" | \"plug-zap-2\" | \"plus\" | \"plus-circle\" | \"plus-square\" | \"pocket-knife\" | \"podcast\" | \"podium\" | \"pointer\" | \"pointer-off\" | \"popcorn\" | \"popsicle\" | \"pound-sterling\" | \"power\" | \"power-circle\" | \"power-off\" | \"power-square\" | \"presentation\" | \"printer\" | \"printer-3d\" | \"printer-check\" | \"printer-x\" | \"projector\" | \"proportions\" | \"puzzle\" | \"pyramid\" | \"qr-code\" | \"quote\" | \"rabbit\" | \"radar\" | \"radiation\" | \"radical\" | \"radio\" | \"radio-off\" | \"radio-receiver\" | \"radio-tower\" | \"radius\" | \"rainbow\" | \"rat\" | \"ratio\" | \"receipt\" | \"receipt-cent\" | \"receipt-euro\" | \"receipt-indian-rupee\" | \"receipt-japanese-yen\" | \"receipt-pound-sterling\" | \"receipt-russian-ruble\" | \"receipt-swiss-franc\" | \"receipt-text\" | \"receipt-turkish-lira\" | \"rectangle-circle\" | \"rectangle-ellipsis\" | \"rectangle-goggles\" | \"rectangle-horizontal\" | \"rectangle-vertical\" | \"recycle\" | \"redo\" | \"redo-2\" | \"redo-dot\" | \"refresh-ccw\" | \"refresh-ccw-dot\" | \"refresh-cw\" | \"refresh-cw-off\" | \"refrigerator\" | \"regex\" | \"remove-formatting\" | \"repeat\" | \"repeat-1\" | \"repeat-2\" | \"repeat-off\" | \"replace\" | \"replace-all\" | \"reply\" | \"reply-all\" | \"rewind\" | \"ribbon\" | \"road\" | \"robot-arm\" | \"robot-vacuum\" | \"rocket\" | \"rocking-chair\" | \"roller-coaster\" | \"rose\" | \"rotate-3-d\" | \"rotate-3d\" | \"rotate-ccw\" | \"rotate-ccw-clock\" | \"rotate-ccw-key\" | \"rotate-ccw-square\" | \"rotate-cw\" | \"rotate-cw-clock\" | \"rotate-cw-fading-clock\" | \"rotate-cw-square\" | \"route\" | \"route-off\" | \"router\" | \"rows\" | \"rows-2\" | \"rows-3\" | \"rows-4\" | \"rss\" | \"rugby-ball\" | \"ruler\" | \"ruler-dimension-line\" | \"russian-ruble\" | \"sailboat\" | \"salad\" | \"sandwich\" | \"satellite\" | \"satellite-dish\" | \"saudi-riyal\" | \"save\" | \"save-all\" | \"save-check\" | \"save-off\" | \"save-pen\" | \"save-plus\" | \"scale\" | \"scale-3-d\" | \"scale-3d\" | \"scaling\" | \"scan\" | \"scan-barcode\" | \"scan-box\" | \"scan-eye\" | \"scan-face\" | \"scan-heart\" | \"scan-line\" | \"scan-qr-code\" | \"scan-search\" | \"scan-square\" | \"scan-text\" | \"scatter-chart\" | \"school\" | \"school-2\" | \"scissors\" | \"scissors-line-dashed\" | \"scissors-square\" | \"scissors-square-dashed-bottom\" | \"scooter\" | \"scratch-blocks\" | \"screen-share\" | \"screen-share-off\" | \"screw\" | \"scroll\" | \"scroll-text\" | \"search\" | \"search-alert\" | \"search-check\" | \"search-code\" | \"search-slash\" | \"search-x\" | \"section\" | \"send\" | \"send-horizonal\" | \"send-horizontal\" | \"send-to-back\" | \"separator-horizontal\" | \"separator-vertical\" | \"server\" | \"server-cog\" | \"server-crash\" | \"server-nas\" | \"server-off\" | \"server-plus\" | \"settings\" | \"settings-2\" | \"shapes\" | \"share\" | \"share-2\" | \"sheet\" | \"shell\" | \"shelving-unit\" | \"shield\" | \"shield-alert\" | \"shield-ban\" | \"shield-check\" | \"shield-close\" | \"shield-cog\" | \"shield-cog-corner\" | \"shield-ellipsis\" | \"shield-half\" | \"shield-house\" | \"shield-keyhole\" | \"shield-lock\" | \"shield-minus\" | \"shield-off\" | \"shield-plus\" | \"shield-question\" | \"shield-question-mark\" | \"shield-user\" | \"shield-x\" | \"ship\" | \"ship-cargo\" | \"ship-wheel\" | \"shirt\" | \"shopping-bag\" | \"shopping-basket\" | \"shopping-cart\" | \"shopping-cart-minus\" | \"shopping-cart-plus\" | \"shovel\" | \"shower-head\" | \"shredder\" | \"shrimp\" | \"shrimp-off\" | \"shrink\" | \"shrub\" | \"shuffle\" | \"sidebar\" | \"sidebar-close\" | \"sidebar-open\" | \"sigma\" | \"sigma-square\" | \"signal\" | \"signal-high\" | \"signal-low\" | \"signal-medium\" | \"signal-zero\" | \"signature\" | \"signpost\" | \"signpost-big\" | \"siren\" | \"siren-off\" | \"sixteenth-notes\" | \"skip-back\" | \"skip-forward\" | \"skull\" | \"slash\" | \"slash-square\" | \"slice\" | \"sliders\" | \"sliders-horizontal\" | \"sliders-vertical\" | \"smartphone\" | \"smartphone-charging\" | \"smartphone-nfc\" | \"smartphone-user-round\" | \"smile\" | \"smile-plus\" | \"snail\" | \"snowflake\" | \"soap-dispenser-droplet\" | \"sofa\" | \"solar-panel\" | \"sort-asc\" | \"sort-desc\" | \"soup\" | \"space\" | \"spade\" | \"sparkle\" | \"sparkles\" | \"speaker\" | \"speech\" | \"spell-check\" | \"spell-check-2\" | \"spline\" | \"spline-pointer\" | \"split\" | \"split-square-horizontal\" | \"split-square-vertical\" | \"spool\" | \"sport-shoe\" | \"spotlight\" | \"spray-can\" | \"sprout\" | \"square\" | \"square-activity\" | \"square-arrow-down\" | \"square-arrow-down-left\" | \"square-arrow-down-right\" | \"square-arrow-left\" | \"square-arrow-out-down-left\" | \"square-arrow-out-down-right\" | \"square-arrow-out-up-left\" | \"square-arrow-out-up-right\" | \"square-arrow-right\" | \"square-arrow-right-enter\" | \"square-arrow-right-exit\" | \"square-arrow-up\" | \"square-arrow-up-left\" | \"square-arrow-up-right\" | \"square-asterisk\" | \"square-bookmark\" | \"square-bottom-dashed-scissors\" | \"square-centerline-dashed-horizontal\" | \"square-centerline-dashed-vertical\" | \"square-chart-gantt\" | \"square-check\" | \"square-check-big\" | \"square-chevron-down\" | \"square-chevron-left\" | \"square-chevron-right\" | \"square-chevron-up\" | \"square-chevrons-down\" | \"square-chevrons-left\" | \"square-chevrons-right\" | \"square-chevrons-up\" | \"square-code\" | \"square-dashed\" | \"square-dashed-bottom\" | \"square-dashed-bottom-code\" | \"square-dashed-kanban\" | \"square-dashed-mouse-pointer\" | \"square-dashed-plus\" | \"square-dashed-text\" | \"square-dashed-top-solid\" | \"square-dashed-x\" | \"square-dashed-x-corner\" | \"square-dimensions\" | \"square-divide\" | \"square-dot\" | \"square-equal\" | \"square-exclamation-point\" | \"square-function\" | \"square-gantt-chart\" | \"square-kanban\" | \"square-kanban-plus\" | \"square-letter-a\" | \"square-letter-b\" | \"square-letter-c\" | \"square-letter-d\" | \"square-letter-e\" | \"square-letter-f\" | \"square-letter-g\" | \"square-letter-h\" | \"square-letter-i\" | \"square-letter-j\" | \"square-letter-k\" | \"square-letter-l\" | \"square-letter-m\" | \"square-letter-n\" | \"square-letter-o\" | \"square-letter-p\" | \"square-letter-p-off\" | \"square-letter-q\" | \"square-letter-r\" | \"square-letter-s\" | \"square-letter-t\" | \"square-letter-u\" | \"square-letter-v\" | \"square-letter-w\" | \"square-letter-x\" | \"square-letter-y\" | \"square-letter-z\" | \"square-library\" | \"square-m\" | \"square-menu\" | \"square-minus\" | \"square-mouse-pointer\" | \"square-off\" | \"square-parking\" | \"square-parking-off\" | \"square-pause\" | \"square-pen\" | \"square-percent\" | \"square-pi\" | \"square-pilcrow\" | \"square-play\" | \"square-plus\" | \"square-power\" | \"square-radical\" | \"square-round-corner\" | \"square-scissors\" | \"square-sigma\" | \"square-slash\" | \"square-sparkles\" | \"square-split-horizontal\" | \"square-split-vertical\" | \"square-square\" | \"square-stack\" | \"square-star\" | \"square-stop\" | \"square-terminal\" | \"square-text\" | \"square-user\" | \"square-user-round\" | \"square-x\" | \"squares-exclude\" | \"squares-intersect\" | \"squares-subtract\" | \"squares-unite\" | \"squircle\" | \"squircle-dashed\" | \"squirrel\" | \"stamp\" | \"star\" | \"star-check\" | \"star-half\" | \"star-minus\" | \"star-off\" | \"star-plus\" | \"star-x\" | \"stars\" | \"step-back\" | \"step-forward\" | \"stethoscope\" | \"sticker\" | \"sticky-note\" | \"sticky-note-check\" | \"sticky-note-minus\" | \"sticky-note-off\" | \"sticky-note-plus\" | \"sticky-note-x\" | \"sticky-notes\" | \"stone\" | \"stop-circle\" | \"store\" | \"stretch-horizontal\" | \"stretch-vertical\" | \"strikethrough\" | \"subscript\" | \"subtitles\" | \"summary\" | \"sun\" | \"sun-dim\" | \"sun-medium\" | \"sun-moon\" | \"sun-snow\" | \"sunrise\" | \"sunset\" | \"superscript\" | \"swatch-book\" | \"swiss-franc\" | \"switch-camera\" | \"sword\" | \"swords\" | \"syringe\" | \"table\" | \"table-2\" | \"table-cells-merge\" | \"table-cells-split\" | \"table-columns-split\" | \"table-config\" | \"table-of-contents\" | \"table-properties\" | \"table-rows-split\" | \"tablet\" | \"tablet-smartphone\" | \"tablets\" | \"tag\" | \"tag-plus\" | \"tag-x\" | \"tags\" | \"tally-1\" | \"tally-2\" | \"tally-3\" | \"tally-4\" | \"tally-5\" | \"tangent\" | \"target\" | \"telescope\" | \"tent\" | \"tent-tree\" | \"terminal\" | \"terminal-square\" | \"test-tube\" | \"test-tube-2\" | \"test-tube-diagonal\" | \"test-tubes\" | \"text\" | \"text-align-center\" | \"text-align-end\" | \"text-align-justify\" | \"text-align-justify-center\" | \"text-align-justify-end\" | \"text-align-justify-start\" | \"text-align-start\" | \"text-cursor\" | \"text-cursor-input\" | \"text-initial\" | \"text-quote\" | \"text-search\" | \"text-select\" | \"text-selection\" | \"text-wrap\" | \"theater\" | \"thermometer\" | \"thermometer-snowflake\" | \"thermometer-sun\" | \"thumbs-down\" | \"thumbs-up\" | \"tic-tac-toe\" | \"ticket\" | \"ticket-check\" | \"ticket-minus\" | \"ticket-percent\" | \"ticket-plus\" | \"ticket-slash\" | \"ticket-x\" | \"tickets\" | \"tickets-plane\" | \"timeline\" | \"timer\" | \"timer-off\" | \"timer-reset\" | \"toggle-left\" | \"toggle-right\" | \"toilet\" | \"tombstone\" | \"tool-case\" | \"toolbox\" | \"toothbrush\" | \"toothbrush-sparkles\" | \"tornado\" | \"torus\" | \"touchpad\" | \"touchpad-off\" | \"towel-rack\" | \"tower-control\" | \"toy-brick\" | \"tractor\" | \"traffic-cone\" | \"trailer\" | \"train\" | \"train-front\" | \"train-front-tunnel\" | \"train-track\" | \"tram-front\" | \"transgender\" | \"trash\" | \"trash-2\" | \"trash-off\" | \"tree-deciduous\" | \"tree-palm\" | \"tree-pine\" | \"trees\" | \"trending-down\" | \"trending-up\" | \"trending-up-down\" | \"triangle\" | \"triangle-alert\" | \"triangle-dashed\" | \"triangle-right\" | \"triangles-centerline-dashed-horizontal\" | \"triangles-centerline-dashed-vertical\" | \"trophy\" | \"truck\" | \"truck-electric\" | \"tube-lotion\" | \"turkish-lira\" | \"turntable\" | \"turtle\" | \"tv\" | \"tv-2\" | \"tv-minimal\" | \"tv-minimal-play\" | \"type\" | \"type-outline\" | \"umbrella\" | \"umbrella-off\" | \"underline\" | \"undo\" | \"undo-2\" | \"undo-dot\" | \"unfold-horizontal\" | \"unfold-vertical\" | \"ungroup\" | \"university\" | \"unlink\" | \"unlink-2\" | \"unlock\" | \"unlock-keyhole\" | \"unplug\" | \"upload\" | \"upload-cloud\" | \"usb\" | \"usb-c-port\" | \"user\" | \"user-2\" | \"user-check\" | \"user-check-2\" | \"user-circle\" | \"user-circle-2\" | \"user-cog\" | \"user-cog-2\" | \"user-group\" | \"user-key\" | \"user-lock\" | \"user-minus\" | \"user-minus-2\" | \"user-pen\" | \"user-plus\" | \"user-plus-2\" | \"user-round\" | \"user-round-arrow-left\" | \"user-round-check\" | \"user-round-cog\" | \"user-round-group\" | \"user-round-key\" | \"user-round-minus\" | \"user-round-pen\" | \"user-round-plus\" | \"user-round-search\" | \"user-round-shield\" | \"user-round-star\" | \"user-round-x\" | \"user-search\" | \"user-shield\" | \"user-square\" | \"user-square-2\" | \"user-star\" | \"user-x\" | \"user-x-2\" | \"users\" | \"users-2\" | \"users-collaboration\" | \"users-round\" | \"users-round-collaboration\" | \"utensils\" | \"utensils-crossed\" | \"utility-pole\" | \"van\" | \"variable\" | \"vault\" | \"vector-polygon\" | \"vector-square\" | \"vegan\" | \"venetian-mask\" | \"venus\" | \"venus-and-mars\" | \"verified\" | \"vibrate\" | \"vibrate-off\" | \"video\" | \"video-off\" | \"videotape\" | \"view\" | \"virus\" | \"virus-off\" | \"voicemail\" | \"volleyball\" | \"volume\" | \"volume-1\" | \"volume-2\" | \"volume-off\" | \"volume-x\" | \"vote\" | \"wallet\" | \"wallet-2\" | \"wallet-cards\" | \"wallet-minimal\" | \"wallpaper\" | \"wand\" | \"wand-2\" | \"wand-sparkles\" | \"warehouse\" | \"washing-machine\" | \"watch\" | \"waves\" | \"waves-arrow-down\" | \"waves-arrow-up\" | \"waves-horizontal\" | \"waves-ladder\" | \"waves-vertical\" | \"waypoints\" | \"webcam\" | \"webcam-off\" | \"webhook\" | \"webhook-off\" | \"weight\" | \"weight-tilde\" | \"wheat\" | \"wheat-off\" | \"whistle\" | \"whole-word\" | \"wifi\" | \"wifi-cog\" | \"wifi-high\" | \"wifi-lock\" | \"wifi-low\" | \"wifi-off\" | \"wifi-pen\" | \"wifi-sync\" | \"wifi-zero\" | \"wind\" | \"wind-arrow-down\" | \"wind-arrow-up\" | \"wine\" | \"wine-off\" | \"workflow\" | \"worm\" | \"wrap-text\" | \"wrench\" | \"wrench-off\" | \"x\" | \"x-circle\" | \"x-line-top\" | \"x-octagon\" | \"x-square\" | \"zap\" | \"zap-off\" | \"zodiac-aquarius\" | \"zodiac-aries\" | \"zodiac-cancer\" | \"zodiac-capricorn\" | \"zodiac-gemini\" | \"zodiac-leo\" | \"zodiac-libra\" | \"zodiac-ophiuchus\" | \"zodiac-pisces\" | \"zodiac-sagittarius\" | \"zodiac-scorpio\" | \"zodiac-taurus\" | \"zodiac-virgo\" | \"zoom-in\" | \"zoom-out\" | `custom:${string}` | `outline:${string}`",
|
|
172
|
+
"references": {
|
|
173
|
+
"IconName": {
|
|
174
|
+
"location": "import",
|
|
175
|
+
"path": "../../../foundations/icons/icon.constants",
|
|
176
|
+
"id": "src/foundations/icons/icon.constants.ts::IconName",
|
|
177
|
+
"referenceLocation": "IconName"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": "Fallback icon when there is neither an image nor initials."
|
|
186
|
+
},
|
|
187
|
+
"getter": false,
|
|
188
|
+
"setter": false,
|
|
189
|
+
"reflect": false,
|
|
190
|
+
"attribute": "icon",
|
|
191
|
+
"defaultValue": "'user-round'"
|
|
192
|
+
},
|
|
193
|
+
"decorative": {
|
|
194
|
+
"type": "boolean",
|
|
195
|
+
"mutable": false,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "boolean",
|
|
198
|
+
"resolved": "boolean",
|
|
199
|
+
"references": {}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": "Removes the name and hides the avatar. For an avatar beside a visible name."
|
|
206
|
+
},
|
|
207
|
+
"getter": false,
|
|
208
|
+
"setter": false,
|
|
209
|
+
"reflect": true,
|
|
210
|
+
"attribute": "decorative",
|
|
211
|
+
"defaultValue": "false"
|
|
212
|
+
},
|
|
213
|
+
"size": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "AvatarSize",
|
|
218
|
+
"resolved": "\"extraLarge\" | \"extraSmall\" | \"large\" | \"medium\" | \"small\"",
|
|
219
|
+
"references": {
|
|
220
|
+
"AvatarSize": {
|
|
221
|
+
"location": "import",
|
|
222
|
+
"path": "./au-avatar.types",
|
|
223
|
+
"id": "src/components/data-display/au-avatar/au-avatar.types.ts::AvatarSize",
|
|
224
|
+
"referenceLocation": "AvatarSize"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"required": false,
|
|
229
|
+
"optional": false,
|
|
230
|
+
"docs": {
|
|
231
|
+
"tags": [],
|
|
232
|
+
"text": "Preset size. Unsupported values render `medium` and warn once."
|
|
233
|
+
},
|
|
234
|
+
"getter": false,
|
|
235
|
+
"setter": false,
|
|
236
|
+
"reflect": true,
|
|
237
|
+
"attribute": "size",
|
|
238
|
+
"defaultValue": "'medium'"
|
|
239
|
+
},
|
|
240
|
+
"shape": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"mutable": false,
|
|
243
|
+
"complexType": {
|
|
244
|
+
"original": "AvatarShape",
|
|
245
|
+
"resolved": "\"circle\" | \"square\"",
|
|
246
|
+
"references": {
|
|
247
|
+
"AvatarShape": {
|
|
248
|
+
"location": "import",
|
|
249
|
+
"path": "./au-avatar.types",
|
|
250
|
+
"id": "src/components/data-display/au-avatar/au-avatar.types.ts::AvatarShape",
|
|
251
|
+
"referenceLocation": "AvatarShape"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": false,
|
|
256
|
+
"optional": false,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": "Shape. Unsupported values render `circle` and warn once."
|
|
260
|
+
},
|
|
261
|
+
"getter": false,
|
|
262
|
+
"setter": false,
|
|
263
|
+
"reflect": true,
|
|
264
|
+
"attribute": "shape",
|
|
265
|
+
"defaultValue": "'circle'"
|
|
266
|
+
},
|
|
267
|
+
"loading": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "AvatarLoading",
|
|
272
|
+
"resolved": "\"eager\" | \"lazy\"",
|
|
273
|
+
"references": {
|
|
274
|
+
"AvatarLoading": {
|
|
275
|
+
"location": "import",
|
|
276
|
+
"path": "./au-avatar.types",
|
|
277
|
+
"id": "src/components/data-display/au-avatar/au-avatar.types.ts::AvatarLoading",
|
|
278
|
+
"referenceLocation": "AvatarLoading"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"required": false,
|
|
283
|
+
"optional": false,
|
|
284
|
+
"docs": {
|
|
285
|
+
"tags": [],
|
|
286
|
+
"text": "How the image is loaded. Unsupported values render `lazy`."
|
|
287
|
+
},
|
|
288
|
+
"getter": false,
|
|
289
|
+
"setter": false,
|
|
290
|
+
"reflect": false,
|
|
291
|
+
"attribute": "loading",
|
|
292
|
+
"defaultValue": "'lazy'"
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
static get states() {
|
|
297
|
+
return {
|
|
298
|
+
"imageState": {}
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
static get elementRef() { return "host"; }
|
|
302
|
+
static get watchers() {
|
|
303
|
+
return [{
|
|
304
|
+
"propName": "src",
|
|
305
|
+
"methodName": "onSrcChange"
|
|
306
|
+
}];
|
|
307
|
+
}
|
|
308
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AVATAR_MAX_INITIALS } from "../au-avatar.constants.js";
|
|
2
|
+
const LETTER_OR_NUMBER = /[\p{L}\p{N}]/u;
|
|
3
|
+
/**
|
|
4
|
+
* The grapheme clusters of `text`. `Intl.Segmenter` is read at call time (not at module load), so an
|
|
5
|
+
* engine without it, or a test that removes it, gets the code-point fallback.
|
|
6
|
+
*/
|
|
7
|
+
function graphemes(text) {
|
|
8
|
+
const Segmenter = Intl.Segmenter;
|
|
9
|
+
if (typeof Segmenter === 'function') {
|
|
10
|
+
return Array.from(new Segmenter(undefined, { granularity: 'grapheme' }).segment(text), (part) => part.segment);
|
|
11
|
+
}
|
|
12
|
+
return Array.from(text);
|
|
13
|
+
}
|
|
14
|
+
/** An explicit `initials` value: trimmed, at most `AVATAR_MAX_INITIALS` whole graphemes, case kept. */
|
|
15
|
+
export function normalizeInitials(value) {
|
|
16
|
+
if (typeof value !== 'string')
|
|
17
|
+
return '';
|
|
18
|
+
const text = value.trim();
|
|
19
|
+
if (text === '')
|
|
20
|
+
return '';
|
|
21
|
+
return graphemes(text).slice(0, AVATAR_MAX_INITIALS).join('');
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Initials from a name: the first grapheme of the first word, and of the last word when there are
|
|
25
|
+
* two or more. Words whose first grapheme has no letter or number (emoji, punctuation) are skipped.
|
|
26
|
+
*/
|
|
27
|
+
export function deriveInitials(label) {
|
|
28
|
+
if (typeof label !== 'string')
|
|
29
|
+
return '';
|
|
30
|
+
const initials = [];
|
|
31
|
+
for (const word of label.trim().split(/\s+/u)) {
|
|
32
|
+
const first = graphemes(word)[0];
|
|
33
|
+
if (first !== undefined && LETTER_OR_NUMBER.test(first))
|
|
34
|
+
initials.push(first);
|
|
35
|
+
}
|
|
36
|
+
const first = initials[0];
|
|
37
|
+
if (first === undefined)
|
|
38
|
+
return '';
|
|
39
|
+
const last = initials.length > 1 ? initials[initials.length - 1] : undefined;
|
|
40
|
+
return `${first}${last ?? ''}`.toUpperCase();
|
|
41
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { COLOR, SIZE } from "../../../foundations/constants/index.js";
|
|
2
|
+
export const BADGE_VARIANT = {
|
|
3
|
+
soft: 'soft',
|
|
4
|
+
solid: 'solid',
|
|
5
|
+
outline: 'outline',
|
|
6
|
+
};
|
|
7
|
+
export const BADGE_COLOR = {
|
|
8
|
+
neutral: COLOR.neutral,
|
|
9
|
+
primary: COLOR.primary,
|
|
10
|
+
secondary: COLOR.secondary,
|
|
11
|
+
info: COLOR.info,
|
|
12
|
+
success: COLOR.success,
|
|
13
|
+
warning: COLOR.warning,
|
|
14
|
+
danger: COLOR.danger,
|
|
15
|
+
};
|
|
16
|
+
export const BADGE_SIZE = {
|
|
17
|
+
small: SIZE.small,
|
|
18
|
+
medium: SIZE.medium,
|
|
19
|
+
};
|
|
20
|
+
/** Plural aliases follow the naming convention used by existing component APIs. */
|
|
21
|
+
export const BADGE_VARIANTS = BADGE_VARIANT;
|
|
22
|
+
export const BADGE_COLORS = BADGE_COLOR;
|
|
23
|
+
export const BADGE_SIZES = BADGE_SIZE;
|
|
24
|
+
const variants = new Set(Object.values(BADGE_VARIANT));
|
|
25
|
+
const colors = new Set(Object.values(BADGE_COLOR));
|
|
26
|
+
const sizes = new Set(Object.values(BADGE_SIZE));
|
|
27
|
+
export const isBadgeVariant = (value) => typeof value === 'string' && variants.has(value);
|
|
28
|
+
export const isBadgeColor = (value) => typeof value === 'string' && colors.has(value);
|
|
29
|
+
export const isBadgeSize = (value) => typeof value === 'string' && sizes.has(value);
|