@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,6 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, queryAssignedElements, state
|
|
2
|
+
import { css, unsafeCSS, html, nothing } from "lit";
|
|
3
|
+
import { property, queryAssignedElements, state } 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;
|
|
@@ -12,7 +15,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
12
15
|
if (kind && result) __defProp(target, key, result);
|
|
13
16
|
return result;
|
|
14
17
|
};
|
|
15
|
-
const cvaLabel = cva(["flex", "items-center", "font-bold", "leading-
|
|
18
|
+
const cvaLabel = cva(["flex", "items-center", "font-bold", "leading-[130%]"], {
|
|
16
19
|
variants: {
|
|
17
20
|
disabled: {
|
|
18
21
|
false: [],
|
|
@@ -21,11 +24,11 @@ const cvaLabel = cva(["flex", "items-center", "font-bold", "leading-5"], {
|
|
|
21
24
|
}
|
|
22
25
|
});
|
|
23
26
|
const cvaHelper = cva(
|
|
24
|
-
["flex", "gap-1", "items-center", "
|
|
27
|
+
["flex", "gap-1", "items-center", "leading-[130%]", "text-sm"],
|
|
25
28
|
{
|
|
26
29
|
variants: {
|
|
27
30
|
type: {
|
|
28
|
-
helper: [],
|
|
31
|
+
helper: ["text-ddt-color-common-text-secondary"],
|
|
29
32
|
helperDisabled: ["text-ddt-color-common-disabled"],
|
|
30
33
|
error: [
|
|
31
34
|
"text-ddt-color-common-danger-default",
|
|
@@ -55,7 +58,7 @@ const cvaCounter = cva(["text-sm", "font-bold", "ml-auto"], {
|
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
60
|
});
|
|
58
|
-
let DaikinInputGroup = class extends
|
|
61
|
+
let DaikinInputGroup = class extends DDSElement {
|
|
59
62
|
constructor() {
|
|
60
63
|
super(...arguments);
|
|
61
64
|
this.label = null;
|
|
@@ -110,7 +113,7 @@ let DaikinInputGroup = class extends LitElement {
|
|
|
110
113
|
<label
|
|
111
114
|
class="flex flex-col justify-center gap-2 w-full text-ddt-color-common-text-primary font-daikinSerif"
|
|
112
115
|
>
|
|
113
|
-
<div class="flex items-center gap-1 font-bold">
|
|
116
|
+
<div class="flex items-center flex-wrap gap-1 font-bold">
|
|
114
117
|
${this.label ? html`<span class=${cvaLabel({ disabled: this.disabled })}>
|
|
115
118
|
${this.label}
|
|
116
119
|
</span>` : nothing}
|
|
@@ -186,7 +189,7 @@ __decorateClass([
|
|
|
186
189
|
state()
|
|
187
190
|
], DaikinInputGroup.prototype, "_textareaCount", 2);
|
|
188
191
|
DaikinInputGroup = __decorateClass([
|
|
189
|
-
|
|
192
|
+
ddsElement("daikin-input-group")
|
|
190
193
|
], DaikinInputGroup);
|
|
191
194
|
export {
|
|
192
195
|
DaikinInputGroup
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The link component uses the standard HTML <a> tag. Unlike the link used in the button component, it provides the style of the text as it is.
|
|
4
4
|
*
|
|
@@ -16,7 +16,7 @@ import { LitElement } from 'lit';
|
|
|
16
16
|
* </daikin-link>
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare class DaikinLink extends
|
|
19
|
+
export declare class DaikinLink extends DDSElement {
|
|
20
20
|
static readonly styles: import('lit').CSSResult;
|
|
21
21
|
/**
|
|
22
22
|
* Link `href`.
|
|
@@ -1,7 +1,10 @@
|
|
|
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
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
5
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -27,9 +30,9 @@ const LINK_CLASS_NAME = cva([
|
|
|
27
30
|
"focus-visible:outline",
|
|
28
31
|
"focus-visible:outline-2",
|
|
29
32
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
30
|
-
"focus-visible:outline-offset-
|
|
33
|
+
"focus-visible:outline-offset-2"
|
|
31
34
|
])();
|
|
32
|
-
let DaikinLink = class extends
|
|
35
|
+
let DaikinLink = class extends DDSElement {
|
|
33
36
|
constructor() {
|
|
34
37
|
super(...arguments);
|
|
35
38
|
this.href = null;
|
|
@@ -83,7 +86,7 @@ __decorateClass([
|
|
|
83
86
|
property({ type: Boolean, reflect: true, attribute: "show-visited" })
|
|
84
87
|
], DaikinLink.prototype, "showVisited", 2);
|
|
85
88
|
DaikinLink = __decorateClass([
|
|
86
|
-
|
|
89
|
+
ddsElement("daikin-link")
|
|
87
90
|
], DaikinLink);
|
|
88
91
|
export {
|
|
89
92
|
DaikinLink
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The list component is used to list items using the list item component.
|
|
4
4
|
*
|
|
@@ -9,6 +9,11 @@ import { LitElement } from 'lit';
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
*
|
|
12
|
+
* ```js
|
|
13
|
+
* import "@daikin-oss/design-system-web-components/components/list/index.js";
|
|
14
|
+
* import "@daikin-oss/design-system-web-components/components/list-item/index.js";
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
12
17
|
* ```html
|
|
13
18
|
* <daikin-list>
|
|
14
19
|
* <daikin-list-item>List item label 1</daikin-list-item>
|
|
@@ -17,7 +22,7 @@ import { LitElement } from 'lit';
|
|
|
17
22
|
* </daikin-list>
|
|
18
23
|
* ```
|
|
19
24
|
*/
|
|
20
|
-
export declare class DaikinList extends
|
|
25
|
+
export declare class DaikinList extends DDSElement {
|
|
21
26
|
render(): import('lit-html').TemplateResult<1>;
|
|
22
27
|
}
|
|
23
28
|
declare global {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
3
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
4
|
+
import "../../base/define.js";
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
6
7
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
7
8
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8
9
|
if (decorator = decorators[i])
|
|
9
|
-
result =
|
|
10
|
-
if (kind && result) __defProp(target, key, result);
|
|
10
|
+
result = decorator(result) || result;
|
|
11
11
|
return result;
|
|
12
12
|
};
|
|
13
|
-
let DaikinList = class extends
|
|
13
|
+
let DaikinList = class extends DDSElement {
|
|
14
14
|
render() {
|
|
15
15
|
return html`<div role="list">
|
|
16
16
|
<slot></slot>
|
|
@@ -18,7 +18,7 @@ let DaikinList = class extends LitElement {
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
DaikinList = __decorateClass([
|
|
21
|
-
|
|
21
|
+
ddsElement("daikin-list")
|
|
22
22
|
], DaikinList);
|
|
23
23
|
export {
|
|
24
24
|
DaikinList
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The list item component is used to represent a single item in a list. Please use it within the `daikin-list` component.
|
|
4
4
|
*
|
|
@@ -20,11 +20,15 @@ import { LitElement } from 'lit';
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
*
|
|
23
|
+
* ```js
|
|
24
|
+
* import "@daikin-oss/design-system-web-components/components/list-item/index.js";
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
23
27
|
* ```html
|
|
24
28
|
* <daikin-list-item>List item label</daikin-list-item>
|
|
25
29
|
* ```
|
|
26
30
|
*/
|
|
27
|
-
export declare class DaikinListItem extends
|
|
31
|
+
export declare class DaikinListItem extends DDSElement {
|
|
28
32
|
static readonly styles: import('lit').CSSResult;
|
|
29
33
|
/**
|
|
30
34
|
* Type of the list item.
|
|
@@ -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
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -50,7 +53,7 @@ const cvaIcon = cva(["icon-size-6"], {
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
});
|
|
53
|
-
let DaikinListItem = class extends
|
|
56
|
+
let DaikinListItem = class extends DDSElement {
|
|
54
57
|
constructor() {
|
|
55
58
|
super();
|
|
56
59
|
this.type = "button";
|
|
@@ -142,7 +145,7 @@ __decorateClass([
|
|
|
142
145
|
query("a,button")
|
|
143
146
|
], DaikinListItem.prototype, "_focusableElement", 2);
|
|
144
147
|
DaikinListItem = __decorateClass([
|
|
145
|
-
|
|
148
|
+
ddsElement("daikin-list-item")
|
|
146
149
|
], DaikinListItem);
|
|
147
150
|
export {
|
|
148
151
|
DaikinListItem
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The pagination component is used to navigate through a list of items that are divided into multiple pages.
|
|
4
4
|
*
|
|
@@ -6,11 +6,15 @@ import { LitElement } from 'lit';
|
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
*
|
|
9
|
+
* ```js
|
|
10
|
+
* import "@daikin-oss/design-system-web-components/components/pagination/index.js";
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
9
13
|
* ```html
|
|
10
14
|
* <daikin-pagination window="5" total="20" current="3"></daikin-pagination>
|
|
11
15
|
* ```
|
|
12
16
|
*/
|
|
13
|
-
export declare class DaikinPagination extends
|
|
17
|
+
export declare class DaikinPagination extends DDSElement {
|
|
14
18
|
static readonly styles: import('lit').CSSResult;
|
|
15
19
|
/**
|
|
16
20
|
* The current page number, starting at 1.
|
|
@@ -1,8 +1,11 @@
|
|
|
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
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import { repeat } from "lit/directives/repeat.js";
|
|
6
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
7
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
8
|
+
import "../../base/define.js";
|
|
6
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
7
10
|
import { calculatePagination } from "./pagination-utils.js";
|
|
8
11
|
var __defProp = Object.defineProperty;
|
|
@@ -25,13 +28,15 @@ const cvaPageButton = cva(
|
|
|
25
28
|
"justify-center",
|
|
26
29
|
"min-w-12",
|
|
27
30
|
"min-h-12",
|
|
31
|
+
"p-1",
|
|
28
32
|
"font-daikinSerif",
|
|
29
33
|
"text-base",
|
|
30
34
|
"not-italic",
|
|
31
35
|
"leading-6",
|
|
36
|
+
"bg-clip-content",
|
|
32
37
|
"focus-visible:outline",
|
|
33
38
|
"focus-visible:outline-2",
|
|
34
|
-
"focus-visible:outline-offset-
|
|
39
|
+
"focus-visible:outline-offset-[-2px]",
|
|
35
40
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
36
41
|
],
|
|
37
42
|
{
|
|
@@ -41,22 +46,22 @@ const cvaPageButton = cva(
|
|
|
41
46
|
"text-ddt-color-common-brand-default",
|
|
42
47
|
"focus-visible:text-ddt-color-common-brand-default",
|
|
43
48
|
"font-bold",
|
|
44
|
-
"hover:text-ddt-color-common-
|
|
45
|
-
"hover:bg-ddt-color-common-surface-
|
|
49
|
+
"hover:text-ddt-color-common-brand-hover",
|
|
50
|
+
"hover:bg-ddt-color-common-surface-brand-hover",
|
|
46
51
|
"active:text-ddt-color-common-brand-press",
|
|
47
|
-
"active:bg-ddt-color-common-surface-
|
|
52
|
+
"active:bg-ddt-color-common-surface-brand-press",
|
|
48
53
|
"after:bg-ddt-color-common-brand-default",
|
|
49
54
|
"after:content-['']",
|
|
50
55
|
"after:h-1",
|
|
51
56
|
"after:absolute",
|
|
52
|
-
"after:inset-
|
|
57
|
+
"after:inset-1",
|
|
53
58
|
"after:top-auto"
|
|
54
59
|
],
|
|
55
60
|
false: [
|
|
56
61
|
"font-normal",
|
|
57
62
|
"text-ddt-color-common-neutral-default",
|
|
58
63
|
"active:bg-ddt-color-common-surface-neutral-press",
|
|
59
|
-
"active:text-ddt-color-common-
|
|
64
|
+
"active:text-ddt-color-common-neutral-press",
|
|
60
65
|
"hover:bg-ddt-color-common-surface-neutral-hover",
|
|
61
66
|
"hover:text-ddt-color-common-neutral-hover"
|
|
62
67
|
]
|
|
@@ -101,10 +106,10 @@ const cvaChevronButton = cva([
|
|
|
101
106
|
"disabled:!text-ddt-color-common-disabled",
|
|
102
107
|
"focus-visible:outline",
|
|
103
108
|
"focus-visible:outline-2",
|
|
104
|
-
"focus-visible:outline-offset-
|
|
109
|
+
"focus-visible:outline-offset-[-2px]",
|
|
105
110
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
106
111
|
]);
|
|
107
|
-
let DaikinPagination = class extends
|
|
112
|
+
let DaikinPagination = class extends DDSElement {
|
|
108
113
|
constructor() {
|
|
109
114
|
super(...arguments);
|
|
110
115
|
this.current = 1;
|
|
@@ -132,7 +137,11 @@ let DaikinPagination = class extends LitElement {
|
|
|
132
137
|
this.window
|
|
133
138
|
);
|
|
134
139
|
return html`
|
|
135
|
-
<div
|
|
140
|
+
<div
|
|
141
|
+
aria-label="Pagination"
|
|
142
|
+
role="navigation"
|
|
143
|
+
class="inline-flex flex-wrap"
|
|
144
|
+
>
|
|
136
145
|
<button
|
|
137
146
|
class=${cvaChevron}
|
|
138
147
|
type="button"
|
|
@@ -207,7 +216,7 @@ __decorateClass([
|
|
|
207
216
|
property({ type: Number, reflect: true })
|
|
208
217
|
], DaikinPagination.prototype, "window", 2);
|
|
209
218
|
DaikinPagination = __decorateClass([
|
|
210
|
-
|
|
219
|
+
ddsElement("daikin-pagination")
|
|
211
220
|
], DaikinPagination);
|
|
212
221
|
export {
|
|
213
222
|
DaikinPagination
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
3
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
4
|
declare const cvaBar: (props?: ({
|
|
4
5
|
variant?: "error" | "indeterminate" | "inprogress" | "completed" | null | undefined;
|
|
@@ -33,7 +34,7 @@ type ProgressBarVariantProps = MergeVariantProps<typeof cvaBar | typeof cvaHelpe
|
|
|
33
34
|
* </daikin-progress-bar>
|
|
34
35
|
* ```
|
|
35
36
|
*/
|
|
36
|
-
export declare class DaikinProgressBar extends
|
|
37
|
+
export declare class DaikinProgressBar extends DDSElement {
|
|
37
38
|
static readonly styles: import('lit').CSSResult;
|
|
38
39
|
/**
|
|
39
40
|
* Variant of the progress bar.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property } from "lit/decorators.js";
|
|
4
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
6
|
+
import "../../base/define.js";
|
|
4
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
5
8
|
var __defProp = Object.defineProperty;
|
|
6
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -15,7 +18,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
18
|
const cvaBar = cva(
|
|
16
19
|
[
|
|
17
20
|
"w-full",
|
|
18
|
-
"bg-ddt-color-common-
|
|
21
|
+
"bg-ddt-color-common-border-empty",
|
|
19
22
|
"overflow-hidden",
|
|
20
23
|
"relative",
|
|
21
24
|
"after:block",
|
|
@@ -51,7 +54,7 @@ const cvaBarContainer = cva(
|
|
|
51
54
|
"justify-between",
|
|
52
55
|
"items-center",
|
|
53
56
|
"text-ddt-color-common-text-primary",
|
|
54
|
-
"leading-
|
|
57
|
+
"leading-[130%]",
|
|
55
58
|
"font-bold"
|
|
56
59
|
],
|
|
57
60
|
{
|
|
@@ -60,12 +63,14 @@ const cvaBarContainer = cva(
|
|
|
60
63
|
inprogress: [],
|
|
61
64
|
completed: [
|
|
62
65
|
"after:size-4",
|
|
66
|
+
"after:flex-none",
|
|
63
67
|
"after:bg-ddt-color-common-success",
|
|
64
68
|
"after:i-daikin-status-positive"
|
|
65
69
|
],
|
|
66
70
|
indeterminate: [],
|
|
67
71
|
error: [
|
|
68
72
|
"after:size-4",
|
|
73
|
+
"after:flex-none",
|
|
69
74
|
"after:text-ddt-color-common-danger-default",
|
|
70
75
|
"after:i-daikin-status-error"
|
|
71
76
|
]
|
|
@@ -73,7 +78,7 @@ const cvaBarContainer = cva(
|
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
80
|
);
|
|
76
|
-
const cvaHelper = cva(["text-sm"], {
|
|
81
|
+
const cvaHelper = cva(["text-sm", "leading-[130%]"], {
|
|
77
82
|
variants: {
|
|
78
83
|
variant: {
|
|
79
84
|
inprogress: ["text-ddt-color-common-text-primary"],
|
|
@@ -87,7 +92,7 @@ const cvaHelper = cva(["text-sm"], {
|
|
|
87
92
|
}
|
|
88
93
|
}
|
|
89
94
|
});
|
|
90
|
-
let DaikinProgressBar = class extends
|
|
95
|
+
let DaikinProgressBar = class extends DDSElement {
|
|
91
96
|
constructor() {
|
|
92
97
|
super(...arguments);
|
|
93
98
|
this.variant = "inprogress";
|
|
@@ -180,7 +185,7 @@ __decorateClass([
|
|
|
180
185
|
property({ type: String })
|
|
181
186
|
], DaikinProgressBar.prototype, "helper", 2);
|
|
182
187
|
DaikinProgressBar = __decorateClass([
|
|
183
|
-
|
|
188
|
+
ddsElement("daikin-progress-bar")
|
|
184
189
|
], DaikinProgressBar);
|
|
185
190
|
export {
|
|
186
191
|
DaikinProgressBar
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
3
|
/**
|
|
3
4
|
* The progress indicator is used to let the user know where they are in the task list.
|
|
4
5
|
*
|
|
@@ -9,6 +10,11 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
9
10
|
*
|
|
10
11
|
* @example
|
|
11
12
|
*
|
|
13
|
+
* ```js
|
|
14
|
+
* import "@daikin-oss/design-system-web-components/components/progress-indicator/index.js";
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/progress-indicator-item/index.js";
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
12
18
|
* ```html
|
|
13
19
|
* <daikin-progress-indicator>
|
|
14
20
|
* <daikin-progress-indicator-item state="unfinished">
|
|
@@ -26,14 +32,15 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
26
32
|
* </daikin-progress-indicator>
|
|
27
33
|
* ```
|
|
28
34
|
*/
|
|
29
|
-
export declare class DaikinProgressIndicator extends
|
|
35
|
+
export declare class DaikinProgressIndicator extends DDSElement {
|
|
30
36
|
static readonly styles: import('lit').CSSResult;
|
|
31
37
|
/**
|
|
32
|
-
* Specify the index
|
|
38
|
+
* Specify the index of the step that is currently in progress, starting from 0. This will automatically set the status of each step.
|
|
39
|
+
* To mark all steps as upcoming, specify a number less or equal to -1. To mark all steps as completed, specify a number greater than or equal to the number of steps.
|
|
33
40
|
*/
|
|
34
|
-
currentItem: number
|
|
41
|
+
currentItem: number;
|
|
35
42
|
private readonly _items;
|
|
36
|
-
private
|
|
43
|
+
private _updateSteps;
|
|
37
44
|
private _handleSlotChange;
|
|
38
45
|
render(): import('lit-html').TemplateResult<1>;
|
|
39
46
|
protected firstUpdated(): void;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { css, unsafeCSS,
|
|
2
|
-
import { property, queryAssignedElements
|
|
1
|
+
import { css, unsafeCSS, html } from "lit";
|
|
2
|
+
import { property, queryAssignedElements } from "lit/decorators.js";
|
|
3
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
4
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
5
|
+
import "../../base/define.js";
|
|
3
6
|
import tailwindStyles from "../../tailwind.css.js";
|
|
4
7
|
var __defProp = Object.defineProperty;
|
|
5
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -11,36 +14,19 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
11
14
|
if (kind && result) __defProp(target, key, result);
|
|
12
15
|
return result;
|
|
13
16
|
};
|
|
14
|
-
let DaikinProgressIndicator = class extends
|
|
17
|
+
let DaikinProgressIndicator = class extends DDSElement {
|
|
15
18
|
constructor() {
|
|
16
19
|
super(...arguments);
|
|
17
|
-
this.currentItem =
|
|
20
|
+
this.currentItem = 0;
|
|
18
21
|
}
|
|
19
|
-
|
|
22
|
+
_updateSteps() {
|
|
20
23
|
const items = this._items;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
if (items.length - 1 < this.currentItem) {
|
|
25
|
-
{
|
|
26
|
-
console.warn(
|
|
27
|
-
`Invalid 'current-item' property: ${this.currentItem}. The number of actual 'daikin-progress-indicator-item's exceeds the number of items.`
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (this.currentItem < 0) {
|
|
33
|
-
{
|
|
34
|
-
console.warn(
|
|
35
|
-
`Invalid 'current-item' property: ${this.currentItem}. Negative values cannot be set.`
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
items.forEach((item, i) => item.current = this.currentItem === i);
|
|
24
|
+
items.forEach((item, i) => {
|
|
25
|
+
item.status = i < this.currentItem ? "finished" : i === this.currentItem ? "inprogress" : "unfinished";
|
|
26
|
+
});
|
|
41
27
|
}
|
|
42
28
|
_handleSlotChange() {
|
|
43
|
-
this.
|
|
29
|
+
this._updateSteps();
|
|
44
30
|
}
|
|
45
31
|
render() {
|
|
46
32
|
return html`<div
|
|
@@ -51,11 +37,11 @@ let DaikinProgressIndicator = class extends LitElement {
|
|
|
51
37
|
</div>`;
|
|
52
38
|
}
|
|
53
39
|
firstUpdated() {
|
|
54
|
-
this.
|
|
40
|
+
this._updateSteps();
|
|
55
41
|
}
|
|
56
42
|
updated(changedProperties) {
|
|
57
43
|
if (changedProperties.has("currentItem")) {
|
|
58
|
-
this.
|
|
44
|
+
this._updateSteps();
|
|
59
45
|
}
|
|
60
46
|
}
|
|
61
47
|
};
|
|
@@ -74,7 +60,7 @@ __decorateClass([
|
|
|
74
60
|
queryAssignedElements({ selector: "daikin-progress-indicator-item" })
|
|
75
61
|
], DaikinProgressIndicator.prototype, "_items", 2);
|
|
76
62
|
DaikinProgressIndicator = __decorateClass([
|
|
77
|
-
|
|
63
|
+
ddsElement("daikin-progress-indicator")
|
|
78
64
|
], DaikinProgressIndicator);
|
|
79
65
|
export {
|
|
80
66
|
DaikinProgressIndicator
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
3
|
declare const cvaContainer: (props?: ({
|
|
4
4
|
status?: "inprogress" | "unfinished" | "finished" | null | undefined;
|
|
@@ -17,6 +17,10 @@ type ProgressIndicatorItemVariantProps = MergeVariantProps<typeof cvaContainer>;
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
*
|
|
20
|
+
* ```js
|
|
21
|
+
* import "@daikin-oss/design-system-web-components/components/progress-indicator-item/index.js";
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
20
24
|
* ```html
|
|
21
25
|
* <daikin-progress-indicator-item state="unfinished">
|
|
22
26
|
* Progress indicator label
|
|
@@ -24,13 +28,13 @@ type ProgressIndicatorItemVariantProps = MergeVariantProps<typeof cvaContainer>;
|
|
|
24
28
|
* </daikin-progress-indicator-item>
|
|
25
29
|
* ```
|
|
26
30
|
*/
|
|
27
|
-
export declare class DaikinProgressIndicatorItem extends
|
|
31
|
+
export declare class DaikinProgressIndicatorItem extends DDSElement {
|
|
28
32
|
static readonly styles: import('lit').CSSResult;
|
|
29
33
|
/**
|
|
30
|
-
* Status of the progress indicator item
|
|
34
|
+
* Status of the progress indicator item.
|
|
35
|
+
* Controlled by `daikin-progress-indicator`.
|
|
31
36
|
*/
|
|
32
37
|
status: ProgressIndicatorItemVariantProps["status"];
|
|
33
|
-
current: boolean;
|
|
34
38
|
render(): import('lit-html').TemplateResult<1>;
|
|
35
39
|
}
|
|
36
40
|
declare global {
|