@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
3
|
declare const cvaCell: (props?: ({
|
|
4
4
|
alignment?: "right" | "left" | "center" | null | undefined;
|
|
@@ -17,6 +17,10 @@ type TableCellVariantProps = MergeVariantProps<typeof cvaCell>;
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
*
|
|
20
|
+
* ```js
|
|
21
|
+
* import "@daikin-oss/design-system-web-components/components/table-cell/index.js";
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
20
24
|
* ```html
|
|
21
25
|
* <daikin-table-cell slot="cell:key:id">
|
|
22
26
|
* Table cell label
|
|
@@ -24,7 +28,7 @@ type TableCellVariantProps = MergeVariantProps<typeof cvaCell>;
|
|
|
24
28
|
* </daikin-table-cell>
|
|
25
29
|
* ```
|
|
26
30
|
*/
|
|
27
|
-
export declare class DaikinTableCell extends
|
|
31
|
+
export declare class DaikinTableCell extends DDSElement {
|
|
28
32
|
static readonly styles: import('lit').CSSResult;
|
|
29
33
|
/**
|
|
30
34
|
* Specify the direction of cell alignment.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property } from "lit/decorators.js";
|
|
4
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
6
|
+
import "../../base/define.js";
|
|
4
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
5
8
|
var __defProp = Object.defineProperty;
|
|
6
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -34,7 +37,7 @@ const cvaCell = cva(
|
|
|
34
37
|
}
|
|
35
38
|
}
|
|
36
39
|
);
|
|
37
|
-
let DaikinTableCell = class extends
|
|
40
|
+
let DaikinTableCell = class extends DDSElement {
|
|
38
41
|
constructor() {
|
|
39
42
|
super(...arguments);
|
|
40
43
|
this.alignment = "left";
|
|
@@ -62,7 +65,7 @@ __decorateClass([
|
|
|
62
65
|
property({ type: String, reflect: true })
|
|
63
66
|
], DaikinTableCell.prototype, "alignment", 2);
|
|
64
67
|
DaikinTableCell = __decorateClass([
|
|
65
|
-
|
|
68
|
+
ddsElement("daikin-table-cell")
|
|
66
69
|
], DaikinTableCell);
|
|
67
70
|
export {
|
|
68
71
|
DaikinTableCell
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
3
|
declare const cvaHeaderCell: (props?: ({
|
|
4
4
|
alignment?: "right" | "left" | "center" | null | undefined;
|
|
@@ -22,13 +22,17 @@ type TableHeaderCellVariantProps = MergeVariantProps<typeof cvaHeaderCell>;
|
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
*
|
|
25
|
+
* ```js
|
|
26
|
+
* import "@daikin-oss/design-system-web-components/components/table-header-cell/index.js";
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
25
29
|
* ```html
|
|
26
30
|
* <daikin-table-header-cell slot="header:key">
|
|
27
31
|
* Table header cell label
|
|
28
32
|
* </daikin-table-header-cell>
|
|
29
33
|
* ```
|
|
30
34
|
*/
|
|
31
|
-
export declare class DaikinTableHeaderCell extends
|
|
35
|
+
export declare class DaikinTableHeaderCell extends DDSElement {
|
|
32
36
|
static readonly styles: import('lit').CSSResult;
|
|
33
37
|
/**
|
|
34
38
|
* Alignment of cell contents.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property } from "lit/decorators.js";
|
|
4
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
6
|
+
import "../../base/define.js";
|
|
4
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
5
8
|
var __defProp = Object.defineProperty;
|
|
6
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -48,7 +51,7 @@ const cvaHeaderCell = cva(
|
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
);
|
|
51
|
-
let DaikinTableHeaderCell = class extends
|
|
54
|
+
let DaikinTableHeaderCell = class extends DDSElement {
|
|
52
55
|
constructor() {
|
|
53
56
|
super(...arguments);
|
|
54
57
|
this.alignment = "left";
|
|
@@ -86,7 +89,7 @@ __decorateClass([
|
|
|
86
89
|
property({ type: Boolean, reflect: true })
|
|
87
90
|
], DaikinTableHeaderCell.prototype, "sortable", 2);
|
|
88
91
|
DaikinTableHeaderCell = __decorateClass([
|
|
89
|
-
|
|
92
|
+
ddsElement("daikin-table-header-cell")
|
|
90
93
|
], DaikinTableHeaderCell);
|
|
91
94
|
export {
|
|
92
95
|
DaikinTableHeaderCell
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
3
|
/**
|
|
3
4
|
* The tab group component manages a group of tabs and switches the content displayed using the panel switcher component.
|
|
4
5
|
* It allows users to navigate between different sections of content by clicking on individual tabs.
|
|
@@ -38,12 +39,16 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
38
39
|
* </daikin-tabs>
|
|
39
40
|
* ```
|
|
40
41
|
*/
|
|
41
|
-
export declare class DaikinTabs extends
|
|
42
|
+
export declare class DaikinTabs extends DDSElement {
|
|
42
43
|
static readonly styles: import('lit').CSSResult;
|
|
43
44
|
/**
|
|
44
45
|
* `value` of the currently selected tab (`daikin-tab`).
|
|
45
46
|
*/
|
|
46
47
|
value: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the tab width stretches or fits.
|
|
50
|
+
*/
|
|
51
|
+
sizing: "stretch" | "fit";
|
|
47
52
|
/**
|
|
48
53
|
* Tab(s) in the default slot.
|
|
49
54
|
*/
|
|
@@ -77,6 +82,7 @@ export declare class DaikinTabs extends LitElement {
|
|
|
77
82
|
* - the default slot's content is changed.
|
|
78
83
|
*/
|
|
79
84
|
private _updateTabs;
|
|
85
|
+
private _updateTabStyle;
|
|
80
86
|
/**
|
|
81
87
|
* Updates `daikin-tab-panels` component(s)' properties in the slot.
|
|
82
88
|
*
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { css, unsafeCSS,
|
|
2
|
-
import { property, queryAssignedElements
|
|
1
|
+
import { css, unsafeCSS, html } from "lit";
|
|
2
|
+
import { property, queryAssignedElements } from "lit/decorators.js";
|
|
3
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
4
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
5
|
+
import "../../base/define.js";
|
|
3
6
|
import tailwindStyles from "../../tailwind.css.js";
|
|
4
7
|
import { scrollIntoViewOnlyParent } from "./scroller.js";
|
|
5
8
|
var __defProp = Object.defineProperty;
|
|
@@ -12,10 +15,11 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
12
15
|
if (kind && result) __defProp(target, key, result);
|
|
13
16
|
return result;
|
|
14
17
|
};
|
|
15
|
-
let DaikinTabs = class extends
|
|
18
|
+
let DaikinTabs = class extends DDSElement {
|
|
16
19
|
constructor() {
|
|
17
20
|
super(...arguments);
|
|
18
21
|
this.value = "";
|
|
22
|
+
this.sizing = "stretch";
|
|
19
23
|
}
|
|
20
24
|
/**
|
|
21
25
|
* Emits `beforechange` event if necessary and returns whether we should proceed.
|
|
@@ -90,6 +94,12 @@ let DaikinTabs = class extends LitElement {
|
|
|
90
94
|
}
|
|
91
95
|
scrollIntoViewOnlyParent(selectedTab);
|
|
92
96
|
}
|
|
97
|
+
_updateTabStyle() {
|
|
98
|
+
const tabs = this._tabs;
|
|
99
|
+
for (const tab of tabs) {
|
|
100
|
+
tab.sizing = this.sizing;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
93
103
|
/**
|
|
94
104
|
* Updates `daikin-tab-panels` component(s)' properties in the slot.
|
|
95
105
|
*
|
|
@@ -178,7 +188,7 @@ let DaikinTabs = class extends LitElement {
|
|
|
178
188
|
render() {
|
|
179
189
|
return html`
|
|
180
190
|
<div
|
|
181
|
-
class="flex flex-nowrap w-full p-
|
|
191
|
+
class="flex flex-nowrap w-full p-1 overflow-auto relative before:absolute before:h-[1px] before:inset-1 before:top-auto before:bg-ddt-color-divider"
|
|
182
192
|
role="tablist"
|
|
183
193
|
@click=${this._handleTabClick}
|
|
184
194
|
@keydown=${this._handleKeyDown}
|
|
@@ -189,11 +199,13 @@ let DaikinTabs = class extends LitElement {
|
|
|
189
199
|
`;
|
|
190
200
|
}
|
|
191
201
|
updated(changedProperties) {
|
|
192
|
-
if (
|
|
193
|
-
|
|
202
|
+
if (changedProperties.has("value")) {
|
|
203
|
+
this._updateTabs();
|
|
204
|
+
this._updateTabPanels();
|
|
205
|
+
}
|
|
206
|
+
if (changedProperties.has("sizing")) {
|
|
207
|
+
this._updateTabStyle();
|
|
194
208
|
}
|
|
195
|
-
this._updateTabs();
|
|
196
|
-
this._updateTabPanels();
|
|
197
209
|
}
|
|
198
210
|
};
|
|
199
211
|
DaikinTabs.styles = css`
|
|
@@ -207,6 +219,9 @@ DaikinTabs.styles = css`
|
|
|
207
219
|
__decorateClass([
|
|
208
220
|
property({ type: String, reflect: true })
|
|
209
221
|
], DaikinTabs.prototype, "value", 2);
|
|
222
|
+
__decorateClass([
|
|
223
|
+
property({ type: String, reflect: true })
|
|
224
|
+
], DaikinTabs.prototype, "sizing", 2);
|
|
210
225
|
__decorateClass([
|
|
211
226
|
queryAssignedElements({ selector: "daikin-tab" })
|
|
212
227
|
], DaikinTabs.prototype, "_tabs", 2);
|
|
@@ -214,7 +229,7 @@ __decorateClass([
|
|
|
214
229
|
queryAssignedElements({ slot: "panels", selector: "daikin-tab-panels" })
|
|
215
230
|
], DaikinTabs.prototype, "_panelSwitchers", 2);
|
|
216
231
|
DaikinTabs = __decorateClass([
|
|
217
|
-
|
|
232
|
+
ddsElement("daikin-tabs")
|
|
218
233
|
], DaikinTabs);
|
|
219
234
|
export {
|
|
220
235
|
DaikinTabs
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
3
|
import { DaikinInputGroup } from "../input-group/index.js";
|
|
3
4
|
/**
|
|
4
5
|
* The text area component is designed for multiline text input, similar to the HTML `<textarea>` tag.
|
|
@@ -23,7 +24,7 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
23
24
|
* <daikin-text-area name="name"></daikin-text-area>
|
|
24
25
|
* ```
|
|
25
26
|
*/
|
|
26
|
-
export declare class DaikinTextArea extends
|
|
27
|
+
export declare class DaikinTextArea extends DDSElement {
|
|
27
28
|
static readonly styles: import('lit').CSSResult;
|
|
28
29
|
static readonly formAssociated = true;
|
|
29
30
|
private _internals;
|
|
@@ -73,6 +74,10 @@ export declare class DaikinTextArea extends LitElement {
|
|
|
73
74
|
private _handleInput;
|
|
74
75
|
render(): import('lit-html').TemplateResult<1>;
|
|
75
76
|
updated(changedProperties: PropertyValues<this>): void;
|
|
77
|
+
/**
|
|
78
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
76
81
|
reflectInputGroup(inputGroup: DaikinInputGroup): void;
|
|
77
82
|
}
|
|
78
83
|
declare global {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, state
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property, state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
5
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -32,13 +35,13 @@ const cvaTextArea = cva(
|
|
|
32
35
|
"define-[--color-state-active,--color-state-focus,--color-base]/color-border",
|
|
33
36
|
"border",
|
|
34
37
|
"border-[--color-border]",
|
|
35
|
-
// Update `--color-base` depending on the state.
|
|
36
|
-
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
37
38
|
"enabled:text-ddt-color-common-text-primary",
|
|
38
39
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
39
40
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
40
41
|
"focus-visible:outline-2",
|
|
41
42
|
"focus-visible:-outline-offset-2",
|
|
43
|
+
// Update `--color-base` depending on the state.
|
|
44
|
+
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
42
45
|
"disabled:var-color-ddt-color-common-disabled/color-base",
|
|
43
46
|
"disabled:text-ddt-color-common-disabled",
|
|
44
47
|
"disabled:bg-color-common-background-default",
|
|
@@ -49,6 +52,8 @@ const cvaTextArea = cva(
|
|
|
49
52
|
error: {
|
|
50
53
|
false: [
|
|
51
54
|
"enabled:var-color-ddt-color-common-neutral-default/color-base",
|
|
55
|
+
"enabled:hover:var-color-ddt-color-common-neutral-hover/color-base",
|
|
56
|
+
"enabled:active:var-color-ddt-color-common-neutral-press/color-base",
|
|
52
57
|
"focus-visible:var-color-ddt-color-common-border-focus/color-state-focus"
|
|
53
58
|
],
|
|
54
59
|
true: ["enabled:var-color-ddt-color-common-danger-default/color-base"]
|
|
@@ -60,7 +65,7 @@ const cvaTextArea = cva(
|
|
|
60
65
|
}
|
|
61
66
|
}
|
|
62
67
|
);
|
|
63
|
-
let DaikinTextArea = class extends
|
|
68
|
+
let DaikinTextArea = class extends DDSElement {
|
|
64
69
|
constructor() {
|
|
65
70
|
super(...arguments);
|
|
66
71
|
this._internals = this.attachInternals();
|
|
@@ -111,6 +116,10 @@ let DaikinTextArea = class extends LitElement {
|
|
|
111
116
|
}
|
|
112
117
|
this._updateValue(this.value);
|
|
113
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
121
|
+
* @private
|
|
122
|
+
*/
|
|
114
123
|
reflectInputGroup(inputGroup) {
|
|
115
124
|
const isError = !inputGroup.disabled && (!!inputGroup.error || !!inputGroup.textareaLimitExceeded);
|
|
116
125
|
this.disabled = !!inputGroup.disabled;
|
|
@@ -160,7 +169,7 @@ __decorateClass([
|
|
|
160
169
|
state()
|
|
161
170
|
], DaikinTextArea.prototype, "_label", 2);
|
|
162
171
|
DaikinTextArea = __decorateClass([
|
|
163
|
-
|
|
172
|
+
ddsElement("daikin-text-area")
|
|
164
173
|
], DaikinTextArea);
|
|
165
174
|
export {
|
|
166
175
|
DaikinTextArea
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
3
|
import { DaikinInputGroup } from "../input-group/index.js";
|
|
3
4
|
/**
|
|
4
5
|
* The text field component is a UI element that allows users to input single-line text data.
|
|
@@ -26,7 +27,7 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
26
27
|
* <daikin-text-field name="name"></daikin-text-field>
|
|
27
28
|
* ```
|
|
28
29
|
*/
|
|
29
|
-
export declare class DaikinTextField extends
|
|
30
|
+
export declare class DaikinTextField extends DDSElement {
|
|
30
31
|
static readonly styles: import('lit').CSSResult;
|
|
31
32
|
static readonly formAssociated = true;
|
|
32
33
|
private _internals;
|
|
@@ -85,6 +86,10 @@ export declare class DaikinTextField extends LitElement {
|
|
|
85
86
|
private _handleInput;
|
|
86
87
|
render(): import('lit-html').TemplateResult<1>;
|
|
87
88
|
updated(changedProperties: PropertyValues<this>): void;
|
|
89
|
+
/**
|
|
90
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
88
93
|
reflectInputGroup(inputGroup: DaikinInputGroup): void;
|
|
89
94
|
}
|
|
90
95
|
declare global {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, state
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property, state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
5
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -35,12 +38,12 @@ const cvaInput = cva(
|
|
|
35
38
|
"define-[--color-state-focus,--color-base]/color-border",
|
|
36
39
|
"border",
|
|
37
40
|
"border-[--color-border]",
|
|
38
|
-
// Update `--color-base` depending on the state.
|
|
39
|
-
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
40
41
|
"enabled:text-ddt-color-common-text-primary",
|
|
41
42
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
42
43
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
43
44
|
"focus-visible:outline-2",
|
|
45
|
+
// Update `--color-base` depending on the state.
|
|
46
|
+
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
44
47
|
"disabled:var-color-ddt-color-common-disabled/color-base",
|
|
45
48
|
"disabled:text-ddt-color-common-disabled",
|
|
46
49
|
"disabled:bg-ddt-color-common-background-default",
|
|
@@ -51,6 +54,8 @@ const cvaInput = cva(
|
|
|
51
54
|
error: {
|
|
52
55
|
false: [
|
|
53
56
|
"enabled:var-color-ddt-color-common-neutral-default/color-base",
|
|
57
|
+
"enabled:hover:var-color-ddt-color-common-neutral-hover/color-base",
|
|
58
|
+
"enabled:active:var-color-ddt-color-common-neutral-press/color-base",
|
|
54
59
|
"focus-visible:var-color-ddt-color-common-border-focus/color-state-focus"
|
|
55
60
|
],
|
|
56
61
|
true: ["enabled:var-color-ddt-color-common-danger-default/color-base"]
|
|
@@ -81,7 +86,7 @@ const cvaIcon = cva(
|
|
|
81
86
|
}
|
|
82
87
|
}
|
|
83
88
|
);
|
|
84
|
-
let DaikinTextField = class extends
|
|
89
|
+
let DaikinTextField = class extends DDSElement {
|
|
85
90
|
constructor() {
|
|
86
91
|
super(...arguments);
|
|
87
92
|
this._internals = this.attachInternals();
|
|
@@ -158,6 +163,10 @@ let DaikinTextField = class extends LitElement {
|
|
|
158
163
|
}
|
|
159
164
|
this._internals.setFormValue(this.value);
|
|
160
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
168
|
+
* @private
|
|
169
|
+
*/
|
|
161
170
|
reflectInputGroup(inputGroup) {
|
|
162
171
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
163
172
|
this.disabled = !!inputGroup.disabled;
|
|
@@ -217,7 +226,7 @@ __decorateClass([
|
|
|
217
226
|
state()
|
|
218
227
|
], DaikinTextField.prototype, "_hasRightIcon", 2);
|
|
219
228
|
DaikinTextField = __decorateClass([
|
|
220
|
-
|
|
229
|
+
ddsElement("daikin-text-field")
|
|
221
230
|
], DaikinTextField);
|
|
222
231
|
export {
|
|
223
232
|
DaikinTextField
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
|
+
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
|
+
import { cvaContainer, cvaContent, cvaTimestamp } from "../../utils/notification-common.js";
|
|
4
|
+
export type ToastNotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaContent | typeof cvaTimestamp>;
|
|
5
|
+
/**
|
|
6
|
+
* The toast notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
|
|
7
|
+
*
|
|
8
|
+
* Toast notification displays a brief message that should appear temporarily at the edge of the screen, typically in the bottom or top corner.
|
|
9
|
+
* Toast notification is ideal for conveying transient information that does not require user interaction, such as success messages, warnings, or alerts.
|
|
10
|
+
*
|
|
11
|
+
* Hierarchy:
|
|
12
|
+
* - `daikin-toast-notification-manager` > `daikin-toast-notification`
|
|
13
|
+
*
|
|
14
|
+
* @fires close - A custom event emitted when a user clicks the close button.
|
|
15
|
+
*
|
|
16
|
+
* @slot A slot for the toast notification description content.
|
|
17
|
+
* @slot title - A slot for the toast notification title content.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
*
|
|
21
|
+
* ```js
|
|
22
|
+
* import "@daikin-oss/design-system-web-components/components/toast-notification/index.js";
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ```html
|
|
26
|
+
* <daikin-toast-notification>
|
|
27
|
+
* <span slot="title">ToastNotification title</span>
|
|
28
|
+
* <span slot="description">ToastNotification description</span>
|
|
29
|
+
* </daikin-toast-notification>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class DaikinToastNotification extends DDSElement {
|
|
33
|
+
static readonly styles: import('lit').CSSResult;
|
|
34
|
+
/**
|
|
35
|
+
* Name of the toast notification.
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* Status of the toast notification.
|
|
40
|
+
*/
|
|
41
|
+
status: ToastNotificationVariantProps["status"];
|
|
42
|
+
/**
|
|
43
|
+
* Specify how to arrange the elements.
|
|
44
|
+
*/
|
|
45
|
+
layout: ToastNotificationVariantProps["layout"];
|
|
46
|
+
/**
|
|
47
|
+
* Whether to display the close button.
|
|
48
|
+
*/
|
|
49
|
+
closable: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The timestamp to display.
|
|
52
|
+
*/
|
|
53
|
+
timestamp: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
* Specify how long to display the toast (in msec).
|
|
56
|
+
* If `null` is specified, the toast will not be automatically closed.
|
|
57
|
+
*/
|
|
58
|
+
duration: number | null;
|
|
59
|
+
/**
|
|
60
|
+
* Emits a "close" event.
|
|
61
|
+
*/
|
|
62
|
+
private _handleClickClose;
|
|
63
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
64
|
+
}
|
|
65
|
+
declare global {
|
|
66
|
+
interface HTMLElementTagNameMap {
|
|
67
|
+
"daikin-toast-notification": DaikinToastNotification;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { css, unsafeCSS, html, nothing } from "lit";
|
|
2
|
+
import { property } from "lit/decorators.js";
|
|
3
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
4
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
5
|
+
import "../../base/define.js";
|
|
6
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
7
|
+
import { TOAST_ANIMATION_DURATION, cvaContainer, cvaContent, cvaTitle, cvaDescription, cvaTimestamp, formatDate } from "../../utils/notification-common.js";
|
|
8
|
+
import "../icon-button/daikin-icon-button.js";
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
+
if (decorator = decorators[i])
|
|
15
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
+
if (kind && result) __defProp(target, key, result);
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
19
|
+
let DaikinToastNotification = class extends DDSElement {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.name = "";
|
|
23
|
+
this.status = "positive";
|
|
24
|
+
this.layout = "horizontal";
|
|
25
|
+
this.closable = false;
|
|
26
|
+
this.timestamp = null;
|
|
27
|
+
this.duration = null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Emits a "close" event.
|
|
31
|
+
*/
|
|
32
|
+
_handleClickClose(event) {
|
|
33
|
+
this.dispatchEvent(new Event("close", event));
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
return html`<div
|
|
37
|
+
class=${cvaContainer({ variant: "toast", status: this.status })}
|
|
38
|
+
role="alert"
|
|
39
|
+
>
|
|
40
|
+
<div class=${cvaContent({ layout: this.layout })}>
|
|
41
|
+
<slot class=${cvaTitle({ layout: this.layout })} name="title"></slot>
|
|
42
|
+
<slot
|
|
43
|
+
class=${cvaDescription({ layout: this.layout })}
|
|
44
|
+
name="description"
|
|
45
|
+
></slot>
|
|
46
|
+
${this.timestamp ? html`<span class=${cvaTimestamp({ layout: this.layout })}
|
|
47
|
+
>${formatDate(this.timestamp)}</span
|
|
48
|
+
>` : nothing}
|
|
49
|
+
</div>
|
|
50
|
+
<slot name="action" class="flex-none"></slot>
|
|
51
|
+
${this.closable ? html`<daikin-icon-button
|
|
52
|
+
variant="ghost"
|
|
53
|
+
button-aria-label="Close"
|
|
54
|
+
@click=${this._handleClickClose}
|
|
55
|
+
>
|
|
56
|
+
<span
|
|
57
|
+
class="flex size-6 text-ddt-color-common-text-secondary relative i-daikin-cross"
|
|
58
|
+
></span>
|
|
59
|
+
</daikin-icon-button>` : nothing}
|
|
60
|
+
</div>`;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
DaikinToastNotification.styles = css`
|
|
64
|
+
${unsafeCSS(tailwindStyles)}
|
|
65
|
+
|
|
66
|
+
:host {
|
|
67
|
+
display: block;
|
|
68
|
+
|
|
69
|
+
--ddc-toast-animation-duration: ${unsafeCSS(TOAST_ANIMATION_DURATION)}ms;
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
__decorateClass([
|
|
73
|
+
property({ type: String, reflect: true })
|
|
74
|
+
], DaikinToastNotification.prototype, "name", 2);
|
|
75
|
+
__decorateClass([
|
|
76
|
+
property({ type: String })
|
|
77
|
+
], DaikinToastNotification.prototype, "status", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
property({ type: String })
|
|
80
|
+
], DaikinToastNotification.prototype, "layout", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
property({ type: Boolean, reflect: true })
|
|
83
|
+
], DaikinToastNotification.prototype, "closable", 2);
|
|
84
|
+
__decorateClass([
|
|
85
|
+
property({ type: Object, reflect: true, attribute: false })
|
|
86
|
+
], DaikinToastNotification.prototype, "timestamp", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
property({ type: Number, reflect: true })
|
|
89
|
+
], DaikinToastNotification.prototype, "duration", 2);
|
|
90
|
+
DaikinToastNotification = __decorateClass([
|
|
91
|
+
ddsElement("daikin-toast-notification")
|
|
92
|
+
], DaikinToastNotification);
|
|
93
|
+
export {
|
|
94
|
+
DaikinToastNotification
|
|
95
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-toast-notification.js";
|
package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
|
+
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
|
+
declare const cvaContainer: (props?: ({
|
|
4
|
+
position?: "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export type ToastPosition = MergeVariantProps<typeof cvaContainer>["position"];
|
|
7
|
+
/**
|
|
8
|
+
* The toast manager component manages the position and display state of notification toasts.
|
|
9
|
+
* Just place a notification toast in the slot and it will automatically be placed, stacked and animated.
|
|
10
|
+
*
|
|
11
|
+
* Hierarchy:
|
|
12
|
+
* - `daikin-toast-notification-manager` > `daikin-toast-notification`
|
|
13
|
+
*
|
|
14
|
+
* @fires close - A custom event emitted when a user clicks the close button. The toast manager does not remove toast elements, so you will need to remove the relevant toast element after receiving this event.
|
|
15
|
+
*
|
|
16
|
+
* @slot A slot for toasts. Place `daikin-toast-notification` elements here.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
*
|
|
20
|
+
* ```js
|
|
21
|
+
* import "@daikin-oss/design-system-web-components/components/toast-notification-manager/index.js";
|
|
22
|
+
* import "@daikin-oss/design-system-web-components/components/toast-notification/index.js";
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ```html
|
|
26
|
+
* <daikin-toast-notification-manager>
|
|
27
|
+
* <daikin-toast-notification name="toast1">
|
|
28
|
+
* <span slot="title">Toast title</span>
|
|
29
|
+
* <span slot="description">Toast description</span>
|
|
30
|
+
* </daikin-toast-notification>
|
|
31
|
+
* <daikin-toast-notification name="toast2">
|
|
32
|
+
* <span slot="title">Toast title</span>
|
|
33
|
+
* <span slot="description">Toast description</span>
|
|
34
|
+
* </daikin-toast-notification>
|
|
35
|
+
* <daikin-toast-notification name="toast3">
|
|
36
|
+
* <span slot="title">Toast title</span>
|
|
37
|
+
* <span slot="description">Toast description</span>
|
|
38
|
+
* </daikin-toast-notification>
|
|
39
|
+
* </daikin-toast-notification-manager>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare class DaikinToastNotificationManager extends DDSElement {
|
|
43
|
+
static readonly styles: import('lit').CSSResult;
|
|
44
|
+
/**
|
|
45
|
+
* Specify where on the screen the toast will be displayed.
|
|
46
|
+
*/
|
|
47
|
+
position: ToastPosition;
|
|
48
|
+
private readonly _items;
|
|
49
|
+
private _knownItemSet;
|
|
50
|
+
private _closedItemSet;
|
|
51
|
+
private _containerRef;
|
|
52
|
+
private get _positionY();
|
|
53
|
+
private get _sign();
|
|
54
|
+
private _close;
|
|
55
|
+
private _handleClose;
|
|
56
|
+
private _handleNewItem;
|
|
57
|
+
private _handleSlotchange;
|
|
58
|
+
private _scheduleRemoveToast;
|
|
59
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
60
|
+
protected firstUpdated(): void;
|
|
61
|
+
}
|
|
62
|
+
declare global {
|
|
63
|
+
interface HTMLElementTagNameMap {
|
|
64
|
+
"daikin-toast-notification-manager": DaikinToastNotificationManager;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export {};
|