@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,116 @@
|
|
|
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 ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13
|
+
if (decorator = decorators[i])
|
|
14
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
|
+
if (kind && result) __defProp(target, key, result);
|
|
16
|
+
return result;
|
|
17
|
+
};
|
|
18
|
+
const cvaLinkSlot = classVarianceAuthority.cva(
|
|
19
|
+
[
|
|
20
|
+
"slotted:h-8",
|
|
21
|
+
"slotted:font-normal",
|
|
22
|
+
"slotted:not-italic",
|
|
23
|
+
"slotted:leading-8",
|
|
24
|
+
"slotted:text-sm",
|
|
25
|
+
"slotted:text-daikinBlue-500",
|
|
26
|
+
"slotted:outline-none",
|
|
27
|
+
"slotted:font-daikinSerif"
|
|
28
|
+
],
|
|
29
|
+
{
|
|
30
|
+
variants: {
|
|
31
|
+
variant: {
|
|
32
|
+
normal: [
|
|
33
|
+
"slotted:hover:text-daikinBlue-300",
|
|
34
|
+
"slotted:active:text-daikinNeutral-800",
|
|
35
|
+
"slotted-[*:focus-visible]:text-daikinBlue-700"
|
|
36
|
+
],
|
|
37
|
+
ellipsis: ["slotted:hover:text-daikinBlue-300"]
|
|
38
|
+
},
|
|
39
|
+
disabled: {
|
|
40
|
+
true: [
|
|
41
|
+
"slotted:!text-daikinNeutral-800",
|
|
42
|
+
"slotted:pointer-events-none",
|
|
43
|
+
"slotted:cursor-default",
|
|
44
|
+
"slotted-[*:focus-visible]:!text-daikinNeutral-800"
|
|
45
|
+
],
|
|
46
|
+
false: []
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
exports.DaikinBreadcrumbItem = class DaikinBreadcrumbItem extends lit.LitElement {
|
|
52
|
+
constructor() {
|
|
53
|
+
super(...arguments);
|
|
54
|
+
this.href = "";
|
|
55
|
+
this.variant = "normal";
|
|
56
|
+
this.disabled = false;
|
|
57
|
+
this.target = null;
|
|
58
|
+
this.trailingSlash = false;
|
|
59
|
+
this.hidden = false;
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
const slash = this.trailingSlash ? lit.html`<span class="text-daikinNeutral-800 font-daikinSerif">/</span>` : null;
|
|
63
|
+
return lit.html`
|
|
64
|
+
${this.variant === "normal" ? lit.html`<slot name="link" class=${cvaLinkSlot(this)}>
|
|
65
|
+
<a
|
|
66
|
+
href=${ifDefined_js.ifDefined(this.href)}
|
|
67
|
+
target=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
68
|
+
ifDefined_js.ifDefined(this.target)}
|
|
69
|
+
>
|
|
70
|
+
<slot></slot>
|
|
71
|
+
</a>
|
|
72
|
+
</slot>` : (
|
|
73
|
+
// Though `cvaLinkSlot` is designed for slots, it contains "& > *" selector for fallback content so it can be used here.
|
|
74
|
+
lit.html`<span class=${cvaLinkSlot(this)} aria-label="…">
|
|
75
|
+
<span>. . .</span>
|
|
76
|
+
</span> `
|
|
77
|
+
)}
|
|
78
|
+
${slash}
|
|
79
|
+
`;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
exports.DaikinBreadcrumbItem.styles = lit.css`
|
|
83
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
84
|
+
|
|
85
|
+
:host {
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
gap: 8px;
|
|
89
|
+
flex-shrink: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([hidden]) {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
96
|
+
__decorateClass([
|
|
97
|
+
decorators_js.property({ type: String, reflect: true })
|
|
98
|
+
], exports.DaikinBreadcrumbItem.prototype, "href", 2);
|
|
99
|
+
__decorateClass([
|
|
100
|
+
decorators_js.property({ type: String, reflect: true })
|
|
101
|
+
], exports.DaikinBreadcrumbItem.prototype, "variant", 2);
|
|
102
|
+
__decorateClass([
|
|
103
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
104
|
+
], exports.DaikinBreadcrumbItem.prototype, "disabled", 2);
|
|
105
|
+
__decorateClass([
|
|
106
|
+
decorators_js.property({ type: String, reflect: true })
|
|
107
|
+
], exports.DaikinBreadcrumbItem.prototype, "target", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
decorators_js.property({ type: Boolean, reflect: true, attribute: "trailing-slash" })
|
|
110
|
+
], exports.DaikinBreadcrumbItem.prototype, "trailingSlash", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
113
|
+
], exports.DaikinBreadcrumbItem.prototype, "hidden", 2);
|
|
114
|
+
exports.DaikinBreadcrumbItem = __decorateClass([
|
|
115
|
+
decorators_js.customElement("daikin-breadcrumb-item")
|
|
116
|
+
], exports.DaikinBreadcrumbItem);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
+
declare const cvaLinkSlot: (props?: ({
|
|
4
|
+
variant?: "normal" | "ellipsis" | null | undefined;
|
|
5
|
+
disabled?: boolean | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
type LinkVariantProps = MergeVariantProps<typeof cvaLinkSlot>;
|
|
8
|
+
/**
|
|
9
|
+
* The `daikin-breadcrumb-item` is a component used to represent each item of the breadcrumb list, and is used as a child element of the `daikin-breadcrumb` component.
|
|
10
|
+
*
|
|
11
|
+
* Hierarchy:
|
|
12
|
+
* - `daikin-breadcrumb` > `daikin-breadcrumb-item`
|
|
13
|
+
*
|
|
14
|
+
* @slot - A slot for the breadcrumb item content.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* ```html
|
|
19
|
+
* <!-- See `daikin-breadcrumb` component for complete example. -->
|
|
20
|
+
* <daikin-breadcrumb-item href="#">
|
|
21
|
+
* Breadcrumb Item 1
|
|
22
|
+
* </daikin-breadcrumb-item>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class DaikinBreadcrumbItem extends LitElement {
|
|
26
|
+
static styles: import('lit').CSSResult;
|
|
27
|
+
/**
|
|
28
|
+
* Specify link href
|
|
29
|
+
*/
|
|
30
|
+
href: string;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the display content.
|
|
33
|
+
* If `ellipsis`, the "..." will be displayed instead of the link.
|
|
34
|
+
* Set automatically by `daikin-breadcrumb`.
|
|
35
|
+
*/
|
|
36
|
+
variant: LinkVariantProps["variant"];
|
|
37
|
+
/**
|
|
38
|
+
* Specify whether the link should be disabled
|
|
39
|
+
*/
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Specify the link target
|
|
43
|
+
*/
|
|
44
|
+
target: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the slash after the link should shown.
|
|
47
|
+
* Set automatically by `daikin-breadcrumb`.
|
|
48
|
+
*/
|
|
49
|
+
trailingSlash: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the link should be hidden when ellipsis mode.
|
|
52
|
+
* Set automatically by `daikin-breadcrumb`.
|
|
53
|
+
*/
|
|
54
|
+
hidden: boolean;
|
|
55
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
56
|
+
}
|
|
57
|
+
declare global {
|
|
58
|
+
interface HTMLElementTagNameMap {
|
|
59
|
+
"daikin-breadcrumb-item": DaikinBreadcrumbItem;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinBreadcrumbItem = require("./daikin-breadcrumb-item.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinBreadcrumbItem", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinBreadcrumbItem.DaikinBreadcrumbItem
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './daikin-breadcrumb-item';
|
|
@@ -5,6 +5,7 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
5
5
|
const lit = require("lit");
|
|
6
6
|
const decorators_js = require("lit/decorators.js");
|
|
7
7
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
|
+
require("../icon/daikin-icon.cjs");
|
|
8
9
|
var __defProp = Object.defineProperty;
|
|
9
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
11
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -15,16 +16,21 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
16
|
if (kind && result) __defProp(target, key, result);
|
|
16
17
|
return result;
|
|
17
18
|
};
|
|
19
|
+
const BUTTON_ICON_SIZE_MAP = {
|
|
20
|
+
default: "m",
|
|
21
|
+
condensed: "s"
|
|
22
|
+
};
|
|
18
23
|
const cvaButton = classVarianceAuthority.cva(
|
|
19
24
|
[
|
|
20
25
|
"inline-flex",
|
|
21
26
|
"justify-center",
|
|
22
27
|
"items-center",
|
|
28
|
+
"gap-2",
|
|
23
29
|
"font-daikinSerif",
|
|
24
30
|
"font-bold",
|
|
25
31
|
"rounded-lg",
|
|
26
32
|
"tracking-wide",
|
|
27
|
-
"text-
|
|
33
|
+
"text-nowrap",
|
|
28
34
|
"disabled:cursor-default",
|
|
29
35
|
"w-full",
|
|
30
36
|
"h-full"
|
|
@@ -92,8 +98,8 @@ exports.DaikinButton = class DaikinButton extends lit.LitElement {
|
|
|
92
98
|
super(...arguments);
|
|
93
99
|
this.variant = "primary";
|
|
94
100
|
this.disabled = false;
|
|
95
|
-
this.rightIcon =
|
|
96
|
-
this.leftIcon =
|
|
101
|
+
this.rightIcon = null;
|
|
102
|
+
this.leftIcon = null;
|
|
97
103
|
this.href = "";
|
|
98
104
|
this.size = "default";
|
|
99
105
|
this.type = "button";
|
|
@@ -106,12 +112,20 @@ exports.DaikinButton = class DaikinButton extends lit.LitElement {
|
|
|
106
112
|
size: this.size
|
|
107
113
|
});
|
|
108
114
|
const content = lit.html`
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
115
|
+
${this.leftIcon ? lit.html`<daikin-icon
|
|
116
|
+
icon=${this.leftIcon}
|
|
117
|
+
size=${BUTTON_ICON_SIZE_MAP[this.size]}
|
|
118
|
+
color="current"
|
|
119
|
+
></daikin-icon>` : null}
|
|
120
|
+
<slot></slot>
|
|
121
|
+
${this.rightIcon ? lit.html`<daikin-icon
|
|
122
|
+
icon=${this.rightIcon}
|
|
123
|
+
size=${BUTTON_ICON_SIZE_MAP[this.size]}
|
|
124
|
+
color="current"
|
|
125
|
+
></daikin-icon>` : null}
|
|
112
126
|
`;
|
|
113
127
|
if (this.href) {
|
|
114
|
-
return lit.html
|
|
128
|
+
return lit.html`<a
|
|
115
129
|
href="${this.href}"
|
|
116
130
|
class="${buttonClassName}"
|
|
117
131
|
role="${this.role}"
|
|
@@ -130,6 +144,10 @@ exports.DaikinButton = class DaikinButton extends lit.LitElement {
|
|
|
130
144
|
</button>
|
|
131
145
|
`;
|
|
132
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* Focuses on the inner button.
|
|
149
|
+
* @param options focus options
|
|
150
|
+
*/
|
|
133
151
|
focus(options) {
|
|
134
152
|
var _a, _b;
|
|
135
153
|
(_b = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector("button")) == null ? void 0 : _b.focus(options);
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { ARIARole } from '../../lit-analyzer-types';
|
|
3
3
|
import { MergeVariantProps } from '../../type-utils';
|
|
4
|
-
|
|
4
|
+
import { IconType } from '../icon/daikin-icon';
|
|
5
5
|
declare const cvaButton: (props?: ({
|
|
6
6
|
intent?: "primary" | "secondary" | "tertiary" | "primaryDanger" | null | undefined;
|
|
7
7
|
size?: "default" | "condensed" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
type ButtonVariantProps = MergeVariantProps<typeof cvaButton>;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
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
|
+
* ```
|
|
12
25
|
*/
|
|
13
26
|
export declare class DaikinButton extends LitElement {
|
|
14
27
|
static readonly styles: import('lit').CSSResult;
|
|
@@ -23,11 +36,11 @@ export declare class DaikinButton extends LitElement {
|
|
|
23
36
|
/**
|
|
24
37
|
* Set a icon in the right of button label.
|
|
25
38
|
*/
|
|
26
|
-
rightIcon:
|
|
39
|
+
rightIcon: IconType | null;
|
|
27
40
|
/**
|
|
28
41
|
* Set a icon in the left of button label.
|
|
29
42
|
*/
|
|
30
|
-
leftIcon:
|
|
43
|
+
leftIcon: IconType | null;
|
|
31
44
|
/**
|
|
32
45
|
* Link `href`. If present, this button is rendered as `<a>`.
|
|
33
46
|
*/
|
|
@@ -49,6 +62,10 @@ export declare class DaikinButton extends LitElement {
|
|
|
49
62
|
*/
|
|
50
63
|
isLoading: boolean;
|
|
51
64
|
render(): import('lit-html').TemplateResult<1>;
|
|
65
|
+
/**
|
|
66
|
+
* Focuses on the inner button.
|
|
67
|
+
* @param options focus options
|
|
68
|
+
*/
|
|
52
69
|
focus(options?: FocusOptions | undefined): void;
|
|
53
70
|
}
|
|
54
71
|
declare global {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { MergeVariantProps } from '../../type-utils';
|
|
3
|
-
|
|
4
3
|
declare const cvaCheckbox: (props?: ({
|
|
5
4
|
size?: "small" | "large" | null | undefined;
|
|
6
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -9,7 +8,17 @@ declare const cvaLabel: (props?: ({
|
|
|
9
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
9
|
type CheckboxVariantProps = MergeVariantProps<typeof cvaCheckbox | typeof cvaLabel>;
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
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
|
+
* ```
|
|
13
22
|
*/
|
|
14
23
|
export declare class DaikinCheckbox extends LitElement {
|
|
15
24
|
static readonly styles: import('lit').CSSResult;
|
|
@@ -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,87 @@
|
|
|
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
|
+
return lit.html`<span
|
|
52
|
+
class=${cvaIcon({
|
|
53
|
+
icon: this.icon,
|
|
54
|
+
color: this.color,
|
|
55
|
+
size: this.size
|
|
56
|
+
})}
|
|
57
|
+
style=${`--default-color:${defaultColor ?? "#000000"}`}
|
|
58
|
+
role="presentation"
|
|
59
|
+
></span>`;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
exports.DaikinIcon.styles = lit.css`
|
|
63
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
64
|
+
|
|
65
|
+
:host {
|
|
66
|
+
--size-s: ${lit.unsafeCSS(variables_js.space12)};
|
|
67
|
+
--size-m: ${lit.unsafeCSS(variables_js.space16)};
|
|
68
|
+
--size-l: ${lit.unsafeCSS(variables_js.space20)};
|
|
69
|
+
--size-xl: ${lit.unsafeCSS(variables_js.space24)};
|
|
70
|
+
|
|
71
|
+
display: block;
|
|
72
|
+
width: max-content;
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
75
|
+
__decorateClass([
|
|
76
|
+
decorators_js.property({ type: String, reflect: true })
|
|
77
|
+
], exports.DaikinIcon.prototype, "icon", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
decorators_js.property({ type: String, reflect: true })
|
|
80
|
+
], exports.DaikinIcon.prototype, "color", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
decorators_js.property({ type: String, reflect: true })
|
|
83
|
+
], exports.DaikinIcon.prototype, "size", 2);
|
|
84
|
+
exports.DaikinIcon = __decorateClass([
|
|
85
|
+
decorators_js.customElement("daikin-icon")
|
|
86
|
+
], exports.DaikinIcon);
|
|
87
|
+
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
|
+
});
|