@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
3
|
declare const cvaWrapper: (props?: ({
|
|
4
4
|
type?: "button" | "icon" | "link" | null | undefined;
|
|
@@ -19,7 +19,7 @@ type AvatarVariantProps = MergeVariantProps<typeof cvaWrapper>;
|
|
|
19
19
|
* <daikin-avatar></daikin-avatar>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export declare class DaikinAvatar extends
|
|
22
|
+
export declare class DaikinAvatar extends DDSElement {
|
|
23
23
|
static readonly styles: import('lit').CSSResult;
|
|
24
24
|
/**
|
|
25
25
|
* Replace the wrapping element.
|
|
@@ -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;
|
|
@@ -57,7 +61,7 @@ const cvaWrapper = cva(
|
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
);
|
|
60
|
-
let DaikinAvatar = class extends
|
|
64
|
+
let DaikinAvatar = class extends DDSElement {
|
|
61
65
|
constructor() {
|
|
62
66
|
super();
|
|
63
67
|
this.type = "icon";
|
|
@@ -155,7 +159,7 @@ __decorateClass([
|
|
|
155
159
|
query("a,button")
|
|
156
160
|
], DaikinAvatar.prototype, "_focusableElement", 2);
|
|
157
161
|
DaikinAvatar = __decorateClass([
|
|
158
|
-
|
|
162
|
+
ddsElement("daikin-avatar")
|
|
159
163
|
], DaikinAvatar);
|
|
160
164
|
export {
|
|
161
165
|
DaikinAvatar
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A badge is used to display notification counts, status indicators, or small dots in the UI—commonly for message alerts or status marking.
|
|
4
|
+
*
|
|
5
|
+
* @slot - A slot for anchoring element. Place `daikin-icon-button` here.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
*
|
|
9
|
+
* ```js
|
|
10
|
+
* import "@daikin-oss/design-system-web-components/components/badge/index.js";
|
|
11
|
+
* import "@daikin-oss/design-system-web-components/components/icon/index.js";
|
|
12
|
+
* import "@daikin-oss/design-system-web-components/components/icon-button/index.js";
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <daikin-badge count="42" max-count="999" color="danger">
|
|
17
|
+
* <daikin-icon-button variant="ghost" size="m" buttonAriaLabel="42 unread notifications">
|
|
18
|
+
* <daikin-icon
|
|
19
|
+
* class="w-8 h-8"
|
|
20
|
+
* icon="notification"
|
|
21
|
+
* size="current"
|
|
22
|
+
* color="current"
|
|
23
|
+
* >
|
|
24
|
+
* </daikin-icon>
|
|
25
|
+
* </daikin-icon-button>
|
|
26
|
+
* </daikin-badge>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class DaikinBadge extends DDSElement {
|
|
30
|
+
static readonly styles: import('lit').CSSResult;
|
|
31
|
+
/**
|
|
32
|
+
* Badge type.
|
|
33
|
+
* - "number": Displays a number (e.g., message count, quantity).
|
|
34
|
+
* - "dot": Displays only a small dot (e.g., status indicator).
|
|
35
|
+
* @default "dot"
|
|
36
|
+
*/
|
|
37
|
+
type: "number" | "dot";
|
|
38
|
+
/**
|
|
39
|
+
* The numeric content displayed in the badge.
|
|
40
|
+
* Only effective when type="number".
|
|
41
|
+
* Accepts a string or null; will be parsed as a number internally.
|
|
42
|
+
* @example "5"
|
|
43
|
+
*/
|
|
44
|
+
count: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The maximum number to display in the badge.
|
|
47
|
+
* If the count exceeds this value, it will display as "maxCount+", e.g., "99+".
|
|
48
|
+
* Only effective when type="number".
|
|
49
|
+
* @example "99"
|
|
50
|
+
*/
|
|
51
|
+
maxCount: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Whether to hide the badge.
|
|
54
|
+
* - true: The badge is not displayed (slot content remains visible).
|
|
55
|
+
* - false: The badge is displayed normally.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
invisible: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Badge color.
|
|
61
|
+
* Supports predefined semantic color tokens (danger, alarm, warning, success, information).
|
|
62
|
+
* @default "danger"
|
|
63
|
+
*/
|
|
64
|
+
color: "danger" | "alarm" | "warning" | "success" | "information";
|
|
65
|
+
/**
|
|
66
|
+
* Computes the actual number to display in the badge.
|
|
67
|
+
* - If count is null or invalid, displays "0".
|
|
68
|
+
* - If count exceeds maxCount, displays "maxCount+".
|
|
69
|
+
* - Otherwise, displays the actual number.
|
|
70
|
+
*/
|
|
71
|
+
private get _count();
|
|
72
|
+
/**
|
|
73
|
+
* Renders the badge component.
|
|
74
|
+
* - Renders a small dot when type="dot".
|
|
75
|
+
* - Renders a number when type="number" and count > 0.
|
|
76
|
+
* - Does not render the badge if invisible=true.
|
|
77
|
+
* - The slot wraps the icon button.
|
|
78
|
+
*/
|
|
79
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
80
|
+
}
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
"daikin-badge": DaikinBadge;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
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";
|
|
8
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
+
if (decorator = decorators[i])
|
|
15
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
+
if (kind && result) __defProp(target, key, result);
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
19
|
+
const cvaBadge = cva(["absolute", "rounded-full"], {
|
|
20
|
+
variants: {
|
|
21
|
+
type: {
|
|
22
|
+
number: [
|
|
23
|
+
"h-4",
|
|
24
|
+
"min-w-4",
|
|
25
|
+
"px-1",
|
|
26
|
+
"text-[10px]",
|
|
27
|
+
"font-normal",
|
|
28
|
+
"font-daikinSerif",
|
|
29
|
+
"text-white",
|
|
30
|
+
"flex",
|
|
31
|
+
"items-center",
|
|
32
|
+
"justify-center",
|
|
33
|
+
"-top-[2px]",
|
|
34
|
+
"-right-[2px]",
|
|
35
|
+
"before:content-[attr(data-count)]",
|
|
36
|
+
"before:leading-none",
|
|
37
|
+
"before:whitespace-nowrap",
|
|
38
|
+
"data-[count=0]:hidden"
|
|
39
|
+
],
|
|
40
|
+
dot: ["w-2", "h-2", "top-1", "right-1"]
|
|
41
|
+
},
|
|
42
|
+
color: {
|
|
43
|
+
danger: ["bg-ddt-color-common-danger-default"],
|
|
44
|
+
alarm: ["bg-ddt-color-common-alarm"],
|
|
45
|
+
warning: ["bg-ddt-color-common-warning"],
|
|
46
|
+
success: ["bg-ddt-color-common-success"],
|
|
47
|
+
information: ["bg-ddt-color-common-information"]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
let DaikinBadge = class extends DDSElement {
|
|
52
|
+
constructor() {
|
|
53
|
+
super(...arguments);
|
|
54
|
+
this.type = "dot";
|
|
55
|
+
this.count = null;
|
|
56
|
+
this.maxCount = "99";
|
|
57
|
+
this.invisible = false;
|
|
58
|
+
this.color = "danger";
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Computes the actual number to display in the badge.
|
|
62
|
+
* - If count is null or invalid, displays "0".
|
|
63
|
+
* - If count exceeds maxCount, displays "maxCount+".
|
|
64
|
+
* - Otherwise, displays the actual number.
|
|
65
|
+
*/
|
|
66
|
+
get _count() {
|
|
67
|
+
if (this.count == null) {
|
|
68
|
+
return "0";
|
|
69
|
+
}
|
|
70
|
+
const count = parseInt(this.count, 10);
|
|
71
|
+
const maxCount = this.maxCount ? parseInt(this.maxCount, 10) : null;
|
|
72
|
+
if (isNaN(count) || count < 0) {
|
|
73
|
+
return "0";
|
|
74
|
+
}
|
|
75
|
+
if (maxCount != null && !isNaN(maxCount) && count > maxCount) {
|
|
76
|
+
return `${maxCount.toLocaleString()}+`;
|
|
77
|
+
}
|
|
78
|
+
return count.toLocaleString();
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Renders the badge component.
|
|
82
|
+
* - Renders a small dot when type="dot".
|
|
83
|
+
* - Renders a number when type="number" and count > 0.
|
|
84
|
+
* - Does not render the badge if invisible=true.
|
|
85
|
+
* - The slot wraps the icon button.
|
|
86
|
+
*/
|
|
87
|
+
render() {
|
|
88
|
+
return html`
|
|
89
|
+
<slot></slot>
|
|
90
|
+
<span
|
|
91
|
+
role="presentation"
|
|
92
|
+
data-count=${this._count}
|
|
93
|
+
class=${cvaBadge({
|
|
94
|
+
type: this.type,
|
|
95
|
+
color: this.color
|
|
96
|
+
})}
|
|
97
|
+
?hidden=${this.invisible}
|
|
98
|
+
></span>
|
|
99
|
+
`;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
DaikinBadge.styles = css`
|
|
103
|
+
${unsafeCSS(tailwindStyles)}
|
|
104
|
+
|
|
105
|
+
:host {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
position: relative;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
span[hidden] {
|
|
111
|
+
display: none;
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
__decorateClass([
|
|
115
|
+
property({ type: String, reflect: true })
|
|
116
|
+
], DaikinBadge.prototype, "type", 2);
|
|
117
|
+
__decorateClass([
|
|
118
|
+
property({ type: String, reflect: true })
|
|
119
|
+
], DaikinBadge.prototype, "count", 2);
|
|
120
|
+
__decorateClass([
|
|
121
|
+
property({ type: String, reflect: true, attribute: "max-count" })
|
|
122
|
+
], DaikinBadge.prototype, "maxCount", 2);
|
|
123
|
+
__decorateClass([
|
|
124
|
+
property({ type: Boolean, reflect: true })
|
|
125
|
+
], DaikinBadge.prototype, "invisible", 2);
|
|
126
|
+
__decorateClass([
|
|
127
|
+
property({ type: String, reflect: true })
|
|
128
|
+
], DaikinBadge.prototype, "color", 2);
|
|
129
|
+
DaikinBadge = __decorateClass([
|
|
130
|
+
ddsElement("daikin-badge")
|
|
131
|
+
], DaikinBadge);
|
|
132
|
+
export {
|
|
133
|
+
DaikinBadge
|
|
134
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-badge.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";
|
|
@@ -2,6 +2,7 @@ import { unsafeCSS, css, html, nothing } from "lit";
|
|
|
2
2
|
import { property } from "lit/decorators.js";
|
|
3
3
|
import { ifDefined } from "lit/directives/if-defined.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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DDSFormSubmitElement } from "../../base/
|
|
1
|
+
import { DDSFormSubmitElement } from "../../base/index.js";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.js";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
4
4
|
declare const cvaButton: (props?: ({
|
|
5
|
-
color?: "
|
|
5
|
+
color?: "danger" | "default" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
7
7
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -3,9 +3,9 @@ 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
|
-
import { DDSFormSubmitElement } from "../../base/dds-form-element.js";
|
|
9
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
3
|
/**
|
|
3
4
|
* The calendar component provides calendar elements. It has a function for selecting dates, and is also used in `daikin-date-picker`.
|
|
4
5
|
*
|
|
@@ -15,7 +16,7 @@ import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
|
15
16
|
* <daikin-calendar></daikin-calendar>
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
18
|
-
export declare class DaikinCalendar extends
|
|
19
|
+
export declare class DaikinCalendar extends DDSElement {
|
|
19
20
|
static readonly styles: import('lit').CSSResult;
|
|
20
21
|
/**
|
|
21
22
|
* The current value of the input, submitted as a name/value pair with form data.
|
|
@@ -45,6 +46,15 @@ export declare class DaikinCalendar extends LitElement {
|
|
|
45
46
|
* Intended for use only by `daikin-date-picker`.
|
|
46
47
|
*/
|
|
47
48
|
view: "year" | "month" | "day";
|
|
49
|
+
/**
|
|
50
|
+
* The date that was last focused.
|
|
51
|
+
* Used to preserve focus when tabbing out and back in.
|
|
52
|
+
*/
|
|
53
|
+
private _lastFocusedDate;
|
|
54
|
+
/**
|
|
55
|
+
* The date to be focused.
|
|
56
|
+
* Used to set focus on a date that is not in the current view (year and month).
|
|
57
|
+
*/
|
|
48
58
|
private _dateToBeFocused;
|
|
49
59
|
private get _value();
|
|
50
60
|
private get _min();
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { unsafeCSS, css,
|
|
3
|
-
import { property, state
|
|
2
|
+
import { unsafeCSS, css, html, nothing } from "lit";
|
|
3
|
+
import { property, state } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import { repeat } from "lit/directives/repeat.js";
|
|
6
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
7
|
+
import "../../base/dds-form-element.js";
|
|
8
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
9
|
+
import "../../base/define.js";
|
|
6
10
|
import tailwindStyles from "../../tailwind.css.js";
|
|
7
|
-
import { tryParseDateFromProperty, parseDateFromProperty, cloneDate, isMonthOutOfRange, getDateByMonthOffsetClamped, formatDateForProperty, clampDate, isSameYearMonth, createDateClamped, calcWeeksOnCalendar, isDateOutOfRange, cvaIconButton, normalizeDate, DEFAULT_MIN_DATE, DEFAULT_MAX_DATE } from "../../utils/calendar-common.js";
|
|
11
|
+
import { tryParseDateFromProperty, parseDateFromProperty, cloneDate, isMonthOutOfRange, getDateByMonthOffsetClamped, formatDateForProperty, clampDate, isSameYearMonth, createDateClamped, calcWeeksOnCalendar, toFirstDayOfMonth, isDateOutOfRange, cvaIconButton, normalizeDate, DEFAULT_MIN_DATE, DEFAULT_MAX_DATE } from "../../utils/calendar-common.js";
|
|
8
12
|
import { scrollIntoViewOnlyParent } from "../../utils/scroller.js";
|
|
9
13
|
import "../icon-button/daikin-icon-button.js";
|
|
10
14
|
var __defProp = Object.defineProperty;
|
|
@@ -117,7 +121,7 @@ function getNextFocusDateByKey(date, event) {
|
|
|
117
121
|
}
|
|
118
122
|
return null;
|
|
119
123
|
}
|
|
120
|
-
let DaikinCalendar = class extends
|
|
124
|
+
let DaikinCalendar = class extends DDSElement {
|
|
121
125
|
constructor() {
|
|
122
126
|
super(...arguments);
|
|
123
127
|
this.value = null;
|
|
@@ -125,6 +129,7 @@ let DaikinCalendar = class extends LitElement {
|
|
|
125
129
|
this.max = "2099-12-31";
|
|
126
130
|
this.defaultValue = null;
|
|
127
131
|
this.view = "day";
|
|
132
|
+
this._lastFocusedDate = null;
|
|
128
133
|
this._dateToBeFocused = null;
|
|
129
134
|
this._viewDate = getToday();
|
|
130
135
|
}
|
|
@@ -171,6 +176,7 @@ let DaikinCalendar = class extends LitElement {
|
|
|
171
176
|
}
|
|
172
177
|
_navigateMonth(date, offset) {
|
|
173
178
|
this._viewDate = getDateByMonthOffsetClamped(date, offset);
|
|
179
|
+
this._lastFocusedDate = null;
|
|
174
180
|
}
|
|
175
181
|
_handleCalendarClick(date) {
|
|
176
182
|
this.value = formatDateForProperty(date);
|
|
@@ -202,6 +208,7 @@ let DaikinCalendar = class extends LitElement {
|
|
|
202
208
|
`[data-type=day][data-date="${formatDateForProperty(dateToBeFocused)}"]`
|
|
203
209
|
);
|
|
204
210
|
if (dateButton && isSameYearMonth(dateToBeFocused, focusedDate)) {
|
|
211
|
+
this._lastFocusedDate = dateToBeFocused;
|
|
205
212
|
dateButton.focus();
|
|
206
213
|
} else {
|
|
207
214
|
this._dateToBeFocused = dateToBeFocused;
|
|
@@ -357,7 +364,19 @@ let DaikinCalendar = class extends LitElement {
|
|
|
357
364
|
viewDate.getUTCFullYear(),
|
|
358
365
|
viewDate.getUTCMonth()
|
|
359
366
|
);
|
|
360
|
-
const focusable =
|
|
367
|
+
const focusable = (
|
|
368
|
+
// If the last focused date is in the same month as the view date, use it as the focusable date.
|
|
369
|
+
this._lastFocusedDate && isSameYearMonth(viewDate, this._lastFocusedDate) ? this._lastFocusedDate : (
|
|
370
|
+
// If the value is in the same month as the view date, use it as the focusable date.
|
|
371
|
+
value && isSameYearMonth(viewDate, value) ? value : (
|
|
372
|
+
// If today's date is in the same month as the view date, use it as the focusable date.
|
|
373
|
+
isSameYearMonth(viewDate, today) ? today : (
|
|
374
|
+
// Otherwise, use the first day of the month (clamped).
|
|
375
|
+
clampDate(toFirstDayOfMonth(viewDate), min, max)
|
|
376
|
+
)
|
|
377
|
+
)
|
|
378
|
+
)
|
|
379
|
+
);
|
|
361
380
|
return html`<div class="flex flex-col gap-2 w-full h-72" role="grid">
|
|
362
381
|
<div class="flex gap-1 flex-wrap w-full px-4" role="row">
|
|
363
382
|
${repeat(
|
|
@@ -392,9 +411,7 @@ let DaikinCalendar = class extends LitElement {
|
|
|
392
411
|
})}
|
|
393
412
|
role="gridcell"
|
|
394
413
|
?disabled=${isDateOutOfRange(date, min, max)}
|
|
395
|
-
tabindex=${
|
|
396
|
-
focusable.getTime() != date.getTime() ? -1 : void 0
|
|
397
|
-
)}
|
|
414
|
+
tabindex=${date.getTime() === focusable.getTime() ? nothing : -1}
|
|
398
415
|
aria-current=${date.getTime() === today.getTime() ? "date" : nothing}
|
|
399
416
|
aria-selected=${date.getTime() === (value == null ? void 0 : value.getTime())}
|
|
400
417
|
data-type="day"
|
|
@@ -492,11 +509,14 @@ let DaikinCalendar = class extends LitElement {
|
|
|
492
509
|
}
|
|
493
510
|
}
|
|
494
511
|
updated(changedProperties) {
|
|
495
|
-
if (
|
|
512
|
+
if (this._dateToBeFocused != null) {
|
|
496
513
|
const dateButton = this.renderRoot.querySelector(
|
|
497
514
|
`[data-type=day][data-date="${formatDateForProperty(this._dateToBeFocused)}"]`
|
|
498
515
|
);
|
|
499
|
-
|
|
516
|
+
if (dateButton) {
|
|
517
|
+
this._lastFocusedDate = this._dateToBeFocused;
|
|
518
|
+
dateButton.focus();
|
|
519
|
+
}
|
|
500
520
|
this._dateToBeFocused = null;
|
|
501
521
|
}
|
|
502
522
|
if (changedProperties.get("view") != null) {
|
|
@@ -539,11 +559,17 @@ __decorateClass([
|
|
|
539
559
|
__decorateClass([
|
|
540
560
|
property({ type: String, attribute: false })
|
|
541
561
|
], DaikinCalendar.prototype, "view", 2);
|
|
562
|
+
__decorateClass([
|
|
563
|
+
state()
|
|
564
|
+
], DaikinCalendar.prototype, "_lastFocusedDate", 2);
|
|
565
|
+
__decorateClass([
|
|
566
|
+
state()
|
|
567
|
+
], DaikinCalendar.prototype, "_dateToBeFocused", 2);
|
|
542
568
|
__decorateClass([
|
|
543
569
|
state()
|
|
544
570
|
], DaikinCalendar.prototype, "_viewDate", 2);
|
|
545
571
|
DaikinCalendar = __decorateClass([
|
|
546
|
-
|
|
572
|
+
ddsElement("daikin-calendar")
|
|
547
573
|
], DaikinCalendar);
|
|
548
574
|
export {
|
|
549
575
|
DaikinCalendar
|
|
@@ -2,6 +2,7 @@ import { cva } from "class-variance-authority";
|
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
3
3
|
import { property } 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";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { unsafeCSS, css, html } from "lit";
|
|
2
2
|
import { DDSElement } from "../../base/dds-element.js";
|
|
3
|
+
import "../../base/dds-form-element.js";
|
|
3
4
|
import { ddsElement } from "../../base/decorators.js";
|
|
4
5
|
import "../../base/define.js";
|
|
5
6
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import { unsafeCSS, css, html } from "lit";
|
|
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";
|
|
@@ -4,6 +4,7 @@ import { property, queryAssignedElements, state } from "lit/decorators.js";
|
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { repeat } from "lit/directives/repeat.js";
|
|
6
6
|
import { DDSElement } from "../../base/dds-element.js";
|
|
7
|
+
import "../../base/dds-form-element.js";
|
|
7
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
8
9
|
import "../../base/define.js";
|
|
9
10
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { unsafeCSS, css, html } from "lit";
|
|
2
2
|
import { property, queryAssignedElements, state } 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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
|
-
import { DDSFormElement } from "../../base/
|
|
2
|
+
import { DDSFormElement } from "../../base/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* The checkbox component is a UI element that allows users to select one or more options from a list of choices.
|
|
5
5
|
* It functions similarly to the HTML `<input type="checkbox">` tag, enabling users to toggle the selection of each option independently.
|
|
@@ -2,9 +2,9 @@ import { cva } from "class-variance-authority";
|
|
|
2
2
|
import { unsafeCSS, css, nothing, html } from "lit";
|
|
3
3
|
import { property } from "lit/decorators.js";
|
|
4
4
|
import "../../base/dds-element.js";
|
|
5
|
+
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
5
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
6
7
|
import "../../base/define.js";
|
|
7
|
-
import { DDSFormElement } from "../../base/dds-form-element.js";
|
|
8
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
3
3
|
import { DaikinInputGroup } from "../input-group/index.js";
|
|
4
4
|
declare const cvaCheckboxGroup: (props?: ({
|
|
@@ -29,7 +29,7 @@ type CheckboxGroupProps = MergeVariantProps<typeof cvaCheckboxGroup>;
|
|
|
29
29
|
* </daikin-checkbox-group>
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
export declare class DaikinCheckboxGroup extends
|
|
32
|
+
export declare class DaikinCheckboxGroup extends DDSElement {
|
|
33
33
|
static readonly styles: import('lit').CSSResult;
|
|
34
34
|
/**
|
|
35
35
|
* Specify the checkbox group orientation
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import { unsafeCSS, css,
|
|
3
|
-
import { property, state, queryAssignedElements
|
|
2
|
+
import { unsafeCSS, css, html } from "lit";
|
|
3
|
+
import { property, state, queryAssignedElements } 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;
|
|
@@ -21,7 +25,7 @@ const cvaCheckboxGroup = cva(["size-full", "flex", "gap-x-8", "gap-y-2"], {
|
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
});
|
|
24
|
-
let DaikinCheckboxGroup = class extends
|
|
28
|
+
let DaikinCheckboxGroup = class extends DDSElement {
|
|
25
29
|
constructor() {
|
|
26
30
|
super(...arguments);
|
|
27
31
|
this.orientation = "vertical";
|
|
@@ -88,7 +92,7 @@ __decorateClass([
|
|
|
88
92
|
})
|
|
89
93
|
], DaikinCheckboxGroup.prototype, "_checkboxes", 2);
|
|
90
94
|
DaikinCheckboxGroup = __decorateClass([
|
|
91
|
-
|
|
95
|
+
ddsElement("daikin-checkbox-group")
|
|
92
96
|
], DaikinCheckboxGroup);
|
|
93
97
|
export {
|
|
94
98
|
DaikinCheckboxGroup
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* A chip is a small UI component that represents a single piece of information, a filter, or a contact. Think of it as a compact tag or a small, clickable token.
|
|
4
4
|
*
|
|
@@ -14,7 +14,7 @@ import { LitElement } from 'lit';
|
|
|
14
14
|
* <daikin-chip chip-aria-label="Chip Text">Text</daikin-chip>
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
export declare class DaikinChip extends
|
|
17
|
+
export declare class DaikinChip extends DDSElement {
|
|
18
18
|
static readonly styles: import('lit').CSSResult;
|
|
19
19
|
/**
|
|
20
20
|
* Provides an accessible name of the chip.
|
|
@@ -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;
|
|
@@ -42,7 +46,7 @@ const cvaRemoveButton = cva([
|
|
|
42
46
|
"text-[--color-primary]",
|
|
43
47
|
"bg-[--color-secondary]"
|
|
44
48
|
]);
|
|
45
|
-
let DaikinChip = class extends
|
|
49
|
+
let DaikinChip = class extends DDSElement {
|
|
46
50
|
constructor() {
|
|
47
51
|
super(...arguments);
|
|
48
52
|
this.chipAriaLabel = null;
|
|
@@ -100,7 +104,7 @@ __decorateClass([
|
|
|
100
104
|
query("button")
|
|
101
105
|
], DaikinChip.prototype, "_focusableElement", 2);
|
|
102
106
|
DaikinChip = __decorateClass([
|
|
103
|
-
|
|
107
|
+
ddsElement("daikin-chip")
|
|
104
108
|
], DaikinChip);
|
|
105
109
|
export {
|
|
106
110
|
DaikinChip
|