@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,76 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { ARIARole } from '../../lit-analyzer-types';
|
|
3
|
+
import { MergeVariantProps } from '../../type-utils';
|
|
4
|
+
import { IconType } from '../icon/daikin-icon';
|
|
5
|
+
declare const cvaButton: (props?: ({
|
|
6
|
+
intent?: "primary" | "secondary" | "tertiary" | "primaryDanger" | null | undefined;
|
|
7
|
+
size?: "default" | "condensed" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
type ButtonVariantProps = MergeVariantProps<typeof cvaButton>;
|
|
10
|
+
/**
|
|
11
|
+
* The button component is a versatile UI element that triggers actions or submits forms when clicked.
|
|
12
|
+
* It functions similarly to the HTML `<button>` tag, allowing users to initiate various operations such as submitting data, opening dialogs, or navigating to different sections of an application.
|
|
13
|
+
*
|
|
14
|
+
* @fires click - A retargeted event of a [click event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) emitted from the inner `<button>` element. Suppressed if `disabled` is true,
|
|
15
|
+
*
|
|
16
|
+
* @slot - A slot for the button content.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
*
|
|
20
|
+
* ```html
|
|
21
|
+
* <daikin-button>
|
|
22
|
+
* Button label
|
|
23
|
+
* </daikin-button>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class DaikinButton extends LitElement {
|
|
27
|
+
static readonly styles: import('lit').CSSResult;
|
|
28
|
+
/**
|
|
29
|
+
* Type of variant.
|
|
30
|
+
*/
|
|
31
|
+
variant: ButtonVariantProps["intent"];
|
|
32
|
+
/**
|
|
33
|
+
* `true` if the button should be disabled.
|
|
34
|
+
*/
|
|
35
|
+
disabled: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Set a icon in the right of button label.
|
|
38
|
+
*/
|
|
39
|
+
rightIcon: IconType | null;
|
|
40
|
+
/**
|
|
41
|
+
* Set a icon in the left of button label.
|
|
42
|
+
*/
|
|
43
|
+
leftIcon: IconType | null;
|
|
44
|
+
/**
|
|
45
|
+
* Link `href`. If present, this button is rendered as `<a>`.
|
|
46
|
+
*/
|
|
47
|
+
href: string;
|
|
48
|
+
/**
|
|
49
|
+
* Specify the button size.
|
|
50
|
+
*/
|
|
51
|
+
size: ButtonVariantProps["size"];
|
|
52
|
+
/**
|
|
53
|
+
* Specify the button type.
|
|
54
|
+
*/
|
|
55
|
+
type: "button" | "submit" | "reset";
|
|
56
|
+
/**
|
|
57
|
+
* Specify the button role.
|
|
58
|
+
*/
|
|
59
|
+
role: ARIARole;
|
|
60
|
+
/**
|
|
61
|
+
* Specify whether the button is loading.
|
|
62
|
+
*/
|
|
63
|
+
isLoading: boolean;
|
|
64
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
65
|
+
/**
|
|
66
|
+
* Focuses on the inner button.
|
|
67
|
+
* @param options focus options
|
|
68
|
+
*/
|
|
69
|
+
focus(options?: FocusOptions | undefined): void;
|
|
70
|
+
}
|
|
71
|
+
declare global {
|
|
72
|
+
interface HTMLElementTagNameMap {
|
|
73
|
+
"daikin-button": DaikinButton;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-button';
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
4
|
+
const lit = require("lit");
|
|
5
|
+
const decorators_js = require("lit/decorators.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
|
+
const cvaCheckbox = classVarianceAuthority.cva(
|
|
18
|
+
[
|
|
19
|
+
"appearance-none",
|
|
20
|
+
"inline-block",
|
|
21
|
+
"relative",
|
|
22
|
+
"rounded-sm",
|
|
23
|
+
"border-solid",
|
|
24
|
+
"border-2",
|
|
25
|
+
"after:absolute",
|
|
26
|
+
"after:text-white",
|
|
27
|
+
"checked:after:i-daikin-checkbox-checked",
|
|
28
|
+
"indeterminate:after:i-daikin-checkbox-indeterminate",
|
|
29
|
+
"focus-visible:outline-none",
|
|
30
|
+
"border-daikinNeutral-400",
|
|
31
|
+
"enabled:indeterminate:border-daikinBlue-600",
|
|
32
|
+
"enabled:indeterminate:bg-daikinBlue-600",
|
|
33
|
+
"enabled:checked:border-daikinBlue-600",
|
|
34
|
+
"enabled:checked:bg-daikinBlue-600",
|
|
35
|
+
"aria-controllable:focus-visible:border-daikinBlue-700",
|
|
36
|
+
"aria-controllable:hover:border-daikinBlue-300",
|
|
37
|
+
"aria-controllable:active:border-daikinBlue-600",
|
|
38
|
+
"aria-controllable:checked:focus-visible:border-daikinBlue-700",
|
|
39
|
+
"aria-controllable:checked:focus-visible:border-daikinBlue-700",
|
|
40
|
+
"aria-controllable:checked:focus-visible:bg-daikinBlue-700",
|
|
41
|
+
"aria-controllable:checked:focus-visible:bg-daikinBlue-700",
|
|
42
|
+
"aria-controllable:checked:hover:border-daikinBlue-300",
|
|
43
|
+
"aria-controllable:checked:hover:bg-daikinBlue-300",
|
|
44
|
+
"aria-controllable:checked:active:border-daikinBlue-600",
|
|
45
|
+
"aria-controllable:checked:active:bg-daikinBlue-600",
|
|
46
|
+
"aria-controllable:indeterminate:active:border-daikinBlue-600",
|
|
47
|
+
"aria-controllable:indeterminate:active:bg-daikinBlue-600",
|
|
48
|
+
"aria-controllable:indeterminate:hover:border-daikinBlue-300",
|
|
49
|
+
"aria-controllable:indeterminate:hover:bg-daikinBlue-300",
|
|
50
|
+
"aria-controllable:indeterminate:focus-visible:border-daikinBlue-700",
|
|
51
|
+
"aria-controllable:indeterminate:focus-visible:bg-daikinBlue-700",
|
|
52
|
+
"disabled:border-daikinNeutral-200",
|
|
53
|
+
"disabled:bg-white",
|
|
54
|
+
"disabled:indeterminate:bg-daikinNeutral-200",
|
|
55
|
+
"disabled:checked:bg-daikinNeutral-200"
|
|
56
|
+
],
|
|
57
|
+
{
|
|
58
|
+
variants: {
|
|
59
|
+
size: {
|
|
60
|
+
small: ["w-[18px]", "h-[18px]"],
|
|
61
|
+
large: ["w-5", "h-5"]
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
const cvaLabel = classVarianceAuthority.cva(
|
|
67
|
+
["leading-8", "not-italic", "font-normal", "align-middle"],
|
|
68
|
+
{
|
|
69
|
+
variants: {
|
|
70
|
+
size: {
|
|
71
|
+
small: ["text-sm"],
|
|
72
|
+
large: ["text-base"]
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
defaultVariants: {
|
|
76
|
+
size: "small"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
exports.DaikinCheckbox = class DaikinCheckbox extends lit.LitElement {
|
|
81
|
+
constructor() {
|
|
82
|
+
super(...arguments);
|
|
83
|
+
this._internals = this.attachInternals();
|
|
84
|
+
this.label = "";
|
|
85
|
+
this.size = "small";
|
|
86
|
+
this.labelPosition = "right";
|
|
87
|
+
this.disabled = false;
|
|
88
|
+
this.readonly = false;
|
|
89
|
+
this.checkState = "unchecked";
|
|
90
|
+
this.name = "";
|
|
91
|
+
this.value = "";
|
|
92
|
+
this.error = false;
|
|
93
|
+
}
|
|
94
|
+
_handleClick(event) {
|
|
95
|
+
if (this.readonly || this.disabled) {
|
|
96
|
+
event.preventDefault();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
_updateFormValue() {
|
|
100
|
+
this._internals.setFormValue(this.checked ? this.value : null);
|
|
101
|
+
}
|
|
102
|
+
get checked() {
|
|
103
|
+
return this.checkState === "checked";
|
|
104
|
+
}
|
|
105
|
+
_handleChange(event) {
|
|
106
|
+
if (!this._input) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.checkState = this._input.checked ? "checked" : "unchecked";
|
|
110
|
+
this._updateFormValue();
|
|
111
|
+
this.dispatchEvent(new Event("change", event));
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
const checkboxClassName = cvaCheckbox({ size: this.size });
|
|
115
|
+
const labelClassName = cvaLabel({ size: this.size });
|
|
116
|
+
const isIndeterminate = this.checkState === "indeterminate";
|
|
117
|
+
const labelText = this.label ? lit.html`<span class=${labelClassName}>${this.label}</span>` : lit.html``;
|
|
118
|
+
const inputTag = lit.html`<input
|
|
119
|
+
class=${checkboxClassName}
|
|
120
|
+
type="checkbox"
|
|
121
|
+
name=${this.name}
|
|
122
|
+
value=${this.value}
|
|
123
|
+
aria-readonly=${this.readonly}
|
|
124
|
+
.indeterminate=${isIndeterminate}
|
|
125
|
+
.checked=${this.checked}
|
|
126
|
+
?readonly=${this.readonly}
|
|
127
|
+
?disabled=${this.disabled}
|
|
128
|
+
@change=${this._handleChange}
|
|
129
|
+
@click=${this._handleClick}
|
|
130
|
+
/>`;
|
|
131
|
+
const content = this.labelPosition === "left" ? lit.html`${labelText}${inputTag}` : lit.html`${inputTag}${labelText}`;
|
|
132
|
+
return lit.html`<label
|
|
133
|
+
class="inline-flex gap-[10px] items-center font-daikinSerif"
|
|
134
|
+
>${content}</label
|
|
135
|
+
>`;
|
|
136
|
+
}
|
|
137
|
+
updated(changedProperties) {
|
|
138
|
+
if (changedProperties.has("checkState")) {
|
|
139
|
+
this._updateFormValue();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
exports.DaikinCheckbox.styles = lit.css`
|
|
144
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
145
|
+
|
|
146
|
+
:host {
|
|
147
|
+
display: inline-block;
|
|
148
|
+
}
|
|
149
|
+
`;
|
|
150
|
+
exports.DaikinCheckbox.formAssociated = true;
|
|
151
|
+
__decorateClass([
|
|
152
|
+
decorators_js.query("input")
|
|
153
|
+
], exports.DaikinCheckbox.prototype, "_input", 2);
|
|
154
|
+
__decorateClass([
|
|
155
|
+
decorators_js.property({ type: String })
|
|
156
|
+
], exports.DaikinCheckbox.prototype, "label", 2);
|
|
157
|
+
__decorateClass([
|
|
158
|
+
decorators_js.property({ type: String })
|
|
159
|
+
], exports.DaikinCheckbox.prototype, "size", 2);
|
|
160
|
+
__decorateClass([
|
|
161
|
+
decorators_js.property({ type: String, attribute: "label-position" })
|
|
162
|
+
], exports.DaikinCheckbox.prototype, "labelPosition", 2);
|
|
163
|
+
__decorateClass([
|
|
164
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
165
|
+
], exports.DaikinCheckbox.prototype, "disabled", 2);
|
|
166
|
+
__decorateClass([
|
|
167
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
168
|
+
], exports.DaikinCheckbox.prototype, "readonly", 2);
|
|
169
|
+
__decorateClass([
|
|
170
|
+
decorators_js.property({ type: String, reflect: true, attribute: "check-state" })
|
|
171
|
+
], exports.DaikinCheckbox.prototype, "checkState", 2);
|
|
172
|
+
__decorateClass([
|
|
173
|
+
decorators_js.property({ type: String, reflect: true })
|
|
174
|
+
], exports.DaikinCheckbox.prototype, "name", 2);
|
|
175
|
+
__decorateClass([
|
|
176
|
+
decorators_js.property({ type: String, reflect: true })
|
|
177
|
+
], exports.DaikinCheckbox.prototype, "value", 2);
|
|
178
|
+
__decorateClass([
|
|
179
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
180
|
+
], exports.DaikinCheckbox.prototype, "error", 2);
|
|
181
|
+
exports.DaikinCheckbox = __decorateClass([
|
|
182
|
+
decorators_js.customElement("daikin-checkbox")
|
|
183
|
+
], exports.DaikinCheckbox);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
+
declare const cvaCheckbox: (props?: ({
|
|
4
|
+
size?: "small" | "large" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare const cvaLabel: (props?: ({
|
|
7
|
+
size?: "small" | "large" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
type CheckboxVariantProps = MergeVariantProps<typeof cvaCheckbox | typeof cvaLabel>;
|
|
10
|
+
/**
|
|
11
|
+
* The checkbox component is a UI element that allows users to select one or more options from a list of choices.
|
|
12
|
+
* It functions similarly to the HTML `<input type="checkbox">` tag, enabling users to toggle the selection of each option independently.
|
|
13
|
+
* This component is ideal for cases where multiple selections are allowed or required.
|
|
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="checkbox">` element.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* ```html
|
|
20
|
+
* <daikin-checkbox label="Checkbox label" name="name" value="value"></daikin-checkbox>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class DaikinCheckbox extends LitElement {
|
|
24
|
+
static readonly styles: import('lit').CSSResult;
|
|
25
|
+
private _handleClick;
|
|
26
|
+
static readonly formAssociated = true;
|
|
27
|
+
private _internals;
|
|
28
|
+
private _updateFormValue;
|
|
29
|
+
private _input;
|
|
30
|
+
get checked(): boolean;
|
|
31
|
+
private _handleChange;
|
|
32
|
+
/**
|
|
33
|
+
* Specify the label text for check box
|
|
34
|
+
*/
|
|
35
|
+
label: string;
|
|
36
|
+
/**
|
|
37
|
+
* Specify the component size
|
|
38
|
+
*/
|
|
39
|
+
size: CheckboxVariantProps["size"];
|
|
40
|
+
/**
|
|
41
|
+
* Specify the label position
|
|
42
|
+
* when `left` the label will be in left of checkbox, when `right` label will be in right of checkbox
|
|
43
|
+
*/
|
|
44
|
+
labelPosition: "left" | "right";
|
|
45
|
+
/**
|
|
46
|
+
* Specify whether the Checkbox should be disabled
|
|
47
|
+
*/
|
|
48
|
+
disabled: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Specify whether the checkbox is read only
|
|
51
|
+
*/
|
|
52
|
+
readonly: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Specify whether the checkbox is be checked
|
|
55
|
+
*/
|
|
56
|
+
checkState: "unchecked" | "indeterminate" | "checked";
|
|
57
|
+
/**
|
|
58
|
+
* The form name.
|
|
59
|
+
*/
|
|
60
|
+
name: string;
|
|
61
|
+
/**
|
|
62
|
+
* The value.
|
|
63
|
+
*/
|
|
64
|
+
value: string;
|
|
65
|
+
/**
|
|
66
|
+
* Specify whether the Checkbox is in a error state
|
|
67
|
+
*/
|
|
68
|
+
error: boolean;
|
|
69
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
70
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
71
|
+
}
|
|
72
|
+
declare global {
|
|
73
|
+
interface HTMLElementTagNameMap {
|
|
74
|
+
"daikin-checkbox": DaikinCheckbox;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinCheckbox = require("./daikin-checkbox.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinCheckbox", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinCheckbox.DaikinCheckbox
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-checkbox';
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
const icons = require("./icons.json.cjs");
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
+
if (decorator = decorators[i])
|
|
15
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
+
if (kind && result) __defProp(target, key, result);
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
19
|
+
const iconList = Object.keys(icons.icons);
|
|
20
|
+
const iconClassMap = Object.fromEntries(
|
|
21
|
+
Object.entries(icons.icons).map(([name, object]) => [name, object.class])
|
|
22
|
+
);
|
|
23
|
+
const cvaIcon = classVarianceAuthority.cva(["block"], {
|
|
24
|
+
variants: {
|
|
25
|
+
icon: iconClassMap,
|
|
26
|
+
size: {
|
|
27
|
+
s: [`w-[--size-s]`, `h-[--size-s]`],
|
|
28
|
+
m: [`w-[--size-m]`, `h-[--size-m]`],
|
|
29
|
+
l: [`w-[--size-l]`, `h-[--size-l]`],
|
|
30
|
+
xl: [`w-[--size-xl]`, `h-[--size-xl]`]
|
|
31
|
+
},
|
|
32
|
+
color: {
|
|
33
|
+
black: ["text-black"],
|
|
34
|
+
white: ["text-white"],
|
|
35
|
+
default: ["text-[--default-color]"],
|
|
36
|
+
current: []
|
|
37
|
+
// uses `currentColor`
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
exports.DaikinIcon = class DaikinIcon extends lit.LitElement {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments);
|
|
44
|
+
this.icon = null;
|
|
45
|
+
this.color = "default";
|
|
46
|
+
this.size = "m";
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
var _a;
|
|
50
|
+
const defaultColor = (_a = icons.icons[this.icon ?? ""]) == null ? void 0 : _a.color;
|
|
51
|
+
{
|
|
52
|
+
if (!this.icon) {
|
|
53
|
+
console.warn("icon property is not specified");
|
|
54
|
+
} else if (!(this.icon in icons.icons)) {
|
|
55
|
+
console.warn(`There is no icon named "${this.icon}".`);
|
|
56
|
+
} else if (this.color === "default" && !defaultColor) {
|
|
57
|
+
console.warn(`The icon "${this.icon}" does not have a default color.`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return lit.html`<span
|
|
61
|
+
class=${cvaIcon({
|
|
62
|
+
icon: this.icon,
|
|
63
|
+
color: this.color,
|
|
64
|
+
size: this.size
|
|
65
|
+
})}
|
|
66
|
+
style=${`--default-color:${defaultColor ?? "#000000"}`}
|
|
67
|
+
role="presentation"
|
|
68
|
+
></span>`;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
exports.DaikinIcon.styles = lit.css`
|
|
72
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
73
|
+
|
|
74
|
+
:host {
|
|
75
|
+
--size-s: ${lit.unsafeCSS(variables_js.space12)};
|
|
76
|
+
--size-m: ${lit.unsafeCSS(variables_js.space16)};
|
|
77
|
+
--size-l: ${lit.unsafeCSS(variables_js.space20)};
|
|
78
|
+
--size-xl: ${lit.unsafeCSS(variables_js.space24)};
|
|
79
|
+
|
|
80
|
+
display: block;
|
|
81
|
+
width: max-content;
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
__decorateClass([
|
|
85
|
+
decorators_js.property({ type: String, reflect: true })
|
|
86
|
+
], exports.DaikinIcon.prototype, "icon", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
decorators_js.property({ type: String, reflect: true })
|
|
89
|
+
], exports.DaikinIcon.prototype, "color", 2);
|
|
90
|
+
__decorateClass([
|
|
91
|
+
decorators_js.property({ type: String, reflect: true })
|
|
92
|
+
], exports.DaikinIcon.prototype, "size", 2);
|
|
93
|
+
exports.DaikinIcon = __decorateClass([
|
|
94
|
+
decorators_js.customElement("daikin-icon")
|
|
95
|
+
], exports.DaikinIcon);
|
|
96
|
+
exports.iconList = iconList;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
+
import { icons } from './icons.json';
|
|
4
|
+
export declare const iconList: string[];
|
|
5
|
+
export type IconType = keyof typeof icons;
|
|
6
|
+
declare const cvaIcon: (props?: ({
|
|
7
|
+
icon?: string | number | null | undefined;
|
|
8
|
+
size?: "s" | "m" | "l" | "xl" | null | undefined;
|
|
9
|
+
color?: "black" | "white" | "default" | "current" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
+
export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
|
|
12
|
+
/**
|
|
13
|
+
* The icon component is a versatile UI element used to display small graphical symbols or images that represent actions, objects, or concepts within an application.
|
|
14
|
+
* The icon set is provided by DDS.
|
|
15
|
+
*
|
|
16
|
+
* To use an arbitrary color, specify `"current"` for the `color` property and set the `color` CSS property to the color you want to use.
|
|
17
|
+
*
|
|
18
|
+
* If you try to use an icon that does not exist, a blank space will be displayed.
|
|
19
|
+
* In the development build, warnings will be displayed in the console, so please check there if you encounter any unexpected behavior.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
*
|
|
23
|
+
* ```html
|
|
24
|
+
* <daikin-icon icon="information" color="black" size="m"></daikin-icon>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class DaikinIcon extends LitElement {
|
|
28
|
+
static readonly styles: import('lit').CSSResult;
|
|
29
|
+
/**
|
|
30
|
+
* Specify the name of the icon
|
|
31
|
+
*/
|
|
32
|
+
icon: IconType | null;
|
|
33
|
+
/**
|
|
34
|
+
* Specify icon color
|
|
35
|
+
*/
|
|
36
|
+
color: IconVariantProps["color"];
|
|
37
|
+
/**
|
|
38
|
+
* Specify the height and width of the icon
|
|
39
|
+
*/
|
|
40
|
+
size: IconVariantProps["size"];
|
|
41
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
42
|
+
}
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
"daikin-icon": DaikinIcon;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export default DaikinIcon;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const icons = {
|
|
4
|
+
alarm: {
|
|
5
|
+
"class": "i-daikin-notification-status-alarm",
|
|
6
|
+
color: null
|
|
7
|
+
},
|
|
8
|
+
close: {
|
|
9
|
+
"class": "i-daikin-notification-close",
|
|
10
|
+
color: "#a0a0a0"
|
|
11
|
+
},
|
|
12
|
+
information: {
|
|
13
|
+
"class": "i-daikin-notification-status-information",
|
|
14
|
+
color: null
|
|
15
|
+
},
|
|
16
|
+
negative: {
|
|
17
|
+
"class": "i-daikin-notification-status-negative",
|
|
18
|
+
color: null
|
|
19
|
+
},
|
|
20
|
+
positive: {
|
|
21
|
+
"class": "i-daikin-notification-status-positive",
|
|
22
|
+
color: null
|
|
23
|
+
},
|
|
24
|
+
warning: {
|
|
25
|
+
"class": "i-daikin-notification-status-warning",
|
|
26
|
+
color: null
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.icons = icons;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"icons": {
|
|
3
|
+
"alarm": {
|
|
4
|
+
"class": "i-daikin-notification-status-alarm",
|
|
5
|
+
"color": null
|
|
6
|
+
},
|
|
7
|
+
"close": {
|
|
8
|
+
"class": "i-daikin-notification-close",
|
|
9
|
+
"color": "#a0a0a0"
|
|
10
|
+
},
|
|
11
|
+
"information": {
|
|
12
|
+
"class": "i-daikin-notification-status-information",
|
|
13
|
+
"color": null
|
|
14
|
+
},
|
|
15
|
+
"negative": {
|
|
16
|
+
"class": "i-daikin-notification-status-negative",
|
|
17
|
+
"color": null
|
|
18
|
+
},
|
|
19
|
+
"positive": {
|
|
20
|
+
"class": "i-daikin-notification-status-positive",
|
|
21
|
+
"color": null
|
|
22
|
+
},
|
|
23
|
+
"warning": {
|
|
24
|
+
"class": "i-daikin-notification-status-warning",
|
|
25
|
+
"color": null
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
;
|
|
30
|
+
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinIcon = require("./daikin-icon.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinIcon", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinIcon.DaikinIcon
|
|
7
|
+
});
|
|
8
|
+
exports.iconList = daikinIcon.iconList;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-icon';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinAccordion = require("./accordion/daikin-accordion.cjs");
|
|
4
|
+
const daikinAccordionItem = require("./accordion-item/daikin-accordion-item.cjs");
|
|
5
|
+
const daikinBreadcrumb = require("./breadcrumb/daikin-breadcrumb.cjs");
|
|
6
|
+
const daikinBreadcrumbItem = require("./breadcrumb-item/daikin-breadcrumb-item.cjs");
|
|
7
|
+
const daikinButton = require("./button/daikin-button.cjs");
|
|
8
|
+
const daikinCheckbox = require("./checkbox/daikin-checkbox.cjs");
|
|
9
|
+
const daikinIcon = require("./icon/daikin-icon.cjs");
|
|
10
|
+
const daikinInputGroup = require("./input-group/daikin-input-group.cjs");
|
|
11
|
+
const daikinNotification = require("./notification/daikin-notification.cjs");
|
|
12
|
+
const daikinPanelSwitcher = require("./panel-switcher/daikin-panel-switcher.cjs");
|
|
13
|
+
const daikinProgressBar = require("./progress-bar/daikin-progress-bar.cjs");
|
|
14
|
+
const daikinRadio = require("./radio/daikin-radio.cjs");
|
|
15
|
+
const daikinTab = require("./tab/daikin-tab.cjs");
|
|
16
|
+
const daikinTabGroup = require("./tab-group/daikin-tab-group.cjs");
|
|
17
|
+
const daikinTextInput = require("./text-input/daikin-text-input.cjs");
|
|
18
|
+
const daikinTextarea = require("./textarea/daikin-textarea.cjs");
|
|
19
|
+
const daikinToggle = require("./toggle/daikin-toggle.cjs");
|
|
20
|
+
const daikinTooltip = require("./tooltip/daikin-tooltip.cjs");
|
|
21
|
+
Object.defineProperty(exports, "DaikinAccordion", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: () => daikinAccordion.DaikinAccordion
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "DaikinAccordionItem", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: () => daikinAccordionItem.DaikinAccordionItem
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(exports, "DaikinBreadcrumb", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: () => daikinBreadcrumb.DaikinBreadcrumb
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "DaikinBreadcrumbItem", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: () => daikinBreadcrumbItem.DaikinBreadcrumbItem
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "DaikinButton", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: () => daikinButton.DaikinButton
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports, "DaikinCheckbox", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: () => daikinCheckbox.DaikinCheckbox
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "DaikinIcon", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: () => daikinIcon.DaikinIcon
|
|
48
|
+
});
|
|
49
|
+
exports.iconList = daikinIcon.iconList;
|
|
50
|
+
Object.defineProperty(exports, "DaikinInputGroup", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: () => daikinInputGroup.DaikinInputGroup
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "DaikinNotification", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: () => daikinNotification.DaikinNotification
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "DaikinPanelSwitcher", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: () => daikinPanelSwitcher.DaikinPanelSwitcher
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "DaikinProgressBar", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: () => daikinProgressBar.DaikinProgressBar
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "DaikinRadio", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: () => daikinRadio.DaikinRadio
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "DaikinTab", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: () => daikinTab.DaikinTab
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "DaikinTabGroup", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: () => daikinTabGroup.DaikinTabGroup
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "DaikinTextInput", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: () => daikinTextInput.DaikinTextInput
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "DaikinTextarea", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: () => daikinTextarea.DaikinTextarea
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "DaikinToggle", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: () => daikinToggle.DaikinToggle
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "DaikinTooltip", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: () => daikinTooltip.DaikinTooltip
|
|
93
|
+
});
|