@daikin-oss/design-system-web-components 0.6.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +167 -12
- package/README.md +40 -23
- package/dist/cjs/base/dds-element.cjs +8 -0
- package/dist/cjs/base/dds-element.d.cts +4 -0
- package/dist/cjs/base/decorators.cjs +13 -0
- package/dist/cjs/base/decorators.d.cts +2 -0
- package/dist/cjs/base/define.cjs +18 -0
- package/dist/cjs/base/define.d.cts +1 -0
- package/dist/cjs/base/index.cjs +8 -0
- package/dist/cjs/base/index.d.cts +3 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +45 -85
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs/components/button/daikin-button.cjs +36 -23
- package/dist/cjs/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs/components/card/daikin-card.cjs +67 -0
- package/dist/cjs/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs/components/card/index.cjs +7 -0
- package/dist/cjs/components/card/index.d.cts +1 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs/components/card-footer/index.cjs +7 -0
- package/dist/cjs/components/card-footer/index.d.cts +1 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs/components/card-header/index.cjs +7 -0
- package/dist/cjs/components/card-header/index.d.cts +1 -0
- package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs/components/carousel/index.cjs +7 -0
- package/dist/cjs/components/carousel/index.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs/components/carousel-item/index.cjs +7 -0
- package/dist/cjs/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +63 -45
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs/components/icon/daikin-icon.d.cts +5 -5
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +29 -25
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +56 -5
- package/dist/cjs/components/index.d.cts +11 -1
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs/components/inline-notification/index.cjs +7 -0
- package/dist/cjs/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +71 -52
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs/components/link/daikin-link.cjs +40 -55
- package/dist/cjs/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs/components/list/daikin-list.cjs +9 -9
- package/dist/cjs/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +16 -13
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +33 -18
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +17 -26
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +28 -29
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +57 -33
- package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs/components/select/daikin-select.cjs +25 -16
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +38 -23
- package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs/components/table/daikin-table.cjs +15 -12
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +10 -7
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +12 -10
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +31 -20
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +29 -19
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs/components/toast-notification/index.cjs +7 -0
- package/dist/cjs/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +18 -15
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/common.cjs +90 -0
- package/dist/cjs/components/tree/common.d.cts +32 -0
- package/dist/cjs/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs/components/tree/index.cjs +7 -0
- package/dist/cjs/components/tree/index.d.cts +1 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs/components/tree-item/index.cjs +8 -0
- package/dist/cjs/components/tree-item/index.d.cts +1 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs/components/tree-section/index.cjs +7 -0
- package/dist/cjs/components/tree-section/index.d.cts +1 -0
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +56 -7
- package/dist/cjs/index.d.cts +0 -1
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/is-simple-key.cjs +6 -0
- package/dist/cjs/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +45 -85
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs-dev/components/button/daikin-button.cjs +36 -23
- package/dist/cjs-dev/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs-dev/components/card/daikin-card.cjs +67 -0
- package/dist/cjs-dev/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs-dev/components/card/index.cjs +7 -0
- package/dist/cjs-dev/components/card/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs-dev/components/card-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/card-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs-dev/components/card-header/index.cjs +7 -0
- package/dist/cjs-dev/components/card-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs-dev/components/carousel/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +63 -45
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +5 -5
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +29 -25
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +56 -5
- package/dist/cjs-dev/components/index.d.cts +11 -1
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +71 -52
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs-dev/components/link/daikin-link.cjs +40 -55
- package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
- package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +16 -13
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +33 -18
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +17 -36
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +28 -29
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +57 -33
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs-dev/components/select/daikin-select.cjs +25 -16
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +38 -23
- package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +15 -12
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +10 -7
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +12 -10
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +31 -20
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +29 -19
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +18 -15
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/common.cjs +90 -0
- package/dist/cjs-dev/components/tree/common.d.cts +32 -0
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs-dev/components/tree/index.cjs +7 -0
- package/dist/cjs-dev/components/tree/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs-dev/components/tree-item/index.cjs +8 -0
- package/dist/cjs-dev/components/tree-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs-dev/components/tree-section/index.cjs +7 -0
- package/dist/cjs-dev/components/tree-section/index.d.cts +1 -0
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +56 -7
- package/dist/cjs-dev/index.d.cts +0 -1
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/is-simple-key.cjs +6 -0
- package/dist/cjs-dev/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es/components/button/daikin-button.d.ts +8 -5
- package/dist/es/components/button/daikin-button.js +35 -22
- package/dist/es/components/card/daikin-card.d.ts +48 -0
- package/dist/es/components/card/daikin-card.js +68 -0
- package/dist/es/components/card/index.d.ts +1 -0
- package/dist/es/components/card/index.js +4 -0
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es/components/card-footer/index.d.ts +1 -0
- package/dist/es/components/card-footer/index.js +4 -0
- package/dist/es/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es/components/card-header/daikin-card-header.js +60 -0
- package/dist/es/components/card-header/index.d.ts +1 -0
- package/dist/es/components/card-header/index.js +4 -0
- package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es/components/carousel/daikin-carousel.js +218 -0
- package/dist/es/components/carousel/index.d.ts +1 -0
- package/dist/es/components/carousel/index.js +4 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es/components/carousel-item/index.d.ts +1 -0
- package/dist/es/components/carousel-item/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +62 -44
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +29 -18
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +20 -13
- package/dist/es/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es/components/icon/daikin-icon.js +15 -12
- package/dist/es/components/icon/icons.json.d.ts +0 -8
- package/dist/es/components/icon/icons.json.js +1 -70
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +28 -24
- package/dist/es/components/index.d.ts +11 -1
- package/dist/es/components/index.js +23 -2
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es/components/inline-notification/index.d.ts +1 -0
- package/dist/es/components/inline-notification/index.js +4 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +25 -8
- package/dist/es/components/input-group/daikin-input-group.js +70 -51
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +39 -54
- package/dist/es/components/list/daikin-list.d.ts +7 -2
- package/dist/es/components/list/daikin-list.js +7 -7
- package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es/components/list-item/daikin-list-item.js +15 -12
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +39 -32
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +32 -17
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +16 -25
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +27 -28
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +56 -32
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es/components/select/daikin-select.d.ts +11 -2
- package/dist/es/components/select/daikin-select.js +24 -15
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +37 -22
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es/components/table/daikin-table.d.ts +9 -2
- package/dist/es/components/table/daikin-table.js +14 -11
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +9 -6
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +11 -9
- package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es/components/tabs/daikin-tabs.js +24 -9
- package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es/components/text-area/daikin-text-area.js +30 -19
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +28 -18
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es/components/toast-notification/index.d.ts +1 -0
- package/dist/es/components/toast-notification/index.js +4 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es/components/toast-notification-manager/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es/components/toggle/daikin-toggle.js +17 -14
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es/components/tree/common.d.ts +32 -0
- package/dist/es/components/tree/common.js +90 -0
- package/dist/es/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es/components/tree/daikin-tree.js +109 -0
- package/dist/es/components/tree/index.d.ts +1 -0
- package/dist/es/components/tree/index.js +4 -0
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es/components/tree-item/index.d.ts +1 -0
- package/dist/es/components/tree-item/index.js +5 -0
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es/components/tree-section/index.d.ts +1 -0
- package/dist/es/components/tree-section/index.js +4 -0
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.d.ts +0 -1
- package/dist/es/index.js +23 -4
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/is-simple-key.d.ts +7 -0
- package/dist/es/utils/is-simple-key.js +6 -0
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es-dev/components/button/daikin-button.d.ts +8 -5
- package/dist/es-dev/components/button/daikin-button.js +35 -22
- package/dist/es-dev/components/card/daikin-card.d.ts +48 -0
- package/dist/es-dev/components/card/daikin-card.js +68 -0
- package/dist/es-dev/components/card/index.d.ts +1 -0
- package/dist/es-dev/components/card/index.js +4 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es-dev/components/card-footer/index.d.ts +1 -0
- package/dist/es-dev/components/card-footer/index.js +4 -0
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +60 -0
- package/dist/es-dev/components/card-header/index.d.ts +1 -0
- package/dist/es-dev/components/card-header/index.js +4 -0
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
- package/dist/es-dev/components/carousel/index.d.ts +1 -0
- package/dist/es-dev/components/carousel/index.js +4 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +62 -44
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +29 -18
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +20 -13
- package/dist/es-dev/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es-dev/components/icon/daikin-icon.js +15 -12
- package/dist/es-dev/components/icon/icons.json.d.ts +0 -8
- package/dist/es-dev/components/icon/icons.json.js +1 -70
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +28 -24
- package/dist/es-dev/components/index.d.ts +11 -1
- package/dist/es-dev/components/index.js +23 -2
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
- package/dist/es-dev/components/inline-notification/index.js +4 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +25 -8
- package/dist/es-dev/components/input-group/daikin-input-group.js +70 -51
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +39 -54
- package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
- package/dist/es-dev/components/list/daikin-list.js +7 -7
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.js +15 -12
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +39 -32
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +32 -17
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +16 -35
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +27 -28
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +56 -32
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
- package/dist/es-dev/components/select/daikin-select.js +24 -15
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +37 -22
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
- package/dist/es-dev/components/table/daikin-table.js +14 -11
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +9 -6
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +11 -9
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +30 -19
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +28 -18
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification/index.js +4 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es-dev/components/toggle/daikin-toggle.js +17 -14
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es-dev/components/tree/common.d.ts +32 -0
- package/dist/es-dev/components/tree/common.js +90 -0
- package/dist/es-dev/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es-dev/components/tree/daikin-tree.js +109 -0
- package/dist/es-dev/components/tree/index.d.ts +1 -0
- package/dist/es-dev/components/tree/index.js +4 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es-dev/components/tree-item/index.d.ts +1 -0
- package/dist/es-dev/components/tree-item/index.js +5 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es-dev/components/tree-section/index.d.ts +1 -0
- package/dist/es-dev/components/tree-section/index.js +4 -0
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.d.ts +0 -1
- package/dist/es-dev/index.js +23 -4
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/is-simple-key.d.ts +7 -0
- package/dist/es-dev/utils/is-simple-key.js +6 -0
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/sort.svg +1 -1
- package/icons/status-error.svg +1 -1
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +58 -49
- package/dist/cjs/colors.cjs +0 -80
- package/dist/cjs/colors.d.cts +0 -69
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -197
- package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs/components/notification/index.cjs +0 -7
- package/dist/cjs/components/notification/index.d.cts +0 -1
- package/dist/cjs/constants/events.cjs +0 -4
- package/dist/cjs-dev/colors.cjs +0 -80
- package/dist/cjs-dev/colors.d.cts +0 -69
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -197
- package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs-dev/components/notification/index.cjs +0 -7
- package/dist/cjs-dev/components/notification/index.d.cts +0 -1
- package/dist/cjs-dev/constants/events.cjs +0 -4
- package/dist/es/colors.d.ts +0 -69
- package/dist/es/colors.js +0 -80
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -198
- package/dist/es/components/notification/index.d.ts +0 -1
- package/dist/es/components/notification/index.js +0 -4
- package/dist/es/constants/events.js +0 -4
- package/dist/es-dev/colors.d.ts +0 -69
- package/dist/es-dev/colors.js +0 -80
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -198
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -1,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;
|
|
@@ -50,32 +53,34 @@ const cvaSelect = classVarianceAuthority.cva(
|
|
|
50
53
|
"slotted-[select:focus-visible]:!outline-2",
|
|
51
54
|
"slotted-[select:focus-visible]:!outline-[--color-focus]",
|
|
52
55
|
"slotted-[select:enabled]:!cursor-pointer",
|
|
53
|
-
"slotted-[select:enabled]:!text-
|
|
54
|
-
"slotted-[select:enabled:hover]:!bg-
|
|
55
|
-
"slotted-[select:enabled:active]:!bg-
|
|
56
|
-
"slotted-[select:disabled]:!text-
|
|
57
|
-
"slotted-[select:disabled]:!border-
|
|
56
|
+
"slotted-[select:enabled]:!text-ddt-color-common-text-primary",
|
|
57
|
+
"slotted-[select:enabled:hover]:!bg-ddt-color-common-surface-hover",
|
|
58
|
+
"slotted-[select:enabled:active]:!bg-ddt-color-common-surface-press",
|
|
59
|
+
"slotted-[select:disabled]:!text-ddt-color-common-disabled",
|
|
60
|
+
"slotted-[select:disabled]:!border-ddt-color-common-disabled"
|
|
58
61
|
],
|
|
59
62
|
{
|
|
60
63
|
variants: {
|
|
61
64
|
disabled: {
|
|
62
|
-
false: ["after:text-
|
|
63
|
-
true: ["after:text-
|
|
65
|
+
false: ["after:text-ddt-color-common-text-primary"],
|
|
66
|
+
true: ["after:text-ddt-color-common-disabled"]
|
|
64
67
|
},
|
|
65
68
|
error: {
|
|
66
69
|
false: [
|
|
67
|
-
"var-color-
|
|
68
|
-
"var-color-
|
|
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",
|
|
73
|
+
"var-color-ddt-color-common-border-focus/color-focus"
|
|
69
74
|
],
|
|
70
75
|
true: [
|
|
71
|
-
"var-color-
|
|
72
|
-
"var-color-
|
|
76
|
+
"var-color-ddt-color-common-danger-default/color-base",
|
|
77
|
+
"var-color-ddt-color-common-danger-default/color-focus"
|
|
73
78
|
]
|
|
74
79
|
}
|
|
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,27 +20,25 @@ 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",
|
|
39
|
-
"focus-visible:before:border-
|
|
40
|
-
"disabled:text-
|
|
40
|
+
"focus-visible:before:border-ddt-color-common-border-focus",
|
|
41
|
+
"disabled:text-ddt-color-common-disabled",
|
|
41
42
|
"after:absolute",
|
|
42
43
|
"after:inset-0",
|
|
43
44
|
"after:top-auto"
|
|
@@ -46,32 +47,33 @@ const cvaTab = classVarianceAuthority.cva(
|
|
|
46
47
|
variants: {
|
|
47
48
|
active: {
|
|
48
49
|
false: [
|
|
49
|
-
"enabled:text-
|
|
50
|
-
"enabled:hover:text-
|
|
51
|
-
"enabled:hover:bg-
|
|
52
|
-
"enabled:active:text-
|
|
53
|
-
"enabled:active:bg-
|
|
50
|
+
"enabled:text-ddt-color-common-neutral-default",
|
|
51
|
+
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
52
|
+
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
53
|
+
"enabled:active:text-ddt-color-common-neutral-press",
|
|
54
|
+
"enabled:active:bg-ddt-color-common-surface-press",
|
|
54
55
|
"after:h-[1px]",
|
|
55
|
-
"after:bg-
|
|
56
|
+
"after:bg-ddt-color-divider"
|
|
56
57
|
],
|
|
57
58
|
true: [
|
|
58
59
|
"font-bold",
|
|
59
|
-
"enabled:text-
|
|
60
|
-
"enabled:hover:bg-
|
|
61
|
-
"enabled:active:bg-
|
|
60
|
+
"enabled:text-ddt-color-common-brand-default",
|
|
61
|
+
"enabled:hover:bg-ddt-color-common-surface-brand-hover",
|
|
62
|
+
"enabled:active:bg-ddt-color-common-surface-brand-press",
|
|
62
63
|
"after:h-1",
|
|
63
|
-
"enabled:after:bg-
|
|
64
|
-
"disabled:after:bg-
|
|
64
|
+
"enabled:after:bg-ddt-color-common-brand-default",
|
|
65
|
+
"disabled:after:bg-ddt-color-common-disabled"
|
|
65
66
|
]
|
|
66
67
|
}
|
|
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 = "";
|
|
@@ -33,8 +36,7 @@ exports.DaikinTabPanels = class DaikinTabPanels extends lit.LitElement {
|
|
|
33
36
|
this.panels,
|
|
34
37
|
(value) => lit.html`<div
|
|
35
38
|
class=${this.value === value ? "contents" : "hidden"}
|
|
36
|
-
role=${
|
|
37
|
-
this.panelRole ?? lit.nothing}
|
|
39
|
+
role=${this.panelRole ?? lit.nothing}
|
|
38
40
|
?hidden=${this.value !== value}
|
|
39
41
|
>
|
|
40
42
|
<slot name=${`panel:${value}`}></slot>
|
|
@@ -58,5 +60,5 @@ __decorateClass([
|
|
|
58
60
|
decorators_js.property({ type: String, reflect: true, attribute: "panel-role" })
|
|
59
61
|
], exports.DaikinTabPanels.prototype, "panelRole", 2);
|
|
60
62
|
exports.DaikinTabPanels = __decorateClass([
|
|
61
|
-
|
|
63
|
+
decorators.ddsElement("daikin-tab-panels")
|
|
62
64
|
], 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;
|
|
@@ -23,25 +26,25 @@ const defaultSort = (a, b, key) => String(a[key]).localeCompare(String(b[key]));
|
|
|
23
26
|
const cvaRow = classVarianceAuthority.cva(
|
|
24
27
|
[
|
|
25
28
|
"border-b",
|
|
26
|
-
"border-b-
|
|
29
|
+
"border-b-ddt-color-divider",
|
|
27
30
|
"focus-visible:outline",
|
|
28
31
|
"focus-visible:outline-2",
|
|
29
32
|
"focus-visible:-outline-offset-2",
|
|
30
|
-
"focus-visible:outline-
|
|
33
|
+
"focus-visible:outline-ddt-color-common-border-focus"
|
|
31
34
|
],
|
|
32
35
|
{
|
|
33
36
|
variants: {
|
|
34
37
|
selected: {
|
|
35
|
-
false: ["hover:bg-
|
|
38
|
+
false: ["hover:bg-ddt-color-common-surface-hover"],
|
|
36
39
|
true: [
|
|
37
|
-
"bg-
|
|
38
|
-
"hover:bg-
|
|
40
|
+
"bg-ddt-color-common-surface-selected-default",
|
|
41
|
+
"hover:bg-ddt-color-common-surface-selected-hover"
|
|
39
42
|
]
|
|
40
43
|
}
|
|
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,9 +145,9 @@ 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
|
-
<tr class="border-b border-b-
|
|
150
|
+
<tr class="border-b border-b-ddt-color-divider">
|
|
148
151
|
${this.selectable ? lit.html`<td class="w-12 p-0">
|
|
149
152
|
<span
|
|
150
153
|
class="flex items-center justify-center size-full min-h-12"
|
|
@@ -256,5 +259,5 @@ __decorateClass([
|
|
|
256
259
|
decorators_js.state()
|
|
257
260
|
], exports.DaikinTable.prototype, "_currentView", 2);
|
|
258
261
|
exports.DaikinTable = __decorateClass([
|
|
259
|
-
|
|
262
|
+
decorators.ddsElement("daikin-table")
|
|
260
263
|
], 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;
|
|
@@ -24,7 +27,7 @@ const cvaCell = classVarianceAuthority.cva(
|
|
|
24
27
|
"min-h-12",
|
|
25
28
|
"px-4",
|
|
26
29
|
"py-3",
|
|
27
|
-
"text-
|
|
30
|
+
"text-ddt-color-common-text-primary"
|
|
28
31
|
],
|
|
29
32
|
{
|
|
30
33
|
variants: {
|
|
@@ -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";
|
|
@@ -46,7 +49,7 @@ exports.DaikinTableCell = class DaikinTableCell extends lit.LitElement {
|
|
|
46
49
|
<slot></slot>
|
|
47
50
|
<slot
|
|
48
51
|
name="subtitle"
|
|
49
|
-
class="text-
|
|
52
|
+
class="text-ddt-color-common-text-secondary text-xs"
|
|
50
53
|
></slot>
|
|
51
54
|
</span>`;
|
|
52
55
|
}
|
|
@@ -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.
|