@daikin-oss/design-system-web-components 0.6.0 → 1.0.0
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 +167 -12
- package/README.md +40 -23
- package/dist/cjs/base/dds-element.cjs +8 -0
- package/dist/cjs/base/dds-element.d.cts +4 -0
- package/dist/cjs/base/decorators.cjs +13 -0
- package/dist/cjs/base/decorators.d.cts +2 -0
- package/dist/cjs/base/define.cjs +18 -0
- package/dist/cjs/base/define.d.cts +1 -0
- package/dist/cjs/base/index.cjs +8 -0
- package/dist/cjs/base/index.d.cts +3 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +45 -85
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs/components/button/daikin-button.cjs +36 -23
- package/dist/cjs/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs/components/card/daikin-card.cjs +67 -0
- package/dist/cjs/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs/components/card/index.cjs +7 -0
- package/dist/cjs/components/card/index.d.cts +1 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs/components/card-footer/index.cjs +7 -0
- package/dist/cjs/components/card-footer/index.d.cts +1 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs/components/card-header/index.cjs +7 -0
- package/dist/cjs/components/card-header/index.d.cts +1 -0
- package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs/components/carousel/index.cjs +7 -0
- package/dist/cjs/components/carousel/index.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs/components/carousel-item/index.cjs +7 -0
- package/dist/cjs/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +63 -45
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs/components/icon/daikin-icon.d.cts +5 -5
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +29 -25
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +56 -5
- package/dist/cjs/components/index.d.cts +11 -1
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs/components/inline-notification/index.cjs +7 -0
- package/dist/cjs/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +71 -52
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs/components/link/daikin-link.cjs +40 -55
- package/dist/cjs/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs/components/list/daikin-list.cjs +9 -9
- package/dist/cjs/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +16 -13
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +33 -18
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +17 -26
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +28 -29
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +57 -33
- package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs/components/select/daikin-select.cjs +25 -16
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +38 -23
- package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs/components/table/daikin-table.cjs +15 -12
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +10 -7
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +12 -10
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +31 -20
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +29 -19
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs/components/toast-notification/index.cjs +7 -0
- package/dist/cjs/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +18 -15
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/common.cjs +90 -0
- package/dist/cjs/components/tree/common.d.cts +32 -0
- package/dist/cjs/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs/components/tree/index.cjs +7 -0
- package/dist/cjs/components/tree/index.d.cts +1 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs/components/tree-item/index.cjs +8 -0
- package/dist/cjs/components/tree-item/index.d.cts +1 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs/components/tree-section/index.cjs +7 -0
- package/dist/cjs/components/tree-section/index.d.cts +1 -0
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +56 -7
- package/dist/cjs/index.d.cts +0 -1
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/is-simple-key.cjs +6 -0
- package/dist/cjs/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +45 -85
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs-dev/components/button/daikin-button.cjs +36 -23
- package/dist/cjs-dev/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs-dev/components/card/daikin-card.cjs +67 -0
- package/dist/cjs-dev/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs-dev/components/card/index.cjs +7 -0
- package/dist/cjs-dev/components/card/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs-dev/components/card-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/card-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs-dev/components/card-header/index.cjs +7 -0
- package/dist/cjs-dev/components/card-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs-dev/components/carousel/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +63 -45
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +5 -5
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +29 -25
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +56 -5
- package/dist/cjs-dev/components/index.d.cts +11 -1
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +71 -52
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs-dev/components/link/daikin-link.cjs +40 -55
- package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
- package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +16 -13
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +33 -18
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +17 -36
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +28 -29
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +57 -33
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs-dev/components/select/daikin-select.cjs +25 -16
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +38 -23
- package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +15 -12
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +10 -7
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +12 -10
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +31 -20
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +29 -19
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +18 -15
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/common.cjs +90 -0
- package/dist/cjs-dev/components/tree/common.d.cts +32 -0
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs-dev/components/tree/index.cjs +7 -0
- package/dist/cjs-dev/components/tree/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs-dev/components/tree-item/index.cjs +8 -0
- package/dist/cjs-dev/components/tree-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs-dev/components/tree-section/index.cjs +7 -0
- package/dist/cjs-dev/components/tree-section/index.d.cts +1 -0
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +56 -7
- package/dist/cjs-dev/index.d.cts +0 -1
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/is-simple-key.cjs +6 -0
- package/dist/cjs-dev/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es/components/button/daikin-button.d.ts +8 -5
- package/dist/es/components/button/daikin-button.js +35 -22
- package/dist/es/components/card/daikin-card.d.ts +48 -0
- package/dist/es/components/card/daikin-card.js +68 -0
- package/dist/es/components/card/index.d.ts +1 -0
- package/dist/es/components/card/index.js +4 -0
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es/components/card-footer/index.d.ts +1 -0
- package/dist/es/components/card-footer/index.js +4 -0
- package/dist/es/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es/components/card-header/daikin-card-header.js +60 -0
- package/dist/es/components/card-header/index.d.ts +1 -0
- package/dist/es/components/card-header/index.js +4 -0
- package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es/components/carousel/daikin-carousel.js +218 -0
- package/dist/es/components/carousel/index.d.ts +1 -0
- package/dist/es/components/carousel/index.js +4 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es/components/carousel-item/index.d.ts +1 -0
- package/dist/es/components/carousel-item/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +62 -44
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +29 -18
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +20 -13
- package/dist/es/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es/components/icon/daikin-icon.js +15 -12
- package/dist/es/components/icon/icons.json.d.ts +0 -8
- package/dist/es/components/icon/icons.json.js +1 -70
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +28 -24
- package/dist/es/components/index.d.ts +11 -1
- package/dist/es/components/index.js +23 -2
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es/components/inline-notification/index.d.ts +1 -0
- package/dist/es/components/inline-notification/index.js +4 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +25 -8
- package/dist/es/components/input-group/daikin-input-group.js +70 -51
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +39 -54
- package/dist/es/components/list/daikin-list.d.ts +7 -2
- package/dist/es/components/list/daikin-list.js +7 -7
- package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es/components/list-item/daikin-list-item.js +15 -12
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +39 -32
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +32 -17
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +16 -25
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +27 -28
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +56 -32
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es/components/select/daikin-select.d.ts +11 -2
- package/dist/es/components/select/daikin-select.js +24 -15
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +37 -22
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es/components/table/daikin-table.d.ts +9 -2
- package/dist/es/components/table/daikin-table.js +14 -11
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +9 -6
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +11 -9
- package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es/components/tabs/daikin-tabs.js +24 -9
- package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es/components/text-area/daikin-text-area.js +30 -19
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +28 -18
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es/components/toast-notification/index.d.ts +1 -0
- package/dist/es/components/toast-notification/index.js +4 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es/components/toast-notification-manager/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es/components/toggle/daikin-toggle.js +17 -14
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es/components/tree/common.d.ts +32 -0
- package/dist/es/components/tree/common.js +90 -0
- package/dist/es/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es/components/tree/daikin-tree.js +109 -0
- package/dist/es/components/tree/index.d.ts +1 -0
- package/dist/es/components/tree/index.js +4 -0
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es/components/tree-item/index.d.ts +1 -0
- package/dist/es/components/tree-item/index.js +5 -0
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es/components/tree-section/index.d.ts +1 -0
- package/dist/es/components/tree-section/index.js +4 -0
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.d.ts +0 -1
- package/dist/es/index.js +23 -4
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/is-simple-key.d.ts +7 -0
- package/dist/es/utils/is-simple-key.js +6 -0
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es-dev/components/button/daikin-button.d.ts +8 -5
- package/dist/es-dev/components/button/daikin-button.js +35 -22
- package/dist/es-dev/components/card/daikin-card.d.ts +48 -0
- package/dist/es-dev/components/card/daikin-card.js +68 -0
- package/dist/es-dev/components/card/index.d.ts +1 -0
- package/dist/es-dev/components/card/index.js +4 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es-dev/components/card-footer/index.d.ts +1 -0
- package/dist/es-dev/components/card-footer/index.js +4 -0
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +60 -0
- package/dist/es-dev/components/card-header/index.d.ts +1 -0
- package/dist/es-dev/components/card-header/index.js +4 -0
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
- package/dist/es-dev/components/carousel/index.d.ts +1 -0
- package/dist/es-dev/components/carousel/index.js +4 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +62 -44
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +29 -18
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +20 -13
- package/dist/es-dev/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es-dev/components/icon/daikin-icon.js +15 -12
- package/dist/es-dev/components/icon/icons.json.d.ts +0 -8
- package/dist/es-dev/components/icon/icons.json.js +1 -70
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +28 -24
- package/dist/es-dev/components/index.d.ts +11 -1
- package/dist/es-dev/components/index.js +23 -2
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
- package/dist/es-dev/components/inline-notification/index.js +4 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +25 -8
- package/dist/es-dev/components/input-group/daikin-input-group.js +70 -51
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +39 -54
- package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
- package/dist/es-dev/components/list/daikin-list.js +7 -7
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.js +15 -12
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +39 -32
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +32 -17
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +16 -35
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +27 -28
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +56 -32
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
- package/dist/es-dev/components/select/daikin-select.js +24 -15
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +37 -22
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
- package/dist/es-dev/components/table/daikin-table.js +14 -11
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +9 -6
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +11 -9
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +30 -19
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +28 -18
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification/index.js +4 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es-dev/components/toggle/daikin-toggle.js +17 -14
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es-dev/components/tree/common.d.ts +32 -0
- package/dist/es-dev/components/tree/common.js +90 -0
- package/dist/es-dev/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es-dev/components/tree/daikin-tree.js +109 -0
- package/dist/es-dev/components/tree/index.d.ts +1 -0
- package/dist/es-dev/components/tree/index.js +4 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es-dev/components/tree-item/index.d.ts +1 -0
- package/dist/es-dev/components/tree-item/index.js +5 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es-dev/components/tree-section/index.d.ts +1 -0
- package/dist/es-dev/components/tree-section/index.js +4 -0
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.d.ts +0 -1
- package/dist/es-dev/index.js +23 -4
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/is-simple-key.d.ts +7 -0
- package/dist/es-dev/utils/is-simple-key.js +6 -0
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/sort.svg +1 -1
- package/icons/status-error.svg +1 -1
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +58 -49
- package/dist/cjs/colors.cjs +0 -80
- package/dist/cjs/colors.d.cts +0 -69
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -197
- package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs/components/notification/index.cjs +0 -7
- package/dist/cjs/components/notification/index.d.cts +0 -1
- package/dist/cjs/constants/events.cjs +0 -4
- package/dist/cjs-dev/colors.cjs +0 -80
- package/dist/cjs-dev/colors.d.cts +0 -69
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -197
- package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs-dev/components/notification/index.cjs +0 -7
- package/dist/cjs-dev/components/notification/index.d.cts +0 -1
- package/dist/cjs-dev/constants/events.cjs +0 -4
- package/dist/es/colors.d.ts +0 -69
- package/dist/es/colors.js +0 -80
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -198
- package/dist/es/components/notification/index.d.ts +0 -1
- package/dist/es/components/notification/index.js +0 -4
- package/dist/es/constants/events.js +0 -4
- package/dist/es-dev/colors.d.ts +0 -69
- package/dist/es-dev/colors.js +0 -80
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -198
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
/**
|
|
3
4
|
* The checkbox component is a UI element that allows users to select one or more options from a list of choices.
|
|
4
5
|
* It functions similarly to the HTML `<input type="checkbox">` tag, enabling users to toggle the selection of each option independently.
|
|
@@ -16,7 +17,7 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
16
17
|
* <daikin-checkbox label="Checkbox label" name="name" value="value"></daikin-checkbox>
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
|
-
export declare class DaikinCheckbox extends
|
|
20
|
+
export declare class DaikinCheckbox extends DDSElement {
|
|
20
21
|
static readonly styles: import('lit').CSSResult;
|
|
21
22
|
/**
|
|
22
23
|
* The form name, submitted as a name/value pair when submitting the form.
|
|
@@ -45,6 +46,7 @@ export declare class DaikinCheckbox extends LitElement {
|
|
|
45
46
|
*/
|
|
46
47
|
disabled: boolean;
|
|
47
48
|
get checked(): boolean;
|
|
49
|
+
private get _labelHidden();
|
|
48
50
|
/**
|
|
49
51
|
* A property-only accessor for `checkState` provided for convenience.
|
|
50
52
|
* _Getter_: Returns `true` when `checkState` is `"checked"`, and `false` otherwise.
|
|
@@ -5,15 +5,18 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
5
5
|
const lit = require("lit");
|
|
6
6
|
const decorators_js = require("lit/decorators.js");
|
|
7
7
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
8
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
9
|
+
const decorators = require("../../base/decorators.cjs");
|
|
10
|
+
require("../../base/define.cjs");
|
|
8
11
|
const clickOutside = require("../../controllers/click-outside.cjs");
|
|
9
12
|
const floatingUiAutoUpdate = require("../../controllers/floating-ui-auto-update.cjs");
|
|
10
13
|
const tailwind = require("../../tailwind.css.cjs");
|
|
11
14
|
var __defProp = Object.defineProperty;
|
|
12
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
-
var __decorateClass = (
|
|
16
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
14
17
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
-
for (var i =
|
|
16
|
-
if (decorator =
|
|
18
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
19
|
+
if (decorator = decorators2[i])
|
|
17
20
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
21
|
if (kind && result) __defProp(target, key, result);
|
|
19
22
|
return result;
|
|
@@ -26,7 +29,7 @@ const cvaButton = classVarianceAuthority.cva(
|
|
|
26
29
|
"w-full",
|
|
27
30
|
"h-full",
|
|
28
31
|
"min-h-12",
|
|
29
|
-
"bg-
|
|
32
|
+
"bg-ddt-color-common-background-default",
|
|
30
33
|
"p-3",
|
|
31
34
|
"border",
|
|
32
35
|
"border-[--color-base]",
|
|
@@ -41,8 +44,8 @@ const cvaButton = classVarianceAuthority.cva(
|
|
|
41
44
|
"-outline-offset-2",
|
|
42
45
|
"focus-visible:outline-2",
|
|
43
46
|
"focus-visible:outline-[--color-focus]",
|
|
44
|
-
"disabled:text-
|
|
45
|
-
"disabled:border-
|
|
47
|
+
"disabled:text-ddt-color-common-disabled",
|
|
48
|
+
"disabled:border-ddt-color-common-disabled",
|
|
46
49
|
"after:i-daikin-dropdown-chevron-down",
|
|
47
50
|
"after:w-6",
|
|
48
51
|
"after:h-6",
|
|
@@ -51,31 +54,31 @@ const cvaButton = classVarianceAuthority.cva(
|
|
|
51
54
|
"after:top-0",
|
|
52
55
|
"after:bottom-0",
|
|
53
56
|
"after:right-3",
|
|
54
|
-
"enabled:after:text-
|
|
55
|
-
"disabled:after:text-
|
|
57
|
+
"enabled:after:text-ddt-color-common-text-primary",
|
|
58
|
+
"disabled:after:text-ddt-color-common-disabled"
|
|
56
59
|
],
|
|
57
60
|
{
|
|
58
61
|
variants: {
|
|
59
62
|
open: {
|
|
60
63
|
false: [
|
|
61
|
-
"enabled:hover:bg-
|
|
62
|
-
"enabled:active:bg-
|
|
64
|
+
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
65
|
+
"enabled:active:bg-ddt-color-common-surface-press"
|
|
63
66
|
],
|
|
64
|
-
true: ["enabled:bg-
|
|
67
|
+
true: ["enabled:bg-ddt-color-common-surface-press"]
|
|
65
68
|
},
|
|
66
69
|
error: {
|
|
67
70
|
false: [
|
|
68
|
-
"var-color-
|
|
69
|
-
"var-color-
|
|
71
|
+
"var-color-ddt-color-common-neutral-default/color-base",
|
|
72
|
+
"var-color-ddt-color-common-border-focus/color-focus"
|
|
70
73
|
],
|
|
71
74
|
true: [
|
|
72
|
-
"var-color-
|
|
73
|
-
"var-color-
|
|
75
|
+
"var-color-ddt-color-common-danger-default/color-base",
|
|
76
|
+
"var-color-ddt-color-common-danger-default/color-focus"
|
|
74
77
|
]
|
|
75
78
|
},
|
|
76
79
|
placeholder: {
|
|
77
|
-
false: ["text-
|
|
78
|
-
true: ["text-
|
|
80
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
81
|
+
true: ["text-ddt-color-common-text-secondary"]
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
}
|
|
@@ -95,7 +98,7 @@ const floatingPositionOptions = {
|
|
|
95
98
|
})
|
|
96
99
|
]
|
|
97
100
|
};
|
|
98
|
-
exports.DaikinDropdown = class DaikinDropdown extends
|
|
101
|
+
exports.DaikinDropdown = class DaikinDropdown extends ddsElement.DDSElement {
|
|
99
102
|
constructor() {
|
|
100
103
|
super(...arguments);
|
|
101
104
|
this._internals = this.attachInternals();
|
|
@@ -289,6 +292,10 @@ exports.DaikinDropdown = class DaikinDropdown extends lit.LitElement {
|
|
|
289
292
|
this._clickOutsideController.directive(this.open && !this.disabled)}
|
|
290
293
|
</div>`;
|
|
291
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* Focuses on the inner button.
|
|
297
|
+
* @param options focus options
|
|
298
|
+
*/
|
|
292
299
|
focus(options) {
|
|
293
300
|
var _a;
|
|
294
301
|
(_a = this._button) == null ? void 0 : _a.focus(options);
|
|
@@ -308,6 +315,10 @@ exports.DaikinDropdown = class DaikinDropdown extends lit.LitElement {
|
|
|
308
315
|
}
|
|
309
316
|
}
|
|
310
317
|
}
|
|
318
|
+
/**
|
|
319
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
320
|
+
* @private
|
|
321
|
+
*/
|
|
311
322
|
reflectInputGroup(inputGroup) {
|
|
312
323
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
313
324
|
this.disabled = !!inputGroup.disabled;
|
|
@@ -363,5 +374,5 @@ __decorateClass([
|
|
|
363
374
|
decorators_js.state()
|
|
364
375
|
], exports.DaikinDropdown.prototype, "_selectedItemLabel", 2);
|
|
365
376
|
exports.DaikinDropdown = __decorateClass([
|
|
366
|
-
|
|
377
|
+
decorators.ddsElement("daikin-dropdown")
|
|
367
378
|
], exports.DaikinDropdown);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
3
4
|
/**
|
|
4
5
|
* A dropdown list component.
|
|
@@ -13,6 +14,11 @@ import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
|
13
14
|
*
|
|
14
15
|
* @example
|
|
15
16
|
*
|
|
17
|
+
* ```js
|
|
18
|
+
* import "@daikin-oss/design-system-web-components/components/dropdown/index.js";
|
|
19
|
+
* import "@daikin-oss/design-system-web-components/components/dropdown-item/index.js";
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
16
22
|
* ```html
|
|
17
23
|
* <daikin-dropdown label="Dropdown label">
|
|
18
24
|
* <daikin-dropdown-item value="value1">Dropdown item 1</daikin-dropdown-item>
|
|
@@ -21,7 +27,7 @@ import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
|
21
27
|
* </daikin-dropdown>
|
|
22
28
|
* ```
|
|
23
29
|
*/
|
|
24
|
-
export declare class DaikinDropdown extends
|
|
30
|
+
export declare class DaikinDropdown extends DDSElement {
|
|
25
31
|
static readonly styles: import('lit').CSSResult;
|
|
26
32
|
static readonly formAssociated = true;
|
|
27
33
|
private _internals;
|
|
@@ -89,8 +95,16 @@ export declare class DaikinDropdown extends LitElement {
|
|
|
89
95
|
*/
|
|
90
96
|
private _handleFloatingReady;
|
|
91
97
|
render(): import('lit-html').TemplateResult<1>;
|
|
98
|
+
/**
|
|
99
|
+
* Focuses on the inner button.
|
|
100
|
+
* @param options focus options
|
|
101
|
+
*/
|
|
92
102
|
focus(options?: FocusOptions): void;
|
|
93
103
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
104
|
+
/**
|
|
105
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
106
|
+
* @private
|
|
107
|
+
*/
|
|
94
108
|
reflectInputGroup(inputGroup: DaikinInputGroup): void;
|
|
95
109
|
}
|
|
96
110
|
declare global {
|
|
@@ -3,13 +3,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
const decorators = require("../../base/decorators.cjs");
|
|
8
|
+
require("../../base/define.cjs");
|
|
6
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
8
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __decorateClass = (
|
|
12
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
10
13
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
-
for (var i =
|
|
12
|
-
if (decorator =
|
|
14
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators2[i])
|
|
13
16
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
17
|
if (kind && result) __defProp(target, key, result);
|
|
15
18
|
return result;
|
|
@@ -21,8 +24,8 @@ const cvaOption = classVarianceAuthority.cva(
|
|
|
21
24
|
"justify-between",
|
|
22
25
|
"w-full",
|
|
23
26
|
"min-h-12",
|
|
24
|
-
"text-
|
|
25
|
-
"bg-
|
|
27
|
+
"text-ddt-color-common-text-primary",
|
|
28
|
+
"bg-ddt-color-common-background-default",
|
|
26
29
|
"p-3",
|
|
27
30
|
"font-daikinSerif",
|
|
28
31
|
"leading-5",
|
|
@@ -30,20 +33,20 @@ const cvaOption = classVarianceAuthority.cva(
|
|
|
30
33
|
"focus-visible:outline",
|
|
31
34
|
"focus-visible:outline-2",
|
|
32
35
|
"focus-visible:-outline-offset-2",
|
|
33
|
-
"focus-visible:outline-
|
|
34
|
-
"disabled:text-
|
|
36
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
37
|
+
"disabled:text-ddt-color-common-disabled"
|
|
35
38
|
],
|
|
36
39
|
{
|
|
37
40
|
variants: {
|
|
38
41
|
selected: {
|
|
39
42
|
false: [
|
|
40
|
-
"enabled:hover:bg-
|
|
41
|
-
"enabled:active:bg-
|
|
43
|
+
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
44
|
+
"enabled:active:bg-ddt-color-common-surface-press"
|
|
42
45
|
],
|
|
43
46
|
true: [
|
|
44
|
-
"enabled:bg-
|
|
45
|
-
"enabled:hover:bg-
|
|
46
|
-
"enabled:active:bg-
|
|
47
|
+
"enabled:bg-ddt-color-common-surface-selected-default",
|
|
48
|
+
"enabled:hover:bg-ddt-color-common-surface-selected-hover",
|
|
49
|
+
"enabled:active:bg-ddt-color-common-surface-selected-press",
|
|
47
50
|
"after:i-daikin-dropdown-check",
|
|
48
51
|
"after:size-6"
|
|
49
52
|
]
|
|
@@ -51,7 +54,7 @@ const cvaOption = classVarianceAuthority.cva(
|
|
|
51
54
|
}
|
|
52
55
|
}
|
|
53
56
|
);
|
|
54
|
-
exports.DaikinDropdownItem = class DaikinDropdownItem extends
|
|
57
|
+
exports.DaikinDropdownItem = class DaikinDropdownItem extends ddsElement.DDSElement {
|
|
55
58
|
constructor() {
|
|
56
59
|
super(...arguments);
|
|
57
60
|
this.value = "";
|
|
@@ -82,6 +85,10 @@ exports.DaikinDropdownItem = class DaikinDropdownItem extends lit.LitElement {
|
|
|
82
85
|
<slot></slot>
|
|
83
86
|
</button>`;
|
|
84
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Focuses on the inner button.
|
|
90
|
+
* @param options focus options
|
|
91
|
+
*/
|
|
85
92
|
focus(options) {
|
|
86
93
|
var _a;
|
|
87
94
|
(_a = this._button) == null ? void 0 : _a.focus(options);
|
|
@@ -108,5 +115,5 @@ __decorateClass([
|
|
|
108
115
|
decorators_js.query("button")
|
|
109
116
|
], exports.DaikinDropdownItem.prototype, "_button", 2);
|
|
110
117
|
exports.DaikinDropdownItem = __decorateClass([
|
|
111
|
-
|
|
118
|
+
decorators.ddsElement("daikin-dropdown-item")
|
|
112
119
|
], exports.DaikinDropdownItem);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The dropdown item (option) component that can be used within `daikin-dropdown` component.
|
|
4
4
|
*
|
|
@@ -11,11 +11,15 @@ import { LitElement } from 'lit';
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
*
|
|
14
|
+
* ```js
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/dropdown-item/index.js";
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
14
18
|
* ```html
|
|
15
19
|
* <daikin-dropdown-item value="value">Dropdown item</daikin-dropdown-item>
|
|
16
20
|
* ```
|
|
17
21
|
*/
|
|
18
|
-
export declare class DaikinDropdownItem extends
|
|
22
|
+
export declare class DaikinDropdownItem extends DDSElement {
|
|
19
23
|
static readonly styles: import('lit').CSSResult;
|
|
20
24
|
/**
|
|
21
25
|
* Form value of the dropdown item.
|
|
@@ -33,6 +37,10 @@ export declare class DaikinDropdownItem extends LitElement {
|
|
|
33
37
|
private _button;
|
|
34
38
|
private _handleClick;
|
|
35
39
|
render(): import('lit-html').TemplateResult<1>;
|
|
40
|
+
/**
|
|
41
|
+
* Focuses on the inner button.
|
|
42
|
+
* @param options focus options
|
|
43
|
+
*/
|
|
36
44
|
focus(options?: FocusOptions): void;
|
|
37
45
|
}
|
|
38
46
|
declare global {
|
|
@@ -3,14 +3,17 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
const decorators = require("../../base/decorators.cjs");
|
|
8
|
+
require("../../base/define.cjs");
|
|
6
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
7
10
|
const icons = require("./icons.json.cjs");
|
|
8
11
|
var __defProp = Object.defineProperty;
|
|
9
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __decorateClass = (
|
|
13
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
11
14
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
-
for (var i =
|
|
13
|
-
if (decorator =
|
|
15
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators2[i])
|
|
14
17
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
18
|
if (kind && result) __defProp(target, key, result);
|
|
16
19
|
return result;
|
|
@@ -23,15 +26,15 @@ const cvaIcon = classVarianceAuthority.cva(["block"], {
|
|
|
23
26
|
variants: {
|
|
24
27
|
icon: iconClassMap,
|
|
25
28
|
color: {
|
|
26
|
-
black: ["text-
|
|
27
|
-
white: ["text-
|
|
29
|
+
black: ["text-ddt-color-common-background-overlay"],
|
|
30
|
+
white: ["text-ddt-color-common-text-inverse"],
|
|
28
31
|
default: ["text-[--default-color]"],
|
|
29
32
|
current: []
|
|
30
33
|
// uses `currentColor`
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
});
|
|
34
|
-
exports.DaikinIcon = class DaikinIcon extends
|
|
37
|
+
exports.DaikinIcon = class DaikinIcon extends ddsElement.DDSElement {
|
|
35
38
|
constructor() {
|
|
36
39
|
super(...arguments);
|
|
37
40
|
this.icon = null;
|
|
@@ -65,24 +68,24 @@ exports.DaikinIcon.styles = lit.css`
|
|
|
65
68
|
|
|
66
69
|
:host {
|
|
67
70
|
display: inline-block;
|
|
68
|
-
width: var(--
|
|
69
|
-
height: var(--
|
|
71
|
+
width: var(--ddc-icon-size, 100%);
|
|
72
|
+
height: var(--ddc-icon-size, 100%);
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
:host([size="s"]) {
|
|
73
|
-
--
|
|
76
|
+
--ddc-icon-size: 12px;
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
:host([size="m"]) {
|
|
77
|
-
--
|
|
80
|
+
--ddc-icon-size: 16px;
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
:host([size="l"]) {
|
|
81
|
-
--
|
|
84
|
+
--ddc-icon-size: 20px;
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
:host([size="xl"]) {
|
|
85
|
-
--
|
|
88
|
+
--ddc-icon-size: 24px;
|
|
86
89
|
}
|
|
87
90
|
`;
|
|
88
91
|
__decorateClass([
|
|
@@ -95,6 +98,6 @@ __decorateClass([
|
|
|
95
98
|
decorators_js.property({ type: String, reflect: true })
|
|
96
99
|
], exports.DaikinIcon.prototype, "size", 2);
|
|
97
100
|
exports.DaikinIcon = __decorateClass([
|
|
98
|
-
|
|
101
|
+
decorators.ddsElement("daikin-icon")
|
|
99
102
|
], exports.DaikinIcon);
|
|
100
103
|
exports.iconList = iconList;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
3
|
import { icons } from "./icons.json.cjs";
|
|
4
4
|
export declare const iconList: string[];
|
|
5
5
|
export type IconType = keyof typeof icons;
|
|
6
6
|
declare const cvaIcon: (props?: ({
|
|
7
7
|
icon?: string | number | null | undefined;
|
|
8
|
-
color?: "
|
|
8
|
+
color?: "current" | "default" | "black" | "white" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
|
|
11
11
|
/**
|
|
@@ -17,7 +17,7 @@ export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
|
|
|
17
17
|
* If you try to use an icon that does not exist, a blank space will be displayed.
|
|
18
18
|
* In the development build, warnings will be displayed in the console, so please check there if you encounter any unexpected behavior.
|
|
19
19
|
*
|
|
20
|
-
* @cssprop [--
|
|
20
|
+
* @cssprop [--ddc-icon-size] - Icon size. If a value other than "current" is set for the `size` property, it will be overwritten automatically. This may be set by the parent component such as `daikin-icon-button`.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
*
|
|
@@ -29,7 +29,7 @@ export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
|
|
|
29
29
|
* <daikin-icon icon="information" color="black" size="m"></daikin-icon>
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export declare class DaikinIcon extends
|
|
32
|
+
export declare class DaikinIcon extends DDSElement {
|
|
33
33
|
static readonly styles: import('lit').CSSResult;
|
|
34
34
|
/**
|
|
35
35
|
* Specify the name of the icon
|
|
@@ -41,7 +41,7 @@ export declare class DaikinIcon extends LitElement {
|
|
|
41
41
|
color: IconVariantProps["color"];
|
|
42
42
|
/**
|
|
43
43
|
* Specify the size of the icon.
|
|
44
|
-
* If "current" is set, `--
|
|
44
|
+
* If "current" is set, `--ddc-icon-size` CSS variable will be used. `--ddc-icon-size` may be set by the parent component such as `daikin-icon-button`.
|
|
45
45
|
*/
|
|
46
46
|
size: "s" | "m" | "l" | "xl" | "current";
|
|
47
47
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -1,73 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const icons = {
|
|
4
|
-
alarm: {
|
|
5
|
-
"class": "i-daikin-status-alarm",
|
|
6
|
-
color: null
|
|
7
|
-
},
|
|
8
|
-
close: {
|
|
9
|
-
"class": "i-daikin-notification-close",
|
|
10
|
-
color: "#a0a0a0"
|
|
11
|
-
},
|
|
12
|
-
information: {
|
|
13
|
-
"class": "i-daikin-status-information",
|
|
14
|
-
color: null
|
|
15
|
-
},
|
|
16
|
-
negative: {
|
|
17
|
-
"class": "i-daikin-status-negative",
|
|
18
|
-
color: null
|
|
19
|
-
},
|
|
20
|
-
positive: {
|
|
21
|
-
"class": "i-daikin-status-positive",
|
|
22
|
-
color: null
|
|
23
|
-
},
|
|
24
|
-
warning: {
|
|
25
|
-
"class": "i-daikin-status-warning",
|
|
26
|
-
color: null
|
|
27
|
-
},
|
|
28
|
-
"pagination-chevron-left": {
|
|
29
|
-
"class": "i-daikin-pagination-chevron-left",
|
|
30
|
-
color: "#414141"
|
|
31
|
-
},
|
|
32
|
-
"pagination-chevron-right": {
|
|
33
|
-
"class": "i-daikin-pagination-chevron-right",
|
|
34
|
-
color: "#414141"
|
|
35
|
-
},
|
|
36
|
-
arrowUp: {
|
|
37
|
-
"class": "i-daikin-arrow-up",
|
|
38
|
-
color: "#414141"
|
|
39
|
-
},
|
|
40
|
-
success: {
|
|
41
|
-
"class": "i-daikin-status-success",
|
|
42
|
-
color: "#0097E0"
|
|
43
|
-
},
|
|
44
|
-
error: {
|
|
45
|
-
"class": "i-daikin-status-error",
|
|
46
|
-
color: "#FF4949"
|
|
47
|
-
},
|
|
48
|
-
cross: {
|
|
49
|
-
"class": "i-daikin-cross",
|
|
50
|
-
color: null
|
|
51
|
-
},
|
|
52
|
-
"chevron-up": {
|
|
53
|
-
"class": "i-daikin-chevron-up",
|
|
54
|
-
color: null
|
|
55
|
-
},
|
|
56
|
-
"chevron-down": {
|
|
57
|
-
"class": "i-daikin-chevron-down",
|
|
58
|
-
color: null
|
|
59
|
-
},
|
|
60
|
-
"chevron-left": {
|
|
61
|
-
"class": "i-daikin-chevron-left",
|
|
62
|
-
color: null
|
|
63
|
-
},
|
|
64
|
-
"chevron-right": {
|
|
65
|
-
"class": "i-daikin-chevron-right",
|
|
66
|
-
color: null
|
|
67
|
-
},
|
|
68
|
-
sort: {
|
|
69
|
-
"class": "i-daikin-sort",
|
|
70
|
-
color: null
|
|
71
|
-
}
|
|
72
|
-
};
|
|
3
|
+
const icons = { "alarm": { "class": "i-daikin-status-alarm", "color": null }, "close": { "class": "i-daikin-notification-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-status-information", "color": null }, "negative": { "class": "i-daikin-status-negative", "color": null }, "positive": { "class": "i-daikin-status-positive", "color": null }, "warning": { "class": "i-daikin-status-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "error": { "class": "i-daikin-status-error", "color": "#FF4949" }, "cross": { "class": "i-daikin-cross", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null } };
|
|
73
4
|
exports.icons = icons;
|
|
@@ -32,14 +32,6 @@ declare const _default: {
|
|
|
32
32
|
"class": "i-daikin-pagination-chevron-right",
|
|
33
33
|
"color": "#414141"
|
|
34
34
|
},
|
|
35
|
-
"arrowUp": {
|
|
36
|
-
"class": "i-daikin-arrow-up",
|
|
37
|
-
"color": "#414141"
|
|
38
|
-
},
|
|
39
|
-
"success": {
|
|
40
|
-
"class": "i-daikin-status-success",
|
|
41
|
-
"color": "#0097E0"
|
|
42
|
-
},
|
|
43
35
|
"error": {
|
|
44
36
|
"class": "i-daikin-status-error",
|
|
45
37
|
"color": "#FF4949"
|
|
@@ -4,14 +4,17 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
7
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
11
|
require("../icon/daikin-icon.cjs");
|
|
9
12
|
var __defProp = Object.defineProperty;
|
|
10
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __decorateClass = (
|
|
14
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
12
15
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i =
|
|
14
|
-
if (decorator =
|
|
16
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators2[i])
|
|
15
18
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
19
|
if (kind && result) __defProp(target, key, result);
|
|
17
20
|
return result;
|
|
@@ -21,8 +24,7 @@ const cvaIconButton = classVarianceAuthority.cva(
|
|
|
21
24
|
"inline-flex",
|
|
22
25
|
"justify-center",
|
|
23
26
|
"items-center",
|
|
24
|
-
"
|
|
25
|
-
"h-8",
|
|
27
|
+
"size-full",
|
|
26
28
|
"font-daikinSerif",
|
|
27
29
|
"font-bold",
|
|
28
30
|
"rounded",
|
|
@@ -32,37 +34,37 @@ const cvaIconButton = classVarianceAuthority.cva(
|
|
|
32
34
|
"focus-visible:outline",
|
|
33
35
|
"focus-visible:outline-2",
|
|
34
36
|
"focus-visible:outline-offset-2",
|
|
35
|
-
"focus-visible:outline-
|
|
37
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
36
38
|
"var-color-transparent/color-secondary",
|
|
37
|
-
"link-disabled:var-color-
|
|
39
|
+
"link-disabled:var-color-ddt-color-common-disabled/color-primary"
|
|
38
40
|
],
|
|
39
41
|
{
|
|
40
42
|
variants: {
|
|
41
43
|
color: {
|
|
42
44
|
default: [
|
|
43
|
-
"link-enabled:var-color-
|
|
44
|
-
"link-enabled:hover:var-color-
|
|
45
|
-
"link-enabled:hover:var-color-
|
|
46
|
-
"link-enabled:active:var-color-
|
|
47
|
-
"link-enabled:active:var-color-
|
|
45
|
+
"link-enabled:var-color-ddt-color-common-brand-default/color-primary",
|
|
46
|
+
"link-enabled:hover:var-color-ddt-color-common-brand-hover/color-primary",
|
|
47
|
+
"link-enabled:hover:var-color-ddt-color-common-surface-brand-hover/color-secondary",
|
|
48
|
+
"link-enabled:active:var-color-ddt-color-common-brand-press/color-primary",
|
|
49
|
+
"link-enabled:active:var-color-ddt-color-common-surface-brand-press/color-secondary"
|
|
48
50
|
],
|
|
49
51
|
neutral: [
|
|
50
|
-
"link-enabled:var-color-
|
|
51
|
-
"link-enabled:hover:var-color-
|
|
52
|
-
"link-enabled:hover:var-color-
|
|
53
|
-
"link-enabled:active:var-color-
|
|
54
|
-
"link-enabled:active:var-color-
|
|
52
|
+
"link-enabled:var-color-ddt-color-common-neutral-default/color-primary",
|
|
53
|
+
"link-enabled:hover:var-color-ddt-color-common-neutral-hover/color-primary",
|
|
54
|
+
"link-enabled:hover:var-color-ddt-color-common-surface-neutral-hover/color-secondary",
|
|
55
|
+
"link-enabled:active:var-color-ddt-color-common-neutral-press/color-primary",
|
|
56
|
+
"link-enabled:active:var-color-ddt-color-common-surface-neutral-press/color-secondary"
|
|
55
57
|
],
|
|
56
58
|
danger: [
|
|
57
|
-
"link-enabled:var-color-
|
|
58
|
-
"link-enabled:hover:var-color-
|
|
59
|
-
"link-enabled:hover:var-color-
|
|
60
|
-
"link-enabled:active:var-color-
|
|
61
|
-
"link-enabled:active:var-color-
|
|
59
|
+
"link-enabled:var-color-ddt-color-common-danger-default/color-primary",
|
|
60
|
+
"link-enabled:hover:var-color-ddt-color-common-danger-hover/color-primary",
|
|
61
|
+
"link-enabled:hover:var-color-ddt-color-common-surface-danger-hover/color-secondary",
|
|
62
|
+
"link-enabled:active:var-color-ddt-color-common-danger-press/color-primary",
|
|
63
|
+
"link-enabled:active:var-color-ddt-color-common-surface-danger-press/color-secondary"
|
|
62
64
|
]
|
|
63
65
|
},
|
|
64
66
|
variant: {
|
|
65
|
-
fill: ["text-
|
|
67
|
+
fill: ["text-ddt-color-common-text-inverse", "bg-[--color-primary]"],
|
|
66
68
|
outline: [
|
|
67
69
|
"border",
|
|
68
70
|
"text-[--color-primary]",
|
|
@@ -74,7 +76,7 @@ const cvaIconButton = classVarianceAuthority.cva(
|
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
);
|
|
77
|
-
exports.DaikinIconButton = class DaikinIconButton extends
|
|
79
|
+
exports.DaikinIconButton = class DaikinIconButton extends ddsElement.DDSElement {
|
|
78
80
|
constructor() {
|
|
79
81
|
super();
|
|
80
82
|
this.variant = "fill";
|
|
@@ -134,6 +136,8 @@ exports.DaikinIconButton.styles = lit.css`
|
|
|
134
136
|
|
|
135
137
|
:host {
|
|
136
138
|
display: inline-block;
|
|
139
|
+
width: 2rem;
|
|
140
|
+
height: 2rem;
|
|
137
141
|
}
|
|
138
142
|
`;
|
|
139
143
|
__decorateClass([
|
|
@@ -161,5 +165,5 @@ __decorateClass([
|
|
|
161
165
|
decorators_js.query("button")
|
|
162
166
|
], exports.DaikinIconButton.prototype, "_button", 2);
|
|
163
167
|
exports.DaikinIconButton = __decorateClass([
|
|
164
|
-
|
|
168
|
+
decorators.ddsElement("daikin-icon-button")
|
|
165
169
|
], exports.DaikinIconButton);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.cjs";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
4
4
|
declare const cvaIconButton: (props?: ({
|
|
@@ -32,7 +32,7 @@ type IconButtonVariantProps = MergeVariantProps<typeof cvaIconButton>;
|
|
|
32
32
|
* </daikin-icon-button>
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
export declare class DaikinIconButton extends
|
|
35
|
+
export declare class DaikinIconButton extends DDSElement {
|
|
36
36
|
static readonly styles: import('lit').CSSResult;
|
|
37
37
|
/**
|
|
38
38
|
* Variant of the button.
|