@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,18 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './accordion-item';
|
|
3
|
+
export * from './breadcrumb';
|
|
4
|
+
export * from './breadcrumb-item';
|
|
5
|
+
export * from './button';
|
|
6
|
+
export * from './checkbox';
|
|
7
|
+
export * from './icon';
|
|
8
|
+
export * from './input-group';
|
|
9
|
+
export * from './notification';
|
|
10
|
+
export * from './panel-switcher';
|
|
11
|
+
export * from './progress-bar';
|
|
12
|
+
export * from './radio';
|
|
13
|
+
export * from './tab';
|
|
14
|
+
export * from './tab-group';
|
|
15
|
+
export * from './text-input';
|
|
16
|
+
export * from './textarea';
|
|
17
|
+
export * from './toggle';
|
|
18
|
+
export * from './tooltip';
|
|
@@ -0,0 +1,119 @@
|
|
|
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 cvaLabel = classVarianceAuthority.cva(["text-base", "font-bold"], {
|
|
19
|
+
variants: {
|
|
20
|
+
variant: {
|
|
21
|
+
enabled: ["text-daikinNeutral-800"],
|
|
22
|
+
disabled: ["text-daikinNeutral-200"]
|
|
23
|
+
},
|
|
24
|
+
required: {
|
|
25
|
+
optional: [],
|
|
26
|
+
required: ["after:content-['*']", "after:ml-[2px]"]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const cvaHelper = classVarianceAuthority.cva(["h-[22px]", "text-xs"], {
|
|
31
|
+
variants: {
|
|
32
|
+
variant: {
|
|
33
|
+
enabled: ["text-daikinNeutral-800"],
|
|
34
|
+
disabled: ["text-daikinNeutral-200"]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
exports.DaikinInputGroup = class DaikinInputGroup extends lit.LitElement {
|
|
39
|
+
constructor() {
|
|
40
|
+
super(...arguments);
|
|
41
|
+
this.disabled = false;
|
|
42
|
+
this.required = false;
|
|
43
|
+
this.error = "";
|
|
44
|
+
this.textareaCounter = false;
|
|
45
|
+
}
|
|
46
|
+
_handleSlotChange() {
|
|
47
|
+
this._reflectSlotProperties();
|
|
48
|
+
}
|
|
49
|
+
_reflectSlotProperties() {
|
|
50
|
+
const isError = !this.disabled && !!this.error;
|
|
51
|
+
for (const control of this._controls) {
|
|
52
|
+
control.disabled = !!this.disabled;
|
|
53
|
+
control.error = isError;
|
|
54
|
+
}
|
|
55
|
+
for (const item of this._textareas) {
|
|
56
|
+
item.counter = this.textareaCounter;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
const inputGroupLabelClassName = cvaLabel({
|
|
61
|
+
variant: this.disabled ? "disabled" : "enabled",
|
|
62
|
+
required: this.required ? "required" : "optional"
|
|
63
|
+
});
|
|
64
|
+
const inputGroupHelperClassName = cvaHelper({
|
|
65
|
+
variant: this.disabled ? "disabled" : "enabled"
|
|
66
|
+
});
|
|
67
|
+
return lit.html`<fieldset class="content" ?disabled=${this.disabled}>
|
|
68
|
+
<label class="flex flex-col justify-center w-max gap-1 font-daikinSerif">
|
|
69
|
+
${this.label ? lit.html`<span class=${inputGroupLabelClassName}>${this.label}</span>` : null}
|
|
70
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
71
|
+
${this.helper && !this.error ? lit.html`<span class=${inputGroupHelperClassName}>${this.helper}</span>` : null}
|
|
72
|
+
${!this.disabled && !!this.error ? lit.html`<span
|
|
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
|
+
>${this.error}</span
|
|
75
|
+
>` : null}
|
|
76
|
+
</label>
|
|
77
|
+
</fieldset>`;
|
|
78
|
+
}
|
|
79
|
+
updated() {
|
|
80
|
+
this._reflectSlotProperties();
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
exports.DaikinInputGroup.styles = lit.css`
|
|
84
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
85
|
+
|
|
86
|
+
:host {
|
|
87
|
+
--input-group-border-color-error: ${lit.unsafeCSS(variables_js.colorFeedbackNegative)};
|
|
88
|
+
|
|
89
|
+
display: block;
|
|
90
|
+
width: max-content;
|
|
91
|
+
}
|
|
92
|
+
`;
|
|
93
|
+
__decorateClass([
|
|
94
|
+
decorators_js.property({ type: String })
|
|
95
|
+
], exports.DaikinInputGroup.prototype, "label", 2);
|
|
96
|
+
__decorateClass([
|
|
97
|
+
decorators_js.property({ type: String })
|
|
98
|
+
], exports.DaikinInputGroup.prototype, "helper", 2);
|
|
99
|
+
__decorateClass([
|
|
100
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
101
|
+
], exports.DaikinInputGroup.prototype, "disabled", 2);
|
|
102
|
+
__decorateClass([
|
|
103
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
104
|
+
], exports.DaikinInputGroup.prototype, "required", 2);
|
|
105
|
+
__decorateClass([
|
|
106
|
+
decorators_js.property({ type: String, reflect: true })
|
|
107
|
+
], exports.DaikinInputGroup.prototype, "error", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
110
|
+
], exports.DaikinInputGroup.prototype, "textareaCounter", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
decorators_js.queryAssignedElements({ selector: "daikin-textarea" })
|
|
113
|
+
], exports.DaikinInputGroup.prototype, "_textareas", 2);
|
|
114
|
+
__decorateClass([
|
|
115
|
+
decorators_js.queryAssignedElements({ selector: "daikin-text-input,daikin-textarea" })
|
|
116
|
+
], exports.DaikinInputGroup.prototype, "_controls", 2);
|
|
117
|
+
exports.DaikinInputGroup = __decorateClass([
|
|
118
|
+
decorators_js.customElement("daikin-input-group")
|
|
119
|
+
], exports.DaikinInputGroup);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { DaikinTextInput } from '../text-input/daikin-text-input';
|
|
3
|
+
import { DaikinTextarea } from '../textarea/daikin-textarea';
|
|
4
|
+
type ControlElement = DaikinTextInput | DaikinTextarea;
|
|
5
|
+
/**
|
|
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
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class DaikinInputGroup extends LitElement {
|
|
35
|
+
static readonly styles: import('lit').CSSResult;
|
|
36
|
+
/**
|
|
37
|
+
* Label text to place at the top of the field
|
|
38
|
+
*/
|
|
39
|
+
label?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Helper text to place at the bottom of the field. In error conditions, this text is hidden.
|
|
42
|
+
*/
|
|
43
|
+
helper?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the field is disabled. Reflected in the `disabled` property of the input in the slot.
|
|
46
|
+
*/
|
|
47
|
+
disabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the field is required. An additional star mark will be added if `true`.
|
|
50
|
+
*/
|
|
51
|
+
required: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Error text to place at the bottom of the field. If specified, sets the `error` property of the element in the slot to `true`. Ignored if the `disabled` is `true`.
|
|
54
|
+
*/
|
|
55
|
+
error: string;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to display the counter in the Textarea
|
|
58
|
+
*/
|
|
59
|
+
textareaCounter: boolean;
|
|
60
|
+
_textareas: DaikinTextarea[];
|
|
61
|
+
_controls: ControlElement[];
|
|
62
|
+
private _handleSlotChange;
|
|
63
|
+
private _reflectSlotProperties;
|
|
64
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
65
|
+
updated(): void;
|
|
66
|
+
}
|
|
67
|
+
declare global {
|
|
68
|
+
interface HTMLElementTagNameMap {
|
|
69
|
+
"daikin-input-group": DaikinInputGroup;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export default DaikinInputGroup;
|
|
@@ -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
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-input-group';
|
|
@@ -0,0 +1,191 @@
|
|
|
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 events = require("../../constants/events.cjs");
|
|
8
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
9
|
+
require("../icon/daikin-icon.cjs");
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators[i])
|
|
16
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
+
if (kind && result) __defProp(target, key, result);
|
|
18
|
+
return result;
|
|
19
|
+
};
|
|
20
|
+
const cvaContainer = classVarianceAuthority.cva(
|
|
21
|
+
["flex", "box-border", "bg-white", "overflow-hidden", "font-daikinSerif"],
|
|
22
|
+
{
|
|
23
|
+
variants: {
|
|
24
|
+
variant: {
|
|
25
|
+
toast: [
|
|
26
|
+
"border-2",
|
|
27
|
+
"border-solid",
|
|
28
|
+
"rounded-lg",
|
|
29
|
+
"shadow-notification"
|
|
30
|
+
],
|
|
31
|
+
inline: []
|
|
32
|
+
},
|
|
33
|
+
status: {
|
|
34
|
+
positive: ["border-[--colorFeedbackPositive]"],
|
|
35
|
+
negative: ["border-[--colorFeedbackNegative]"],
|
|
36
|
+
warning: ["border-[--colorFeedbackWarning]"],
|
|
37
|
+
alarm: ["border-[--colorFeedbackAlarm]"],
|
|
38
|
+
information: ["border-[--colorFeedbackInformation]"]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
variant: "toast",
|
|
43
|
+
status: "positive"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
const cvaIconContainer = classVarianceAuthority.cva(
|
|
48
|
+
["flex-none", "flex", "justify-center", "items-center", "w-[44px]"],
|
|
49
|
+
{
|
|
50
|
+
variants: {
|
|
51
|
+
status: {
|
|
52
|
+
positive: ["bg-[--colorFeedbackPositive]"],
|
|
53
|
+
negative: ["bg-[--colorFeedbackNegative]"],
|
|
54
|
+
warning: ["bg-[--colorFeedbackWarning]"],
|
|
55
|
+
alarm: ["bg-[--colorFeedbackAlarm]"],
|
|
56
|
+
information: ["bg-[--colorFeedbackInformation]"]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
status: "positive"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
const cvaContent = classVarianceAuthority.cva(
|
|
65
|
+
["flex", "justify-center", "gap-1", "w-fit", "flex-none"],
|
|
66
|
+
{
|
|
67
|
+
variants: {
|
|
68
|
+
line: {
|
|
69
|
+
single: ["items-center", "flex-row"],
|
|
70
|
+
multi: ["items-start", "flex-col"]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
defaultVariants: {
|
|
74
|
+
line: "single"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
|
|
79
|
+
constructor() {
|
|
80
|
+
super(...arguments);
|
|
81
|
+
this.title = "";
|
|
82
|
+
this.description = "";
|
|
83
|
+
this.variant = "toast";
|
|
84
|
+
this.status = "positive";
|
|
85
|
+
this.line = "single";
|
|
86
|
+
this.open = false;
|
|
87
|
+
this.closeButton = false;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Call the event registered in "close"
|
|
91
|
+
*/
|
|
92
|
+
_handleClickClose() {
|
|
93
|
+
const event = new CustomEvent(events.EVENT_CLOSE);
|
|
94
|
+
this.open = false;
|
|
95
|
+
this.dispatchEvent(event);
|
|
96
|
+
}
|
|
97
|
+
render() {
|
|
98
|
+
return this.open ? lit.html`<aside
|
|
99
|
+
class=${cvaContainer({
|
|
100
|
+
variant: this.variant,
|
|
101
|
+
status: this.status
|
|
102
|
+
})}
|
|
103
|
+
>
|
|
104
|
+
<div
|
|
105
|
+
class=${cvaIconContainer({
|
|
106
|
+
status: this.status
|
|
107
|
+
})}
|
|
108
|
+
>
|
|
109
|
+
<daikin-icon
|
|
110
|
+
icon=${this.status}
|
|
111
|
+
color="white"
|
|
112
|
+
size="xl"
|
|
113
|
+
></daikin-icon>
|
|
114
|
+
</div>
|
|
115
|
+
<div
|
|
116
|
+
class="flex justify-between items-center gap-5 p-5 flex-[1_0_auto]"
|
|
117
|
+
>
|
|
118
|
+
<div
|
|
119
|
+
class=${cvaContent({
|
|
120
|
+
line: this.line
|
|
121
|
+
})}
|
|
122
|
+
>
|
|
123
|
+
${this.title && lit.html`<header class="text-[18px] font-bold flex-none">
|
|
124
|
+
${this.title}
|
|
125
|
+
</header>`}
|
|
126
|
+
<p class="text-[18px] flex-none">${this.description}</p>
|
|
127
|
+
</div>
|
|
128
|
+
${this.closeButton ? lit.html`
|
|
129
|
+
<div class="flex items-center gap-5">
|
|
130
|
+
<button
|
|
131
|
+
aria-label="Close"
|
|
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>
|
|
141
|
+
</div>
|
|
142
|
+
` : null}
|
|
143
|
+
</div>
|
|
144
|
+
</aside>` : null;
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
exports.DaikinNotification.styles = lit.css`
|
|
148
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
149
|
+
|
|
150
|
+
:host {
|
|
151
|
+
--colorFeedbackPositive: ${lit.unsafeCSS(variables_js.colorFeedbackPositive)};
|
|
152
|
+
--colorFeedbackWarning: ${lit.unsafeCSS(variables_js.colorFeedbackWarning)};
|
|
153
|
+
--colorFeedbackNegative: ${lit.unsafeCSS(variables_js.colorFeedbackNegative)};
|
|
154
|
+
--colorFeedbackAlarm: #f68c54;
|
|
155
|
+
--colorFeedbackInformation: #0097e0;
|
|
156
|
+
|
|
157
|
+
display: block;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
:host([variant="toast"]) {
|
|
161
|
+
width: max-content;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:host([variant="inline"]) {
|
|
165
|
+
width: 100%;
|
|
166
|
+
}
|
|
167
|
+
`;
|
|
168
|
+
__decorateClass([
|
|
169
|
+
decorators_js.property({ type: String })
|
|
170
|
+
], exports.DaikinNotification.prototype, "title", 2);
|
|
171
|
+
__decorateClass([
|
|
172
|
+
decorators_js.property({ type: String })
|
|
173
|
+
], exports.DaikinNotification.prototype, "description", 2);
|
|
174
|
+
__decorateClass([
|
|
175
|
+
decorators_js.property({ type: String, reflect: true })
|
|
176
|
+
], exports.DaikinNotification.prototype, "variant", 2);
|
|
177
|
+
__decorateClass([
|
|
178
|
+
decorators_js.property({ type: String })
|
|
179
|
+
], exports.DaikinNotification.prototype, "status", 2);
|
|
180
|
+
__decorateClass([
|
|
181
|
+
decorators_js.property({ type: String })
|
|
182
|
+
], exports.DaikinNotification.prototype, "line", 2);
|
|
183
|
+
__decorateClass([
|
|
184
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
185
|
+
], exports.DaikinNotification.prototype, "open", 2);
|
|
186
|
+
__decorateClass([
|
|
187
|
+
decorators_js.property({ type: Boolean })
|
|
188
|
+
], exports.DaikinNotification.prototype, "closeButton", 2);
|
|
189
|
+
exports.DaikinNotification = __decorateClass([
|
|
190
|
+
decorators_js.customElement("daikin-notification")
|
|
191
|
+
], exports.DaikinNotification);
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
+
declare const cvaContainer: (props?: ({
|
|
4
|
+
variant?: "toast" | "inline" | null | undefined;
|
|
5
|
+
status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare const cvaIconContainer: (props?: ({
|
|
8
|
+
status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
declare const cvaContent: (props?: ({
|
|
11
|
+
line?: "single" | "multi" | null | undefined;
|
|
12
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
+
type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaIconContainer | typeof cvaContent>;
|
|
14
|
+
/**
|
|
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
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class DaikinNotification extends LitElement {
|
|
35
|
+
static readonly styles: import('lit').CSSResult;
|
|
36
|
+
/**
|
|
37
|
+
* Title text
|
|
38
|
+
*/
|
|
39
|
+
title: string;
|
|
40
|
+
/**
|
|
41
|
+
* Description text
|
|
42
|
+
*/
|
|
43
|
+
description: string;
|
|
44
|
+
/**
|
|
45
|
+
* Type of notification
|
|
46
|
+
*/
|
|
47
|
+
variant: NotificationVariantProps["variant"];
|
|
48
|
+
/**
|
|
49
|
+
* Status of notification
|
|
50
|
+
*/
|
|
51
|
+
status: NotificationVariantProps["status"];
|
|
52
|
+
/**
|
|
53
|
+
* Display in single or multiple lines
|
|
54
|
+
*/
|
|
55
|
+
line: NotificationVariantProps["line"];
|
|
56
|
+
/**
|
|
57
|
+
* Whether the component is open
|
|
58
|
+
*/
|
|
59
|
+
open: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to display the close button
|
|
62
|
+
*/
|
|
63
|
+
closeButton: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Call the event registered in "close"
|
|
66
|
+
*/
|
|
67
|
+
private _handleClickClose;
|
|
68
|
+
render(): import('lit-html').TemplateResult<1> | null;
|
|
69
|
+
}
|
|
70
|
+
declare global {
|
|
71
|
+
interface HTMLElementTagNameMap {
|
|
72
|
+
"daikin-notification": DaikinNotification;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export * from './daikin-notification';
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
{
|
|
26
|
+
if (!this.panels.includes(this.value)) {
|
|
27
|
+
console.warn(
|
|
28
|
+
`[daikin-panel-switcher] No panel slot named "panel:${this.value}". Nothing will be rendered.`
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return repeat_js.repeat(
|
|
33
|
+
this.panels,
|
|
34
|
+
(value) => lit.html`<div
|
|
35
|
+
class=${this.value === value ? "contents" : "hidden"}
|
|
36
|
+
role=${// HACK: Workaround lit-analyzer not recognizing `nothing` (runem/lit-analyzer#207).
|
|
37
|
+
this.panelRole ?? lit.nothing}
|
|
38
|
+
?hidden=${this.value !== value}
|
|
39
|
+
>
|
|
40
|
+
<slot name=${`panel:${value}`}></slot>
|
|
41
|
+
</div>`
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.DaikinPanelSwitcher.styles = lit.css`
|
|
46
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
47
|
+
`;
|
|
48
|
+
__decorateClass([
|
|
49
|
+
decorators_js.property({ type: String, reflect: true })
|
|
50
|
+
], exports.DaikinPanelSwitcher.prototype, "value", 2);
|
|
51
|
+
__decorateClass([
|
|
52
|
+
decorators_js.property({
|
|
53
|
+
type: Array,
|
|
54
|
+
hasChanged: (newValue, oldValue) => JSON.stringify(newValue) !== JSON.stringify(oldValue)
|
|
55
|
+
})
|
|
56
|
+
], exports.DaikinPanelSwitcher.prototype, "panels", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
decorators_js.property({ type: String, reflect: true, attribute: "panel-role" })
|
|
59
|
+
], exports.DaikinPanelSwitcher.prototype, "panelRole", 2);
|
|
60
|
+
exports.DaikinPanelSwitcher = __decorateClass([
|
|
61
|
+
decorators_js.customElement("daikin-panel-switcher")
|
|
62
|
+
], 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';
|