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