@plusui/library 0.1.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 +118 -0
- package/cdn/base-Cl6v8-BZ.js +8 -0
- package/cdn/base-hbm3XPKy.js +6 -0
- package/cdn/components/accordion/accordion.js +205 -0
- package/cdn/components/accordion/accordion.style.js +91 -0
- package/cdn/components/accordion/index.js +11 -0
- package/cdn/components/accordion-group/accordion-group.js +181 -0
- package/cdn/components/accordion-group/index.js +10 -0
- package/cdn/components/alert/alert.js +265 -0
- package/cdn/components/alert/alert.style.js +81 -0
- package/cdn/components/alert/index.js +11 -0
- package/cdn/components/avatar/avatar.js +183 -0
- package/cdn/components/avatar/avatar.style.js +29 -0
- package/cdn/components/avatar/index.js +13 -0
- package/cdn/components/badge/badge.host.style.js +12 -0
- package/cdn/components/badge/badge.js +151 -0
- package/cdn/components/badge/badge.style.js +62 -0
- package/cdn/components/badge/index.js +15 -0
- package/cdn/components/base/index.js +3 -0
- package/cdn/components/base/tailwind-base.js +192 -0
- package/cdn/components/breadcrumb/breadcrumb.js +59 -0
- package/cdn/components/breadcrumb/breadcrumb.style.js +39 -0
- package/cdn/components/breadcrumb/index.js +13 -0
- package/cdn/components/breadcrumb-item/breadcrumb-item.js +132 -0
- package/cdn/components/breadcrumb-item/breadcrumb-item.style.js +40 -0
- package/cdn/components/breadcrumb-item/index.js +13 -0
- package/cdn/components/button/button.js +231 -0
- package/cdn/components/button/button.style.js +68 -0
- package/cdn/components/button/index.js +13 -0
- package/cdn/components/button-group/button-group.js +250 -0
- package/cdn/components/button-group/button-group.style.js +52 -0
- package/cdn/components/button-group/index.js +12 -0
- package/cdn/components/caption/caption.style.js +29 -0
- package/cdn/components/checkbox/checkbox.js +205 -0
- package/cdn/components/checkbox/checkbox.style.js +158 -0
- package/cdn/components/checkbox/index.js +20 -0
- package/cdn/components/checkbox-group/checkbox-group.js +106 -0
- package/cdn/components/checkbox-group/checkbox-group.style.js +39 -0
- package/cdn/components/checkbox-group/index.js +13 -0
- package/cdn/components/chip/chip.js +188 -0
- package/cdn/components/chip/chip.style.js +71 -0
- package/cdn/components/chip/index.js +11 -0
- package/cdn/components/divider/divider.js +126 -0
- package/cdn/components/divider/divider.style.js +151 -0
- package/cdn/components/divider/index.js +12 -0
- package/cdn/components/drawer/drawer.js +188 -0
- package/cdn/components/drawer/drawer.style.js +171 -0
- package/cdn/components/drawer/index.js +12 -0
- package/cdn/components/dropdown/dropdown.js +331 -0
- package/cdn/components/dropdown/dropdown.style.js +15 -0
- package/cdn/components/dropdown/index.js +15 -0
- package/cdn/components/dropdown-item/dropdown-item.js +104 -0
- package/cdn/components/dropdown-item/index.js +12 -0
- package/cdn/components/icon/icon.js +2999 -0
- package/cdn/components/icon/index.js +7 -0
- package/cdn/components/index.js +139 -0
- package/cdn/components/input/index.js +19 -0
- package/cdn/components/input/input.js +591 -0
- package/cdn/components/input/input.style.js +133 -0
- package/cdn/components/label/label.style.js +28 -0
- package/cdn/components/link/index.js +9 -0
- package/cdn/components/link/link.js +168 -0
- package/cdn/components/link/link.style.js +41 -0
- package/cdn/components/list-box-item/index.js +13 -0
- package/cdn/components/list-box-item/list-box-item.js +101 -0
- package/cdn/components/list-box-item/list-box-item.style.js +42 -0
- package/cdn/components/modal/index.js +12 -0
- package/cdn/components/modal/modal.js +224 -0
- package/cdn/components/modal/modal.style.js +101 -0
- package/cdn/components/popconfirm/index.js +15 -0
- package/cdn/components/popconfirm/popconfirm.js +476 -0
- package/cdn/components/popconfirm/popconfirm.style.js +78 -0
- package/cdn/components/popover/index.js +15 -0
- package/cdn/components/popover/popover.js +417 -0
- package/cdn/components/popover/popover.style.js +67 -0
- package/cdn/components/radio/index.js +14 -0
- package/cdn/components/radio/radio.js +235 -0
- package/cdn/components/radio/radio.style.js +98 -0
- package/cdn/components/radio-group/index.js +9 -0
- package/cdn/components/radio-group/radio-group.js +142 -0
- package/cdn/components/radio-group/radio-group.style.js +18 -0
- package/cdn/components/rating/index.js +20 -0
- package/cdn/components/rating/rating.js +301 -0
- package/cdn/components/rating/rating.style.js +62 -0
- package/cdn/components/segmented-picker/index.js +13 -0
- package/cdn/components/segmented-picker/segmented-picker.component.js +119 -0
- package/cdn/components/segmented-picker/segmented-picker.style.js +49 -0
- package/cdn/components/segmented-picker-item/index.js +12 -0
- package/cdn/components/segmented-picker-item/segmented-picker-item.component.js +140 -0
- package/cdn/components/segmented-picker-item/segmented-picker-item.style.js +49 -0
- package/cdn/components/select/index.js +15 -0
- package/cdn/components/select/select.js +376 -0
- package/cdn/components/select/select.style.js +15 -0
- package/cdn/components/select-item/index.js +12 -0
- package/cdn/components/select-item/select-item.js +92 -0
- package/cdn/components/service/index.js +17 -0
- package/cdn/components/service/service.js +50 -0
- package/cdn/components/svg-icon/icons.js +31 -0
- package/cdn/components/svg-icon/index.js +8 -0
- package/cdn/components/svg-icon/svg-icon.js +31 -0
- package/cdn/components/tab/index.js +14 -0
- package/cdn/components/tab/styles.js +134 -0
- package/cdn/components/tab/tab.js +212 -0
- package/cdn/components/tab-group/index.js +15 -0
- package/cdn/components/tab-group/tab-group.js +346 -0
- package/cdn/components/tab-panel/index.js +12 -0
- package/cdn/components/tab-panel/tab-panel.js +72 -0
- package/cdn/components/tag/index.js +13 -0
- package/cdn/components/tag/tag.js +188 -0
- package/cdn/components/tag/tag.style.js +38 -0
- package/cdn/components/text/index.js +11 -0
- package/cdn/components/text/text.js +84 -0
- package/cdn/components/text/text.style.js +23 -0
- package/cdn/components/textarea/index.js +19 -0
- package/cdn/components/textarea/textarea.js +281 -0
- package/cdn/components/textarea/textarea.style.js +106 -0
- package/cdn/components/toast/index.js +16 -0
- package/cdn/components/toast/toast.js +188 -0
- package/cdn/components/toast/toast.style.js +88 -0
- package/cdn/components/toast-container/index.js +20 -0
- package/cdn/components/toast-container/toast-container.js +110 -0
- package/cdn/components/toast-container/toast-container.style.js +31 -0
- package/cdn/components/toggle/index.js +24 -0
- package/cdn/components/toggle/toggle.js +509 -0
- package/cdn/components/toggle/toggle.style.js +249 -0
- package/cdn/components/tooltip/index.js +15 -0
- package/cdn/components/tooltip/tooltip.js +266 -0
- package/cdn/components/tooltip/tooltip.style.js +18 -0
- package/cdn/controllers/slot-controller.js +40 -0
- package/cdn/directive-B-tr8_pJ.js +6 -0
- package/cdn/directive-DZCF8pFJ.js +8 -0
- package/cdn/factory/tailwind-factory.js +23 -0
- package/cdn/floating-ui.dom-CXNHR8n2.js +1 -0
- package/cdn/floating-ui.dom-OBaMlALa.js +1571 -0
- package/cdn/global--d79_U21.js +1 -0
- package/cdn/global-Dh9axYQH.js +31 -0
- package/cdn/if-defined-CQ5F5a3V.js +6 -0
- package/cdn/if-defined-D-m3dgRf.js +9 -0
- package/cdn/index-B9iart53.js +2545 -0
- package/cdn/index-BMAGQoq5.js +1 -0
- package/cdn/lit-element-ByzbtpGk.js +27 -0
- package/cdn/lit-element-DNNEDGnu.js +23 -0
- package/cdn/live-BOAtKRUN.js +16 -0
- package/cdn/live-Ba4FL2pG.js +11 -0
- package/cdn/loader.js +301 -0
- package/cdn/model/plus.js +13 -0
- package/cdn/property-DLlzgs39.js +7 -0
- package/cdn/property-DiPQx9S3.js +38 -0
- package/cdn/query-CHb9Ft_d.js +9 -0
- package/cdn/query-DhvfedBn.js +6 -0
- package/cdn/query-assigned-elements-B8Evmg7O.js +9 -0
- package/cdn/query-assigned-elements-BVENYXMn.js +6 -0
- package/cdn/services/toast.service.js +71 -0
- package/cdn/state-CoIPL7X5.js +6 -0
- package/cdn/state-D1d5Sfj8.js +9 -0
- package/cdn/style-map-DC_vNus2.js +10 -0
- package/cdn/style-map-Z-XBeQmS.js +6 -0
- package/cdn/unsafe-html-BhmP6ONc.js +10 -0
- package/cdn/unsafe-html-rEfV9uY8.js +6 -0
- package/custom-elements.json +14054 -0
- package/dist/base-BqsGesSl.js +6 -0
- package/dist/base-Cl6v8-BZ.js +8 -0
- package/dist/components/accordion/accordion.d.ts +75 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +206 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/accordion/accordion.style.d.ts +439 -0
- package/dist/components/accordion/accordion.style.d.ts.map +1 -0
- package/dist/components/accordion/accordion.style.js +91 -0
- package/dist/components/accordion/accordion.style.js.map +1 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +12 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/accordion-group/accordion-group.d.ts +54 -0
- package/dist/components/accordion-group/accordion-group.d.ts.map +1 -0
- package/dist/components/accordion-group/accordion-group.js +182 -0
- package/dist/components/accordion-group/accordion-group.js.map +1 -0
- package/dist/components/accordion-group/index.d.ts +2 -0
- package/dist/components/accordion-group/index.d.ts.map +1 -0
- package/dist/components/accordion-group/index.js +11 -0
- package/dist/components/accordion-group/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +117 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/alert.js +266 -0
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/alert/alert.style.d.ts +366 -0
- package/dist/components/alert/alert.style.d.ts.map +1 -0
- package/dist/components/alert/alert.style.js +81 -0
- package/dist/components/alert/alert.style.js.map +1 -0
- package/dist/components/alert/alert.styles.d.ts +3 -0
- package/dist/components/alert/alert.styles.d.ts.map +1 -0
- package/dist/components/alert/alert.styles.js +15 -0
- package/dist/components/alert/alert.styles.js.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +12 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +75 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +184 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatar.style.d.ts +93 -0
- package/dist/components/avatar/avatar.style.d.ts.map +1 -0
- package/dist/components/avatar/avatar.style.js +29 -0
- package/dist/components/avatar/avatar.style.js.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +14 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +49 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.host.style.d.ts +3 -0
- package/dist/components/badge/badge.host.style.d.ts.map +1 -0
- package/dist/components/badge/badge.host.style.js +12 -0
- package/dist/components/badge/badge.host.style.js.map +1 -0
- package/dist/components/badge/badge.js +152 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/badge.style.d.ts +177 -0
- package/dist/components/badge/badge.style.d.ts.map +1 -0
- package/dist/components/badge/badge.style.js +62 -0
- package/dist/components/badge/badge.style.js.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +16 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/base/index.d.ts +3 -0
- package/dist/components/base/index.d.ts.map +1 -0
- package/dist/components/base/index.js +4 -0
- package/dist/components/base/index.js.map +1 -0
- package/dist/components/base/tailwind-base.d.ts +8 -0
- package/dist/components/base/tailwind-base.d.ts.map +1 -0
- package/dist/components/base/tailwind-base.js +193 -0
- package/dist/components/base/tailwind-base.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +23 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.js +60 -0
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.style.d.ts +72 -0
- package/dist/components/breadcrumb/breadcrumb.style.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.style.js +39 -0
- package/dist/components/breadcrumb/breadcrumb.style.js.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +14 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts +39 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.d.ts.map +1 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js +133 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.js.map +1 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.style.d.ts +157 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.style.d.ts.map +1 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.style.js +40 -0
- package/dist/components/breadcrumb-item/breadcrumb-item.style.js.map +1 -0
- package/dist/components/breadcrumb-item/index.d.ts +2 -0
- package/dist/components/breadcrumb-item/index.d.ts.map +1 -0
- package/dist/components/breadcrumb-item/index.js +14 -0
- package/dist/components/breadcrumb-item/index.js.map +1 -0
- package/dist/components/button/button.d.ts +49 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +232 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/button.style.d.ts +256 -0
- package/dist/components/button/button.style.d.ts.map +1 -0
- package/dist/components/button/button.style.js +68 -0
- package/dist/components/button/button.style.js.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +14 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +102 -0
- package/dist/components/button-group/button-group.d.ts.map +1 -0
- package/dist/components/button-group/button-group.js +251 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/button-group/button-group.style.d.ts +215 -0
- package/dist/components/button-group/button-group.style.d.ts.map +1 -0
- package/dist/components/button-group/button-group.style.js +52 -0
- package/dist/components/button-group/button-group.style.js.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts.map +1 -0
- package/dist/components/button-group/index.js +13 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/caption/caption.style.d.ts +107 -0
- package/dist/components/caption/caption.style.d.ts.map +1 -0
- package/dist/components/caption/caption.style.js +29 -0
- package/dist/components/caption/caption.style.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +74 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +206 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox.style.d.ts +363 -0
- package/dist/components/checkbox/checkbox.style.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.style.js +158 -0
- package/dist/components/checkbox/checkbox.style.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +21 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +30 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.js +107 -0
- package/dist/components/checkbox-group/checkbox-group.js.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.style.d.ts +71 -0
- package/dist/components/checkbox-group/checkbox-group.style.d.ts.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.style.js +39 -0
- package/dist/components/checkbox-group/checkbox-group.style.js.map +1 -0
- package/dist/components/checkbox-group/index.d.ts +2 -0
- package/dist/components/checkbox-group/index.d.ts.map +1 -0
- package/dist/components/checkbox-group/index.js +14 -0
- package/dist/components/checkbox-group/index.js.map +1 -0
- package/dist/components/chip/chip.d.ts +85 -0
- package/dist/components/chip/chip.d.ts.map +1 -0
- package/dist/components/chip/chip.js +189 -0
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/chip/chip.style.d.ts +263 -0
- package/dist/components/chip/chip.style.d.ts.map +1 -0
- package/dist/components/chip/chip.style.js +71 -0
- package/dist/components/chip/chip.style.js.map +1 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip/index.d.ts.map +1 -0
- package/dist/components/chip/index.js +12 -0
- package/dist/components/chip/index.js.map +1 -0
- package/dist/components/divider/divider.d.ts +49 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/divider.js +127 -0
- package/dist/components/divider/divider.js.map +1 -0
- package/dist/components/divider/divider.style.d.ts +246 -0
- package/dist/components/divider/divider.style.d.ts.map +1 -0
- package/dist/components/divider/divider.style.js +151 -0
- package/dist/components/divider/divider.style.js.map +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +13 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +79 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/drawer.js +189 -0
- package/dist/components/drawer/drawer.js.map +1 -0
- package/dist/components/drawer/drawer.style.d.ts +281 -0
- package/dist/components/drawer/drawer.style.d.ts.map +1 -0
- package/dist/components/drawer/drawer.style.js +171 -0
- package/dist/components/drawer/drawer.style.js.map +1 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +13 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/dropdown/dropdown.d.ts +147 -0
- package/dist/components/dropdown/dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.js +332 -0
- package/dist/components/dropdown/dropdown.js.map +1 -0
- package/dist/components/dropdown/dropdown.style.d.ts +37 -0
- package/dist/components/dropdown/dropdown.style.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.style.js +15 -0
- package/dist/components/dropdown/dropdown.style.js.map +1 -0
- package/dist/components/dropdown/index.d.ts +2 -0
- package/dist/components/dropdown/index.d.ts.map +1 -0
- package/dist/components/dropdown/index.js +16 -0
- package/dist/components/dropdown/index.js.map +1 -0
- package/dist/components/dropdown-item/dropdown-item.d.ts +63 -0
- package/dist/components/dropdown-item/dropdown-item.d.ts.map +1 -0
- package/dist/components/dropdown-item/dropdown-item.js +105 -0
- package/dist/components/dropdown-item/dropdown-item.js.map +1 -0
- package/dist/components/dropdown-item/index.d.ts +2 -0
- package/dist/components/dropdown-item/index.d.ts.map +1 -0
- package/dist/components/dropdown-item/index.js +13 -0
- package/dist/components/dropdown-item/index.js.map +1 -0
- package/dist/components/icon/icon.d.ts +12 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +2999 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/icon/index.js +7 -0
- package/dist/components/icon/index.js.map +1 -0
- package/dist/components/index.d.ts +44 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +140 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +20 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts +315 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/input/input.js +592 -0
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/input/input.style.d.ts +533 -0
- package/dist/components/input/input.style.d.ts.map +1 -0
- package/dist/components/input/input.style.js +133 -0
- package/dist/components/input/input.style.js.map +1 -0
- package/dist/components/label/label.style.d.ts +107 -0
- package/dist/components/label/label.style.d.ts.map +1 -0
- package/dist/components/label/label.style.js +28 -0
- package/dist/components/label/label.style.js.map +1 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/index.d.ts.map +1 -0
- package/dist/components/link/index.js +10 -0
- package/dist/components/link/index.js.map +1 -0
- package/dist/components/link/link.d.ts +84 -0
- package/dist/components/link/link.d.ts.map +1 -0
- package/dist/components/link/link.js +169 -0
- package/dist/components/link/link.js.map +1 -0
- package/dist/components/link/link.style.d.ts +156 -0
- package/dist/components/link/link.style.d.ts.map +1 -0
- package/dist/components/link/link.style.js +41 -0
- package/dist/components/link/link.style.js.map +1 -0
- package/dist/components/list-box-item/index.d.ts +2 -0
- package/dist/components/list-box-item/index.d.ts.map +1 -0
- package/dist/components/list-box-item/index.js +14 -0
- package/dist/components/list-box-item/index.js.map +1 -0
- package/dist/components/list-box-item/list-box-item.d.ts +54 -0
- package/dist/components/list-box-item/list-box-item.d.ts.map +1 -0
- package/dist/components/list-box-item/list-box-item.js +102 -0
- package/dist/components/list-box-item/list-box-item.js.map +1 -0
- package/dist/components/list-box-item/list-box-item.style.d.ts +100 -0
- package/dist/components/list-box-item/list-box-item.style.d.ts.map +1 -0
- package/dist/components/list-box-item/list-box-item.style.js +42 -0
- package/dist/components/list-box-item/list-box-item.style.js.map +1 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/index.js +13 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.d.ts +95 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/modal/modal.js +225 -0
- package/dist/components/modal/modal.js.map +1 -0
- package/dist/components/modal/modal.style.d.ts +295 -0
- package/dist/components/modal/modal.style.d.ts.map +1 -0
- package/dist/components/modal/modal.style.js +101 -0
- package/dist/components/modal/modal.style.js.map +1 -0
- package/dist/components/popconfirm/index.d.ts +2 -0
- package/dist/components/popconfirm/index.d.ts.map +1 -0
- package/dist/components/popconfirm/index.js +16 -0
- package/dist/components/popconfirm/index.js.map +1 -0
- package/dist/components/popconfirm/popconfirm.d.ts +183 -0
- package/dist/components/popconfirm/popconfirm.d.ts.map +1 -0
- package/dist/components/popconfirm/popconfirm.js +477 -0
- package/dist/components/popconfirm/popconfirm.js.map +1 -0
- package/dist/components/popconfirm/popconfirm.style.d.ts +417 -0
- package/dist/components/popconfirm/popconfirm.style.d.ts.map +1 -0
- package/dist/components/popconfirm/popconfirm.style.js +78 -0
- package/dist/components/popconfirm/popconfirm.style.js.map +1 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +16 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.d.ts +184 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/popover/popover.js +418 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/popover/popover.style.d.ts +348 -0
- package/dist/components/popover/popover.style.d.ts.map +1 -0
- package/dist/components/popover/popover.style.js +67 -0
- package/dist/components/popover/popover.style.js.map +1 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.js +15 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/radio/radio.d.ts +85 -0
- package/dist/components/radio/radio.d.ts.map +1 -0
- package/dist/components/radio/radio.js +236 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/radio/radio.style.d.ts +272 -0
- package/dist/components/radio/radio.style.d.ts.map +1 -0
- package/dist/components/radio/radio.style.js +98 -0
- package/dist/components/radio/radio.style.js.map +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/radio-group/index.js +10 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/radio-group/radio-group.d.ts +37 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group.js +143 -0
- package/dist/components/radio-group/radio-group.js.map +1 -0
- package/dist/components/radio-group/radio-group.style.d.ts +71 -0
- package/dist/components/radio-group/radio-group.style.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group.style.js +18 -0
- package/dist/components/radio-group/radio-group.style.js.map +1 -0
- package/dist/components/rating/index.d.ts +2 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/rating/index.js +21 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/rating/rating.d.ts +53 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/components/rating/rating.js +302 -0
- package/dist/components/rating/rating.js.map +1 -0
- package/dist/components/rating/rating.style.d.ts +208 -0
- package/dist/components/rating/rating.style.d.ts.map +1 -0
- package/dist/components/rating/rating.style.js +62 -0
- package/dist/components/rating/rating.style.js.map +1 -0
- package/dist/components/segmented-picker/index.d.ts +2 -0
- package/dist/components/segmented-picker/index.d.ts.map +1 -0
- package/dist/components/segmented-picker/index.js +14 -0
- package/dist/components/segmented-picker/index.js.map +1 -0
- package/dist/components/segmented-picker/segmented-picker.component.d.ts +41 -0
- package/dist/components/segmented-picker/segmented-picker.component.d.ts.map +1 -0
- package/dist/components/segmented-picker/segmented-picker.component.js +120 -0
- package/dist/components/segmented-picker/segmented-picker.component.js.map +1 -0
- package/dist/components/segmented-picker/segmented-picker.style.d.ts +221 -0
- package/dist/components/segmented-picker/segmented-picker.style.d.ts.map +1 -0
- package/dist/components/segmented-picker/segmented-picker.style.js +49 -0
- package/dist/components/segmented-picker/segmented-picker.style.js.map +1 -0
- package/dist/components/segmented-picker-item/index.d.ts +2 -0
- package/dist/components/segmented-picker-item/index.d.ts.map +1 -0
- package/dist/components/segmented-picker-item/index.js +13 -0
- package/dist/components/segmented-picker-item/index.js.map +1 -0
- package/dist/components/segmented-picker-item/segmented-picker-item.component.d.ts +60 -0
- package/dist/components/segmented-picker-item/segmented-picker-item.component.d.ts.map +1 -0
- package/dist/components/segmented-picker-item/segmented-picker-item.component.js +141 -0
- package/dist/components/segmented-picker-item/segmented-picker-item.component.js.map +1 -0
- package/dist/components/segmented-picker-item/segmented-picker-item.style.d.ts +156 -0
- package/dist/components/segmented-picker-item/segmented-picker-item.style.d.ts.map +1 -0
- package/dist/components/segmented-picker-item/segmented-picker-item.style.js +49 -0
- package/dist/components/segmented-picker-item/segmented-picker-item.style.js.map +1 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.d.ts.map +1 -0
- package/dist/components/select/index.js +16 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.d.ts +160 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/select/select.js +377 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/select.style.d.ts +37 -0
- package/dist/components/select/select.style.d.ts.map +1 -0
- package/dist/components/select/select.style.js +15 -0
- package/dist/components/select/select.style.js.map +1 -0
- package/dist/components/select-item/index.d.ts +2 -0
- package/dist/components/select-item/index.d.ts.map +1 -0
- package/dist/components/select-item/index.js +13 -0
- package/dist/components/select-item/index.js.map +1 -0
- package/dist/components/select-item/select-item.d.ts +56 -0
- package/dist/components/select-item/select-item.d.ts.map +1 -0
- package/dist/components/select-item/select-item.js +93 -0
- package/dist/components/select-item/select-item.js.map +1 -0
- package/dist/components/service/index.d.ts +2 -0
- package/dist/components/service/index.d.ts.map +1 -0
- package/dist/components/service/index.js +18 -0
- package/dist/components/service/index.js.map +1 -0
- package/dist/components/service/service.d.ts +19 -0
- package/dist/components/service/service.d.ts.map +1 -0
- package/dist/components/service/service.js +51 -0
- package/dist/components/service/service.js.map +1 -0
- package/dist/components/svg-icon/icons.d.ts +25 -0
- package/dist/components/svg-icon/icons.d.ts.map +1 -0
- package/dist/components/svg-icon/icons.js +31 -0
- package/dist/components/svg-icon/icons.js.map +1 -0
- package/dist/components/svg-icon/index.d.ts +3 -0
- package/dist/components/svg-icon/index.d.ts.map +1 -0
- package/dist/components/svg-icon/index.js +8 -0
- package/dist/components/svg-icon/index.js.map +1 -0
- package/dist/components/svg-icon/svg-icon.d.ts +9 -0
- package/dist/components/svg-icon/svg-icon.d.ts.map +1 -0
- package/dist/components/svg-icon/svg-icon.js +31 -0
- package/dist/components/svg-icon/svg-icon.js.map +1 -0
- package/dist/components/tab/index.d.ts +2 -0
- package/dist/components/tab/index.d.ts.map +1 -0
- package/dist/components/tab/index.js +15 -0
- package/dist/components/tab/index.js.map +1 -0
- package/dist/components/tab/styles.d.ts +363 -0
- package/dist/components/tab/styles.d.ts.map +1 -0
- package/dist/components/tab/styles.js +134 -0
- package/dist/components/tab/styles.js.map +1 -0
- package/dist/components/tab/tab.d.ts +83 -0
- package/dist/components/tab/tab.d.ts.map +1 -0
- package/dist/components/tab/tab.js +213 -0
- package/dist/components/tab/tab.js.map +1 -0
- package/dist/components/tab-group/index.d.ts +2 -0
- package/dist/components/tab-group/index.d.ts.map +1 -0
- package/dist/components/tab-group/index.js +16 -0
- package/dist/components/tab-group/index.js.map +1 -0
- package/dist/components/tab-group/tab-group.d.ts +118 -0
- package/dist/components/tab-group/tab-group.d.ts.map +1 -0
- package/dist/components/tab-group/tab-group.js +347 -0
- package/dist/components/tab-group/tab-group.js.map +1 -0
- package/dist/components/tab-panel/index.d.ts +2 -0
- package/dist/components/tab-panel/index.d.ts.map +1 -0
- package/dist/components/tab-panel/index.js +13 -0
- package/dist/components/tab-panel/index.js.map +1 -0
- package/dist/components/tab-panel/tab-panel.d.ts +33 -0
- package/dist/components/tab-panel/tab-panel.d.ts.map +1 -0
- package/dist/components/tab-panel/tab-panel.js +73 -0
- package/dist/components/tab-panel/tab-panel.js.map +1 -0
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/components/tag/index.d.ts.map +1 -0
- package/dist/components/tag/index.js +14 -0
- package/dist/components/tag/index.js.map +1 -0
- package/dist/components/tag/tag.d.ts +91 -0
- package/dist/components/tag/tag.d.ts.map +1 -0
- package/dist/components/tag/tag.js +189 -0
- package/dist/components/tag/tag.js.map +1 -0
- package/dist/components/tag/tag.style.d.ts +135 -0
- package/dist/components/tag/tag.style.d.ts.map +1 -0
- package/dist/components/tag/tag.style.js +38 -0
- package/dist/components/tag/tag.style.js.map +1 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/index.js +12 -0
- package/dist/components/text/index.js.map +1 -0
- package/dist/components/text/text.d.ts +36 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/text/text.js +85 -0
- package/dist/components/text/text.js.map +1 -0
- package/dist/components/text/text.style.d.ts +86 -0
- package/dist/components/text/text.style.d.ts.map +1 -0
- package/dist/components/text/text.style.js +23 -0
- package/dist/components/text/text.style.js.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.d.ts.map +1 -0
- package/dist/components/textarea/index.js +20 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.d.ts +76 -0
- package/dist/components/textarea/textarea.d.ts.map +1 -0
- package/dist/components/textarea/textarea.js +282 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/textarea/textarea.style.d.ts +436 -0
- package/dist/components/textarea/textarea.style.d.ts.map +1 -0
- package/dist/components/textarea/textarea.style.js +106 -0
- package/dist/components/textarea/textarea.style.js.map +1 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +17 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/toast.d.ts +57 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +189 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toast/toast.style.d.ts +333 -0
- package/dist/components/toast/toast.style.d.ts.map +1 -0
- package/dist/components/toast/toast.style.js +88 -0
- package/dist/components/toast/toast.style.js.map +1 -0
- package/dist/components/toast-container/index.d.ts +2 -0
- package/dist/components/toast-container/index.d.ts.map +1 -0
- package/dist/components/toast-container/index.js +21 -0
- package/dist/components/toast-container/index.js.map +1 -0
- package/dist/components/toast-container/toast-container.d.ts +34 -0
- package/dist/components/toast-container/toast-container.d.ts.map +1 -0
- package/dist/components/toast-container/toast-container.js +111 -0
- package/dist/components/toast-container/toast-container.js.map +1 -0
- package/dist/components/toast-container/toast-container.style.d.ts +113 -0
- package/dist/components/toast-container/toast-container.style.d.ts.map +1 -0
- package/dist/components/toast-container/toast-container.style.js +31 -0
- package/dist/components/toast-container/toast-container.style.js.map +1 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/index.d.ts.map +1 -0
- package/dist/components/toggle/index.js +25 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/toggle/toggle.d.ts +112 -0
- package/dist/components/toggle/toggle.d.ts.map +1 -0
- package/dist/components/toggle/toggle.js +510 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/toggle/toggle.style.d.ts +585 -0
- package/dist/components/toggle/toggle.style.d.ts.map +1 -0
- package/dist/components/toggle/toggle.style.js +249 -0
- package/dist/components/toggle/toggle.style.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +16 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +104 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +267 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltip.style.d.ts +123 -0
- package/dist/components/tooltip/tooltip.style.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.style.js +18 -0
- package/dist/components/tooltip/tooltip.style.js.map +1 -0
- package/dist/controllers/slot-controller.d.ts +19 -0
- package/dist/controllers/slot-controller.d.ts.map +1 -0
- package/dist/controllers/slot-controller.js +40 -0
- package/dist/controllers/slot-controller.js.map +1 -0
- package/dist/directive-CaeGQrCm.js +6 -0
- package/dist/directive-DZCF8pFJ.js +8 -0
- package/dist/factory/tailwind-factory.d.ts +3 -0
- package/dist/factory/tailwind-factory.d.ts.map +1 -0
- package/dist/factory/tailwind-factory.js +24 -0
- package/dist/factory/tailwind-factory.js.map +1 -0
- package/dist/floating-ui.dom-D3XJuCC4.js +1 -0
- package/dist/floating-ui.dom-OBaMlALa.js +1571 -0
- package/dist/if-defined-D-m3dgRf.js +9 -0
- package/dist/if-defined-DZx5z3Rt.js +6 -0
- package/dist/index-B9iart53.js +2545 -0
- package/dist/index-exQ3KYY9.js +1 -0
- package/dist/index.css +3 -0
- package/dist/lit-element-ByzbtpGk.js +27 -0
- package/dist/lit-element-DWUSmjFy.js +23 -0
- package/dist/live-BOAtKRUN.js +16 -0
- package/dist/live-Cq6acxyl.js +11 -0
- package/dist/model/plus.d.ts +10 -0
- package/dist/model/plus.d.ts.map +1 -0
- package/dist/model/plus.js +13 -0
- package/dist/model/plus.js.map +1 -0
- package/dist/property-BbhdtSvA.js +7 -0
- package/dist/property-DiPQx9S3.js +38 -0
- package/dist/query-CHb9Ft_d.js +9 -0
- package/dist/query-M3XxJAZy.js +6 -0
- package/dist/query-assigned-elements-B8Evmg7O.js +9 -0
- package/dist/query-assigned-elements-DBAPT3sj.js +6 -0
- package/dist/services/toast.service.d.ts +46 -0
- package/dist/services/toast.service.d.ts.map +1 -0
- package/dist/services/toast.service.js +71 -0
- package/dist/services/toast.service.js.map +1 -0
- package/dist/state-D1d5Sfj8.js +9 -0
- package/dist/state-D6IyB_n5.js +6 -0
- package/dist/style-inject.es-tgCJW-Cu.js +28 -0
- package/dist/style-map-CTYAtfNA.js +6 -0
- package/dist/style-map-DC_vNus2.js +10 -0
- package/dist/styles/base/preflight.styles.d.ts +3 -0
- package/dist/styles/base/preflight.styles.d.ts.map +1 -0
- package/dist/styles/base/preflight.styles.js +166 -0
- package/dist/styles/base/preflight.styles.js.map +1 -0
- package/dist/styles/global.js +7 -0
- package/dist/styles/theme/brand.js +7 -0
- package/dist/styles/theme/dark.js +7 -0
- package/dist/styles/theme/light.js +7 -0
- package/dist/unsafe-html-B4iHxNlq.js +6 -0
- package/dist/unsafe-html-BhmP6ONc.js +10 -0
- package/eslint/custom-element-eslint-rules.js +467 -0
- package/package.json +130 -0
- package/react/PlusAccordion.d.ts +84 -0
- package/react/PlusAccordion.js +47 -0
- package/react/PlusAccordionGroup.d.ts +64 -0
- package/react/PlusAccordionGroup.js +25 -0
- package/react/PlusAlert.d.ts +111 -0
- package/react/PlusAlert.js +57 -0
- package/react/PlusAvatar.d.ts +90 -0
- package/react/PlusAvatar.js +40 -0
- package/react/PlusBadge.d.ts +81 -0
- package/react/PlusBadge.js +28 -0
- package/react/PlusBreadcrumb.d.ts +64 -0
- package/react/PlusBreadcrumb.js +25 -0
- package/react/PlusBreadcrumbItem.d.ts +71 -0
- package/react/PlusBreadcrumbItem.js +25 -0
- package/react/PlusButton.d.ts +80 -0
- package/react/PlusButton.js +29 -0
- package/react/PlusButtonGroup.d.ts +91 -0
- package/react/PlusButtonGroup.js +38 -0
- package/react/PlusCheckbox.d.ts +115 -0
- package/react/PlusCheckbox.js +61 -0
- package/react/PlusCheckboxGroup.d.ts +73 -0
- package/react/PlusCheckboxGroup.js +37 -0
- package/react/PlusChip.d.ts +102 -0
- package/react/PlusChip.js +40 -0
- package/react/PlusDivider.d.ts +76 -0
- package/react/PlusDivider.js +44 -0
- package/react/PlusDrawer.d.ts +80 -0
- package/react/PlusDrawer.js +32 -0
- package/react/PlusDropDownItem.d.ts +88 -0
- package/react/PlusDropDownItem.js +37 -0
- package/react/PlusDropdown.d.ts +101 -0
- package/react/PlusDropdown.js +44 -0
- package/react/PlusIcon.d.ts +55 -0
- package/react/PlusIcon.js +24 -0
- package/react/PlusInput.d.ts +190 -0
- package/react/PlusInput.js +108 -0
- package/react/PlusLink.d.ts +99 -0
- package/react/PlusLink.js +44 -0
- package/react/PlusListBoxItem.d.ts +86 -0
- package/react/PlusListBoxItem.js +37 -0
- package/react/PlusModal.d.ts +86 -0
- package/react/PlusModal.js +41 -0
- package/react/PlusPopconfirm.d.ts +147 -0
- package/react/PlusPopconfirm.js +60 -0
- package/react/PlusPopover.d.ts +148 -0
- package/react/PlusPopover.js +55 -0
- package/react/PlusRadio.d.ts +97 -0
- package/react/PlusRadio.js +60 -0
- package/react/PlusRadioGroup.d.ts +75 -0
- package/react/PlusRadioGroup.js +38 -0
- package/react/PlusRating.d.ts +109 -0
- package/react/PlusRating.js +63 -0
- package/react/PlusSegmentedPicker.d.ts +71 -0
- package/react/PlusSegmentedPicker.js +40 -0
- package/react/PlusSegmentedPickerItem.d.ts +77 -0
- package/react/PlusSegmentedPickerItem.js +38 -0
- package/react/PlusSelect.d.ts +101 -0
- package/react/PlusSelect.js +59 -0
- package/react/PlusSelectItem.d.ts +86 -0
- package/react/PlusSelectItem.js +37 -0
- package/react/PlusService.d.ts +51 -0
- package/react/PlusService.js +20 -0
- package/react/PlusSvgIcon.d.ts +52 -0
- package/react/PlusSvgIcon.js +23 -0
- package/react/PlusTab.d.ts +99 -0
- package/react/PlusTab.js +44 -0
- package/react/PlusTabGroup.d.ts +93 -0
- package/react/PlusTabGroup.js +47 -0
- package/react/PlusTabPanel.d.ts +64 -0
- package/react/PlusTabPanel.js +25 -0
- package/react/PlusTag.d.ts +74 -0
- package/react/PlusTag.js +28 -0
- package/react/PlusText.d.ts +70 -0
- package/react/PlusText.js +23 -0
- package/react/PlusTextarea.d.ts +139 -0
- package/react/PlusTextarea.js +80 -0
- package/react/PlusToast.d.ts +99 -0
- package/react/PlusToast.js +51 -0
- package/react/PlusToastContainer.d.ts +63 -0
- package/react/PlusToastContainer.js +23 -0
- package/react/PlusToggle.d.ts +158 -0
- package/react/PlusToggle.js +86 -0
- package/react/PlusTooltip.d.ts +70 -0
- package/react/PlusTooltip.js +28 -0
- package/react/Tailwind.d.ts +49 -0
- package/react/Tailwind.js +20 -0
- package/react/index.d.ts +43 -0
- package/react/index.js +43 -0
- package/react/react-utils.js +34 -0
- package/types/custom-element-jsx.d.ts +1953 -0
- package/types/custom-element-solidjs.d.ts +2039 -0
- package/types/custom-element-svelte.d.ts +1935 -0
- package/types/custom-element-vuejs.d.ts +1905 -0
- package/vscode.css-custom-data.json +561 -0
- package/vscode.html-custom-data.json +1788 -0
- package/web-types.json +4523 -0
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { _ as __decorate, n } from '../../property-DiPQx9S3.js';
|
|
2
|
+
import { i, x } from '../../lit-element-ByzbtpGk.js';
|
|
3
|
+
import { r } from '../../state-D1d5Sfj8.js';
|
|
4
|
+
import { e } from '../../query-CHb9Ft_d.js';
|
|
5
|
+
import Tailwind from '../base/tailwind-base.js';
|
|
6
|
+
import { tabStyle } from '../tab/styles.js';
|
|
7
|
+
import '../../base-Cl6v8-BZ.js';
|
|
8
|
+
import '../../global-Dh9axYQH.js';
|
|
9
|
+
import '../../index-B9iart53.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @tag plus-tab-group
|
|
13
|
+
* @summary Tab group component that manages a set of tabs and panels.
|
|
14
|
+
*
|
|
15
|
+
* @slot tablist - Slot for tabs
|
|
16
|
+
* @slot panels - Slot for tab panels
|
|
17
|
+
*
|
|
18
|
+
* @csspart group - The component's base wrapper
|
|
19
|
+
* @csspart tablist - The tabs container
|
|
20
|
+
* @csspart panels - The tab panels container
|
|
21
|
+
* @csspart indicator - The animated indicator element (when animated=true)
|
|
22
|
+
*
|
|
23
|
+
* @cssproperty --tabs-gap - Controls the gap between tabs
|
|
24
|
+
* @cssproperty --tabs-indicator-color - Controls the color of the active tab indicator
|
|
25
|
+
* @cssproperty --tabs-indicator-height - Controls the height of the animated indicator
|
|
26
|
+
*
|
|
27
|
+
* @event plus-tabs-change - Emitted when a tab is selected with the tab's value
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```html
|
|
31
|
+
* <plus-tab-group>
|
|
32
|
+
* <plus-tab value="tab1" slot="tablist">Tab 1</plus-tab>
|
|
33
|
+
* <plus-tab value="tab2" slot="tablist">Tab 2</plus-tab>
|
|
34
|
+
* <plus-tab-panel value="tab1" slot="panels">Content 1</plus-tab-panel>
|
|
35
|
+
* <plus-tab-panel value="tab2" slot="panels">Content 2</plus-tab-panel>
|
|
36
|
+
* </plus-tab-group>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
class PlusTabGroup extends Tailwind {
|
|
40
|
+
constructor() {
|
|
41
|
+
super();
|
|
42
|
+
/**
|
|
43
|
+
* Sets the size of the tabs
|
|
44
|
+
* - sm: Small size
|
|
45
|
+
* - md: Medium size
|
|
46
|
+
* - lg: Large size
|
|
47
|
+
* @default 'md'
|
|
48
|
+
*/
|
|
49
|
+
this.size = 'md';
|
|
50
|
+
/**
|
|
51
|
+
* Sets the orientation of the tabs
|
|
52
|
+
* - horizontal: Tabs arranged horizontally
|
|
53
|
+
* - vertical: Tabs arranged vertically
|
|
54
|
+
* @default 'horizontal'
|
|
55
|
+
*/
|
|
56
|
+
this.orientation = 'horizontal';
|
|
57
|
+
/**
|
|
58
|
+
* Disables all tabs
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
this.disabled = false;
|
|
62
|
+
/**
|
|
63
|
+
* Enables the dismiss button on all tabs
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
this.dismissible = false;
|
|
67
|
+
/**
|
|
68
|
+
* Currently active tab value
|
|
69
|
+
*/
|
|
70
|
+
this.value = '';
|
|
71
|
+
/**
|
|
72
|
+
* Enables animated sliding indicator for active tab
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
this.animated = false;
|
|
76
|
+
/**
|
|
77
|
+
* Internal state to track tabs and panels
|
|
78
|
+
*/
|
|
79
|
+
this.tabs = [];
|
|
80
|
+
this.panels = [];
|
|
81
|
+
this.addEventListener('plus-tab-click', this.handleTabClick);
|
|
82
|
+
this.addEventListener('plus-tab-dismiss', this.handleTabDismiss);
|
|
83
|
+
}
|
|
84
|
+
connectedCallback() {
|
|
85
|
+
super.connectedCallback();
|
|
86
|
+
// Initialize resize observer
|
|
87
|
+
this.resizeObserver = new ResizeObserver(() => this.updateIndicator());
|
|
88
|
+
this.resizeObserver.observe(this);
|
|
89
|
+
// Initialize mutation observer to watch for DOM changes
|
|
90
|
+
this.mutationObserver = new MutationObserver(() => this.updateIndicator());
|
|
91
|
+
this.mutationObserver.observe(this, {
|
|
92
|
+
childList: true,
|
|
93
|
+
subtree: true,
|
|
94
|
+
attributes: true,
|
|
95
|
+
attributeFilter: ['active'],
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
disconnectedCallback() {
|
|
99
|
+
super.disconnectedCallback();
|
|
100
|
+
if (this.resizeObserver) {
|
|
101
|
+
this.resizeObserver.disconnect();
|
|
102
|
+
}
|
|
103
|
+
if (this.mutationObserver) {
|
|
104
|
+
this.mutationObserver.disconnect();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get all tabs from the tablist slot
|
|
109
|
+
*/
|
|
110
|
+
getTabs() {
|
|
111
|
+
if (!this.tablistSlot)
|
|
112
|
+
return [];
|
|
113
|
+
return [...this.tablistSlot.assignedElements({ flatten: true })].filter((el) => el.tagName.toLowerCase() === 'plus-tab');
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Get all panels from the panels slot
|
|
117
|
+
*/
|
|
118
|
+
getPanels() {
|
|
119
|
+
if (!this.panelsSlot)
|
|
120
|
+
return [];
|
|
121
|
+
return [...this.panelsSlot.assignedElements({ flatten: true })].filter((el) => el.tagName.toLowerCase() === 'plus-tab-panel');
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Handle tab slot change
|
|
125
|
+
*/
|
|
126
|
+
handleTabsSlotChange() {
|
|
127
|
+
this.tabs = this.getTabs();
|
|
128
|
+
this.syncTabsWithPanels();
|
|
129
|
+
// Update indicator when tabs change
|
|
130
|
+
setTimeout(() => this.updateIndicator(), 10);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Handle panels slot change
|
|
134
|
+
*/
|
|
135
|
+
handlePanelsSlotChange() {
|
|
136
|
+
this.panels = this.getPanels();
|
|
137
|
+
this.syncTabsWithPanels();
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Updates the indicator position and size
|
|
141
|
+
*/
|
|
142
|
+
updateIndicator() {
|
|
143
|
+
if (!this.animated || !this.indicator)
|
|
144
|
+
return;
|
|
145
|
+
// Find the active tab
|
|
146
|
+
const activeTab = this.tabs.find((tab) => tab.active);
|
|
147
|
+
if (!activeTab)
|
|
148
|
+
return;
|
|
149
|
+
const tabElement = activeTab;
|
|
150
|
+
const tabRect = tabElement.getBoundingClientRect();
|
|
151
|
+
const containerRect = this.getBoundingClientRect();
|
|
152
|
+
if (this.orientation === 'horizontal') {
|
|
153
|
+
// Calculate position for horizontal orientation
|
|
154
|
+
const left = tabRect.left - containerRect.left;
|
|
155
|
+
const width = tabRect.width;
|
|
156
|
+
// Set style properties
|
|
157
|
+
this.indicator.style.left = `${left}px`;
|
|
158
|
+
this.indicator.style.width = `${width}px`;
|
|
159
|
+
this.indicator.style.top = '';
|
|
160
|
+
this.indicator.style.height = '2px'; // Horizontal line thickness
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
// Calculate position for vertical orientation
|
|
164
|
+
const top = tabRect.top - containerRect.top;
|
|
165
|
+
const height = tabRect.height;
|
|
166
|
+
// Set style properties
|
|
167
|
+
this.indicator.style.top = `${top}px`;
|
|
168
|
+
this.indicator.style.height = `${height}px`;
|
|
169
|
+
this.indicator.style.left = '';
|
|
170
|
+
this.indicator.style.width = '2px'; // Vertical line thickness
|
|
171
|
+
}
|
|
172
|
+
// Ensure indicator is visible
|
|
173
|
+
this.indicator.style.display = 'block';
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Synchronize tabs with panels and apply properties
|
|
177
|
+
*/
|
|
178
|
+
syncTabsWithPanels() {
|
|
179
|
+
// If there's no active tab and we have tabs, activate the first one
|
|
180
|
+
if (!this.value && this.tabs.length > 0) {
|
|
181
|
+
const firstTab = this.tabs[0];
|
|
182
|
+
this.value = firstTab.value;
|
|
183
|
+
}
|
|
184
|
+
// Update all tabs with current properties
|
|
185
|
+
this.tabs.forEach((tab) => {
|
|
186
|
+
tab.active = tab.value === this.value;
|
|
187
|
+
tab.size = this.size;
|
|
188
|
+
tab.orientation = this.orientation;
|
|
189
|
+
tab.disabled = this.disabled || tab.disabled;
|
|
190
|
+
tab.dismissible = this.dismissible || tab.dismissible;
|
|
191
|
+
tab.animated = this.animated;
|
|
192
|
+
});
|
|
193
|
+
// Update all panels
|
|
194
|
+
this.panels.forEach((panel) => {
|
|
195
|
+
panel.active = panel.value === this.value;
|
|
196
|
+
});
|
|
197
|
+
// Update indicator position
|
|
198
|
+
setTimeout(() => this.updateIndicator(), 10);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Handle tab click event
|
|
202
|
+
*/
|
|
203
|
+
handleTabClick(event) {
|
|
204
|
+
const newValue = event.detail.value;
|
|
205
|
+
if (newValue !== this.value) {
|
|
206
|
+
this.value = newValue;
|
|
207
|
+
this.syncTabsWithPanels();
|
|
208
|
+
this.emit('plus-tabs-change', { detail: { value: newValue } });
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Handle tab dismiss event
|
|
213
|
+
*/
|
|
214
|
+
handleTabDismiss(event) {
|
|
215
|
+
const dismissedValue = event.detail.value;
|
|
216
|
+
const dismissedTab = this.tabs.find((tab) => tab.value === dismissedValue);
|
|
217
|
+
const dismissedPanel = this.panels.find((panel) => panel.value === dismissedValue);
|
|
218
|
+
// Remove dismissed tab and panel from DOM
|
|
219
|
+
if (dismissedTab)
|
|
220
|
+
dismissedTab.remove();
|
|
221
|
+
if (dismissedPanel)
|
|
222
|
+
dismissedPanel.remove();
|
|
223
|
+
// Update internal state
|
|
224
|
+
this.tabs = this.getTabs();
|
|
225
|
+
this.panels = this.getPanels();
|
|
226
|
+
// If we dismissed the active tab, activate the first remaining tab
|
|
227
|
+
if (dismissedValue === this.value && this.tabs.length > 0) {
|
|
228
|
+
const firstTab = this.tabs[0];
|
|
229
|
+
this.value = firstTab.value;
|
|
230
|
+
this.syncTabsWithPanels();
|
|
231
|
+
this.emit('plus-tabs-change', { detail: { value: this.value } });
|
|
232
|
+
}
|
|
233
|
+
// Update indicator after dismissal
|
|
234
|
+
setTimeout(() => this.updateIndicator(), 100);
|
|
235
|
+
}
|
|
236
|
+
updated(changedProperties) {
|
|
237
|
+
super.updated(changedProperties);
|
|
238
|
+
// Update indicator after relevant property changes
|
|
239
|
+
if (changedProperties.has('value') ||
|
|
240
|
+
changedProperties.has('orientation') ||
|
|
241
|
+
changedProperties.has('animated')) {
|
|
242
|
+
setTimeout(() => this.updateIndicator(), 10);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
render() {
|
|
246
|
+
const { orientation, animated } = this;
|
|
247
|
+
const { tabGroup, tabHeader } = tabStyle({ orientation });
|
|
248
|
+
return x `
|
|
249
|
+
<div part="group" class=${tabGroup()}>
|
|
250
|
+
<div part="tablist" class="tablist-wrapper ${tabHeader()}">
|
|
251
|
+
<slot name="tablist" @slotchange=${this.handleTabsSlotChange}></slot>
|
|
252
|
+
${animated
|
|
253
|
+
? x `<div part="indicator" class="tab-indicator"></div>`
|
|
254
|
+
: ''}
|
|
255
|
+
</div>
|
|
256
|
+
<div part="panels" class="tab-panels">
|
|
257
|
+
<slot name="panels" @slotchange=${this.handlePanelsSlotChange}></slot>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
`;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
PlusTabGroup.styles = [
|
|
264
|
+
...Tailwind.styles,
|
|
265
|
+
i `
|
|
266
|
+
:host {
|
|
267
|
+
display: block;
|
|
268
|
+
width: 100%;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.tab-panels {
|
|
272
|
+
width: 100%;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.tablist-wrapper {
|
|
276
|
+
position: relative;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.tab-indicator {
|
|
280
|
+
position: absolute;
|
|
281
|
+
bottom: 0;
|
|
282
|
+
height: 2px;
|
|
283
|
+
background-color: var(
|
|
284
|
+
--tabs-indicator-color,
|
|
285
|
+
var(--plus-color-background-primary-default)
|
|
286
|
+
);
|
|
287
|
+
transition: all 0.25s ease;
|
|
288
|
+
z-index: 10;
|
|
289
|
+
opacity: 1;
|
|
290
|
+
visibility: visible;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
:host([orientation='vertical']) .tab-indicator {
|
|
294
|
+
width: 2px;
|
|
295
|
+
right: 0;
|
|
296
|
+
left: auto;
|
|
297
|
+
height: auto;
|
|
298
|
+
bottom: auto;
|
|
299
|
+
}
|
|
300
|
+
`,
|
|
301
|
+
];
|
|
302
|
+
__decorate([
|
|
303
|
+
n({ type: String })
|
|
304
|
+
], PlusTabGroup.prototype, "size", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
n({ type: String, reflect: true })
|
|
307
|
+
], PlusTabGroup.prototype, "orientation", void 0);
|
|
308
|
+
__decorate([
|
|
309
|
+
n({
|
|
310
|
+
type: Boolean,
|
|
311
|
+
converter: (value) => value != 'false',
|
|
312
|
+
})
|
|
313
|
+
], PlusTabGroup.prototype, "disabled", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
n({
|
|
316
|
+
type: Boolean,
|
|
317
|
+
converter: (value) => value != 'false',
|
|
318
|
+
})
|
|
319
|
+
], PlusTabGroup.prototype, "dismissible", void 0);
|
|
320
|
+
__decorate([
|
|
321
|
+
n({ type: String })
|
|
322
|
+
], PlusTabGroup.prototype, "value", void 0);
|
|
323
|
+
__decorate([
|
|
324
|
+
n({
|
|
325
|
+
type: Boolean,
|
|
326
|
+
reflect: true,
|
|
327
|
+
converter: (value) => value != 'false',
|
|
328
|
+
})
|
|
329
|
+
], PlusTabGroup.prototype, "animated", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
e('slot[name="tablist"]')
|
|
332
|
+
], PlusTabGroup.prototype, "tablistSlot", void 0);
|
|
333
|
+
__decorate([
|
|
334
|
+
e('slot[name="panels"]')
|
|
335
|
+
], PlusTabGroup.prototype, "panelsSlot", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
e('.tab-indicator')
|
|
338
|
+
], PlusTabGroup.prototype, "indicator", void 0);
|
|
339
|
+
__decorate([
|
|
340
|
+
r()
|
|
341
|
+
], PlusTabGroup.prototype, "tabs", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
r()
|
|
344
|
+
], PlusTabGroup.prototype, "panels", void 0);
|
|
345
|
+
|
|
346
|
+
export { PlusTabGroup, PlusTabGroup as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import PlusTabPanel from './tab-panel.js';
|
|
2
|
+
import '../../property-DiPQx9S3.js';
|
|
3
|
+
import '../../lit-element-ByzbtpGk.js';
|
|
4
|
+
import '../base/tailwind-base.js';
|
|
5
|
+
import '../../global-Dh9axYQH.js';
|
|
6
|
+
import '../tab/styles.js';
|
|
7
|
+
import '../../index-B9iart53.js';
|
|
8
|
+
|
|
9
|
+
// Define the element
|
|
10
|
+
customElements.define('plus-tab-panel', PlusTabPanel);
|
|
11
|
+
|
|
12
|
+
export { PlusTabPanel };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { _ as __decorate, n } from '../../property-DiPQx9S3.js';
|
|
2
|
+
import { i, x } from '../../lit-element-ByzbtpGk.js';
|
|
3
|
+
import Tailwind from '../base/tailwind-base.js';
|
|
4
|
+
import { tabStyle } from '../tab/styles.js';
|
|
5
|
+
import '../../global-Dh9axYQH.js';
|
|
6
|
+
import '../../index-B9iart53.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @tag plus-tab-panel
|
|
10
|
+
* @summary Tab panel component that displays content associated with a tab.
|
|
11
|
+
*
|
|
12
|
+
* @slot - The default slot for tab panel content
|
|
13
|
+
*
|
|
14
|
+
* @csspart panel - The component's base wrapper
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <plus-tab-panel value="tab1">Tab 1 Content</plus-tab-panel>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
class PlusTabPanel extends Tailwind {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
/**
|
|
25
|
+
* Sets the value of the tab panel, used for matching with a tab
|
|
26
|
+
*/
|
|
27
|
+
this.value = '';
|
|
28
|
+
/**
|
|
29
|
+
* Indicates if the panel is currently visible
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
this.active = false;
|
|
33
|
+
/**
|
|
34
|
+
* Custom CSS class to apply to the panel
|
|
35
|
+
*/
|
|
36
|
+
this.panelClass = '';
|
|
37
|
+
}
|
|
38
|
+
render() {
|
|
39
|
+
const { active, panelClass } = this;
|
|
40
|
+
const { tabPanel } = tabStyle({ active });
|
|
41
|
+
return x `
|
|
42
|
+
<div
|
|
43
|
+
part="panel"
|
|
44
|
+
class=${tabPanel({ class: panelClass })}
|
|
45
|
+
role="tabpanel"
|
|
46
|
+
aria-hidden=${!active}
|
|
47
|
+
>
|
|
48
|
+
<slot></slot>
|
|
49
|
+
</div>
|
|
50
|
+
`;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
PlusTabPanel.styles = [
|
|
54
|
+
...Tailwind.styles,
|
|
55
|
+
i `
|
|
56
|
+
:host {
|
|
57
|
+
display: block;
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
60
|
+
`,
|
|
61
|
+
];
|
|
62
|
+
__decorate([
|
|
63
|
+
n({ type: String })
|
|
64
|
+
], PlusTabPanel.prototype, "value", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
n({ type: Boolean, reflect: true })
|
|
67
|
+
], PlusTabPanel.prototype, "active", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
n({ type: String })
|
|
70
|
+
], PlusTabPanel.prototype, "panelClass", void 0);
|
|
71
|
+
|
|
72
|
+
export { PlusTabPanel, PlusTabPanel as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import PlusTag from './tag.js';
|
|
2
|
+
import '../../property-DiPQx9S3.js';
|
|
3
|
+
import '../../lit-element-ByzbtpGk.js';
|
|
4
|
+
import '../base/tailwind-base.js';
|
|
5
|
+
import '../../global-Dh9axYQH.js';
|
|
6
|
+
import './tag.style.js';
|
|
7
|
+
import '../../index-B9iart53.js';
|
|
8
|
+
import '../../style-map-DC_vNus2.js';
|
|
9
|
+
import '../../directive-DZCF8pFJ.js';
|
|
10
|
+
|
|
11
|
+
customElements.define('plus-tag', PlusTag);
|
|
12
|
+
|
|
13
|
+
export { PlusTag };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { _ as __decorate, n } from '../../property-DiPQx9S3.js';
|
|
2
|
+
import Tailwind from '../base/tailwind-base.js';
|
|
3
|
+
import { i, x } from '../../lit-element-ByzbtpGk.js';
|
|
4
|
+
import { tagStyle } from './tag.style.js';
|
|
5
|
+
import { o } from '../../style-map-DC_vNus2.js';
|
|
6
|
+
import '../../global-Dh9axYQH.js';
|
|
7
|
+
import '../../index-B9iart53.js';
|
|
8
|
+
import '../../directive-DZCF8pFJ.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @tag plus-tag
|
|
12
|
+
* @summary Tag component for displaying status, labels, and categories.
|
|
13
|
+
*
|
|
14
|
+
* @slot - The tag content (text, icons, etc.)
|
|
15
|
+
*
|
|
16
|
+
* @csspart tag - The component's base wrapper
|
|
17
|
+
*
|
|
18
|
+
* @cssproperty --text-color - Controls the text color of the tag
|
|
19
|
+
* @cssproperty --border-color - Controls the border color of the tag
|
|
20
|
+
* @cssproperty --bg-default - Controls the default background color
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html
|
|
24
|
+
* <plus-tag status="success">Completed</plus-tag>
|
|
25
|
+
* <plus-tag status="warning">Pending</plus-tag>
|
|
26
|
+
* <plus-tag status="danger">Error</plus-tag>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
const textColorMap = {
|
|
30
|
+
default: 'default',
|
|
31
|
+
primary: 'base',
|
|
32
|
+
success: 'base',
|
|
33
|
+
warning: 'base',
|
|
34
|
+
danger: 'base',
|
|
35
|
+
info: 'base',
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* A versatile tag component for displaying status, labels, and categories
|
|
39
|
+
*
|
|
40
|
+
* @tag plus-tag
|
|
41
|
+
*
|
|
42
|
+
* @csspart tag - The container element for the tag
|
|
43
|
+
*
|
|
44
|
+
* @cssproperty [--tag-bg-color] - Background color for default state (inherits from --plus-color-background-neutral-default)
|
|
45
|
+
* @cssproperty [--tag-text-color] - Text color for default state (inherits from --plus-color-text-default)
|
|
46
|
+
*
|
|
47
|
+
* @property {('success'|'warning'|'error'|'info'|'default')} status - Defines the tag's visual state and color scheme
|
|
48
|
+
* @property {('sm'|'md'|'lg')} size - Controls the tag's size variant
|
|
49
|
+
* @property {boolean} invert - Toggles between light/dark color themes
|
|
50
|
+
* @property {('full'|'medium'|'none')} radius - Sets the border radius style
|
|
51
|
+
*
|
|
52
|
+
* @attribute {string} aria-label - Accessible label for the tag (falls back to text content)
|
|
53
|
+
* @attribute {string} role - ARIA role (defaults to "status")
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```html
|
|
57
|
+
* <!-- Basic usage -->
|
|
58
|
+
* <plus-tag>Default Tag</plus-tag>
|
|
59
|
+
*
|
|
60
|
+
* <!-- With status -->
|
|
61
|
+
* <plus-tag status="success">Success</plus-tag>
|
|
62
|
+
* <plus-tag status="warning">Warning</plus-tag>
|
|
63
|
+
* <plus-tag status="error">Error</plus-tag>
|
|
64
|
+
*
|
|
65
|
+
* <!-- Size variants -->
|
|
66
|
+
* <plus-tag size="sm">Small</plus-tag>
|
|
67
|
+
* <plus-tag size="md">Medium</plus-tag>
|
|
68
|
+
* <plus-tag size="lg">Large</plus-tag>
|
|
69
|
+
*
|
|
70
|
+
* <!-- Border radius options -->
|
|
71
|
+
* <plus-tag radius="full">Pill Shape</plus-tag>
|
|
72
|
+
* <plus-tag radius="medium">Rounded</plus-tag>
|
|
73
|
+
* <plus-tag radius="none">Square</plus-tag>
|
|
74
|
+
*
|
|
75
|
+
* <!-- Inverted theme -->
|
|
76
|
+
* <plus-tag invert>Dark Theme</plus-tag>
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @cssExample
|
|
80
|
+
* ```css
|
|
81
|
+
* plus-tag {
|
|
82
|
+
* --tag-bg-color: #f0f0f0;
|
|
83
|
+
* --tag-text-color: #333333;
|
|
84
|
+
* }
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
class PlusTag extends Tailwind {
|
|
88
|
+
constructor() {
|
|
89
|
+
super();
|
|
90
|
+
/**
|
|
91
|
+
* Sets the status/color variant of the tag
|
|
92
|
+
* - default: Neutral color scheme
|
|
93
|
+
* - primary: Brand color scheme
|
|
94
|
+
* - success: Green color scheme
|
|
95
|
+
* - warning: Yellow color scheme
|
|
96
|
+
* - danger: Red color scheme
|
|
97
|
+
* - info: Blue color scheme
|
|
98
|
+
* @default 'default'
|
|
99
|
+
*/
|
|
100
|
+
this.status = 'default';
|
|
101
|
+
/**
|
|
102
|
+
* Sets the size of the tag
|
|
103
|
+
* - sm: Small size
|
|
104
|
+
* - md: Medium size
|
|
105
|
+
* - lg: Large size
|
|
106
|
+
* @default 'md'
|
|
107
|
+
*/
|
|
108
|
+
this.size = 'md';
|
|
109
|
+
/**
|
|
110
|
+
* Toggles between light/dark color themes
|
|
111
|
+
* @default false
|
|
112
|
+
*/
|
|
113
|
+
this.invert = false;
|
|
114
|
+
/**
|
|
115
|
+
* Sets the border radius style
|
|
116
|
+
* - full: Pill shape
|
|
117
|
+
* - medium: Rounded corners
|
|
118
|
+
* - none: Square corners
|
|
119
|
+
* @default 'full'
|
|
120
|
+
*/
|
|
121
|
+
this.radius = 'full';
|
|
122
|
+
}
|
|
123
|
+
get ariaLabel() {
|
|
124
|
+
return this.getAttribute('aria-label') || this.textContent || 'tag';
|
|
125
|
+
}
|
|
126
|
+
render() {
|
|
127
|
+
const getColorVariables = () => {
|
|
128
|
+
if (this.invert) {
|
|
129
|
+
return {
|
|
130
|
+
'--i-bg-default': `var(--plus-color-background-${this.status}-invert-default)`,
|
|
131
|
+
'--i-text-color': `var(--plus-color-text-default)`,
|
|
132
|
+
'--i-border-color': `var(--plus-color-border-${this.status}-invert)`,
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
'--i-bg-default': `var(--plus-color-background-${this.status}-default)`,
|
|
137
|
+
'--i-text-color': `var(--plus-color-text-${textColorMap[this.status]})`,
|
|
138
|
+
'--i-border-color': `var(--plus-color-border-${this.status})`,
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
const commonStyles = getColorVariables();
|
|
142
|
+
const dynamicStyles = {
|
|
143
|
+
'--d-text': 'var(--text-color,var(--i-text-color))',
|
|
144
|
+
'--d-border': 'var(--border-color,var(--i-border-color))',
|
|
145
|
+
'--d-bg-default': 'var(--bg-default,var(--i-bg-default))',
|
|
146
|
+
};
|
|
147
|
+
return x `
|
|
148
|
+
<div
|
|
149
|
+
part="tag"
|
|
150
|
+
role="status"
|
|
151
|
+
aria-label=${this.ariaLabel}
|
|
152
|
+
class=${tagStyle({
|
|
153
|
+
size: this.size,
|
|
154
|
+
radius: this.radius,
|
|
155
|
+
status: this.status,
|
|
156
|
+
})}
|
|
157
|
+
style=${o({ ...dynamicStyles, ...commonStyles })}
|
|
158
|
+
>
|
|
159
|
+
<slot></slot>
|
|
160
|
+
</div>
|
|
161
|
+
`;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
PlusTag.styles = [
|
|
165
|
+
...Tailwind.styles,
|
|
166
|
+
i `
|
|
167
|
+
:host {
|
|
168
|
+
display: inline-block;
|
|
169
|
+
position: relative;
|
|
170
|
+
width: fit-content;
|
|
171
|
+
height: fit-content;
|
|
172
|
+
}
|
|
173
|
+
`,
|
|
174
|
+
];
|
|
175
|
+
__decorate([
|
|
176
|
+
n({ type: String })
|
|
177
|
+
], PlusTag.prototype, "status", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
n({ type: String })
|
|
180
|
+
], PlusTag.prototype, "size", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
n({ type: Boolean, converter: (value) => value != 'false' })
|
|
183
|
+
], PlusTag.prototype, "invert", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
n({ type: String })
|
|
186
|
+
], PlusTag.prototype, "radius", void 0);
|
|
187
|
+
|
|
188
|
+
export { PlusTag, PlusTag as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { c as ce } from '../../index-B9iart53.js';
|
|
2
|
+
|
|
3
|
+
const tagStyle = ce({
|
|
4
|
+
base: [
|
|
5
|
+
'tag antialiased flex flex-row items-center justify-center font-sans overflow-hidden',
|
|
6
|
+
'py-0.5 px-1.5 gap-1.5',
|
|
7
|
+
'text-(--d-text)',
|
|
8
|
+
'bg-(--d-bg-default)',
|
|
9
|
+
'border border-(--d-border)',
|
|
10
|
+
],
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
sm: 'text-xs px-1 gap-1',
|
|
14
|
+
md: 'text-sm',
|
|
15
|
+
lg: 'text-md',
|
|
16
|
+
},
|
|
17
|
+
radius: {
|
|
18
|
+
full: 'rounded-full',
|
|
19
|
+
medium: 'rounded-md',
|
|
20
|
+
none: 'rounded-none',
|
|
21
|
+
},
|
|
22
|
+
status: {
|
|
23
|
+
default: 'default',
|
|
24
|
+
primary: 'primary',
|
|
25
|
+
success: 'success',
|
|
26
|
+
warning: 'warning',
|
|
27
|
+
danger: 'danger',
|
|
28
|
+
info: 'info',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
defaultVariants: {
|
|
32
|
+
size: 'md',
|
|
33
|
+
status: 'default',
|
|
34
|
+
radius: 'full',
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export { tagStyle };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PlusText } from './text.js';
|
|
2
|
+
import '../../property-DiPQx9S3.js';
|
|
3
|
+
import '../../lit-element-ByzbtpGk.js';
|
|
4
|
+
import '../base/tailwind-base.js';
|
|
5
|
+
import '../../global-Dh9axYQH.js';
|
|
6
|
+
import './text.style.js';
|
|
7
|
+
import '../../index-B9iart53.js';
|
|
8
|
+
|
|
9
|
+
customElements.define('plus-text', PlusText);
|
|
10
|
+
|
|
11
|
+
export { PlusText };
|