@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daikin-oss/design-system-web-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Design system using web components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -75,82 +75,86 @@
|
|
|
75
75
|
"test:visual": "npm run test:visual-wc && npm run test:visual-react",
|
|
76
76
|
"test:visual-update": "npm run test:visual-wc -- --update-snapshots"
|
|
77
77
|
},
|
|
78
|
+
"browserslist": [
|
|
79
|
+
"last 2 versions and > 1%"
|
|
80
|
+
],
|
|
78
81
|
"dependencies": {
|
|
79
|
-
"@floating-ui/dom": "^1.6.
|
|
82
|
+
"@floating-ui/dom": "^1.6.13",
|
|
80
83
|
"class-variance-authority": "^0.7.1",
|
|
81
84
|
"lit": "^3.2.1"
|
|
82
85
|
},
|
|
83
86
|
"devDependencies": {
|
|
84
|
-
"@arethetypeswrong/cli": "^0.17.
|
|
87
|
+
"@arethetypeswrong/cli": "^0.17.3",
|
|
85
88
|
"@axe-core/playwright": "^4.10.1",
|
|
86
89
|
"@changesets/changelog-github": "^0.5.0",
|
|
87
|
-
"@changesets/cli": "^2.27.
|
|
88
|
-
"@daikin-oss/dds-tokens": "^0.3.
|
|
89
|
-
"@daikin-oss/tailwind": "^0.0
|
|
90
|
-
"@egoist/tailwindcss-icons": "^1.
|
|
91
|
-
"@eslint/js": "^9.
|
|
92
|
-
"@fontsource/roboto": "^5.1.
|
|
93
|
-
"@lit
|
|
90
|
+
"@changesets/cli": "^2.27.12",
|
|
91
|
+
"@daikin-oss/dds-tokens": "^0.3.2",
|
|
92
|
+
"@daikin-oss/tailwind": "^0.2.0",
|
|
93
|
+
"@egoist/tailwindcss-icons": "^1.9.0",
|
|
94
|
+
"@eslint/js": "^9.20.0",
|
|
95
|
+
"@fontsource/roboto": "^5.1.1",
|
|
96
|
+
"@jackolope/lit-analyzer": "^3.0.2",
|
|
97
|
+
"@jackolope/web-component-analyzer": "^3.0.0",
|
|
98
|
+
"@lit/react": "^1.0.7",
|
|
94
99
|
"@ls-lint/ls-lint": "^2.2.3",
|
|
95
100
|
"@playwright/test": "1.46.1",
|
|
96
|
-
"@storybook/addon-a11y": "^8.
|
|
97
|
-
"@storybook/addon-essentials": "^8.
|
|
98
|
-
"@storybook/addon-interactions": "^8.
|
|
99
|
-
"@storybook/addon-links": "^8.
|
|
100
|
-
"@storybook/addon-mdx-gfm": "^8.
|
|
101
|
-
"@storybook/blocks": "^8.
|
|
102
|
-
"@storybook/builder-vite": "^8.
|
|
103
|
-
"@storybook/manager-api": "^8.
|
|
104
|
-
"@storybook/preview-api": "^8.
|
|
105
|
-
"@storybook/react": "^8.
|
|
106
|
-
"@storybook/react-vite": "^8.
|
|
107
|
-
"@storybook/test": "^8.
|
|
108
|
-
"@storybook/test-runner": "^0.
|
|
109
|
-
"@storybook/theming": "^8.
|
|
110
|
-
"@storybook/web-components": "^8.
|
|
111
|
-
"@storybook/web-components-vite": "^8.
|
|
101
|
+
"@storybook/addon-a11y": "^8.5.5",
|
|
102
|
+
"@storybook/addon-essentials": "^8.5.5",
|
|
103
|
+
"@storybook/addon-interactions": "^8.5.5",
|
|
104
|
+
"@storybook/addon-links": "^8.5.5",
|
|
105
|
+
"@storybook/addon-mdx-gfm": "^8.5.5",
|
|
106
|
+
"@storybook/blocks": "^8.5.5",
|
|
107
|
+
"@storybook/builder-vite": "^8.5.5",
|
|
108
|
+
"@storybook/manager-api": "^8.5.5",
|
|
109
|
+
"@storybook/preview-api": "^8.5.5",
|
|
110
|
+
"@storybook/react": "^8.5.5",
|
|
111
|
+
"@storybook/react-vite": "^8.5.5",
|
|
112
|
+
"@storybook/test": "^8.5.5",
|
|
113
|
+
"@storybook/test-runner": "^0.21.0",
|
|
114
|
+
"@storybook/theming": "^8.5.5",
|
|
115
|
+
"@storybook/web-components": "^8.5.5",
|
|
116
|
+
"@storybook/web-components-vite": "^8.5.5",
|
|
112
117
|
"@types/eslint__js": "^8.42.3",
|
|
113
118
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
114
119
|
"@types/jest-image-snapshot": "^6.4.0",
|
|
115
|
-
"@types/node": "^20.17.
|
|
116
|
-
"@types/react": "^
|
|
120
|
+
"@types/node": "^20.17.18",
|
|
121
|
+
"@types/react": "^19.0.8",
|
|
117
122
|
"@vitejs/plugin-react": "^4.3.4",
|
|
118
123
|
"autoprefixer": "^10.4.20",
|
|
119
124
|
"cross-env": "^7.0.3",
|
|
120
|
-
"cspell": "^8.
|
|
125
|
+
"cspell": "^8.17.3",
|
|
121
126
|
"defu": "^6.1.4",
|
|
122
|
-
"eslint": "^9.
|
|
123
|
-
"eslint-config-prettier": "^
|
|
127
|
+
"eslint": "^9.20.1",
|
|
128
|
+
"eslint-config-prettier": "^10.0.1",
|
|
124
129
|
"eslint-plugin-lit": "^1.15.0",
|
|
125
130
|
"eslint-plugin-lit-a11y": "^4.1.4",
|
|
126
131
|
"eslint-plugin-wc": "^2.2.0",
|
|
127
|
-
"fast-glob": "^3.3.
|
|
132
|
+
"fast-glob": "^3.3.3",
|
|
128
133
|
"http-server": "^14.1.1",
|
|
129
134
|
"husky": "^9.1.7",
|
|
130
|
-
"jiti": "^2.4.
|
|
131
|
-
"lightningcss": "^1.
|
|
132
|
-
"lit-analyzer": "^2.0.3",
|
|
135
|
+
"jiti": "^2.4.2",
|
|
136
|
+
"lightningcss": "^1.29.1",
|
|
133
137
|
"picocolors": "^1.1.1",
|
|
134
138
|
"playwright": "1.46.1",
|
|
135
139
|
"playwright-core": "1.46.1",
|
|
136
|
-
"postcss": "^8.
|
|
137
|
-
"prettier": "^3.
|
|
140
|
+
"postcss": "^8.5.2",
|
|
141
|
+
"prettier": "^3.5.0",
|
|
138
142
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
139
|
-
"react": "^
|
|
140
|
-
"react-dom": "^
|
|
141
|
-
"sass-embedded": "^1.
|
|
143
|
+
"react": "^19.0.0",
|
|
144
|
+
"react-dom": "^19.0.0",
|
|
145
|
+
"sass-embedded": "^1.83.4",
|
|
142
146
|
"shadow-dom-testing-library": "^1.11.3",
|
|
143
|
-
"start-server-and-test": "^2.0.
|
|
144
|
-
"storybook": "^8.
|
|
145
|
-
"tailwindcss": "^3.4.
|
|
147
|
+
"start-server-and-test": "^2.0.10",
|
|
148
|
+
"storybook": "^8.5.5",
|
|
149
|
+
"tailwindcss": "^3.4.17",
|
|
146
150
|
"tsx": "^4.19.2",
|
|
147
|
-
"typescript": "^5.7.
|
|
148
|
-
"typescript-eslint": "^8.
|
|
149
|
-
"
|
|
150
|
-
"vite
|
|
151
|
-
"vite-plugin-
|
|
152
|
-
"
|
|
153
|
-
"
|
|
151
|
+
"typescript": "^5.7.3",
|
|
152
|
+
"typescript-eslint": "^8.24.0",
|
|
153
|
+
"unplugin-macros": "^0.16.0",
|
|
154
|
+
"vite": "^6.1.0",
|
|
155
|
+
"vite-plugin-dts": "^4.5.0",
|
|
156
|
+
"vite-plugin-externalize-deps": "^0.9.0",
|
|
157
|
+
"vitest": "^3.0.5"
|
|
154
158
|
},
|
|
155
159
|
"peerDependencies": {
|
|
156
160
|
"@daikin-oss/dds-tokens": ">=0.3.0 <1.0.0"
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const classVarianceAuthority = require("class-variance-authority");
|
|
4
|
-
const lit = require("lit");
|
|
5
|
-
const decorators_js = require("lit/decorators.js");
|
|
6
|
-
const events = require("../../constants/events.cjs");
|
|
7
|
-
const tailwind = require("../../tailwind.css.cjs");
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13
|
-
if (decorator = decorators[i])
|
|
14
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
|
-
if (kind && result) __defProp(target, key, result);
|
|
16
|
-
return result;
|
|
17
|
-
};
|
|
18
|
-
const cvaContainer = classVarianceAuthority.cva(
|
|
19
|
-
[
|
|
20
|
-
"flex",
|
|
21
|
-
"box-border",
|
|
22
|
-
"bg-ddt-color-common-background-default",
|
|
23
|
-
"overflow-hidden",
|
|
24
|
-
"font-daikinSerif"
|
|
25
|
-
],
|
|
26
|
-
{
|
|
27
|
-
variants: {
|
|
28
|
-
variant: {
|
|
29
|
-
toast: [
|
|
30
|
-
"border-2",
|
|
31
|
-
"border-solid",
|
|
32
|
-
"rounded-lg",
|
|
33
|
-
"shadow-notification"
|
|
34
|
-
],
|
|
35
|
-
inline: []
|
|
36
|
-
},
|
|
37
|
-
status: {
|
|
38
|
-
positive: ["border-ddt-color-common-success"],
|
|
39
|
-
negative: ["border-ddt-color-common-danger-default"],
|
|
40
|
-
warning: ["border-ddt-color-common-warning"],
|
|
41
|
-
alarm: ["border-ddt-color-common-alarm"],
|
|
42
|
-
information: ["border-ddt-color-common-information"]
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
defaultVariants: {
|
|
46
|
-
variant: "toast",
|
|
47
|
-
status: "positive"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
const cvaIconContainer = classVarianceAuthority.cva(
|
|
52
|
-
[
|
|
53
|
-
"flex-none",
|
|
54
|
-
"flex",
|
|
55
|
-
"justify-center",
|
|
56
|
-
"items-center",
|
|
57
|
-
"w-[2.75rem]",
|
|
58
|
-
"after:size-6",
|
|
59
|
-
"after:text-ddt-color-common-background-default"
|
|
60
|
-
],
|
|
61
|
-
{
|
|
62
|
-
variants: {
|
|
63
|
-
status: {
|
|
64
|
-
positive: [
|
|
65
|
-
"bg-ddt-color-common-success",
|
|
66
|
-
"after:i-daikin-status-positive"
|
|
67
|
-
],
|
|
68
|
-
negative: [
|
|
69
|
-
"bg-ddt-color-common-danger-default",
|
|
70
|
-
"after:i-daikin-status-negative"
|
|
71
|
-
],
|
|
72
|
-
warning: [
|
|
73
|
-
"bg-ddt-color-common-warning",
|
|
74
|
-
"after:i-daikin-status-warning"
|
|
75
|
-
],
|
|
76
|
-
alarm: ["bg-ddt-color-common-alarm", "after:i-daikin-status-alarm"],
|
|
77
|
-
information: [
|
|
78
|
-
"bg-ddt-color-common-information",
|
|
79
|
-
"after:i-daikin-status-information"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
defaultVariants: {
|
|
84
|
-
status: "positive"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
const cvaContent = classVarianceAuthority.cva(
|
|
89
|
-
["flex", "justify-center", "gap-1", "w-fit", "flex-none"],
|
|
90
|
-
{
|
|
91
|
-
variants: {
|
|
92
|
-
line: {
|
|
93
|
-
single: ["items-center", "flex-row"],
|
|
94
|
-
multi: ["items-start", "flex-col"]
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
defaultVariants: {
|
|
98
|
-
line: "single"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
|
|
103
|
-
constructor() {
|
|
104
|
-
super(...arguments);
|
|
105
|
-
this.variant = "toast";
|
|
106
|
-
this.status = "positive";
|
|
107
|
-
this.line = "single";
|
|
108
|
-
this.open = false;
|
|
109
|
-
this.closeButton = false;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Call the event registered in "close".
|
|
113
|
-
*/
|
|
114
|
-
_handleClickClose() {
|
|
115
|
-
const event = new CustomEvent(events.EVENT_CLOSE);
|
|
116
|
-
this.open = false;
|
|
117
|
-
this.dispatchEvent(event);
|
|
118
|
-
}
|
|
119
|
-
render() {
|
|
120
|
-
const role = {
|
|
121
|
-
inline: "status",
|
|
122
|
-
toast: "alert"
|
|
123
|
-
}[this.variant];
|
|
124
|
-
return this.open ? lit.html`<aside
|
|
125
|
-
class=${cvaContainer({
|
|
126
|
-
variant: this.variant,
|
|
127
|
-
status: this.status
|
|
128
|
-
})}
|
|
129
|
-
role=${role}
|
|
130
|
-
>
|
|
131
|
-
<div
|
|
132
|
-
class=${cvaIconContainer({
|
|
133
|
-
status: this.status
|
|
134
|
-
})}
|
|
135
|
-
></div>
|
|
136
|
-
<div
|
|
137
|
-
class="flex justify-between items-center gap-5 p-5 text-lg flex-auto flex-shrink-0"
|
|
138
|
-
>
|
|
139
|
-
<div
|
|
140
|
-
class=${cvaContent({
|
|
141
|
-
line: this.line
|
|
142
|
-
})}
|
|
143
|
-
>
|
|
144
|
-
<div class="font-bold flex-none">
|
|
145
|
-
<slot name="title"></slot>
|
|
146
|
-
</div>
|
|
147
|
-
<div class="flex-none">
|
|
148
|
-
<slot name="description"></slot>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
${this.closeButton ? lit.html`
|
|
152
|
-
<div class="flex items-center gap-5">
|
|
153
|
-
<button
|
|
154
|
-
aria-label="Close"
|
|
155
|
-
class="relative flex w-5 h-5 after:i-daikin-notification-close after:size-5 after:text-[#a0a0a0]"
|
|
156
|
-
@click=${this._handleClickClose}
|
|
157
|
-
></button>
|
|
158
|
-
</div>
|
|
159
|
-
` : lit.nothing}
|
|
160
|
-
</div>
|
|
161
|
-
</aside>` : lit.nothing;
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
exports.DaikinNotification.styles = lit.css`
|
|
165
|
-
${lit.unsafeCSS(tailwind.default)}
|
|
166
|
-
|
|
167
|
-
:host {
|
|
168
|
-
display: block;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
:host([variant="toast"]) {
|
|
172
|
-
width: max-content;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
:host([variant="inline"]) {
|
|
176
|
-
width: 100%;
|
|
177
|
-
}
|
|
178
|
-
`;
|
|
179
|
-
__decorateClass([
|
|
180
|
-
decorators_js.property({ type: String, reflect: true })
|
|
181
|
-
], exports.DaikinNotification.prototype, "variant", 2);
|
|
182
|
-
__decorateClass([
|
|
183
|
-
decorators_js.property({ type: String })
|
|
184
|
-
], exports.DaikinNotification.prototype, "status", 2);
|
|
185
|
-
__decorateClass([
|
|
186
|
-
decorators_js.property({ type: String })
|
|
187
|
-
], exports.DaikinNotification.prototype, "line", 2);
|
|
188
|
-
__decorateClass([
|
|
189
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
190
|
-
], exports.DaikinNotification.prototype, "open", 2);
|
|
191
|
-
__decorateClass([
|
|
192
|
-
decorators_js.property({ type: Boolean, attribute: "close-button" })
|
|
193
|
-
], exports.DaikinNotification.prototype, "closeButton", 2);
|
|
194
|
-
exports.DaikinNotification = __decorateClass([
|
|
195
|
-
decorators_js.customElement("daikin-notification")
|
|
196
|
-
], exports.DaikinNotification);
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { LitElement, nothing } from 'lit';
|
|
2
|
-
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
|
-
declare const cvaContainer: (props?: ({
|
|
4
|
-
variant?: "toast" | "inline" | null | undefined;
|
|
5
|
-
status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
declare const cvaIconContainer: (props?: ({
|
|
8
|
-
status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
declare const cvaContent: (props?: ({
|
|
11
|
-
line?: "single" | "multi" | null | undefined;
|
|
12
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
-
type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaIconContainer | typeof cvaContent>;
|
|
14
|
-
/**
|
|
15
|
-
* The notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
|
|
16
|
-
*
|
|
17
|
-
* There are two variants of notification components: `toast` and `inline`.
|
|
18
|
-
*
|
|
19
|
-
* Toast notifications are brief messages that should appear temporarily at the edge of the screen, typically in the bottom or top corner.
|
|
20
|
-
* Toast notifications are ideal for conveying transient information that does not require user interaction, such as success messages, warnings, or alerts. \
|
|
21
|
-
* Please note that **currently we don't support automatic placement or stacking of toast notifications**.
|
|
22
|
-
*
|
|
23
|
-
* Inline notifications appear within the content of the application, usually embedded directly within a page or section.
|
|
24
|
-
* Inline notifications are more persistent and are used to highlight important information or status updates that should remain visible to the user until they are acknowledged or the issue is resolved.
|
|
25
|
-
*
|
|
26
|
-
* @fires close - A custom event emitted when a user clicks the close button.
|
|
27
|
-
*
|
|
28
|
-
* @slot title - A slot for the notification title content.
|
|
29
|
-
* @slot description - A slot for the notification description content.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
*
|
|
33
|
-
* ```js
|
|
34
|
-
* import "@daikin-oss/design-system-web-components/components/notification/index.js";
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* ```html
|
|
38
|
-
* <daikin-notification>
|
|
39
|
-
* <span slot="title">Notification title</span>
|
|
40
|
-
* <span slot="description">Notification description</span>
|
|
41
|
-
* </daikin-notification>
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare class DaikinNotification extends LitElement {
|
|
45
|
-
static readonly styles: import('lit').CSSResult;
|
|
46
|
-
/**
|
|
47
|
-
* Type of notification.
|
|
48
|
-
*/
|
|
49
|
-
variant: NotificationVariantProps["variant"];
|
|
50
|
-
/**
|
|
51
|
-
* Status of notification.
|
|
52
|
-
*/
|
|
53
|
-
status: NotificationVariantProps["status"];
|
|
54
|
-
/**
|
|
55
|
-
* Display in single or multiple lines.
|
|
56
|
-
*/
|
|
57
|
-
line: NotificationVariantProps["line"];
|
|
58
|
-
/**
|
|
59
|
-
* Specify the notification's open state.
|
|
60
|
-
*/
|
|
61
|
-
open: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* Whether to display the close button.
|
|
64
|
-
*/
|
|
65
|
-
closeButton: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Call the event registered in "close".
|
|
68
|
-
*/
|
|
69
|
-
private _handleClickClose;
|
|
70
|
-
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
71
|
-
}
|
|
72
|
-
declare global {
|
|
73
|
-
interface HTMLElementTagNameMap {
|
|
74
|
-
"daikin-notification": DaikinNotification;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const daikinNotification = require("./daikin-notification.cjs");
|
|
4
|
-
Object.defineProperty(exports, "DaikinNotification", {
|
|
5
|
-
enumerable: true,
|
|
6
|
-
get: () => daikinNotification.DaikinNotification
|
|
7
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./daikin-notification.cjs";
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const classVarianceAuthority = require("class-variance-authority");
|
|
4
|
-
const lit = require("lit");
|
|
5
|
-
const decorators_js = require("lit/decorators.js");
|
|
6
|
-
const events = require("../../constants/events.cjs");
|
|
7
|
-
const tailwind = require("../../tailwind.css.cjs");
|
|
8
|
-
var __defProp = Object.defineProperty;
|
|
9
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13
|
-
if (decorator = decorators[i])
|
|
14
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
|
-
if (kind && result) __defProp(target, key, result);
|
|
16
|
-
return result;
|
|
17
|
-
};
|
|
18
|
-
const cvaContainer = classVarianceAuthority.cva(
|
|
19
|
-
[
|
|
20
|
-
"flex",
|
|
21
|
-
"box-border",
|
|
22
|
-
"bg-ddt-color-common-background-default",
|
|
23
|
-
"overflow-hidden",
|
|
24
|
-
"font-daikinSerif"
|
|
25
|
-
],
|
|
26
|
-
{
|
|
27
|
-
variants: {
|
|
28
|
-
variant: {
|
|
29
|
-
toast: [
|
|
30
|
-
"border-2",
|
|
31
|
-
"border-solid",
|
|
32
|
-
"rounded-lg",
|
|
33
|
-
"shadow-notification"
|
|
34
|
-
],
|
|
35
|
-
inline: []
|
|
36
|
-
},
|
|
37
|
-
status: {
|
|
38
|
-
positive: ["border-ddt-color-common-success"],
|
|
39
|
-
negative: ["border-ddt-color-common-danger-default"],
|
|
40
|
-
warning: ["border-ddt-color-common-warning"],
|
|
41
|
-
alarm: ["border-ddt-color-common-alarm"],
|
|
42
|
-
information: ["border-ddt-color-common-information"]
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
defaultVariants: {
|
|
46
|
-
variant: "toast",
|
|
47
|
-
status: "positive"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
const cvaIconContainer = classVarianceAuthority.cva(
|
|
52
|
-
[
|
|
53
|
-
"flex-none",
|
|
54
|
-
"flex",
|
|
55
|
-
"justify-center",
|
|
56
|
-
"items-center",
|
|
57
|
-
"w-[2.75rem]",
|
|
58
|
-
"after:size-6",
|
|
59
|
-
"after:text-ddt-color-common-background-default"
|
|
60
|
-
],
|
|
61
|
-
{
|
|
62
|
-
variants: {
|
|
63
|
-
status: {
|
|
64
|
-
positive: [
|
|
65
|
-
"bg-ddt-color-common-success",
|
|
66
|
-
"after:i-daikin-status-positive"
|
|
67
|
-
],
|
|
68
|
-
negative: [
|
|
69
|
-
"bg-ddt-color-common-danger-default",
|
|
70
|
-
"after:i-daikin-status-negative"
|
|
71
|
-
],
|
|
72
|
-
warning: [
|
|
73
|
-
"bg-ddt-color-common-warning",
|
|
74
|
-
"after:i-daikin-status-warning"
|
|
75
|
-
],
|
|
76
|
-
alarm: ["bg-ddt-color-common-alarm", "after:i-daikin-status-alarm"],
|
|
77
|
-
information: [
|
|
78
|
-
"bg-ddt-color-common-information",
|
|
79
|
-
"after:i-daikin-status-information"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
defaultVariants: {
|
|
84
|
-
status: "positive"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
);
|
|
88
|
-
const cvaContent = classVarianceAuthority.cva(
|
|
89
|
-
["flex", "justify-center", "gap-1", "w-fit", "flex-none"],
|
|
90
|
-
{
|
|
91
|
-
variants: {
|
|
92
|
-
line: {
|
|
93
|
-
single: ["items-center", "flex-row"],
|
|
94
|
-
multi: ["items-start", "flex-col"]
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
defaultVariants: {
|
|
98
|
-
line: "single"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
);
|
|
102
|
-
exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
|
|
103
|
-
constructor() {
|
|
104
|
-
super(...arguments);
|
|
105
|
-
this.variant = "toast";
|
|
106
|
-
this.status = "positive";
|
|
107
|
-
this.line = "single";
|
|
108
|
-
this.open = false;
|
|
109
|
-
this.closeButton = false;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Call the event registered in "close".
|
|
113
|
-
*/
|
|
114
|
-
_handleClickClose() {
|
|
115
|
-
const event = new CustomEvent(events.EVENT_CLOSE);
|
|
116
|
-
this.open = false;
|
|
117
|
-
this.dispatchEvent(event);
|
|
118
|
-
}
|
|
119
|
-
render() {
|
|
120
|
-
const role = {
|
|
121
|
-
inline: "status",
|
|
122
|
-
toast: "alert"
|
|
123
|
-
}[this.variant];
|
|
124
|
-
return this.open ? lit.html`<aside
|
|
125
|
-
class=${cvaContainer({
|
|
126
|
-
variant: this.variant,
|
|
127
|
-
status: this.status
|
|
128
|
-
})}
|
|
129
|
-
role=${role}
|
|
130
|
-
>
|
|
131
|
-
<div
|
|
132
|
-
class=${cvaIconContainer({
|
|
133
|
-
status: this.status
|
|
134
|
-
})}
|
|
135
|
-
></div>
|
|
136
|
-
<div
|
|
137
|
-
class="flex justify-between items-center gap-5 p-5 text-lg flex-auto flex-shrink-0"
|
|
138
|
-
>
|
|
139
|
-
<div
|
|
140
|
-
class=${cvaContent({
|
|
141
|
-
line: this.line
|
|
142
|
-
})}
|
|
143
|
-
>
|
|
144
|
-
<div class="font-bold flex-none">
|
|
145
|
-
<slot name="title"></slot>
|
|
146
|
-
</div>
|
|
147
|
-
<div class="flex-none">
|
|
148
|
-
<slot name="description"></slot>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
${this.closeButton ? lit.html`
|
|
152
|
-
<div class="flex items-center gap-5">
|
|
153
|
-
<button
|
|
154
|
-
aria-label="Close"
|
|
155
|
-
class="relative flex w-5 h-5 after:i-daikin-notification-close after:size-5 after:text-[#a0a0a0]"
|
|
156
|
-
@click=${this._handleClickClose}
|
|
157
|
-
></button>
|
|
158
|
-
</div>
|
|
159
|
-
` : lit.nothing}
|
|
160
|
-
</div>
|
|
161
|
-
</aside>` : lit.nothing;
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
exports.DaikinNotification.styles = lit.css`
|
|
165
|
-
${lit.unsafeCSS(tailwind.default)}
|
|
166
|
-
|
|
167
|
-
:host {
|
|
168
|
-
display: block;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
:host([variant="toast"]) {
|
|
172
|
-
width: max-content;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
:host([variant="inline"]) {
|
|
176
|
-
width: 100%;
|
|
177
|
-
}
|
|
178
|
-
`;
|
|
179
|
-
__decorateClass([
|
|
180
|
-
decorators_js.property({ type: String, reflect: true })
|
|
181
|
-
], exports.DaikinNotification.prototype, "variant", 2);
|
|
182
|
-
__decorateClass([
|
|
183
|
-
decorators_js.property({ type: String })
|
|
184
|
-
], exports.DaikinNotification.prototype, "status", 2);
|
|
185
|
-
__decorateClass([
|
|
186
|
-
decorators_js.property({ type: String })
|
|
187
|
-
], exports.DaikinNotification.prototype, "line", 2);
|
|
188
|
-
__decorateClass([
|
|
189
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
190
|
-
], exports.DaikinNotification.prototype, "open", 2);
|
|
191
|
-
__decorateClass([
|
|
192
|
-
decorators_js.property({ type: Boolean, attribute: "close-button" })
|
|
193
|
-
], exports.DaikinNotification.prototype, "closeButton", 2);
|
|
194
|
-
exports.DaikinNotification = __decorateClass([
|
|
195
|
-
decorators_js.customElement("daikin-notification")
|
|
196
|
-
], exports.DaikinNotification);
|