@daikin-oss/design-system-web-components 0.7.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +127 -12
- package/README.md +2 -2
- package/dist/cjs/base/dds-element.cjs +8 -0
- package/dist/cjs/base/dds-element.d.cts +4 -0
- package/dist/cjs/base/decorators.cjs +13 -0
- package/dist/cjs/base/decorators.d.cts +2 -0
- package/dist/cjs/base/define.cjs +18 -0
- package/dist/cjs/base/define.d.cts +1 -0
- package/dist/cjs/base/index.cjs +8 -0
- package/dist/cjs/base/index.d.cts +3 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +64 -0
- package/dist/cjs/components/avatar/index.cjs +7 -0
- package/dist/cjs/components/avatar/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs/components/button/daikin-button.cjs +20 -8
- package/dist/cjs/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs/components/card/daikin-card.cjs +11 -7
- package/dist/cjs/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs/components/carousel/index.cjs +7 -0
- package/dist/cjs/components/carousel/index.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs/components/carousel-item/index.cjs +7 -0
- package/dist/cjs/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +35 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +8 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +161 -74
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +64 -11
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
- package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +4 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +33 -3
- package/dist/cjs/components/index.d.cts +7 -1
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs/components/inline-notification/index.cjs +7 -0
- package/dist/cjs/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs/components/link/daikin-link.cjs +9 -6
- package/dist/cjs/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs/components/list/daikin-list.cjs +9 -9
- package/dist/cjs/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs/components/loading/daikin-loading.d.cts +32 -0
- package/dist/cjs/components/loading/index.cjs +7 -0
- package/dist/cjs/components/loading/index.d.cts +1 -0
- package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs/components/select/daikin-select.cjs +15 -6
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs/components/table/daikin-table.cjs +9 -6
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs/components/toast-notification/index.cjs +7 -0
- package/dist/cjs/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +33 -3
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs/utils/is-similar-to-click.d.cts +1 -0
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +64 -0
- package/dist/cjs-dev/components/avatar/index.cjs +7 -0
- package/dist/cjs-dev/components/avatar/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
- package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
- package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs-dev/components/carousel/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +35 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +8 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +161 -74
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +64 -11
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +4 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +33 -3
- package/dist/cjs-dev/components/index.d.cts +7 -1
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
- package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
- package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +32 -0
- package/dist/cjs-dev/components/loading/index.cjs +7 -0
- package/dist/cjs-dev/components/loading/index.d.cts +1 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +16 -30
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs-dev/components/select/daikin-select.cjs +15 -6
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +9 -6
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +33 -3
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs-dev/utils/is-similar-to-click.d.cts +1 -0
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es/components/avatar/daikin-avatar.d.ts +64 -0
- package/dist/es/components/avatar/daikin-avatar.js +161 -0
- package/dist/es/components/avatar/index.d.ts +1 -0
- package/dist/es/components/avatar/index.js +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es/components/button/daikin-button.d.ts +6 -3
- package/dist/es/components/button/daikin-button.js +19 -7
- package/dist/es/components/card/daikin-card.d.ts +8 -2
- package/dist/es/components/card/daikin-card.js +10 -6
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es/components/card-header/daikin-card-header.js +8 -8
- package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es/components/carousel/daikin-carousel.js +218 -0
- package/dist/es/components/carousel/index.d.ts +1 -0
- package/dist/es/components/carousel/index.js +4 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es/components/carousel-item/index.d.ts +1 -0
- package/dist/es/components/carousel-item/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +8 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +34 -15
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +64 -11
- package/dist/es/components/dropdown/daikin-dropdown.js +160 -73
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +108 -40
- package/dist/es/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es/components/icon/daikin-icon.js +7 -4
- package/dist/es/components/icon/icons.json.d.ts +4 -8
- package/dist/es/components/icon/icons.json.js +1 -70
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es/components/index.d.ts +7 -1
- package/dist/es/components/index.js +14 -2
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es/components/inline-notification/index.d.ts +1 -0
- package/dist/es/components/inline-notification/index.js +4 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es/components/input-group/daikin-input-group.js +11 -8
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +8 -5
- package/dist/es/components/list/daikin-list.d.ts +7 -2
- package/dist/es/components/list/daikin-list.js +7 -7
- package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es/components/list-item/daikin-list-item.js +7 -4
- package/dist/es/components/loading/daikin-loading.d.ts +32 -0
- package/dist/es/components/loading/daikin-loading.js +92 -0
- package/dist/es/components/loading/index.d.ts +1 -0
- package/dist/es/components/loading/index.js +4 -0
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +21 -12
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +44 -22
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es/components/select/daikin-select.d.ts +11 -2
- package/dist/es/components/select/daikin-select.js +14 -5
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +24 -9
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es/components/table/daikin-table.d.ts +9 -2
- package/dist/es/components/table/daikin-table.js +8 -5
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es/components/tabs/daikin-tabs.js +24 -9
- package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es/components/text-area/daikin-text-area.js +15 -6
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +15 -6
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es/components/toast-notification/index.d.ts +1 -0
- package/dist/es/components/toast-notification/index.js +4 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es/components/toast-notification-manager/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es/components/toggle/daikin-toggle.js +7 -4
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es/components/tree/daikin-tree.js +35 -36
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.js +14 -2
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es/utils/is-similar-to-click.js +4 -0
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +64 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +161 -0
- package/dist/es-dev/components/avatar/index.d.ts +1 -0
- package/dist/es-dev/components/avatar/index.js +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
- package/dist/es-dev/components/button/daikin-button.js +19 -7
- package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
- package/dist/es-dev/components/card/daikin-card.js +10 -6
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
- package/dist/es-dev/components/carousel/index.d.ts +1 -0
- package/dist/es-dev/components/carousel/index.js +4 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +8 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +34 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +64 -11
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +160 -73
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +108 -40
- package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es-dev/components/icon/daikin-icon.js +7 -4
- package/dist/es-dev/components/icon/icons.json.d.ts +4 -8
- package/dist/es-dev/components/icon/icons.json.js +1 -70
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es-dev/components/index.d.ts +7 -1
- package/dist/es-dev/components/index.js +14 -2
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
- package/dist/es-dev/components/inline-notification/index.js +4 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +8 -5
- package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
- package/dist/es-dev/components/list/daikin-list.js +7 -7
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.js +7 -4
- package/dist/es-dev/components/loading/daikin-loading.d.ts +32 -0
- package/dist/es-dev/components/loading/daikin-loading.js +92 -0
- package/dist/es-dev/components/loading/index.d.ts +1 -0
- package/dist/es-dev/components/loading/index.js +4 -0
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +15 -29
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +44 -22
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
- package/dist/es-dev/components/select/daikin-select.js +14 -5
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +24 -9
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
- package/dist/es-dev/components/table/daikin-table.js +8 -5
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +15 -6
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +15 -6
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification/index.js +4 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es-dev/components/toggle/daikin-toggle.js +7 -4
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es-dev/components/tree/daikin-tree.js +35 -36
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.js +14 -2
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es-dev/utils/is-similar-to-click.js +4 -0
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/profile.svg +4 -0
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +54 -50
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs/components/notification/index.cjs +0 -7
- package/dist/cjs/components/notification/index.d.cts +0 -1
- package/dist/cjs/constants/events.cjs +0 -4
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs-dev/components/notification/index.cjs +0 -7
- package/dist/cjs-dev/components/notification/index.d.cts +0 -1
- package/dist/cjs-dev/constants/events.cjs +0 -4
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -197
- package/dist/es/components/notification/index.d.ts +0 -1
- package/dist/es/components/notification/index.js +0 -4
- package/dist/es/constants/events.js +0 -4
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -197
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, query
|
|
2
|
+
import { css, unsafeCSS, html, nothing } 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;
|
|
@@ -37,15 +40,19 @@ const RADIO_CLASS_NAME = cva([
|
|
|
37
40
|
"enabled:checked:group-active:border-ddt-color-common-brand-press",
|
|
38
41
|
"disabled:border-ddt-color-common-disabled"
|
|
39
42
|
])();
|
|
40
|
-
const cvaLabel = cva([
|
|
43
|
+
const cvaLabel = cva([], {
|
|
41
44
|
variants: {
|
|
42
45
|
disabled: {
|
|
43
46
|
false: ["text-ddt-color-common-text-primary"],
|
|
44
47
|
true: ["text-ddt-color-common-disabled"]
|
|
48
|
+
},
|
|
49
|
+
hidden: {
|
|
50
|
+
false: ["inline-block"],
|
|
51
|
+
true: ["hidden"]
|
|
45
52
|
}
|
|
46
53
|
}
|
|
47
54
|
});
|
|
48
|
-
let DaikinRadio = class extends
|
|
55
|
+
let DaikinRadio = class extends DDSElement {
|
|
49
56
|
constructor() {
|
|
50
57
|
super(...arguments);
|
|
51
58
|
this.name = "";
|
|
@@ -54,24 +61,24 @@ let DaikinRadio = class extends LitElement {
|
|
|
54
61
|
this.labelPosition = "right";
|
|
55
62
|
this.checked = false;
|
|
56
63
|
this.disabled = false;
|
|
64
|
+
this.disabledByParent = false;
|
|
57
65
|
this.skipTab = false;
|
|
58
66
|
this._internals = this.attachInternals();
|
|
59
67
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* @param options focus options
|
|
63
|
-
*/
|
|
64
|
-
focus(options) {
|
|
65
|
-
var _a;
|
|
66
|
-
(_a = this._radio) == null ? void 0 : _a.focus(options);
|
|
68
|
+
get _labelHidden() {
|
|
69
|
+
return this.labelPosition === "hidden";
|
|
67
70
|
}
|
|
68
71
|
_updateFormValue() {
|
|
69
72
|
this._internals.setFormValue(this.checked ? this.value : null);
|
|
70
73
|
}
|
|
71
74
|
_handleClick(event) {
|
|
75
|
+
var _a;
|
|
72
76
|
if (this.disabled) {
|
|
73
77
|
event.preventDefault();
|
|
74
78
|
}
|
|
79
|
+
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT") {
|
|
80
|
+
event.stopPropagation();
|
|
81
|
+
}
|
|
75
82
|
}
|
|
76
83
|
_handleChange(event) {
|
|
77
84
|
this.checked = event.target.checked;
|
|
@@ -84,29 +91,33 @@ let DaikinRadio = class extends LitElement {
|
|
|
84
91
|
);
|
|
85
92
|
}
|
|
86
93
|
render() {
|
|
87
|
-
|
|
94
|
+
const disabled = this.disabled || this.disabledByParent;
|
|
95
|
+
return html`<label
|
|
96
|
+
class="group flex gap-2 items-center size-full font-daikinSerif"
|
|
97
|
+
@click=${this._handleClick}
|
|
98
|
+
>
|
|
88
99
|
<span class="p-2">
|
|
89
100
|
<input
|
|
90
101
|
class=${RADIO_CLASS_NAME}
|
|
91
102
|
type="radio"
|
|
92
103
|
name=${this.name}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
?disabled=${
|
|
104
|
+
aria-label=${this._labelHidden ? this.label : nothing}
|
|
105
|
+
tabindex=${ifDefined(this.skipTab ? "-1" : void 0)}
|
|
106
|
+
?disabled=${disabled}
|
|
96
107
|
.checked=${this.checked}
|
|
97
|
-
|
|
108
|
+
.value=${this.value}
|
|
98
109
|
@change=${this._handleChange}
|
|
99
|
-
tabindex=${ifDefined(this.skipTab ? "-1" : void 0)}
|
|
100
110
|
/>
|
|
101
111
|
</span>
|
|
102
|
-
<
|
|
112
|
+
<slot
|
|
103
113
|
class=${cvaLabel({
|
|
104
|
-
disabled
|
|
114
|
+
disabled,
|
|
115
|
+
hidden: this._labelHidden
|
|
105
116
|
})}
|
|
106
|
-
?hidden=${this.
|
|
117
|
+
?hidden=${this._labelHidden}
|
|
107
118
|
>
|
|
108
119
|
${this.label}
|
|
109
|
-
</
|
|
120
|
+
</slot>
|
|
110
121
|
</label>`;
|
|
111
122
|
}
|
|
112
123
|
updated(changedProperties) {
|
|
@@ -114,6 +125,14 @@ let DaikinRadio = class extends LitElement {
|
|
|
114
125
|
this._updateFormValue();
|
|
115
126
|
}
|
|
116
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Focuses on the inner radio.
|
|
130
|
+
* @param options focus options
|
|
131
|
+
*/
|
|
132
|
+
focus(options) {
|
|
133
|
+
var _a;
|
|
134
|
+
(_a = this._radio) == null ? void 0 : _a.focus(options);
|
|
135
|
+
}
|
|
117
136
|
};
|
|
118
137
|
DaikinRadio.styles = css`
|
|
119
138
|
${unsafeCSS(tailwindStyles)}
|
|
@@ -141,6 +160,9 @@ __decorateClass([
|
|
|
141
160
|
__decorateClass([
|
|
142
161
|
property({ type: Boolean, reflect: true })
|
|
143
162
|
], DaikinRadio.prototype, "disabled", 2);
|
|
163
|
+
__decorateClass([
|
|
164
|
+
property({ type: Boolean, reflect: true, attribute: false })
|
|
165
|
+
], DaikinRadio.prototype, "disabledByParent", 2);
|
|
144
166
|
__decorateClass([
|
|
145
167
|
property({ type: Boolean, attribute: false })
|
|
146
168
|
], DaikinRadio.prototype, "skipTab", 2);
|
|
@@ -148,7 +170,7 @@ __decorateClass([
|
|
|
148
170
|
query("input")
|
|
149
171
|
], DaikinRadio.prototype, "_radio", 2);
|
|
150
172
|
DaikinRadio = __decorateClass([
|
|
151
|
-
|
|
173
|
+
ddsElement("daikin-radio")
|
|
152
174
|
], DaikinRadio);
|
|
153
175
|
export {
|
|
154
176
|
DaikinRadio
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
3
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
4
|
import { DaikinInputGroup } from "../input-group/index.js";
|
|
4
|
-
declare const
|
|
5
|
+
declare const cvaRadioGroup: (props?: ({
|
|
5
6
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
type RadioGroupProps = MergeVariantProps<typeof
|
|
8
|
+
type RadioGroupProps = MergeVariantProps<typeof cvaRadioGroup>;
|
|
8
9
|
/**
|
|
9
10
|
* Radio groups are used to group multiple radio buttons so that make sure that only one will be selected in the group
|
|
10
11
|
*
|
|
@@ -18,6 +19,11 @@ type RadioGroupProps = MergeVariantProps<typeof radioGroupCN>;
|
|
|
18
19
|
*
|
|
19
20
|
* @example
|
|
20
21
|
*
|
|
22
|
+
* ```js
|
|
23
|
+
* import "@daikin-oss/design-system-web-components/components/radio/index.js";
|
|
24
|
+
* import "@daikin-oss/design-system-web-components/components/radio-group/index.js";
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
21
27
|
* ```html
|
|
22
28
|
* <daikin-radio-group name="name">
|
|
23
29
|
* <daikin-radio value="value1" label="Option1"></daikin-radio>
|
|
@@ -25,18 +31,8 @@ type RadioGroupProps = MergeVariantProps<typeof radioGroupCN>;
|
|
|
25
31
|
* <daikin-radio value="value3" label="Option3"></daikin-radio>
|
|
26
32
|
* </daikin-radio-group>
|
|
27
33
|
* ```
|
|
28
|
-
*
|
|
29
|
-
* ```html
|
|
30
|
-
* <daikin-input-group label="Label text" helper="Helper text">
|
|
31
|
-
* <daikin-radio-group name="name">
|
|
32
|
-
* <daikin-radio value="value1" label="Option1"></daikin-radio>
|
|
33
|
-
* <daikin-radio value="value2" label="Option2"></daikin-radio>
|
|
34
|
-
* <daikin-radio value="value3" label="Option3"></daikin-radio>
|
|
35
|
-
* </daikin-radio-group>
|
|
36
|
-
* </daikin-input-group>
|
|
37
|
-
* ```
|
|
38
34
|
*/
|
|
39
|
-
export declare class DaikinRadioGroup extends
|
|
35
|
+
export declare class DaikinRadioGroup extends DDSElement {
|
|
40
36
|
static readonly styles: import('lit').CSSResult;
|
|
41
37
|
private readonly _radios;
|
|
42
38
|
/**
|
|
@@ -57,11 +53,17 @@ export declare class DaikinRadioGroup extends LitElement {
|
|
|
57
53
|
* Controlled by `daikin-input-group` when used within `daikin-input-group`.
|
|
58
54
|
*/
|
|
59
55
|
required: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the radio group is disabled.
|
|
58
|
+
* Controlled by `daikin-input-group` when used within `daikin-input-group`.
|
|
59
|
+
*/
|
|
60
|
+
disabled: boolean;
|
|
60
61
|
/**
|
|
61
62
|
* The label text used as the value of aria-label.
|
|
62
63
|
* Set automatically by `reflectInputGroup` method.
|
|
63
64
|
*/
|
|
64
65
|
private _label;
|
|
66
|
+
private _reflectSlotProperties;
|
|
65
67
|
private _updateRadios;
|
|
66
68
|
private readonly _handleRadioChange;
|
|
67
69
|
private _handleSlotChange;
|
|
@@ -72,6 +74,10 @@ export declare class DaikinRadioGroup extends LitElement {
|
|
|
72
74
|
private _handleKeyDown;
|
|
73
75
|
render(): import('lit-html').TemplateResult<1>;
|
|
74
76
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
77
|
+
/**
|
|
78
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
75
81
|
reflectInputGroup(inputGroup: DaikinInputGroup): void;
|
|
76
82
|
}
|
|
77
83
|
declare global {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { queryAssignedElements, property, state
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { queryAssignedElements, property, state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
5
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
9
|
import "../radio/daikin-radio.js";
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
@@ -14,26 +17,32 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
14
17
|
if (kind && result) __defProp(target, key, result);
|
|
15
18
|
return result;
|
|
16
19
|
};
|
|
17
|
-
const
|
|
20
|
+
const cvaRadioGroup = cva(["size-full", "flex", "gap-x-3", "gap-y-2"], {
|
|
18
21
|
variants: {
|
|
19
22
|
orientation: {
|
|
20
|
-
horizontal: ["flex-
|
|
21
|
-
vertical: ["flex-
|
|
23
|
+
horizontal: ["flex-row", "flex-wrap"],
|
|
24
|
+
vertical: ["flex-col"]
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
});
|
|
25
|
-
let DaikinRadioGroup = class extends
|
|
28
|
+
let DaikinRadioGroup = class extends DDSElement {
|
|
26
29
|
constructor() {
|
|
27
30
|
super(...arguments);
|
|
28
|
-
this.orientation = "
|
|
31
|
+
this.orientation = "vertical";
|
|
29
32
|
this.name = "";
|
|
30
33
|
this.value = "";
|
|
31
34
|
this.required = false;
|
|
35
|
+
this.disabled = false;
|
|
32
36
|
this._label = null;
|
|
33
37
|
this._handleRadioChange = (event) => {
|
|
34
38
|
this.value = event.target.value;
|
|
35
39
|
};
|
|
36
40
|
}
|
|
41
|
+
_reflectSlotProperties() {
|
|
42
|
+
for (const radio of this._radios) {
|
|
43
|
+
radio.disabledByParent = this.disabled;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
37
46
|
_updateRadios() {
|
|
38
47
|
const radios = this._radios;
|
|
39
48
|
const selectedRadio = radios.find((radio) => radio.value === this.value);
|
|
@@ -48,6 +57,7 @@ let DaikinRadioGroup = class extends LitElement {
|
|
|
48
57
|
}
|
|
49
58
|
}
|
|
50
59
|
_handleSlotChange() {
|
|
60
|
+
this._reflectSlotProperties();
|
|
51
61
|
this._updateRadios();
|
|
52
62
|
}
|
|
53
63
|
/**
|
|
@@ -86,17 +96,18 @@ let DaikinRadioGroup = class extends LitElement {
|
|
|
86
96
|
}
|
|
87
97
|
}
|
|
88
98
|
render() {
|
|
89
|
-
const radioGroupClassName = radioGroupCN({ orientation: this.orientation });
|
|
90
99
|
return html`<fieldset
|
|
100
|
+
class=${cvaRadioGroup({ orientation: this.orientation })}
|
|
91
101
|
role="radiogroup"
|
|
92
102
|
aria-label=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
93
103
|
ifDefined(this._label)}
|
|
94
104
|
aria-required=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
95
105
|
ifDefined(this.required)}
|
|
106
|
+
aria-disabled=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
107
|
+
ifDefined(this.disabled)}
|
|
96
108
|
@keydown=${this._handleKeyDown}
|
|
97
109
|
>
|
|
98
110
|
<slot
|
|
99
|
-
class=${radioGroupClassName}
|
|
100
111
|
@slotchange=${this._handleSlotChange}
|
|
101
112
|
@change=${this._handleRadioChange}
|
|
102
113
|
>
|
|
@@ -104,13 +115,19 @@ let DaikinRadioGroup = class extends LitElement {
|
|
|
104
115
|
</fieldset>`;
|
|
105
116
|
}
|
|
106
117
|
updated(changedProperties) {
|
|
118
|
+
this._reflectSlotProperties();
|
|
107
119
|
if (changedProperties.has("value") || changedProperties.has("name")) {
|
|
108
120
|
this._updateRadios();
|
|
109
121
|
}
|
|
110
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
125
|
+
* @private
|
|
126
|
+
*/
|
|
111
127
|
reflectInputGroup(inputGroup) {
|
|
112
128
|
this._label = inputGroup.label;
|
|
113
129
|
this.required = !!inputGroup.required;
|
|
130
|
+
this.disabled = inputGroup.disabled;
|
|
114
131
|
}
|
|
115
132
|
};
|
|
116
133
|
DaikinRadioGroup.styles = css`
|
|
@@ -135,11 +152,14 @@ __decorateClass([
|
|
|
135
152
|
__decorateClass([
|
|
136
153
|
property({ type: Boolean, reflect: true })
|
|
137
154
|
], DaikinRadioGroup.prototype, "required", 2);
|
|
155
|
+
__decorateClass([
|
|
156
|
+
property({ type: Boolean, reflect: true })
|
|
157
|
+
], DaikinRadioGroup.prototype, "disabled", 2);
|
|
138
158
|
__decorateClass([
|
|
139
159
|
state()
|
|
140
160
|
], DaikinRadioGroup.prototype, "_label", 2);
|
|
141
161
|
DaikinRadioGroup = __decorateClass([
|
|
142
|
-
|
|
162
|
+
ddsElement("daikin-radio-group")
|
|
143
163
|
], DaikinRadioGroup);
|
|
144
164
|
export {
|
|
145
165
|
DaikinRadioGroup
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
3
|
import { DaikinInputGroup } from "../input-group/index.js";
|
|
3
4
|
/**
|
|
4
5
|
* A select component.
|
|
@@ -12,6 +13,10 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
*
|
|
16
|
+
* ```js
|
|
17
|
+
* import "@daikin-oss/design-system-web-components/components/select/index.js";
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
15
20
|
* ```html
|
|
16
21
|
* <daikin-select>
|
|
17
22
|
* <select name="select">
|
|
@@ -25,7 +30,7 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
25
30
|
* </daikin-select>
|
|
26
31
|
* ```
|
|
27
32
|
*/
|
|
28
|
-
export declare class DaikinSelect extends
|
|
33
|
+
export declare class DaikinSelect extends DDSElement {
|
|
29
34
|
static readonly styles: import('lit').CSSResult;
|
|
30
35
|
/**
|
|
31
36
|
* Whether the select component is in an error state.
|
|
@@ -51,6 +56,10 @@ export declare class DaikinSelect extends LitElement {
|
|
|
51
56
|
private _handleSlotChange;
|
|
52
57
|
render(): import('lit-html').TemplateResult<1>;
|
|
53
58
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
59
|
+
/**
|
|
60
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
61
|
+
* @private
|
|
62
|
+
*/
|
|
54
63
|
reflectInputGroup(inputGroup: DaikinInputGroup): void;
|
|
55
64
|
/**
|
|
56
65
|
* Focuses on the `<select>` element in the slot.
|
|
@@ -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 } 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;
|
|
@@ -62,7 +65,9 @@ const cvaSelect = cva(
|
|
|
62
65
|
},
|
|
63
66
|
error: {
|
|
64
67
|
false: [
|
|
65
|
-
"var-color-ddt-color-common-neutral-default/color-base",
|
|
68
|
+
"slotted-[select:enabled]:var-color-ddt-color-common-neutral-default/color-base",
|
|
69
|
+
"slotted-[select:enabled:hover]:var-color-ddt-color-common-neutral-hover/color-base",
|
|
70
|
+
"slotted-[select:enabled:active]:var-color-ddt-color-common-neutral-press/color-base",
|
|
66
71
|
"var-color-ddt-color-common-border-focus/color-focus"
|
|
67
72
|
],
|
|
68
73
|
true: [
|
|
@@ -73,7 +78,7 @@ const cvaSelect = cva(
|
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
80
|
);
|
|
76
|
-
let DaikinSelect = class extends
|
|
81
|
+
let DaikinSelect = class extends DDSElement {
|
|
77
82
|
constructor() {
|
|
78
83
|
super(...arguments);
|
|
79
84
|
this.error = false;
|
|
@@ -107,6 +112,10 @@ let DaikinSelect = class extends LitElement {
|
|
|
107
112
|
this._updateSelect();
|
|
108
113
|
}
|
|
109
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
117
|
+
* @private
|
|
118
|
+
*/
|
|
110
119
|
reflectInputGroup(inputGroup) {
|
|
111
120
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
112
121
|
this.disabled = !!inputGroup.disabled;
|
|
@@ -162,7 +171,7 @@ __decorateClass([
|
|
|
162
171
|
state()
|
|
163
172
|
], DaikinSelect.prototype, "_label", 2);
|
|
164
173
|
DaikinSelect = __decorateClass([
|
|
165
|
-
|
|
174
|
+
ddsElement("daikin-select")
|
|
166
175
|
], DaikinSelect);
|
|
167
176
|
export {
|
|
168
177
|
DaikinSelect
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The tab component is a child element within the `daikin-tabs` component, representing a clickable button or label that users interact with to switch between different panels of content.
|
|
4
4
|
* Each tab corresponds to a specific panel and is typically labeled to indicate the content it reveals.
|
|
@@ -21,7 +21,7 @@ import { LitElement } from 'lit';
|
|
|
21
21
|
* <daikin-tab value="foo">Foo tab</daikin-tab>
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
export declare class DaikinTab extends
|
|
24
|
+
export declare class DaikinTab extends DDSElement {
|
|
25
25
|
static readonly styles: import('lit').CSSResult;
|
|
26
26
|
/**
|
|
27
27
|
* A unique string that identifies a tab.
|
|
@@ -32,6 +32,11 @@ export declare class DaikinTab extends LitElement {
|
|
|
32
32
|
* Whether the tab is disabled.
|
|
33
33
|
*/
|
|
34
34
|
disabled: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the tab width stretches or fits.
|
|
37
|
+
* Controlled by `daikin-tabs`.
|
|
38
|
+
*/
|
|
39
|
+
sizing: "stretch" | "fit";
|
|
35
40
|
/**
|
|
36
41
|
* Whether to show the active (selected) state.
|
|
37
42
|
* Ignored if `disabled` is `true`.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, query
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property, query } from "lit/decorators.js";
|
|
4
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
6
|
+
import "../../base/define.js";
|
|
4
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
5
8
|
var __defProp = Object.defineProperty;
|
|
6
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -15,22 +18,20 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
18
|
const cvaTab = cva(
|
|
16
19
|
[
|
|
17
20
|
"flex",
|
|
18
|
-
"
|
|
19
|
-
"min-w-14",
|
|
20
|
-
"h-10",
|
|
21
|
+
"size-full",
|
|
21
22
|
"items-center",
|
|
22
23
|
"justify-center",
|
|
23
24
|
"px-4",
|
|
24
25
|
"pt-2",
|
|
25
26
|
"pb-3",
|
|
27
|
+
"leading-[130%]",
|
|
26
28
|
"text-center",
|
|
27
29
|
"font-daikinSerif",
|
|
28
30
|
"tracking-wide",
|
|
29
|
-
"whitespace-nowrap",
|
|
30
31
|
"relative",
|
|
31
32
|
"focus-visible:outline-none",
|
|
32
33
|
"focus-visible:before:absolute",
|
|
33
|
-
"focus-visible:before:-inset-
|
|
34
|
+
"focus-visible:before:-inset-1",
|
|
34
35
|
"focus-visible:before:z-[1]",
|
|
35
36
|
"focus-visible:before:border",
|
|
36
37
|
"focus-visible:before:border-2",
|
|
@@ -65,11 +66,12 @@ const cvaTab = cva(
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
|
-
let DaikinTab = class extends
|
|
69
|
+
let DaikinTab = class extends DDSElement {
|
|
69
70
|
constructor() {
|
|
70
71
|
super();
|
|
71
72
|
this.value = "";
|
|
72
73
|
this.disabled = false;
|
|
74
|
+
this.sizing = "stretch";
|
|
73
75
|
this.active = false;
|
|
74
76
|
this.addEventListener("click", (event) => {
|
|
75
77
|
if (this.disabled) {
|
|
@@ -104,8 +106,18 @@ DaikinTab.styles = css`
|
|
|
104
106
|
|
|
105
107
|
:host {
|
|
106
108
|
display: block;
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
min-width: fit-content;
|
|
111
|
+
height: 2.5rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:host([sizing="stretch"]) {
|
|
107
115
|
width: 100%;
|
|
108
116
|
}
|
|
117
|
+
|
|
118
|
+
:host([sizing="fit"]) {
|
|
119
|
+
width: fit-content;
|
|
120
|
+
}
|
|
109
121
|
`;
|
|
110
122
|
__decorateClass([
|
|
111
123
|
property({ type: String, reflect: true })
|
|
@@ -113,6 +125,9 @@ __decorateClass([
|
|
|
113
125
|
__decorateClass([
|
|
114
126
|
property({ type: Boolean, reflect: true })
|
|
115
127
|
], DaikinTab.prototype, "disabled", 2);
|
|
128
|
+
__decorateClass([
|
|
129
|
+
property({ type: String, reflect: true })
|
|
130
|
+
], DaikinTab.prototype, "sizing", 2);
|
|
116
131
|
__decorateClass([
|
|
117
132
|
property({ type: Boolean, reflect: true })
|
|
118
133
|
], DaikinTab.prototype, "active", 2);
|
|
@@ -120,7 +135,7 @@ __decorateClass([
|
|
|
120
135
|
query("button")
|
|
121
136
|
], DaikinTab.prototype, "_button", 2);
|
|
122
137
|
DaikinTab = __decorateClass([
|
|
123
|
-
|
|
138
|
+
ddsElement("daikin-tab")
|
|
124
139
|
], DaikinTab);
|
|
125
140
|
export {
|
|
126
141
|
DaikinTab
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.js";
|
|
3
3
|
/**
|
|
4
4
|
* The tab panels component is a child element within the `daikin-tabs` that controls the display of the content panels associated with each tab.
|
|
@@ -29,7 +29,7 @@ import { ARIARole } from "../../lit-analyzer-types.js";
|
|
|
29
29
|
* </daikin-tab-panels>
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export declare class DaikinTabPanels extends
|
|
32
|
+
export declare class DaikinTabPanels extends DDSElement {
|
|
33
33
|
static readonly styles: import('lit').CSSResult;
|
|
34
34
|
/**
|
|
35
35
|
* The panel to be displayed.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { css, unsafeCSS,
|
|
2
|
-
import { property
|
|
1
|
+
import { css, unsafeCSS, html, nothing } from "lit";
|
|
2
|
+
import { property } from "lit/decorators.js";
|
|
3
3
|
import { repeat } from "lit/directives/repeat.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
|
-
let DaikinTabPanels = class extends
|
|
18
|
+
let DaikinTabPanels = class extends DDSElement {
|
|
16
19
|
constructor() {
|
|
17
20
|
super(...arguments);
|
|
18
21
|
this.value = "";
|
|
@@ -24,8 +27,7 @@ let DaikinTabPanels = class extends LitElement {
|
|
|
24
27
|
this.panels,
|
|
25
28
|
(value) => html`<div
|
|
26
29
|
class=${this.value === value ? "contents" : "hidden"}
|
|
27
|
-
role=${
|
|
28
|
-
this.panelRole ?? nothing}
|
|
30
|
+
role=${this.panelRole ?? nothing}
|
|
29
31
|
?hidden=${this.value !== value}
|
|
30
32
|
>
|
|
31
33
|
<slot name=${`panel:${value}`}></slot>
|
|
@@ -49,7 +51,7 @@ __decorateClass([
|
|
|
49
51
|
property({ type: String, reflect: true, attribute: "panel-role" })
|
|
50
52
|
], DaikinTabPanels.prototype, "panelRole", 2);
|
|
51
53
|
DaikinTabPanels = __decorateClass([
|
|
52
|
-
|
|
54
|
+
ddsElement("daikin-tab-panels")
|
|
53
55
|
], DaikinTabPanels);
|
|
54
56
|
export {
|
|
55
57
|
DaikinTabPanels
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
3
|
export type HeaderType<T extends string = string> = {
|
|
3
4
|
key: T;
|
|
4
5
|
label: string;
|
|
@@ -26,6 +27,12 @@ export type HeaderType<T extends string = string> = {
|
|
|
26
27
|
*
|
|
27
28
|
* @example
|
|
28
29
|
*
|
|
30
|
+
* ```js
|
|
31
|
+
* import "@daikin-oss/design-system-web-components/components/table/index.js";
|
|
32
|
+
* import "@daikin-oss/design-system-web-components/components/table-cell/index.js";
|
|
33
|
+
* import "@daikin-oss/design-system-web-components/components/table-header-cell/index.js";
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
29
36
|
* ```html
|
|
30
37
|
* <daikin-table
|
|
31
38
|
* .headers="[
|
|
@@ -61,7 +68,7 @@ export type HeaderType<T extends string = string> = {
|
|
|
61
68
|
*/
|
|
62
69
|
export declare class DaikinTable<T extends {
|
|
63
70
|
id: string;
|
|
64
|
-
} = any> extends
|
|
71
|
+
} = any> extends DDSElement {
|
|
65
72
|
static readonly styles: import('lit').CSSResult;
|
|
66
73
|
/**
|
|
67
74
|
* Headers of the table.
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, state
|
|
2
|
+
import { css, unsafeCSS, html, nothing } from "lit";
|
|
3
|
+
import { property, state } 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 "../checkbox/daikin-checkbox.js";
|
|
8
11
|
import "../table-cell/daikin-table-cell.js";
|
|
@@ -39,7 +42,7 @@ const cvaRow = cva(
|
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
44
|
);
|
|
42
|
-
let DaikinTable = class extends
|
|
45
|
+
let DaikinTable = class extends DDSElement {
|
|
43
46
|
constructor() {
|
|
44
47
|
super(...arguments);
|
|
45
48
|
this.headers = [];
|
|
@@ -140,7 +143,7 @@ let DaikinTable = class extends LitElement {
|
|
|
140
143
|
</td>`
|
|
141
144
|
);
|
|
142
145
|
return html`<div class="flex flex-col gap-6 w-full font-daikinSerif">
|
|
143
|
-
<table class="w-full
|
|
146
|
+
<table class="w-full">
|
|
144
147
|
<thead>
|
|
145
148
|
<tr class="border-b border-b-ddt-color-divider">
|
|
146
149
|
${this.selectable ? html`<td class="w-12 p-0">
|
|
@@ -242,7 +245,7 @@ __decorateClass([
|
|
|
242
245
|
state()
|
|
243
246
|
], DaikinTable.prototype, "_currentView", 2);
|
|
244
247
|
DaikinTable = __decorateClass([
|
|
245
|
-
|
|
248
|
+
ddsElement("daikin-table")
|
|
246
249
|
], DaikinTable);
|
|
247
250
|
export {
|
|
248
251
|
DaikinTable
|