@daikin-oss/design-system-web-components 0.7.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +109 -12
- package/README.md +2 -2
- package/dist/cjs/base/dds-element.cjs +8 -0
- package/dist/cjs/base/dds-element.d.cts +4 -0
- package/dist/cjs/base/decorators.cjs +13 -0
- package/dist/cjs/base/decorators.d.cts +2 -0
- package/dist/cjs/base/define.cjs +18 -0
- package/dist/cjs/base/define.d.cts +1 -0
- package/dist/cjs/base/index.cjs +8 -0
- package/dist/cjs/base/index.d.cts +3 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs/components/button/daikin-button.cjs +20 -8
- package/dist/cjs/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs/components/card/daikin-card.cjs +11 -7
- package/dist/cjs/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs/components/carousel/index.cjs +7 -0
- package/dist/cjs/components/carousel/index.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs/components/carousel-item/index.cjs +7 -0
- package/dist/cjs/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +34 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +16 -5
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +25 -5
- package/dist/cjs/components/index.d.cts +5 -1
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs/components/inline-notification/index.cjs +7 -0
- package/dist/cjs/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs/components/link/daikin-link.cjs +9 -6
- package/dist/cjs/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs/components/list/daikin-list.cjs +9 -9
- package/dist/cjs/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs/components/select/daikin-select.cjs +15 -6
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs/components/table/daikin-table.cjs +9 -6
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs/components/toast-notification/index.cjs +7 -0
- package/dist/cjs/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +25 -5
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
- package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
- package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs-dev/components/carousel/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +34 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +16 -5
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +25 -5
- package/dist/cjs-dev/components/index.d.cts +5 -1
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
- package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
- package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +16 -30
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs-dev/components/select/daikin-select.cjs +15 -6
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +9 -6
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +25 -5
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es/components/button/daikin-button.d.ts +6 -3
- package/dist/es/components/button/daikin-button.js +19 -7
- package/dist/es/components/card/daikin-card.d.ts +8 -2
- package/dist/es/components/card/daikin-card.js +10 -6
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es/components/card-header/daikin-card-header.js +8 -8
- package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es/components/carousel/daikin-carousel.js +218 -0
- package/dist/es/components/carousel/index.d.ts +1 -0
- package/dist/es/components/carousel/index.js +4 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es/components/carousel-item/index.d.ts +1 -0
- package/dist/es/components/carousel-item/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +33 -15
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +15 -4
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +11 -4
- package/dist/es/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es/components/icon/daikin-icon.js +7 -4
- package/dist/es/components/icon/icons.json.d.ts +0 -8
- package/dist/es/components/icon/icons.json.js +1 -70
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es/components/index.d.ts +5 -1
- package/dist/es/components/index.js +10 -2
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es/components/inline-notification/index.d.ts +1 -0
- package/dist/es/components/inline-notification/index.js +4 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es/components/input-group/daikin-input-group.js +11 -8
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +8 -5
- package/dist/es/components/list/daikin-list.d.ts +7 -2
- package/dist/es/components/list/daikin-list.js +7 -7
- package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es/components/list-item/daikin-list-item.js +7 -4
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +21 -12
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +44 -22
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es/components/select/daikin-select.d.ts +11 -2
- package/dist/es/components/select/daikin-select.js +14 -5
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +24 -9
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es/components/table/daikin-table.d.ts +9 -2
- package/dist/es/components/table/daikin-table.js +8 -5
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es/components/tabs/daikin-tabs.js +24 -9
- package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es/components/text-area/daikin-text-area.js +15 -6
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +15 -6
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es/components/toast-notification/index.d.ts +1 -0
- package/dist/es/components/toast-notification/index.js +4 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es/components/toast-notification-manager/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es/components/toggle/daikin-toggle.js +7 -4
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es/components/tree/daikin-tree.js +35 -36
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.js +10 -2
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
- package/dist/es-dev/components/button/daikin-button.js +19 -7
- package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
- package/dist/es-dev/components/card/daikin-card.js +10 -6
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
- package/dist/es-dev/components/carousel/index.d.ts +1 -0
- package/dist/es-dev/components/carousel/index.js +4 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +33 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +15 -4
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +11 -4
- package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es-dev/components/icon/daikin-icon.js +7 -4
- package/dist/es-dev/components/icon/icons.json.d.ts +0 -8
- package/dist/es-dev/components/icon/icons.json.js +1 -70
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es-dev/components/index.d.ts +5 -1
- package/dist/es-dev/components/index.js +10 -2
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
- package/dist/es-dev/components/inline-notification/index.js +4 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +8 -5
- package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
- package/dist/es-dev/components/list/daikin-list.js +7 -7
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.js +7 -4
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +15 -29
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +44 -22
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
- package/dist/es-dev/components/select/daikin-select.js +14 -5
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +24 -9
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
- package/dist/es-dev/components/table/daikin-table.js +8 -5
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +15 -6
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +15 -6
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification/index.js +4 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es-dev/components/toggle/daikin-toggle.js +7 -4
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es-dev/components/tree/daikin-tree.js +35 -36
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.js +10 -2
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +54 -50
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs/components/notification/index.cjs +0 -7
- package/dist/cjs/components/notification/index.d.cts +0 -1
- package/dist/cjs/constants/events.cjs +0 -4
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs-dev/components/notification/index.cjs +0 -7
- package/dist/cjs-dev/components/notification/index.d.cts +0 -1
- package/dist/cjs-dev/constants/events.cjs +0 -4
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -197
- package/dist/es/components/notification/index.d.ts +0 -1
- package/dist/es/components/notification/index.js +0 -4
- package/dist/es/constants/events.js +0 -4
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -197
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { flip, offset, size } from "@floating-ui/dom";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { css, unsafeCSS,
|
|
4
|
-
import { property, queryAssignedElements, query, state
|
|
3
|
+
import { css, unsafeCSS, html } from "lit";
|
|
4
|
+
import { property, queryAssignedElements, query, state } from "lit/decorators.js";
|
|
5
5
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
6
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
7
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
8
|
+
import "../../base/define.js";
|
|
6
9
|
import { ClickOutsideController } from "../../controllers/click-outside.js";
|
|
7
10
|
import { FloatingUIAutoUpdateController } from "../../controllers/floating-ui-auto-update.js";
|
|
8
11
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -93,7 +96,7 @@ const floatingPositionOptions = {
|
|
|
93
96
|
})
|
|
94
97
|
]
|
|
95
98
|
};
|
|
96
|
-
let DaikinDropdown = class extends
|
|
99
|
+
let DaikinDropdown = class extends DDSElement {
|
|
97
100
|
constructor() {
|
|
98
101
|
super(...arguments);
|
|
99
102
|
this._internals = this.attachInternals();
|
|
@@ -287,6 +290,10 @@ let DaikinDropdown = class extends LitElement {
|
|
|
287
290
|
this._clickOutsideController.directive(this.open && !this.disabled)}
|
|
288
291
|
</div>`;
|
|
289
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* Focuses on the inner button.
|
|
295
|
+
* @param options focus options
|
|
296
|
+
*/
|
|
290
297
|
focus(options) {
|
|
291
298
|
var _a;
|
|
292
299
|
(_a = this._button) == null ? void 0 : _a.focus(options);
|
|
@@ -306,6 +313,10 @@ let DaikinDropdown = class extends LitElement {
|
|
|
306
313
|
}
|
|
307
314
|
}
|
|
308
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
318
|
+
* @private
|
|
319
|
+
*/
|
|
309
320
|
reflectInputGroup(inputGroup) {
|
|
310
321
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
311
322
|
this.disabled = !!inputGroup.disabled;
|
|
@@ -361,7 +372,7 @@ __decorateClass([
|
|
|
361
372
|
state()
|
|
362
373
|
], DaikinDropdown.prototype, "_selectedItemLabel", 2);
|
|
363
374
|
DaikinDropdown = __decorateClass([
|
|
364
|
-
|
|
375
|
+
ddsElement("daikin-dropdown")
|
|
365
376
|
], DaikinDropdown);
|
|
366
377
|
export {
|
|
367
378
|
DaikinDropdown
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The dropdown item (option) component that can be used within `daikin-dropdown` component.
|
|
4
4
|
*
|
|
@@ -11,11 +11,15 @@ import { LitElement } from 'lit';
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
*
|
|
14
|
+
* ```js
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/dropdown-item/index.js";
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
14
18
|
* ```html
|
|
15
19
|
* <daikin-dropdown-item value="value">Dropdown item</daikin-dropdown-item>
|
|
16
20
|
* ```
|
|
17
21
|
*/
|
|
18
|
-
export declare class DaikinDropdownItem extends
|
|
22
|
+
export declare class DaikinDropdownItem extends DDSElement {
|
|
19
23
|
static readonly styles: import('lit').CSSResult;
|
|
20
24
|
/**
|
|
21
25
|
* Form value of the dropdown item.
|
|
@@ -33,6 +37,10 @@ export declare class DaikinDropdownItem extends LitElement {
|
|
|
33
37
|
private _button;
|
|
34
38
|
private _handleClick;
|
|
35
39
|
render(): import('lit-html').TemplateResult<1>;
|
|
40
|
+
/**
|
|
41
|
+
* Focuses on the inner button.
|
|
42
|
+
* @param options focus options
|
|
43
|
+
*/
|
|
36
44
|
focus(options?: FocusOptions): void;
|
|
37
45
|
}
|
|
38
46
|
declare global {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, query
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property, query } from "lit/decorators.js";
|
|
4
|
+
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;
|
|
@@ -49,7 +52,7 @@ const cvaOption = cva(
|
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
);
|
|
52
|
-
let DaikinDropdownItem = class extends
|
|
55
|
+
let DaikinDropdownItem = class extends DDSElement {
|
|
53
56
|
constructor() {
|
|
54
57
|
super(...arguments);
|
|
55
58
|
this.value = "";
|
|
@@ -80,6 +83,10 @@ let DaikinDropdownItem = class extends LitElement {
|
|
|
80
83
|
<slot></slot>
|
|
81
84
|
</button>`;
|
|
82
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Focuses on the inner button.
|
|
88
|
+
* @param options focus options
|
|
89
|
+
*/
|
|
83
90
|
focus(options) {
|
|
84
91
|
var _a;
|
|
85
92
|
(_a = this._button) == null ? void 0 : _a.focus(options);
|
|
@@ -106,7 +113,7 @@ __decorateClass([
|
|
|
106
113
|
query("button")
|
|
107
114
|
], DaikinDropdownItem.prototype, "_button", 2);
|
|
108
115
|
DaikinDropdownItem = __decorateClass([
|
|
109
|
-
|
|
116
|
+
ddsElement("daikin-dropdown-item")
|
|
110
117
|
], DaikinDropdownItem);
|
|
111
118
|
export {
|
|
112
119
|
DaikinDropdownItem
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
3
|
import { icons } from "./icons.json.js";
|
|
4
4
|
export declare const iconList: string[];
|
|
@@ -29,7 +29,7 @@ export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
|
|
|
29
29
|
* <daikin-icon icon="information" color="black" size="m"></daikin-icon>
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export declare class DaikinIcon extends
|
|
32
|
+
export declare class DaikinIcon extends DDSElement {
|
|
33
33
|
static readonly styles: import('lit').CSSResult;
|
|
34
34
|
/**
|
|
35
35
|
* Specify the name of the icon
|
|
@@ -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
|
import { icons } from "./icons.json.js";
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
@@ -29,7 +32,7 @@ const cvaIcon = cva(["block"], {
|
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
});
|
|
32
|
-
let DaikinIcon = class extends
|
|
35
|
+
let DaikinIcon = class extends DDSElement {
|
|
33
36
|
constructor() {
|
|
34
37
|
super(...arguments);
|
|
35
38
|
this.icon = null;
|
|
@@ -84,7 +87,7 @@ __decorateClass([
|
|
|
84
87
|
property({ type: String, reflect: true })
|
|
85
88
|
], DaikinIcon.prototype, "size", 2);
|
|
86
89
|
DaikinIcon = __decorateClass([
|
|
87
|
-
|
|
90
|
+
ddsElement("daikin-icon")
|
|
88
91
|
], DaikinIcon);
|
|
89
92
|
export {
|
|
90
93
|
DaikinIcon,
|
|
@@ -32,14 +32,6 @@ declare const _default: {
|
|
|
32
32
|
"class": "i-daikin-pagination-chevron-right",
|
|
33
33
|
"color": "#414141"
|
|
34
34
|
},
|
|
35
|
-
"arrowUp": {
|
|
36
|
-
"class": "i-daikin-arrow-up",
|
|
37
|
-
"color": "#414141"
|
|
38
|
-
},
|
|
39
|
-
"success": {
|
|
40
|
-
"class": "i-daikin-status-success",
|
|
41
|
-
"color": "#0097E0"
|
|
42
|
-
},
|
|
43
35
|
"error": {
|
|
44
36
|
"class": "i-daikin-status-error",
|
|
45
37
|
"color": "#FF4949"
|
|
@@ -1,73 +1,4 @@
|
|
|
1
|
-
const icons = {
|
|
2
|
-
alarm: {
|
|
3
|
-
"class": "i-daikin-status-alarm",
|
|
4
|
-
color: null
|
|
5
|
-
},
|
|
6
|
-
close: {
|
|
7
|
-
"class": "i-daikin-notification-close",
|
|
8
|
-
color: "#a0a0a0"
|
|
9
|
-
},
|
|
10
|
-
information: {
|
|
11
|
-
"class": "i-daikin-status-information",
|
|
12
|
-
color: null
|
|
13
|
-
},
|
|
14
|
-
negative: {
|
|
15
|
-
"class": "i-daikin-status-negative",
|
|
16
|
-
color: null
|
|
17
|
-
},
|
|
18
|
-
positive: {
|
|
19
|
-
"class": "i-daikin-status-positive",
|
|
20
|
-
color: null
|
|
21
|
-
},
|
|
22
|
-
warning: {
|
|
23
|
-
"class": "i-daikin-status-warning",
|
|
24
|
-
color: null
|
|
25
|
-
},
|
|
26
|
-
"pagination-chevron-left": {
|
|
27
|
-
"class": "i-daikin-pagination-chevron-left",
|
|
28
|
-
color: "#414141"
|
|
29
|
-
},
|
|
30
|
-
"pagination-chevron-right": {
|
|
31
|
-
"class": "i-daikin-pagination-chevron-right",
|
|
32
|
-
color: "#414141"
|
|
33
|
-
},
|
|
34
|
-
arrowUp: {
|
|
35
|
-
"class": "i-daikin-arrow-up",
|
|
36
|
-
color: "#414141"
|
|
37
|
-
},
|
|
38
|
-
success: {
|
|
39
|
-
"class": "i-daikin-status-success",
|
|
40
|
-
color: "#0097E0"
|
|
41
|
-
},
|
|
42
|
-
error: {
|
|
43
|
-
"class": "i-daikin-status-error",
|
|
44
|
-
color: "#FF4949"
|
|
45
|
-
},
|
|
46
|
-
cross: {
|
|
47
|
-
"class": "i-daikin-cross",
|
|
48
|
-
color: null
|
|
49
|
-
},
|
|
50
|
-
"chevron-up": {
|
|
51
|
-
"class": "i-daikin-chevron-up",
|
|
52
|
-
color: null
|
|
53
|
-
},
|
|
54
|
-
"chevron-down": {
|
|
55
|
-
"class": "i-daikin-chevron-down",
|
|
56
|
-
color: null
|
|
57
|
-
},
|
|
58
|
-
"chevron-left": {
|
|
59
|
-
"class": "i-daikin-chevron-left",
|
|
60
|
-
color: null
|
|
61
|
-
},
|
|
62
|
-
"chevron-right": {
|
|
63
|
-
"class": "i-daikin-chevron-right",
|
|
64
|
-
color: null
|
|
65
|
-
},
|
|
66
|
-
sort: {
|
|
67
|
-
"class": "i-daikin-sort",
|
|
68
|
-
color: null
|
|
69
|
-
}
|
|
70
|
-
};
|
|
1
|
+
const icons = { "alarm": { "class": "i-daikin-status-alarm", "color": null }, "close": { "class": "i-daikin-notification-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-status-information", "color": null }, "negative": { "class": "i-daikin-status-negative", "color": null }, "positive": { "class": "i-daikin-status-positive", "color": null }, "warning": { "class": "i-daikin-status-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "error": { "class": "i-daikin-status-error", "color": "#FF4949" }, "cross": { "class": "i-daikin-cross", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null } };
|
|
71
2
|
export {
|
|
72
3
|
icons
|
|
73
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.js";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
4
4
|
declare const cvaIconButton: (props?: ({
|
|
@@ -32,7 +32,7 @@ type IconButtonVariantProps = MergeVariantProps<typeof cvaIconButton>;
|
|
|
32
32
|
* </daikin-icon-button>
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
export declare class DaikinIconButton extends
|
|
35
|
+
export declare class DaikinIconButton extends DDSElement {
|
|
36
36
|
static readonly styles: import('lit').CSSResult;
|
|
37
37
|
/**
|
|
38
38
|
* Variant of the button.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, query
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property, query } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
5
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
9
|
import "../icon/daikin-icon.js";
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
@@ -71,7 +74,7 @@ const cvaIconButton = cva(
|
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
);
|
|
74
|
-
let DaikinIconButton = class extends
|
|
77
|
+
let DaikinIconButton = class extends DDSElement {
|
|
75
78
|
constructor() {
|
|
76
79
|
super();
|
|
77
80
|
this.variant = "fill";
|
|
@@ -160,7 +163,7 @@ __decorateClass([
|
|
|
160
163
|
query("button")
|
|
161
164
|
], DaikinIconButton.prototype, "_button", 2);
|
|
162
165
|
DaikinIconButton = __decorateClass([
|
|
163
|
-
|
|
166
|
+
ddsElement("daikin-icon-button")
|
|
164
167
|
], DaikinIconButton);
|
|
165
168
|
export {
|
|
166
169
|
DaikinIconButton
|
|
@@ -6,16 +6,18 @@ export * from "./button/index.js";
|
|
|
6
6
|
export * from "./card/index.js";
|
|
7
7
|
export * from "./card-footer/index.js";
|
|
8
8
|
export * from "./card-header/index.js";
|
|
9
|
+
export * from "./carousel/index.js";
|
|
10
|
+
export * from "./carousel-item/index.js";
|
|
9
11
|
export * from "./checkbox/index.js";
|
|
10
12
|
export * from "./dropdown/index.js";
|
|
11
13
|
export * from "./dropdown-item/index.js";
|
|
12
14
|
export * from "./icon/index.js";
|
|
13
15
|
export * from "./icon-button/index.js";
|
|
16
|
+
export * from "./inline-notification/index.js";
|
|
14
17
|
export * from "./input-group/index.js";
|
|
15
18
|
export * from "./link/index.js";
|
|
16
19
|
export * from "./list/index.js";
|
|
17
20
|
export * from "./list-item/index.js";
|
|
18
|
-
export * from "./notification/index.js";
|
|
19
21
|
export * from "./pagination/index.js";
|
|
20
22
|
export * from "./progress-bar/index.js";
|
|
21
23
|
export * from "./progress-indicator/index.js";
|
|
@@ -30,6 +32,8 @@ export * from "./table-header-cell/index.js";
|
|
|
30
32
|
export * from "./tabs/index.js";
|
|
31
33
|
export * from "./text-area/index.js";
|
|
32
34
|
export * from "./text-field/index.js";
|
|
35
|
+
export * from "./toast-notification/index.js";
|
|
36
|
+
export * from "./toast-notification-manager/index.js";
|
|
33
37
|
export * from "./toggle/index.js";
|
|
34
38
|
export * from "./tooltip/index.js";
|
|
35
39
|
export * from "./tree/index.js";
|
|
@@ -6,16 +6,18 @@ import { DaikinButton } from "./button/daikin-button.js";
|
|
|
6
6
|
import { DaikinCard } from "./card/daikin-card.js";
|
|
7
7
|
import { DaikinCardFooter } from "./card-footer/daikin-card-footer.js";
|
|
8
8
|
import { DaikinCardHeader } from "./card-header/daikin-card-header.js";
|
|
9
|
+
import { DaikinCarousel } from "./carousel/daikin-carousel.js";
|
|
10
|
+
import { DaikinCarouselItem } from "./carousel-item/daikin-carousel-item.js";
|
|
9
11
|
import { DaikinCheckbox } from "./checkbox/daikin-checkbox.js";
|
|
10
12
|
import { DaikinDropdown } from "./dropdown/daikin-dropdown.js";
|
|
11
13
|
import { DaikinDropdownItem } from "./dropdown-item/daikin-dropdown-item.js";
|
|
12
14
|
import { DaikinIcon, iconList } from "./icon/daikin-icon.js";
|
|
13
15
|
import { DaikinIconButton } from "./icon-button/daikin-icon-button.js";
|
|
16
|
+
import { DaikinInlineNotification } from "./inline-notification/daikin-inline-notification.js";
|
|
14
17
|
import { DaikinInputGroup } from "./input-group/daikin-input-group.js";
|
|
15
18
|
import { DaikinLink } from "./link/daikin-link.js";
|
|
16
19
|
import { DaikinList } from "./list/daikin-list.js";
|
|
17
20
|
import { DaikinListItem } from "./list-item/daikin-list-item.js";
|
|
18
|
-
import { DaikinNotification } from "./notification/daikin-notification.js";
|
|
19
21
|
import { DaikinPagination } from "./pagination/daikin-pagination.js";
|
|
20
22
|
import { DaikinProgressBar } from "./progress-bar/daikin-progress-bar.js";
|
|
21
23
|
import { DaikinProgressIndicator } from "./progress-indicator/daikin-progress-indicator.js";
|
|
@@ -30,6 +32,8 @@ import { DaikinTableHeaderCell } from "./table-header-cell/daikin-table-header-c
|
|
|
30
32
|
import { DaikinTabs } from "./tabs/daikin-tabs.js";
|
|
31
33
|
import { DaikinTextArea } from "./text-area/daikin-text-area.js";
|
|
32
34
|
import { DaikinTextField } from "./text-field/daikin-text-field.js";
|
|
35
|
+
import { DaikinToastNotification } from "./toast-notification/daikin-toast-notification.js";
|
|
36
|
+
import { DaikinToastNotificationManager } from "./toast-notification-manager/daikin-toast-notification-manager.js";
|
|
33
37
|
import { DaikinToggle } from "./toggle/daikin-toggle.js";
|
|
34
38
|
import { DaikinTooltip } from "./tooltip/daikin-tooltip.js";
|
|
35
39
|
import { DaikinTree } from "./tree/daikin-tree.js";
|
|
@@ -44,16 +48,18 @@ export {
|
|
|
44
48
|
DaikinCard,
|
|
45
49
|
DaikinCardFooter,
|
|
46
50
|
DaikinCardHeader,
|
|
51
|
+
DaikinCarousel,
|
|
52
|
+
DaikinCarouselItem,
|
|
47
53
|
DaikinCheckbox,
|
|
48
54
|
DaikinDropdown,
|
|
49
55
|
DaikinDropdownItem,
|
|
50
56
|
DaikinIcon,
|
|
51
57
|
DaikinIconButton,
|
|
58
|
+
DaikinInlineNotification,
|
|
52
59
|
DaikinInputGroup,
|
|
53
60
|
DaikinLink,
|
|
54
61
|
DaikinList,
|
|
55
62
|
DaikinListItem,
|
|
56
|
-
DaikinNotification,
|
|
57
63
|
DaikinPagination,
|
|
58
64
|
DaikinProgressBar,
|
|
59
65
|
DaikinProgressIndicator,
|
|
@@ -68,6 +74,8 @@ export {
|
|
|
68
74
|
DaikinTabs,
|
|
69
75
|
DaikinTextArea,
|
|
70
76
|
DaikinTextField,
|
|
77
|
+
DaikinToastNotification,
|
|
78
|
+
DaikinToastNotificationManager,
|
|
71
79
|
DaikinToggle,
|
|
72
80
|
DaikinTooltip,
|
|
73
81
|
DaikinTree,
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
|
+
import { ToastNotificationVariantProps } from "../toast-notification/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* The inline notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
|
|
5
|
+
*
|
|
6
|
+
* An inline notification appears within the content of the application, usually embedded directly within a page or section.
|
|
7
|
+
* Inline notification is more persistent than toast notification and are used to highlight important information or status updates that should remain visible to the user until they are acknowledged or the issue is resolved.
|
|
8
|
+
*
|
|
9
|
+
* @fires close - A custom event emitted when a user clicks the close button.
|
|
10
|
+
*
|
|
11
|
+
* @slot title - A slot for the title content.
|
|
12
|
+
* @slot description - A slot for the description content.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* ```js
|
|
17
|
+
* import "@daikin-oss/design-system-web-components/components/inline-notification/index.js";
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ```html
|
|
21
|
+
* <daikin-inline-notification>
|
|
22
|
+
* <span slot="title">InlineNotification title</span>
|
|
23
|
+
* <span slot="description">InlineNotification description</span>
|
|
24
|
+
* </daikin-inline-notification>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class DaikinInlineNotification extends DDSElement {
|
|
28
|
+
static readonly styles: import('lit').CSSResult;
|
|
29
|
+
/**
|
|
30
|
+
* Status of the notification.
|
|
31
|
+
*/
|
|
32
|
+
status: ToastNotificationVariantProps["status"];
|
|
33
|
+
/**
|
|
34
|
+
* Specify how to arrange the elements.
|
|
35
|
+
*/
|
|
36
|
+
layout: ToastNotificationVariantProps["layout"];
|
|
37
|
+
/**
|
|
38
|
+
* Whether to display the close button.
|
|
39
|
+
*/
|
|
40
|
+
closable: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The timestamp to display.
|
|
43
|
+
*/
|
|
44
|
+
timestamp: Date | null;
|
|
45
|
+
/**
|
|
46
|
+
* Emits a "close" event and sets `this.hidden` to true.
|
|
47
|
+
*/
|
|
48
|
+
private _handleClickClose;
|
|
49
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
50
|
+
}
|
|
51
|
+
declare global {
|
|
52
|
+
interface HTMLElementTagNameMap {
|
|
53
|
+
"daikin-inline-notification": DaikinInlineNotification;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { formatDate, cvaContainer, cvaContent, cvaTitle, cvaDescription, cvaTimestamp } from "../../utils/notification-common.js";
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13
|
+
if (decorator = decorators[i])
|
|
14
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
|
+
if (kind && result) __defProp(target, key, result);
|
|
16
|
+
return result;
|
|
17
|
+
};
|
|
18
|
+
let DaikinInlineNotification = class extends DDSElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.status = "positive";
|
|
22
|
+
this.layout = "horizontal";
|
|
23
|
+
this.closable = false;
|
|
24
|
+
this.timestamp = null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Emits a "close" event and sets `this.hidden` to true.
|
|
28
|
+
*/
|
|
29
|
+
_handleClickClose() {
|
|
30
|
+
this.hidden = true;
|
|
31
|
+
this.dispatchEvent(new Event("close"));
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
const formattedTimestamp = this.timestamp ? formatDate(this.timestamp) : null;
|
|
35
|
+
return html`<aside
|
|
36
|
+
class=${cvaContainer({ variant: "inline", status: this.status })}
|
|
37
|
+
role="status"
|
|
38
|
+
>
|
|
39
|
+
<div class=${cvaContent({ layout: this.layout })}>
|
|
40
|
+
<slot class=${cvaTitle({ layout: this.layout })} name="title"></slot>
|
|
41
|
+
<slot
|
|
42
|
+
class=${cvaDescription({ layout: this.layout })}
|
|
43
|
+
name="description"
|
|
44
|
+
></slot>
|
|
45
|
+
${formattedTimestamp ? html`<span class=${cvaTimestamp({ layout: this.layout })}
|
|
46
|
+
>${formattedTimestamp}</span
|
|
47
|
+
>` : nothing}
|
|
48
|
+
</div>
|
|
49
|
+
<slot name="action" class="flex-none"></slot>
|
|
50
|
+
${this.closable ? html`
|
|
51
|
+
<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>
|
|
60
|
+
` : nothing}
|
|
61
|
+
</aside>`;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
DaikinInlineNotification.styles = css`
|
|
65
|
+
${unsafeCSS(tailwindStyles)}
|
|
66
|
+
|
|
67
|
+
:host {
|
|
68
|
+
display: block;
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([hidden]) {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
__decorateClass([
|
|
77
|
+
property({ type: String })
|
|
78
|
+
], DaikinInlineNotification.prototype, "status", 2);
|
|
79
|
+
__decorateClass([
|
|
80
|
+
property({ type: String })
|
|
81
|
+
], DaikinInlineNotification.prototype, "layout", 2);
|
|
82
|
+
__decorateClass([
|
|
83
|
+
property({ type: Boolean, reflect: true })
|
|
84
|
+
], DaikinInlineNotification.prototype, "closable", 2);
|
|
85
|
+
__decorateClass([
|
|
86
|
+
property({ type: Object, reflect: true, attribute: false })
|
|
87
|
+
], DaikinInlineNotification.prototype, "timestamp", 2);
|
|
88
|
+
DaikinInlineNotification = __decorateClass([
|
|
89
|
+
ddsElement("daikin-inline-notification")
|
|
90
|
+
], DaikinInlineNotification);
|
|
91
|
+
export {
|
|
92
|
+
DaikinInlineNotification
|
|
93
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-inline-notification.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The input group component serves as a wrapper for an input control component (full list below), providing additional elements such as label text, helper text, or a counter.
|
|
4
4
|
* It enhances the user experience by associating supplementary information or functionality directly with the input field.
|
|
@@ -20,8 +20,8 @@ import { LitElement } from 'lit';
|
|
|
20
20
|
* <!-- Import the following as necessary. -->
|
|
21
21
|
* import "@daikin-oss/design-system-web-components/components/dropdown/index.js";
|
|
22
22
|
* import "@daikin-oss/design-system-web-components/components/dropdown-item/index.js";
|
|
23
|
-
* import "@daikin-oss/design-system-web-components/components/radio-group/index.js";
|
|
24
23
|
* import "@daikin-oss/design-system-web-components/components/radio/index.js";
|
|
24
|
+
* import "@daikin-oss/design-system-web-components/components/radio-group/index.js";
|
|
25
25
|
* import "@daikin-oss/design-system-web-components/components/select/index.js";
|
|
26
26
|
* import "@daikin-oss/design-system-web-components/components/text-area/index.js";
|
|
27
27
|
* import "@daikin-oss/design-system-web-components/components/text-field/index.js";
|
|
@@ -31,10 +31,16 @@ import { LitElement } from 'lit';
|
|
|
31
31
|
*
|
|
32
32
|
* ```html
|
|
33
33
|
* <daikin-input-group>
|
|
34
|
-
* <daikin-dropdown
|
|
35
|
-
* <daikin-dropdown-item value="
|
|
34
|
+
* <daikin-dropdown>
|
|
35
|
+
* <daikin-dropdown-item value="value1">
|
|
36
36
|
* Dropdown item 1
|
|
37
37
|
* </daikin-dropdown-item>
|
|
38
|
+
* <daikin-dropdown-item value="value2">
|
|
39
|
+
* Dropdown item 2
|
|
40
|
+
* </daikin-dropdown-item>
|
|
41
|
+
* <daikin-dropdown-item value="value3">
|
|
42
|
+
* Dropdown item 3
|
|
43
|
+
* </daikin-dropdown-item>
|
|
38
44
|
* </daikin-dropdown>
|
|
39
45
|
* </daikin-input-group>
|
|
40
46
|
* ```
|
|
@@ -43,8 +49,10 @@ import { LitElement } from 'lit';
|
|
|
43
49
|
*
|
|
44
50
|
* ```html
|
|
45
51
|
* <daikin-input-group>
|
|
46
|
-
* <daikin-radio-group
|
|
47
|
-
* <daikin-radio value="
|
|
52
|
+
* <daikin-radio-group>
|
|
53
|
+
* <daikin-radio value="value1">Radio option 1</daikin-radio>
|
|
54
|
+
* <daikin-radio value="value2">Radio option 2</daikin-radio>
|
|
55
|
+
* <daikin-radio value="value3">Radio option 3</daikin-radio>
|
|
48
56
|
* </daikin-radio-group>
|
|
49
57
|
* </daikin-input-group>
|
|
50
58
|
* ```
|
|
@@ -80,7 +88,7 @@ import { LitElement } from 'lit';
|
|
|
80
88
|
* ```
|
|
81
89
|
* ```
|
|
82
90
|
*/
|
|
83
|
-
export declare class DaikinInputGroup extends
|
|
91
|
+
export declare class DaikinInputGroup extends DDSElement {
|
|
84
92
|
static readonly styles: import('lit').CSSResult;
|
|
85
93
|
/**
|
|
86
94
|
* Label text displayed at the top of the field.
|