@daikin-oss/design-system-web-components 0.7.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 +109 -12
- package/README.md +2 -2
- 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 +37 -77
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs/components/button/daikin-button.cjs +20 -8
- package/dist/cjs/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs/components/card/daikin-card.cjs +11 -7
- package/dist/cjs/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
- 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 +34 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +16 -5
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
- 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 +8 -5
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +25 -5
- package/dist/cjs/components/index.d.cts +5 -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 +12 -9
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs/components/link/daikin-link.cjs +9 -6
- 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 +8 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
- 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 +24 -25
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
- 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 +15 -6
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
- 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 +9 -6
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
- 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 +8 -5
- 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 +16 -7
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
- 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 +8 -5
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +25 -5
- package/dist/cjs/tailwind.css.cjs +1 -1
- 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 +37 -77
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
- package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
- package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
- 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 +34 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +16 -5
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
- 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 +8 -5
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +25 -5
- package/dist/cjs-dev/components/index.d.cts +5 -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 +12 -9
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
- 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 +8 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
- 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 +16 -30
- 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 +24 -25
- 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 +45 -23
- 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 +15 -6
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
- 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 +9 -6
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
- 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 +8 -5
- 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 +16 -7
- 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 +16 -7
- 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 +8 -5
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +25 -5
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- 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 +36 -76
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es/components/button/daikin-button.d.ts +6 -3
- package/dist/es/components/button/daikin-button.js +19 -7
- package/dist/es/components/card/daikin-card.d.ts +8 -2
- package/dist/es/components/card/daikin-card.js +10 -6
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es/components/card-header/daikin-card-header.js +8 -8
- 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 +33 -15
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +15 -4
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +11 -4
- package/dist/es/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es/components/icon/daikin-icon.js +7 -4
- 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 +7 -4
- package/dist/es/components/index.d.ts +5 -1
- package/dist/es/components/index.js +10 -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 +15 -7
- package/dist/es/components/input-group/daikin-input-group.js +11 -8
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +8 -5
- 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 +7 -4
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +21 -12
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
- 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 +23 -24
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +44 -22
- 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 +14 -5
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +24 -9
- 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 +8 -5
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
- 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 +7 -4
- 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 +15 -6
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +15 -6
- 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 +7 -4
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es/components/tree/daikin-tree.js +35 -36
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.js +10 -2
- package/dist/es/tailwind.css.js +1 -1
- 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 +36 -76
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
- package/dist/es-dev/components/button/daikin-button.js +19 -7
- package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
- package/dist/es-dev/components/card/daikin-card.js +10 -6
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
- 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 +33 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +15 -4
- 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 +11 -4
- package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es-dev/components/icon/daikin-icon.js +7 -4
- 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 +7 -4
- package/dist/es-dev/components/index.d.ts +5 -1
- package/dist/es-dev/components/index.js +10 -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 +15 -7
- package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +8 -5
- 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 +7 -4
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
- 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 +12 -7
- 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 +15 -29
- 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 +23 -24
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +44 -22
- 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 +14 -5
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +24 -9
- 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 +8 -5
- 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 +7 -4
- 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 +7 -4
- 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 +15 -6
- 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 +15 -6
- 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 +7 -4
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es-dev/components/tree/daikin-tree.js +35 -36
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.js +10 -2
- package/dist/es-dev/tailwind.css.js +1 -1
- 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/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +54 -50
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
- 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/components/notification/daikin-notification.cjs +0 -196
- 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/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -197
- 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/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -197
- 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,5 +1,8 @@
|
|
|
1
|
-
import { css, unsafeCSS,
|
|
2
|
-
import {
|
|
1
|
+
import { css, unsafeCSS, html } from "lit";
|
|
2
|
+
import { property, queryAssignedElements } from "lit/decorators.js";
|
|
3
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
4
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
5
|
+
import "../../base/define.js";
|
|
3
6
|
import tailwindStyles from "../../tailwind.css.js";
|
|
4
7
|
var __defProp = Object.defineProperty;
|
|
5
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -11,7 +14,12 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
11
14
|
if (kind && result) __defProp(target, key, result);
|
|
12
15
|
return result;
|
|
13
16
|
};
|
|
14
|
-
let DaikinAccordion = class extends
|
|
17
|
+
let DaikinAccordion = class extends DDSElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.openItems = [];
|
|
21
|
+
this.exclusive = false;
|
|
22
|
+
}
|
|
15
23
|
_handleMoveFocus(event) {
|
|
16
24
|
const moveOffset = event.detail.direction === "up" ? -1 : 1;
|
|
17
25
|
const items = this._items.filter(({ disabled }) => !disabled);
|
|
@@ -23,9 +31,35 @@ let DaikinAccordion = class extends LitElement {
|
|
|
23
31
|
const nextItem = items[(focusedItemIndex + moveOffset + items.length) % items.length];
|
|
24
32
|
nextItem.focus();
|
|
25
33
|
}
|
|
34
|
+
_handleToggle(event) {
|
|
35
|
+
const targetValue = event.target.name;
|
|
36
|
+
const opened = !event.target.open;
|
|
37
|
+
if (this.exclusive) {
|
|
38
|
+
this.openItems = opened ? [targetValue] : [];
|
|
39
|
+
} else {
|
|
40
|
+
this.openItems = opened ? [...this.openItems, targetValue] : this.openItems.filter((item) => item != targetValue);
|
|
41
|
+
}
|
|
42
|
+
this._reflectItemOpen();
|
|
43
|
+
}
|
|
44
|
+
_reflectItemOpen() {
|
|
45
|
+
{
|
|
46
|
+
if (this.exclusive && this.openItems.length > 1) {
|
|
47
|
+
console.warn(
|
|
48
|
+
`Invalid 'openItems' property: ${JSON.stringify(this.openItems)}. Only one active can be specified when exclusive is set.`
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
for (const item of this._items) {
|
|
53
|
+
item.open = this.openItems.includes(item.name);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
26
56
|
render() {
|
|
27
57
|
return html`<div class="w-full">
|
|
28
|
-
<slot
|
|
58
|
+
<slot
|
|
59
|
+
@accordion-move-focus=${this._handleMoveFocus}
|
|
60
|
+
@toggle=${this._handleToggle}
|
|
61
|
+
@slotchange=${this._reflectItemOpen}
|
|
62
|
+
></slot>
|
|
29
63
|
</div>`;
|
|
30
64
|
}
|
|
31
65
|
};
|
|
@@ -45,11 +79,17 @@ DaikinAccordion.styles = css`
|
|
|
45
79
|
--divider-bottom-display: block;
|
|
46
80
|
}
|
|
47
81
|
`;
|
|
82
|
+
__decorateClass([
|
|
83
|
+
property({ type: Array, attribute: false })
|
|
84
|
+
], DaikinAccordion.prototype, "openItems", 2);
|
|
85
|
+
__decorateClass([
|
|
86
|
+
property({ type: Boolean, reflect: true })
|
|
87
|
+
], DaikinAccordion.prototype, "exclusive", 2);
|
|
48
88
|
__decorateClass([
|
|
49
89
|
queryAssignedElements({ selector: "daikin-accordion-item" })
|
|
50
90
|
], DaikinAccordion.prototype, "_items", 2);
|
|
51
91
|
DaikinAccordion = __decorateClass([
|
|
52
|
-
|
|
92
|
+
ddsElement("daikin-accordion")
|
|
53
93
|
], DaikinAccordion);
|
|
54
94
|
export {
|
|
55
95
|
DaikinAccordion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The accordion item component is a child element within the `daikin-accordion` component.
|
|
4
4
|
* It functions similarly to the HTML `<details>` and `<summary>` tag, allowing users to expand or collapse the associated content by clicking on the header.
|
|
@@ -7,6 +7,8 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
7
7
|
* Hierarchy:
|
|
8
8
|
* - `daikin-accordion` > `daikin-accordion-item`
|
|
9
9
|
*
|
|
10
|
+
* @fires toggle - Fires when the summary is clicked. Used by `daikin-accordion`.
|
|
11
|
+
*
|
|
10
12
|
* @slot - A slot for the accordion item content.
|
|
11
13
|
* @slot summary - A slot for the accordion item summary content.
|
|
12
14
|
*
|
|
@@ -26,12 +28,18 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
26
28
|
* </daikin-accordion-item>
|
|
27
29
|
* ```
|
|
28
30
|
*/
|
|
29
|
-
export declare class DaikinAccordionItem extends
|
|
31
|
+
export declare class DaikinAccordionItem extends DDSElement {
|
|
30
32
|
static readonly styles: import('lit').CSSResult;
|
|
33
|
+
private _summaryRef;
|
|
31
34
|
private _contentRef;
|
|
35
|
+
/**
|
|
36
|
+
* A unique name for the accordion item within the accordion.
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
32
39
|
/**
|
|
33
40
|
* Whether the accordion item is open.
|
|
34
41
|
* Ignored if `disabled` is `true`.
|
|
42
|
+
* Controlled by `daikin-accordion`.
|
|
35
43
|
*/
|
|
36
44
|
open: boolean;
|
|
37
45
|
/**
|
|
@@ -39,23 +47,9 @@ export declare class DaikinAccordionItem extends LitElement {
|
|
|
39
47
|
* If this is set to `true`, the accordion item will always be closed.
|
|
40
48
|
*/
|
|
41
49
|
disabled: boolean;
|
|
42
|
-
private _summary;
|
|
43
|
-
/**
|
|
44
|
-
* Actual presence of `open` attribute of the `<details>` element.
|
|
45
|
-
*
|
|
46
|
-
* The `<details>` element does not support animation on changing the `open` attribute.
|
|
47
|
-
* In other words, the content is hidden immediately when the `open` attribute is removed.
|
|
48
|
-
* To enable animation for an accordion, we need to run the animation while maintaining the `open` attribute, and then remove the `open` attribute at the end of the animation.
|
|
49
|
-
* Treated as `false` if `disabled` is `true`.
|
|
50
|
-
*/
|
|
51
|
-
private _detailsOpen;
|
|
52
|
-
private _contentAnimate;
|
|
53
50
|
private _handleSummaryClick;
|
|
54
51
|
private _handleKeyDown;
|
|
55
|
-
private _handleToggle;
|
|
56
52
|
render(): import('lit-html').TemplateResult<1>;
|
|
57
|
-
protected firstUpdated(): void;
|
|
58
|
-
protected updated(changedProperties: PropertyValues<this>): void;
|
|
59
53
|
/**
|
|
60
54
|
* Focuses on the inner summary.
|
|
61
55
|
* @param options focus options
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property } from "lit/decorators.js";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
5
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -50,51 +53,29 @@ const cvaSummary = cva(
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
);
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
const getContentOpenKeyframe = (content) => ({
|
|
61
|
-
height: `${content.offsetHeight}px`
|
|
56
|
+
const cvaContent = cva(["grid", "duration-[250ms]", "ease-in-out"], {
|
|
57
|
+
variants: {
|
|
58
|
+
open: {
|
|
59
|
+
false: ["grid-rows-[0fr]"],
|
|
60
|
+
true: ["grid-rows-[1fr]"]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
62
63
|
});
|
|
63
|
-
let DaikinAccordionItem = class extends
|
|
64
|
+
let DaikinAccordionItem = class extends DDSElement {
|
|
64
65
|
constructor() {
|
|
65
66
|
super(...arguments);
|
|
67
|
+
this._summaryRef = createRef();
|
|
66
68
|
this._contentRef = createRef();
|
|
69
|
+
this.name = "";
|
|
67
70
|
this.open = false;
|
|
68
71
|
this.disabled = false;
|
|
69
|
-
this._detailsOpen = false;
|
|
70
|
-
}
|
|
71
|
-
_contentAnimate() {
|
|
72
|
-
const content = this._contentRef.value;
|
|
73
|
-
if (!content || this.open === this._detailsOpen) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
if (this.open) {
|
|
77
|
-
this._detailsOpen = this.open;
|
|
78
|
-
content.animate(
|
|
79
|
-
[contentCloseKeyframe, getContentOpenKeyframe(content)],
|
|
80
|
-
animationOption
|
|
81
|
-
);
|
|
82
|
-
} else {
|
|
83
|
-
const animation = content.animate(
|
|
84
|
-
[getContentOpenKeyframe(content), contentCloseKeyframe],
|
|
85
|
-
animationOption
|
|
86
|
-
);
|
|
87
|
-
animation.onfinish = () => {
|
|
88
|
-
this._detailsOpen = this.open;
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
72
|
}
|
|
92
73
|
_handleSummaryClick(event) {
|
|
93
74
|
event.preventDefault();
|
|
94
75
|
if (this.disabled) {
|
|
95
76
|
return;
|
|
96
77
|
}
|
|
97
|
-
this.
|
|
78
|
+
this.dispatchEvent(new Event("toggle", event));
|
|
98
79
|
}
|
|
99
80
|
_handleKeyDown(event) {
|
|
100
81
|
const direction = {
|
|
@@ -114,56 +95,42 @@ let DaikinAccordionItem = class extends LitElement {
|
|
|
114
95
|
})
|
|
115
96
|
);
|
|
116
97
|
}
|
|
117
|
-
// When using the in-page search, the `<details>` element may open without clicking on the `<summary>`.
|
|
118
|
-
// In order to handle such cases, it is necessary to respond to the "toggle" event.
|
|
119
|
-
_handleToggle(event) {
|
|
120
|
-
event.preventDefault();
|
|
121
|
-
if (this.disabled) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
this.open = event.newState === "open";
|
|
125
|
-
}
|
|
126
98
|
render() {
|
|
127
|
-
const detailsOpen = !this.disabled && this._detailsOpen;
|
|
128
99
|
const open = !this.disabled && this.open;
|
|
129
|
-
return html`<
|
|
100
|
+
return html`<div
|
|
130
101
|
class="w-full text-ddt-color-common-text-primary font-daikinSerif overflow-clip"
|
|
131
|
-
?open=${detailsOpen}
|
|
132
|
-
?data-open=${open}
|
|
133
|
-
aria-disabled=${this.disabled}
|
|
134
|
-
@toggle=${this._handleToggle}
|
|
135
102
|
>
|
|
136
|
-
<
|
|
103
|
+
<button
|
|
137
104
|
id="summary"
|
|
105
|
+
${ref(this._summaryRef)}
|
|
138
106
|
class=${cvaSummary({
|
|
139
107
|
open,
|
|
140
108
|
disabled: this.disabled
|
|
141
109
|
})}
|
|
110
|
+
?disabled=${this.disabled}
|
|
111
|
+
aria-expanded=${open}
|
|
112
|
+
aria-controls="content"
|
|
142
113
|
tabindex=${this.disabled ? -1 : 0}
|
|
143
114
|
@click=${this._handleSummaryClick}
|
|
144
115
|
@keydown=${this._handleKeyDown}
|
|
145
116
|
>
|
|
146
117
|
<slot name="summary"></slot>
|
|
147
|
-
</
|
|
118
|
+
</button>
|
|
148
119
|
<div
|
|
149
120
|
${ref(this._contentRef)}
|
|
121
|
+
id="content"
|
|
150
122
|
role="region"
|
|
123
|
+
class=${cvaContent({ open })}
|
|
151
124
|
aria-labelledby="summary"
|
|
152
|
-
?hidden=${
|
|
125
|
+
?hidden=${!open}
|
|
153
126
|
>
|
|
154
|
-
<div class="
|
|
155
|
-
<
|
|
127
|
+
<div class="overflow-hidden">
|
|
128
|
+
<div class="pt-2 px-3 pb-3">
|
|
129
|
+
<slot></slot>
|
|
130
|
+
</div>
|
|
156
131
|
</div>
|
|
157
132
|
</div>
|
|
158
|
-
</
|
|
159
|
-
}
|
|
160
|
-
firstUpdated() {
|
|
161
|
-
this._detailsOpen = this.open;
|
|
162
|
-
}
|
|
163
|
-
updated(changedProperties) {
|
|
164
|
-
if (changedProperties.has("open")) {
|
|
165
|
-
this._contentAnimate();
|
|
166
|
-
}
|
|
133
|
+
</div>`;
|
|
167
134
|
}
|
|
168
135
|
/**
|
|
169
136
|
* Focuses on the inner summary.
|
|
@@ -171,7 +138,7 @@ let DaikinAccordionItem = class extends LitElement {
|
|
|
171
138
|
*/
|
|
172
139
|
focus(options) {
|
|
173
140
|
var _a;
|
|
174
|
-
(_a = this.
|
|
141
|
+
(_a = this._summaryRef.value) == null ? void 0 : _a.focus(options);
|
|
175
142
|
}
|
|
176
143
|
};
|
|
177
144
|
DaikinAccordionItem.styles = css`
|
|
@@ -191,8 +158,6 @@ DaikinAccordionItem.styles = css`
|
|
|
191
158
|
width: 100%;
|
|
192
159
|
height: 1px;
|
|
193
160
|
background: var(--dds-color-divider);
|
|
194
|
-
position: absolute;
|
|
195
|
-
top: 0;
|
|
196
161
|
}
|
|
197
162
|
|
|
198
163
|
:host::after {
|
|
@@ -201,24 +166,19 @@ DaikinAccordionItem.styles = css`
|
|
|
201
166
|
width: 100%;
|
|
202
167
|
height: 1px;
|
|
203
168
|
background: var(--dds-color-divider);
|
|
204
|
-
position: absolute;
|
|
205
|
-
bottom: 0;
|
|
206
169
|
}
|
|
207
170
|
`;
|
|
171
|
+
__decorateClass([
|
|
172
|
+
property({ type: String, reflect: true })
|
|
173
|
+
], DaikinAccordionItem.prototype, "name", 2);
|
|
208
174
|
__decorateClass([
|
|
209
175
|
property({ type: Boolean, reflect: true })
|
|
210
176
|
], DaikinAccordionItem.prototype, "open", 2);
|
|
211
177
|
__decorateClass([
|
|
212
178
|
property({ type: Boolean, reflect: true })
|
|
213
179
|
], DaikinAccordionItem.prototype, "disabled", 2);
|
|
214
|
-
__decorateClass([
|
|
215
|
-
query("summary")
|
|
216
|
-
], DaikinAccordionItem.prototype, "_summary", 2);
|
|
217
|
-
__decorateClass([
|
|
218
|
-
state()
|
|
219
|
-
], DaikinAccordionItem.prototype, "_detailsOpen", 2);
|
|
220
180
|
DaikinAccordionItem = __decorateClass([
|
|
221
|
-
|
|
181
|
+
ddsElement("daikin-accordion-item")
|
|
222
182
|
], DaikinAccordionItem);
|
|
223
183
|
export {
|
|
224
184
|
DaikinAccordionItem
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* `daikin-breadcrumb` is a component for representing a breadcrumb list, and is used together with the `daikin-breadcrumb-item` component.
|
|
4
4
|
*
|
|
@@ -25,7 +25,7 @@ import { LitElement } from 'lit';
|
|
|
25
25
|
* </daikin-breadcrumb>
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export declare class DaikinBreadcrumb extends
|
|
28
|
+
export declare class DaikinBreadcrumb extends DDSElement {
|
|
29
29
|
static readonly styles: import('lit').CSSResult;
|
|
30
30
|
/**
|
|
31
31
|
* Whether or not to change the color of visited links.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { css, unsafeCSS,
|
|
2
|
-
import { property, queryAssignedElements
|
|
1
|
+
import { css, unsafeCSS, html } from "lit";
|
|
2
|
+
import { property, queryAssignedElements } from "lit/decorators.js";
|
|
3
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
4
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
5
|
+
import "../../base/define.js";
|
|
3
6
|
import tailwindStyles from "../../tailwind.css.js";
|
|
4
7
|
var __defProp = Object.defineProperty;
|
|
5
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -11,7 +14,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
11
14
|
if (kind && result) __defProp(target, key, result);
|
|
12
15
|
return result;
|
|
13
16
|
};
|
|
14
|
-
let DaikinBreadcrumb = class extends
|
|
17
|
+
let DaikinBreadcrumb = class extends DDSElement {
|
|
15
18
|
constructor() {
|
|
16
19
|
super(...arguments);
|
|
17
20
|
this.showVisited = false;
|
|
@@ -54,7 +57,7 @@ __decorateClass([
|
|
|
54
57
|
queryAssignedElements({ selector: "daikin-breadcrumb-item" })
|
|
55
58
|
], DaikinBreadcrumb.prototype, "_items", 2);
|
|
56
59
|
DaikinBreadcrumb = __decorateClass([
|
|
57
|
-
|
|
60
|
+
ddsElement("daikin-breadcrumb")
|
|
58
61
|
], DaikinBreadcrumb);
|
|
59
62
|
export {
|
|
60
63
|
DaikinBreadcrumb
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
@@ -20,7 +20,7 @@ import { LitElement } from 'lit';
|
|
|
20
20
|
* </daikin-breadcrumb-item>
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
export declare class DaikinBreadcrumbItem extends
|
|
23
|
+
export declare class DaikinBreadcrumbItem extends DDSElement {
|
|
24
24
|
static styles: import('lit').CSSResult;
|
|
25
25
|
/**
|
|
26
26
|
* Specify link href.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { css, unsafeCSS,
|
|
2
|
-
import { property
|
|
1
|
+
import { css, unsafeCSS, html, nothing } from "lit";
|
|
2
|
+
import { property } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
4
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
6
|
+
import "../../base/define.js";
|
|
4
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
5
8
|
import "../link/daikin-link.js";
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
@@ -13,7 +16,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
13
16
|
if (kind && result) __defProp(target, key, result);
|
|
14
17
|
return result;
|
|
15
18
|
};
|
|
16
|
-
let DaikinBreadcrumbItem = class extends
|
|
19
|
+
let DaikinBreadcrumbItem = class extends DDSElement {
|
|
17
20
|
constructor() {
|
|
18
21
|
super(...arguments);
|
|
19
22
|
this.href = null;
|
|
@@ -62,7 +65,7 @@ __decorateClass([
|
|
|
62
65
|
property({ type: Boolean, reflect: true, attribute: "append-divider" })
|
|
63
66
|
], DaikinBreadcrumbItem.prototype, "appendDivider", 2);
|
|
64
67
|
DaikinBreadcrumbItem = __decorateClass([
|
|
65
|
-
|
|
68
|
+
ddsElement("daikin-breadcrumb-item")
|
|
66
69
|
], DaikinBreadcrumbItem);
|
|
67
70
|
export {
|
|
68
71
|
DaikinBreadcrumbItem
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.js";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
4
4
|
declare const cvaButton: (props?: ({
|
|
@@ -6,7 +6,10 @@ declare const cvaButton: (props?: ({
|
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
7
7
|
size?: "small" | "medium" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
|
|
9
|
+
declare const cvaIcon: (props?: ({
|
|
10
|
+
size?: "small" | "medium" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
|
|
10
13
|
/**
|
|
11
14
|
* The button component is a versatile UI element that triggers actions or submits forms when clicked.
|
|
12
15
|
* 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.
|
|
@@ -29,7 +32,7 @@ type ButtonVariantProps = MergeVariantProps<typeof cvaButton>;
|
|
|
29
32
|
* </daikin-button>
|
|
30
33
|
* ```
|
|
31
34
|
*/
|
|
32
|
-
export declare class DaikinButton extends
|
|
35
|
+
export declare class DaikinButton extends DDSElement {
|
|
33
36
|
static readonly styles: import('lit').CSSResult;
|
|
34
37
|
/**
|
|
35
38
|
* Variant of the button.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, query
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property, query } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
5
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -68,7 +71,15 @@ const cvaButton = cva(
|
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
);
|
|
71
|
-
|
|
74
|
+
const cvaIcon = cva([], {
|
|
75
|
+
variants: {
|
|
76
|
+
size: {
|
|
77
|
+
small: ["icon-size-4"],
|
|
78
|
+
medium: ["icon-size-6"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
let DaikinButton = class extends DDSElement {
|
|
72
83
|
constructor() {
|
|
73
84
|
super();
|
|
74
85
|
this.variant = "fill";
|
|
@@ -79,7 +90,7 @@ let DaikinButton = class extends LitElement {
|
|
|
79
90
|
this.type = "button";
|
|
80
91
|
this.buttonRole = null;
|
|
81
92
|
this.addEventListener("click", (event) => {
|
|
82
|
-
if (this.disabled) {
|
|
93
|
+
if (this.disabled || this.type === "link" && this.href == null) {
|
|
83
94
|
event.stopImmediatePropagation();
|
|
84
95
|
}
|
|
85
96
|
});
|
|
@@ -116,11 +127,11 @@ let DaikinButton = class extends LitElement {
|
|
|
116
127
|
type=${this.type}
|
|
117
128
|
role=${ifDefined(this.buttonRole ?? void 0)}
|
|
118
129
|
>
|
|
119
|
-
<slot name="left-icon" class
|
|
130
|
+
<slot name="left-icon" class=${cvaIcon({ size: this.size })}>
|
|
120
131
|
<span class="block -ml-1"></span>
|
|
121
132
|
</slot>
|
|
122
133
|
<span class="px-2"><slot></slot></span>
|
|
123
|
-
<slot name="right-icon" class
|
|
134
|
+
<slot name="right-icon" class=${cvaIcon({ size: this.size })}>
|
|
124
135
|
<span class="block -mr-1"></span>
|
|
125
136
|
</slot>
|
|
126
137
|
</button>
|
|
@@ -140,6 +151,7 @@ DaikinButton.styles = css`
|
|
|
140
151
|
|
|
141
152
|
:host {
|
|
142
153
|
display: inline-flex;
|
|
154
|
+
max-width: 100%;
|
|
143
155
|
}
|
|
144
156
|
|
|
145
157
|
:host([size="small"]) {
|
|
@@ -177,7 +189,7 @@ __decorateClass([
|
|
|
177
189
|
query("a,button")
|
|
178
190
|
], DaikinButton.prototype, "_focusableElement", 2);
|
|
179
191
|
DaikinButton = __decorateClass([
|
|
180
|
-
|
|
192
|
+
ddsElement("daikin-button")
|
|
181
193
|
], DaikinButton);
|
|
182
194
|
export {
|
|
183
195
|
DaikinButton
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* `daikin-card` is a component for display content related to a single subject. The content can consist of multiple elements of varying types and sizes.
|
|
4
4
|
*
|
|
@@ -10,6 +10,12 @@ import { LitElement } from 'lit';
|
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
*
|
|
13
|
+
* ```js
|
|
14
|
+
* import "@daikin-oss/design-system-web-components/components/card/index.js";
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/card-footer/index.js";
|
|
16
|
+
* import "@daikin-oss/design-system-web-components/components/card-header/index.js";
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
13
19
|
* ```html
|
|
14
20
|
* <daikin-card outline>
|
|
15
21
|
* <daikin-card-header>
|
|
@@ -27,7 +33,7 @@ import { LitElement } from 'lit';
|
|
|
27
33
|
* </daikin-card>
|
|
28
34
|
* ```
|
|
29
35
|
*/
|
|
30
|
-
export declare class DaikinCard extends
|
|
36
|
+
export declare class DaikinCard extends DDSElement {
|
|
31
37
|
static styles: import('lit').CSSResult;
|
|
32
38
|
/**
|
|
33
39
|
* Specify whether the card border to be visible or not.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property } from "lit/decorators.js";
|
|
4
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
6
|
+
import "../../base/define.js";
|
|
4
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
5
8
|
var __defProp = Object.defineProperty;
|
|
6
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -17,6 +20,7 @@ const cvaContainer = cva(
|
|
|
17
20
|
"flex",
|
|
18
21
|
"flex-col",
|
|
19
22
|
"gap-4",
|
|
23
|
+
"size-full",
|
|
20
24
|
"p-4",
|
|
21
25
|
"rounded-lg",
|
|
22
26
|
"bg-ddt-color-common-background-default"
|
|
@@ -30,7 +34,7 @@ const cvaContainer = cva(
|
|
|
30
34
|
}
|
|
31
35
|
}
|
|
32
36
|
);
|
|
33
|
-
let DaikinCard = class extends
|
|
37
|
+
let DaikinCard = class extends DDSElement {
|
|
34
38
|
constructor() {
|
|
35
39
|
super(...arguments);
|
|
36
40
|
this.outline = false;
|
|
@@ -49,15 +53,15 @@ DaikinCard.styles = css`
|
|
|
49
53
|
${unsafeCSS(tailwindStyles)}
|
|
50
54
|
|
|
51
55
|
:host {
|
|
52
|
-
display:
|
|
53
|
-
width:
|
|
56
|
+
display: block;
|
|
57
|
+
width: 100%;
|
|
54
58
|
}
|
|
55
59
|
`;
|
|
56
60
|
__decorateClass([
|
|
57
61
|
property({ type: Boolean, reflect: true })
|
|
58
62
|
], DaikinCard.prototype, "outline", 2);
|
|
59
63
|
DaikinCard = __decorateClass([
|
|
60
|
-
|
|
64
|
+
ddsElement("daikin-card")
|
|
61
65
|
], DaikinCard);
|
|
62
66
|
export {
|
|
63
67
|
DaikinCard
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* `daikin-card-footer` is used to represent footer of the card component, and is used as a child element of the `daikin-card` component.
|
|
4
4
|
*
|
|
@@ -9,6 +9,10 @@ import { LitElement } from 'lit';
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
*
|
|
12
|
+
* ```js
|
|
13
|
+
* import "@daikin-oss/design-system-web-components/components/card-footer/index.js";
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
12
16
|
* ```html
|
|
13
17
|
* <!-- See `daikin-card` component for complete example. -->
|
|
14
18
|
* <daikin-card-footer>
|
|
@@ -18,7 +22,7 @@ import { LitElement } from 'lit';
|
|
|
18
22
|
* </daikin-card-footer>
|
|
19
23
|
* ```
|
|
20
24
|
*/
|
|
21
|
-
export declare class DaikinCardFooter extends
|
|
25
|
+
export declare class DaikinCardFooter extends DDSElement {
|
|
22
26
|
static styles: import('lit').CSSResult;
|
|
23
27
|
render(): import('lit-html').TemplateResult<1>;
|
|
24
28
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { css, unsafeCSS,
|
|
2
|
-
import {
|
|
1
|
+
import { css, unsafeCSS, html } from "lit";
|
|
2
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
3
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
4
|
+
import "../../base/define.js";
|
|
3
5
|
import tailwindStyles from "../../tailwind.css.js";
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
7
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
7
8
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
8
9
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9
10
|
if (decorator = decorators[i])
|
|
10
|
-
result =
|
|
11
|
-
if (kind && result) __defProp(target, key, result);
|
|
11
|
+
result = decorator(result) || result;
|
|
12
12
|
return result;
|
|
13
13
|
};
|
|
14
|
-
let DaikinCardFooter = class extends
|
|
14
|
+
let DaikinCardFooter = class extends DDSElement {
|
|
15
15
|
render() {
|
|
16
16
|
return html`<slot></slot>`;
|
|
17
17
|
}
|
|
@@ -27,7 +27,7 @@ DaikinCardFooter.styles = css`
|
|
|
27
27
|
}
|
|
28
28
|
`;
|
|
29
29
|
DaikinCardFooter = __decorateClass([
|
|
30
|
-
|
|
30
|
+
ddsElement("daikin-card-footer")
|
|
31
31
|
], DaikinCardFooter);
|
|
32
32
|
export {
|
|
33
33
|
DaikinCardFooter
|