@daikin-oss/design-system-web-components 0.7.0 → 1.1.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 +127 -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/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +64 -0
- package/dist/cjs/components/avatar/index.cjs +7 -0
- package/dist/cjs/components/avatar/index.d.cts +1 -0
- 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 +35 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +8 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +161 -74
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +64 -11
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
- 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 +4 -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 +33 -3
- package/dist/cjs/components/index.d.cts +7 -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/loading/daikin-loading.cjs +91 -0
- package/dist/cjs/components/loading/daikin-loading.d.cts +32 -0
- package/dist/cjs/components/loading/index.cjs +7 -0
- package/dist/cjs/components/loading/index.d.cts +1 -0
- 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 +33 -3
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs/utils/is-similar-to-click.d.cts +1 -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 +37 -77
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +64 -0
- package/dist/cjs-dev/components/avatar/index.cjs +7 -0
- package/dist/cjs-dev/components/avatar/index.d.cts +1 -0
- 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 +35 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +8 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +161 -74
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +64 -11
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
- 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 +4 -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 +33 -3
- package/dist/cjs-dev/components/index.d.cts +7 -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/loading/daikin-loading.cjs +91 -0
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +32 -0
- package/dist/cjs-dev/components/loading/index.cjs +7 -0
- package/dist/cjs-dev/components/loading/index.d.cts +1 -0
- 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 +33 -3
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs-dev/utils/is-similar-to-click.d.cts +1 -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 +36 -76
- package/dist/es/components/avatar/daikin-avatar.d.ts +64 -0
- package/dist/es/components/avatar/daikin-avatar.js +161 -0
- package/dist/es/components/avatar/index.d.ts +1 -0
- package/dist/es/components/avatar/index.js +4 -0
- 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 +8 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +34 -15
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +64 -11
- package/dist/es/components/dropdown/daikin-dropdown.js +160 -73
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +108 -40
- 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 +4 -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 +7 -1
- package/dist/es/components/index.js +14 -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/loading/daikin-loading.d.ts +32 -0
- package/dist/es/components/loading/daikin-loading.js +92 -0
- package/dist/es/components/loading/index.d.ts +1 -0
- package/dist/es/components/loading/index.js +4 -0
- 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 +14 -2
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es/utils/is-similar-to-click.js +4 -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 +36 -76
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +64 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +161 -0
- package/dist/es-dev/components/avatar/index.d.ts +1 -0
- package/dist/es-dev/components/avatar/index.js +4 -0
- 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 +8 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +34 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +64 -11
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +160 -73
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +108 -40
- 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 +4 -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 +7 -1
- package/dist/es-dev/components/index.js +14 -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/loading/daikin-loading.d.ts +32 -0
- package/dist/es-dev/components/loading/daikin-loading.js +92 -0
- package/dist/es-dev/components/loading/index.d.ts +1 -0
- package/dist/es-dev/components/loading/index.js +4 -0
- 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 +14 -2
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es-dev/utils/is-similar-to-click.js +4 -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/profile.svg +4 -0
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,120 @@
|
|
|
1
1
|
# @daikin-oss/design-system-web-components
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#153](https://github.com/dsv-rp/DDS/pull/153) [`8fe1ed0`](https://github.com/dsv-rp/DDS/commit/8fe1ed0d692f9f85a2c173adeb2111b7715f9f61) Thanks [@poetrainy](https://github.com/poetrainy)! - Loading: Initial Implementation. (DDS-1716)
|
|
8
|
+
|
|
9
|
+
- [#154](https://github.com/dsv-rp/DDS/pull/154) [`2ad908a`](https://github.com/dsv-rp/DDS/commit/2ad908a4bec6c42414c7427f9262b506aa153c0b) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Avatar: Initial Implementation. (DDS-1880)
|
|
10
|
+
|
|
11
|
+
- [#121](https://github.com/dsv-rp/DDS/pull/121) [`72c8153`](https://github.com/dsv-rp/DDS/commit/72c81538970bbd341e5ff6bd25b886cc5056ba42) Thanks [@poetrainy](https://github.com/poetrainy)! - Dropdown: The `multiple`, `selectedOptions` and `maxLabels` properties have been added. (DDS-1695)
|
|
12
|
+
Dropdown Item: The `selectable` property has been added. (DDS-1695)
|
|
13
|
+
Checkbox: The `label` CSS part has been added. (DDS-1695)
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#165](https://github.com/dsv-rp/DDS/pull/165) [`d4895ec`](https://github.com/dsv-rp/DDS/commit/d4895eccd896abd6e2ff16b18f61e7acd9d5026f) Thanks [@yodas7](https://github.com/yodas7)! - Removed Provenance.
|
|
18
|
+
|
|
19
|
+
- [#121](https://github.com/dsv-rp/DDS/pull/121) [`72c8153`](https://github.com/dsv-rp/DDS/commit/72c81538970bbd341e5ff6bd25b886cc5056ba42) Thanks [@poetrainy](https://github.com/poetrainy)! - Dropdown: Updated appearance. (DDS-1870)
|
|
20
|
+
|
|
21
|
+
## 1.0.0
|
|
22
|
+
|
|
23
|
+
### Major Changes
|
|
24
|
+
|
|
25
|
+
- [#156](https://github.com/dsv-rp/DDS/pull/156) [`bb71fa8`](https://github.com/dsv-rp/DDS/commit/bb71fa8316e179b8e7d8b1944123bc9198b51734) Thanks [@yodas7](https://github.com/yodas7)! - v1 Release.
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- [#98](https://github.com/dsv-rp/DDS/pull/98) [`b5d0822`](https://github.com/dsv-rp/DDS/commit/b5d08224b88151d9be875f3d2ccb195fe71ce9fe) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Tooltip: The `variant` attribute has been replaced by the `color` attribute, which accepts `default` and `inverse` instead of `light` and `dark`.
|
|
30
|
+
Tooltip: Replaced colors with design tokens (brings dark mode support).
|
|
31
|
+
Tooltip: Update appearance.
|
|
32
|
+
|
|
33
|
+
- [#143](https://github.com/dsv-rp/DDS/pull/143) [`42c0a7f`](https://github.com/dsv-rp/DDS/commit/42c0a7f06ae2b39e9207a554549fd52f95fc0649) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - **BREAKING CHANGE** Radio Group: Fixed an issue where the `"horizontal"` and `"vertical"` of the `orientation` property were switched. Also, the default value is now `"vertical"`.
|
|
34
|
+
|
|
35
|
+
- [#109](https://github.com/dsv-rp/DDS/pull/109) [`f08378f`](https://github.com/dsv-rp/DDS/commit/f08378f746e93529d10ce40f9075e4e783b7e7dc) Thanks [@poetrainy](https://github.com/poetrainy)! - Carousel: Initial Implementation. (DDS-1296)
|
|
36
|
+
|
|
37
|
+
- [#124](https://github.com/dsv-rp/DDS/pull/124) [`2695f01`](https://github.com/dsv-rp/DDS/commit/2695f0162180baeff767334de5a13a0128bad8bc) Thanks [@poetrainy](https://github.com/poetrainy)! - Carousel Item: Added `title` and `description` slots. (DDS-1820)
|
|
38
|
+
|
|
39
|
+
- [#117](https://github.com/dsv-rp/DDS/pull/117) [`b45a524`](https://github.com/dsv-rp/DDS/commit/b45a524ed060a415621a4a57e1de8efb3925723b) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Accordion Item: The `open` attribute is now controlled by the parent `<daikin-accordion>` element.
|
|
40
|
+
Accordion: The `openItems` and `exclusive` attributes have been added.
|
|
41
|
+
Accordion Item: The `name` attribute has been added.
|
|
42
|
+
|
|
43
|
+
- [#130](https://github.com/dsv-rp/DDS/pull/130) [`80374c3`](https://github.com/dsv-rp/DDS/commit/80374c3e3330798ccc5385eacbb5b8c91a53d0dd) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - **BREAKING CHANGE** Icon: Removed arrowUp icon. (DDS-1822)
|
|
44
|
+
|
|
45
|
+
- [#132](https://github.com/dsv-rp/DDS/pull/132) [`c8e2137`](https://github.com/dsv-rp/DDS/commit/c8e2137ada522398f0f88c7046db309542f56116) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Tree: The selection status of the tree items is now managed by `selectedItems` property of `daikin-tree`. (DDS-1869)
|
|
46
|
+
**BREAKING CHANGE** Tree: The `selected` property has been removed. Use `selectedItems` instead. (DDS-1869)
|
|
47
|
+
Tree: Updated appearance. (DDS-1869)
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- [#119](https://github.com/dsv-rp/DDS/pull/119) [`1071b92`](https://github.com/dsv-rp/DDS/commit/1071b9250ed147f76ddf4bb402368897078c9d4b) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Notification: The notification component has been removed and split into inline notification and toast notification.
|
|
52
|
+
Toast Notification: Initial Implementation. (DDS-1172)
|
|
53
|
+
Inline Notification: Initial Implementation. (DDS-1362)
|
|
54
|
+
|
|
55
|
+
- [#151](https://github.com/dsv-rp/DDS/pull/151) [`bc99ad1`](https://github.com/dsv-rp/DDS/commit/bc99ad16878f12a4003ea7374971faca3293cbbb) Thanks [@yodas7](https://github.com/yodas7)! - Detect multiple registrations and display a warning if the versions are different.
|
|
56
|
+
|
|
57
|
+
- [#116](https://github.com/dsv-rp/DDS/pull/116) [`49fbc4b`](https://github.com/dsv-rp/DDS/commit/49fbc4bb39d3c1c39d0486f43cc9f9945fdbe794) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Pagination: Updated appearance.
|
|
58
|
+
|
|
59
|
+
- [#128](https://github.com/dsv-rp/DDS/pull/128) [`9e27a56`](https://github.com/dsv-rp/DDS/commit/9e27a565eb2e2f6f9b6781645d6fb04640930a16) Thanks [@poetrainy](https://github.com/poetrainy)! - Progress Bar: Updated appearance. (DDS-1865)
|
|
60
|
+
|
|
61
|
+
- [#118](https://github.com/dsv-rp/DDS/pull/118) [`b3c90a8`](https://github.com/dsv-rp/DDS/commit/b3c90a8f69b1144e9631c258b7b96bc792e8b7f2) Thanks [@poetrainy](https://github.com/poetrainy)! - Progress Bar: Updated appearance.
|
|
62
|
+
|
|
63
|
+
- [#133](https://github.com/dsv-rp/DDS/pull/133) [`396b75f`](https://github.com/dsv-rp/DDS/commit/396b75f0e6d9b271024ac35f502596fd7324e933) Thanks [@poetrainy](https://github.com/poetrainy)! - Checkbox: Added a slot to override the label. The behavior does not change if the slot is not used. (DDS-1859)
|
|
64
|
+
Checkbox: Fixed an issue where the size of the component could not be changed. (DDS-1859)
|
|
65
|
+
Checkbox: Updated appearance. (DDS-1859)
|
|
66
|
+
|
|
67
|
+
- [#139](https://github.com/dsv-rp/DDS/pull/139) [`08c7ebb`](https://github.com/dsv-rp/DDS/commit/08c7ebbfc375e22fa6dec58afc8eda84fc2e2b98) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - List: Updated documentation. (DDS-1838)
|
|
68
|
+
|
|
69
|
+
- [#113](https://github.com/dsv-rp/DDS/pull/113) [`d379004`](https://github.com/dsv-rp/DDS/commit/d3790049271f9a7c120991335428a48f229bab65) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Checkbox: Fixed an issue where clicking the label triggers click event twice. (DDS-1679)
|
|
70
|
+
Radio Button: Fixed an issue where clicking the label triggers click event twice. (DDS-1679)
|
|
71
|
+
|
|
72
|
+
- [#125](https://github.com/dsv-rp/DDS/pull/125) [`551d75d`](https://github.com/dsv-rp/DDS/commit/551d75dfd75794e0761905921d927493dc18e8fb) Thanks [@poetrainy](https://github.com/poetrainy)! - Input Group: Updated appearance. (DDS-1862)
|
|
73
|
+
|
|
74
|
+
- [#137](https://github.com/dsv-rp/DDS/pull/137) [`a92d21b`](https://github.com/dsv-rp/DDS/commit/a92d21ba7f81e8b4e0dd110753e8bbc6df3bafb4) Thanks [@poetrainy](https://github.com/poetrainy)! - Tabs: The `sizing` attribute has been added. (DDS-1889)
|
|
75
|
+
Tab: Updated appearance. (DDS-1889)
|
|
76
|
+
|
|
77
|
+
- [#126](https://github.com/dsv-rp/DDS/pull/126) [`6f602fd`](https://github.com/dsv-rp/DDS/commit/6f602fd5c3fcab05fdb7d208d6a5aa298351a318) Thanks [@poetrainy](https://github.com/poetrainy)! - Radio Group: Updated appearance. (DDS-1860)
|
|
78
|
+
Radio: Added a slot to override the label. The behavior does not change if the slot is not used. (DDS-1860)
|
|
79
|
+
Radio: Fixed an issue where the size of the component could not be changed. (DDS-1860)
|
|
80
|
+
|
|
81
|
+
- [#123](https://github.com/dsv-rp/DDS/pull/123) [`5f75fc5`](https://github.com/dsv-rp/DDS/commit/5f75fc5fa9207762744e55d079ccfbdc74413a36) Thanks [@poetrainy](https://github.com/poetrainy)! - Card: Fixed an issue where the size of the component could not be changed. (DDS-1871)
|
|
82
|
+
Card: Updated appearance. (DDS-1871)
|
|
83
|
+
|
|
84
|
+
- [#127](https://github.com/dsv-rp/DDS/pull/127) [`146ce67`](https://github.com/dsv-rp/DDS/commit/146ce670de011022ae5fa70debea6bd5db436bcf) Thanks [@poetrainy](https://github.com/poetrainy)! - Select: Updated appearance. (DDS-1872)
|
|
85
|
+
|
|
86
|
+
- [#140](https://github.com/dsv-rp/DDS/pull/140) [`40d58de`](https://github.com/dsv-rp/DDS/commit/40d58de5f4d8e67d52878c116ef69df4006f1c16) Thanks [@poetrainy](https://github.com/poetrainy)! - Progress Indicator: The `status` property of `<daikin-progress-indicator-item>` is now controlled by the `currentItem` property of the parent `<daikin-progress-indicator>` element. (DDS-1866)
|
|
87
|
+
|
|
88
|
+
- [#138](https://github.com/dsv-rp/DDS/pull/138) [`4556342`](https://github.com/dsv-rp/DDS/commit/455634225da4fcabd79ca209b286d61700309d17) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Link: Fixed an issue where the color was incorrect in Firefox. (DDS-1823)
|
|
89
|
+
|
|
90
|
+
- [#131](https://github.com/dsv-rp/DDS/pull/131) [`cf6fa55`](https://github.com/dsv-rp/DDS/commit/cf6fa55a6f6b0700238fb031643fb4b50cf8d8a0) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Pagination: Updated appearance. (DDS-1845)
|
|
91
|
+
Pagination: Added ARIA role. (DDS-1845)
|
|
92
|
+
|
|
93
|
+
- [#149](https://github.com/dsv-rp/DDS/pull/149) [`9edd37a`](https://github.com/dsv-rp/DDS/commit/9edd37a53f1fcedb590fe1cab307123e2aac77a7) Thanks [@poetrainy](https://github.com/poetrainy)! - Link: Updated appearance.
|
|
94
|
+
|
|
95
|
+
- [#141](https://github.com/dsv-rp/DDS/pull/141) [`bca6b9f`](https://github.com/dsv-rp/DDS/commit/bca6b9fd9a39c6a1de93d195e3fe71354fb8d43c) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Storybook: Changed the order of the properties in the Controls tab. (DDS-1907)
|
|
96
|
+
|
|
97
|
+
- [#115](https://github.com/dsv-rp/DDS/pull/115) [`91b8fe9`](https://github.com/dsv-rp/DDS/commit/91b8fe94b3262bd6197428e66192d7b9555b1d09) Thanks [@poetrainy](https://github.com/poetrainy)! - Progress Indicator: Updated appearance.
|
|
98
|
+
|
|
99
|
+
- [#122](https://github.com/dsv-rp/DDS/pull/122) [`94e5885`](https://github.com/dsv-rp/DDS/commit/94e588554b5e11d41f5dc86cada75b2dd2d41c9d) Thanks [@yodas7](https://github.com/yodas7)! - Updated dependencies.
|
|
100
|
+
This also resolves the problem of some Storybook pages not being able to be opened in Safari.
|
|
101
|
+
|
|
102
|
+
- [#135](https://github.com/dsv-rp/DDS/pull/135) [`4423787`](https://github.com/dsv-rp/DDS/commit/4423787fcf28f297022690b8bbca3c135742b68f) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Accordion: Fixed bugs when viewing in Safari. (DDS-1837)
|
|
103
|
+
Accordion: The contents of closed accordions will no longer be found by in-page search.
|
|
104
|
+
Accordion: Updated appearance. (DDS-1837)
|
|
105
|
+
|
|
106
|
+
- [#129](https://github.com/dsv-rp/DDS/pull/129) [`9042252`](https://github.com/dsv-rp/DDS/commit/9042252d31641f7bd08bc4cc7f61634cff24b3d3) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Button: Set the maximum width by default. (DDS-1821)
|
|
107
|
+
Button: Fixed an issue where click events could be propagated through disabled links. (DDS-1821)
|
|
108
|
+
|
|
109
|
+
- [#134](https://github.com/dsv-rp/DDS/pull/134) [`4c49e5e`](https://github.com/dsv-rp/DDS/commit/4c49e5ee305b5f169186245441bd27da8352c748) Thanks [@poetrainy](https://github.com/poetrainy)! - Text Area: Updated appearance. (DDS-1863)
|
|
110
|
+
|
|
111
|
+
- [#152](https://github.com/dsv-rp/DDS/pull/152) [`65fb740`](https://github.com/dsv-rp/DDS/commit/65fb74071e23e13ca981b76662cff3877d051e79) Thanks [@poetrainy](https://github.com/poetrainy)! - Tabs: Updated appearance. (DDS-1931)
|
|
112
|
+
|
|
113
|
+
- [#145](https://github.com/dsv-rp/DDS/pull/145) [`fcba2a4`](https://github.com/dsv-rp/DDS/commit/fcba2a4161f164c4301fba97c00097dbffe1ccc0) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Radio Group: Added support for reflecting the `disabled` property of the Input Group component. (DDS-1829)
|
|
114
|
+
Radio Group: Elements now wrap rather than overflow when placed horizontally. (DDS-1829)
|
|
115
|
+
|
|
116
|
+
- [#136](https://github.com/dsv-rp/DDS/pull/136) [`a148bc4`](https://github.com/dsv-rp/DDS/commit/a148bc4fa4ea8ee2a44efc45f8739513d5dc6065) Thanks [@poetrainy](https://github.com/poetrainy)! - Table: Updated appearance. (DDS-1857)
|
|
117
|
+
|
|
3
118
|
## 0.7.0
|
|
4
119
|
|
|
5
120
|
### Minor Changes
|
|
@@ -81,7 +196,7 @@
|
|
|
81
196
|
|
|
82
197
|
- [#88](https://github.com/dsv-rp/DDS/pull/88) [`90e1625`](https://github.com/dsv-rp/DDS/commit/90e1625f6455b60670920e397a51370eba70ace8) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Icon: The `size` attribute now defaults to `current`.
|
|
83
198
|
Icon Button: Add Icon Button Component. (DDS-1536)
|
|
84
|
-
Icon: The `size` attribute now accepts `current
|
|
199
|
+
Icon: The `size` attribute now accepts `current` , which references `--dds-icon-size` CSS variable.
|
|
85
200
|
|
|
86
201
|
- [#96](https://github.com/dsv-rp/DDS/pull/96) [`bdd827f`](https://github.com/dsv-rp/DDS/commit/bdd827fe1bc400de68f11a63bb6312d368cdadd9) Thanks [@poetrainy](https://github.com/poetrainy)! - Accordion: Update appearance.
|
|
87
202
|
|
|
@@ -110,14 +225,14 @@
|
|
|
110
225
|
|
|
111
226
|
- [#74](https://github.com/dsv-rp/DDS/pull/74) [`3151097`](https://github.com/dsv-rp/DDS/commit/3151097362d40e58e18e70914c5dd2ee83f6c430) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Tooltip: The `closeOnClick` attribute has been removed. (DDS-1501)
|
|
112
227
|
**BREAKING CHANGE** Tooltip: The `trigger` and `tooltip` CSS parts have been removed. (DDS-1501)
|
|
113
|
-
**BREAKING CHANGE** Tooltip: The `tooltip` slot has been renamed to `description
|
|
114
|
-
Tooltip: The `trigger` attribute now accepts value of `"click"
|
|
228
|
+
**BREAKING CHANGE** Tooltip: The `tooltip` slot has been renamed to `description` . (DDS-1501)
|
|
229
|
+
Tooltip: The `trigger` attribute now accepts value of `"click"` . (DDS-1501)
|
|
115
230
|
Tooltip: The `popover-value` attribute has been added. (DDS-1501)
|
|
116
231
|
|
|
117
232
|
- [#64](https://github.com/dsv-rp/DDS/pull/64) [`d0c031d`](https://github.com/dsv-rp/DDS/commit/d0c031d28a6eeac5043546ee01209e86c9f5fc2a) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Text Area: Renamed Textarea (`daikin-textarea`) to Text Area (`daikin-text-area`). (DDS-1327)
|
|
118
233
|
**BREAKING CHANGE** Text Area: The `maxlength` attribute have been removed. (DDS-1327)
|
|
119
234
|
**BREAKING CHANGE** Input Group: The `textareaCounter` attribute has been removed and the `textareaMaxCount` attribute has been added. (DDS-1327)
|
|
120
|
-
Text Area: The `resizable
|
|
235
|
+
Text Area: The `resizable` , `name` and `error` attributes has been added. (DDS-1327)
|
|
121
236
|
Text Area: Updated appearance. (DDS-1327)
|
|
122
237
|
|
|
123
238
|
- [#62](https://github.com/dsv-rp/DDS/pull/62) [`94d6548`](https://github.com/dsv-rp/DDS/commit/94d65484625bebb2f17f023bb55b565d29d8c972) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Text Field: Renamed Text Input to Text Field. (DDS-1325)
|
|
@@ -145,35 +260,35 @@
|
|
|
145
260
|
|
|
146
261
|
- [#60](https://github.com/dsv-rp/DDS/pull/60) [`b6d7d9f`](https://github.com/dsv-rp/DDS/commit/b6d7d9f4bb5286bb9a8dc719628624dcca3c0f75) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Checkbox: The `readonly`, `size` and `error` property has been removed. (DDS-1288)
|
|
147
262
|
**BREAKING CHANGE** Checkbox: The `labelPosition` property now removed `"left"` value. (DDS-1288)
|
|
148
|
-
**BREAKING CHANGE** Checkbox: The `labelPosition` attribute (not property) has been renamed to `label-position
|
|
263
|
+
**BREAKING CHANGE** Checkbox: The `labelPosition` attribute (not property) has been renamed to `label-position` . (DDS-1288)
|
|
149
264
|
Checkbox: The `labelPosition` property now accepts `"hidden"` value. (DDS-1288)
|
|
150
265
|
Checkbox: Updated appearance. (DDS-1288)
|
|
151
266
|
|
|
152
267
|
- [#75](https://github.com/dsv-rp/DDS/pull/75) [`3922068`](https://github.com/dsv-rp/DDS/commit/3922068e28efcd5786f576435f68c35983f252c2) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Improve breadcrumb accessibility. (DDS-1482)
|
|
153
|
-
**BREAKING CHANGE** Remove `link` slot from `daikin-breadcrumb-item
|
|
268
|
+
**BREAKING CHANGE** Remove `link` slot from `daikin-breadcrumb-item` .
|
|
154
269
|
|
|
155
270
|
- [#69](https://github.com/dsv-rp/DDS/pull/69) [`3fcbc38`](https://github.com/dsv-rp/DDS/commit/3fcbc38a1affb1f3d50dbfb4e1aeb1fd34f301a7) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Accordion: The `title` attribute has been removed and replaced with a `summary` slot. (DDS-1414)
|
|
156
271
|
Accordion: Updated appearance. (DDS-1414)
|
|
157
272
|
Accordion Item: Updated appearance. (DDS-1414)
|
|
158
273
|
|
|
159
274
|
- [#61](https://github.com/dsv-rp/DDS/pull/61) [`36ef955`](https://github.com/dsv-rp/DDS/commit/36ef9551a504de318a51a738b9b6b58edfb7f6f9) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Radio: The `readonly`, `size` and `error` properties have been removed. (DDS-1350)
|
|
160
|
-
**BREAKING CHANGE** Radio: The `labelPosition` property no longer supports `"left"
|
|
161
|
-
**BREAKING CHANGE** Radio: The `labelPosition` attribute (not property) has been renamed to `label-position
|
|
275
|
+
**BREAKING CHANGE** Radio: The `labelPosition` property no longer supports `"left"` . Instead, it now supports `"hidden"` . (DDS-1350)
|
|
276
|
+
**BREAKING CHANGE** Radio: The `labelPosition` attribute (not property) has been renamed to `label-position` .
|
|
162
277
|
Radio: Updated appearance. (DDS-1350)
|
|
163
278
|
|
|
164
279
|
- [#56](https://github.com/dsv-rp/DDS/pull/56) [`a81916a`](https://github.com/dsv-rp/DDS/commit/a81916ac21c4fec5e85eb1e8bf9005137887a662) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Button: The `role` attribute/property is renamed to `button-role` attribute and `buttonRole` property to avoid conflicts with standard HTML attributes.
|
|
165
|
-
**BREAKING CHANGE** Button: The `variant` attribute now accepts values of `"fill"
|
|
280
|
+
**BREAKING CHANGE** Button: The `variant` attribute now accepts values of `"fill"` , `"outline"` and `"ghost"` , instead of `"primary"` , `"secondary"` , `"tertiary"` and `"primaryDanger"` .
|
|
166
281
|
**BREAKING CHANGE** Button: The `isLoading` attribute has been removed.
|
|
167
282
|
**BREAKING CHANGE** Button: The `leftIcon` and `rightIcon` attributes have been renamed to `left-icon` and `right-icon` respectively.
|
|
168
|
-
**BREAKING CHANGE** Button: The `type` attribute now accepts `"link"
|
|
169
|
-
Button: Added `color` attribute that accepts values of `"default"` and `"danger"
|
|
283
|
+
**BREAKING CHANGE** Button: The `type` attribute now accepts `"link"` , and whether the button becomes a link is now determined by the `type` attribute, not by the presence of the `href` attribute. If `href` is omitted with `type="link"` , it is treated as a disabled state.
|
|
284
|
+
Button: Added `color` attribute that accepts values of `"default"` and `"danger"` .
|
|
170
285
|
Button: Updated appearance. (DDS-1284)
|
|
171
286
|
|
|
172
287
|
- [#50](https://github.com/dsv-rp/DDS/pull/50) [`4a34db7`](https://github.com/dsv-rp/DDS/commit/4a34db738bc08e347a790c0620bc602bbf1eac5b) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Notification: The `title` and `description` attributes have been removed, and their contents are now specified using slots with the same names.
|
|
173
288
|
|
|
174
289
|
- [#67](https://github.com/dsv-rp/DDS/pull/67) [`d377f50`](https://github.com/dsv-rp/DDS/commit/d377f5043f8d12c37a28772e44173b0e2a778003) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Tabs: The name of the component has been changed from `Tab Group` to `Tabs`. Use `<daikin-tabs>` instead of `<daikin-tab-group>`. (DDS-1450)
|
|
175
290
|
**BREAKING CHANGE** Tabs: The signatures of the `beforechange` and `change` events have been updated to match those of other components. (DDS-1450)
|
|
176
|
-
**BREAKING CHANGE** Tab Panels: The name of the component has been changed from `Panel Switcher` to `Tab panels
|
|
291
|
+
**BREAKING CHANGE** Tab Panels: The name of the component has been changed from `Panel Switcher` to `Tab panels` . Use `<daikin-tab-panels>` instead of `<daikin-panel-switcher>` . (DDS-1450)
|
|
177
292
|
**BREAKING CHANGE** Tab: The `size` property has been removed. (DDS-1450)
|
|
178
293
|
Tab: Updated appearance. (DDS-1450)
|
|
179
294
|
|
package/README.md
CHANGED
|
@@ -235,8 +235,8 @@ We manage and use design tokens to ensure consistency in our design system.
|
|
|
235
235
|
Since they are integrated with Tailwind CSS, they are mostly used as utility classes, but in some cases they are directly referenced using `var()`.
|
|
236
236
|
|
|
237
237
|
```ts
|
|
238
|
-
@
|
|
239
|
-
export class DaikinLink extends
|
|
238
|
+
@ddsElement("daikin-link")
|
|
239
|
+
export class DaikinLink extends DDSElement {
|
|
240
240
|
static override readonly styles = css`
|
|
241
241
|
${unsafeCSS(tailwindStyles)}
|
|
242
242
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const lit = require("lit");
|
|
4
|
+
const _DDSElement = class _DDSElement extends lit.LitElement {
|
|
5
|
+
};
|
|
6
|
+
_DDSElement.version = "1.1.0";
|
|
7
|
+
let DDSElement = _DDSElement;
|
|
8
|
+
exports.DDSElement = DDSElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const define = require("./define.cjs");
|
|
4
|
+
const ddsElement = (tagName) => (classOrTarget, context) => {
|
|
5
|
+
if (context) {
|
|
6
|
+
context.addInitializer(() => {
|
|
7
|
+
define.defineDDSElement(classOrTarget, tagName);
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
define.defineDDSElement(classOrTarget, tagName);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.ddsElement = ddsElement;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const ddsElement = require("./dds-element.cjs");
|
|
4
|
+
const currentVersion = ddsElement.DDSElement.version;
|
|
5
|
+
function defineDDSElement(ctor, name) {
|
|
6
|
+
const existing = customElements.get(name);
|
|
7
|
+
if (existing) {
|
|
8
|
+
const existingVersion = existing.version ?? "unknown version";
|
|
9
|
+
if (existingVersion !== currentVersion) {
|
|
10
|
+
console.warn(
|
|
11
|
+
`<${name}> is already registered but the version does not match. (${existingVersion} vs ${currentVersion})`
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
customElements.define(name, ctor);
|
|
17
|
+
}
|
|
18
|
+
exports.defineDDSElement = defineDDSElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function defineDDSElement(ctor: CustomElementConstructor, name: string): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const ddsElement = require("./dds-element.cjs");
|
|
4
|
+
const decorators = require("./decorators.cjs");
|
|
5
|
+
const define = require("./define.cjs");
|
|
6
|
+
exports.DDSElement = ddsElement.DDSElement;
|
|
7
|
+
exports.ddsElement = decorators.ddsElement;
|
|
8
|
+
exports.defineDDSElement = define.defineDDSElement;
|
|
@@ -2,18 +2,26 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const lit = require("lit");
|
|
4
4
|
const decorators_js = require("lit/decorators.js");
|
|
5
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
6
|
+
const decorators = require("../../base/decorators.cjs");
|
|
7
|
+
require("../../base/define.cjs");
|
|
5
8
|
const tailwind = require("../../tailwind.css.cjs");
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __decorateClass = (
|
|
11
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
9
12
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
-
for (var i =
|
|
11
|
-
if (decorator =
|
|
13
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
14
|
+
if (decorator = decorators2[i])
|
|
12
15
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
16
|
if (kind && result) __defProp(target, key, result);
|
|
14
17
|
return result;
|
|
15
18
|
};
|
|
16
|
-
exports.DaikinAccordion = class DaikinAccordion extends
|
|
19
|
+
exports.DaikinAccordion = class DaikinAccordion extends ddsElement.DDSElement {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.openItems = [];
|
|
23
|
+
this.exclusive = false;
|
|
24
|
+
}
|
|
17
25
|
_handleMoveFocus(event) {
|
|
18
26
|
const moveOffset = event.detail.direction === "up" ? -1 : 1;
|
|
19
27
|
const items = this._items.filter(({ disabled }) => !disabled);
|
|
@@ -25,9 +33,28 @@ exports.DaikinAccordion = class DaikinAccordion extends lit.LitElement {
|
|
|
25
33
|
const nextItem = items[(focusedItemIndex + moveOffset + items.length) % items.length];
|
|
26
34
|
nextItem.focus();
|
|
27
35
|
}
|
|
36
|
+
_handleToggle(event) {
|
|
37
|
+
const targetValue = event.target.name;
|
|
38
|
+
const opened = !event.target.open;
|
|
39
|
+
if (this.exclusive) {
|
|
40
|
+
this.openItems = opened ? [targetValue] : [];
|
|
41
|
+
} else {
|
|
42
|
+
this.openItems = opened ? [...this.openItems, targetValue] : this.openItems.filter((item) => item != targetValue);
|
|
43
|
+
}
|
|
44
|
+
this._reflectItemOpen();
|
|
45
|
+
}
|
|
46
|
+
_reflectItemOpen() {
|
|
47
|
+
for (const item of this._items) {
|
|
48
|
+
item.open = this.openItems.includes(item.name);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
28
51
|
render() {
|
|
29
52
|
return lit.html`<div class="w-full">
|
|
30
|
-
<slot
|
|
53
|
+
<slot
|
|
54
|
+
@accordion-move-focus=${this._handleMoveFocus}
|
|
55
|
+
@toggle=${this._handleToggle}
|
|
56
|
+
@slotchange=${this._reflectItemOpen}
|
|
57
|
+
></slot>
|
|
31
58
|
</div>`;
|
|
32
59
|
}
|
|
33
60
|
};
|
|
@@ -47,9 +74,15 @@ exports.DaikinAccordion.styles = lit.css`
|
|
|
47
74
|
--divider-bottom-display: block;
|
|
48
75
|
}
|
|
49
76
|
`;
|
|
77
|
+
__decorateClass([
|
|
78
|
+
decorators_js.property({ type: Array, attribute: false })
|
|
79
|
+
], exports.DaikinAccordion.prototype, "openItems", 2);
|
|
80
|
+
__decorateClass([
|
|
81
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
82
|
+
], exports.DaikinAccordion.prototype, "exclusive", 2);
|
|
50
83
|
__decorateClass([
|
|
51
84
|
decorators_js.queryAssignedElements({ selector: "daikin-accordion-item" })
|
|
52
85
|
], exports.DaikinAccordion.prototype, "_items", 2);
|
|
53
86
|
exports.DaikinAccordion = __decorateClass([
|
|
54
|
-
|
|
87
|
+
decorators.ddsElement("daikin-accordion")
|
|
55
88
|
], exports.DaikinAccordion);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The accordion component serves as the parent element that organizes and manages the overall structure of the accordion.
|
|
4
4
|
* Currently it only provides appropriate styles for individual accordion items.
|
|
@@ -12,6 +12,7 @@ import { LitElement } from 'lit';
|
|
|
12
12
|
*
|
|
13
13
|
* ```js
|
|
14
14
|
* import "@daikin-oss/design-system-web-components/components/accordion/index.js";
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/accordion-item/index.js";
|
|
15
16
|
* ```
|
|
16
17
|
*
|
|
17
18
|
* ```html
|
|
@@ -31,10 +32,22 @@ import { LitElement } from 'lit';
|
|
|
31
32
|
* </daikin-accordion>
|
|
32
33
|
* ```
|
|
33
34
|
*/
|
|
34
|
-
export declare class DaikinAccordion extends
|
|
35
|
+
export declare class DaikinAccordion extends DDSElement {
|
|
35
36
|
static readonly styles: import('lit').CSSResult;
|
|
37
|
+
/**
|
|
38
|
+
* A list of the names of the open items.
|
|
39
|
+
* If `exclusive` is true, the number of elements is 0 or 1.
|
|
40
|
+
*/
|
|
41
|
+
openItems: string[];
|
|
42
|
+
/**
|
|
43
|
+
* Whether or not to make the accordion exclusive.
|
|
44
|
+
* If true, the number of items that can be open at once is limited to one.
|
|
45
|
+
*/
|
|
46
|
+
exclusive: boolean;
|
|
36
47
|
private readonly _items;
|
|
37
48
|
private _handleMoveFocus;
|
|
49
|
+
private _handleToggle;
|
|
50
|
+
private _reflectItemOpen;
|
|
38
51
|
render(): import('lit-html').TemplateResult<1>;
|
|
39
52
|
}
|
|
40
53
|
declare global {
|
|
@@ -4,13 +4,16 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ref_js = require("lit/directives/ref.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
|
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;
|
|
@@ -52,51 +55,29 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
);
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
const getContentOpenKeyframe = (content) => ({
|
|
63
|
-
height: `${content.offsetHeight}px`
|
|
58
|
+
const cvaContent = classVarianceAuthority.cva(["grid", "duration-[250ms]", "ease-in-out"], {
|
|
59
|
+
variants: {
|
|
60
|
+
open: {
|
|
61
|
+
false: ["grid-rows-[0fr]"],
|
|
62
|
+
true: ["grid-rows-[1fr]"]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
64
65
|
});
|
|
65
|
-
exports.DaikinAccordionItem = class DaikinAccordionItem extends
|
|
66
|
+
exports.DaikinAccordionItem = class DaikinAccordionItem extends ddsElement.DDSElement {
|
|
66
67
|
constructor() {
|
|
67
68
|
super(...arguments);
|
|
69
|
+
this._summaryRef = ref_js.createRef();
|
|
68
70
|
this._contentRef = ref_js.createRef();
|
|
71
|
+
this.name = "";
|
|
69
72
|
this.open = false;
|
|
70
73
|
this.disabled = false;
|
|
71
|
-
this._detailsOpen = false;
|
|
72
|
-
}
|
|
73
|
-
_contentAnimate() {
|
|
74
|
-
const content = this._contentRef.value;
|
|
75
|
-
if (!content || this.open === this._detailsOpen) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
if (this.open) {
|
|
79
|
-
this._detailsOpen = this.open;
|
|
80
|
-
content.animate(
|
|
81
|
-
[contentCloseKeyframe, getContentOpenKeyframe(content)],
|
|
82
|
-
animationOption
|
|
83
|
-
);
|
|
84
|
-
} else {
|
|
85
|
-
const animation = content.animate(
|
|
86
|
-
[getContentOpenKeyframe(content), contentCloseKeyframe],
|
|
87
|
-
animationOption
|
|
88
|
-
);
|
|
89
|
-
animation.onfinish = () => {
|
|
90
|
-
this._detailsOpen = this.open;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
74
|
}
|
|
94
75
|
_handleSummaryClick(event) {
|
|
95
76
|
event.preventDefault();
|
|
96
77
|
if (this.disabled) {
|
|
97
78
|
return;
|
|
98
79
|
}
|
|
99
|
-
this.
|
|
80
|
+
this.dispatchEvent(new Event("toggle", event));
|
|
100
81
|
}
|
|
101
82
|
_handleKeyDown(event) {
|
|
102
83
|
const direction = {
|
|
@@ -116,56 +97,42 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends lit.LitElement {
|
|
|
116
97
|
})
|
|
117
98
|
);
|
|
118
99
|
}
|
|
119
|
-
// When using the in-page search, the `<details>` element may open without clicking on the `<summary>`.
|
|
120
|
-
// In order to handle such cases, it is necessary to respond to the "toggle" event.
|
|
121
|
-
_handleToggle(event) {
|
|
122
|
-
event.preventDefault();
|
|
123
|
-
if (this.disabled) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
this.open = event.newState === "open";
|
|
127
|
-
}
|
|
128
100
|
render() {
|
|
129
|
-
const detailsOpen = !this.disabled && this._detailsOpen;
|
|
130
101
|
const open = !this.disabled && this.open;
|
|
131
|
-
return lit.html`<
|
|
102
|
+
return lit.html`<div
|
|
132
103
|
class="w-full text-ddt-color-common-text-primary font-daikinSerif overflow-clip"
|
|
133
|
-
?open=${detailsOpen}
|
|
134
|
-
?data-open=${open}
|
|
135
|
-
aria-disabled=${this.disabled}
|
|
136
|
-
@toggle=${this._handleToggle}
|
|
137
104
|
>
|
|
138
|
-
<
|
|
105
|
+
<button
|
|
139
106
|
id="summary"
|
|
107
|
+
${ref_js.ref(this._summaryRef)}
|
|
140
108
|
class=${cvaSummary({
|
|
141
109
|
open,
|
|
142
110
|
disabled: this.disabled
|
|
143
111
|
})}
|
|
112
|
+
?disabled=${this.disabled}
|
|
113
|
+
aria-expanded=${open}
|
|
114
|
+
aria-controls="content"
|
|
144
115
|
tabindex=${this.disabled ? -1 : 0}
|
|
145
116
|
@click=${this._handleSummaryClick}
|
|
146
117
|
@keydown=${this._handleKeyDown}
|
|
147
118
|
>
|
|
148
119
|
<slot name="summary"></slot>
|
|
149
|
-
</
|
|
120
|
+
</button>
|
|
150
121
|
<div
|
|
151
122
|
${ref_js.ref(this._contentRef)}
|
|
123
|
+
id="content"
|
|
152
124
|
role="region"
|
|
125
|
+
class=${cvaContent({ open })}
|
|
153
126
|
aria-labelledby="summary"
|
|
154
|
-
?hidden=${
|
|
127
|
+
?hidden=${!open}
|
|
155
128
|
>
|
|
156
|
-
<div class="
|
|
157
|
-
<
|
|
129
|
+
<div class="overflow-hidden">
|
|
130
|
+
<div class="pt-2 px-3 pb-3">
|
|
131
|
+
<slot></slot>
|
|
132
|
+
</div>
|
|
158
133
|
</div>
|
|
159
134
|
</div>
|
|
160
|
-
</
|
|
161
|
-
}
|
|
162
|
-
firstUpdated() {
|
|
163
|
-
this._detailsOpen = this.open;
|
|
164
|
-
}
|
|
165
|
-
updated(changedProperties) {
|
|
166
|
-
if (changedProperties.has("open")) {
|
|
167
|
-
this._contentAnimate();
|
|
168
|
-
}
|
|
135
|
+
</div>`;
|
|
169
136
|
}
|
|
170
137
|
/**
|
|
171
138
|
* Focuses on the inner summary.
|
|
@@ -173,7 +140,7 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends lit.LitElement {
|
|
|
173
140
|
*/
|
|
174
141
|
focus(options) {
|
|
175
142
|
var _a;
|
|
176
|
-
(_a = this.
|
|
143
|
+
(_a = this._summaryRef.value) == null ? void 0 : _a.focus(options);
|
|
177
144
|
}
|
|
178
145
|
};
|
|
179
146
|
exports.DaikinAccordionItem.styles = lit.css`
|
|
@@ -193,8 +160,6 @@ exports.DaikinAccordionItem.styles = lit.css`
|
|
|
193
160
|
width: 100%;
|
|
194
161
|
height: 1px;
|
|
195
162
|
background: var(--dds-color-divider);
|
|
196
|
-
position: absolute;
|
|
197
|
-
top: 0;
|
|
198
163
|
}
|
|
199
164
|
|
|
200
165
|
:host::after {
|
|
@@ -203,22 +168,17 @@ exports.DaikinAccordionItem.styles = lit.css`
|
|
|
203
168
|
width: 100%;
|
|
204
169
|
height: 1px;
|
|
205
170
|
background: var(--dds-color-divider);
|
|
206
|
-
position: absolute;
|
|
207
|
-
bottom: 0;
|
|
208
171
|
}
|
|
209
172
|
`;
|
|
173
|
+
__decorateClass([
|
|
174
|
+
decorators_js.property({ type: String, reflect: true })
|
|
175
|
+
], exports.DaikinAccordionItem.prototype, "name", 2);
|
|
210
176
|
__decorateClass([
|
|
211
177
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
212
178
|
], exports.DaikinAccordionItem.prototype, "open", 2);
|
|
213
179
|
__decorateClass([
|
|
214
180
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
215
181
|
], exports.DaikinAccordionItem.prototype, "disabled", 2);
|
|
216
|
-
__decorateClass([
|
|
217
|
-
decorators_js.query("summary")
|
|
218
|
-
], exports.DaikinAccordionItem.prototype, "_summary", 2);
|
|
219
|
-
__decorateClass([
|
|
220
|
-
decorators_js.state()
|
|
221
|
-
], exports.DaikinAccordionItem.prototype, "_detailsOpen", 2);
|
|
222
182
|
exports.DaikinAccordionItem = __decorateClass([
|
|
223
|
-
|
|
183
|
+
decorators.ddsElement("daikin-accordion-item")
|
|
224
184
|
], exports.DaikinAccordionItem);
|