@daikin-oss/design-system-web-components 0.7.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +127 -12
- package/README.md +2 -2
- package/dist/cjs/base/dds-element.cjs +8 -0
- package/dist/cjs/base/dds-element.d.cts +4 -0
- package/dist/cjs/base/decorators.cjs +13 -0
- package/dist/cjs/base/decorators.d.cts +2 -0
- package/dist/cjs/base/define.cjs +18 -0
- package/dist/cjs/base/define.d.cts +1 -0
- package/dist/cjs/base/index.cjs +8 -0
- package/dist/cjs/base/index.d.cts +3 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +64 -0
- package/dist/cjs/components/avatar/index.cjs +7 -0
- package/dist/cjs/components/avatar/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs/components/button/daikin-button.cjs +20 -8
- package/dist/cjs/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs/components/card/daikin-card.cjs +11 -7
- package/dist/cjs/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs/components/carousel/index.cjs +7 -0
- package/dist/cjs/components/carousel/index.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs/components/carousel-item/index.cjs +7 -0
- package/dist/cjs/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +35 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +8 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +161 -74
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +64 -11
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
- package/dist/cjs/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +4 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +33 -3
- package/dist/cjs/components/index.d.cts +7 -1
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs/components/inline-notification/index.cjs +7 -0
- package/dist/cjs/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs/components/link/daikin-link.cjs +9 -6
- package/dist/cjs/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs/components/list/daikin-list.cjs +9 -9
- package/dist/cjs/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs/components/loading/daikin-loading.d.cts +32 -0
- package/dist/cjs/components/loading/index.cjs +7 -0
- package/dist/cjs/components/loading/index.d.cts +1 -0
- package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +16 -20
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs/components/select/daikin-select.cjs +15 -6
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs/components/table/daikin-table.cjs +9 -6
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs/components/toast-notification/index.cjs +7 -0
- package/dist/cjs/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +33 -3
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs/utils/is-similar-to-click.d.cts +1 -0
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +37 -77
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +64 -0
- package/dist/cjs-dev/components/avatar/index.cjs +7 -0
- package/dist/cjs-dev/components/avatar/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +2 -2
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +8 -5
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +2 -2
- package/dist/cjs-dev/components/button/daikin-button.cjs +20 -8
- package/dist/cjs-dev/components/button/daikin-button.d.cts +6 -3
- package/dist/cjs-dev/components/card/daikin-card.cjs +11 -7
- package/dist/cjs-dev/components/card/daikin-card.d.cts +8 -2
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +9 -9
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +6 -2
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +10 -10
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +6 -2
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs-dev/components/carousel/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +35 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +8 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +161 -74
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +64 -11
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +109 -41
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +16 -3
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -5
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +2 -2
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +4 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +8 -5
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +33 -3
- package/dist/cjs-dev/components/index.d.cts +7 -1
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +12 -9
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +15 -7
- package/dist/cjs-dev/components/link/daikin-link.cjs +9 -6
- package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
- package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +8 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +32 -0
- package/dist/cjs-dev/components/loading/index.cjs +7 -0
- package/dist/cjs-dev/components/loading/index.d.cts +1 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -13
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +13 -8
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +16 -30
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +24 -25
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +45 -23
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs-dev/components/select/daikin-select.cjs +15 -6
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +25 -10
- package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +9 -6
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +8 -5
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +16 -7
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +16 -7
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +8 -5
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +42 -30
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +36 -37
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +13 -14
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +22 -18
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +9 -9
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +26 -41
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +10 -20
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +33 -3
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs-dev/utils/is-similar-to-click.d.cts +1 -0
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es/components/avatar/daikin-avatar.d.ts +64 -0
- package/dist/es/components/avatar/daikin-avatar.js +161 -0
- package/dist/es/components/avatar/index.d.ts +1 -0
- package/dist/es/components/avatar/index.js +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es/components/button/daikin-button.d.ts +6 -3
- package/dist/es/components/button/daikin-button.js +19 -7
- package/dist/es/components/card/daikin-card.d.ts +8 -2
- package/dist/es/components/card/daikin-card.js +10 -6
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es/components/card-header/daikin-card-header.js +8 -8
- package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es/components/carousel/daikin-carousel.js +218 -0
- package/dist/es/components/carousel/index.d.ts +1 -0
- package/dist/es/components/carousel/index.js +4 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es/components/carousel-item/index.d.ts +1 -0
- package/dist/es/components/carousel-item/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +8 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +34 -15
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +64 -11
- package/dist/es/components/dropdown/daikin-dropdown.js +160 -73
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +108 -40
- package/dist/es/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es/components/icon/daikin-icon.js +7 -4
- package/dist/es/components/icon/icons.json.d.ts +4 -8
- package/dist/es/components/icon/icons.json.js +1 -70
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es/components/index.d.ts +7 -1
- package/dist/es/components/index.js +14 -2
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es/components/inline-notification/index.d.ts +1 -0
- package/dist/es/components/inline-notification/index.js +4 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es/components/input-group/daikin-input-group.js +11 -8
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +8 -5
- package/dist/es/components/list/daikin-list.d.ts +7 -2
- package/dist/es/components/list/daikin-list.js +7 -7
- package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es/components/list-item/daikin-list-item.js +7 -4
- package/dist/es/components/loading/daikin-loading.d.ts +32 -0
- package/dist/es/components/loading/daikin-loading.js +92 -0
- package/dist/es/components/loading/index.d.ts +1 -0
- package/dist/es/components/loading/index.js +4 -0
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +21 -12
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +15 -19
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +44 -22
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es/components/select/daikin-select.d.ts +11 -2
- package/dist/es/components/select/daikin-select.js +14 -5
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +24 -9
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es/components/table/daikin-table.d.ts +9 -2
- package/dist/es/components/table/daikin-table.js +8 -5
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es/components/tabs/daikin-tabs.js +24 -9
- package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es/components/text-area/daikin-text-area.js +15 -6
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +15 -6
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es/components/toast-notification/index.d.ts +1 -0
- package/dist/es/components/toast-notification/index.js +4 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es/components/toast-notification-manager/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es/components/toggle/daikin-toggle.js +7 -4
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es/components/tree/daikin-tree.js +35 -36
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.js +14 -2
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es/utils/is-similar-to-click.js +4 -0
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +36 -76
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +64 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +161 -0
- package/dist/es-dev/components/avatar/index.d.ts +1 -0
- package/dist/es-dev/components/avatar/index.js +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +7 -4
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +2 -2
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +7 -4
- package/dist/es-dev/components/button/daikin-button.d.ts +6 -3
- package/dist/es-dev/components/button/daikin-button.js +19 -7
- package/dist/es-dev/components/card/daikin-card.d.ts +8 -2
- package/dist/es-dev/components/card/daikin-card.js +10 -6
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +6 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +7 -7
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +6 -2
- package/dist/es-dev/components/card-header/daikin-card-header.js +8 -8
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
- package/dist/es-dev/components/carousel/index.d.ts +1 -0
- package/dist/es-dev/components/carousel/index.js +4 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +8 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +34 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +64 -11
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +160 -73
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +16 -3
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +108 -40
- package/dist/es-dev/components/icon/daikin-icon.d.ts +2 -2
- package/dist/es-dev/components/icon/daikin-icon.js +7 -4
- package/dist/es-dev/components/icon/icons.json.d.ts +4 -8
- package/dist/es-dev/components/icon/icons.json.js +1 -70
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +7 -4
- package/dist/es-dev/components/index.d.ts +7 -1
- package/dist/es-dev/components/index.js +14 -2
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
- package/dist/es-dev/components/inline-notification/index.js +4 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +15 -7
- package/dist/es-dev/components/input-group/daikin-input-group.js +11 -8
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +8 -5
- package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
- package/dist/es-dev/components/list/daikin-list.js +7 -7
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.js +7 -4
- package/dist/es-dev/components/loading/daikin-loading.d.ts +32 -0
- package/dist/es-dev/components/loading/daikin-loading.js +92 -0
- package/dist/es-dev/components/loading/index.d.ts +1 -0
- package/dist/es-dev/components/loading/index.js +4 -0
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +21 -12
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +12 -7
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +15 -29
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +23 -24
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +44 -22
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
- package/dist/es-dev/components/select/daikin-select.js +14 -5
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +24 -9
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
- package/dist/es-dev/components/table/daikin-table.js +8 -5
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +7 -4
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +7 -4
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +15 -6
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +15 -6
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification/index.js +4 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es-dev/components/toggle/daikin-toggle.js +7 -4
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +41 -29
- package/dist/es-dev/components/tree/daikin-tree.d.ts +13 -14
- package/dist/es-dev/components/tree/daikin-tree.js +35 -36
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +9 -9
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +21 -17
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +10 -20
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +25 -40
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.js +14 -2
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es-dev/utils/is-similar-to-click.js +4 -0
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/profile.svg +4 -0
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +54 -50
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs/components/notification/index.cjs +0 -7
- package/dist/cjs/components/notification/index.d.cts +0 -1
- package/dist/cjs/constants/events.cjs +0 -4
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -196
- package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs-dev/components/notification/index.cjs +0 -7
- package/dist/cjs-dev/components/notification/index.d.cts +0 -1
- package/dist/cjs-dev/constants/events.cjs +0 -4
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -197
- package/dist/es/components/notification/index.d.ts +0 -1
- package/dist/es/components/notification/index.js +0 -4
- package/dist/es/constants/events.js +0 -4
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -197
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -2,18 +2,26 @@
|
|
|
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.DaikinAccordion = class DaikinAccordion extends
|
|
19
|
+
exports.DaikinAccordion = class DaikinAccordion extends ddsElement.DDSElement {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.openItems = [];
|
|
23
|
+
this.exclusive = false;
|
|
24
|
+
}
|
|
17
25
|
_handleMoveFocus(event) {
|
|
18
26
|
const moveOffset = event.detail.direction === "up" ? -1 : 1;
|
|
19
27
|
const items = this._items.filter(({ disabled }) => !disabled);
|
|
@@ -25,9 +33,35 @@ exports.DaikinAccordion = class DaikinAccordion extends lit.LitElement {
|
|
|
25
33
|
const nextItem = items[(focusedItemIndex + moveOffset + items.length) % items.length];
|
|
26
34
|
nextItem.focus();
|
|
27
35
|
}
|
|
36
|
+
_handleToggle(event) {
|
|
37
|
+
const targetValue = event.target.name;
|
|
38
|
+
const opened = !event.target.open;
|
|
39
|
+
if (this.exclusive) {
|
|
40
|
+
this.openItems = opened ? [targetValue] : [];
|
|
41
|
+
} else {
|
|
42
|
+
this.openItems = opened ? [...this.openItems, targetValue] : this.openItems.filter((item) => item != targetValue);
|
|
43
|
+
}
|
|
44
|
+
this._reflectItemOpen();
|
|
45
|
+
}
|
|
46
|
+
_reflectItemOpen() {
|
|
47
|
+
{
|
|
48
|
+
if (this.exclusive && this.openItems.length > 1) {
|
|
49
|
+
console.warn(
|
|
50
|
+
`Invalid 'openItems' property: ${JSON.stringify(this.openItems)}. Only one active can be specified when exclusive is set.`
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
for (const item of this._items) {
|
|
55
|
+
item.open = this.openItems.includes(item.name);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
28
58
|
render() {
|
|
29
59
|
return lit.html`<div class="w-full">
|
|
30
|
-
<slot
|
|
60
|
+
<slot
|
|
61
|
+
@accordion-move-focus=${this._handleMoveFocus}
|
|
62
|
+
@toggle=${this._handleToggle}
|
|
63
|
+
@slotchange=${this._reflectItemOpen}
|
|
64
|
+
></slot>
|
|
31
65
|
</div>`;
|
|
32
66
|
}
|
|
33
67
|
};
|
|
@@ -47,9 +81,15 @@ exports.DaikinAccordion.styles = lit.css`
|
|
|
47
81
|
--divider-bottom-display: block;
|
|
48
82
|
}
|
|
49
83
|
`;
|
|
84
|
+
__decorateClass([
|
|
85
|
+
decorators_js.property({ type: Array, attribute: false })
|
|
86
|
+
], exports.DaikinAccordion.prototype, "openItems", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
89
|
+
], exports.DaikinAccordion.prototype, "exclusive", 2);
|
|
50
90
|
__decorateClass([
|
|
51
91
|
decorators_js.queryAssignedElements({ selector: "daikin-accordion-item" })
|
|
52
92
|
], exports.DaikinAccordion.prototype, "_items", 2);
|
|
53
93
|
exports.DaikinAccordion = __decorateClass([
|
|
54
|
-
|
|
94
|
+
decorators.ddsElement("daikin-accordion")
|
|
55
95
|
], exports.DaikinAccordion);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The accordion component serves as the parent element that organizes and manages the overall structure of the accordion.
|
|
4
4
|
* Currently it only provides appropriate styles for individual accordion items.
|
|
@@ -12,6 +12,7 @@ import { LitElement } from 'lit';
|
|
|
12
12
|
*
|
|
13
13
|
* ```js
|
|
14
14
|
* import "@daikin-oss/design-system-web-components/components/accordion/index.js";
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/accordion-item/index.js";
|
|
15
16
|
* ```
|
|
16
17
|
*
|
|
17
18
|
* ```html
|
|
@@ -31,10 +32,22 @@ import { LitElement } from 'lit';
|
|
|
31
32
|
* </daikin-accordion>
|
|
32
33
|
* ```
|
|
33
34
|
*/
|
|
34
|
-
export declare class DaikinAccordion extends
|
|
35
|
+
export declare class DaikinAccordion extends DDSElement {
|
|
35
36
|
static readonly styles: import('lit').CSSResult;
|
|
37
|
+
/**
|
|
38
|
+
* A list of the names of the open items.
|
|
39
|
+
* If `exclusive` is true, the number of elements is 0 or 1.
|
|
40
|
+
*/
|
|
41
|
+
openItems: string[];
|
|
42
|
+
/**
|
|
43
|
+
* Whether or not to make the accordion exclusive.
|
|
44
|
+
* If true, the number of items that can be open at once is limited to one.
|
|
45
|
+
*/
|
|
46
|
+
exclusive: boolean;
|
|
36
47
|
private readonly _items;
|
|
37
48
|
private _handleMoveFocus;
|
|
49
|
+
private _handleToggle;
|
|
50
|
+
private _reflectItemOpen;
|
|
38
51
|
render(): import('lit-html').TemplateResult<1>;
|
|
39
52
|
}
|
|
40
53
|
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 ref_js = require("lit/directives/ref.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;
|
|
@@ -52,51 +55,29 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
);
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
const getContentOpenKeyframe = (content) => ({
|
|
63
|
-
height: `${content.offsetHeight}px`
|
|
58
|
+
const cvaContent = classVarianceAuthority.cva(["grid", "duration-[250ms]", "ease-in-out"], {
|
|
59
|
+
variants: {
|
|
60
|
+
open: {
|
|
61
|
+
false: ["grid-rows-[0fr]"],
|
|
62
|
+
true: ["grid-rows-[1fr]"]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
64
65
|
});
|
|
65
|
-
exports.DaikinAccordionItem = class DaikinAccordionItem extends
|
|
66
|
+
exports.DaikinAccordionItem = class DaikinAccordionItem extends ddsElement.DDSElement {
|
|
66
67
|
constructor() {
|
|
67
68
|
super(...arguments);
|
|
69
|
+
this._summaryRef = ref_js.createRef();
|
|
68
70
|
this._contentRef = ref_js.createRef();
|
|
71
|
+
this.name = "";
|
|
69
72
|
this.open = false;
|
|
70
73
|
this.disabled = false;
|
|
71
|
-
this._detailsOpen = false;
|
|
72
|
-
}
|
|
73
|
-
_contentAnimate() {
|
|
74
|
-
const content = this._contentRef.value;
|
|
75
|
-
if (!content || this.open === this._detailsOpen) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
if (this.open) {
|
|
79
|
-
this._detailsOpen = this.open;
|
|
80
|
-
content.animate(
|
|
81
|
-
[contentCloseKeyframe, getContentOpenKeyframe(content)],
|
|
82
|
-
animationOption
|
|
83
|
-
);
|
|
84
|
-
} else {
|
|
85
|
-
const animation = content.animate(
|
|
86
|
-
[getContentOpenKeyframe(content), contentCloseKeyframe],
|
|
87
|
-
animationOption
|
|
88
|
-
);
|
|
89
|
-
animation.onfinish = () => {
|
|
90
|
-
this._detailsOpen = this.open;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
74
|
}
|
|
94
75
|
_handleSummaryClick(event) {
|
|
95
76
|
event.preventDefault();
|
|
96
77
|
if (this.disabled) {
|
|
97
78
|
return;
|
|
98
79
|
}
|
|
99
|
-
this.
|
|
80
|
+
this.dispatchEvent(new Event("toggle", event));
|
|
100
81
|
}
|
|
101
82
|
_handleKeyDown(event) {
|
|
102
83
|
const direction = {
|
|
@@ -116,56 +97,42 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends lit.LitElement {
|
|
|
116
97
|
})
|
|
117
98
|
);
|
|
118
99
|
}
|
|
119
|
-
// When using the in-page search, the `<details>` element may open without clicking on the `<summary>`.
|
|
120
|
-
// In order to handle such cases, it is necessary to respond to the "toggle" event.
|
|
121
|
-
_handleToggle(event) {
|
|
122
|
-
event.preventDefault();
|
|
123
|
-
if (this.disabled) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
this.open = event.newState === "open";
|
|
127
|
-
}
|
|
128
100
|
render() {
|
|
129
|
-
const detailsOpen = !this.disabled && this._detailsOpen;
|
|
130
101
|
const open = !this.disabled && this.open;
|
|
131
|
-
return lit.html`<
|
|
102
|
+
return lit.html`<div
|
|
132
103
|
class="w-full text-ddt-color-common-text-primary font-daikinSerif overflow-clip"
|
|
133
|
-
?open=${detailsOpen}
|
|
134
|
-
?data-open=${open}
|
|
135
|
-
aria-disabled=${this.disabled}
|
|
136
|
-
@toggle=${this._handleToggle}
|
|
137
104
|
>
|
|
138
|
-
<
|
|
105
|
+
<button
|
|
139
106
|
id="summary"
|
|
107
|
+
${ref_js.ref(this._summaryRef)}
|
|
140
108
|
class=${cvaSummary({
|
|
141
109
|
open,
|
|
142
110
|
disabled: this.disabled
|
|
143
111
|
})}
|
|
112
|
+
?disabled=${this.disabled}
|
|
113
|
+
aria-expanded=${open}
|
|
114
|
+
aria-controls="content"
|
|
144
115
|
tabindex=${this.disabled ? -1 : 0}
|
|
145
116
|
@click=${this._handleSummaryClick}
|
|
146
117
|
@keydown=${this._handleKeyDown}
|
|
147
118
|
>
|
|
148
119
|
<slot name="summary"></slot>
|
|
149
|
-
</
|
|
120
|
+
</button>
|
|
150
121
|
<div
|
|
151
122
|
${ref_js.ref(this._contentRef)}
|
|
123
|
+
id="content"
|
|
152
124
|
role="region"
|
|
125
|
+
class=${cvaContent({ open })}
|
|
153
126
|
aria-labelledby="summary"
|
|
154
|
-
?hidden=${
|
|
127
|
+
?hidden=${!open}
|
|
155
128
|
>
|
|
156
|
-
<div class="
|
|
157
|
-
<
|
|
129
|
+
<div class="overflow-hidden">
|
|
130
|
+
<div class="pt-2 px-3 pb-3">
|
|
131
|
+
<slot></slot>
|
|
132
|
+
</div>
|
|
158
133
|
</div>
|
|
159
134
|
</div>
|
|
160
|
-
</
|
|
161
|
-
}
|
|
162
|
-
firstUpdated() {
|
|
163
|
-
this._detailsOpen = this.open;
|
|
164
|
-
}
|
|
165
|
-
updated(changedProperties) {
|
|
166
|
-
if (changedProperties.has("open")) {
|
|
167
|
-
this._contentAnimate();
|
|
168
|
-
}
|
|
135
|
+
</div>`;
|
|
169
136
|
}
|
|
170
137
|
/**
|
|
171
138
|
* Focuses on the inner summary.
|
|
@@ -173,7 +140,7 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends lit.LitElement {
|
|
|
173
140
|
*/
|
|
174
141
|
focus(options) {
|
|
175
142
|
var _a;
|
|
176
|
-
(_a = this.
|
|
143
|
+
(_a = this._summaryRef.value) == null ? void 0 : _a.focus(options);
|
|
177
144
|
}
|
|
178
145
|
};
|
|
179
146
|
exports.DaikinAccordionItem.styles = lit.css`
|
|
@@ -193,8 +160,6 @@ exports.DaikinAccordionItem.styles = lit.css`
|
|
|
193
160
|
width: 100%;
|
|
194
161
|
height: 1px;
|
|
195
162
|
background: var(--dds-color-divider);
|
|
196
|
-
position: absolute;
|
|
197
|
-
top: 0;
|
|
198
163
|
}
|
|
199
164
|
|
|
200
165
|
:host::after {
|
|
@@ -203,22 +168,17 @@ exports.DaikinAccordionItem.styles = lit.css`
|
|
|
203
168
|
width: 100%;
|
|
204
169
|
height: 1px;
|
|
205
170
|
background: var(--dds-color-divider);
|
|
206
|
-
position: absolute;
|
|
207
|
-
bottom: 0;
|
|
208
171
|
}
|
|
209
172
|
`;
|
|
173
|
+
__decorateClass([
|
|
174
|
+
decorators_js.property({ type: String, reflect: true })
|
|
175
|
+
], exports.DaikinAccordionItem.prototype, "name", 2);
|
|
210
176
|
__decorateClass([
|
|
211
177
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
212
178
|
], exports.DaikinAccordionItem.prototype, "open", 2);
|
|
213
179
|
__decorateClass([
|
|
214
180
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
215
181
|
], exports.DaikinAccordionItem.prototype, "disabled", 2);
|
|
216
|
-
__decorateClass([
|
|
217
|
-
decorators_js.query("summary")
|
|
218
|
-
], exports.DaikinAccordionItem.prototype, "_summary", 2);
|
|
219
|
-
__decorateClass([
|
|
220
|
-
decorators_js.state()
|
|
221
|
-
], exports.DaikinAccordionItem.prototype, "_detailsOpen", 2);
|
|
222
182
|
exports.DaikinAccordionItem = __decorateClass([
|
|
223
|
-
|
|
183
|
+
decorators.ddsElement("daikin-accordion-item")
|
|
224
184
|
], exports.DaikinAccordionItem);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The accordion item component is a child element within the `daikin-accordion` component.
|
|
4
4
|
* It functions similarly to the HTML `<details>` and `<summary>` tag, allowing users to expand or collapse the associated content by clicking on the header.
|
|
@@ -7,6 +7,8 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
7
7
|
* Hierarchy:
|
|
8
8
|
* - `daikin-accordion` > `daikin-accordion-item`
|
|
9
9
|
*
|
|
10
|
+
* @fires toggle - Fires when the summary is clicked. Used by `daikin-accordion`.
|
|
11
|
+
*
|
|
10
12
|
* @slot - A slot for the accordion item content.
|
|
11
13
|
* @slot summary - A slot for the accordion item summary content.
|
|
12
14
|
*
|
|
@@ -26,12 +28,18 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
26
28
|
* </daikin-accordion-item>
|
|
27
29
|
* ```
|
|
28
30
|
*/
|
|
29
|
-
export declare class DaikinAccordionItem extends
|
|
31
|
+
export declare class DaikinAccordionItem extends DDSElement {
|
|
30
32
|
static readonly styles: import('lit').CSSResult;
|
|
33
|
+
private _summaryRef;
|
|
31
34
|
private _contentRef;
|
|
35
|
+
/**
|
|
36
|
+
* A unique name for the accordion item within the accordion.
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
32
39
|
/**
|
|
33
40
|
* Whether the accordion item is open.
|
|
34
41
|
* Ignored if `disabled` is `true`.
|
|
42
|
+
* Controlled by `daikin-accordion`.
|
|
35
43
|
*/
|
|
36
44
|
open: boolean;
|
|
37
45
|
/**
|
|
@@ -39,23 +47,9 @@ export declare class DaikinAccordionItem extends LitElement {
|
|
|
39
47
|
* If this is set to `true`, the accordion item will always be closed.
|
|
40
48
|
*/
|
|
41
49
|
disabled: boolean;
|
|
42
|
-
private _summary;
|
|
43
|
-
/**
|
|
44
|
-
* Actual presence of `open` attribute of the `<details>` element.
|
|
45
|
-
*
|
|
46
|
-
* The `<details>` element does not support animation on changing the `open` attribute.
|
|
47
|
-
* In other words, the content is hidden immediately when the `open` attribute is removed.
|
|
48
|
-
* To enable animation for an accordion, we need to run the animation while maintaining the `open` attribute, and then remove the `open` attribute at the end of the animation.
|
|
49
|
-
* Treated as `false` if `disabled` is `true`.
|
|
50
|
-
*/
|
|
51
|
-
private _detailsOpen;
|
|
52
|
-
private _contentAnimate;
|
|
53
50
|
private _handleSummaryClick;
|
|
54
51
|
private _handleKeyDown;
|
|
55
|
-
private _handleToggle;
|
|
56
52
|
render(): import('lit-html').TemplateResult<1>;
|
|
57
|
-
protected firstUpdated(): void;
|
|
58
|
-
protected updated(changedProperties: PropertyValues<this>): void;
|
|
59
53
|
/**
|
|
60
54
|
* Focuses on the inner summary.
|
|
61
55
|
* @param options focus options
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
4
|
+
const lit = require("lit");
|
|
5
|
+
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
11
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
12
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13
|
+
if (decorator = decorators[i])
|
|
14
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15
|
+
if (kind && result) __defProp(target, key, result);
|
|
16
|
+
return result;
|
|
17
|
+
};
|
|
18
|
+
const cvaWrapper = classVarianceAuthority.cva(
|
|
19
|
+
[
|
|
20
|
+
"inline-block",
|
|
21
|
+
"rounded-full",
|
|
22
|
+
"relative",
|
|
23
|
+
"overflow-hidden",
|
|
24
|
+
"box-border",
|
|
25
|
+
"size-full",
|
|
26
|
+
"focus-visible:outline",
|
|
27
|
+
"focus-visible:outline-2",
|
|
28
|
+
"focus-visible:outline-offset-2",
|
|
29
|
+
"focus-visible:outline-ddt-color-common-border-focus"
|
|
30
|
+
],
|
|
31
|
+
{
|
|
32
|
+
variants: {
|
|
33
|
+
type: {
|
|
34
|
+
button: [
|
|
35
|
+
"enabled:bg-ddt-color-common-neutral-default",
|
|
36
|
+
"enabled:text-ddt-color-common-surface-default",
|
|
37
|
+
"enabled:hover:bg-ddt-color-common-neutral-hover",
|
|
38
|
+
"enabled:hover:text-ddt-color-common-surface-hover",
|
|
39
|
+
"enabled:active:bg-ddt-color-common-neutral-press",
|
|
40
|
+
"enabled:active:text-ddt-color-common-surface-press",
|
|
41
|
+
"disabled:bg-ddt-color-common-disabled",
|
|
42
|
+
"disabled:text-ddt-color-common-surface-default"
|
|
43
|
+
],
|
|
44
|
+
icon: [
|
|
45
|
+
"bg-ddt-color-common-neutral-default",
|
|
46
|
+
"text-ddt-color-common-surface-default"
|
|
47
|
+
],
|
|
48
|
+
link: [
|
|
49
|
+
"link-enabled:bg-ddt-color-common-neutral-default",
|
|
50
|
+
"link-enabled:text-ddt-color-common-surface-default",
|
|
51
|
+
"link-enabled:hover:bg-ddt-color-common-neutral-hover",
|
|
52
|
+
"link-enabled:hover:text-ddt-color-common-surface-hover",
|
|
53
|
+
"link-enabled:active:bg-ddt-color-common-neutral-press",
|
|
54
|
+
"link-enabled:active:text-ddt-color-common-surface-press",
|
|
55
|
+
"link-disabled:bg-ddt-color-common-disabled",
|
|
56
|
+
"link-disabled:text-ddt-color-common-surface-default"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
exports.DaikinAvatar = class DaikinAvatar extends lit.LitElement {
|
|
63
|
+
constructor() {
|
|
64
|
+
super();
|
|
65
|
+
this.type = "icon";
|
|
66
|
+
this.href = null;
|
|
67
|
+
this.alt = null;
|
|
68
|
+
this.disabled = false;
|
|
69
|
+
this.avatarAriaHaspopup = null;
|
|
70
|
+
this.avatarAriaExpanded = null;
|
|
71
|
+
this.addEventListener("click", (event) => {
|
|
72
|
+
if (this.disabled || this.type === "link" && this.href == null) {
|
|
73
|
+
event.stopImmediatePropagation();
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
render() {
|
|
78
|
+
const icon = lit.html`
|
|
79
|
+
<span
|
|
80
|
+
class="i-daikin-profile"
|
|
81
|
+
>
|
|
82
|
+
</span>
|
|
83
|
+
</daikin-icon>`;
|
|
84
|
+
if (this.type === "icon") {
|
|
85
|
+
return lit.html`<span
|
|
86
|
+
class=${cvaWrapper({ type: "icon" })}
|
|
87
|
+
role="figure"
|
|
88
|
+
aria-label=${ifDefined_js.ifDefined(this.alt ?? void 0)}
|
|
89
|
+
>
|
|
90
|
+
${icon}
|
|
91
|
+
</span>`;
|
|
92
|
+
} else if (this.type === "button") {
|
|
93
|
+
return lit.html`<button
|
|
94
|
+
class=${cvaWrapper({ type: "button" })}
|
|
95
|
+
aria-label=${ifDefined_js.ifDefined(this.alt ?? void 0)}
|
|
96
|
+
aria-haspopup=${ifDefined_js.ifDefined(this.avatarAriaHaspopup ?? void 0)}
|
|
97
|
+
aria-expanded=${ifDefined_js.ifDefined(this.avatarAriaExpanded ?? void 0)}
|
|
98
|
+
?disabled=${this.disabled}
|
|
99
|
+
>
|
|
100
|
+
${icon}
|
|
101
|
+
</button>`;
|
|
102
|
+
} else {
|
|
103
|
+
const linkDisabled = this.disabled || this.href == null;
|
|
104
|
+
return lit.html`<a
|
|
105
|
+
class=${cvaWrapper({ type: "link" })}
|
|
106
|
+
role=${ifDefined_js.ifDefined(linkDisabled ? "link" : void 0)}
|
|
107
|
+
aria-label=${ifDefined_js.ifDefined(this.alt ?? void 0)}
|
|
108
|
+
href=${ifDefined_js.ifDefined(!linkDisabled ? this.href ?? void 0 : void 0)}
|
|
109
|
+
aria-disabled=${ifDefined_js.ifDefined(linkDisabled ? "true" : void 0)}
|
|
110
|
+
>
|
|
111
|
+
${icon}
|
|
112
|
+
</a>`;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Focuses on the inner button or link.
|
|
117
|
+
* @param options focus options
|
|
118
|
+
*/
|
|
119
|
+
focus(options) {
|
|
120
|
+
var _a;
|
|
121
|
+
(_a = this._focusableElement) == null ? void 0 : _a.focus(options);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
exports.DaikinAvatar.styles = lit.css`
|
|
125
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
126
|
+
|
|
127
|
+
:host {
|
|
128
|
+
display: inline-flex;
|
|
129
|
+
position: relative;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host {
|
|
133
|
+
width: 2.5rem;
|
|
134
|
+
height: 2.5rem;
|
|
135
|
+
}
|
|
136
|
+
`;
|
|
137
|
+
__decorateClass([
|
|
138
|
+
decorators_js.property({ type: String, reflect: true })
|
|
139
|
+
], exports.DaikinAvatar.prototype, "type", 2);
|
|
140
|
+
__decorateClass([
|
|
141
|
+
decorators_js.property({ type: String, reflect: true })
|
|
142
|
+
], exports.DaikinAvatar.prototype, "href", 2);
|
|
143
|
+
__decorateClass([
|
|
144
|
+
decorators_js.property({ type: String, reflect: true })
|
|
145
|
+
], exports.DaikinAvatar.prototype, "alt", 2);
|
|
146
|
+
__decorateClass([
|
|
147
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
148
|
+
], exports.DaikinAvatar.prototype, "disabled", 2);
|
|
149
|
+
__decorateClass([
|
|
150
|
+
decorators_js.property({ type: String, reflect: true, attribute: "avatar-aria-haspopup" })
|
|
151
|
+
], exports.DaikinAvatar.prototype, "avatarAriaHaspopup", 2);
|
|
152
|
+
__decorateClass([
|
|
153
|
+
decorators_js.property({ type: Boolean, reflect: true, attribute: "avatar-aria-expanded" })
|
|
154
|
+
], exports.DaikinAvatar.prototype, "avatarAriaExpanded", 2);
|
|
155
|
+
__decorateClass([
|
|
156
|
+
decorators_js.query("a,button")
|
|
157
|
+
], exports.DaikinAvatar.prototype, "_focusableElement", 2);
|
|
158
|
+
exports.DaikinAvatar = __decorateClass([
|
|
159
|
+
decorators_js.customElement("daikin-avatar")
|
|
160
|
+
], exports.DaikinAvatar);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
|
+
declare const cvaWrapper: (props?: ({
|
|
4
|
+
type?: "button" | "icon" | "link" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
type AvatarVariantProps = MergeVariantProps<typeof cvaWrapper>;
|
|
7
|
+
/**
|
|
8
|
+
* The avatar is a UI element that represent a user
|
|
9
|
+
*
|
|
10
|
+
* @fires click - A retargeted event of a [click event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) emitted from the inner `<button>` element. Suppressed if `disabled` is true,
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* ```js
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/avatar/index.js";
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ```html
|
|
19
|
+
* <daikin-avatar></daikin-avatar>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class DaikinAvatar extends LitElement {
|
|
23
|
+
static readonly styles: import('lit').CSSResult;
|
|
24
|
+
/**
|
|
25
|
+
* Replace the wrapping element.
|
|
26
|
+
*/
|
|
27
|
+
type: AvatarVariantProps["type"];
|
|
28
|
+
/**
|
|
29
|
+
* Link `href`.
|
|
30
|
+
* Only used if the `type` is `"link"`.
|
|
31
|
+
* If omitted with `type="link"`, the link will be treated type [a placeholder link](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element:~:text=If%20the%20a%20element%20has%20no%20href%20attribute) and rendered type disabled state.
|
|
32
|
+
*/
|
|
33
|
+
href: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Provides an accessible name of the avatar.
|
|
36
|
+
*/
|
|
37
|
+
alt: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Specify the avatar disabled state.
|
|
40
|
+
*/
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The aria-haspopup of the avatar when `type="button"`.
|
|
44
|
+
*/
|
|
45
|
+
avatarAriaHaspopup: "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | null;
|
|
46
|
+
/**
|
|
47
|
+
* The aria-expanded of avatar when `type="button"`.
|
|
48
|
+
*/
|
|
49
|
+
avatarAriaExpanded: boolean | null;
|
|
50
|
+
private _focusableElement;
|
|
51
|
+
constructor();
|
|
52
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
53
|
+
/**
|
|
54
|
+
* Focuses on the inner button or link.
|
|
55
|
+
* @param options focus options
|
|
56
|
+
*/
|
|
57
|
+
focus(options?: FocusOptions): void;
|
|
58
|
+
}
|
|
59
|
+
declare global {
|
|
60
|
+
interface HTMLElementTagNameMap {
|
|
61
|
+
"daikin-avatar": DaikinAvatar;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-avatar.cjs";
|
|
@@ -2,18 +2,21 @@
|
|
|
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.DaikinBreadcrumb = class DaikinBreadcrumb extends
|
|
19
|
+
exports.DaikinBreadcrumb = class DaikinBreadcrumb extends ddsElement.DDSElement {
|
|
17
20
|
constructor() {
|
|
18
21
|
super(...arguments);
|
|
19
22
|
this.showVisited = false;
|
|
@@ -56,5 +59,5 @@ __decorateClass([
|
|
|
56
59
|
decorators_js.queryAssignedElements({ selector: "daikin-breadcrumb-item" })
|
|
57
60
|
], exports.DaikinBreadcrumb.prototype, "_items", 2);
|
|
58
61
|
exports.DaikinBreadcrumb = __decorateClass([
|
|
59
|
-
|
|
62
|
+
decorators.ddsElement("daikin-breadcrumb")
|
|
60
63
|
], exports.DaikinBreadcrumb);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* `daikin-breadcrumb` is a component for representing a breadcrumb list, and is used together with the `daikin-breadcrumb-item` component.
|
|
4
4
|
*
|
|
@@ -25,7 +25,7 @@ import { LitElement } from 'lit';
|
|
|
25
25
|
* </daikin-breadcrumb>
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
export declare class DaikinBreadcrumb extends
|
|
28
|
+
export declare class DaikinBreadcrumb extends DDSElement {
|
|
29
29
|
static readonly styles: import('lit').CSSResult;
|
|
30
30
|
/**
|
|
31
31
|
* Whether or not to change the color of visited links.
|