@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
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './accordion-item';
|
|
3
|
+
export * from './breadcrumb';
|
|
4
|
+
export * from './breadcrumb-item';
|
|
1
5
|
export * from './button';
|
|
2
6
|
export * from './checkbox';
|
|
7
|
+
export * from './icon';
|
|
3
8
|
export * from './input-group';
|
|
4
9
|
export * from './notification';
|
|
10
|
+
export * from './panel-switcher';
|
|
11
|
+
export * from './progress-bar';
|
|
5
12
|
export * from './radio';
|
|
13
|
+
export * from './tab';
|
|
14
|
+
export * from './tab-group';
|
|
6
15
|
export * from './text-input';
|
|
7
16
|
export * from './textarea';
|
|
17
|
+
export * from './toggle';
|
|
18
|
+
export * from './tooltip';
|
|
@@ -70,7 +70,7 @@ exports.DaikinInputGroup = class DaikinInputGroup extends lit.LitElement {
|
|
|
70
70
|
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
71
71
|
${this.helper && !this.error ? lit.html`<span class=${inputGroupHelperClassName}>${this.helper}</span>` : null}
|
|
72
72
|
${!this.disabled && !!this.error ? lit.html`<span
|
|
73
|
-
class="flex gap-2 text-[--input-group-border-color-error] leading-[22px] before:i-daikin-
|
|
73
|
+
class="flex gap-2 text-[--input-group-border-color-error] leading-[22px] before:i-daikin-status-negative before:block before:w-[16px] before:h-[22px]"
|
|
74
74
|
>${this.error}</span
|
|
75
75
|
>` : null}
|
|
76
76
|
</label>
|
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { DaikinTextInput } from '../text-input/daikin-text-input';
|
|
3
3
|
import { DaikinTextarea } from '../textarea/daikin-textarea';
|
|
4
|
-
|
|
5
4
|
type ControlElement = DaikinTextInput | DaikinTextarea;
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* The input group component serves as a wrapper for a `daikin-text-input` or `daikin-textarea` component, providing additional elements such as labels, helper texts, or a counter.
|
|
7
|
+
* It enhances the user experience by associating supplementary information or functionality directly with the input field.
|
|
8
|
+
* This component is particularly useful for creating complex forms where clear communication and guidance are essential.
|
|
9
|
+
*
|
|
10
|
+
* Hierarchies:
|
|
11
|
+
* - `daikin-input-group` > `daikin-text-input`
|
|
12
|
+
* - `daikin-input-group` > `daikin-textarea`
|
|
13
|
+
*
|
|
14
|
+
* @slot - A slot for a input component. Place a `daikin-text-input` or `daikin-textarea` element here.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* With Text Input:
|
|
19
|
+
*
|
|
20
|
+
* ```html
|
|
21
|
+
* <daikin-input-group>
|
|
22
|
+
* <daikin-text-input value="Content of Text Input"></daikin-text-input>
|
|
23
|
+
* </daikin-input-group>
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* With Textarea:
|
|
27
|
+
*
|
|
28
|
+
* ```html
|
|
29
|
+
* <daikin-input-group>
|
|
30
|
+
* <daikin-textarea value="Content of Textarea"></daikin-textarea>
|
|
31
|
+
* </daikin-input-group>
|
|
32
|
+
* ```
|
|
8
33
|
*/
|
|
9
34
|
export declare class DaikinInputGroup extends LitElement {
|
|
10
35
|
static readonly styles: import('lit').CSSResult;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinInputGroup = require("./daikin-input-group.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinInputGroup", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinInputGroup.DaikinInputGroup
|
|
7
|
+
});
|
|
@@ -6,6 +6,7 @@ const lit = require("lit");
|
|
|
6
6
|
const decorators_js = require("lit/decorators.js");
|
|
7
7
|
const events = require("../../constants/events.cjs");
|
|
8
8
|
const tailwind = require("../../tailwind.css.cjs");
|
|
9
|
+
require("../icon/daikin-icon.cjs");
|
|
9
10
|
var __defProp = Object.defineProperty;
|
|
10
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
12
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -60,31 +61,6 @@ const cvaIconContainer = classVarianceAuthority.cva(
|
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
);
|
|
63
|
-
const cvaIcon = classVarianceAuthority.cva(
|
|
64
|
-
[
|
|
65
|
-
"flex",
|
|
66
|
-
"justify-center",
|
|
67
|
-
"items-center",
|
|
68
|
-
"w-[24px]",
|
|
69
|
-
"h-[24px]",
|
|
70
|
-
"flex-none",
|
|
71
|
-
"text-white"
|
|
72
|
-
],
|
|
73
|
-
{
|
|
74
|
-
variants: {
|
|
75
|
-
status: {
|
|
76
|
-
positive: ["i-daikin-notification-status-positive"],
|
|
77
|
-
negative: ["i-daikin-notification-status-negative"],
|
|
78
|
-
warning: ["i-daikin-notification-status-warning"],
|
|
79
|
-
alarm: ["i-daikin-notification-status-alarm"],
|
|
80
|
-
information: ["i-daikin-notification-status-information"]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
defaultVariants: {
|
|
84
|
-
status: "positive"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
64
|
const cvaContent = classVarianceAuthority.cva(
|
|
89
65
|
["flex", "justify-center", "gap-1", "w-fit", "flex-none"],
|
|
90
66
|
{
|
|
@@ -130,11 +106,11 @@ exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
|
|
|
130
106
|
status: this.status
|
|
131
107
|
})}
|
|
132
108
|
>
|
|
133
|
-
<
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
></
|
|
109
|
+
<daikin-icon
|
|
110
|
+
icon=${this.status}
|
|
111
|
+
color="white"
|
|
112
|
+
size="xl"
|
|
113
|
+
></daikin-icon>
|
|
138
114
|
</div>
|
|
139
115
|
<div
|
|
140
116
|
class="flex justify-between items-center gap-5 p-5 flex-[1_0_auto]"
|
|
@@ -153,9 +129,15 @@ exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
|
|
|
153
129
|
<div class="flex items-center gap-5">
|
|
154
130
|
<button
|
|
155
131
|
aria-label="Close"
|
|
156
|
-
class="relative flex w-5 h-5
|
|
157
|
-
@click=${
|
|
158
|
-
|
|
132
|
+
class="relative flex w-5 h-5"
|
|
133
|
+
@click=${this._handleClickClose}
|
|
134
|
+
>
|
|
135
|
+
<daikin-icon
|
|
136
|
+
icon="close"
|
|
137
|
+
size="l"
|
|
138
|
+
color="default"
|
|
139
|
+
></daikin-icon>
|
|
140
|
+
</button>
|
|
159
141
|
</div>
|
|
160
142
|
` : null}
|
|
161
143
|
</div>
|
|
@@ -1,22 +1,35 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
-
|
|
4
3
|
declare const cvaContainer: (props?: ({
|
|
5
4
|
variant?: "toast" | "inline" | null | undefined;
|
|
6
|
-
status?: "
|
|
5
|
+
status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
|
|
7
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
7
|
declare const cvaIconContainer: (props?: ({
|
|
9
|
-
status?: "
|
|
10
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
-
declare const cvaIcon: (props?: ({
|
|
12
|
-
status?: "positive" | "negative" | "warning" | "alarm" | "information" | null | undefined;
|
|
8
|
+
status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
|
|
13
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
10
|
declare const cvaContent: (props?: ({
|
|
15
11
|
line?: "single" | "multi" | null | undefined;
|
|
16
12
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
17
|
-
type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaIconContainer | typeof
|
|
13
|
+
type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaIconContainer | typeof cvaContent>;
|
|
18
14
|
/**
|
|
19
|
-
*
|
|
15
|
+
* The notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
|
|
16
|
+
*
|
|
17
|
+
* There are two variants of notification components: `toast` and `inline`.
|
|
18
|
+
*
|
|
19
|
+
* Toast notifications are brief messages that should appear temporarily at the edge of the screen, typically in the bottom or top corner.
|
|
20
|
+
* Toast notifications are ideal for conveying transient information that does not require user interaction, such as success messages, warnings, or alerts. \
|
|
21
|
+
* Please note that **currently we don't support automatic placement or stacking of toast notifications**.
|
|
22
|
+
*
|
|
23
|
+
* Inline notifications appear within the content of the application, usually embedded directly within a page or section.
|
|
24
|
+
* Inline notifications are more persistent and are used to highlight important information or status updates that should remain visible to the user until they are acknowledged or the issue is resolved.
|
|
25
|
+
*
|
|
26
|
+
* @fires close - A custom event emitted when a user clicks the close button.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
*
|
|
30
|
+
* ```html
|
|
31
|
+
* </daikin-notification title="Notification title" description="Notification description."></daikin-notification>
|
|
32
|
+
* ```
|
|
20
33
|
*/
|
|
21
34
|
export declare class DaikinNotification extends LitElement {
|
|
22
35
|
static readonly styles: import('lit').CSSResult;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinNotification = require("./daikin-notification.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinNotification", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinNotification.DaikinNotification
|
|
7
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const lit = require("lit");
|
|
4
|
+
const decorators_js = require("lit/decorators.js");
|
|
5
|
+
const repeat_js = require("lit/directives/repeat.js");
|
|
6
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
+
if (decorator = decorators[i])
|
|
13
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
|
+
if (kind && result) __defProp(target, key, result);
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
exports.DaikinPanelSwitcher = class DaikinPanelSwitcher extends lit.LitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.value = "";
|
|
21
|
+
this.panels = [];
|
|
22
|
+
this.panelRole = null;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return repeat_js.repeat(
|
|
26
|
+
this.panels,
|
|
27
|
+
(value) => lit.html`<div
|
|
28
|
+
class=${this.value === value ? "contents" : "hidden"}
|
|
29
|
+
role=${// HACK: Workaround lit-analyzer not recognizing `nothing` (runem/lit-analyzer#207).
|
|
30
|
+
this.panelRole ?? lit.nothing}
|
|
31
|
+
?hidden=${this.value !== value}
|
|
32
|
+
>
|
|
33
|
+
<slot name=${`panel:${value}`}></slot>
|
|
34
|
+
</div>`
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.DaikinPanelSwitcher.styles = lit.css`
|
|
39
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
40
|
+
`;
|
|
41
|
+
__decorateClass([
|
|
42
|
+
decorators_js.property({ type: String, reflect: true })
|
|
43
|
+
], exports.DaikinPanelSwitcher.prototype, "value", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
decorators_js.property({
|
|
46
|
+
type: Array,
|
|
47
|
+
hasChanged: (newValue, oldValue) => JSON.stringify(newValue) !== JSON.stringify(oldValue)
|
|
48
|
+
})
|
|
49
|
+
], exports.DaikinPanelSwitcher.prototype, "panels", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
decorators_js.property({ type: String, reflect: true, attribute: "panel-role" })
|
|
52
|
+
], exports.DaikinPanelSwitcher.prototype, "panelRole", 2);
|
|
53
|
+
exports.DaikinPanelSwitcher = __decorateClass([
|
|
54
|
+
decorators_js.customElement("daikin-panel-switcher")
|
|
55
|
+
], exports.DaikinPanelSwitcher);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { ARIARole } from '../../lit-analyzer-types';
|
|
3
|
+
/**
|
|
4
|
+
* The panel switcher component is a child element within the `daikin-tab-group` that controls the display of the content panels associated with each tab.
|
|
5
|
+
* When a user selects a tab, the panel switcher component ensures the corresponding content panel is shown while hiding the others.
|
|
6
|
+
*
|
|
7
|
+
* Hierarchy:
|
|
8
|
+
* - `daikin-tab-group` > `daikin-panel-switcher` ("panels" slot)
|
|
9
|
+
*
|
|
10
|
+
* @slot panel:\<name\> - A slot for each panel content.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* ```html
|
|
15
|
+
* <!-- Note that `panels` must be set via property. -->
|
|
16
|
+
* <daikin-panel-switcher
|
|
17
|
+
* class="block w-full h-full"
|
|
18
|
+
* .panels="${['foo', 'bar', 'baz']}"
|
|
19
|
+
* value="foo"
|
|
20
|
+
* panelRole="tabpanel"
|
|
21
|
+
* >
|
|
22
|
+
* <div slot="panel:foo">Foo Panel (visible)</div>
|
|
23
|
+
* <div slot="panel:bar">Bar Panel (hidden)</div>
|
|
24
|
+
* <div slot="panel:baz">Baz Panel (hidden)</div>
|
|
25
|
+
* </daikin-panel-switcher>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class DaikinPanelSwitcher extends LitElement {
|
|
29
|
+
static readonly styles: import('lit').CSSResult;
|
|
30
|
+
/**
|
|
31
|
+
* The panel to be displayed.
|
|
32
|
+
* Set automatically by `daikin-tab-group` if used within it.
|
|
33
|
+
*/
|
|
34
|
+
value: string;
|
|
35
|
+
/**
|
|
36
|
+
* Set automatically by `daikin-tab-group` if used within it.
|
|
37
|
+
*/
|
|
38
|
+
panels: string[];
|
|
39
|
+
/**
|
|
40
|
+
* `role` attribute of the container.
|
|
41
|
+
* Set to "tablist" automatically by `daikin-tab-group` if used within it.
|
|
42
|
+
*/
|
|
43
|
+
panelRole: ARIARole | null;
|
|
44
|
+
render(): unknown;
|
|
45
|
+
}
|
|
46
|
+
declare global {
|
|
47
|
+
interface HTMLElementTagNameMap {
|
|
48
|
+
"daikin-panel-switcher": DaikinPanelSwitcher;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinPanelSwitcher = require("./daikin-panel-switcher.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinPanelSwitcher", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinPanelSwitcher.DaikinPanelSwitcher
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-panel-switcher';
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const variables_js = require("@daikin-oss/dds-tokens/js/daikin/Light/variables.js");
|
|
4
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
5
|
+
const lit = require("lit");
|
|
6
|
+
const decorators_js = require("lit/decorators.js");
|
|
7
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13
|
+
if (decorator = decorators[i])
|
|
14
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
|
+
if (kind && result) __defProp(target, key, result);
|
|
16
|
+
return result;
|
|
17
|
+
};
|
|
18
|
+
const cvaBar = classVarianceAuthority.cva(
|
|
19
|
+
[
|
|
20
|
+
"w-full",
|
|
21
|
+
"h-1",
|
|
22
|
+
"bg-daikinNeutral-200",
|
|
23
|
+
"overflow-hidden",
|
|
24
|
+
"relative",
|
|
25
|
+
"after:block",
|
|
26
|
+
"after:h-full",
|
|
27
|
+
"after:absolute",
|
|
28
|
+
"after:left-0"
|
|
29
|
+
],
|
|
30
|
+
{
|
|
31
|
+
variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
inprogress: ["after:w-[--bar-width]", "after:bg-daikinBlue-500"],
|
|
34
|
+
completed: ["after:w-full", "after:bg-[--colorFeedbackPositive]"],
|
|
35
|
+
indeterminate: [
|
|
36
|
+
"after:w-1/2",
|
|
37
|
+
"after:bg-daikinBlue-500",
|
|
38
|
+
"after:animate-[progress-bar-indeterminate_1200ms_linear_infinite]"
|
|
39
|
+
],
|
|
40
|
+
error: ["after:w-full", "after:bg-[--colorFeedbackNegative]"]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
const cvaIcon = classVarianceAuthority.cva(["size-4"], {
|
|
46
|
+
variants: {
|
|
47
|
+
variant: {
|
|
48
|
+
inprogress: ["none"],
|
|
49
|
+
completed: ["i-daikin-status-positive"],
|
|
50
|
+
indeterminate: [],
|
|
51
|
+
error: ["i-daikin-status-negative"]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const cvaHelper = classVarianceAuthority.cva(["text-xs", "mt-2"], {
|
|
56
|
+
variants: {
|
|
57
|
+
variant: {
|
|
58
|
+
inprogress: [],
|
|
59
|
+
completed: [],
|
|
60
|
+
indeterminate: [],
|
|
61
|
+
error: ["text-[--colorFeedbackNegative]"]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
exports.DaikinProgressBar = class DaikinProgressBar extends lit.LitElement {
|
|
66
|
+
constructor() {
|
|
67
|
+
super(...arguments);
|
|
68
|
+
this.value = 0;
|
|
69
|
+
this.variant = "inprogress";
|
|
70
|
+
this.max = 100;
|
|
71
|
+
this.helper = "";
|
|
72
|
+
}
|
|
73
|
+
// Validate the 'value' and 'max' properties to ensure they are valid
|
|
74
|
+
_validateProperties() {
|
|
75
|
+
if (typeof this.value !== "number" || this.value < 0) {
|
|
76
|
+
this.value = 0;
|
|
77
|
+
}
|
|
78
|
+
if (typeof this.max !== "number" || this.max <= 0) {
|
|
79
|
+
this.max = 100;
|
|
80
|
+
}
|
|
81
|
+
if (this.value > this.max) {
|
|
82
|
+
this.value = this.max;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
const progressRatio = Math.min(Math.max(this.value / this.max, 0), 1);
|
|
87
|
+
return lit.html`<div class="flex flex-col w-full font-daikinSerif">
|
|
88
|
+
<div class="flex justify-between items-center mb-2.5">
|
|
89
|
+
<span class="text-sm leading-[22px] font-medium"><slot></slot></span>
|
|
90
|
+
<span class=${cvaIcon({ variant: this.variant })}></span>
|
|
91
|
+
</div>
|
|
92
|
+
<div
|
|
93
|
+
class=${cvaBar({ variant: this.variant })}
|
|
94
|
+
role="progressbar"
|
|
95
|
+
aria-label=${this.textContent ?? ""}
|
|
96
|
+
aria-valuenow=${this.value}
|
|
97
|
+
aria-valuemin="0"
|
|
98
|
+
aria-valuemax=${this.max}
|
|
99
|
+
style=${`--bar-width:${progressRatio * 100}%`}
|
|
100
|
+
></div>
|
|
101
|
+
${this.helper ? lit.html`<span class=${cvaHelper({ variant: this.variant })}
|
|
102
|
+
>${this.helper}</span
|
|
103
|
+
>` : null}
|
|
104
|
+
</div>`;
|
|
105
|
+
}
|
|
106
|
+
updated(changedProperties) {
|
|
107
|
+
if (changedProperties.has("value") || changedProperties.has("max")) {
|
|
108
|
+
this._validateProperties();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
exports.DaikinProgressBar.styles = lit.css`
|
|
113
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
114
|
+
|
|
115
|
+
:host {
|
|
116
|
+
--colorFeedbackPositive: ${lit.unsafeCSS(variables_js.colorFeedbackPositive)};
|
|
117
|
+
--colorFeedbackNegative: ${lit.unsafeCSS(variables_js.colorFeedbackNegative)};
|
|
118
|
+
|
|
119
|
+
display: block;
|
|
120
|
+
width: 100%;
|
|
121
|
+
}
|
|
122
|
+
`;
|
|
123
|
+
__decorateClass([
|
|
124
|
+
decorators_js.property({ type: Number })
|
|
125
|
+
], exports.DaikinProgressBar.prototype, "value", 2);
|
|
126
|
+
__decorateClass([
|
|
127
|
+
decorators_js.property({ type: String })
|
|
128
|
+
], exports.DaikinProgressBar.prototype, "variant", 2);
|
|
129
|
+
__decorateClass([
|
|
130
|
+
decorators_js.property({ type: Number })
|
|
131
|
+
], exports.DaikinProgressBar.prototype, "max", 2);
|
|
132
|
+
__decorateClass([
|
|
133
|
+
decorators_js.property({ type: String })
|
|
134
|
+
], exports.DaikinProgressBar.prototype, "helper", 2);
|
|
135
|
+
exports.DaikinProgressBar = __decorateClass([
|
|
136
|
+
decorators_js.customElement("daikin-progress-bar")
|
|
137
|
+
], exports.DaikinProgressBar);
|
|
@@ -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,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinProgressBar = require("./daikin-progress-bar.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinProgressBar", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinProgressBar.DaikinProgressBar
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-progress-bar';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
-
|
|
4
3
|
declare const cvaRadio: (props?: ({
|
|
5
4
|
size?: "small" | "large" | null | undefined;
|
|
6
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -9,7 +8,17 @@ declare const cvaLabel: (props?: ({
|
|
|
9
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
9
|
type RadioVariantProps = MergeVariantProps<typeof cvaRadio | typeof cvaLabel>;
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
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
|
+
* ```
|
|
13
22
|
*/
|
|
14
23
|
export declare class DaikinRadio extends LitElement {
|
|
15
24
|
static readonly styles: import('lit').CSSResult;
|