@daikin-oss/design-system-web-components 0.6.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 +167 -12
- package/README.md +40 -23
- 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 +45 -85
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs/components/button/daikin-button.cjs +36 -23
- package/dist/cjs/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs/components/card/daikin-card.cjs +67 -0
- package/dist/cjs/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs/components/card/index.cjs +7 -0
- package/dist/cjs/components/card/index.d.cts +1 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs/components/card-footer/index.cjs +7 -0
- package/dist/cjs/components/card-footer/index.d.cts +1 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs/components/card-header/index.cjs +7 -0
- package/dist/cjs/components/card-header/index.d.cts +1 -0
- 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 +63 -45
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs/components/icon/daikin-icon.d.cts +5 -5
- 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 +29 -25
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +56 -5
- package/dist/cjs/components/index.d.cts +11 -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 +71 -52
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs/components/link/daikin-link.cjs +40 -55
- 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 +16 -13
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +33 -18
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +17 -26
- 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 +28 -29
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +57 -33
- 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 +25 -16
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +38 -23
- 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 +15 -12
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +10 -7
- 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 +12 -10
- 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 +31 -20
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +29 -19
- 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 +18 -15
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/common.cjs +90 -0
- package/dist/cjs/components/tree/common.d.cts +32 -0
- package/dist/cjs/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs/components/tree/index.cjs +7 -0
- package/dist/cjs/components/tree/index.d.cts +1 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs/components/tree-item/index.cjs +8 -0
- package/dist/cjs/components/tree-item/index.d.cts +1 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs/components/tree-section/index.cjs +7 -0
- package/dist/cjs/components/tree-section/index.d.cts +1 -0
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +56 -7
- package/dist/cjs/index.d.cts +0 -1
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/is-simple-key.cjs +6 -0
- package/dist/cjs/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +45 -85
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs-dev/components/button/daikin-button.cjs +36 -23
- package/dist/cjs-dev/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs-dev/components/card/daikin-card.cjs +67 -0
- package/dist/cjs-dev/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs-dev/components/card/index.cjs +7 -0
- package/dist/cjs-dev/components/card/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs-dev/components/card-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/card-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs-dev/components/card-header/index.cjs +7 -0
- package/dist/cjs-dev/components/card-header/index.d.cts +1 -0
- 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 +63 -45
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +5 -5
- 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 +29 -25
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +56 -5
- package/dist/cjs-dev/components/index.d.cts +11 -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 +71 -52
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs-dev/components/link/daikin-link.cjs +40 -55
- 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 +16 -13
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +33 -18
- 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 +17 -36
- 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 +28 -29
- 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 +57 -33
- 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 +25 -16
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +38 -23
- 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 +15 -12
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +10 -7
- 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 +12 -10
- 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 +31 -20
- 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 +29 -19
- 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 +18 -15
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/common.cjs +90 -0
- package/dist/cjs-dev/components/tree/common.d.cts +32 -0
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs-dev/components/tree/index.cjs +7 -0
- package/dist/cjs-dev/components/tree/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs-dev/components/tree-item/index.cjs +8 -0
- package/dist/cjs-dev/components/tree-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs-dev/components/tree-section/index.cjs +7 -0
- package/dist/cjs-dev/components/tree-section/index.d.cts +1 -0
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +56 -7
- package/dist/cjs-dev/index.d.cts +0 -1
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/is-simple-key.cjs +6 -0
- package/dist/cjs-dev/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es/components/button/daikin-button.d.ts +8 -5
- package/dist/es/components/button/daikin-button.js +35 -22
- package/dist/es/components/card/daikin-card.d.ts +48 -0
- package/dist/es/components/card/daikin-card.js +68 -0
- package/dist/es/components/card/index.d.ts +1 -0
- package/dist/es/components/card/index.js +4 -0
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es/components/card-footer/index.d.ts +1 -0
- package/dist/es/components/card-footer/index.js +4 -0
- package/dist/es/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es/components/card-header/daikin-card-header.js +60 -0
- package/dist/es/components/card-header/index.d.ts +1 -0
- package/dist/es/components/card-header/index.js +4 -0
- 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 +62 -44
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +29 -18
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +20 -13
- package/dist/es/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es/components/icon/daikin-icon.js +15 -12
- 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 +28 -24
- package/dist/es/components/index.d.ts +11 -1
- package/dist/es/components/index.js +23 -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 +25 -8
- package/dist/es/components/input-group/daikin-input-group.js +70 -51
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +39 -54
- 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 +15 -12
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +39 -32
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +32 -17
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +16 -25
- 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 +27 -28
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +56 -32
- 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 +24 -15
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +37 -22
- 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 +14 -11
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +9 -6
- 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 +11 -9
- 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 +30 -19
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +28 -18
- 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 +17 -14
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es/components/tree/common.d.ts +32 -0
- package/dist/es/components/tree/common.js +90 -0
- package/dist/es/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es/components/tree/daikin-tree.js +109 -0
- package/dist/es/components/tree/index.d.ts +1 -0
- package/dist/es/components/tree/index.js +4 -0
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es/components/tree-item/index.d.ts +1 -0
- package/dist/es/components/tree-item/index.js +5 -0
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es/components/tree-section/index.d.ts +1 -0
- package/dist/es/components/tree-section/index.js +4 -0
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.d.ts +0 -1
- package/dist/es/index.js +23 -4
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/is-simple-key.d.ts +7 -0
- package/dist/es/utils/is-simple-key.js +6 -0
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es-dev/components/button/daikin-button.d.ts +8 -5
- package/dist/es-dev/components/button/daikin-button.js +35 -22
- package/dist/es-dev/components/card/daikin-card.d.ts +48 -0
- package/dist/es-dev/components/card/daikin-card.js +68 -0
- package/dist/es-dev/components/card/index.d.ts +1 -0
- package/dist/es-dev/components/card/index.js +4 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es-dev/components/card-footer/index.d.ts +1 -0
- package/dist/es-dev/components/card-footer/index.js +4 -0
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +60 -0
- package/dist/es-dev/components/card-header/index.d.ts +1 -0
- package/dist/es-dev/components/card-header/index.js +4 -0
- 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 +62 -44
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +29 -18
- 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 +20 -13
- package/dist/es-dev/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es-dev/components/icon/daikin-icon.js +15 -12
- 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 +28 -24
- package/dist/es-dev/components/index.d.ts +11 -1
- package/dist/es-dev/components/index.js +23 -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 +25 -8
- package/dist/es-dev/components/input-group/daikin-input-group.js +70 -51
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +39 -54
- 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 +15 -12
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +39 -32
- 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 +32 -17
- 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 +16 -35
- 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 +27 -28
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +56 -32
- 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 +24 -15
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +37 -22
- 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 +14 -11
- 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 +9 -6
- 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 +11 -9
- 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 +30 -19
- 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 +28 -18
- 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 +17 -14
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es-dev/components/tree/common.d.ts +32 -0
- package/dist/es-dev/components/tree/common.js +90 -0
- package/dist/es-dev/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es-dev/components/tree/daikin-tree.js +109 -0
- package/dist/es-dev/components/tree/index.d.ts +1 -0
- package/dist/es-dev/components/tree/index.js +4 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es-dev/components/tree-item/index.d.ts +1 -0
- package/dist/es-dev/components/tree-item/index.js +5 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es-dev/components/tree-section/index.d.ts +1 -0
- package/dist/es-dev/components/tree-section/index.js +4 -0
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.d.ts +0 -1
- package/dist/es-dev/index.js +23 -4
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/is-simple-key.d.ts +7 -0
- package/dist/es-dev/utils/is-simple-key.js +6 -0
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/sort.svg +1 -1
- package/icons/status-error.svg +1 -1
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +58 -49
- package/dist/cjs/colors.cjs +0 -80
- package/dist/cjs/colors.d.cts +0 -69
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -197
- 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/colors.cjs +0 -80
- package/dist/cjs-dev/colors.d.cts +0 -69
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -197
- 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/colors.d.ts +0 -69
- package/dist/es/colors.js +0 -80
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -198
- 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/colors.d.ts +0 -69
- package/dist/es-dev/colors.js +0 -80
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -198
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
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;
|
|
@@ -23,18 +26,18 @@ const INNER_CN = cva([
|
|
|
23
26
|
"focus-visible:before:outline",
|
|
24
27
|
"focus-visible:before:outline-2",
|
|
25
28
|
"focus-visible:before:-outline-offset-2",
|
|
26
|
-
"focus-visible:before:outline-
|
|
29
|
+
"focus-visible:before:outline-ddt-color-common-border-focus",
|
|
27
30
|
// For buttons and links
|
|
28
|
-
"link-enabled:before:group-hover:[&:not(:active)]:bg-
|
|
29
|
-
"link-enabled:before:active:bg-
|
|
31
|
+
"link-enabled:before:group-hover:[&:not(:active)]:bg-ddt-color-common-surface-hover",
|
|
32
|
+
"link-enabled:before:active:bg-ddt-color-common-surface-press",
|
|
30
33
|
// For text
|
|
31
|
-
"[&:not(a,button)]:before:group-hover:bg-
|
|
34
|
+
"[&:not(a,button)]:before:group-hover:bg-ddt-color-common-surface-hover"
|
|
32
35
|
])();
|
|
33
36
|
const cvaContent = cva(["block", "pl-2", "pr-3", "text-left"], {
|
|
34
37
|
variants: {
|
|
35
38
|
disabled: {
|
|
36
|
-
false: ["text-
|
|
37
|
-
true: ["text-
|
|
39
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
40
|
+
true: ["text-ddt-color-common-disabled"]
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
});
|
|
@@ -45,12 +48,12 @@ const cvaIcon = cva(["icon-size-6"], {
|
|
|
45
48
|
right: ["pointer-events-none"]
|
|
46
49
|
},
|
|
47
50
|
disabled: {
|
|
48
|
-
false: ["text-
|
|
49
|
-
true: ["text-
|
|
51
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
52
|
+
true: ["text-ddt-color-common-disabled"]
|
|
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,41 +28,42 @@ 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-
|
|
35
|
-
"focus-visible:outline-
|
|
39
|
+
"focus-visible:outline-offset-[-2px]",
|
|
40
|
+
"focus-visible:outline-ddt-color-common-border-focus"
|
|
36
41
|
],
|
|
37
42
|
{
|
|
38
43
|
variants: {
|
|
39
44
|
active: {
|
|
40
45
|
true: [
|
|
41
|
-
"text-
|
|
42
|
-
"focus-visible:text-
|
|
46
|
+
"text-ddt-color-common-brand-default",
|
|
47
|
+
"focus-visible:text-ddt-color-common-brand-default",
|
|
43
48
|
"font-bold",
|
|
44
|
-
"hover:text-
|
|
45
|
-
"hover:bg-
|
|
46
|
-
"active:text-
|
|
47
|
-
"active:bg-
|
|
48
|
-
"after:bg-
|
|
49
|
+
"hover:text-ddt-color-common-brand-hover",
|
|
50
|
+
"hover:bg-ddt-color-common-surface-brand-hover",
|
|
51
|
+
"active:text-ddt-color-common-brand-press",
|
|
52
|
+
"active:bg-ddt-color-common-surface-brand-press",
|
|
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
|
-
"text-inherit",
|
|
57
61
|
"font-normal",
|
|
58
|
-
"text-
|
|
59
|
-
"active:bg-
|
|
60
|
-
"active:text-
|
|
61
|
-
"hover:bg-
|
|
62
|
-
"hover:text-
|
|
62
|
+
"text-ddt-color-common-neutral-default",
|
|
63
|
+
"active:bg-ddt-color-common-surface-neutral-press",
|
|
64
|
+
"active:text-ddt-color-common-neutral-press",
|
|
65
|
+
"hover:bg-ddt-color-common-surface-neutral-hover",
|
|
66
|
+
"hover:text-ddt-color-common-neutral-hover"
|
|
63
67
|
]
|
|
64
68
|
}
|
|
65
69
|
}
|
|
@@ -67,7 +71,6 @@ const cvaPageButton = cva(
|
|
|
67
71
|
);
|
|
68
72
|
const cvaEllipsis = cva([
|
|
69
73
|
"relative",
|
|
70
|
-
"text-inherit",
|
|
71
74
|
"border-0",
|
|
72
75
|
"no-underline",
|
|
73
76
|
"flex",
|
|
@@ -79,10 +82,10 @@ const cvaEllipsis = cva([
|
|
|
79
82
|
"text-base",
|
|
80
83
|
"not-italic",
|
|
81
84
|
"font-normal",
|
|
82
|
-
"leading-6"
|
|
85
|
+
"leading-6",
|
|
86
|
+
"text-ddt-color-common-neutral-default"
|
|
83
87
|
]);
|
|
84
88
|
const cvaChevronButton = cva([
|
|
85
|
-
"text-inherit",
|
|
86
89
|
"border-0",
|
|
87
90
|
"no-underline",
|
|
88
91
|
"flex",
|
|
@@ -90,23 +93,23 @@ const cvaChevronButton = cva([
|
|
|
90
93
|
"justify-center",
|
|
91
94
|
"w-12",
|
|
92
95
|
"h-12",
|
|
93
|
-
"text-
|
|
96
|
+
"text-ddt-color-common-neutral-default",
|
|
94
97
|
"font-daikinSerif",
|
|
95
98
|
"text-base",
|
|
96
99
|
"not-italic",
|
|
97
100
|
"font-normal",
|
|
98
101
|
"leading-6",
|
|
99
|
-
"enabled:hover:bg-
|
|
100
|
-
"enabled:hover:text-
|
|
101
|
-
"enabled:active:bg-
|
|
102
|
-
"enabled:active:text-
|
|
103
|
-
"disabled:!text-
|
|
102
|
+
"enabled:hover:bg-ddt-color-common-surface-neutral-hover",
|
|
103
|
+
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
104
|
+
"enabled:active:bg-ddt-color-common-surface-neutral-press",
|
|
105
|
+
"enabled:active:text-ddt-color-common-neutral-press",
|
|
106
|
+
"disabled:!text-ddt-color-common-disabled",
|
|
104
107
|
"focus-visible:outline",
|
|
105
108
|
"focus-visible:outline-2",
|
|
106
|
-
"focus-visible:outline-offset-
|
|
107
|
-
"focus-visible:outline-
|
|
109
|
+
"focus-visible:outline-offset-[-2px]",
|
|
110
|
+
"focus-visible:outline-ddt-color-common-border-focus"
|
|
108
111
|
]);
|
|
109
|
-
let DaikinPagination = class extends
|
|
112
|
+
let DaikinPagination = class extends DDSElement {
|
|
110
113
|
constructor() {
|
|
111
114
|
super(...arguments);
|
|
112
115
|
this.current = 1;
|
|
@@ -134,7 +137,11 @@ let DaikinPagination = class extends LitElement {
|
|
|
134
137
|
this.window
|
|
135
138
|
);
|
|
136
139
|
return html`
|
|
137
|
-
<div
|
|
140
|
+
<div
|
|
141
|
+
aria-label="Pagination"
|
|
142
|
+
role="navigation"
|
|
143
|
+
class="inline-flex flex-wrap"
|
|
144
|
+
>
|
|
138
145
|
<button
|
|
139
146
|
class=${cvaChevron}
|
|
140
147
|
type="button"
|
|
@@ -209,7 +216,7 @@ __decorateClass([
|
|
|
209
216
|
property({ type: Number, reflect: true })
|
|
210
217
|
], DaikinPagination.prototype, "window", 2);
|
|
211
218
|
DaikinPagination = __decorateClass([
|
|
212
|
-
|
|
219
|
+
ddsElement("daikin-pagination")
|
|
213
220
|
], DaikinPagination);
|
|
214
221
|
export {
|
|
215
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-
|
|
21
|
+
"bg-ddt-color-common-border-empty",
|
|
19
22
|
"overflow-hidden",
|
|
20
23
|
"relative",
|
|
21
24
|
"after:block",
|
|
@@ -26,14 +29,17 @@ const cvaBar = cva(
|
|
|
26
29
|
{
|
|
27
30
|
variants: {
|
|
28
31
|
variant: {
|
|
29
|
-
inprogress: [
|
|
30
|
-
|
|
32
|
+
inprogress: [
|
|
33
|
+
"after:w-[--bar-width]",
|
|
34
|
+
"after:bg-ddt-color-common-brand-default"
|
|
35
|
+
],
|
|
36
|
+
completed: ["after:w-full", "after:bg-ddt-color-common-success"],
|
|
31
37
|
indeterminate: [
|
|
32
38
|
"after:w-1/2",
|
|
33
|
-
"after:bg-
|
|
39
|
+
"after:bg-ddt-color-common-brand-default",
|
|
34
40
|
"after:animate-[progress-bar-indeterminate_1200ms_linear_infinite]"
|
|
35
41
|
],
|
|
36
|
-
error: ["after:w-full", "after:bg-
|
|
42
|
+
error: ["after:w-full", "after:bg-ddt-color-common-danger-default"]
|
|
37
43
|
},
|
|
38
44
|
size: {
|
|
39
45
|
medium: ["h-1"],
|
|
@@ -43,33 +49,42 @@ const cvaBar = cva(
|
|
|
43
49
|
}
|
|
44
50
|
);
|
|
45
51
|
const cvaBarContainer = cva(
|
|
46
|
-
[
|
|
52
|
+
[
|
|
53
|
+
"flex",
|
|
54
|
+
"justify-between",
|
|
55
|
+
"items-center",
|
|
56
|
+
"text-ddt-color-common-text-primary",
|
|
57
|
+
"leading-[130%]",
|
|
58
|
+
"font-bold"
|
|
59
|
+
],
|
|
47
60
|
{
|
|
48
61
|
variants: {
|
|
49
62
|
variant: {
|
|
50
63
|
inprogress: [],
|
|
51
64
|
completed: [
|
|
52
65
|
"after:size-4",
|
|
53
|
-
"after:
|
|
66
|
+
"after:flex-none",
|
|
67
|
+
"after:bg-ddt-color-common-success",
|
|
54
68
|
"after:i-daikin-status-positive"
|
|
55
69
|
],
|
|
56
70
|
indeterminate: [],
|
|
57
71
|
error: [
|
|
58
72
|
"after:size-4",
|
|
59
|
-
"after:
|
|
73
|
+
"after:flex-none",
|
|
74
|
+
"after:text-ddt-color-common-danger-default",
|
|
60
75
|
"after:i-daikin-status-error"
|
|
61
76
|
]
|
|
62
77
|
}
|
|
63
78
|
}
|
|
64
79
|
}
|
|
65
80
|
);
|
|
66
|
-
const cvaHelper = cva(["text-sm"], {
|
|
81
|
+
const cvaHelper = cva(["text-sm", "leading-[130%]"], {
|
|
67
82
|
variants: {
|
|
68
83
|
variant: {
|
|
69
|
-
inprogress: [],
|
|
70
|
-
completed: [],
|
|
71
|
-
indeterminate: [],
|
|
72
|
-
error: ["text-
|
|
84
|
+
inprogress: ["text-ddt-color-common-text-primary"],
|
|
85
|
+
completed: ["text-ddt-color-common-text-primary"],
|
|
86
|
+
indeterminate: ["text-ddt-color-common-text-primary"],
|
|
87
|
+
error: ["text-ddt-color-common-danger-default", "font-bold"]
|
|
73
88
|
},
|
|
74
89
|
visible: {
|
|
75
90
|
false: ["hidden"],
|
|
@@ -77,7 +92,7 @@ const cvaHelper = cva(["text-sm"], {
|
|
|
77
92
|
}
|
|
78
93
|
}
|
|
79
94
|
});
|
|
80
|
-
let DaikinProgressBar = class extends
|
|
95
|
+
let DaikinProgressBar = class extends DDSElement {
|
|
81
96
|
constructor() {
|
|
82
97
|
super(...arguments);
|
|
83
98
|
this.variant = "inprogress";
|
|
@@ -155,7 +170,7 @@ __decorateClass([
|
|
|
155
170
|
property({ type: String })
|
|
156
171
|
], DaikinProgressBar.prototype, "helper", 2);
|
|
157
172
|
DaikinProgressBar = __decorateClass([
|
|
158
|
-
|
|
173
|
+
ddsElement("daikin-progress-bar")
|
|
159
174
|
], DaikinProgressBar);
|
|
160
175
|
export {
|
|
161
176
|
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,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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";
|
|
4
6
|
import tailwindStyles from "../../tailwind.css.js";
|
|
5
7
|
var __defProp = Object.defineProperty;
|
|
6
8
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -12,41 +14,34 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
12
14
|
if (kind && result) __defProp(target, key, result);
|
|
13
15
|
return result;
|
|
14
16
|
};
|
|
15
|
-
let DaikinProgressIndicator = class extends
|
|
17
|
+
let DaikinProgressIndicator = class extends DDSElement {
|
|
16
18
|
constructor() {
|
|
17
19
|
super(...arguments);
|
|
18
|
-
this.currentItem =
|
|
20
|
+
this.currentItem = 0;
|
|
19
21
|
}
|
|
20
|
-
|
|
22
|
+
_updateSteps() {
|
|
21
23
|
const items = this._items;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
if (items.length - 1 < this.currentItem) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if (this.currentItem < 0) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
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
|
+
});
|
|
32
27
|
}
|
|
33
28
|
_handleSlotChange() {
|
|
34
|
-
this.
|
|
29
|
+
this._updateSteps();
|
|
35
30
|
}
|
|
36
31
|
render() {
|
|
37
32
|
return html`<div
|
|
38
|
-
class="flex justify-stretch items-start w-full font-daikinSerif"
|
|
33
|
+
class="flex justify-stretch items-start gap-2 w-full font-daikinSerif"
|
|
39
34
|
role="list"
|
|
40
35
|
>
|
|
41
36
|
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
42
37
|
</div>`;
|
|
43
38
|
}
|
|
44
39
|
firstUpdated() {
|
|
45
|
-
this.
|
|
40
|
+
this._updateSteps();
|
|
46
41
|
}
|
|
47
42
|
updated(changedProperties) {
|
|
48
43
|
if (changedProperties.has("currentItem")) {
|
|
49
|
-
this.
|
|
44
|
+
this._updateSteps();
|
|
50
45
|
}
|
|
51
46
|
}
|
|
52
47
|
};
|
|
@@ -54,10 +49,6 @@ DaikinProgressIndicator.styles = css`
|
|
|
54
49
|
${unsafeCSS(tailwindStyles)}
|
|
55
50
|
|
|
56
51
|
:host {
|
|
57
|
-
--progress-indicator-border-color-error: ${unsafeCSS(
|
|
58
|
-
colorFeedbackNegative
|
|
59
|
-
)};
|
|
60
|
-
|
|
61
52
|
display: block;
|
|
62
53
|
width: 100%;
|
|
63
54
|
}
|
|
@@ -69,7 +60,7 @@ __decorateClass([
|
|
|
69
60
|
queryAssignedElements({ selector: "daikin-progress-indicator-item" })
|
|
70
61
|
], DaikinProgressIndicator.prototype, "_items", 2);
|
|
71
62
|
DaikinProgressIndicator = __decorateClass([
|
|
72
|
-
|
|
63
|
+
ddsElement("daikin-progress-indicator")
|
|
73
64
|
], DaikinProgressIndicator);
|
|
74
65
|
export {
|
|
75
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 {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property
|
|
2
|
+
import { css, unsafeCSS, html, nothing } 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
|
import "../icon/daikin-icon.js";
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
@@ -17,48 +20,47 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
17
20
|
const cvaContainer = cva(
|
|
18
21
|
[
|
|
19
22
|
"flex",
|
|
20
|
-
"
|
|
21
|
-
"gap-1",
|
|
23
|
+
"gap-2",
|
|
22
24
|
"w-full",
|
|
23
|
-
"text-
|
|
24
|
-
"pt-
|
|
25
|
+
"text-ddt-color-common-text-primary",
|
|
26
|
+
"pt-2",
|
|
25
27
|
"border-t-[0.25rem]",
|
|
26
28
|
"font-daikinSerif"
|
|
27
29
|
],
|
|
28
30
|
{
|
|
29
31
|
variants: {
|
|
30
32
|
status: {
|
|
31
|
-
unfinished: ["border-
|
|
32
|
-
inprogress: ["border-
|
|
33
|
-
finished: ["border-
|
|
33
|
+
unfinished: ["border-ddt-color-common-border-empty"],
|
|
34
|
+
inprogress: ["border-ddt-color-common-brand-default"],
|
|
35
|
+
finished: ["border-ddt-color-common-brand-default"]
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
);
|
|
38
|
-
let DaikinProgressIndicatorItem = class extends
|
|
40
|
+
let DaikinProgressIndicatorItem = class extends DDSElement {
|
|
39
41
|
constructor() {
|
|
40
42
|
super(...arguments);
|
|
41
43
|
this.status = "unfinished";
|
|
42
|
-
this.current = false;
|
|
43
44
|
}
|
|
44
45
|
render() {
|
|
45
46
|
return html`<div
|
|
46
|
-
class=${cvaContainer({
|
|
47
|
-
status: this.status
|
|
48
|
-
})}
|
|
47
|
+
class=${cvaContainer({ status: this.status })}
|
|
49
48
|
role="listitem"
|
|
50
|
-
aria-current=${ifDefined(
|
|
49
|
+
aria-current=${ifDefined(
|
|
50
|
+
this.status === "inprogress" ? "step" : void 0
|
|
51
|
+
)}
|
|
51
52
|
>
|
|
52
|
-
<div class="flex
|
|
53
|
-
<slot></slot>
|
|
54
|
-
|
|
55
|
-
<span
|
|
56
|
-
class="size-4 i-daikin-status-success text-system-state-primary-active"
|
|
57
|
-
aria-label="Completed"
|
|
58
|
-
></span>
|
|
59
|
-
` : nothing}
|
|
53
|
+
<div class="flex flex-col gap-1 w-full">
|
|
54
|
+
<slot class="font-bold leading-[130%]"></slot>
|
|
55
|
+
<slot name="description" class="text-sm leading-[130%]"></slot>
|
|
60
56
|
</div>
|
|
61
|
-
|
|
57
|
+
${this.status === "finished" ? html`
|
|
58
|
+
<span
|
|
59
|
+
role="img"
|
|
60
|
+
class="flex-none size-4 i-daikin-status-positive text-ddt-color-common-brand-default"
|
|
61
|
+
aria-label="Completed"
|
|
62
|
+
></span>
|
|
63
|
+
` : nothing}
|
|
62
64
|
</div>`;
|
|
63
65
|
}
|
|
64
66
|
};
|
|
@@ -74,11 +76,8 @@ DaikinProgressIndicatorItem.styles = css`
|
|
|
74
76
|
__decorateClass([
|
|
75
77
|
property({ type: String, reflect: true })
|
|
76
78
|
], DaikinProgressIndicatorItem.prototype, "status", 2);
|
|
77
|
-
__decorateClass([
|
|
78
|
-
property({ type: Boolean, reflect: true })
|
|
79
|
-
], DaikinProgressIndicatorItem.prototype, "current", 2);
|
|
80
79
|
DaikinProgressIndicatorItem = __decorateClass([
|
|
81
|
-
|
|
80
|
+
ddsElement("daikin-progress-indicator-item")
|
|
82
81
|
], DaikinProgressIndicatorItem);
|
|
83
82
|
export {
|
|
84
83
|
DaikinProgressIndicatorItem
|