@daikin-oss/design-system-web-components 0.2.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +47 -7
- package/dist/cjs/components/accordion/daikin-accordion.cjs +37 -0
- package/dist/cjs/components/accordion/daikin-accordion.d.ts +39 -0
- package/dist/cjs/components/accordion/index.cjs +7 -0
- package/dist/cjs/components/accordion/index.d.ts +1 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +177 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.ts +55 -0
- package/dist/cjs/components/accordion-item/index.cjs +7 -0
- package/dist/cjs/components/accordion-item/index.d.ts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +124 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.ts +52 -0
- package/dist/cjs/components/breadcrumb/index.cjs +7 -0
- package/dist/cjs/components/breadcrumb/index.d.ts +1 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +116 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +62 -0
- package/dist/cjs/components/breadcrumb-item/index.cjs +7 -0
- package/dist/cjs/components/breadcrumb-item/index.d.ts +1 -0
- package/dist/cjs/components/button/daikin-button.cjs +25 -7
- package/dist/cjs/components/button/daikin-button.d.ts +21 -4
- package/dist/cjs/components/button/index.cjs +7 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.d.ts +11 -2
- package/dist/cjs/components/checkbox/index.cjs +7 -0
- package/dist/cjs/components/icon/daikin-icon.cjs +87 -0
- package/dist/cjs/components/icon/daikin-icon.d.ts +48 -0
- package/dist/cjs/components/icon/icons.json.cjs +29 -0
- package/dist/cjs/components/icon/icons.json.d.ts +31 -0
- package/dist/cjs/components/icon/index.cjs +8 -0
- package/dist/cjs/components/icon/index.d.ts +1 -0
- package/dist/cjs/components/index.cjs +93 -0
- package/dist/cjs/components/index.d.ts +11 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +1 -1
- package/dist/cjs/components/input-group/daikin-input-group.d.ts +27 -2
- package/dist/cjs/components/input-group/index.cjs +7 -0
- package/dist/cjs/components/notification/daikin-notification.cjs +15 -33
- package/dist/cjs/components/notification/daikin-notification.d.ts +21 -8
- package/dist/cjs/components/notification/index.cjs +7 -0
- package/dist/cjs/components/panel-switcher/daikin-panel-switcher.cjs +55 -0
- package/dist/cjs/components/panel-switcher/daikin-panel-switcher.d.ts +50 -0
- package/dist/cjs/components/panel-switcher/index.cjs +7 -0
- package/dist/cjs/components/panel-switcher/index.d.ts +1 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +137 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.ts +47 -0
- package/dist/cjs/components/progress-bar/index.cjs +7 -0
- package/dist/cjs/components/progress-bar/index.d.ts +1 -0
- package/dist/cjs/components/radio/daikin-radio.d.ts +11 -2
- package/dist/cjs/components/radio/index.cjs +7 -0
- package/dist/cjs/components/tab/daikin-tab.cjs +126 -0
- package/dist/cjs/components/tab/daikin-tab.d.ts +54 -0
- package/dist/cjs/components/tab/index.cjs +7 -0
- package/dist/cjs/components/tab/index.d.ts +1 -0
- package/dist/cjs/components/tab-group/daikin-tab-group.cjs +211 -0
- package/dist/cjs/components/tab-group/daikin-tab-group.d.ts +104 -0
- package/dist/cjs/components/tab-group/index.cjs +7 -0
- package/dist/cjs/components/tab-group/index.d.ts +1 -0
- package/dist/cjs/components/tab-group/scroller.cjs +65 -0
- package/dist/cjs/components/tab-group/scroller.d.ts +25 -0
- package/dist/cjs/components/text-input/daikin-text-input.d.ts +16 -2
- package/dist/cjs/components/text-input/index.cjs +7 -0
- package/dist/cjs/components/textarea/daikin-textarea.d.ts +16 -2
- package/dist/cjs/components/textarea/index.cjs +7 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +132 -0
- package/dist/cjs/components/toggle/daikin-toggle.d.ts +60 -0
- package/dist/cjs/components/toggle/index.cjs +7 -0
- package/dist/cjs/components/toggle/index.d.ts +1 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +223 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.d.ts +76 -0
- package/dist/cjs/components/tooltip/index.cjs +7 -0
- package/dist/cjs/components/tooltip/index.d.ts +1 -0
- package/dist/cjs/index.cjs +56 -0
- package/dist/cjs/is-client.cjs +5 -0
- package/dist/cjs/is-client.d.ts +1 -0
- package/dist/cjs/tailwind.css.cjs +2 -2
- package/dist/cjs/type-utils.d.ts +0 -1
- package/dist/cjs-dev/colors.cjs +80 -0
- package/dist/cjs-dev/colors.d.ts +69 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +37 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.ts +39 -0
- package/dist/cjs-dev/components/accordion/index.cjs +7 -0
- package/dist/cjs-dev/components/accordion/index.d.ts +1 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +177 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.ts +55 -0
- package/dist/cjs-dev/components/accordion-item/index.cjs +7 -0
- package/dist/cjs-dev/components/accordion-item/index.d.ts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +124 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.ts +52 -0
- package/dist/cjs-dev/components/breadcrumb/index.cjs +7 -0
- package/dist/cjs-dev/components/breadcrumb/index.d.ts +1 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +116 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +62 -0
- package/dist/cjs-dev/components/breadcrumb-item/index.cjs +7 -0
- package/dist/cjs-dev/components/breadcrumb-item/index.d.ts +1 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +215 -0
- package/dist/cjs-dev/components/button/daikin-button.d.ts +76 -0
- package/dist/cjs-dev/components/button/index.cjs +7 -0
- package/dist/cjs-dev/components/button/index.d.ts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +183 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.ts +77 -0
- package/dist/cjs-dev/components/checkbox/index.cjs +7 -0
- package/dist/cjs-dev/components/checkbox/index.d.ts +1 -0
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +96 -0
- package/dist/cjs-dev/components/icon/daikin-icon.d.ts +48 -0
- package/dist/cjs-dev/components/icon/icons.json.cjs +29 -0
- package/dist/cjs-dev/components/icon/icons.json.d.ts +31 -0
- package/dist/cjs-dev/components/icon/index.cjs +8 -0
- package/dist/cjs-dev/components/icon/index.d.ts +1 -0
- package/dist/cjs-dev/components/index.cjs +93 -0
- package/dist/cjs-dev/components/index.d.ts +18 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +119 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.ts +72 -0
- package/dist/cjs-dev/components/input-group/index.cjs +7 -0
- package/dist/cjs-dev/components/input-group/index.d.ts +1 -0
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +191 -0
- package/dist/cjs-dev/components/notification/daikin-notification.d.ts +75 -0
- package/dist/cjs-dev/components/notification/index.cjs +7 -0
- package/dist/cjs-dev/components/notification/index.d.ts +1 -0
- package/dist/cjs-dev/components/panel-switcher/daikin-panel-switcher.cjs +62 -0
- package/dist/cjs-dev/components/panel-switcher/daikin-panel-switcher.d.ts +50 -0
- package/dist/cjs-dev/components/panel-switcher/index.cjs +7 -0
- package/dist/cjs-dev/components/panel-switcher/index.d.ts +1 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +152 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.ts +47 -0
- package/dist/cjs-dev/components/progress-bar/index.cjs +7 -0
- package/dist/cjs-dev/components/progress-bar/index.d.ts +1 -0
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +150 -0
- package/dist/cjs-dev/components/radio/daikin-radio.d.ts +75 -0
- package/dist/cjs-dev/components/radio/index.cjs +7 -0
- package/dist/cjs-dev/components/radio/index.d.ts +1 -0
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +126 -0
- package/dist/cjs-dev/components/tab/daikin-tab.d.ts +54 -0
- package/dist/cjs-dev/components/tab/index.cjs +7 -0
- package/dist/cjs-dev/components/tab/index.d.ts +1 -0
- package/dist/cjs-dev/components/tab-group/daikin-tab-group.cjs +221 -0
- package/dist/cjs-dev/components/tab-group/daikin-tab-group.d.ts +104 -0
- package/dist/cjs-dev/components/tab-group/index.cjs +7 -0
- package/dist/cjs-dev/components/tab-group/index.d.ts +1 -0
- package/dist/cjs-dev/components/tab-group/scroller.cjs +65 -0
- package/dist/cjs-dev/components/tab-group/scroller.d.ts +25 -0
- package/dist/cjs-dev/components/text-input/daikin-text-input.cjs +137 -0
- package/dist/cjs-dev/components/text-input/daikin-text-input.d.ts +68 -0
- package/dist/cjs-dev/components/text-input/index.cjs +7 -0
- package/dist/cjs-dev/components/text-input/index.d.ts +1 -0
- package/dist/cjs-dev/components/textarea/daikin-textarea.cjs +168 -0
- package/dist/cjs-dev/components/textarea/daikin-textarea.d.ts +70 -0
- package/dist/cjs-dev/components/textarea/index.cjs +7 -0
- package/dist/cjs-dev/components/textarea/index.d.ts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +132 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.ts +60 -0
- package/dist/cjs-dev/components/toggle/index.cjs +7 -0
- package/dist/cjs-dev/components/toggle/index.d.ts +1 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +223 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.ts +76 -0
- package/dist/cjs-dev/components/tooltip/index.cjs +7 -0
- package/dist/cjs-dev/components/tooltip/index.d.ts +1 -0
- package/dist/cjs-dev/constants/events.cjs +4 -0
- package/dist/cjs-dev/constants/events.d.ts +1 -0
- package/dist/cjs-dev/index.cjs +95 -0
- package/dist/cjs-dev/index.d.ts +3 -0
- package/dist/cjs-dev/is-client.cjs +5 -0
- package/dist/cjs-dev/is-client.d.ts +1 -0
- package/dist/cjs-dev/lit-analyzer-types.d.ts +112 -0
- package/dist/cjs-dev/tailwind.css.cjs +6 -0
- package/dist/cjs-dev/type-utils.d.ts +24 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +39 -0
- package/dist/es/components/accordion/daikin-accordion.js +38 -0
- package/dist/es/components/accordion/index.d.ts +1 -0
- package/dist/es/components/accordion/index.js +4 -0
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +55 -0
- package/dist/es/components/accordion-item/daikin-accordion-item.js +178 -0
- package/dist/es/components/accordion-item/index.d.ts +1 -0
- package/dist/es/components/accordion-item/index.js +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +52 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +125 -0
- package/dist/es/components/breadcrumb/index.d.ts +1 -0
- package/dist/es/components/breadcrumb/index.js +4 -0
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +62 -0
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +117 -0
- package/dist/es/components/breadcrumb-item/index.d.ts +1 -0
- package/dist/es/components/breadcrumb-item/index.js +4 -0
- package/dist/es/components/button/daikin-button.d.ts +21 -4
- package/dist/es/components/button/daikin-button.js +25 -7
- package/dist/es/components/button/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +11 -2
- package/dist/es/components/checkbox/index.js +4 -0
- package/dist/es/components/icon/daikin-icon.d.ts +48 -0
- package/dist/es/components/icon/daikin-icon.js +88 -0
- package/dist/es/components/icon/icons.json.d.ts +31 -0
- package/dist/es/components/icon/icons.json.js +29 -0
- package/dist/es/components/icon/index.d.ts +1 -0
- package/dist/es/components/icon/index.js +5 -0
- package/dist/es/components/index.d.ts +11 -0
- package/dist/es/components/index.js +39 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +27 -2
- package/dist/es/components/input-group/daikin-input-group.js +1 -1
- package/dist/es/components/input-group/index.js +4 -0
- package/dist/es/components/notification/daikin-notification.d.ts +21 -8
- package/dist/es/components/notification/daikin-notification.js +15 -33
- package/dist/es/components/notification/index.js +4 -0
- package/dist/es/components/panel-switcher/daikin-panel-switcher.d.ts +50 -0
- package/dist/es/components/panel-switcher/daikin-panel-switcher.js +56 -0
- package/dist/es/components/panel-switcher/index.d.ts +1 -0
- package/dist/es/components/panel-switcher/index.js +4 -0
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +47 -0
- package/dist/es/components/progress-bar/daikin-progress-bar.js +138 -0
- package/dist/es/components/progress-bar/index.d.ts +1 -0
- package/dist/es/components/progress-bar/index.js +4 -0
- package/dist/es/components/radio/daikin-radio.d.ts +11 -2
- package/dist/es/components/radio/index.js +4 -0
- package/dist/es/components/tab/daikin-tab.d.ts +54 -0
- package/dist/es/components/tab/daikin-tab.js +127 -0
- package/dist/es/components/tab/index.d.ts +1 -0
- package/dist/es/components/tab/index.js +4 -0
- package/dist/es/components/tab-group/daikin-tab-group.d.ts +104 -0
- package/dist/es/components/tab-group/daikin-tab-group.js +212 -0
- package/dist/es/components/tab-group/index.d.ts +1 -0
- package/dist/es/components/tab-group/index.js +4 -0
- package/dist/es/components/tab-group/scroller.d.ts +25 -0
- package/dist/es/components/tab-group/scroller.js +65 -0
- package/dist/es/components/text-input/daikin-text-input.d.ts +16 -2
- package/dist/es/components/text-input/index.js +4 -0
- package/dist/es/components/textarea/daikin-textarea.d.ts +16 -2
- package/dist/es/components/textarea/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +60 -0
- package/dist/es/components/toggle/daikin-toggle.js +133 -0
- package/dist/es/components/toggle/index.d.ts +1 -0
- package/dist/es/components/toggle/index.js +4 -0
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +76 -0
- package/dist/es/components/tooltip/daikin-tooltip.js +224 -0
- package/dist/es/components/tooltip/index.d.ts +1 -0
- package/dist/es/components/tooltip/index.js +4 -0
- package/dist/es/index.js +24 -1
- package/dist/es/is-client.d.ts +1 -0
- package/dist/es/is-client.js +5 -0
- package/dist/es/tailwind.css.js +2 -2
- package/dist/es/type-utils.d.ts +0 -1
- package/dist/es-dev/colors.d.ts +69 -0
- package/dist/es-dev/colors.js +80 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +39 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +38 -0
- package/dist/es-dev/components/accordion/index.d.ts +1 -0
- package/dist/es-dev/components/accordion/index.js +4 -0
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +55 -0
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +178 -0
- package/dist/es-dev/components/accordion-item/index.d.ts +1 -0
- package/dist/es-dev/components/accordion-item/index.js +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +52 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +125 -0
- package/dist/es-dev/components/breadcrumb/index.d.ts +1 -0
- package/dist/es-dev/components/breadcrumb/index.js +4 -0
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +62 -0
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +117 -0
- package/dist/es-dev/components/breadcrumb-item/index.d.ts +1 -0
- package/dist/es-dev/components/breadcrumb-item/index.js +4 -0
- package/dist/es-dev/components/button/daikin-button.d.ts +76 -0
- package/dist/es-dev/components/button/daikin-button.js +216 -0
- package/dist/es-dev/components/button/index.d.ts +1 -0
- package/dist/es-dev/components/button/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +77 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +184 -0
- package/dist/es-dev/components/checkbox/index.d.ts +1 -0
- package/dist/es-dev/components/checkbox/index.js +4 -0
- package/dist/es-dev/components/icon/daikin-icon.d.ts +48 -0
- package/dist/es-dev/components/icon/daikin-icon.js +97 -0
- package/dist/es-dev/components/icon/icons.json.d.ts +31 -0
- package/dist/es-dev/components/icon/icons.json.js +29 -0
- package/dist/es-dev/components/icon/index.d.ts +1 -0
- package/dist/es-dev/components/icon/index.js +5 -0
- package/dist/es-dev/components/index.d.ts +18 -0
- package/dist/es-dev/components/index.js +39 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +72 -0
- package/dist/es-dev/components/input-group/daikin-input-group.js +120 -0
- package/dist/es-dev/components/input-group/index.d.ts +1 -0
- package/dist/es-dev/components/input-group/index.js +4 -0
- package/dist/es-dev/components/notification/daikin-notification.d.ts +75 -0
- package/dist/es-dev/components/notification/daikin-notification.js +192 -0
- package/dist/es-dev/components/notification/index.d.ts +1 -0
- package/dist/es-dev/components/notification/index.js +4 -0
- package/dist/es-dev/components/panel-switcher/daikin-panel-switcher.d.ts +50 -0
- package/dist/es-dev/components/panel-switcher/daikin-panel-switcher.js +63 -0
- package/dist/es-dev/components/panel-switcher/index.d.ts +1 -0
- package/dist/es-dev/components/panel-switcher/index.js +4 -0
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +47 -0
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +153 -0
- package/dist/es-dev/components/progress-bar/index.d.ts +1 -0
- package/dist/es-dev/components/progress-bar/index.js +4 -0
- package/dist/es-dev/components/radio/daikin-radio.d.ts +75 -0
- package/dist/es-dev/components/radio/daikin-radio.js +151 -0
- package/dist/es-dev/components/radio/index.d.ts +1 -0
- package/dist/es-dev/components/radio/index.js +4 -0
- package/dist/es-dev/components/tab/daikin-tab.d.ts +54 -0
- package/dist/es-dev/components/tab/daikin-tab.js +127 -0
- package/dist/es-dev/components/tab/index.d.ts +1 -0
- package/dist/es-dev/components/tab/index.js +4 -0
- package/dist/es-dev/components/tab-group/daikin-tab-group.d.ts +104 -0
- package/dist/es-dev/components/tab-group/daikin-tab-group.js +222 -0
- package/dist/es-dev/components/tab-group/index.d.ts +1 -0
- package/dist/es-dev/components/tab-group/index.js +4 -0
- package/dist/es-dev/components/tab-group/scroller.d.ts +25 -0
- package/dist/es-dev/components/tab-group/scroller.js +65 -0
- package/dist/es-dev/components/text-input/daikin-text-input.d.ts +68 -0
- package/dist/es-dev/components/text-input/daikin-text-input.js +138 -0
- package/dist/es-dev/components/text-input/index.d.ts +1 -0
- package/dist/es-dev/components/text-input/index.js +4 -0
- package/dist/es-dev/components/textarea/daikin-textarea.d.ts +70 -0
- package/dist/es-dev/components/textarea/daikin-textarea.js +169 -0
- package/dist/es-dev/components/textarea/index.d.ts +1 -0
- package/dist/es-dev/components/textarea/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +60 -0
- package/dist/es-dev/components/toggle/daikin-toggle.js +133 -0
- package/dist/es-dev/components/toggle/index.d.ts +1 -0
- package/dist/es-dev/components/toggle/index.js +4 -0
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +76 -0
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +224 -0
- package/dist/es-dev/components/tooltip/index.d.ts +1 -0
- package/dist/es-dev/components/tooltip/index.js +4 -0
- package/dist/es-dev/constants/events.d.ts +1 -0
- package/dist/es-dev/constants/events.js +4 -0
- package/dist/es-dev/index.d.ts +3 -0
- package/dist/es-dev/index.js +41 -0
- package/dist/es-dev/is-client.d.ts +1 -0
- package/dist/es-dev/is-client.js +5 -0
- package/dist/es-dev/lit-analyzer-types.d.ts +112 -0
- package/dist/es-dev/tailwind.css.js +6 -0
- package/dist/es-dev/type-utils.d.ts +24 -0
- package/icons/accordion-chevron-up.svg +3 -0
- package/icons/status-positive.svg +15 -0
- package/package.json +83 -50
- /package/icons/{input-group-error.svg → status-negative.svg} +0 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { css, unsafeCSS, LitElement, html, nothing } from "lit";
|
|
2
|
+
import { property, customElement } from "lit/decorators.js";
|
|
3
|
+
import { repeat } from "lit/directives/repeat.js";
|
|
4
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
+
if (decorator = decorators[i])
|
|
11
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12
|
+
if (kind && result) __defProp(target, key, result);
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
let DaikinPanelSwitcher = class extends LitElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.value = "";
|
|
19
|
+
this.panels = [];
|
|
20
|
+
this.panelRole = null;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
{
|
|
24
|
+
if (!this.panels.includes(this.value)) {
|
|
25
|
+
console.warn(
|
|
26
|
+
`[daikin-panel-switcher] No panel slot named "panel:${this.value}". Nothing will be rendered.`
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return repeat(
|
|
31
|
+
this.panels,
|
|
32
|
+
(value) => html`<div
|
|
33
|
+
class=${this.value === value ? "contents" : "hidden"}
|
|
34
|
+
role=${// HACK: Workaround lit-analyzer not recognizing `nothing` (runem/lit-analyzer#207).
|
|
35
|
+
this.panelRole ?? nothing}
|
|
36
|
+
?hidden=${this.value !== value}
|
|
37
|
+
>
|
|
38
|
+
<slot name=${`panel:${value}`}></slot>
|
|
39
|
+
</div>`
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
DaikinPanelSwitcher.styles = css`
|
|
44
|
+
${unsafeCSS(tailwindStyles)}
|
|
45
|
+
`;
|
|
46
|
+
__decorateClass([
|
|
47
|
+
property({ type: String, reflect: true })
|
|
48
|
+
], DaikinPanelSwitcher.prototype, "value", 2);
|
|
49
|
+
__decorateClass([
|
|
50
|
+
property({
|
|
51
|
+
type: Array,
|
|
52
|
+
hasChanged: (newValue, oldValue) => JSON.stringify(newValue) !== JSON.stringify(oldValue)
|
|
53
|
+
})
|
|
54
|
+
], DaikinPanelSwitcher.prototype, "panels", 2);
|
|
55
|
+
__decorateClass([
|
|
56
|
+
property({ type: String, reflect: true, attribute: "panel-role" })
|
|
57
|
+
], DaikinPanelSwitcher.prototype, "panelRole", 2);
|
|
58
|
+
DaikinPanelSwitcher = __decorateClass([
|
|
59
|
+
customElement("daikin-panel-switcher")
|
|
60
|
+
], DaikinPanelSwitcher);
|
|
61
|
+
export {
|
|
62
|
+
DaikinPanelSwitcher
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-panel-switcher';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* The progress bar component is used to visually convey the progress to the user.
|
|
4
|
+
*
|
|
5
|
+
* There are four variants of the progress bar:
|
|
6
|
+
*
|
|
7
|
+
* - "inprogress": The default variant. Use this when you know the exact progress. The length of the bar is the ratio of `value` to `max`.
|
|
8
|
+
* - "indeterminate": Use this variant when you don't know the exact progress. In this variant, the `value` is ignored and the bar always animates from left to right with a constant length.
|
|
9
|
+
* - "completed": In addition to "inprogress", a completed icon is added. In this variant, the `value` is ignored and the bar always expands to the full width.
|
|
10
|
+
* - "error": In addition to "inprogress", an error icon is added and the color becomes red. In this variant, the `value` is ignored and the bar always expands to the full width.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* ```html
|
|
15
|
+
* <daikin-progress-bar value="40" helper="Progress bar helper">
|
|
16
|
+
* Progress bar label
|
|
17
|
+
* </daikin-progress-bar>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class DaikinProgressBar extends LitElement {
|
|
21
|
+
static readonly styles: import('lit').CSSResult;
|
|
22
|
+
/**
|
|
23
|
+
* Value of the progress bar
|
|
24
|
+
*/
|
|
25
|
+
value: number;
|
|
26
|
+
/**
|
|
27
|
+
* Variant of the progress bar
|
|
28
|
+
*/
|
|
29
|
+
variant: "inprogress" | "completed" | "indeterminate" | "error";
|
|
30
|
+
/**
|
|
31
|
+
* The max value of the progress bar
|
|
32
|
+
*/
|
|
33
|
+
max: number;
|
|
34
|
+
/**
|
|
35
|
+
* Helper text
|
|
36
|
+
*/
|
|
37
|
+
helper: string;
|
|
38
|
+
private _validateProperties;
|
|
39
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
40
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
41
|
+
}
|
|
42
|
+
declare global {
|
|
43
|
+
interface HTMLElementTagNameMap {
|
|
44
|
+
"daikin-progress-bar": DaikinProgressBar;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export default DaikinProgressBar;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { colorFeedbackPositive, colorFeedbackNegative } from "@daikin-oss/dds-tokens/js/daikin/Light/variables.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { css, unsafeCSS, LitElement, html } from "lit";
|
|
4
|
+
import { property, customElement } from "lit/decorators.js";
|
|
5
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
+
if (decorator = decorators[i])
|
|
12
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
|
+
if (kind && result) __defProp(target, key, result);
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
const cvaBar = cva(
|
|
17
|
+
[
|
|
18
|
+
"w-full",
|
|
19
|
+
"h-1",
|
|
20
|
+
"bg-daikinNeutral-200",
|
|
21
|
+
"overflow-hidden",
|
|
22
|
+
"relative",
|
|
23
|
+
"after:block",
|
|
24
|
+
"after:h-full",
|
|
25
|
+
"after:absolute",
|
|
26
|
+
"after:left-0"
|
|
27
|
+
],
|
|
28
|
+
{
|
|
29
|
+
variants: {
|
|
30
|
+
variant: {
|
|
31
|
+
inprogress: ["after:w-[--bar-width]", "after:bg-daikinBlue-500"],
|
|
32
|
+
completed: ["after:w-full", "after:bg-[--colorFeedbackPositive]"],
|
|
33
|
+
indeterminate: [
|
|
34
|
+
"after:w-1/2",
|
|
35
|
+
"after:bg-daikinBlue-500",
|
|
36
|
+
"after:animate-[progress-bar-indeterminate_1200ms_linear_infinite]"
|
|
37
|
+
],
|
|
38
|
+
error: ["after:w-full", "after:bg-[--colorFeedbackNegative]"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const cvaIcon = cva(["size-4"], {
|
|
44
|
+
variants: {
|
|
45
|
+
variant: {
|
|
46
|
+
inprogress: ["none"],
|
|
47
|
+
completed: ["i-daikin-status-positive"],
|
|
48
|
+
indeterminate: [],
|
|
49
|
+
error: ["i-daikin-status-negative"]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
const cvaHelper = cva(["text-xs", "mt-2"], {
|
|
54
|
+
variants: {
|
|
55
|
+
variant: {
|
|
56
|
+
inprogress: [],
|
|
57
|
+
completed: [],
|
|
58
|
+
indeterminate: [],
|
|
59
|
+
error: ["text-[--colorFeedbackNegative]"]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
let DaikinProgressBar = class extends LitElement {
|
|
64
|
+
constructor() {
|
|
65
|
+
super(...arguments);
|
|
66
|
+
this.value = 0;
|
|
67
|
+
this.variant = "inprogress";
|
|
68
|
+
this.max = 100;
|
|
69
|
+
this.helper = "";
|
|
70
|
+
}
|
|
71
|
+
// Validate the 'value' and 'max' properties to ensure they are valid
|
|
72
|
+
_validateProperties() {
|
|
73
|
+
if (typeof this.value !== "number" || this.value < 0) {
|
|
74
|
+
{
|
|
75
|
+
console.warn(
|
|
76
|
+
`Invalid 'value' property: ${this.value}. Falling back to 0.`
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
this.value = 0;
|
|
80
|
+
}
|
|
81
|
+
if (typeof this.max !== "number" || this.max <= 0) {
|
|
82
|
+
{
|
|
83
|
+
console.warn(
|
|
84
|
+
`Invalid 'max' property: ${this.max}. Falling back to 100.`
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
this.max = 100;
|
|
88
|
+
}
|
|
89
|
+
if (this.value > this.max) {
|
|
90
|
+
{
|
|
91
|
+
console.warn(
|
|
92
|
+
`'value' property: ${this.value} exceeds 'max' property: ${this.max}. Clamping value to max.`
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
this.value = this.max;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
const progressRatio = Math.min(Math.max(this.value / this.max, 0), 1);
|
|
100
|
+
return html`<div class="flex flex-col w-full font-daikinSerif">
|
|
101
|
+
<div class="flex justify-between items-center mb-2.5">
|
|
102
|
+
<span class="text-sm leading-[22px] font-medium"><slot></slot></span>
|
|
103
|
+
<span class=${cvaIcon({ variant: this.variant })}></span>
|
|
104
|
+
</div>
|
|
105
|
+
<div
|
|
106
|
+
class=${cvaBar({ variant: this.variant })}
|
|
107
|
+
role="progressbar"
|
|
108
|
+
aria-label=${this.textContent ?? ""}
|
|
109
|
+
aria-valuenow=${this.value}
|
|
110
|
+
aria-valuemin="0"
|
|
111
|
+
aria-valuemax=${this.max}
|
|
112
|
+
style=${`--bar-width:${progressRatio * 100}%`}
|
|
113
|
+
></div>
|
|
114
|
+
${this.helper ? html`<span class=${cvaHelper({ variant: this.variant })}
|
|
115
|
+
>${this.helper}</span
|
|
116
|
+
>` : null}
|
|
117
|
+
</div>`;
|
|
118
|
+
}
|
|
119
|
+
updated(changedProperties) {
|
|
120
|
+
if (changedProperties.has("value") || changedProperties.has("max")) {
|
|
121
|
+
this._validateProperties();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
DaikinProgressBar.styles = css`
|
|
126
|
+
${unsafeCSS(tailwindStyles)}
|
|
127
|
+
|
|
128
|
+
:host {
|
|
129
|
+
--colorFeedbackPositive: ${unsafeCSS(colorFeedbackPositive)};
|
|
130
|
+
--colorFeedbackNegative: ${unsafeCSS(colorFeedbackNegative)};
|
|
131
|
+
|
|
132
|
+
display: block;
|
|
133
|
+
width: 100%;
|
|
134
|
+
}
|
|
135
|
+
`;
|
|
136
|
+
__decorateClass([
|
|
137
|
+
property({ type: Number })
|
|
138
|
+
], DaikinProgressBar.prototype, "value", 2);
|
|
139
|
+
__decorateClass([
|
|
140
|
+
property({ type: String })
|
|
141
|
+
], DaikinProgressBar.prototype, "variant", 2);
|
|
142
|
+
__decorateClass([
|
|
143
|
+
property({ type: Number })
|
|
144
|
+
], DaikinProgressBar.prototype, "max", 2);
|
|
145
|
+
__decorateClass([
|
|
146
|
+
property({ type: String })
|
|
147
|
+
], DaikinProgressBar.prototype, "helper", 2);
|
|
148
|
+
DaikinProgressBar = __decorateClass([
|
|
149
|
+
customElement("daikin-progress-bar")
|
|
150
|
+
], DaikinProgressBar);
|
|
151
|
+
export {
|
|
152
|
+
DaikinProgressBar
|
|
153
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-progress-bar';
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
+
declare const cvaRadio: (props?: ({
|
|
4
|
+
size?: "small" | "large" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare const cvaLabel: (props?: ({
|
|
7
|
+
size?: "small" | "large" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
type RadioVariantProps = MergeVariantProps<typeof cvaRadio | typeof cvaLabel>;
|
|
10
|
+
/**
|
|
11
|
+
* The radio button component is a UI element that allows users to select one options from a set of choices.
|
|
12
|
+
* It functions similarly to the HTML `<input type="radio">` tag. \
|
|
13
|
+
* Please note that **a radio group component is not yet available**, so you'll need to manually group radio buttons when using multiple instances.
|
|
14
|
+
*
|
|
15
|
+
* @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<input type="radio">` element.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* ```html
|
|
20
|
+
* <daikin-radio name="name" value="value" label="Radio button label"></daikin-radio>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class DaikinRadio extends LitElement {
|
|
24
|
+
static readonly styles: import('lit').CSSResult;
|
|
25
|
+
private _handleClick;
|
|
26
|
+
static readonly formAssociated = true;
|
|
27
|
+
private _internals;
|
|
28
|
+
private _updateFormValue;
|
|
29
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
30
|
+
private _handleChange;
|
|
31
|
+
/**
|
|
32
|
+
* Specify the label text for the radio
|
|
33
|
+
*/
|
|
34
|
+
label: string;
|
|
35
|
+
/**
|
|
36
|
+
* Specify the component size
|
|
37
|
+
*/
|
|
38
|
+
size: RadioVariantProps["size"];
|
|
39
|
+
/**
|
|
40
|
+
* Specify the label position
|
|
41
|
+
* when `left` the label will be in left of radio, when `right` label will be in right of radio
|
|
42
|
+
*/
|
|
43
|
+
labelPosition: "left" | "right";
|
|
44
|
+
/**
|
|
45
|
+
* Specify whether the Radio should be disabled
|
|
46
|
+
*/
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Specify whether the radio is read only
|
|
50
|
+
*/
|
|
51
|
+
readonly: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Specify whether the radio is be checked
|
|
54
|
+
*/
|
|
55
|
+
checked: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* The form name.
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* The form value.
|
|
62
|
+
*/
|
|
63
|
+
value: string;
|
|
64
|
+
/**
|
|
65
|
+
* Specify whether the Radio is in a error state
|
|
66
|
+
*/
|
|
67
|
+
error: boolean;
|
|
68
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
69
|
+
}
|
|
70
|
+
declare global {
|
|
71
|
+
interface HTMLElementTagNameMap {
|
|
72
|
+
"daikin-radio": DaikinRadio;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { css, unsafeCSS, LitElement, html } from "lit";
|
|
3
|
+
import { property, customElement } from "lit/decorators.js";
|
|
4
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
+
if (decorator = decorators[i])
|
|
11
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12
|
+
if (kind && result) __defProp(target, key, result);
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
const cvaRadio = cva(
|
|
16
|
+
[
|
|
17
|
+
"appearance-none",
|
|
18
|
+
"relative",
|
|
19
|
+
"after:absolute",
|
|
20
|
+
"after:i-daikin-radio-unchecked",
|
|
21
|
+
"checked:after:i-daikin-radio-checked",
|
|
22
|
+
"enabled:after:text-[#8C8C8C]",
|
|
23
|
+
"enabled:checked:after:text-daikinBlue-500",
|
|
24
|
+
"aria-controllable:hover:after:i-daikin-radio-checked",
|
|
25
|
+
"aria-controllable:hover:after:text-daikinBlue-300",
|
|
26
|
+
"aria-controllable:active:after:i-daikin-radio-checked",
|
|
27
|
+
"aria-controllable:active:after:text-daikinBlue-500",
|
|
28
|
+
"focus-visible:outline-none",
|
|
29
|
+
"aria-controllable:focus-visible:after:i-daikin-radio-unchecked",
|
|
30
|
+
"aria-controllable:focus-visible:checked:after:i-daikin-radio-checked",
|
|
31
|
+
"aria-controllable:focus-visible:after:text-daikinBlue-700",
|
|
32
|
+
"disabled:after:text-daikinNeutral-200"
|
|
33
|
+
],
|
|
34
|
+
{
|
|
35
|
+
variants: {
|
|
36
|
+
size: {
|
|
37
|
+
small: ["w-[14px]", "h-[14px]"],
|
|
38
|
+
large: ["w-4", "h-4"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
const cvaLabel = cva(
|
|
44
|
+
["leading-8", "not-italic", "font-normal", "align-middle"],
|
|
45
|
+
{
|
|
46
|
+
variants: {
|
|
47
|
+
size: {
|
|
48
|
+
small: ["text-sm"],
|
|
49
|
+
large: ["text-base"]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
let DaikinRadio = class extends LitElement {
|
|
55
|
+
constructor() {
|
|
56
|
+
super(...arguments);
|
|
57
|
+
this._internals = this.attachInternals();
|
|
58
|
+
this.label = "";
|
|
59
|
+
this.size = "small";
|
|
60
|
+
this.labelPosition = "right";
|
|
61
|
+
this.disabled = false;
|
|
62
|
+
this.readonly = false;
|
|
63
|
+
this.checked = false;
|
|
64
|
+
this.name = "";
|
|
65
|
+
this.value = "";
|
|
66
|
+
this.error = false;
|
|
67
|
+
}
|
|
68
|
+
_handleClick(event) {
|
|
69
|
+
if (this.readonly || this.disabled) {
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
_updateFormValue() {
|
|
74
|
+
this._internals.setFormValue(this.checked ? this.value : null);
|
|
75
|
+
}
|
|
76
|
+
updated(changedProperties) {
|
|
77
|
+
if (changedProperties.has("checked")) {
|
|
78
|
+
this._updateFormValue();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
_handleChange(event) {
|
|
82
|
+
var _a;
|
|
83
|
+
const input = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector("input");
|
|
84
|
+
this.checked = input.checked;
|
|
85
|
+
this._updateFormValue();
|
|
86
|
+
const newEvent = new Event("change", event);
|
|
87
|
+
this.dispatchEvent(newEvent);
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
const labelClassName = cvaLabel({ size: this.size });
|
|
91
|
+
const radioClassName = cvaRadio({ size: this.size });
|
|
92
|
+
const labelText = this.label ? html`<span class="${labelClassName}">${this.label}</span>` : html``;
|
|
93
|
+
const inputTag = html`<input
|
|
94
|
+
class=${radioClassName}
|
|
95
|
+
type="radio"
|
|
96
|
+
name=${this.name}
|
|
97
|
+
value=${this.value}
|
|
98
|
+
aria-readonly=${this.readonly}
|
|
99
|
+
?disabled=${this.disabled}
|
|
100
|
+
.checked=${this.checked}
|
|
101
|
+
@click=${this._handleClick}
|
|
102
|
+
@change=${this._handleChange}
|
|
103
|
+
/>`;
|
|
104
|
+
const inputArea = this.labelPosition === "left" ? html`${labelText}${inputTag}` : html`${inputTag}${labelText}`;
|
|
105
|
+
return html`<label
|
|
106
|
+
class="inline-flex w-full h-full gap-[8px] items-center font-daikinSerif"
|
|
107
|
+
>${inputArea}</label
|
|
108
|
+
>`;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
DaikinRadio.styles = css`
|
|
112
|
+
${unsafeCSS(tailwindStyles)}
|
|
113
|
+
|
|
114
|
+
:host {
|
|
115
|
+
display: inline-block;
|
|
116
|
+
}
|
|
117
|
+
`;
|
|
118
|
+
DaikinRadio.formAssociated = true;
|
|
119
|
+
__decorateClass([
|
|
120
|
+
property({ type: String })
|
|
121
|
+
], DaikinRadio.prototype, "label", 2);
|
|
122
|
+
__decorateClass([
|
|
123
|
+
property({ type: String })
|
|
124
|
+
], DaikinRadio.prototype, "size", 2);
|
|
125
|
+
__decorateClass([
|
|
126
|
+
property({ type: String, attribute: "label-position" })
|
|
127
|
+
], DaikinRadio.prototype, "labelPosition", 2);
|
|
128
|
+
__decorateClass([
|
|
129
|
+
property({ type: Boolean, reflect: true })
|
|
130
|
+
], DaikinRadio.prototype, "disabled", 2);
|
|
131
|
+
__decorateClass([
|
|
132
|
+
property({ type: Boolean, reflect: true })
|
|
133
|
+
], DaikinRadio.prototype, "readonly", 2);
|
|
134
|
+
__decorateClass([
|
|
135
|
+
property({ type: Boolean, reflect: true })
|
|
136
|
+
], DaikinRadio.prototype, "checked", 2);
|
|
137
|
+
__decorateClass([
|
|
138
|
+
property({ type: String, reflect: true })
|
|
139
|
+
], DaikinRadio.prototype, "name", 2);
|
|
140
|
+
__decorateClass([
|
|
141
|
+
property({ type: String, reflect: true })
|
|
142
|
+
], DaikinRadio.prototype, "value", 2);
|
|
143
|
+
__decorateClass([
|
|
144
|
+
property({ type: Boolean, reflect: true })
|
|
145
|
+
], DaikinRadio.prototype, "error", 2);
|
|
146
|
+
DaikinRadio = __decorateClass([
|
|
147
|
+
customElement("daikin-radio")
|
|
148
|
+
], DaikinRadio);
|
|
149
|
+
export {
|
|
150
|
+
DaikinRadio
|
|
151
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-radio';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* The tab component is a child element within the `daikin-tab-group` component, representing a clickable button or label that users interact with to switch between different panels of content.
|
|
4
|
+
* Each tab corresponds to a specific panel and is typically labeled to indicate the content it reveals.
|
|
5
|
+
*
|
|
6
|
+
* Hierarchy:
|
|
7
|
+
* - `daikin-tab-group` > `daikin-tab`
|
|
8
|
+
*
|
|
9
|
+
* @fires click - A retargeted event of a [click event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) emitted from the inner `<button>` element. Suppressed if `disabled` is true,
|
|
10
|
+
*
|
|
11
|
+
* @slot - A slot for the tab button content.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <!-- See `daikin-tab-group` component for complete example. -->
|
|
17
|
+
* <daikin-tab value="foo">Foo tab</daikin-tab>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class DaikinTab extends LitElement {
|
|
21
|
+
static readonly styles: import('lit').CSSResult;
|
|
22
|
+
/**
|
|
23
|
+
* A unique string that identifies a tab.
|
|
24
|
+
* Must be unique within the `daikin-tab-group` component.
|
|
25
|
+
*/
|
|
26
|
+
value: string;
|
|
27
|
+
/**
|
|
28
|
+
* Size of tab
|
|
29
|
+
*/
|
|
30
|
+
size: "default" | "condensed";
|
|
31
|
+
/**
|
|
32
|
+
* Whether to show the disabled state.
|
|
33
|
+
*/
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to show the active (selected) state.
|
|
37
|
+
* Ignored if `disabled` is `true`.
|
|
38
|
+
* Set automatically by `daikin-tab-group` component.
|
|
39
|
+
*/
|
|
40
|
+
active: boolean;
|
|
41
|
+
private _handleClick;
|
|
42
|
+
constructor();
|
|
43
|
+
/**
|
|
44
|
+
* Focuses on the inner button.
|
|
45
|
+
* @param options focus options
|
|
46
|
+
*/
|
|
47
|
+
focus(options?: FocusOptions | undefined): void;
|
|
48
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
49
|
+
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface HTMLElementTagNameMap {
|
|
52
|
+
"daikin-tab": DaikinTab;
|
|
53
|
+
}
|
|
54
|
+
}
|