@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,29 @@
|
|
|
1
|
+
const icons = {
|
|
2
|
+
alarm: {
|
|
3
|
+
"class": "i-daikin-notification-status-alarm",
|
|
4
|
+
color: null
|
|
5
|
+
},
|
|
6
|
+
close: {
|
|
7
|
+
"class": "i-daikin-notification-close",
|
|
8
|
+
color: "#a0a0a0"
|
|
9
|
+
},
|
|
10
|
+
information: {
|
|
11
|
+
"class": "i-daikin-notification-status-information",
|
|
12
|
+
color: null
|
|
13
|
+
},
|
|
14
|
+
negative: {
|
|
15
|
+
"class": "i-daikin-notification-status-negative",
|
|
16
|
+
color: null
|
|
17
|
+
},
|
|
18
|
+
positive: {
|
|
19
|
+
"class": "i-daikin-notification-status-positive",
|
|
20
|
+
color: null
|
|
21
|
+
},
|
|
22
|
+
warning: {
|
|
23
|
+
"class": "i-daikin-notification-status-warning",
|
|
24
|
+
color: null
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
icons
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-icon';
|
|
@@ -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,39 @@
|
|
|
1
|
+
import { DaikinAccordion } from "./accordion/daikin-accordion.js";
|
|
2
|
+
import { DaikinAccordionItem } from "./accordion-item/daikin-accordion-item.js";
|
|
3
|
+
import { DaikinBreadcrumb } from "./breadcrumb/daikin-breadcrumb.js";
|
|
4
|
+
import { DaikinBreadcrumbItem } from "./breadcrumb-item/daikin-breadcrumb-item.js";
|
|
5
|
+
import { DaikinButton } from "./button/daikin-button.js";
|
|
6
|
+
import { DaikinCheckbox } from "./checkbox/daikin-checkbox.js";
|
|
7
|
+
import { DaikinIcon, iconList } from "./icon/daikin-icon.js";
|
|
8
|
+
import { DaikinInputGroup } from "./input-group/daikin-input-group.js";
|
|
9
|
+
import { DaikinNotification } from "./notification/daikin-notification.js";
|
|
10
|
+
import { DaikinPanelSwitcher } from "./panel-switcher/daikin-panel-switcher.js";
|
|
11
|
+
import { DaikinProgressBar } from "./progress-bar/daikin-progress-bar.js";
|
|
12
|
+
import { DaikinRadio } from "./radio/daikin-radio.js";
|
|
13
|
+
import { DaikinTab } from "./tab/daikin-tab.js";
|
|
14
|
+
import { DaikinTabGroup } from "./tab-group/daikin-tab-group.js";
|
|
15
|
+
import { DaikinTextInput } from "./text-input/daikin-text-input.js";
|
|
16
|
+
import { DaikinTextarea } from "./textarea/daikin-textarea.js";
|
|
17
|
+
import { DaikinToggle } from "./toggle/daikin-toggle.js";
|
|
18
|
+
import { DaikinTooltip } from "./tooltip/daikin-tooltip.js";
|
|
19
|
+
export {
|
|
20
|
+
DaikinAccordion,
|
|
21
|
+
DaikinAccordionItem,
|
|
22
|
+
DaikinBreadcrumb,
|
|
23
|
+
DaikinBreadcrumbItem,
|
|
24
|
+
DaikinButton,
|
|
25
|
+
DaikinCheckbox,
|
|
26
|
+
DaikinIcon,
|
|
27
|
+
DaikinInputGroup,
|
|
28
|
+
DaikinNotification,
|
|
29
|
+
DaikinPanelSwitcher,
|
|
30
|
+
DaikinProgressBar,
|
|
31
|
+
DaikinRadio,
|
|
32
|
+
DaikinTab,
|
|
33
|
+
DaikinTabGroup,
|
|
34
|
+
DaikinTextInput,
|
|
35
|
+
DaikinTextarea,
|
|
36
|
+
DaikinToggle,
|
|
37
|
+
DaikinTooltip,
|
|
38
|
+
iconList
|
|
39
|
+
};
|
|
@@ -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,120 @@
|
|
|
1
|
+
import { 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, queryAssignedElements, 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 cvaLabel = cva(["text-base", "font-bold"], {
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
enabled: ["text-daikinNeutral-800"],
|
|
20
|
+
disabled: ["text-daikinNeutral-200"]
|
|
21
|
+
},
|
|
22
|
+
required: {
|
|
23
|
+
optional: [],
|
|
24
|
+
required: ["after:content-['*']", "after:ml-[2px]"]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
const cvaHelper = cva(["h-[22px]", "text-xs"], {
|
|
29
|
+
variants: {
|
|
30
|
+
variant: {
|
|
31
|
+
enabled: ["text-daikinNeutral-800"],
|
|
32
|
+
disabled: ["text-daikinNeutral-200"]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
let DaikinInputGroup = class extends LitElement {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
this.disabled = false;
|
|
40
|
+
this.required = false;
|
|
41
|
+
this.error = "";
|
|
42
|
+
this.textareaCounter = false;
|
|
43
|
+
}
|
|
44
|
+
_handleSlotChange() {
|
|
45
|
+
this._reflectSlotProperties();
|
|
46
|
+
}
|
|
47
|
+
_reflectSlotProperties() {
|
|
48
|
+
const isError = !this.disabled && !!this.error;
|
|
49
|
+
for (const control of this._controls) {
|
|
50
|
+
control.disabled = !!this.disabled;
|
|
51
|
+
control.error = isError;
|
|
52
|
+
}
|
|
53
|
+
for (const item of this._textareas) {
|
|
54
|
+
item.counter = this.textareaCounter;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
const inputGroupLabelClassName = cvaLabel({
|
|
59
|
+
variant: this.disabled ? "disabled" : "enabled",
|
|
60
|
+
required: this.required ? "required" : "optional"
|
|
61
|
+
});
|
|
62
|
+
const inputGroupHelperClassName = cvaHelper({
|
|
63
|
+
variant: this.disabled ? "disabled" : "enabled"
|
|
64
|
+
});
|
|
65
|
+
return html`<fieldset class="content" ?disabled=${this.disabled}>
|
|
66
|
+
<label class="flex flex-col justify-center w-max gap-1 font-daikinSerif">
|
|
67
|
+
${this.label ? html`<span class=${inputGroupLabelClassName}>${this.label}</span>` : null}
|
|
68
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
69
|
+
${this.helper && !this.error ? html`<span class=${inputGroupHelperClassName}>${this.helper}</span>` : null}
|
|
70
|
+
${!this.disabled && !!this.error ? html`<span
|
|
71
|
+
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]"
|
|
72
|
+
>${this.error}</span
|
|
73
|
+
>` : null}
|
|
74
|
+
</label>
|
|
75
|
+
</fieldset>`;
|
|
76
|
+
}
|
|
77
|
+
updated() {
|
|
78
|
+
this._reflectSlotProperties();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
DaikinInputGroup.styles = css`
|
|
82
|
+
${unsafeCSS(tailwindStyles)}
|
|
83
|
+
|
|
84
|
+
:host {
|
|
85
|
+
--input-group-border-color-error: ${unsafeCSS(colorFeedbackNegative)};
|
|
86
|
+
|
|
87
|
+
display: block;
|
|
88
|
+
width: max-content;
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
91
|
+
__decorateClass([
|
|
92
|
+
property({ type: String })
|
|
93
|
+
], DaikinInputGroup.prototype, "label", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
property({ type: String })
|
|
96
|
+
], DaikinInputGroup.prototype, "helper", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
property({ type: Boolean, reflect: true })
|
|
99
|
+
], DaikinInputGroup.prototype, "disabled", 2);
|
|
100
|
+
__decorateClass([
|
|
101
|
+
property({ type: Boolean, reflect: true })
|
|
102
|
+
], DaikinInputGroup.prototype, "required", 2);
|
|
103
|
+
__decorateClass([
|
|
104
|
+
property({ type: String, reflect: true })
|
|
105
|
+
], DaikinInputGroup.prototype, "error", 2);
|
|
106
|
+
__decorateClass([
|
|
107
|
+
property({ type: Boolean, reflect: true })
|
|
108
|
+
], DaikinInputGroup.prototype, "textareaCounter", 2);
|
|
109
|
+
__decorateClass([
|
|
110
|
+
queryAssignedElements({ selector: "daikin-textarea" })
|
|
111
|
+
], DaikinInputGroup.prototype, "_textareas", 2);
|
|
112
|
+
__decorateClass([
|
|
113
|
+
queryAssignedElements({ selector: "daikin-text-input,daikin-textarea" })
|
|
114
|
+
], DaikinInputGroup.prototype, "_controls", 2);
|
|
115
|
+
DaikinInputGroup = __decorateClass([
|
|
116
|
+
customElement("daikin-input-group")
|
|
117
|
+
], DaikinInputGroup);
|
|
118
|
+
export {
|
|
119
|
+
DaikinInputGroup
|
|
120
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-input-group';
|
|
@@ -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,192 @@
|
|
|
1
|
+
import { colorFeedbackPositive, colorFeedbackWarning, 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 { EVENT_CLOSE } from "../../constants/events.js";
|
|
6
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
7
|
+
import "../icon/daikin-icon.js";
|
|
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 cvaContainer = cva(
|
|
19
|
+
["flex", "box-border", "bg-white", "overflow-hidden", "font-daikinSerif"],
|
|
20
|
+
{
|
|
21
|
+
variants: {
|
|
22
|
+
variant: {
|
|
23
|
+
toast: [
|
|
24
|
+
"border-2",
|
|
25
|
+
"border-solid",
|
|
26
|
+
"rounded-lg",
|
|
27
|
+
"shadow-notification"
|
|
28
|
+
],
|
|
29
|
+
inline: []
|
|
30
|
+
},
|
|
31
|
+
status: {
|
|
32
|
+
positive: ["border-[--colorFeedbackPositive]"],
|
|
33
|
+
negative: ["border-[--colorFeedbackNegative]"],
|
|
34
|
+
warning: ["border-[--colorFeedbackWarning]"],
|
|
35
|
+
alarm: ["border-[--colorFeedbackAlarm]"],
|
|
36
|
+
information: ["border-[--colorFeedbackInformation]"]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
variant: "toast",
|
|
41
|
+
status: "positive"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
const cvaIconContainer = cva(
|
|
46
|
+
["flex-none", "flex", "justify-center", "items-center", "w-[44px]"],
|
|
47
|
+
{
|
|
48
|
+
variants: {
|
|
49
|
+
status: {
|
|
50
|
+
positive: ["bg-[--colorFeedbackPositive]"],
|
|
51
|
+
negative: ["bg-[--colorFeedbackNegative]"],
|
|
52
|
+
warning: ["bg-[--colorFeedbackWarning]"],
|
|
53
|
+
alarm: ["bg-[--colorFeedbackAlarm]"],
|
|
54
|
+
information: ["bg-[--colorFeedbackInformation]"]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
defaultVariants: {
|
|
58
|
+
status: "positive"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
const cvaContent = cva(
|
|
63
|
+
["flex", "justify-center", "gap-1", "w-fit", "flex-none"],
|
|
64
|
+
{
|
|
65
|
+
variants: {
|
|
66
|
+
line: {
|
|
67
|
+
single: ["items-center", "flex-row"],
|
|
68
|
+
multi: ["items-start", "flex-col"]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
defaultVariants: {
|
|
72
|
+
line: "single"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
let DaikinNotification = class extends LitElement {
|
|
77
|
+
constructor() {
|
|
78
|
+
super(...arguments);
|
|
79
|
+
this.title = "";
|
|
80
|
+
this.description = "";
|
|
81
|
+
this.variant = "toast";
|
|
82
|
+
this.status = "positive";
|
|
83
|
+
this.line = "single";
|
|
84
|
+
this.open = false;
|
|
85
|
+
this.closeButton = false;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Call the event registered in "close"
|
|
89
|
+
*/
|
|
90
|
+
_handleClickClose() {
|
|
91
|
+
const event = new CustomEvent(EVENT_CLOSE);
|
|
92
|
+
this.open = false;
|
|
93
|
+
this.dispatchEvent(event);
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
return this.open ? html`<aside
|
|
97
|
+
class=${cvaContainer({
|
|
98
|
+
variant: this.variant,
|
|
99
|
+
status: this.status
|
|
100
|
+
})}
|
|
101
|
+
>
|
|
102
|
+
<div
|
|
103
|
+
class=${cvaIconContainer({
|
|
104
|
+
status: this.status
|
|
105
|
+
})}
|
|
106
|
+
>
|
|
107
|
+
<daikin-icon
|
|
108
|
+
icon=${this.status}
|
|
109
|
+
color="white"
|
|
110
|
+
size="xl"
|
|
111
|
+
></daikin-icon>
|
|
112
|
+
</div>
|
|
113
|
+
<div
|
|
114
|
+
class="flex justify-between items-center gap-5 p-5 flex-[1_0_auto]"
|
|
115
|
+
>
|
|
116
|
+
<div
|
|
117
|
+
class=${cvaContent({
|
|
118
|
+
line: this.line
|
|
119
|
+
})}
|
|
120
|
+
>
|
|
121
|
+
${this.title && html`<header class="text-[18px] font-bold flex-none">
|
|
122
|
+
${this.title}
|
|
123
|
+
</header>`}
|
|
124
|
+
<p class="text-[18px] flex-none">${this.description}</p>
|
|
125
|
+
</div>
|
|
126
|
+
${this.closeButton ? html`
|
|
127
|
+
<div class="flex items-center gap-5">
|
|
128
|
+
<button
|
|
129
|
+
aria-label="Close"
|
|
130
|
+
class="relative flex w-5 h-5"
|
|
131
|
+
@click=${this._handleClickClose}
|
|
132
|
+
>
|
|
133
|
+
<daikin-icon
|
|
134
|
+
icon="close"
|
|
135
|
+
size="l"
|
|
136
|
+
color="default"
|
|
137
|
+
></daikin-icon>
|
|
138
|
+
</button>
|
|
139
|
+
</div>
|
|
140
|
+
` : null}
|
|
141
|
+
</div>
|
|
142
|
+
</aside>` : null;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
DaikinNotification.styles = css`
|
|
146
|
+
${unsafeCSS(tailwindStyles)}
|
|
147
|
+
|
|
148
|
+
:host {
|
|
149
|
+
--colorFeedbackPositive: ${unsafeCSS(colorFeedbackPositive)};
|
|
150
|
+
--colorFeedbackWarning: ${unsafeCSS(colorFeedbackWarning)};
|
|
151
|
+
--colorFeedbackNegative: ${unsafeCSS(colorFeedbackNegative)};
|
|
152
|
+
--colorFeedbackAlarm: #f68c54;
|
|
153
|
+
--colorFeedbackInformation: #0097e0;
|
|
154
|
+
|
|
155
|
+
display: block;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
:host([variant="toast"]) {
|
|
159
|
+
width: max-content;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
:host([variant="inline"]) {
|
|
163
|
+
width: 100%;
|
|
164
|
+
}
|
|
165
|
+
`;
|
|
166
|
+
__decorateClass([
|
|
167
|
+
property({ type: String })
|
|
168
|
+
], DaikinNotification.prototype, "title", 2);
|
|
169
|
+
__decorateClass([
|
|
170
|
+
property({ type: String })
|
|
171
|
+
], DaikinNotification.prototype, "description", 2);
|
|
172
|
+
__decorateClass([
|
|
173
|
+
property({ type: String, reflect: true })
|
|
174
|
+
], DaikinNotification.prototype, "variant", 2);
|
|
175
|
+
__decorateClass([
|
|
176
|
+
property({ type: String })
|
|
177
|
+
], DaikinNotification.prototype, "status", 2);
|
|
178
|
+
__decorateClass([
|
|
179
|
+
property({ type: String })
|
|
180
|
+
], DaikinNotification.prototype, "line", 2);
|
|
181
|
+
__decorateClass([
|
|
182
|
+
property({ type: Boolean, reflect: true })
|
|
183
|
+
], DaikinNotification.prototype, "open", 2);
|
|
184
|
+
__decorateClass([
|
|
185
|
+
property({ type: Boolean })
|
|
186
|
+
], DaikinNotification.prototype, "closeButton", 2);
|
|
187
|
+
DaikinNotification = __decorateClass([
|
|
188
|
+
customElement("daikin-notification")
|
|
189
|
+
], DaikinNotification);
|
|
190
|
+
export {
|
|
191
|
+
DaikinNotification
|
|
192
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-notification';
|
|
@@ -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
|
+
}
|