@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,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
4
|
declare const cvaBar: (props?: ({
|
|
4
5
|
variant?: "error" | "indeterminate" | "inprogress" | "completed" | null | undefined;
|
|
@@ -33,7 +34,7 @@ type ProgressBarVariantProps = MergeVariantProps<typeof cvaBar | typeof cvaHelpe
|
|
|
33
34
|
* </daikin-progress-bar>
|
|
34
35
|
* ```
|
|
35
36
|
*/
|
|
36
|
-
export declare class DaikinProgressBar extends
|
|
37
|
+
export declare class DaikinProgressBar extends DDSElement {
|
|
37
38
|
static readonly styles: import('lit').CSSResult;
|
|
38
39
|
/**
|
|
39
40
|
* Variant of the progress bar.
|
|
@@ -2,47 +2,33 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const lit = require("lit");
|
|
4
4
|
const decorators_js = require("lit/decorators.js");
|
|
5
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
6
|
+
const decorators = require("../../base/decorators.cjs");
|
|
7
|
+
require("../../base/define.cjs");
|
|
5
8
|
const tailwind = require("../../tailwind.css.cjs");
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __decorateClass = (
|
|
11
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
9
12
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
-
for (var i =
|
|
11
|
-
if (decorator =
|
|
13
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
14
|
+
if (decorator = decorators2[i])
|
|
12
15
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
16
|
if (kind && result) __defProp(target, key, result);
|
|
14
17
|
return result;
|
|
15
18
|
};
|
|
16
|
-
exports.DaikinProgressIndicator = class DaikinProgressIndicator extends
|
|
19
|
+
exports.DaikinProgressIndicator = class DaikinProgressIndicator extends ddsElement.DDSElement {
|
|
17
20
|
constructor() {
|
|
18
21
|
super(...arguments);
|
|
19
|
-
this.currentItem =
|
|
22
|
+
this.currentItem = 0;
|
|
20
23
|
}
|
|
21
|
-
|
|
24
|
+
_updateSteps() {
|
|
22
25
|
const items = this._items;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
if (items.length - 1 < this.currentItem) {
|
|
27
|
-
{
|
|
28
|
-
console.warn(
|
|
29
|
-
`Invalid 'current-item' property: ${this.currentItem}. The number of actual 'daikin-progress-indicator-item's exceeds the number of items.`
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
if (this.currentItem < 0) {
|
|
35
|
-
{
|
|
36
|
-
console.warn(
|
|
37
|
-
`Invalid 'current-item' property: ${this.currentItem}. Negative values cannot be set.`
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
items.forEach((item, i) => item.current = this.currentItem === i);
|
|
26
|
+
items.forEach((item, i) => {
|
|
27
|
+
item.status = i < this.currentItem ? "finished" : i === this.currentItem ? "inprogress" : "unfinished";
|
|
28
|
+
});
|
|
43
29
|
}
|
|
44
30
|
_handleSlotChange() {
|
|
45
|
-
this.
|
|
31
|
+
this._updateSteps();
|
|
46
32
|
}
|
|
47
33
|
render() {
|
|
48
34
|
return lit.html`<div
|
|
@@ -53,11 +39,11 @@ exports.DaikinProgressIndicator = class DaikinProgressIndicator extends lit.LitE
|
|
|
53
39
|
</div>`;
|
|
54
40
|
}
|
|
55
41
|
firstUpdated() {
|
|
56
|
-
this.
|
|
42
|
+
this._updateSteps();
|
|
57
43
|
}
|
|
58
44
|
updated(changedProperties) {
|
|
59
45
|
if (changedProperties.has("currentItem")) {
|
|
60
|
-
this.
|
|
46
|
+
this._updateSteps();
|
|
61
47
|
}
|
|
62
48
|
}
|
|
63
49
|
};
|
|
@@ -76,5 +62,5 @@ __decorateClass([
|
|
|
76
62
|
decorators_js.queryAssignedElements({ selector: "daikin-progress-indicator-item" })
|
|
77
63
|
], exports.DaikinProgressIndicator.prototype, "_items", 2);
|
|
78
64
|
exports.DaikinProgressIndicator = __decorateClass([
|
|
79
|
-
|
|
65
|
+
decorators.ddsElement("daikin-progress-indicator")
|
|
80
66
|
], exports.DaikinProgressIndicator);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
/**
|
|
3
4
|
* The progress indicator is used to let the user know where they are in the task list.
|
|
4
5
|
*
|
|
@@ -9,6 +10,11 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
9
10
|
*
|
|
10
11
|
* @example
|
|
11
12
|
*
|
|
13
|
+
* ```js
|
|
14
|
+
* import "@daikin-oss/design-system-web-components/components/progress-indicator/index.js";
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/progress-indicator-item/index.js";
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
12
18
|
* ```html
|
|
13
19
|
* <daikin-progress-indicator>
|
|
14
20
|
* <daikin-progress-indicator-item state="unfinished">
|
|
@@ -26,14 +32,15 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
26
32
|
* </daikin-progress-indicator>
|
|
27
33
|
* ```
|
|
28
34
|
*/
|
|
29
|
-
export declare class DaikinProgressIndicator extends
|
|
35
|
+
export declare class DaikinProgressIndicator extends DDSElement {
|
|
30
36
|
static readonly styles: import('lit').CSSResult;
|
|
31
37
|
/**
|
|
32
|
-
* Specify the index
|
|
38
|
+
* Specify the index of the step that is currently in progress, starting from 0. This will automatically set the status of each step.
|
|
39
|
+
* To mark all steps as upcoming, specify a number less or equal to -1. To mark all steps as completed, specify a number greater than or equal to the number of steps.
|
|
33
40
|
*/
|
|
34
|
-
currentItem: number
|
|
41
|
+
currentItem: number;
|
|
35
42
|
private readonly _items;
|
|
36
|
-
private
|
|
43
|
+
private _updateSteps;
|
|
37
44
|
private _handleSlotChange;
|
|
38
45
|
render(): import('lit-html').TemplateResult<1>;
|
|
39
46
|
protected firstUpdated(): void;
|
|
@@ -4,14 +4,17 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
7
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
11
|
require("../icon/daikin-icon.cjs");
|
|
9
12
|
var __defProp = Object.defineProperty;
|
|
10
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __decorateClass = (
|
|
14
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
12
15
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i =
|
|
14
|
-
if (decorator =
|
|
16
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators2[i])
|
|
15
18
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
19
|
if (kind && result) __defProp(target, key, result);
|
|
17
20
|
return result;
|
|
@@ -19,48 +22,47 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
19
22
|
const cvaContainer = classVarianceAuthority.cva(
|
|
20
23
|
[
|
|
21
24
|
"flex",
|
|
22
|
-
"
|
|
23
|
-
"gap-1",
|
|
25
|
+
"gap-2",
|
|
24
26
|
"w-full",
|
|
25
27
|
"text-ddt-color-common-text-primary",
|
|
26
28
|
"pt-2",
|
|
27
29
|
"border-t-[0.25rem]",
|
|
28
|
-
"font-daikinSerif"
|
|
29
|
-
"leading-[130%]"
|
|
30
|
+
"font-daikinSerif"
|
|
30
31
|
],
|
|
31
32
|
{
|
|
32
33
|
variants: {
|
|
33
34
|
status: {
|
|
34
|
-
unfinished: ["border-ddt-color-common-
|
|
35
|
+
unfinished: ["border-ddt-color-common-border-empty"],
|
|
35
36
|
inprogress: ["border-ddt-color-common-brand-default"],
|
|
36
37
|
finished: ["border-ddt-color-common-brand-default"]
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
);
|
|
41
|
-
exports.DaikinProgressIndicatorItem = class DaikinProgressIndicatorItem extends
|
|
42
|
+
exports.DaikinProgressIndicatorItem = class DaikinProgressIndicatorItem extends ddsElement.DDSElement {
|
|
42
43
|
constructor() {
|
|
43
44
|
super(...arguments);
|
|
44
45
|
this.status = "unfinished";
|
|
45
|
-
this.current = false;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
return lit.html`<div
|
|
49
49
|
class=${cvaContainer({ status: this.status })}
|
|
50
50
|
role="listitem"
|
|
51
|
-
aria-current=${ifDefined_js.ifDefined(
|
|
51
|
+
aria-current=${ifDefined_js.ifDefined(
|
|
52
|
+
this.status === "inprogress" ? "step" : void 0
|
|
53
|
+
)}
|
|
52
54
|
>
|
|
53
|
-
<div class="flex
|
|
54
|
-
<slot></slot>
|
|
55
|
-
|
|
56
|
-
<span
|
|
57
|
-
role="img"
|
|
58
|
-
class="flex-none size-4 i-daikin-status-positive text-ddt-color-common-brand-default"
|
|
59
|
-
aria-label="Completed"
|
|
60
|
-
></span>
|
|
61
|
-
` : lit.nothing}
|
|
55
|
+
<div class="flex flex-col gap-1 w-full">
|
|
56
|
+
<slot class="font-bold leading-[130%]"></slot>
|
|
57
|
+
<slot name="description" class="text-sm leading-[130%]"></slot>
|
|
62
58
|
</div>
|
|
63
|
-
|
|
59
|
+
${this.status === "finished" ? lit.html`
|
|
60
|
+
<span
|
|
61
|
+
role="img"
|
|
62
|
+
class="flex-none size-4 i-daikin-status-positive text-ddt-color-common-brand-default"
|
|
63
|
+
aria-label="Completed"
|
|
64
|
+
></span>
|
|
65
|
+
` : lit.nothing}
|
|
64
66
|
</div>`;
|
|
65
67
|
}
|
|
66
68
|
};
|
|
@@ -76,9 +78,6 @@ exports.DaikinProgressIndicatorItem.styles = lit.css`
|
|
|
76
78
|
__decorateClass([
|
|
77
79
|
decorators_js.property({ type: String, reflect: true })
|
|
78
80
|
], exports.DaikinProgressIndicatorItem.prototype, "status", 2);
|
|
79
|
-
__decorateClass([
|
|
80
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
81
|
-
], exports.DaikinProgressIndicatorItem.prototype, "current", 2);
|
|
82
81
|
exports.DaikinProgressIndicatorItem = __decorateClass([
|
|
83
|
-
|
|
82
|
+
decorators.ddsElement("daikin-progress-indicator-item")
|
|
84
83
|
], exports.DaikinProgressIndicatorItem);
|
package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts
CHANGED
|
@@ -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 cvaContainer: (props?: ({
|
|
4
4
|
status?: "inprogress" | "unfinished" | "finished" | null | undefined;
|
|
@@ -17,6 +17,10 @@ type ProgressIndicatorItemVariantProps = MergeVariantProps<typeof cvaContainer>;
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
*
|
|
20
|
+
* ```js
|
|
21
|
+
* import "@daikin-oss/design-system-web-components/components/progress-indicator-item/index.js";
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
20
24
|
* ```html
|
|
21
25
|
* <daikin-progress-indicator-item state="unfinished">
|
|
22
26
|
* Progress indicator label
|
|
@@ -24,13 +28,13 @@ type ProgressIndicatorItemVariantProps = MergeVariantProps<typeof cvaContainer>;
|
|
|
24
28
|
* </daikin-progress-indicator-item>
|
|
25
29
|
* ```
|
|
26
30
|
*/
|
|
27
|
-
export declare class DaikinProgressIndicatorItem extends
|
|
31
|
+
export declare class DaikinProgressIndicatorItem extends DDSElement {
|
|
28
32
|
static readonly styles: import('lit').CSSResult;
|
|
29
33
|
/**
|
|
30
|
-
* Status of the progress indicator item
|
|
34
|
+
* Status of the progress indicator item.
|
|
35
|
+
* Controlled by `daikin-progress-indicator`.
|
|
31
36
|
*/
|
|
32
37
|
status: ProgressIndicatorItemVariantProps["status"];
|
|
33
|
-
current: boolean;
|
|
34
38
|
render(): import('lit-html').TemplateResult<1>;
|
|
35
39
|
}
|
|
36
40
|
declare global {
|
|
@@ -4,13 +4,16 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
7
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
11
|
var __defProp = Object.defineProperty;
|
|
9
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
-
var __decorateClass = (
|
|
13
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
11
14
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
-
for (var i =
|
|
13
|
-
if (decorator =
|
|
15
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators2[i])
|
|
14
17
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
18
|
if (kind && result) __defProp(target, key, result);
|
|
16
19
|
return result;
|
|
@@ -39,15 +42,19 @@ const RADIO_CLASS_NAME = classVarianceAuthority.cva([
|
|
|
39
42
|
"enabled:checked:group-active:border-ddt-color-common-brand-press",
|
|
40
43
|
"disabled:border-ddt-color-common-disabled"
|
|
41
44
|
])();
|
|
42
|
-
const cvaLabel = classVarianceAuthority.cva([
|
|
45
|
+
const cvaLabel = classVarianceAuthority.cva([], {
|
|
43
46
|
variants: {
|
|
44
47
|
disabled: {
|
|
45
48
|
false: ["text-ddt-color-common-text-primary"],
|
|
46
49
|
true: ["text-ddt-color-common-disabled"]
|
|
50
|
+
},
|
|
51
|
+
hidden: {
|
|
52
|
+
false: ["inline-block"],
|
|
53
|
+
true: ["hidden"]
|
|
47
54
|
}
|
|
48
55
|
}
|
|
49
56
|
});
|
|
50
|
-
exports.DaikinRadio = class DaikinRadio extends
|
|
57
|
+
exports.DaikinRadio = class DaikinRadio extends ddsElement.DDSElement {
|
|
51
58
|
constructor() {
|
|
52
59
|
super(...arguments);
|
|
53
60
|
this.name = "";
|
|
@@ -56,24 +63,24 @@ exports.DaikinRadio = class DaikinRadio extends lit.LitElement {
|
|
|
56
63
|
this.labelPosition = "right";
|
|
57
64
|
this.checked = false;
|
|
58
65
|
this.disabled = false;
|
|
66
|
+
this.disabledByParent = false;
|
|
59
67
|
this.skipTab = false;
|
|
60
68
|
this._internals = this.attachInternals();
|
|
61
69
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
* @param options focus options
|
|
65
|
-
*/
|
|
66
|
-
focus(options) {
|
|
67
|
-
var _a;
|
|
68
|
-
(_a = this._radio) == null ? void 0 : _a.focus(options);
|
|
70
|
+
get _labelHidden() {
|
|
71
|
+
return this.labelPosition === "hidden";
|
|
69
72
|
}
|
|
70
73
|
_updateFormValue() {
|
|
71
74
|
this._internals.setFormValue(this.checked ? this.value : null);
|
|
72
75
|
}
|
|
73
76
|
_handleClick(event) {
|
|
77
|
+
var _a;
|
|
74
78
|
if (this.disabled) {
|
|
75
79
|
event.preventDefault();
|
|
76
80
|
}
|
|
81
|
+
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT") {
|
|
82
|
+
event.stopPropagation();
|
|
83
|
+
}
|
|
77
84
|
}
|
|
78
85
|
_handleChange(event) {
|
|
79
86
|
this.checked = event.target.checked;
|
|
@@ -86,29 +93,33 @@ exports.DaikinRadio = class DaikinRadio extends lit.LitElement {
|
|
|
86
93
|
);
|
|
87
94
|
}
|
|
88
95
|
render() {
|
|
89
|
-
|
|
96
|
+
const disabled = this.disabled || this.disabledByParent;
|
|
97
|
+
return lit.html`<label
|
|
98
|
+
class="group flex gap-2 items-center size-full font-daikinSerif"
|
|
99
|
+
@click=${this._handleClick}
|
|
100
|
+
>
|
|
90
101
|
<span class="p-2">
|
|
91
102
|
<input
|
|
92
103
|
class=${RADIO_CLASS_NAME}
|
|
93
104
|
type="radio"
|
|
94
105
|
name=${this.name}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
?disabled=${
|
|
106
|
+
aria-label=${this._labelHidden ? this.label : lit.nothing}
|
|
107
|
+
tabindex=${ifDefined_js.ifDefined(this.skipTab ? "-1" : void 0)}
|
|
108
|
+
?disabled=${disabled}
|
|
98
109
|
.checked=${this.checked}
|
|
99
|
-
|
|
110
|
+
.value=${this.value}
|
|
100
111
|
@change=${this._handleChange}
|
|
101
|
-
tabindex=${ifDefined_js.ifDefined(this.skipTab ? "-1" : void 0)}
|
|
102
112
|
/>
|
|
103
113
|
</span>
|
|
104
|
-
<
|
|
114
|
+
<slot
|
|
105
115
|
class=${cvaLabel({
|
|
106
|
-
disabled
|
|
116
|
+
disabled,
|
|
117
|
+
hidden: this._labelHidden
|
|
107
118
|
})}
|
|
108
|
-
?hidden=${this.
|
|
119
|
+
?hidden=${this._labelHidden}
|
|
109
120
|
>
|
|
110
121
|
${this.label}
|
|
111
|
-
</
|
|
122
|
+
</slot>
|
|
112
123
|
</label>`;
|
|
113
124
|
}
|
|
114
125
|
updated(changedProperties) {
|
|
@@ -116,6 +127,14 @@ exports.DaikinRadio = class DaikinRadio extends lit.LitElement {
|
|
|
116
127
|
this._updateFormValue();
|
|
117
128
|
}
|
|
118
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Focuses on the inner radio.
|
|
132
|
+
* @param options focus options
|
|
133
|
+
*/
|
|
134
|
+
focus(options) {
|
|
135
|
+
var _a;
|
|
136
|
+
(_a = this._radio) == null ? void 0 : _a.focus(options);
|
|
137
|
+
}
|
|
119
138
|
};
|
|
120
139
|
exports.DaikinRadio.styles = lit.css`
|
|
121
140
|
${lit.unsafeCSS(tailwind.default)}
|
|
@@ -143,6 +162,9 @@ __decorateClass([
|
|
|
143
162
|
__decorateClass([
|
|
144
163
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
145
164
|
], exports.DaikinRadio.prototype, "disabled", 2);
|
|
165
|
+
__decorateClass([
|
|
166
|
+
decorators_js.property({ type: Boolean, reflect: true, attribute: false })
|
|
167
|
+
], exports.DaikinRadio.prototype, "disabledByParent", 2);
|
|
146
168
|
__decorateClass([
|
|
147
169
|
decorators_js.property({ type: Boolean, attribute: false })
|
|
148
170
|
], exports.DaikinRadio.prototype, "skipTab", 2);
|
|
@@ -150,5 +172,5 @@ __decorateClass([
|
|
|
150
172
|
decorators_js.query("input")
|
|
151
173
|
], exports.DaikinRadio.prototype, "_radio", 2);
|
|
152
174
|
exports.DaikinRadio = __decorateClass([
|
|
153
|
-
|
|
175
|
+
decorators.ddsElement("daikin-radio")
|
|
154
176
|
], exports.DaikinRadio);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
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 {
|
|
@@ -4,38 +4,47 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
7
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
11
|
require("../radio/daikin-radio.cjs");
|
|
9
12
|
var __defProp = Object.defineProperty;
|
|
10
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __decorateClass = (
|
|
14
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
12
15
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
-
for (var i =
|
|
14
|
-
if (decorator =
|
|
16
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
17
|
+
if (decorator = decorators2[i])
|
|
15
18
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
19
|
if (kind && result) __defProp(target, key, result);
|
|
17
20
|
return result;
|
|
18
21
|
};
|
|
19
|
-
const
|
|
22
|
+
const cvaRadioGroup = classVarianceAuthority.cva(["size-full", "flex", "gap-x-3", "gap-y-2"], {
|
|
20
23
|
variants: {
|
|
21
24
|
orientation: {
|
|
22
|
-
horizontal: ["flex-
|
|
23
|
-
vertical: ["flex-
|
|
25
|
+
horizontal: ["flex-row", "flex-wrap"],
|
|
26
|
+
vertical: ["flex-col"]
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
});
|
|
27
|
-
exports.DaikinRadioGroup = class DaikinRadioGroup extends
|
|
30
|
+
exports.DaikinRadioGroup = class DaikinRadioGroup extends ddsElement.DDSElement {
|
|
28
31
|
constructor() {
|
|
29
32
|
super(...arguments);
|
|
30
|
-
this.orientation = "
|
|
33
|
+
this.orientation = "vertical";
|
|
31
34
|
this.name = "";
|
|
32
35
|
this.value = "";
|
|
33
36
|
this.required = false;
|
|
37
|
+
this.disabled = false;
|
|
34
38
|
this._label = null;
|
|
35
39
|
this._handleRadioChange = (event) => {
|
|
36
40
|
this.value = event.target.value;
|
|
37
41
|
};
|
|
38
42
|
}
|
|
43
|
+
_reflectSlotProperties() {
|
|
44
|
+
for (const radio of this._radios) {
|
|
45
|
+
radio.disabledByParent = this.disabled;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
39
48
|
_updateRadios() {
|
|
40
49
|
const radios = this._radios;
|
|
41
50
|
const selectedRadio = radios.find((radio) => radio.value === this.value);
|
|
@@ -50,6 +59,7 @@ exports.DaikinRadioGroup = class DaikinRadioGroup extends lit.LitElement {
|
|
|
50
59
|
}
|
|
51
60
|
}
|
|
52
61
|
_handleSlotChange() {
|
|
62
|
+
this._reflectSlotProperties();
|
|
53
63
|
this._updateRadios();
|
|
54
64
|
}
|
|
55
65
|
/**
|
|
@@ -88,17 +98,18 @@ exports.DaikinRadioGroup = class DaikinRadioGroup extends lit.LitElement {
|
|
|
88
98
|
}
|
|
89
99
|
}
|
|
90
100
|
render() {
|
|
91
|
-
const radioGroupClassName = radioGroupCN({ orientation: this.orientation });
|
|
92
101
|
return lit.html`<fieldset
|
|
102
|
+
class=${cvaRadioGroup({ orientation: this.orientation })}
|
|
93
103
|
role="radiogroup"
|
|
94
104
|
aria-label=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
95
105
|
ifDefined_js.ifDefined(this._label)}
|
|
96
106
|
aria-required=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
97
107
|
ifDefined_js.ifDefined(this.required)}
|
|
108
|
+
aria-disabled=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
109
|
+
ifDefined_js.ifDefined(this.disabled)}
|
|
98
110
|
@keydown=${this._handleKeyDown}
|
|
99
111
|
>
|
|
100
112
|
<slot
|
|
101
|
-
class=${radioGroupClassName}
|
|
102
113
|
@slotchange=${this._handleSlotChange}
|
|
103
114
|
@change=${this._handleRadioChange}
|
|
104
115
|
>
|
|
@@ -106,13 +117,19 @@ exports.DaikinRadioGroup = class DaikinRadioGroup extends lit.LitElement {
|
|
|
106
117
|
</fieldset>`;
|
|
107
118
|
}
|
|
108
119
|
updated(changedProperties) {
|
|
120
|
+
this._reflectSlotProperties();
|
|
109
121
|
if (changedProperties.has("value") || changedProperties.has("name")) {
|
|
110
122
|
this._updateRadios();
|
|
111
123
|
}
|
|
112
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
127
|
+
* @private
|
|
128
|
+
*/
|
|
113
129
|
reflectInputGroup(inputGroup) {
|
|
114
130
|
this._label = inputGroup.label;
|
|
115
131
|
this.required = !!inputGroup.required;
|
|
132
|
+
this.disabled = inputGroup.disabled;
|
|
116
133
|
}
|
|
117
134
|
};
|
|
118
135
|
exports.DaikinRadioGroup.styles = lit.css`
|
|
@@ -137,9 +154,12 @@ __decorateClass([
|
|
|
137
154
|
__decorateClass([
|
|
138
155
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
139
156
|
], exports.DaikinRadioGroup.prototype, "required", 2);
|
|
157
|
+
__decorateClass([
|
|
158
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
159
|
+
], exports.DaikinRadioGroup.prototype, "disabled", 2);
|
|
140
160
|
__decorateClass([
|
|
141
161
|
decorators_js.state()
|
|
142
162
|
], exports.DaikinRadioGroup.prototype, "_label", 2);
|
|
143
163
|
exports.DaikinRadioGroup = __decorateClass([
|
|
144
|
-
|
|
164
|
+
decorators.ddsElement("daikin-radio-group")
|
|
145
165
|
], exports.DaikinRadioGroup);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
4
|
import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
4
|
-
declare const
|
|
5
|
+
declare const cvaRadioGroup: (props?: ({
|
|
5
6
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
type RadioGroupProps = MergeVariantProps<typeof
|
|
8
|
+
type RadioGroupProps = MergeVariantProps<typeof cvaRadioGroup>;
|
|
8
9
|
/**
|
|
9
10
|
* Radio groups are used to group multiple radio buttons so that make sure that only one will be selected in the group
|
|
10
11
|
*
|
|
@@ -18,6 +19,11 @@ type RadioGroupProps = MergeVariantProps<typeof radioGroupCN>;
|
|
|
18
19
|
*
|
|
19
20
|
* @example
|
|
20
21
|
*
|
|
22
|
+
* ```js
|
|
23
|
+
* import "@daikin-oss/design-system-web-components/components/radio/index.js";
|
|
24
|
+
* import "@daikin-oss/design-system-web-components/components/radio-group/index.js";
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
21
27
|
* ```html
|
|
22
28
|
* <daikin-radio-group name="name">
|
|
23
29
|
* <daikin-radio value="value1" label="Option1"></daikin-radio>
|
|
@@ -25,18 +31,8 @@ type RadioGroupProps = MergeVariantProps<typeof radioGroupCN>;
|
|
|
25
31
|
* <daikin-radio value="value3" label="Option3"></daikin-radio>
|
|
26
32
|
* </daikin-radio-group>
|
|
27
33
|
* ```
|
|
28
|
-
*
|
|
29
|
-
* ```html
|
|
30
|
-
* <daikin-input-group label="Label text" helper="Helper text">
|
|
31
|
-
* <daikin-radio-group name="name">
|
|
32
|
-
* <daikin-radio value="value1" label="Option1"></daikin-radio>
|
|
33
|
-
* <daikin-radio value="value2" label="Option2"></daikin-radio>
|
|
34
|
-
* <daikin-radio value="value3" label="Option3"></daikin-radio>
|
|
35
|
-
* </daikin-radio-group>
|
|
36
|
-
* </daikin-input-group>
|
|
37
|
-
* ```
|
|
38
34
|
*/
|
|
39
|
-
export declare class DaikinRadioGroup extends
|
|
35
|
+
export declare class DaikinRadioGroup extends DDSElement {
|
|
40
36
|
static readonly styles: import('lit').CSSResult;
|
|
41
37
|
private readonly _radios;
|
|
42
38
|
/**
|
|
@@ -57,11 +53,17 @@ export declare class DaikinRadioGroup extends LitElement {
|
|
|
57
53
|
* Controlled by `daikin-input-group` when used within `daikin-input-group`.
|
|
58
54
|
*/
|
|
59
55
|
required: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the radio group is disabled.
|
|
58
|
+
* Controlled by `daikin-input-group` when used within `daikin-input-group`.
|
|
59
|
+
*/
|
|
60
|
+
disabled: boolean;
|
|
60
61
|
/**
|
|
61
62
|
* The label text used as the value of aria-label.
|
|
62
63
|
* Set automatically by `reflectInputGroup` method.
|
|
63
64
|
*/
|
|
64
65
|
private _label;
|
|
66
|
+
private _reflectSlotProperties;
|
|
65
67
|
private _updateRadios;
|
|
66
68
|
private readonly _handleRadioChange;
|
|
67
69
|
private _handleSlotChange;
|
|
@@ -72,6 +74,10 @@ export declare class DaikinRadioGroup extends LitElement {
|
|
|
72
74
|
private _handleKeyDown;
|
|
73
75
|
render(): import('lit-html').TemplateResult<1>;
|
|
74
76
|
protected updated(changedProperties: PropertyValues<this>): void;
|
|
77
|
+
/**
|
|
78
|
+
* This method is used by `daikin-input-group` to reflect it's attributes to this component.
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
75
81
|
reflectInputGroup(inputGroup: DaikinInputGroup): void;
|
|
76
82
|
}
|
|
77
83
|
declare global {
|