@daikin-oss/design-system-web-components 0.7.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +109 -12
- package/README.md +2 -2
- package/dist/cjs/base/dds-element.cjs +8 -0
- package/dist/cjs/base/dds-element.d.cts +4 -0
- package/dist/cjs/base/decorators.cjs +13 -0
- package/dist/cjs/base/decorators.d.cts +2 -0
- package/dist/cjs/base/define.cjs +18 -0
- package/dist/cjs/base/define.d.cts +1 -0
- package/dist/cjs/base/index.cjs +8 -0
- package/dist/cjs/base/index.d.cts +3 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs/components/button/daikin-button.cjs +20 -8
- package/dist/cjs/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs/components/card/daikin-card.cjs +11 -7
- package/dist/cjs/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs/components/carousel/index.cjs +7 -0
- package/dist/cjs/components/carousel/index.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs/components/carousel-item/index.cjs +7 -0
- package/dist/cjs/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +34 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +16 -5
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +25 -5
- package/dist/cjs/components/index.d.cts +5 -1
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs/components/inline-notification/index.cjs +7 -0
- package/dist/cjs/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs/components/link/daikin-link.cjs +9 -6
- package/dist/cjs/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs/components/list/daikin-list.cjs +9 -9
- package/dist/cjs/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs/components/select/daikin-select.cjs +15 -6
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs/components/table/daikin-table.cjs +9 -6
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs/components/toast-notification/index.cjs +7 -0
- package/dist/cjs/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +25 -5
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
- package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
- package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs-dev/components/carousel/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +34 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +16 -5
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +12 -5
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +25 -5
- package/dist/cjs-dev/components/index.d.cts +5 -1
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
- package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
- package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +16 -30
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs-dev/components/select/daikin-select.cjs +15 -6
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +9 -6
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +25 -5
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es/components/button/daikin-button.d.ts +6 -3
- package/dist/es/components/button/daikin-button.js +19 -7
- package/dist/es/components/card/daikin-card.d.ts +8 -2
- package/dist/es/components/card/daikin-card.js +10 -6
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es/components/card-header/daikin-card-header.js +8 -8
- package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es/components/carousel/daikin-carousel.js +218 -0
- package/dist/es/components/carousel/index.d.ts +1 -0
- package/dist/es/components/carousel/index.js +4 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es/components/carousel-item/index.d.ts +1 -0
- package/dist/es/components/carousel-item/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +33 -15
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +15 -4
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +11 -4
- package/dist/es/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es/components/icon/daikin-icon.js +7 -4
- package/dist/es/components/icon/icons.json.d.ts +0 -8
- package/dist/es/components/icon/icons.json.js +1 -70
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es/components/index.d.ts +5 -1
- package/dist/es/components/index.js +10 -2
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es/components/inline-notification/index.d.ts +1 -0
- package/dist/es/components/inline-notification/index.js +4 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es/components/input-group/daikin-input-group.js +11 -8
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +8 -5
- package/dist/es/components/list/daikin-list.d.ts +7 -2
- package/dist/es/components/list/daikin-list.js +7 -7
- package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es/components/list-item/daikin-list-item.js +7 -4
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +21 -12
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +44 -22
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es/components/select/daikin-select.d.ts +11 -2
- package/dist/es/components/select/daikin-select.js +14 -5
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +24 -9
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es/components/table/daikin-table.d.ts +9 -2
- package/dist/es/components/table/daikin-table.js +8 -5
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es/components/tabs/daikin-tabs.js +24 -9
- package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es/components/text-area/daikin-text-area.js +15 -6
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +15 -6
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es/components/toast-notification/index.d.ts +1 -0
- package/dist/es/components/toast-notification/index.js +4 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es/components/toast-notification-manager/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es/components/toggle/daikin-toggle.js +7 -4
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es/components/tree/daikin-tree.js +35 -36
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.js +10 -2
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
- package/dist/es-dev/components/button/daikin-button.js +19 -7
- package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
- package/dist/es-dev/components/card/daikin-card.js +10 -6
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
- package/dist/es-dev/components/carousel/index.d.ts +1 -0
- package/dist/es-dev/components/carousel/index.js +4 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +33 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +15 -4
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +11 -4
- package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es-dev/components/icon/daikin-icon.js +7 -4
- package/dist/es-dev/components/icon/icons.json.d.ts +0 -8
- package/dist/es-dev/components/icon/icons.json.js +1 -70
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es-dev/components/index.d.ts +5 -1
- package/dist/es-dev/components/index.js +10 -2
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
- package/dist/es-dev/components/inline-notification/index.js +4 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +8 -5
- package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
- package/dist/es-dev/components/list/daikin-list.js +7 -7
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.js +7 -4
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +15 -29
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +44 -22
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
- package/dist/es-dev/components/select/daikin-select.js +14 -5
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +24 -9
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
- package/dist/es-dev/components/table/daikin-table.js +8 -5
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +15 -6
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +15 -6
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification/index.js +4 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es-dev/components/toggle/daikin-toggle.js +7 -4
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es-dev/components/tree/daikin-tree.js +35 -36
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.js +10 -2
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +54 -50
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs/components/notification/index.cjs +0 -7
- package/dist/cjs/components/notification/index.d.cts +0 -1
- package/dist/cjs/constants/events.cjs +0 -4
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs-dev/components/notification/index.cjs +0 -7
- package/dist/cjs-dev/components/notification/index.d.cts +0 -1
- package/dist/cjs-dev/constants/events.cjs +0 -4
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -197
- package/dist/es/components/notification/index.d.ts +0 -1
- package/dist/es/components/notification/index.js +0 -4
- package/dist/es/constants/events.js +0 -4
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -197
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -4,38 +4,47 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
7
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
11
|
require("../radio/daikin-radio.cjs");
|
|
9
12
|
var __defProp = Object.defineProperty;
|
|
10
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __decorateClass = (
|
|
14
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
12
15
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i =
|
|
14
|
-
if (decorator =
|
|
16
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators2[i])
|
|
15
18
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
19
|
if (kind && result) __defProp(target, key, result);
|
|
17
20
|
return result;
|
|
18
21
|
};
|
|
19
|
-
const
|
|
22
|
+
const cvaRadioGroup = classVarianceAuthority.cva(["size-full", "flex", "gap-x-3", "gap-y-2"], {
|
|
20
23
|
variants: {
|
|
21
24
|
orientation: {
|
|
22
|
-
horizontal: ["flex-
|
|
23
|
-
vertical: ["flex-
|
|
25
|
+
horizontal: ["flex-row", "flex-wrap"],
|
|
26
|
+
vertical: ["flex-col"]
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
});
|
|
27
|
-
exports.DaikinRadioGroup = class DaikinRadioGroup extends
|
|
30
|
+
exports.DaikinRadioGroup = class DaikinRadioGroup extends ddsElement.DDSElement {
|
|
28
31
|
constructor() {
|
|
29
32
|
super(...arguments);
|
|
30
|
-
this.orientation = "
|
|
33
|
+
this.orientation = "vertical";
|
|
31
34
|
this.name = "";
|
|
32
35
|
this.value = "";
|
|
33
36
|
this.required = false;
|
|
37
|
+
this.disabled = false;
|
|
34
38
|
this._label = null;
|
|
35
39
|
this._handleRadioChange = (event) => {
|
|
36
40
|
this.value = event.target.value;
|
|
37
41
|
};
|
|
38
42
|
}
|
|
43
|
+
_reflectSlotProperties() {
|
|
44
|
+
for (const radio of this._radios) {
|
|
45
|
+
radio.disabledByParent = this.disabled;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
39
48
|
_updateRadios() {
|
|
40
49
|
const radios = this._radios;
|
|
41
50
|
const selectedRadio = radios.find((radio) => radio.value === this.value);
|
|
@@ -50,6 +59,7 @@ exports.DaikinRadioGroup = class DaikinRadioGroup extends lit.LitElement {
|
|
|
50
59
|
}
|
|
51
60
|
}
|
|
52
61
|
_handleSlotChange() {
|
|
62
|
+
this._reflectSlotProperties();
|
|
53
63
|
this._updateRadios();
|
|
54
64
|
}
|
|
55
65
|
/**
|
|
@@ -88,17 +98,18 @@ exports.DaikinRadioGroup = class DaikinRadioGroup extends lit.LitElement {
|
|
|
88
98
|
}
|
|
89
99
|
}
|
|
90
100
|
render() {
|
|
91
|
-
const radioGroupClassName = radioGroupCN({ orientation: this.orientation });
|
|
92
101
|
return lit.html`<fieldset
|
|
102
|
+
class=${cvaRadioGroup({ orientation: this.orientation })}
|
|
93
103
|
role="radiogroup"
|
|
94
104
|
aria-label=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
95
105
|
ifDefined_js.ifDefined(this._label)}
|
|
96
106
|
aria-required=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
97
107
|
ifDefined_js.ifDefined(this.required)}
|
|
108
|
+
aria-disabled=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
109
|
+
ifDefined_js.ifDefined(this.disabled)}
|
|
98
110
|
@keydown=${this._handleKeyDown}
|
|
99
111
|
>
|
|
100
112
|
<slot
|
|
101
|
-
class=${radioGroupClassName}
|
|
102
113
|
@slotchange=${this._handleSlotChange}
|
|
103
114
|
@change=${this._handleRadioChange}
|
|
104
115
|
>
|
|
@@ -106,13 +117,19 @@ exports.DaikinRadioGroup = class DaikinRadioGroup extends lit.LitElement {
|
|
|
106
117
|
</fieldset>`;
|
|
107
118
|
}
|
|
108
119
|
updated(changedProperties) {
|
|
120
|
+
this._reflectSlotProperties();
|
|
109
121
|
if (changedProperties.has("value") || changedProperties.has("name")) {
|
|
110
122
|
this._updateRadios();
|
|
111
123
|
}
|
|
112
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
127
|
+
* @private
|
|
128
|
+
*/
|
|
113
129
|
reflectInputGroup(inputGroup) {
|
|
114
130
|
this._label = inputGroup.label;
|
|
115
131
|
this.required = !!inputGroup.required;
|
|
132
|
+
this.disabled = inputGroup.disabled;
|
|
116
133
|
}
|
|
117
134
|
};
|
|
118
135
|
exports.DaikinRadioGroup.styles = lit.css`
|
|
@@ -137,9 +154,12 @@ __decorateClass([
|
|
|
137
154
|
__decorateClass([
|
|
138
155
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
139
156
|
], exports.DaikinRadioGroup.prototype, "required", 2);
|
|
157
|
+
__decorateClass([
|
|
158
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
159
|
+
], exports.DaikinRadioGroup.prototype, "disabled", 2);
|
|
140
160
|
__decorateClass([
|
|
141
161
|
decorators_js.state()
|
|
142
162
|
], exports.DaikinRadioGroup.prototype, "_label", 2);
|
|
143
163
|
exports.DaikinRadioGroup = __decorateClass([
|
|
144
|
-
|
|
164
|
+
decorators.ddsElement("daikin-radio-group")
|
|
145
165
|
], exports.DaikinRadioGroup);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
4
|
import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
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 {
|
|
@@ -3,13 +3,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
const decorators = require("../../base/decorators.cjs");
|
|
8
|
+
require("../../base/define.cjs");
|
|
6
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
8
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __decorateClass = (
|
|
12
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
10
13
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
-
for (var i =
|
|
12
|
-
if (decorator =
|
|
14
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators2[i])
|
|
13
16
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
17
|
if (kind && result) __defProp(target, key, result);
|
|
15
18
|
return result;
|
|
@@ -64,7 +67,9 @@ const cvaSelect = classVarianceAuthority.cva(
|
|
|
64
67
|
},
|
|
65
68
|
error: {
|
|
66
69
|
false: [
|
|
67
|
-
"var-color-ddt-color-common-neutral-default/color-base",
|
|
70
|
+
"slotted-[select:enabled]:var-color-ddt-color-common-neutral-default/color-base",
|
|
71
|
+
"slotted-[select:enabled:hover]:var-color-ddt-color-common-neutral-hover/color-base",
|
|
72
|
+
"slotted-[select:enabled:active]:var-color-ddt-color-common-neutral-press/color-base",
|
|
68
73
|
"var-color-ddt-color-common-border-focus/color-focus"
|
|
69
74
|
],
|
|
70
75
|
true: [
|
|
@@ -75,7 +80,7 @@ const cvaSelect = classVarianceAuthority.cva(
|
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
82
|
);
|
|
78
|
-
exports.DaikinSelect = class DaikinSelect extends
|
|
83
|
+
exports.DaikinSelect = class DaikinSelect extends ddsElement.DDSElement {
|
|
79
84
|
constructor() {
|
|
80
85
|
super(...arguments);
|
|
81
86
|
this.error = false;
|
|
@@ -109,6 +114,10 @@ exports.DaikinSelect = class DaikinSelect extends lit.LitElement {
|
|
|
109
114
|
this._updateSelect();
|
|
110
115
|
}
|
|
111
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
119
|
+
* @private
|
|
120
|
+
*/
|
|
112
121
|
reflectInputGroup(inputGroup) {
|
|
113
122
|
const isError = !inputGroup.disabled && !!inputGroup.error;
|
|
114
123
|
this.disabled = !!inputGroup.disabled;
|
|
@@ -164,5 +173,5 @@ __decorateClass([
|
|
|
164
173
|
decorators_js.state()
|
|
165
174
|
], exports.DaikinSelect.prototype, "_label", 2);
|
|
166
175
|
exports.DaikinSelect = __decorateClass([
|
|
167
|
-
|
|
176
|
+
decorators.ddsElement("daikin-select")
|
|
168
177
|
], exports.DaikinSelect);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
3
4
|
/**
|
|
4
5
|
* A select component.
|
|
@@ -12,6 +13,10 @@ import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
|
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.cjs";
|
|
|
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.
|
|
@@ -3,13 +3,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
const decorators = require("../../base/decorators.cjs");
|
|
8
|
+
require("../../base/define.cjs");
|
|
6
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
8
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __decorateClass = (
|
|
12
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
10
13
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
-
for (var i =
|
|
12
|
-
if (decorator =
|
|
14
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators2[i])
|
|
13
16
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
17
|
if (kind && result) __defProp(target, key, result);
|
|
15
18
|
return result;
|
|
@@ -17,22 +20,20 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
17
20
|
const cvaTab = classVarianceAuthority.cva(
|
|
18
21
|
[
|
|
19
22
|
"flex",
|
|
20
|
-
"
|
|
21
|
-
"min-w-14",
|
|
22
|
-
"h-10",
|
|
23
|
+
"size-full",
|
|
23
24
|
"items-center",
|
|
24
25
|
"justify-center",
|
|
25
26
|
"px-4",
|
|
26
27
|
"pt-2",
|
|
27
28
|
"pb-3",
|
|
29
|
+
"leading-[130%]",
|
|
28
30
|
"text-center",
|
|
29
31
|
"font-daikinSerif",
|
|
30
32
|
"tracking-wide",
|
|
31
|
-
"whitespace-nowrap",
|
|
32
33
|
"relative",
|
|
33
34
|
"focus-visible:outline-none",
|
|
34
35
|
"focus-visible:before:absolute",
|
|
35
|
-
"focus-visible:before:-inset-
|
|
36
|
+
"focus-visible:before:-inset-1",
|
|
36
37
|
"focus-visible:before:z-[1]",
|
|
37
38
|
"focus-visible:before:border",
|
|
38
39
|
"focus-visible:before:border-2",
|
|
@@ -67,11 +68,12 @@ const cvaTab = classVarianceAuthority.cva(
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
);
|
|
70
|
-
exports.DaikinTab = class DaikinTab extends
|
|
71
|
+
exports.DaikinTab = class DaikinTab extends ddsElement.DDSElement {
|
|
71
72
|
constructor() {
|
|
72
73
|
super();
|
|
73
74
|
this.value = "";
|
|
74
75
|
this.disabled = false;
|
|
76
|
+
this.sizing = "stretch";
|
|
75
77
|
this.active = false;
|
|
76
78
|
this.addEventListener("click", (event) => {
|
|
77
79
|
if (this.disabled) {
|
|
@@ -106,8 +108,18 @@ exports.DaikinTab.styles = lit.css`
|
|
|
106
108
|
|
|
107
109
|
:host {
|
|
108
110
|
display: block;
|
|
111
|
+
white-space: nowrap;
|
|
112
|
+
min-width: fit-content;
|
|
113
|
+
height: 2.5rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
:host([sizing="stretch"]) {
|
|
109
117
|
width: 100%;
|
|
110
118
|
}
|
|
119
|
+
|
|
120
|
+
:host([sizing="fit"]) {
|
|
121
|
+
width: fit-content;
|
|
122
|
+
}
|
|
111
123
|
`;
|
|
112
124
|
__decorateClass([
|
|
113
125
|
decorators_js.property({ type: String, reflect: true })
|
|
@@ -115,6 +127,9 @@ __decorateClass([
|
|
|
115
127
|
__decorateClass([
|
|
116
128
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
117
129
|
], exports.DaikinTab.prototype, "disabled", 2);
|
|
130
|
+
__decorateClass([
|
|
131
|
+
decorators_js.property({ type: String, reflect: true })
|
|
132
|
+
], exports.DaikinTab.prototype, "sizing", 2);
|
|
118
133
|
__decorateClass([
|
|
119
134
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
120
135
|
], exports.DaikinTab.prototype, "active", 2);
|
|
@@ -122,5 +137,5 @@ __decorateClass([
|
|
|
122
137
|
decorators_js.query("button")
|
|
123
138
|
], exports.DaikinTab.prototype, "_button", 2);
|
|
124
139
|
exports.DaikinTab = __decorateClass([
|
|
125
|
-
|
|
140
|
+
decorators.ddsElement("daikin-tab")
|
|
126
141
|
], exports.DaikinTab);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
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`.
|
|
@@ -3,18 +3,21 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const lit = require("lit");
|
|
4
4
|
const decorators_js = require("lit/decorators.js");
|
|
5
5
|
const repeat_js = require("lit/directives/repeat.js");
|
|
6
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
const decorators = require("../../base/decorators.cjs");
|
|
8
|
+
require("../../base/define.cjs");
|
|
6
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
8
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __decorateClass = (
|
|
12
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
10
13
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
-
for (var i =
|
|
12
|
-
if (decorator =
|
|
14
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators2[i])
|
|
13
16
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
17
|
if (kind && result) __defProp(target, key, result);
|
|
15
18
|
return result;
|
|
16
19
|
};
|
|
17
|
-
exports.DaikinTabPanels = class DaikinTabPanels extends
|
|
20
|
+
exports.DaikinTabPanels = class DaikinTabPanels extends ddsElement.DDSElement {
|
|
18
21
|
constructor() {
|
|
19
22
|
super(...arguments);
|
|
20
23
|
this.value = "";
|
|
@@ -26,8 +29,7 @@ exports.DaikinTabPanels = class DaikinTabPanels extends lit.LitElement {
|
|
|
26
29
|
this.panels,
|
|
27
30
|
(value) => lit.html`<div
|
|
28
31
|
class=${this.value === value ? "contents" : "hidden"}
|
|
29
|
-
role=${
|
|
30
|
-
this.panelRole ?? lit.nothing}
|
|
32
|
+
role=${this.panelRole ?? lit.nothing}
|
|
31
33
|
?hidden=${this.value !== value}
|
|
32
34
|
>
|
|
33
35
|
<slot name=${`panel:${value}`}></slot>
|
|
@@ -51,5 +53,5 @@ __decorateClass([
|
|
|
51
53
|
decorators_js.property({ type: String, reflect: true, attribute: "panel-role" })
|
|
52
54
|
], exports.DaikinTabPanels.prototype, "panelRole", 2);
|
|
53
55
|
exports.DaikinTabPanels = __decorateClass([
|
|
54
|
-
|
|
56
|
+
decorators.ddsElement("daikin-tab-panels")
|
|
55
57
|
], exports.DaikinTabPanels);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.cjs";
|
|
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.cjs";
|
|
|
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.
|
|
@@ -5,16 +5,19 @@ const lit = require("lit");
|
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
7
|
const repeat_js = require("lit/directives/repeat.js");
|
|
8
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
9
|
+
const decorators = require("../../base/decorators.cjs");
|
|
10
|
+
require("../../base/define.cjs");
|
|
8
11
|
const tailwind = require("../../tailwind.css.cjs");
|
|
9
12
|
require("../checkbox/daikin-checkbox.cjs");
|
|
10
13
|
require("../table-cell/daikin-table-cell.cjs");
|
|
11
14
|
require("../table-header-cell/daikin-table-header-cell.cjs");
|
|
12
15
|
var __defProp = Object.defineProperty;
|
|
13
16
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
-
var __decorateClass = (
|
|
17
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
15
18
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
16
|
-
for (var i =
|
|
17
|
-
if (decorator =
|
|
19
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
20
|
+
if (decorator = decorators2[i])
|
|
18
21
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
19
22
|
if (kind && result) __defProp(target, key, result);
|
|
20
23
|
return result;
|
|
@@ -41,7 +44,7 @@ const cvaRow = classVarianceAuthority.cva(
|
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
);
|
|
44
|
-
exports.DaikinTable = class DaikinTable extends
|
|
47
|
+
exports.DaikinTable = class DaikinTable extends ddsElement.DDSElement {
|
|
45
48
|
constructor() {
|
|
46
49
|
super(...arguments);
|
|
47
50
|
this.headers = [];
|
|
@@ -142,7 +145,7 @@ exports.DaikinTable = class DaikinTable extends lit.LitElement {
|
|
|
142
145
|
</td>`
|
|
143
146
|
);
|
|
144
147
|
return lit.html`<div class="flex flex-col gap-6 w-full font-daikinSerif">
|
|
145
|
-
<table class="w-full
|
|
148
|
+
<table class="w-full">
|
|
146
149
|
<thead>
|
|
147
150
|
<tr class="border-b border-b-ddt-color-divider">
|
|
148
151
|
${this.selectable ? lit.html`<td class="w-12 p-0">
|
|
@@ -244,5 +247,5 @@ __decorateClass([
|
|
|
244
247
|
decorators_js.state()
|
|
245
248
|
], exports.DaikinTable.prototype, "_currentView", 2);
|
|
246
249
|
exports.DaikinTable = __decorateClass([
|
|
247
|
-
|
|
250
|
+
decorators.ddsElement("daikin-table")
|
|
248
251
|
], exports.DaikinTable);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
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.
|
|
@@ -3,13 +3,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
const decorators = require("../../base/decorators.cjs");
|
|
8
|
+
require("../../base/define.cjs");
|
|
6
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
8
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __decorateClass = (
|
|
12
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
10
13
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
-
for (var i =
|
|
12
|
-
if (decorator =
|
|
14
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators2[i])
|
|
13
16
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
17
|
if (kind && result) __defProp(target, key, result);
|
|
15
18
|
return result;
|
|
@@ -36,7 +39,7 @@ const cvaCell = classVarianceAuthority.cva(
|
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
);
|
|
39
|
-
exports.DaikinTableCell = class DaikinTableCell extends
|
|
42
|
+
exports.DaikinTableCell = class DaikinTableCell extends ddsElement.DDSElement {
|
|
40
43
|
constructor() {
|
|
41
44
|
super(...arguments);
|
|
42
45
|
this.alignment = "left";
|
|
@@ -64,5 +67,5 @@ __decorateClass([
|
|
|
64
67
|
decorators_js.property({ type: String, reflect: true })
|
|
65
68
|
], exports.DaikinTableCell.prototype, "alignment", 2);
|
|
66
69
|
exports.DaikinTableCell = __decorateClass([
|
|
67
|
-
|
|
70
|
+
decorators.ddsElement("daikin-table-cell")
|
|
68
71
|
], exports.DaikinTableCell);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
3
|
declare const cvaCell: (props?: ({
|
|
4
4
|
alignment?: "right" | "left" | "center" | null | undefined;
|
|
@@ -17,6 +17,10 @@ type TableCellVariantProps = MergeVariantProps<typeof cvaCell>;
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
*
|
|
20
|
+
* ```js
|
|
21
|
+
* import "@daikin-oss/design-system-web-components/components/table-cell/index.js";
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
20
24
|
* ```html
|
|
21
25
|
* <daikin-table-cell slot="cell:key:id">
|
|
22
26
|
* Table cell label
|
|
@@ -24,7 +28,7 @@ type TableCellVariantProps = MergeVariantProps<typeof cvaCell>;
|
|
|
24
28
|
* </daikin-table-cell>
|
|
25
29
|
* ```
|
|
26
30
|
*/
|
|
27
|
-
export declare class DaikinTableCell extends
|
|
31
|
+
export declare class DaikinTableCell extends DDSElement {
|
|
28
32
|
static readonly styles: import('lit').CSSResult;
|
|
29
33
|
/**
|
|
30
34
|
* Specify the direction of cell alignment.
|
|
@@ -3,13 +3,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
const decorators = require("../../base/decorators.cjs");
|
|
8
|
+
require("../../base/define.cjs");
|
|
6
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
7
10
|
var __defProp = Object.defineProperty;
|
|
8
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
-
var __decorateClass = (
|
|
12
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
10
13
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
-
for (var i =
|
|
12
|
-
if (decorator =
|
|
14
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators2[i])
|
|
13
16
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
17
|
if (kind && result) __defProp(target, key, result);
|
|
15
18
|
return result;
|
|
@@ -50,7 +53,7 @@ const cvaHeaderCell = classVarianceAuthority.cva(
|
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
);
|
|
53
|
-
exports.DaikinTableHeaderCell = class DaikinTableHeaderCell extends
|
|
56
|
+
exports.DaikinTableHeaderCell = class DaikinTableHeaderCell extends ddsElement.DDSElement {
|
|
54
57
|
constructor() {
|
|
55
58
|
super(...arguments);
|
|
56
59
|
this.alignment = "left";
|
|
@@ -88,5 +91,5 @@ __decorateClass([
|
|
|
88
91
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
89
92
|
], exports.DaikinTableHeaderCell.prototype, "sortable", 2);
|
|
90
93
|
exports.DaikinTableHeaderCell = __decorateClass([
|
|
91
|
-
|
|
94
|
+
decorators.ddsElement("daikin-table-header-cell")
|
|
92
95
|
], exports.DaikinTableHeaderCell);
|