@daikin-oss/design-system-web-components 0.7.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +109 -12
- package/README.md +2 -2
- package/dist/cjs/base/dds-element.cjs +8 -0
- package/dist/cjs/base/dds-element.d.cts +4 -0
- package/dist/cjs/base/decorators.cjs +13 -0
- package/dist/cjs/base/decorators.d.cts +2 -0
- package/dist/cjs/base/define.cjs +18 -0
- package/dist/cjs/base/define.d.cts +1 -0
- package/dist/cjs/base/index.cjs +8 -0
- package/dist/cjs/base/index.d.cts +3 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs/components/button/daikin-button.cjs +20 -8
- package/dist/cjs/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs/components/card/daikin-card.cjs +11 -7
- package/dist/cjs/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs/components/carousel/index.cjs +7 -0
- package/dist/cjs/components/carousel/index.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs/components/carousel-item/index.cjs +7 -0
- package/dist/cjs/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +34 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +16 -5
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +25 -5
- package/dist/cjs/components/index.d.cts +5 -1
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs/components/inline-notification/index.cjs +7 -0
- package/dist/cjs/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs/components/link/daikin-link.cjs +9 -6
- package/dist/cjs/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs/components/list/daikin-list.cjs +9 -9
- package/dist/cjs/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs/components/select/daikin-select.cjs +15 -6
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs/components/table/daikin-table.cjs +9 -6
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs/components/toast-notification/index.cjs +7 -0
- package/dist/cjs/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +25 -5
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
- package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
- package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs-dev/components/carousel/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +34 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +16 -5
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +25 -5
- package/dist/cjs-dev/components/index.d.cts +5 -1
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
- package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
- package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +16 -30
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs-dev/components/select/daikin-select.cjs +15 -6
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +9 -6
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +25 -5
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es/components/button/daikin-button.d.ts +6 -3
- package/dist/es/components/button/daikin-button.js +19 -7
- package/dist/es/components/card/daikin-card.d.ts +8 -2
- package/dist/es/components/card/daikin-card.js +10 -6
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es/components/card-header/daikin-card-header.js +8 -8
- package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es/components/carousel/daikin-carousel.js +218 -0
- package/dist/es/components/carousel/index.d.ts +1 -0
- package/dist/es/components/carousel/index.js +4 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es/components/carousel-item/index.d.ts +1 -0
- package/dist/es/components/carousel-item/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +33 -15
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +15 -4
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +11 -4
- package/dist/es/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es/components/icon/daikin-icon.js +7 -4
- package/dist/es/components/icon/icons.json.d.ts +0 -8
- package/dist/es/components/icon/icons.json.js +1 -70
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es/components/index.d.ts +5 -1
- package/dist/es/components/index.js +10 -2
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es/components/inline-notification/index.d.ts +1 -0
- package/dist/es/components/inline-notification/index.js +4 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es/components/input-group/daikin-input-group.js +11 -8
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +8 -5
- package/dist/es/components/list/daikin-list.d.ts +7 -2
- package/dist/es/components/list/daikin-list.js +7 -7
- package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es/components/list-item/daikin-list-item.js +7 -4
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +21 -12
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +44 -22
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es/components/select/daikin-select.d.ts +11 -2
- package/dist/es/components/select/daikin-select.js +14 -5
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +24 -9
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es/components/table/daikin-table.d.ts +9 -2
- package/dist/es/components/table/daikin-table.js +8 -5
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es/components/tabs/daikin-tabs.js +24 -9
- package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es/components/text-area/daikin-text-area.js +15 -6
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +15 -6
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es/components/toast-notification/index.d.ts +1 -0
- package/dist/es/components/toast-notification/index.js +4 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es/components/toast-notification-manager/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es/components/toggle/daikin-toggle.js +7 -4
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es/components/tree/daikin-tree.js +35 -36
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.js +10 -2
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
- package/dist/es-dev/components/button/daikin-button.js +19 -7
- package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
- package/dist/es-dev/components/card/daikin-card.js +10 -6
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
- package/dist/es-dev/components/carousel/index.d.ts +1 -0
- package/dist/es-dev/components/carousel/index.js +4 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +33 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +15 -4
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +11 -4
- package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es-dev/components/icon/daikin-icon.js +7 -4
- package/dist/es-dev/components/icon/icons.json.d.ts +0 -8
- package/dist/es-dev/components/icon/icons.json.js +1 -70
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es-dev/components/index.d.ts +5 -1
- package/dist/es-dev/components/index.js +10 -2
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
- package/dist/es-dev/components/inline-notification/index.js +4 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +8 -5
- package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
- package/dist/es-dev/components/list/daikin-list.js +7 -7
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.js +7 -4
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +15 -29
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +44 -22
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
- package/dist/es-dev/components/select/daikin-select.js +14 -5
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +24 -9
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
- package/dist/es-dev/components/table/daikin-table.js +8 -5
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +15 -6
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +15 -6
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification/index.js +4 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es-dev/components/toggle/daikin-toggle.js +7 -4
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es-dev/components/tree/daikin-tree.js +35 -36
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.js +10 -2
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +54 -50
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs/components/notification/index.cjs +0 -7
- package/dist/cjs/components/notification/index.d.cts +0 -1
- package/dist/cjs/constants/events.cjs +0 -4
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs-dev/components/notification/index.cjs +0 -7
- package/dist/cjs-dev/components/notification/index.d.cts +0 -1
- package/dist/cjs-dev/constants/events.cjs +0 -4
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -197
- package/dist/es/components/notification/index.d.ts +0 -1
- package/dist/es/components/notification/index.js +0 -4
- package/dist/es/constants/events.js +0 -4
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -197
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -4,13 +4,16 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
7
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
11
|
var __defProp = Object.defineProperty;
|
|
9
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __decorateClass = (
|
|
13
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
11
14
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
-
for (var i =
|
|
13
|
-
if (decorator =
|
|
15
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators2[i])
|
|
14
17
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
18
|
if (kind && result) __defProp(target, key, result);
|
|
16
19
|
return result;
|
|
@@ -34,13 +37,13 @@ const cvaTextArea = classVarianceAuthority.cva(
|
|
|
34
37
|
"define-[--color-state-active,--color-state-focus,--color-base]/color-border",
|
|
35
38
|
"border",
|
|
36
39
|
"border-[--color-border]",
|
|
37
|
-
// Update `--color-base` depending on the state.
|
|
38
|
-
// 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.
|
|
39
40
|
"enabled:text-ddt-color-common-text-primary",
|
|
40
41
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
41
42
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
42
43
|
"focus-visible:outline-2",
|
|
43
44
|
"focus-visible:-outline-offset-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-color-common-background-default",
|
|
@@ -51,6 +54,8 @@ const cvaTextArea = classVarianceAuthority.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"]
|
|
@@ -62,7 +67,7 @@ const cvaTextArea = classVarianceAuthority.cva(
|
|
|
62
67
|
}
|
|
63
68
|
}
|
|
64
69
|
);
|
|
65
|
-
exports.DaikinTextArea = class DaikinTextArea extends
|
|
70
|
+
exports.DaikinTextArea = class DaikinTextArea extends ddsElement.DDSElement {
|
|
66
71
|
constructor() {
|
|
67
72
|
super(...arguments);
|
|
68
73
|
this._internals = this.attachInternals();
|
|
@@ -113,6 +118,10 @@ exports.DaikinTextArea = class DaikinTextArea extends lit.LitElement {
|
|
|
113
118
|
}
|
|
114
119
|
this._updateValue(this.value);
|
|
115
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
123
|
+
* @private
|
|
124
|
+
*/
|
|
116
125
|
reflectInputGroup(inputGroup) {
|
|
117
126
|
const isError = !inputGroup.disabled && (!!inputGroup.error || !!inputGroup.textareaLimitExceeded);
|
|
118
127
|
this.disabled = !!inputGroup.disabled;
|
|
@@ -162,5 +171,5 @@ __decorateClass([
|
|
|
162
171
|
decorators_js.state()
|
|
163
172
|
], exports.DaikinTextArea.prototype, "_label", 2);
|
|
164
173
|
exports.DaikinTextArea = __decorateClass([
|
|
165
|
-
|
|
174
|
+
decorators.ddsElement("daikin-text-area")
|
|
166
175
|
], exports.DaikinTextArea);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
3
4
|
/**
|
|
4
5
|
* 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.cjs";
|
|
|
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 {
|
|
@@ -4,13 +4,16 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
7
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
11
|
var __defProp = Object.defineProperty;
|
|
9
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __decorateClass = (
|
|
13
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
11
14
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
-
for (var i =
|
|
13
|
-
if (decorator =
|
|
15
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators2[i])
|
|
14
17
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
18
|
if (kind && result) __defProp(target, key, result);
|
|
16
19
|
return result;
|
|
@@ -37,12 +40,12 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
37
40
|
"define-[--color-state-focus,--color-base]/color-border",
|
|
38
41
|
"border",
|
|
39
42
|
"border-[--color-border]",
|
|
40
|
-
// Update `--color-base` depending on the state.
|
|
41
|
-
// 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
43
|
"enabled:text-ddt-color-common-text-primary",
|
|
43
44
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
44
45
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
45
46
|
"focus-visible:outline-2",
|
|
47
|
+
// Update `--color-base` depending on the state.
|
|
48
|
+
// 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.
|
|
46
49
|
"disabled:var-color-ddt-color-common-disabled/color-base",
|
|
47
50
|
"disabled:text-ddt-color-common-disabled",
|
|
48
51
|
"disabled:bg-ddt-color-common-background-default",
|
|
@@ -53,6 +56,8 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
53
56
|
error: {
|
|
54
57
|
false: [
|
|
55
58
|
"enabled:var-color-ddt-color-common-neutral-default/color-base",
|
|
59
|
+
"enabled:hover:var-color-ddt-color-common-neutral-hover/color-base",
|
|
60
|
+
"enabled:active:var-color-ddt-color-common-neutral-press/color-base",
|
|
56
61
|
"focus-visible:var-color-ddt-color-common-border-focus/color-state-focus"
|
|
57
62
|
],
|
|
58
63
|
true: ["enabled:var-color-ddt-color-common-danger-default/color-base"]
|
|
@@ -83,7 +88,7 @@ const cvaIcon = classVarianceAuthority.cva(
|
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
90
|
);
|
|
86
|
-
exports.DaikinTextField = class DaikinTextField extends
|
|
91
|
+
exports.DaikinTextField = class DaikinTextField extends ddsElement.DDSElement {
|
|
87
92
|
constructor() {
|
|
88
93
|
super(...arguments);
|
|
89
94
|
this._internals = this.attachInternals();
|
|
@@ -160,6 +165,10 @@ exports.DaikinTextField = class DaikinTextField extends lit.LitElement {
|
|
|
160
165
|
}
|
|
161
166
|
this._internals.setFormValue(this.value);
|
|
162
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
170
|
+
* @private
|
|
171
|
+
*/
|
|
163
172
|
reflectInputGroup(inputGroup) {
|
|
164
173
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
165
174
|
this.disabled = !!inputGroup.disabled;
|
|
@@ -219,5 +228,5 @@ __decorateClass([
|
|
|
219
228
|
decorators_js.state()
|
|
220
229
|
], exports.DaikinTextField.prototype, "_hasRightIcon", 2);
|
|
221
230
|
exports.DaikinTextField = __decorateClass([
|
|
222
|
-
|
|
231
|
+
decorators.ddsElement("daikin-text-field")
|
|
223
232
|
], exports.DaikinTextField);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
3
4
|
/**
|
|
4
5
|
* 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.cjs";
|
|
|
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 {
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const lit = require("lit");
|
|
4
|
+
const decorators_js = require("lit/decorators.js");
|
|
5
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
6
|
+
const decorators = require("../../base/decorators.cjs");
|
|
7
|
+
require("../../base/define.cjs");
|
|
8
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
9
|
+
const notificationCommon = require("../../utils/notification-common.cjs");
|
|
10
|
+
require("../icon-button/daikin-icon-button.cjs");
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
14
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators2[i])
|
|
17
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
|
+
if (kind && result) __defProp(target, key, result);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
exports.DaikinToastNotification = class DaikinToastNotification extends ddsElement.DDSElement {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.name = "";
|
|
25
|
+
this.status = "positive";
|
|
26
|
+
this.layout = "horizontal";
|
|
27
|
+
this.closable = false;
|
|
28
|
+
this.timestamp = null;
|
|
29
|
+
this.duration = null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Emits a "close" event.
|
|
33
|
+
*/
|
|
34
|
+
_handleClickClose(event) {
|
|
35
|
+
this.dispatchEvent(new Event("close", event));
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
return lit.html`<div
|
|
39
|
+
class=${notificationCommon.cvaContainer({ variant: "toast", status: this.status })}
|
|
40
|
+
role="alert"
|
|
41
|
+
>
|
|
42
|
+
<div class=${notificationCommon.cvaContent({ layout: this.layout })}>
|
|
43
|
+
<slot class=${notificationCommon.cvaTitle({ layout: this.layout })} name="title"></slot>
|
|
44
|
+
<slot
|
|
45
|
+
class=${notificationCommon.cvaDescription({ layout: this.layout })}
|
|
46
|
+
name="description"
|
|
47
|
+
></slot>
|
|
48
|
+
${this.timestamp ? lit.html`<span class=${notificationCommon.cvaTimestamp({ layout: this.layout })}
|
|
49
|
+
>${notificationCommon.formatDate(this.timestamp)}</span
|
|
50
|
+
>` : lit.nothing}
|
|
51
|
+
</div>
|
|
52
|
+
<slot name="action" class="flex-none"></slot>
|
|
53
|
+
${this.closable ? lit.html`<daikin-icon-button
|
|
54
|
+
variant="ghost"
|
|
55
|
+
button-aria-label="Close"
|
|
56
|
+
@click=${this._handleClickClose}
|
|
57
|
+
>
|
|
58
|
+
<span
|
|
59
|
+
class="flex size-6 text-ddt-color-common-text-secondary relative i-daikin-cross"
|
|
60
|
+
></span>
|
|
61
|
+
</daikin-icon-button>` : lit.nothing}
|
|
62
|
+
</div>`;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.DaikinToastNotification.styles = lit.css`
|
|
66
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
67
|
+
|
|
68
|
+
:host {
|
|
69
|
+
display: block;
|
|
70
|
+
|
|
71
|
+
--ddc-toast-animation-duration: ${lit.unsafeCSS(notificationCommon.TOAST_ANIMATION_DURATION)}ms;
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
__decorateClass([
|
|
75
|
+
decorators_js.property({ type: String, reflect: true })
|
|
76
|
+
], exports.DaikinToastNotification.prototype, "name", 2);
|
|
77
|
+
__decorateClass([
|
|
78
|
+
decorators_js.property({ type: String })
|
|
79
|
+
], exports.DaikinToastNotification.prototype, "status", 2);
|
|
80
|
+
__decorateClass([
|
|
81
|
+
decorators_js.property({ type: String })
|
|
82
|
+
], exports.DaikinToastNotification.prototype, "layout", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
85
|
+
], exports.DaikinToastNotification.prototype, "closable", 2);
|
|
86
|
+
__decorateClass([
|
|
87
|
+
decorators_js.property({ type: Object, reflect: true, attribute: false })
|
|
88
|
+
], exports.DaikinToastNotification.prototype, "timestamp", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
decorators_js.property({ type: Number, reflect: true })
|
|
91
|
+
], exports.DaikinToastNotification.prototype, "duration", 2);
|
|
92
|
+
exports.DaikinToastNotification = __decorateClass([
|
|
93
|
+
decorators.ddsElement("daikin-toast-notification")
|
|
94
|
+
], exports.DaikinToastNotification);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
|
+
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
|
+
import { cvaContainer, cvaContent, cvaTimestamp } from "../../utils/notification-common.cjs";
|
|
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,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinToastNotification = require("./daikin-toast-notification.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinToastNotification", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinToastNotification.DaikinToastNotification
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-toast-notification.cjs";
|
package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
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 ref_js = require("lit/directives/ref.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
10
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
11
|
+
const notificationCommon = require("../../utils/notification-common.cjs");
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
15
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
16
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators2[i])
|
|
18
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
|
+
if (kind && result) __defProp(target, key, result);
|
|
20
|
+
return result;
|
|
21
|
+
};
|
|
22
|
+
const CONTAINER_TRANSITION_DURATION = "--container-transition-duration";
|
|
23
|
+
const CONTAINER_MOVE_OFFSET_Y = "--container-move-offset-y";
|
|
24
|
+
const TOAST_MOVE_OFFSET_X = "24px";
|
|
25
|
+
const TOAST_MOVE_OFFSET_Y_TOP_SIGN = -1;
|
|
26
|
+
const TOAST_MOVE_OFFSET_Y_BOTTOM_SIGN = 1;
|
|
27
|
+
const cvaContainer = classVarianceAuthority.cva(
|
|
28
|
+
[
|
|
29
|
+
"flex",
|
|
30
|
+
"gap-2",
|
|
31
|
+
"w-max",
|
|
32
|
+
"fixed",
|
|
33
|
+
"transition-transform",
|
|
34
|
+
"translate-y-[var(--container-move-offset-y,0)]",
|
|
35
|
+
"duration-[var(--container-transition-duration,200ms)]"
|
|
36
|
+
],
|
|
37
|
+
{
|
|
38
|
+
variants: {
|
|
39
|
+
position: {
|
|
40
|
+
top: [
|
|
41
|
+
"items-center",
|
|
42
|
+
"flex-col",
|
|
43
|
+
"m-auto",
|
|
44
|
+
"top-4",
|
|
45
|
+
"left-0",
|
|
46
|
+
"right-0"
|
|
47
|
+
],
|
|
48
|
+
"top-left": ["items-start", "flex-col", "top-4", "left-4"],
|
|
49
|
+
"top-right": ["items-end", "flex-col", "top-4", "right-4"],
|
|
50
|
+
bottom: [
|
|
51
|
+
"items-center",
|
|
52
|
+
"flex-col-reverse",
|
|
53
|
+
"m-auto",
|
|
54
|
+
"bottom-4",
|
|
55
|
+
"left-0",
|
|
56
|
+
"right-0"
|
|
57
|
+
],
|
|
58
|
+
"bottom-left": [
|
|
59
|
+
"items-start",
|
|
60
|
+
"flex-col-reverse",
|
|
61
|
+
"bottom-4",
|
|
62
|
+
"left-4"
|
|
63
|
+
],
|
|
64
|
+
"bottom-right": [
|
|
65
|
+
"items-end",
|
|
66
|
+
"flex-col-reverse",
|
|
67
|
+
"bottom-4",
|
|
68
|
+
"right-4"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
exports.DaikinToastNotificationManager = class DaikinToastNotificationManager extends ddsElement.DDSElement {
|
|
75
|
+
constructor() {
|
|
76
|
+
super(...arguments);
|
|
77
|
+
this.position = "bottom-right";
|
|
78
|
+
this._knownItemSet = /* @__PURE__ */ new Set();
|
|
79
|
+
this._closedItemSet = /* @__PURE__ */ new WeakSet();
|
|
80
|
+
this._containerRef = ref_js.createRef();
|
|
81
|
+
}
|
|
82
|
+
get _positionY() {
|
|
83
|
+
return this.position.startsWith("top") ? "top" : "bottom";
|
|
84
|
+
}
|
|
85
|
+
get _sign() {
|
|
86
|
+
return this._positionY === "top" ? TOAST_MOVE_OFFSET_Y_TOP_SIGN : TOAST_MOVE_OFFSET_Y_BOTTOM_SIGN;
|
|
87
|
+
}
|
|
88
|
+
_close(target) {
|
|
89
|
+
if (this._closedItemSet.has(target)) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
this._closedItemSet.add(target);
|
|
93
|
+
const items = this._items;
|
|
94
|
+
const targetIndex = items.findIndex((item) => item === target);
|
|
95
|
+
if (targetIndex === -1) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const moveOffsetY = `calc(${0.5 * this._sign}rem + ${target.clientHeight * this._sign}px)`;
|
|
99
|
+
for (const [index, item] of items.entries()) {
|
|
100
|
+
item.style.removeProperty("--transition-duration");
|
|
101
|
+
if (index > targetIndex) {
|
|
102
|
+
item.style.setProperty("--move-offset-y", moveOffsetY);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
target.style.setProperty("--move-offset-x", TOAST_MOVE_OFFSET_X);
|
|
106
|
+
target.style.setProperty("--opacity", "0");
|
|
107
|
+
target.style.setProperty("--pointer-events", "none");
|
|
108
|
+
setTimeout(() => {
|
|
109
|
+
for (const item of this._items) {
|
|
110
|
+
item.style.setProperty("--transition-duration", "0");
|
|
111
|
+
item.style.removeProperty("--move-offset-y");
|
|
112
|
+
}
|
|
113
|
+
target.hidden = true;
|
|
114
|
+
this.dispatchEvent(new CustomEvent("close", { detail: { target } }));
|
|
115
|
+
}, notificationCommon.TOAST_ANIMATION_DURATION);
|
|
116
|
+
}
|
|
117
|
+
_handleClose(event) {
|
|
118
|
+
event.stopPropagation();
|
|
119
|
+
this._close(event.target);
|
|
120
|
+
}
|
|
121
|
+
_handleNewItem(newItem) {
|
|
122
|
+
const container = this._containerRef.value;
|
|
123
|
+
if (!container) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
requestAnimationFrame(() => {
|
|
127
|
+
newItem.style.setProperty("--opacity", "0");
|
|
128
|
+
container.style.setProperty(CONTAINER_TRANSITION_DURATION, "0");
|
|
129
|
+
container.style.setProperty(
|
|
130
|
+
CONTAINER_MOVE_OFFSET_Y,
|
|
131
|
+
`calc(${0.5 * this._sign}rem + ${newItem.clientHeight * this._sign}px)`
|
|
132
|
+
);
|
|
133
|
+
requestAnimationFrame(() => {
|
|
134
|
+
container.style.removeProperty(CONTAINER_TRANSITION_DURATION);
|
|
135
|
+
container.style.removeProperty(CONTAINER_MOVE_OFFSET_Y);
|
|
136
|
+
newItem.style.removeProperty("--opacity");
|
|
137
|
+
this._scheduleRemoveToast(newItem);
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
_handleSlotchange() {
|
|
142
|
+
const items = this._items;
|
|
143
|
+
const newItems = items.filter((item) => !this._knownItemSet.has(item));
|
|
144
|
+
this._knownItemSet = new Set(items);
|
|
145
|
+
for (const newItem of newItems) {
|
|
146
|
+
this._handleNewItem(newItem);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
_scheduleRemoveToast(target) {
|
|
150
|
+
if (target.duration === null) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
setTimeout(() => {
|
|
154
|
+
this._close(target);
|
|
155
|
+
}, target.duration);
|
|
156
|
+
}
|
|
157
|
+
render() {
|
|
158
|
+
return lit.html`<aside
|
|
159
|
+
${ref_js.ref(this._containerRef)}
|
|
160
|
+
class=${cvaContainer({ position: this.position })}
|
|
161
|
+
popover="manual"
|
|
162
|
+
>
|
|
163
|
+
<slot
|
|
164
|
+
@close=${this._handleClose}
|
|
165
|
+
@slotchange=${this._handleSlotchange}
|
|
166
|
+
></slot>
|
|
167
|
+
</aside>`;
|
|
168
|
+
}
|
|
169
|
+
firstUpdated() {
|
|
170
|
+
const container = this._containerRef.value;
|
|
171
|
+
if (container) {
|
|
172
|
+
container.showPopover();
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
exports.DaikinToastNotificationManager.styles = lit.css`
|
|
177
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
178
|
+
|
|
179
|
+
:host {
|
|
180
|
+
display: block;
|
|
181
|
+
width: max-content;
|
|
182
|
+
}
|
|
183
|
+
`;
|
|
184
|
+
__decorateClass([
|
|
185
|
+
decorators_js.property({ type: String, reflect: true })
|
|
186
|
+
], exports.DaikinToastNotificationManager.prototype, "position", 2);
|
|
187
|
+
__decorateClass([
|
|
188
|
+
decorators_js.queryAssignedElements({ selector: "daikin-toast-notification" })
|
|
189
|
+
], exports.DaikinToastNotificationManager.prototype, "_items", 2);
|
|
190
|
+
exports.DaikinToastNotificationManager = __decorateClass([
|
|
191
|
+
decorators.ddsElement("daikin-toast-notification-manager")
|
|
192
|
+
], exports.DaikinToastNotificationManager);
|
package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
|
+
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
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 {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinToastNotificationManager = require("./daikin-toast-notification-manager.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinToastNotificationManager", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinToastNotificationManager.DaikinToastNotificationManager
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-toast-notification-manager.cjs";
|