@daikin-oss/design-system-web-components 1.3.0 → 1.4.0-next.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 +96 -0
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/base/index.cjs +3 -0
- package/dist/cjs/base/index.d.cts +1 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +1 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +1 -0
- package/dist/cjs/components/avatar/daikin-avatar.cjs +9 -5
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +2 -2
- package/dist/cjs/components/badge/daikin-badge.cjs +133 -0
- package/dist/cjs/components/badge/daikin-badge.d.cts +85 -0
- package/dist/cjs/components/badge/index.cjs +7 -0
- package/dist/cjs/components/badge/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +1 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -0
- package/dist/cjs/components/button/daikin-button.cjs +1 -1
- package/dist/cjs/components/button/daikin-button.d.cts +2 -2
- package/dist/cjs/components/calendar/daikin-calendar.cjs +37 -11
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +12 -2
- package/dist/cjs/components/card/daikin-card.cjs +1 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +1 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -0
- package/dist/cjs/components/carousel/daikin-carousel.cjs +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +1 -1
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +1 -1
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +9 -5
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +2 -2
- package/dist/cjs/components/chip/daikin-chip.cjs +9 -5
- package/dist/cjs/components/chip/daikin-chip.d.cts +2 -2
- package/dist/cjs/components/combobox/daikin-combobox.cjs +7 -4
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +1 -1
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +33 -6
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +6 -1
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +6 -8
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +1 -1
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +1 -0
- package/dist/cjs/components/icon/daikin-icon.cjs +5 -4
- package/dist/cjs/components/icon/daikin-icon.d.cts +8 -0
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +8 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +1 -1
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs/components/index.cjs +10 -0
- package/dist/cjs/components/index.d.cts +2 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +1 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +4 -1
- package/dist/cjs/components/input-group/daikin-input-group.cjs +22 -6
- package/dist/cjs/components/link/daikin-link.cjs +1 -0
- package/dist/cjs/components/list/daikin-list.cjs +1 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +1 -0
- package/dist/cjs/components/loading/daikin-loading.cjs +9 -5
- package/dist/cjs/components/loading/daikin-loading.d.cts +2 -2
- package/dist/cjs/components/logo/daikin-logo.cjs +9 -5
- package/dist/cjs/components/logo/daikin-logo.d.cts +2 -2
- package/dist/cjs/components/menu/daikin-menu.cjs +22 -10
- package/dist/cjs/components/menu/daikin-menu.d.cts +6 -1
- package/dist/cjs/components/modal/daikin-modal.cjs +1 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +1 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +1 -0
- package/dist/cjs/components/pagination/daikin-pagination.cjs +3 -1
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +1 -0
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +1 -0
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +3 -2
- package/dist/cjs/components/radio/daikin-radio.cjs +1 -1
- package/dist/cjs/components/radio/daikin-radio.d.cts +1 -1
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +1 -0
- package/dist/cjs/components/select/daikin-select.cjs +1 -0
- package/dist/cjs/components/slider/daikin-slider.cjs +7 -4
- package/dist/cjs/components/slider/daikin-slider.d.cts +1 -1
- package/dist/cjs/components/status-message/daikin-status-message.cjs +110 -0
- package/dist/cjs/components/status-message/daikin-status-message.d.cts +51 -0
- package/dist/cjs/components/status-message/index.cjs +7 -0
- package/dist/cjs/components/status-message/index.d.cts +1 -0
- package/dist/cjs/components/tab/daikin-tab.cjs +1 -0
- package/dist/cjs/components/tab-panels/daikin-tab-panels.cjs +1 -0
- package/dist/cjs/components/table/daikin-table.cjs +3 -2
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +1 -0
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +1 -0
- package/dist/cjs/components/tabs/daikin-tabs.cjs +1 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +1 -1
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +1 -1
- package/dist/cjs/components/text-field/daikin-text-field.cjs +1 -1
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +1 -1
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +1 -1
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +1 -1
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +8 -5
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +1 -1
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +1 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +4 -1
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +1 -1
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +1 -1
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +1 -0
- package/dist/cjs/components/tree/daikin-tree.cjs +1 -0
- package/dist/cjs/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +1 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +6 -1
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +1 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +6 -1
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +6 -0
- package/dist/cjs/utils/calendar-common.d.cts +7 -0
- package/dist/cjs/utils/notification-common.d.cts +1 -1
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/base/index.cjs +3 -0
- package/dist/cjs-dev/base/index.d.cts +1 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +1 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +1 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +9 -5
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +2 -2
- package/dist/cjs-dev/components/badge/daikin-badge.cjs +133 -0
- package/dist/cjs-dev/components/badge/daikin-badge.d.cts +85 -0
- package/dist/cjs-dev/components/badge/index.cjs +7 -0
- package/dist/cjs-dev/components/badge/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +1 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +1 -1
- package/dist/cjs-dev/components/button/daikin-button.d.cts +2 -2
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +37 -11
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +12 -2
- package/dist/cjs-dev/components/card/daikin-card.cjs +1 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +1 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +1 -1
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +1 -1
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +9 -5
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +2 -2
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +9 -5
- package/dist/cjs-dev/components/chip/daikin-chip.d.cts +2 -2
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +7 -4
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +1 -1
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +33 -6
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +6 -1
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +6 -8
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +1 -1
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +1 -0
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +5 -4
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +8 -0
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +8 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +1 -1
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -2
- package/dist/cjs-dev/components/index.cjs +10 -0
- package/dist/cjs-dev/components/index.d.cts +2 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +1 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +4 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +22 -6
- package/dist/cjs-dev/components/link/daikin-link.cjs +1 -0
- package/dist/cjs-dev/components/list/daikin-list.cjs +1 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +1 -0
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +9 -5
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +2 -2
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +9 -5
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +2 -2
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +22 -10
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +6 -1
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +1 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +1 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +1 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +3 -1
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +1 -0
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +1 -0
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +3 -2
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +1 -1
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +1 -1
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +1 -0
- package/dist/cjs-dev/components/select/daikin-select.cjs +1 -0
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +7 -4
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +1 -1
- package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +110 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +51 -0
- package/dist/cjs-dev/components/status-message/index.cjs +7 -0
- package/dist/cjs-dev/components/status-message/index.d.cts +1 -0
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +1 -0
- package/dist/cjs-dev/components/tab-panels/daikin-tab-panels.cjs +1 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +3 -2
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +1 -0
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +1 -0
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +1 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +1 -1
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +1 -1
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +1 -1
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +1 -1
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +1 -1
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +1 -1
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +8 -5
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +1 -1
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +1 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +4 -1
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +1 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +1 -1
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +1 -0
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +1 -0
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +1 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +6 -1
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +1 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +6 -1
- package/dist/cjs-dev/index.cjs +10 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +6 -0
- package/dist/cjs-dev/utils/calendar-common.d.cts +7 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +1 -1
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/base/index.d.ts +1 -0
- package/dist/es/base/index.js +3 -0
- package/dist/es/components/accordion/daikin-accordion.js +1 -0
- package/dist/es/components/accordion-item/daikin-accordion-item.js +1 -0
- package/dist/es/components/avatar/daikin-avatar.d.ts +2 -2
- package/dist/es/components/avatar/daikin-avatar.js +8 -4
- package/dist/es/components/badge/daikin-badge.d.ts +85 -0
- package/dist/es/components/badge/daikin-badge.js +134 -0
- package/dist/es/components/badge/index.d.ts +1 -0
- package/dist/es/components/badge/index.js +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +1 -0
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -0
- package/dist/es/components/button/daikin-button.d.ts +2 -2
- package/dist/es/components/button/daikin-button.js +1 -1
- package/dist/es/components/calendar/daikin-calendar.d.ts +12 -2
- package/dist/es/components/calendar/daikin-calendar.js +37 -11
- package/dist/es/components/card/daikin-card.js +1 -0
- package/dist/es/components/card-footer/daikin-card-footer.js +1 -0
- package/dist/es/components/card-header/daikin-card-header.js +1 -0
- package/dist/es/components/carousel/daikin-carousel.js +1 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +1 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +1 -1
- package/dist/es/components/checkbox/daikin-checkbox.js +1 -1
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +2 -2
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +8 -4
- package/dist/es/components/chip/daikin-chip.d.ts +2 -2
- package/dist/es/components/chip/daikin-chip.js +8 -4
- package/dist/es/components/combobox/daikin-combobox.d.ts +1 -1
- package/dist/es/components/combobox/daikin-combobox.js +7 -4
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +6 -1
- package/dist/es/components/date-picker/daikin-date-picker.js +31 -4
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +1 -1
- package/dist/es/components/dropdown/daikin-dropdown.js +7 -9
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +1 -0
- package/dist/es/components/icon/daikin-icon.d.ts +8 -0
- package/dist/es/components/icon/daikin-icon.js +5 -4
- package/dist/es/components/icon/icons.json.d.ts +8 -0
- package/dist/es/components/icon/icons.json.js +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +1 -1
- package/dist/es/components/index.d.ts +2 -0
- package/dist/es/components/index.js +4 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +4 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.js +1 -0
- package/dist/es/components/input-group/daikin-input-group.js +22 -6
- package/dist/es/components/link/daikin-link.js +1 -0
- package/dist/es/components/list/daikin-list.js +1 -0
- package/dist/es/components/list-item/daikin-list-item.js +1 -0
- package/dist/es/components/loading/daikin-loading.d.ts +2 -2
- package/dist/es/components/loading/daikin-loading.js +8 -4
- package/dist/es/components/logo/daikin-logo.d.ts +2 -2
- package/dist/es/components/logo/daikin-logo.js +8 -4
- package/dist/es/components/menu/daikin-menu.d.ts +6 -1
- package/dist/es/components/menu/daikin-menu.js +22 -10
- package/dist/es/components/modal/daikin-modal.js +1 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.js +1 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +1 -0
- package/dist/es/components/pagination/daikin-pagination.js +3 -1
- package/dist/es/components/progress-bar/daikin-progress-bar.js +1 -0
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -0
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +3 -2
- package/dist/es/components/radio/daikin-radio.d.ts +1 -1
- package/dist/es/components/radio/daikin-radio.js +1 -1
- package/dist/es/components/radio-group/daikin-radio-group.js +1 -0
- package/dist/es/components/select/daikin-select.js +1 -0
- package/dist/es/components/slider/daikin-slider.d.ts +1 -1
- package/dist/es/components/slider/daikin-slider.js +5 -2
- package/dist/es/components/status-message/daikin-status-message.d.ts +51 -0
- package/dist/es/components/status-message/daikin-status-message.js +111 -0
- package/dist/es/components/status-message/index.d.ts +1 -0
- package/dist/es/components/status-message/index.js +4 -0
- package/dist/es/components/tab/daikin-tab.js +1 -0
- package/dist/es/components/tab-panels/daikin-tab-panels.js +1 -0
- package/dist/es/components/table/daikin-table.js +3 -2
- package/dist/es/components/table-cell/daikin-table-cell.js +1 -0
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +1 -0
- package/dist/es/components/tabs/daikin-tabs.js +1 -0
- package/dist/es/components/text-area/daikin-text-area.d.ts +1 -1
- package/dist/es/components/text-area/daikin-text-area.js +1 -1
- package/dist/es/components/text-field/daikin-text-field.d.ts +1 -1
- package/dist/es/components/text-field/daikin-text-field.js +1 -1
- package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +1 -1
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +1 -1
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +1 -1
- package/dist/es/components/time-picker/daikin-time-picker.js +6 -3
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +4 -1
- package/dist/es/components/toast-notification/daikin-toast-notification.js +1 -0
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -0
- package/dist/es/components/toggle/daikin-toggle.d.ts +1 -1
- package/dist/es/components/toggle/daikin-toggle.js +1 -1
- package/dist/es/components/tooltip/daikin-tooltip.js +1 -0
- package/dist/es/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es/components/tree/daikin-tree.js +1 -0
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +6 -1
- package/dist/es/components/tree-item/daikin-tree-item.js +1 -0
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +6 -1
- package/dist/es/components/tree-section/daikin-tree-section.js +1 -0
- package/dist/es/index.js +4 -0
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +7 -0
- package/dist/es/utils/calendar-common.js +6 -0
- package/dist/es/utils/notification-common.d.ts +1 -1
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/base/index.d.ts +1 -0
- package/dist/es-dev/base/index.js +3 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +1 -0
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +1 -0
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +2 -2
- package/dist/es-dev/components/avatar/daikin-avatar.js +8 -4
- package/dist/es-dev/components/badge/daikin-badge.d.ts +85 -0
- package/dist/es-dev/components/badge/daikin-badge.js +134 -0
- package/dist/es-dev/components/badge/index.d.ts +1 -0
- package/dist/es-dev/components/badge/index.js +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +1 -0
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -0
- package/dist/es-dev/components/button/daikin-button.d.ts +2 -2
- package/dist/es-dev/components/button/daikin-button.js +1 -1
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +12 -2
- package/dist/es-dev/components/calendar/daikin-calendar.js +37 -11
- package/dist/es-dev/components/card/daikin-card.js +1 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +1 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +1 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +1 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +1 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +1 -1
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +2 -2
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +8 -4
- package/dist/es-dev/components/chip/daikin-chip.d.ts +2 -2
- package/dist/es-dev/components/chip/daikin-chip.js +8 -4
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +1 -1
- package/dist/es-dev/components/combobox/daikin-combobox.js +7 -4
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +6 -1
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +31 -4
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +1 -1
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +7 -9
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +1 -0
- package/dist/es-dev/components/icon/daikin-icon.d.ts +8 -0
- package/dist/es-dev/components/icon/daikin-icon.js +5 -4
- package/dist/es-dev/components/icon/icons.json.d.ts +8 -0
- package/dist/es-dev/components/icon/icons.json.js +1 -1
- 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 +1 -1
- package/dist/es-dev/components/index.d.ts +2 -0
- package/dist/es-dev/components/index.js +4 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +4 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +1 -0
- package/dist/es-dev/components/input-group/daikin-input-group.js +22 -6
- package/dist/es-dev/components/link/daikin-link.js +1 -0
- package/dist/es-dev/components/list/daikin-list.js +1 -0
- package/dist/es-dev/components/list-item/daikin-list-item.js +1 -0
- package/dist/es-dev/components/loading/daikin-loading.d.ts +2 -2
- package/dist/es-dev/components/loading/daikin-loading.js +8 -4
- package/dist/es-dev/components/logo/daikin-logo.d.ts +2 -2
- package/dist/es-dev/components/logo/daikin-logo.js +8 -4
- package/dist/es-dev/components/menu/daikin-menu.d.ts +6 -1
- package/dist/es-dev/components/menu/daikin-menu.js +22 -10
- package/dist/es-dev/components/modal/daikin-modal.js +1 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +1 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +1 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +3 -1
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +1 -0
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +1 -0
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +3 -2
- package/dist/es-dev/components/radio/daikin-radio.d.ts +1 -1
- package/dist/es-dev/components/radio/daikin-radio.js +1 -1
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +1 -0
- package/dist/es-dev/components/select/daikin-select.js +1 -0
- package/dist/es-dev/components/slider/daikin-slider.d.ts +1 -1
- package/dist/es-dev/components/slider/daikin-slider.js +5 -2
- package/dist/es-dev/components/status-message/daikin-status-message.d.ts +51 -0
- package/dist/es-dev/components/status-message/daikin-status-message.js +111 -0
- package/dist/es-dev/components/status-message/index.d.ts +1 -0
- package/dist/es-dev/components/status-message/index.js +4 -0
- package/dist/es-dev/components/tab/daikin-tab.js +1 -0
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +1 -0
- package/dist/es-dev/components/table/daikin-table.js +3 -2
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +1 -0
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +1 -0
- package/dist/es-dev/components/tabs/daikin-tabs.js +1 -0
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +1 -1
- package/dist/es-dev/components/text-area/daikin-text-area.js +1 -1
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +1 -1
- package/dist/es-dev/components/text-field/daikin-text-field.js +1 -1
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +1 -1
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +1 -1
- package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +1 -1
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +6 -3
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +4 -1
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +1 -0
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -0
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +1 -1
- package/dist/es-dev/components/toggle/daikin-toggle.js +1 -1
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +1 -0
- package/dist/es-dev/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es-dev/components/tree/daikin-tree.js +1 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +6 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +1 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +6 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +1 -0
- package/dist/es-dev/index.js +4 -0
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +7 -0
- package/dist/es-dev/utils/calendar-common.js +6 -0
- package/dist/es-dev/utils/notification-common.d.ts +1 -1
- package/icons/neutral.svg +3 -0
- package/icons/notification.svg +3 -0
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@ import { property, state, query } from "lit/decorators.js";
|
|
|
5
5
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
6
6
|
import { repeat } from "lit/directives/repeat.js";
|
|
7
7
|
import "../../base/dds-element.js";
|
|
8
|
+
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
8
9
|
import { ddsElement } from "../../base/decorators.js";
|
|
9
10
|
import "../../base/define.js";
|
|
10
|
-
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
11
11
|
import { ClickOutsideController } from "../../controllers/click-outside.js";
|
|
12
12
|
import { FloatingUIAutoUpdateController } from "../../controllers/floating-ui-auto-update.js";
|
|
13
13
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -104,8 +104,11 @@ const cvaOption = cva(
|
|
|
104
104
|
"active:var-color-ddt-color-common-surface-selected-press/color-primary",
|
|
105
105
|
"after:i-daikin-dropdown-check",
|
|
106
106
|
"after:size-6",
|
|
107
|
-
"
|
|
108
|
-
"
|
|
107
|
+
"pr-10",
|
|
108
|
+
"after:absolute",
|
|
109
|
+
"after:right-3",
|
|
110
|
+
"after:top-1/2",
|
|
111
|
+
"after:-translate-y-1/2"
|
|
109
112
|
]
|
|
110
113
|
},
|
|
111
114
|
disabled: {
|
|
@@ -431,7 +434,7 @@ let DaikinCombobox = class extends DDSFormElement {
|
|
|
431
434
|
aria-label=${ifDefined(this._label ?? void 0)}
|
|
432
435
|
aria-expanded=${this.open && !this.disabled}
|
|
433
436
|
aria-disabled=${this.disabled}
|
|
434
|
-
aria-controls
|
|
437
|
+
aria-controls=${ifDefined(this.open ? "combobox-items" : void 0)}
|
|
435
438
|
aria-autocomplete="list"
|
|
436
439
|
aria-required=${this.required}
|
|
437
440
|
aria-haspopup="listbox"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
|
-
import { DDSFormElement } from "../../base/
|
|
2
|
+
import { DDSFormElement } from "../../base/index.js";
|
|
3
3
|
import { DaikinInputGroup } from "../input-group/daikin-input-group.js";
|
|
4
4
|
/**
|
|
5
5
|
* The date picker component provides a date selection function that can be combined with forms. This component uses `daikin-calendar` internally (users do not need to nest this).
|
|
@@ -70,12 +70,16 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
70
70
|
private _autoUpdateController;
|
|
71
71
|
private _dateInputElement;
|
|
72
72
|
private _calendarElement;
|
|
73
|
+
private _calendarButtonElement;
|
|
73
74
|
private get _value();
|
|
74
75
|
private get _min();
|
|
75
76
|
private get _max();
|
|
76
77
|
private get _defaultValue();
|
|
77
78
|
private get _viewDate();
|
|
78
79
|
private get _open();
|
|
80
|
+
private _ignoreCloseByFocusTrap;
|
|
81
|
+
private _handleCloseCalendar;
|
|
82
|
+
private readonly _focusTrapController;
|
|
79
83
|
private _emitSelect;
|
|
80
84
|
private _handleFocusIn;
|
|
81
85
|
private _handleFocusOut;
|
|
@@ -84,6 +88,7 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
84
88
|
private _handleKeyDown;
|
|
85
89
|
private _handleBeforeInput;
|
|
86
90
|
private _handleSelect;
|
|
91
|
+
private _handlePointerDown;
|
|
87
92
|
private _handlePointerUp;
|
|
88
93
|
private _handleCalendarKeyDown;
|
|
89
94
|
private _handleToggle;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { offset, flip, shift } from "@floating-ui/dom";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { unsafeCSS, css, html } from "lit";
|
|
4
|
-
import { property, state
|
|
4
|
+
import { property, state } from "lit/decorators.js";
|
|
5
5
|
import { guard } from "lit/directives/guard.js";
|
|
6
6
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
|
+
import "../../base/dds-element.js";
|
|
8
9
|
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
10
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
11
|
+
import "../../base/define.js";
|
|
9
12
|
import { FloatingUIAutoUpdateController } from "../../controllers/floating-ui-auto-update.js";
|
|
13
|
+
import { FocusTrapController } from "../../controllers/focus-trap.js";
|
|
10
14
|
import tailwindStyles from "../../tailwind.css.js";
|
|
11
15
|
import { tryParseDateFromProperty, parseDateFromProperty, DEFAULT_MIN_DATE, DEFAULT_MAX_DATE, formatDateForProperty, isDateOutOfRange, cvaIconButton, countDaysForYearMonth } from "../../utils/calendar-common.js";
|
|
12
16
|
import { reDispatch } from "../../utils/re-dispatch.js";
|
|
@@ -53,7 +57,7 @@ const cvaField = cva(
|
|
|
53
57
|
"pl-4",
|
|
54
58
|
"pr-10",
|
|
55
59
|
"rounded",
|
|
56
|
-
"
|
|
60
|
+
"truncate",
|
|
57
61
|
"outline",
|
|
58
62
|
"outline-[--color-border]",
|
|
59
63
|
"outline-0",
|
|
@@ -240,6 +244,18 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
240
244
|
this._autoUpdateController = new FloatingUIAutoUpdateController(this);
|
|
241
245
|
this._dateInputElement = createRef();
|
|
242
246
|
this._calendarElement = createRef();
|
|
247
|
+
this._calendarButtonElement = createRef();
|
|
248
|
+
this._ignoreCloseByFocusTrap = false;
|
|
249
|
+
this._handleCloseCalendar = () => {
|
|
250
|
+
var _a;
|
|
251
|
+
if (this._ignoreCloseByFocusTrap) return;
|
|
252
|
+
this.open = false;
|
|
253
|
+
(_a = this._calendarButtonElement.value) == null ? void 0 : _a.focus();
|
|
254
|
+
};
|
|
255
|
+
this._focusTrapController = new FocusTrapController(
|
|
256
|
+
this,
|
|
257
|
+
this._handleCloseCalendar
|
|
258
|
+
);
|
|
243
259
|
}
|
|
244
260
|
get _value() {
|
|
245
261
|
return tryParseDateFromProperty(this.value);
|
|
@@ -403,7 +419,11 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
403
419
|
}
|
|
404
420
|
this._emitSelect();
|
|
405
421
|
}
|
|
422
|
+
_handlePointerDown() {
|
|
423
|
+
this._ignoreCloseByFocusTrap = true;
|
|
424
|
+
}
|
|
406
425
|
_handlePointerUp() {
|
|
426
|
+
this._ignoreCloseByFocusTrap = false;
|
|
407
427
|
if (this.disabled || this.readonly) {
|
|
408
428
|
return;
|
|
409
429
|
}
|
|
@@ -501,12 +521,14 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
501
521
|
@mouseup=${this._handleMouseUp}
|
|
502
522
|
/>
|
|
503
523
|
<daikin-icon-button
|
|
524
|
+
${ref(this._calendarButtonElement)}
|
|
504
525
|
class="absolute top-0 bottom-0 right-2 m-auto"
|
|
505
526
|
type="button"
|
|
506
527
|
color="neutral"
|
|
507
528
|
variant="ghost"
|
|
508
529
|
button-aria-label="Open the date picker"
|
|
509
530
|
?disabled=${this.disabled}
|
|
531
|
+
@pointerdown=${this._handlePointerDown}
|
|
510
532
|
@pointerup=${this._handlePointerUp}
|
|
511
533
|
@keydown=${this._handleCalendarKeyDown}
|
|
512
534
|
>
|
|
@@ -515,6 +537,7 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
515
537
|
</div>
|
|
516
538
|
<daikin-calendar
|
|
517
539
|
${ref(this._calendarElement)}
|
|
540
|
+
${this._focusTrapController.refContainer()}
|
|
518
541
|
id="calendar"
|
|
519
542
|
.value=${this._value ? formatDateForProperty(this._value) : null}
|
|
520
543
|
min=${formatDateForProperty(min)}
|
|
@@ -522,7 +545,7 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
522
545
|
default-value=${ifDefined(
|
|
523
546
|
this._defaultValue ? formatDateForProperty(this._defaultValue) : void 0
|
|
524
547
|
)}
|
|
525
|
-
popover="
|
|
548
|
+
popover="manual"
|
|
526
549
|
class="absolute left-[--floating-x,0] top-[--floating-y,0]"
|
|
527
550
|
@toggle=${this._handleToggle}
|
|
528
551
|
@select=${this._handleSelect}
|
|
@@ -541,6 +564,10 @@ let DaikinDatePicker = class extends DDSFormElement {
|
|
|
541
564
|
},
|
|
542
565
|
this.open
|
|
543
566
|
)
|
|
567
|
+
)}
|
|
568
|
+
${guard(
|
|
569
|
+
[this.open],
|
|
570
|
+
() => this._focusTrapController.directive(this.open)
|
|
544
571
|
)}`;
|
|
545
572
|
}
|
|
546
573
|
willUpdate(changedProperties) {
|
|
@@ -620,7 +647,7 @@ __decorateClass([
|
|
|
620
647
|
state()
|
|
621
648
|
], DaikinDatePicker.prototype, "_currentSelection", 2);
|
|
622
649
|
DaikinDatePicker = __decorateClass([
|
|
623
|
-
|
|
650
|
+
ddsElement("daikin-date-picker")
|
|
624
651
|
], DaikinDatePicker);
|
|
625
652
|
export {
|
|
626
653
|
DaikinDatePicker
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { flip, offset, size } from "@floating-ui/dom";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
|
-
import { unsafeCSS, css, html } from "lit";
|
|
3
|
+
import { unsafeCSS, css, nothing, html } from "lit";
|
|
4
4
|
import { property, queryAssignedElements, query, state } from "lit/decorators.js";
|
|
5
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
6
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
6
|
import "../../base/dds-element.js";
|
|
7
|
+
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
8
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
9
9
|
import "../../base/define.js";
|
|
10
|
-
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
11
10
|
import { FloatingUIAutoUpdateController } from "../../controllers/floating-ui-auto-update.js";
|
|
12
11
|
import tailwindStyles from "../../tailwind.css.js";
|
|
13
12
|
import { isSimpleKeyEvent } from "../../utils/is-simple-key.js";
|
|
@@ -324,6 +323,7 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
324
323
|
return html`<div class="w-full" @keydown=${this._handleKeyDown}>
|
|
325
324
|
<button
|
|
326
325
|
${ref(this._dropdownRef)}
|
|
326
|
+
id="dropdown-button"
|
|
327
327
|
type="button"
|
|
328
328
|
class=${cvaButton({
|
|
329
329
|
open: this.open,
|
|
@@ -334,7 +334,7 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
334
334
|
aria-label=${this._label ?? fallbackLabel}
|
|
335
335
|
aria-expanded=${this.open && !this.disabled}
|
|
336
336
|
aria-disabled=${this.disabled}
|
|
337
|
-
aria-controls
|
|
337
|
+
aria-controls=${this.open ? "dropdown-items" : nothing}
|
|
338
338
|
aria-required=${this.required}
|
|
339
339
|
aria-haspopup="listbox"
|
|
340
340
|
@pointerup=${this._handlePointerUp}
|
|
@@ -348,16 +348,14 @@ let DaikinDropdown = class extends DDSFormElement {
|
|
|
348
348
|
</button>
|
|
349
349
|
<div
|
|
350
350
|
id="dropdown-items"
|
|
351
|
+
role="listbox"
|
|
351
352
|
popover="manual"
|
|
352
353
|
class="flex flex-col overflow-hidden floating-unready:hidden absolute left-[--floating-x,0] top-[--floating-y,0] min-w-[--floating-width] max-h-[12.5rem] border border-ddt-color-divider opacity-1 transition-[opacity] rounded max-w-min"
|
|
354
|
+
aria-labelledby="dropdown-button"
|
|
353
355
|
@floating-ready=${this._handleFloatingReady}
|
|
354
356
|
${this._autoUpdateController.refFloating()}
|
|
355
357
|
>
|
|
356
|
-
<div
|
|
357
|
-
class="flex-1 overflow-y-auto break-all"
|
|
358
|
-
aria-label=${ifDefined(this._label ?? void 0)}
|
|
359
|
-
role="listbox"
|
|
360
|
-
>
|
|
358
|
+
<div class="flex-1 overflow-y-auto break-all">
|
|
361
359
|
<slot
|
|
362
360
|
@slotchange=${this._handleSlotChange}
|
|
363
361
|
@select=${this._handleSelect}
|
|
@@ -2,6 +2,7 @@ import { cva } from "class-variance-authority";
|
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
3
|
import { property, query } from "lit/decorators.js";
|
|
4
4
|
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import "../../base/dds-form-element.js";
|
|
5
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
6
7
|
import "../../base/define.js";
|
|
7
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -78,6 +78,14 @@ declare const icons: {
|
|
|
78
78
|
class: string;
|
|
79
79
|
color: null;
|
|
80
80
|
};
|
|
81
|
+
notification: {
|
|
82
|
+
class: string;
|
|
83
|
+
color: null;
|
|
84
|
+
};
|
|
85
|
+
neutral: {
|
|
86
|
+
class: string;
|
|
87
|
+
color: null;
|
|
88
|
+
};
|
|
81
89
|
};
|
|
82
90
|
export declare const iconList: string[];
|
|
83
91
|
export type IconType = keyof typeof icons;
|
|
@@ -3,6 +3,7 @@ import { unsafeCSS, css, html } from "lit";
|
|
|
3
3
|
import { property, state } from "lit/decorators.js";
|
|
4
4
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
5
5
|
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import "../../base/dds-form-element.js";
|
|
6
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
8
|
import "../../base/define.js";
|
|
8
9
|
import { iconRegistry } from "../../icon-registry.js";
|
|
@@ -161,19 +162,19 @@ DaikinIcon.styles = css`
|
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
:host([size="s"]) {
|
|
164
|
-
--ddc-icon-size:
|
|
165
|
+
--ddc-icon-size: 16px;
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
:host([size="m"]) {
|
|
168
|
-
--ddc-icon-size:
|
|
169
|
+
--ddc-icon-size: 24px;
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
:host([size="l"]) {
|
|
172
|
-
--ddc-icon-size:
|
|
173
|
+
--ddc-icon-size: 32px;
|
|
173
174
|
}
|
|
174
175
|
|
|
175
176
|
:host([size="xl"]) {
|
|
176
|
-
--ddc-icon-size:
|
|
177
|
+
--ddc-icon-size: 40px;
|
|
177
178
|
}
|
|
178
179
|
`;
|
|
179
180
|
__decorateClass([
|
|
@@ -75,6 +75,14 @@ declare const _default: {
|
|
|
75
75
|
"cross": {
|
|
76
76
|
"class": "i-daikin-close",
|
|
77
77
|
"color": null
|
|
78
|
+
},
|
|
79
|
+
"notification": {
|
|
80
|
+
"class": "i-daikin-notification",
|
|
81
|
+
"color": null
|
|
82
|
+
},
|
|
83
|
+
"neutral": {
|
|
84
|
+
"class": "i-daikin-neutral",
|
|
85
|
+
"color": null
|
|
78
86
|
}
|
|
79
87
|
}
|
|
80
88
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null }, "negative": { "class": "i-daikin-error", "color": null }, "positive": { "class": "i-daikin-success", "color": null }, "cross": { "class": "i-daikin-close", "color": null } };
|
|
1
|
+
const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null }, "negative": { "class": "i-daikin-error", "color": null }, "positive": { "class": "i-daikin-success", "color": null }, "cross": { "class": "i-daikin-close", "color": null }, "notification": { "class": "i-daikin-notification", "color": null }, "neutral": { "class": "i-daikin-neutral", "color": null } };
|
|
2
2
|
const iconsJson = {
|
|
3
3
|
icons
|
|
4
4
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { DDSFormSubmitElement } from "../../base/index.js";
|
|
1
2
|
import { ARIARole } from "../../lit-analyzer-types.js";
|
|
2
3
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
|
-
import { DDSFormSubmitElement } from "../../base/dds-form-element.js";
|
|
4
4
|
declare const cvaIconButton: (props?: ({
|
|
5
|
-
color?: "
|
|
5
|
+
color?: "danger" | "default" | "neutral" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
type IconButtonVariantProps = MergeVariantProps<typeof cvaIconButton>;
|
|
@@ -3,10 +3,10 @@ import { unsafeCSS, css, html } from "lit";
|
|
|
3
3
|
import { property, query } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import "../../base/dds-element.js";
|
|
6
|
+
import { DDSFormSubmitElement } from "../../base/dds-form-element.js";
|
|
6
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
8
|
import "../../base/define.js";
|
|
8
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
9
|
-
import { DDSFormSubmitElement } from "../../base/dds-form-element.js";
|
|
10
10
|
import "../icon/daikin-icon.js";
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
12
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./accordion/index.js";
|
|
2
2
|
export * from "./accordion-item/index.js";
|
|
3
3
|
export * from "./avatar/index.js";
|
|
4
|
+
export * from "./badge/index.js";
|
|
4
5
|
export * from "./breadcrumb/index.js";
|
|
5
6
|
export * from "./breadcrumb-item/index.js";
|
|
6
7
|
export * from "./button/index.js";
|
|
@@ -38,6 +39,7 @@ export * from "./radio/index.js";
|
|
|
38
39
|
export * from "./radio-group/index.js";
|
|
39
40
|
export * from "./select/index.js";
|
|
40
41
|
export * from "./slider/index.js";
|
|
42
|
+
export * from "./status-message/index.js";
|
|
41
43
|
export * from "./tab/index.js";
|
|
42
44
|
export * from "./tab-panels/index.js";
|
|
43
45
|
export * from "./table/index.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DaikinAccordion } from "./accordion/daikin-accordion.js";
|
|
2
2
|
import { DaikinAccordionItem } from "./accordion-item/daikin-accordion-item.js";
|
|
3
3
|
import { DaikinAvatar } from "./avatar/daikin-avatar.js";
|
|
4
|
+
import { DaikinBadge } from "./badge/daikin-badge.js";
|
|
4
5
|
import { DaikinBreadcrumb } from "./breadcrumb/daikin-breadcrumb.js";
|
|
5
6
|
import { DaikinBreadcrumbItem } from "./breadcrumb-item/daikin-breadcrumb-item.js";
|
|
6
7
|
import { DaikinButton } from "./button/daikin-button.js";
|
|
@@ -38,6 +39,7 @@ import { DaikinRadio } from "./radio/daikin-radio.js";
|
|
|
38
39
|
import { DaikinRadioGroup } from "./radio-group/daikin-radio-group.js";
|
|
39
40
|
import { DaikinSelect } from "./select/daikin-select.js";
|
|
40
41
|
import { DaikinSlider } from "./slider/daikin-slider.js";
|
|
42
|
+
import { DaikinStatusMessage } from "./status-message/daikin-status-message.js";
|
|
41
43
|
import { DaikinTab } from "./tab/daikin-tab.js";
|
|
42
44
|
import { DaikinTabPanels } from "./tab-panels/daikin-tab-panels.js";
|
|
43
45
|
import { DaikinTable } from "./table/daikin-table.js";
|
|
@@ -59,6 +61,7 @@ export {
|
|
|
59
61
|
DaikinAccordion,
|
|
60
62
|
DaikinAccordionItem,
|
|
61
63
|
DaikinAvatar,
|
|
64
|
+
DaikinBadge,
|
|
62
65
|
DaikinBreadcrumb,
|
|
63
66
|
DaikinBreadcrumbItem,
|
|
64
67
|
DaikinButton,
|
|
@@ -96,6 +99,7 @@ export {
|
|
|
96
99
|
DaikinRadioGroup,
|
|
97
100
|
DaikinSelect,
|
|
98
101
|
DaikinSlider,
|
|
102
|
+
DaikinStatusMessage,
|
|
99
103
|
DaikinTab,
|
|
100
104
|
DaikinTabPanels,
|
|
101
105
|
DaikinTable,
|
|
@@ -41,7 +41,10 @@ export declare class DaikinInlineNotification extends DDSElement {
|
|
|
41
41
|
*/
|
|
42
42
|
closable: boolean;
|
|
43
43
|
/**
|
|
44
|
-
* The timestamp to display.
|
|
44
|
+
* The timestamp to display. Accepts a Date object and displays it in YYYY/MM/DD format.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* element.timestamp = new Date();
|
|
45
48
|
*/
|
|
46
49
|
timestamp: Date | null;
|
|
47
50
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
2
2
|
import { property } from "lit/decorators.js";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
|
+
import "../../base/dds-form-element.js";
|
|
4
5
|
import { ddsElement } from "../../base/decorators.js";
|
|
5
6
|
import "../../base/define.js";
|
|
6
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -2,9 +2,11 @@ import { cva } from "class-variance-authority";
|
|
|
2
2
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
3
3
|
import { property, queryAssignedElements, state } from "lit/decorators.js";
|
|
4
4
|
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import "../../base/dds-form-element.js";
|
|
5
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
6
7
|
import "../../base/define.js";
|
|
7
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
9
|
+
import "../status-message/daikin-status-message.js";
|
|
8
10
|
var __defProp = Object.defineProperty;
|
|
9
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
12
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -109,6 +111,25 @@ let DaikinInputGroup = class extends DDSElement {
|
|
|
109
111
|
textareaLimitExceedError: this.textareaLimitExceedError,
|
|
110
112
|
none: ""
|
|
111
113
|
}[helperTextVariant];
|
|
114
|
+
const formatHelperText = (helperTextVariant2, helperText2) => {
|
|
115
|
+
switch (helperTextVariant2) {
|
|
116
|
+
case "error":
|
|
117
|
+
case "textareaLimitExceedError":
|
|
118
|
+
return html`<daikin-status-message
|
|
119
|
+
status="negative"
|
|
120
|
+
message-role="alert"
|
|
121
|
+
size="small"
|
|
122
|
+
>
|
|
123
|
+
${helperText2}
|
|
124
|
+
</daikin-status-message>`;
|
|
125
|
+
case "none":
|
|
126
|
+
return nothing;
|
|
127
|
+
default:
|
|
128
|
+
return html`<span class=${cvaHelper({ type: helperTextVariant2 })}>
|
|
129
|
+
${helperText2}
|
|
130
|
+
</span>`;
|
|
131
|
+
}
|
|
132
|
+
};
|
|
112
133
|
return html`<fieldset class="contents" ?disabled=${this.disabled}>
|
|
113
134
|
<label
|
|
114
135
|
class="flex flex-col justify-center gap-2 w-full text-ddt-color-common-text-primary font-daikinSerif"
|
|
@@ -121,12 +142,7 @@ let DaikinInputGroup = class extends DDSElement {
|
|
|
121
142
|
${this.required}
|
|
122
143
|
</span>` : nothing}
|
|
123
144
|
</div>
|
|
124
|
-
|
|
125
|
-
class=${cvaHelper({ type: helperTextVariant })}
|
|
126
|
-
aria-live=${helperTextVariant === "error" ? "polite" : "off"}
|
|
127
|
-
>
|
|
128
|
-
${helperText}
|
|
129
|
-
</span>
|
|
145
|
+
${formatHelperText(helperTextVariant, helperText)}
|
|
130
146
|
<slot
|
|
131
147
|
@slotchange=${this._handleSlotChange}
|
|
132
148
|
@input=${this._handleInput}
|
|
@@ -3,6 +3,7 @@ import { unsafeCSS, css, html } from "lit";
|
|
|
3
3
|
import { property } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import "../../base/dds-form-element.js";
|
|
6
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
8
|
import "../../base/define.js";
|
|
8
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { unsafeCSS, css, html } from "lit";
|
|
2
2
|
import { property, queryAssignedElements } from "lit/decorators.js";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
|
+
import "../../base/dds-form-element.js";
|
|
4
5
|
import { ddsElement } from "../../base/decorators.js";
|
|
5
6
|
import "../../base/define.js";
|
|
6
7
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -3,6 +3,7 @@ import { unsafeCSS, css, html } from "lit";
|
|
|
3
3
|
import { property, query } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import "../../base/dds-form-element.js";
|
|
6
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
8
|
import "../../base/define.js";
|
|
8
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The loading component displays a spinner to indicate that a process is in progress.
|
|
4
4
|
* If the spinner is expected to blend into the background, set the background color. You can use the `background` attribute for such cases.
|
|
@@ -13,7 +13,7 @@ import { LitElement } from 'lit';
|
|
|
13
13
|
* <daikin-loading></daikin-loading>
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
export declare class DaikinLoading extends
|
|
16
|
+
export declare class DaikinLoading extends DDSElement {
|
|
17
17
|
static readonly styles: import('lit').CSSResult;
|
|
18
18
|
/**
|
|
19
19
|
* Size of the loading.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { unsafeCSS, css,
|
|
3
|
-
import { property
|
|
2
|
+
import { unsafeCSS, css, html } from "lit";
|
|
3
|
+
import { property } from "lit/decorators.js";
|
|
4
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
5
|
+
import "../../base/dds-form-element.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
4
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
5
9
|
var __defProp = Object.defineProperty;
|
|
6
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -42,7 +46,7 @@ const cvaLoading = cva(
|
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
48
|
);
|
|
45
|
-
let DaikinLoading = class extends
|
|
49
|
+
let DaikinLoading = class extends DDSElement {
|
|
46
50
|
constructor() {
|
|
47
51
|
super(...arguments);
|
|
48
52
|
this.size = "medium";
|
|
@@ -85,7 +89,7 @@ __decorateClass([
|
|
|
85
89
|
property({ type: Boolean, reflect: true })
|
|
86
90
|
], DaikinLoading.prototype, "background", 2);
|
|
87
91
|
DaikinLoading = __decorateClass([
|
|
88
|
-
|
|
92
|
+
ddsElement("daikin-loading")
|
|
89
93
|
], DaikinLoading);
|
|
90
94
|
export {
|
|
91
95
|
DaikinLoading
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The logo is a UI element that represents a brand, company or service. It serves as a visual identifier, helping users recognize and navigate within a specific application or website.
|
|
4
4
|
*
|
|
@@ -18,7 +18,7 @@ import { LitElement } from 'lit';
|
|
|
18
18
|
* </div>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export declare class DaikinLogo extends
|
|
21
|
+
export declare class DaikinLogo extends DDSElement {
|
|
22
22
|
static readonly styles: import('lit').CSSResult;
|
|
23
23
|
/**
|
|
24
24
|
* Link `href`.
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { unsafeCSS, css,
|
|
3
|
-
import { property, query
|
|
2
|
+
import { unsafeCSS, css, 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 "../../base/dds-form-element.js";
|
|
7
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
8
|
+
import "../../base/define.js";
|
|
5
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
6
10
|
var __defProp = Object.defineProperty;
|
|
7
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -40,7 +44,7 @@ const cvaWrapper = cva(
|
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
46
|
);
|
|
43
|
-
let DaikinLogo = class extends
|
|
47
|
+
let DaikinLogo = class extends DDSElement {
|
|
44
48
|
constructor() {
|
|
45
49
|
super(...arguments);
|
|
46
50
|
this.href = null;
|
|
@@ -99,7 +103,7 @@ __decorateClass([
|
|
|
99
103
|
query("a")
|
|
100
104
|
], DaikinLogo.prototype, "_focusableElement", 2);
|
|
101
105
|
DaikinLogo = __decorateClass([
|
|
102
|
-
|
|
106
|
+
ddsElement("daikin-logo")
|
|
103
107
|
], DaikinLogo);
|
|
104
108
|
export {
|
|
105
109
|
DaikinLogo
|
|
@@ -45,7 +45,7 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
45
45
|
* Specifies the initial position of the menu relative to the trigger.
|
|
46
46
|
* However, if there isn't enough space in the specified direction, the menu will automatically adjust its direction.
|
|
47
47
|
*/
|
|
48
|
-
placement: "top" | "bottom" | "left" | "right";
|
|
48
|
+
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
49
49
|
/**
|
|
50
50
|
* Whether the menu is open.
|
|
51
51
|
*/
|
|
@@ -76,6 +76,11 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
76
76
|
private _reflectDynamicProperties;
|
|
77
77
|
private _handleSlotChange;
|
|
78
78
|
private _handleTriggerClick;
|
|
79
|
+
private _handleTouchEnd;
|
|
80
|
+
/**
|
|
81
|
+
* Handles click events on the menu-item.
|
|
82
|
+
* When the popoverValue is manual, the logic for closing the popover should be entirely controlled by the developer and not be the responsibility of the component.
|
|
83
|
+
*/
|
|
79
84
|
private _handleClick;
|
|
80
85
|
private _handleBeforeToggle;
|
|
81
86
|
private _handleToggle;
|