@daikin-oss/design-system-web-components 0.6.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +167 -12
- package/README.md +40 -23
- package/dist/cjs/base/dds-element.cjs +8 -0
- package/dist/cjs/base/dds-element.d.cts +4 -0
- package/dist/cjs/base/decorators.cjs +13 -0
- package/dist/cjs/base/decorators.d.cts +2 -0
- package/dist/cjs/base/define.cjs +18 -0
- package/dist/cjs/base/define.d.cts +1 -0
- package/dist/cjs/base/index.cjs +8 -0
- package/dist/cjs/base/index.d.cts +3 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +39 -6
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +45 -85
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs/components/button/daikin-button.cjs +36 -23
- package/dist/cjs/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs/components/card/daikin-card.cjs +67 -0
- package/dist/cjs/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs/components/card/index.cjs +7 -0
- package/dist/cjs/components/card/index.d.cts +1 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs/components/card-footer/index.cjs +7 -0
- package/dist/cjs/components/card-footer/index.d.cts +1 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs/components/card-header/index.cjs +7 -0
- package/dist/cjs/components/card-header/index.d.cts +1 -0
- package/dist/cjs/components/carousel/daikin-carousel.cjs +217 -0
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs/components/carousel/index.cjs +7 -0
- package/dist/cjs/components/carousel/index.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs/components/carousel-item/index.cjs +7 -0
- package/dist/cjs/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +63 -45
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs/components/icon/daikin-icon.d.cts +5 -5
- package/dist/cjs/components/icon/icons.json.cjs +1 -70
- package/dist/cjs/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +29 -25
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +56 -5
- package/dist/cjs/components/index.d.cts +11 -1
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs/components/inline-notification/index.cjs +7 -0
- package/dist/cjs/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +71 -52
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs/components/link/daikin-link.cjs +40 -55
- package/dist/cjs/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs/components/list/daikin-list.cjs +9 -9
- package/dist/cjs/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +16 -13
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +33 -18
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +17 -26
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +28 -29
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs/components/radio/daikin-radio.cjs +57 -33
- package/dist/cjs/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs/components/select/daikin-select.cjs +25 -16
- package/dist/cjs/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs/components/tab/daikin-tab.cjs +38 -23
- package/dist/cjs/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs/components/table/daikin-table.cjs +15 -12
- package/dist/cjs/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +10 -7
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +12 -10
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +31 -20
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +29 -19
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs/components/toast-notification/index.cjs +7 -0
- package/dist/cjs/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +18 -15
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs/components/tree/common.cjs +90 -0
- package/dist/cjs/components/tree/common.d.cts +32 -0
- package/dist/cjs/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs/components/tree/index.cjs +7 -0
- package/dist/cjs/components/tree/index.d.cts +1 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs/components/tree-item/index.cjs +8 -0
- package/dist/cjs/components/tree-item/index.d.cts +1 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs/components/tree-section/index.cjs +7 -0
- package/dist/cjs/components/tree-section/index.d.cts +1 -0
- package/dist/cjs/controllers/click-outside.d.cts +1 -1
- package/dist/cjs/index.cjs +56 -7
- package/dist/cjs/index.d.cts +0 -1
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/is-simple-key.cjs +6 -0
- package/dist/cjs/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs/utils/notification-common.cjs +121 -0
- package/dist/cjs/utils/notification-common.d.cts +19 -0
- package/dist/cjs-dev/base/dds-element.cjs +8 -0
- package/dist/cjs-dev/base/dds-element.d.cts +4 -0
- package/dist/cjs-dev/base/decorators.cjs +13 -0
- package/dist/cjs-dev/base/decorators.d.cts +2 -0
- package/dist/cjs-dev/base/define.cjs +18 -0
- package/dist/cjs-dev/base/define.d.cts +1 -0
- package/dist/cjs-dev/base/index.cjs +8 -0
- package/dist/cjs-dev/base/index.d.cts +3 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +46 -6
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +15 -2
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +45 -85
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +10 -16
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +27 -85
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +12 -24
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +33 -82
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +16 -25
- package/dist/cjs-dev/components/button/daikin-button.cjs +36 -23
- package/dist/cjs-dev/components/button/daikin-button.d.cts +8 -5
- package/dist/cjs-dev/components/card/daikin-card.cjs +67 -0
- package/dist/cjs-dev/components/card/daikin-card.d.cts +48 -0
- package/dist/cjs-dev/components/card/index.cjs +7 -0
- package/dist/cjs-dev/components/card/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +33 -0
- package/dist/cjs-dev/components/card-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/card-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +35 -0
- package/dist/cjs-dev/components/card-header/index.cjs +7 -0
- package/dist/cjs-dev/components/card-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +227 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +56 -0
- package/dist/cjs-dev/components/carousel/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel/index.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +80 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.d.cts +50 -0
- package/dist/cjs-dev/components/carousel-item/index.cjs +7 -0
- package/dist/cjs-dev/components/carousel-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +63 -45
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +4 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +30 -19
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +16 -2
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +21 -14
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +10 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +16 -13
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +5 -5
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -70
- package/dist/cjs-dev/components/icon/icons.json.d.cts +0 -8
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +29 -25
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +56 -5
- package/dist/cjs-dev/components/index.d.cts +11 -1
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +92 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +55 -0
- package/dist/cjs-dev/components/inline-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/inline-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +71 -52
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +25 -8
- package/dist/cjs-dev/components/link/daikin-link.cjs +40 -55
- package/dist/cjs-dev/components/link/daikin-link.d.cts +2 -2
- package/dist/cjs-dev/components/list/daikin-list.cjs +9 -9
- package/dist/cjs-dev/components/list/daikin-list.d.cts +7 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +16 -13
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +6 -2
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +40 -33
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +6 -2
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +33 -18
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +3 -2
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +17 -36
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +12 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +28 -29
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +8 -4
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +57 -33
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +18 -8
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +31 -11
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +20 -14
- package/dist/cjs-dev/components/select/daikin-select.cjs +25 -16
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -2
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +38 -23
- package/dist/cjs-dev/components/tab/daikin-tab.d.cts +7 -2
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +9 -7
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.d.cts +2 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +15 -12
- package/dist/cjs-dev/components/table/daikin-table.d.cts +9 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +10 -7
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +6 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +12 -10
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +6 -2
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +25 -10
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +8 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +31 -20
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +7 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +29 -19
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +7 -2
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +94 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +69 -0
- package/dist/cjs-dev/components/toast-notification/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +192 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +67 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.cjs +7 -0
- package/dist/cjs-dev/components/toast-notification-manager/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +18 -15
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +3 -2
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +45 -33
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +16 -6
- package/dist/cjs-dev/components/tree/common.cjs +90 -0
- package/dist/cjs-dev/components/tree/common.d.cts +32 -0
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +108 -0
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +73 -0
- package/dist/cjs-dev/components/tree/index.cjs +7 -0
- package/dist/cjs-dev/components/tree/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +201 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs-dev/components/tree-item/index.cjs +8 -0
- package/dist/cjs-dev/components/tree-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +230 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +109 -0
- package/dist/cjs-dev/components/tree-section/index.cjs +7 -0
- package/dist/cjs-dev/components/tree-section/index.d.cts +1 -0
- package/dist/cjs-dev/controllers/click-outside.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +56 -7
- package/dist/cjs-dev/index.d.cts +0 -1
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/is-simple-key.cjs +6 -0
- package/dist/cjs-dev/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs-dev/utils/notification-common.cjs +124 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +19 -0
- package/dist/es/base/dds-element.d.ts +4 -0
- package/dist/es/base/dds-element.js +8 -0
- package/dist/es/base/decorators.d.ts +2 -0
- package/dist/es/base/decorators.js +13 -0
- package/dist/es/base/define.d.ts +1 -0
- package/dist/es/base/define.js +18 -0
- package/dist/es/base/index.d.ts +3 -0
- package/dist/es/base/index.js +8 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es/components/accordion/daikin-accordion.js +38 -5
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es/components/button/daikin-button.d.ts +8 -5
- package/dist/es/components/button/daikin-button.js +35 -22
- package/dist/es/components/card/daikin-card.d.ts +48 -0
- package/dist/es/components/card/daikin-card.js +68 -0
- package/dist/es/components/card/index.d.ts +1 -0
- package/dist/es/components/card/index.js +4 -0
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es/components/card-footer/index.d.ts +1 -0
- package/dist/es/components/card-footer/index.js +4 -0
- package/dist/es/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es/components/card-header/daikin-card-header.js +60 -0
- package/dist/es/components/card-header/index.d.ts +1 -0
- package/dist/es/components/card-header/index.js +4 -0
- package/dist/es/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es/components/carousel/daikin-carousel.js +218 -0
- package/dist/es/components/carousel/index.d.ts +1 -0
- package/dist/es/components/carousel/index.js +4 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es/components/carousel-item/index.d.ts +1 -0
- package/dist/es/components/carousel-item/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es/components/checkbox/daikin-checkbox.js +62 -44
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +29 -18
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +20 -13
- package/dist/es/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es/components/icon/daikin-icon.js +15 -12
- package/dist/es/components/icon/icons.json.d.ts +0 -8
- package/dist/es/components/icon/icons.json.js +1 -70
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +28 -24
- package/dist/es/components/index.d.ts +11 -1
- package/dist/es/components/index.js +23 -2
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es/components/inline-notification/index.d.ts +1 -0
- package/dist/es/components/inline-notification/index.js +4 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +25 -8
- package/dist/es/components/input-group/daikin-input-group.js +70 -51
- package/dist/es/components/link/daikin-link.d.ts +2 -2
- package/dist/es/components/link/daikin-link.js +39 -54
- package/dist/es/components/list/daikin-list.d.ts +7 -2
- package/dist/es/components/list/daikin-list.js +7 -7
- package/dist/es/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es/components/list-item/daikin-list-item.js +15 -12
- package/dist/es/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es/components/pagination/daikin-pagination.js +39 -32
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es/components/progress-bar/daikin-progress-bar.js +32 -17
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +16 -25
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +27 -28
- package/dist/es/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es/components/radio/daikin-radio.js +56 -32
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es/components/select/daikin-select.d.ts +11 -2
- package/dist/es/components/select/daikin-select.js +24 -15
- package/dist/es/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es/components/tab/daikin-tab.js +37 -22
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es/components/table/daikin-table.d.ts +9 -2
- package/dist/es/components/table/daikin-table.js +14 -11
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +9 -6
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +11 -9
- package/dist/es/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es/components/tabs/daikin-tabs.js +24 -9
- package/dist/es/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es/components/text-area/daikin-text-area.js +30 -19
- package/dist/es/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es/components/text-field/daikin-text-field.js +28 -18
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es/components/toast-notification/index.d.ts +1 -0
- package/dist/es/components/toast-notification/index.js +4 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es/components/toast-notification-manager/index.js +4 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es/components/toggle/daikin-toggle.js +17 -14
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es/components/tree/common.d.ts +32 -0
- package/dist/es/components/tree/common.js +90 -0
- package/dist/es/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es/components/tree/daikin-tree.js +109 -0
- package/dist/es/components/tree/index.d.ts +1 -0
- package/dist/es/components/tree/index.js +4 -0
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es/components/tree-item/index.d.ts +1 -0
- package/dist/es/components/tree-item/index.js +5 -0
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es/components/tree-section/index.d.ts +1 -0
- package/dist/es/components/tree-section/index.js +4 -0
- package/dist/es/controllers/click-outside.d.ts +1 -1
- package/dist/es/index.d.ts +0 -1
- package/dist/es/index.js +23 -4
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/is-simple-key.d.ts +7 -0
- package/dist/es/utils/is-simple-key.js +6 -0
- package/dist/es/utils/notification-common.d.ts +19 -0
- package/dist/es/utils/notification-common.js +121 -0
- package/dist/es-dev/base/dds-element.d.ts +4 -0
- package/dist/es-dev/base/dds-element.js +8 -0
- package/dist/es-dev/base/decorators.d.ts +2 -0
- package/dist/es-dev/base/decorators.js +13 -0
- package/dist/es-dev/base/define.d.ts +1 -0
- package/dist/es-dev/base/define.js +18 -0
- package/dist/es-dev/base/index.d.ts +3 -0
- package/dist/es-dev/base/index.js +8 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +15 -2
- package/dist/es-dev/components/accordion/daikin-accordion.js +45 -5
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +10 -16
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +44 -84
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +12 -24
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +26 -84
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +16 -25
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +32 -81
- package/dist/es-dev/components/button/daikin-button.d.ts +8 -5
- package/dist/es-dev/components/button/daikin-button.js +35 -22
- package/dist/es-dev/components/card/daikin-card.d.ts +48 -0
- package/dist/es-dev/components/card/daikin-card.js +68 -0
- package/dist/es-dev/components/card/index.d.ts +1 -0
- package/dist/es-dev/components/card/index.js +4 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +33 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es-dev/components/card-footer/index.d.ts +1 -0
- package/dist/es-dev/components/card-footer/index.js +4 -0
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +35 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +60 -0
- package/dist/es-dev/components/card-header/index.d.ts +1 -0
- package/dist/es-dev/components/card-header/index.js +4 -0
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +56 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +228 -0
- package/dist/es-dev/components/carousel/index.d.ts +1 -0
- package/dist/es-dev/components/carousel/index.js +4 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.d.ts +50 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +81 -0
- package/dist/es-dev/components/carousel-item/index.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -2
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +62 -44
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +16 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +29 -18
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +10 -2
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +20 -13
- package/dist/es-dev/components/icon/daikin-icon.d.ts +5 -5
- package/dist/es-dev/components/icon/daikin-icon.js +15 -12
- package/dist/es-dev/components/icon/icons.json.d.ts +0 -8
- package/dist/es-dev/components/icon/icons.json.js +1 -70
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +28 -24
- package/dist/es-dev/components/index.d.ts +11 -1
- package/dist/es-dev/components/index.js +23 -2
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +55 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +93 -0
- package/dist/es-dev/components/inline-notification/index.d.ts +1 -0
- package/dist/es-dev/components/inline-notification/index.js +4 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +25 -8
- package/dist/es-dev/components/input-group/daikin-input-group.js +70 -51
- package/dist/es-dev/components/link/daikin-link.d.ts +2 -2
- package/dist/es-dev/components/link/daikin-link.js +39 -54
- package/dist/es-dev/components/list/daikin-list.d.ts +7 -2
- package/dist/es-dev/components/list/daikin-list.js +7 -7
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +6 -2
- package/dist/es-dev/components/list-item/daikin-list-item.js +15 -12
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +6 -2
- package/dist/es-dev/components/pagination/daikin-pagination.js +39 -32
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +3 -2
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +32 -17
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +12 -5
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +16 -35
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +8 -4
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +27 -28
- package/dist/es-dev/components/radio/daikin-radio.d.ts +18 -8
- package/dist/es-dev/components/radio/daikin-radio.js +56 -32
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +20 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +30 -10
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -2
- package/dist/es-dev/components/select/daikin-select.js +24 -15
- package/dist/es-dev/components/tab/daikin-tab.d.ts +7 -2
- package/dist/es-dev/components/tab/daikin-tab.js +37 -22
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +2 -2
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +8 -6
- package/dist/es-dev/components/table/daikin-table.d.ts +9 -2
- package/dist/es-dev/components/table/daikin-table.js +14 -11
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +6 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +9 -6
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +6 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +11 -9
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +8 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +24 -9
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +7 -2
- package/dist/es-dev/components/text-area/daikin-text-area.js +30 -19
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +7 -2
- package/dist/es-dev/components/text-field/daikin-text-field.js +28 -18
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +69 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +95 -0
- package/dist/es-dev/components/toast-notification/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification/index.js +4 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +67 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +193 -0
- package/dist/es-dev/components/toast-notification-manager/index.d.ts +1 -0
- package/dist/es-dev/components/toast-notification-manager/index.js +4 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -2
- package/dist/es-dev/components/toggle/daikin-toggle.js +17 -14
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +16 -6
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +44 -32
- package/dist/es-dev/components/tree/common.d.ts +32 -0
- package/dist/es-dev/components/tree/common.js +90 -0
- package/dist/es-dev/components/tree/daikin-tree.d.ts +73 -0
- package/dist/es-dev/components/tree/daikin-tree.js +109 -0
- package/dist/es-dev/components/tree/index.d.ts +1 -0
- package/dist/es-dev/components/tree/index.js +4 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +202 -0
- package/dist/es-dev/components/tree-item/index.d.ts +1 -0
- package/dist/es-dev/components/tree-item/index.js +5 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +109 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +231 -0
- package/dist/es-dev/components/tree-section/index.d.ts +1 -0
- package/dist/es-dev/components/tree-section/index.js +4 -0
- package/dist/es-dev/controllers/click-outside.d.ts +1 -1
- package/dist/es-dev/index.d.ts +0 -1
- package/dist/es-dev/index.js +23 -4
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/is-simple-key.d.ts +7 -0
- package/dist/es-dev/utils/is-simple-key.js +6 -0
- package/dist/es-dev/utils/notification-common.d.ts +19 -0
- package/dist/es-dev/utils/notification-common.js +124 -0
- package/icons/checkbox-checked.svg +2 -3
- package/icons/sort.svg +1 -1
- package/icons/status-error.svg +1 -1
- package/icons/status-negative.svg +4 -2
- package/icons/status-warning.svg +2 -4
- package/package.json +58 -49
- package/dist/cjs/colors.cjs +0 -80
- package/dist/cjs/colors.d.cts +0 -69
- package/dist/cjs/components/notification/daikin-notification.cjs +0 -197
- package/dist/cjs/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs/components/notification/index.cjs +0 -7
- package/dist/cjs/components/notification/index.d.cts +0 -1
- package/dist/cjs/constants/events.cjs +0 -4
- package/dist/cjs-dev/colors.cjs +0 -80
- package/dist/cjs-dev/colors.d.cts +0 -69
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +0 -197
- package/dist/cjs-dev/components/notification/daikin-notification.d.cts +0 -77
- package/dist/cjs-dev/components/notification/index.cjs +0 -7
- package/dist/cjs-dev/components/notification/index.d.cts +0 -1
- package/dist/cjs-dev/constants/events.cjs +0 -4
- package/dist/es/colors.d.ts +0 -69
- package/dist/es/colors.js +0 -80
- package/dist/es/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es/components/notification/daikin-notification.js +0 -198
- package/dist/es/components/notification/index.d.ts +0 -1
- package/dist/es/components/notification/index.js +0 -4
- package/dist/es/constants/events.js +0 -4
- package/dist/es-dev/colors.d.ts +0 -69
- package/dist/es-dev/colors.js +0 -80
- package/dist/es-dev/components/notification/daikin-notification.d.ts +0 -77
- package/dist/es-dev/components/notification/daikin-notification.js +0 -198
- package/dist/es-dev/components/notification/index.d.ts +0 -1
- package/dist/es-dev/components/notification/index.js +0 -4
- package/dist/es-dev/constants/events.js +0 -4
- package/icons/arrow-up.svg +0 -3
- package/icons/status-success.svg +0 -6
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { colorFeedbackNegative } from "@daikin-oss/dds-tokens/js/daikin/Light/variables.js";
|
|
2
1
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { css, unsafeCSS,
|
|
4
|
-
import { property, queryAssignedElements, state
|
|
2
|
+
import { css, unsafeCSS, html, nothing } from "lit";
|
|
3
|
+
import { property, queryAssignedElements, state } from "lit/decorators.js";
|
|
4
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
6
|
+
import "../../base/define.js";
|
|
5
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
8
|
var __defProp = Object.defineProperty;
|
|
7
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -13,49 +15,50 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
13
15
|
if (kind && result) __defProp(target, key, result);
|
|
14
16
|
return result;
|
|
15
17
|
};
|
|
16
|
-
const cvaLabel = cva(["flex", "items-center", "font-bold", "leading-
|
|
18
|
+
const cvaLabel = cva(["flex", "items-center", "font-bold", "leading-[130%]"], {
|
|
17
19
|
variants: {
|
|
18
20
|
disabled: {
|
|
19
21
|
false: [],
|
|
20
|
-
true: ["text-
|
|
22
|
+
true: ["text-ddt-color-common-disabled"]
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
});
|
|
24
26
|
const cvaHelper = cva(
|
|
25
|
-
["flex", "gap-1", "items-center", "leading-
|
|
27
|
+
["flex", "gap-1", "items-center", "leading-[130%]", "text-sm"],
|
|
26
28
|
{
|
|
27
29
|
variants: {
|
|
28
30
|
type: {
|
|
29
|
-
helper: [],
|
|
30
|
-
helperDisabled: ["text-
|
|
31
|
+
helper: ["text-ddt-color-common-text-secondary"],
|
|
32
|
+
helperDisabled: ["text-ddt-color-common-disabled"],
|
|
31
33
|
error: [
|
|
32
|
-
"text-
|
|
34
|
+
"text-ddt-color-common-danger-default",
|
|
33
35
|
"font-bold",
|
|
34
36
|
"before:size-4",
|
|
35
|
-
"before:i-daikin-status-error"
|
|
37
|
+
"before:i-daikin-status-error",
|
|
38
|
+
"before:flex-none"
|
|
39
|
+
],
|
|
40
|
+
textareaLimitExceedError: [
|
|
41
|
+
"text-ddt-color-common-danger-default",
|
|
42
|
+
"font-bold",
|
|
43
|
+
"before:size-4",
|
|
44
|
+
"before:i-daikin-status-error",
|
|
45
|
+
"before:flex-none"
|
|
36
46
|
],
|
|
37
47
|
none: ["hidden"]
|
|
38
48
|
}
|
|
39
49
|
}
|
|
40
50
|
}
|
|
41
51
|
);
|
|
42
|
-
const cvaCounter = cva(["text-sm", "font-bold"], {
|
|
52
|
+
const cvaCounter = cva(["text-sm", "font-bold", "ml-auto"], {
|
|
43
53
|
variants: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
const cvaCounterValueLength = cva([], {
|
|
51
|
-
variants: {
|
|
52
|
-
error: {
|
|
53
|
-
false: [],
|
|
54
|
-
true: ["text-system-state-error-active"]
|
|
54
|
+
variant: {
|
|
55
|
+
normal: ["text-ddt-color-common-text-secondary"],
|
|
56
|
+
disabled: ["text-ddt-color-common-disabled"],
|
|
57
|
+
error: ["text-ddt-color-common-danger-default"]
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
60
|
});
|
|
58
|
-
let DaikinInputGroup = class extends
|
|
61
|
+
let DaikinInputGroup = class extends DDSElement {
|
|
59
62
|
constructor() {
|
|
60
63
|
super(...arguments);
|
|
61
64
|
this.label = null;
|
|
@@ -64,8 +67,12 @@ let DaikinInputGroup = class extends LitElement {
|
|
|
64
67
|
this.error = null;
|
|
65
68
|
this.disabled = false;
|
|
66
69
|
this.textareaMaxCount = null;
|
|
70
|
+
this.textareaLimitExceedError = null;
|
|
67
71
|
this._textareaCount = null;
|
|
68
72
|
}
|
|
73
|
+
get textareaLimitExceeded() {
|
|
74
|
+
return this.textareaMaxCount != null && this._textareaCount != null && this.textareaMaxCount < this._textareaCount;
|
|
75
|
+
}
|
|
69
76
|
_handleSlotChange() {
|
|
70
77
|
this._reflectSlotProperties();
|
|
71
78
|
const textarea = this._textareas[0];
|
|
@@ -82,40 +89,41 @@ let DaikinInputGroup = class extends LitElement {
|
|
|
82
89
|
}
|
|
83
90
|
}
|
|
84
91
|
render() {
|
|
85
|
-
const
|
|
92
|
+
const helperTextVariant = (() => {
|
|
93
|
+
if (this.textareaLimitExceeded && !!this.textareaLimitExceedError && !this.disabled) {
|
|
94
|
+
return "textareaLimitExceedError";
|
|
95
|
+
} else if (!!this.error && !this.disabled) {
|
|
96
|
+
return "error";
|
|
97
|
+
} else if (!!this.helper && this.disabled) {
|
|
98
|
+
return "helperDisabled";
|
|
99
|
+
} else if (this.helper) {
|
|
100
|
+
return "helper";
|
|
101
|
+
} else {
|
|
102
|
+
return "none";
|
|
103
|
+
}
|
|
104
|
+
})();
|
|
86
105
|
const helperText = {
|
|
87
|
-
error: this.error,
|
|
88
106
|
helper: this.helper,
|
|
89
107
|
helperDisabled: this.helper,
|
|
108
|
+
error: this.error,
|
|
109
|
+
textareaLimitExceedError: this.textareaLimitExceedError,
|
|
90
110
|
none: ""
|
|
91
|
-
}[
|
|
111
|
+
}[helperTextVariant];
|
|
92
112
|
return html`<fieldset class="content" ?disabled=${this.disabled}>
|
|
93
113
|
<label
|
|
94
|
-
class="flex flex-col justify-center gap-2 w-full text-
|
|
114
|
+
class="flex flex-col justify-center gap-2 w-full text-ddt-color-common-text-primary font-daikinSerif"
|
|
95
115
|
>
|
|
96
|
-
<div class="flex
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</span>` : nothing}
|
|
104
|
-
</div>
|
|
105
|
-
${this.textareaMaxCount != null && this._textareaCount != null ? html`
|
|
106
|
-
<span class=${cvaCounter({ disabled: this.disabled })}>
|
|
107
|
-
<span
|
|
108
|
-
class=${cvaCounterValueLength({
|
|
109
|
-
error: this.textareaMaxCount < this._textareaCount
|
|
110
|
-
})}
|
|
111
|
-
>${this._textareaCount}</span
|
|
112
|
-
><span>/</span><span>${this.textareaMaxCount}</span>
|
|
113
|
-
</span>
|
|
114
|
-
` : nothing}
|
|
116
|
+
<div class="flex items-center flex-wrap gap-1 font-bold">
|
|
117
|
+
${this.label ? html`<span class=${cvaLabel({ disabled: this.disabled })}>
|
|
118
|
+
${this.label}
|
|
119
|
+
</span>` : nothing}
|
|
120
|
+
${this.required && !this.disabled ? html`<span class="text-ddt-color-common-danger-default text-xs">
|
|
121
|
+
${this.required}
|
|
122
|
+
</span>` : nothing}
|
|
115
123
|
</div>
|
|
116
124
|
<span
|
|
117
|
-
class=${cvaHelper({ type:
|
|
118
|
-
aria-live=${
|
|
125
|
+
class=${cvaHelper({ type: helperTextVariant })}
|
|
126
|
+
aria-live=${helperTextVariant === "error" ? "polite" : "off"}
|
|
119
127
|
>
|
|
120
128
|
${helperText}
|
|
121
129
|
</span>
|
|
@@ -123,6 +131,12 @@ let DaikinInputGroup = class extends LitElement {
|
|
|
123
131
|
@slotchange=${this._handleSlotChange}
|
|
124
132
|
@input=${this._handleInput}
|
|
125
133
|
></slot>
|
|
134
|
+
${this.textareaMaxCount != null && this._textareaCount != null ? html`<span
|
|
135
|
+
class=${cvaCounter({
|
|
136
|
+
variant: this.disabled ? "disabled" : this.textareaLimitExceeded ? "error" : "normal"
|
|
137
|
+
})}
|
|
138
|
+
>${this._textareaCount}/${this.textareaMaxCount}</span
|
|
139
|
+
>` : nothing}
|
|
126
140
|
</label>
|
|
127
141
|
</fieldset>`;
|
|
128
142
|
}
|
|
@@ -134,8 +148,6 @@ DaikinInputGroup.styles = css`
|
|
|
134
148
|
${unsafeCSS(tailwindStyles)}
|
|
135
149
|
|
|
136
150
|
:host {
|
|
137
|
-
--input-group-border-color-error: ${unsafeCSS(colorFeedbackNegative)};
|
|
138
|
-
|
|
139
151
|
display: block;
|
|
140
152
|
width: 100%;
|
|
141
153
|
}
|
|
@@ -158,6 +170,13 @@ __decorateClass([
|
|
|
158
170
|
__decorateClass([
|
|
159
171
|
property({ type: Number, reflect: true, attribute: "textarea-max-count" })
|
|
160
172
|
], DaikinInputGroup.prototype, "textareaMaxCount", 2);
|
|
173
|
+
__decorateClass([
|
|
174
|
+
property({
|
|
175
|
+
type: String,
|
|
176
|
+
reflect: true,
|
|
177
|
+
attribute: "textarea-limit-exceed-error"
|
|
178
|
+
})
|
|
179
|
+
], DaikinInputGroup.prototype, "textareaLimitExceedError", 2);
|
|
161
180
|
__decorateClass([
|
|
162
181
|
queryAssignedElements({ selector: "daikin-text-area" })
|
|
163
182
|
], DaikinInputGroup.prototype, "_textareas", 2);
|
|
@@ -170,7 +189,7 @@ __decorateClass([
|
|
|
170
189
|
state()
|
|
171
190
|
], DaikinInputGroup.prototype, "_textareaCount", 2);
|
|
172
191
|
DaikinInputGroup = __decorateClass([
|
|
173
|
-
|
|
192
|
+
ddsElement("daikin-input-group")
|
|
174
193
|
], DaikinInputGroup);
|
|
175
194
|
export {
|
|
176
195
|
DaikinInputGroup
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The link component uses the standard HTML <a> tag. Unlike the link used in the button component, it provides the style of the text as it is.
|
|
4
4
|
*
|
|
@@ -16,7 +16,7 @@ import { LitElement } from 'lit';
|
|
|
16
16
|
* </daikin-link>
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare class DaikinLink extends
|
|
19
|
+
export declare class DaikinLink extends DDSElement {
|
|
20
20
|
static readonly styles: import('lit').CSSResult;
|
|
21
21
|
/**
|
|
22
22
|
* Link `href`.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
5
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -14,33 +17,22 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
14
17
|
return result;
|
|
15
18
|
};
|
|
16
19
|
const LINK_CLASS_NAME = cva([
|
|
17
|
-
"flex",
|
|
18
|
-
"justify-center",
|
|
19
|
-
"items-center",
|
|
20
|
-
"gap-0.5",
|
|
21
|
-
"size-fit",
|
|
22
20
|
"font-daikinSerif",
|
|
23
|
-
"rounded-[1px]",
|
|
24
21
|
"relative",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"link-enabled:
|
|
28
|
-
"link-enabled:
|
|
29
|
-
"link-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"focus-visible:
|
|
34
|
-
"focus-visible:
|
|
35
|
-
"focus-visible:
|
|
36
|
-
"focus-visible:
|
|
37
|
-
"focus-visible:before:outline-2",
|
|
38
|
-
"after:h-[1px]",
|
|
39
|
-
"after:absolute",
|
|
40
|
-
"after:inset-[auto_0_0_0]",
|
|
41
|
-
"after:bg-current"
|
|
22
|
+
"border-b",
|
|
23
|
+
"border-b-current",
|
|
24
|
+
"link-enabled:text-ddt-color-link-text-default",
|
|
25
|
+
"link-enabled:hover:text-ddt-color-link-text-hover",
|
|
26
|
+
"link-enabled:hover:bg-ddt-color-common-surface-brand-hover",
|
|
27
|
+
"link-enabled:active:text-ddt-color-link-text-press",
|
|
28
|
+
"link-enabled:active:bg-ddt-color-common-surface-brand-press",
|
|
29
|
+
"link-disabled:text-ddt-color-common-disabled",
|
|
30
|
+
"focus-visible:outline",
|
|
31
|
+
"focus-visible:outline-2",
|
|
32
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
33
|
+
"focus-visible:outline-offset-2"
|
|
42
34
|
])();
|
|
43
|
-
let DaikinLink = class extends
|
|
35
|
+
let DaikinLink = class extends DDSElement {
|
|
44
36
|
constructor() {
|
|
45
37
|
super(...arguments);
|
|
46
38
|
this.href = null;
|
|
@@ -49,43 +41,36 @@ let DaikinLink = class extends LitElement {
|
|
|
49
41
|
this.showVisited = false;
|
|
50
42
|
}
|
|
51
43
|
render() {
|
|
52
|
-
return html
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
44
|
+
return html`<a
|
|
45
|
+
class=${LINK_CLASS_NAME}
|
|
46
|
+
href=${ifDefined(this.disabled ? void 0 : this.href ?? void 0)}
|
|
47
|
+
target=${ifDefined(this.target ?? void 0)}
|
|
48
|
+
aria-disabled=${ifDefined(this.disabled ? "true" : void 0)}
|
|
49
|
+
><span class="inline-flex mr-[0.125rem] align-sub">
|
|
50
|
+
<slot name="left-icon" class="icon-size-4"
|
|
51
|
+
><span class="-mr-[0.125rem]"></span></slot></span
|
|
52
|
+
><slot></slot
|
|
53
|
+
><span class="inline-flex ml-[0.125rem] align-sub"
|
|
54
|
+
><slot name="right-icon" class="icon-size-4"
|
|
55
|
+
><span class="-ml-[0.125rem]"></span></slot></span
|
|
56
|
+
></a>`;
|
|
64
57
|
}
|
|
65
58
|
};
|
|
66
59
|
DaikinLink.styles = css`
|
|
67
60
|
${unsafeCSS(tailwindStyles)}
|
|
68
61
|
|
|
69
|
-
:host {
|
|
70
|
-
display: block;
|
|
71
|
-
width: fit-content;
|
|
72
|
-
height: fit-content;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
62
|
:host([show-visited]:not([disabled])) a:visited {
|
|
76
|
-
color:
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
:host([show-visited]:not([disabled])) a:hover:visited {
|
|
80
|
-
color: #4a1c51; /* system-state-visited-hover */
|
|
63
|
+
color: var(--dds-color-link-text-visited-default);
|
|
81
64
|
}
|
|
82
65
|
|
|
83
|
-
:host([show-visited]:not([disabled])) a:hover
|
|
84
|
-
|
|
66
|
+
:host([show-visited]:not([disabled])) a:visited:hover {
|
|
67
|
+
color: var(--dds-color-link-text-visited-hover);
|
|
68
|
+
background-color: var(--dds-color-link-surface-visited-hover);
|
|
85
69
|
}
|
|
86
70
|
|
|
87
|
-
:host([show-visited]:not([disabled])) a:active
|
|
88
|
-
color:
|
|
71
|
+
:host([show-visited]:not([disabled])) a:visited:active {
|
|
72
|
+
color: var(--dds-color-link-text-visited-press);
|
|
73
|
+
background-color: var(--dds-color-link-surface-visited-press);
|
|
89
74
|
}
|
|
90
75
|
`;
|
|
91
76
|
__decorateClass([
|
|
@@ -101,7 +86,7 @@ __decorateClass([
|
|
|
101
86
|
property({ type: Boolean, reflect: true, attribute: "show-visited" })
|
|
102
87
|
], DaikinLink.prototype, "showVisited", 2);
|
|
103
88
|
DaikinLink = __decorateClass([
|
|
104
|
-
|
|
89
|
+
ddsElement("daikin-link")
|
|
105
90
|
], DaikinLink);
|
|
106
91
|
export {
|
|
107
92
|
DaikinLink
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The list component is used to list items using the list item component.
|
|
4
4
|
*
|
|
@@ -9,6 +9,11 @@ import { LitElement } from 'lit';
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
*
|
|
12
|
+
* ```js
|
|
13
|
+
* import "@daikin-oss/design-system-web-components/components/list/index.js";
|
|
14
|
+
* import "@daikin-oss/design-system-web-components/components/list-item/index.js";
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
12
17
|
* ```html
|
|
13
18
|
* <daikin-list>
|
|
14
19
|
* <daikin-list-item>List item label 1</daikin-list-item>
|
|
@@ -17,7 +22,7 @@ import { LitElement } from 'lit';
|
|
|
17
22
|
* </daikin-list>
|
|
18
23
|
* ```
|
|
19
24
|
*/
|
|
20
|
-
export declare class DaikinList extends
|
|
25
|
+
export declare class DaikinList extends DDSElement {
|
|
21
26
|
render(): import('lit-html').TemplateResult<1>;
|
|
22
27
|
}
|
|
23
28
|
declare global {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
3
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
4
|
+
import "../../base/define.js";
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
6
7
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
7
8
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8
9
|
if (decorator = decorators[i])
|
|
9
|
-
result =
|
|
10
|
-
if (kind && result) __defProp(target, key, result);
|
|
10
|
+
result = decorator(result) || result;
|
|
11
11
|
return result;
|
|
12
12
|
};
|
|
13
|
-
let DaikinList = class extends
|
|
13
|
+
let DaikinList = class extends DDSElement {
|
|
14
14
|
render() {
|
|
15
15
|
return html`<div role="list">
|
|
16
16
|
<slot></slot>
|
|
@@ -18,7 +18,7 @@ let DaikinList = class extends LitElement {
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
DaikinList = __decorateClass([
|
|
21
|
-
|
|
21
|
+
ddsElement("daikin-list")
|
|
22
22
|
], DaikinList);
|
|
23
23
|
export {
|
|
24
24
|
DaikinList
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The list item component is used to represent a single item in a list. Please use it within the `daikin-list` component.
|
|
4
4
|
*
|
|
@@ -20,11 +20,15 @@ import { LitElement } from 'lit';
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
*
|
|
23
|
+
* ```js
|
|
24
|
+
* import "@daikin-oss/design-system-web-components/components/list-item/index.js";
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
23
27
|
* ```html
|
|
24
28
|
* <daikin-list-item>List item label</daikin-list-item>
|
|
25
29
|
* ```
|
|
26
30
|
*/
|
|
27
|
-
export declare class DaikinListItem extends
|
|
31
|
+
export declare class DaikinListItem extends DDSElement {
|
|
28
32
|
static readonly styles: import('lit').CSSResult;
|
|
29
33
|
/**
|
|
30
34
|
* Type of the list item.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { css, unsafeCSS,
|
|
3
|
-
import { property, query
|
|
2
|
+
import { css, unsafeCSS, html } from "lit";
|
|
3
|
+
import { property, query } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
5
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
9
|
var __defProp = Object.defineProperty;
|
|
7
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -23,18 +26,18 @@ const INNER_CN = cva([
|
|
|
23
26
|
"focus-visible:before:outline",
|
|
24
27
|
"focus-visible:before:outline-2",
|
|
25
28
|
"focus-visible:before:-outline-offset-2",
|
|
26
|
-
"focus-visible:before:outline-
|
|
29
|
+
"focus-visible:before:outline-ddt-color-common-border-focus",
|
|
27
30
|
// For buttons and links
|
|
28
|
-
"link-enabled:before:group-hover:[&:not(:active)]:bg-
|
|
29
|
-
"link-enabled:before:active:bg-
|
|
31
|
+
"link-enabled:before:group-hover:[&:not(:active)]:bg-ddt-color-common-surface-hover",
|
|
32
|
+
"link-enabled:before:active:bg-ddt-color-common-surface-press",
|
|
30
33
|
// For text
|
|
31
|
-
"[&:not(a,button)]:before:group-hover:bg-
|
|
34
|
+
"[&:not(a,button)]:before:group-hover:bg-ddt-color-common-surface-hover"
|
|
32
35
|
])();
|
|
33
36
|
const cvaContent = cva(["block", "pl-2", "pr-3", "text-left"], {
|
|
34
37
|
variants: {
|
|
35
38
|
disabled: {
|
|
36
|
-
false: ["text-
|
|
37
|
-
true: ["text-
|
|
39
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
40
|
+
true: ["text-ddt-color-common-disabled"]
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
});
|
|
@@ -45,12 +48,12 @@ const cvaIcon = cva(["icon-size-6"], {
|
|
|
45
48
|
right: ["pointer-events-none"]
|
|
46
49
|
},
|
|
47
50
|
disabled: {
|
|
48
|
-
false: ["text-
|
|
49
|
-
true: ["text-
|
|
51
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
52
|
+
true: ["text-ddt-color-common-disabled"]
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
});
|
|
53
|
-
let DaikinListItem = class extends
|
|
56
|
+
let DaikinListItem = class extends DDSElement {
|
|
54
57
|
constructor() {
|
|
55
58
|
super();
|
|
56
59
|
this.type = "button";
|
|
@@ -142,7 +145,7 @@ __decorateClass([
|
|
|
142
145
|
query("a,button")
|
|
143
146
|
], DaikinListItem.prototype, "_focusableElement", 2);
|
|
144
147
|
DaikinListItem = __decorateClass([
|
|
145
|
-
|
|
148
|
+
ddsElement("daikin-list-item")
|
|
146
149
|
], DaikinListItem);
|
|
147
150
|
export {
|
|
148
151
|
DaikinListItem
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The pagination component is used to navigate through a list of items that are divided into multiple pages.
|
|
4
4
|
*
|
|
@@ -6,11 +6,15 @@ import { LitElement } from 'lit';
|
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
*
|
|
9
|
+
* ```js
|
|
10
|
+
* import "@daikin-oss/design-system-web-components/components/pagination/index.js";
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
9
13
|
* ```html
|
|
10
14
|
* <daikin-pagination window="5" total="20" current="3"></daikin-pagination>
|
|
11
15
|
* ```
|
|
12
16
|
*/
|
|
13
|
-
export declare class DaikinPagination extends
|
|
17
|
+
export declare class DaikinPagination extends DDSElement {
|
|
14
18
|
static readonly styles: import('lit').CSSResult;
|
|
15
19
|
/**
|
|
16
20
|
* The current page number, starting at 1.
|