@daikin-oss/design-system-web-components 1.1.0 → 1.3.0-next.2
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 +145 -0
- package/LICENSE +1 -1
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/base/dds-form-element.cjs +139 -0
- package/dist/cjs/base/dds-form-element.d.cts +100 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +7 -3
- package/dist/cjs/components/avatar/daikin-avatar.cjs +1 -0
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +3 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +2 -0
- package/dist/cjs/components/button/daikin-button.cjs +35 -13
- package/dist/cjs/components/button/daikin-button.d.cts +20 -10
- package/dist/cjs/components/calendar/daikin-calendar.cjs +549 -0
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +87 -0
- package/dist/cjs/components/calendar/index.cjs +7 -0
- package/dist/cjs/components/calendar/index.d.cts +1 -0
- package/dist/cjs/components/card/daikin-card.cjs +1 -1
- package/dist/cjs/components/card-header/daikin-card-header.cjs +1 -1
- package/dist/cjs/components/carousel/daikin-carousel.cjs +7 -3
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +2 -2
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +12 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +9 -12
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +94 -0
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +69 -0
- package/dist/cjs/components/checkbox-group/index.cjs +7 -0
- package/dist/cjs/components/checkbox-group/index.d.cts +1 -0
- package/dist/cjs/components/chip/daikin-chip.cjs +106 -0
- package/dist/cjs/components/chip/daikin-chip.d.cts +36 -0
- package/dist/cjs/components/chip/index.cjs +7 -0
- package/dist/cjs/components/chip/index.d.cts +1 -0
- package/dist/cjs/components/combobox/daikin-combobox.cjs +604 -0
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +134 -0
- package/dist/cjs/components/combobox/index.cjs +8 -0
- package/dist/cjs/components/combobox/index.d.cts +1 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +626 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +106 -0
- package/dist/cjs/components/date-picker/index.cjs +7 -0
- package/dist/cjs/components/date-picker/index.d.cts +1 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +91 -57
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +7 -15
- package/dist/cjs/components/icon/daikin-icon.cjs +117 -12
- package/dist/cjs/components/icon/daikin-icon.d.cts +129 -9
- package/dist/cjs/components/icon/icons.json.cjs +6 -2
- package/dist/cjs/components/icon/icons.json.d.cts +16 -16
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +30 -4
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +20 -2
- package/dist/cjs/components/index.cjs +81 -0
- package/dist/cjs/components/index.d.cts +14 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +13 -18
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +3 -1
- package/dist/cjs/components/input-group/daikin-input-group.cjs +4 -4
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +50 -1
- package/dist/cjs/components/list/daikin-list.cjs +75 -3
- package/dist/cjs/components/list/daikin-list.d.cts +16 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +27 -7
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +9 -3
- package/dist/cjs/components/loading/daikin-loading.cjs +1 -1
- package/dist/cjs/components/loading/daikin-loading.d.cts +1 -0
- package/dist/cjs/components/logo/daikin-logo.cjs +105 -0
- package/dist/cjs/components/logo/daikin-logo.d.cts +54 -0
- package/dist/cjs/components/logo/index.cjs +7 -0
- package/dist/cjs/components/logo/index.d.cts +1 -0
- package/dist/cjs/components/menu/daikin-menu.cjs +205 -0
- package/dist/cjs/components/menu/daikin-menu.d.cts +89 -0
- package/dist/cjs/components/menu/index.cjs +7 -0
- package/dist/cjs/components/menu/index.d.cts +1 -0
- package/dist/cjs/components/modal/daikin-modal.cjs +115 -0
- package/dist/cjs/components/modal/daikin-modal.d.cts +61 -0
- package/dist/cjs/components/modal/index.cjs +7 -0
- package/dist/cjs/components/modal/index.d.cts +1 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +40 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.d.cts +33 -0
- package/dist/cjs/components/modal-footer/index.cjs +7 -0
- package/dist/cjs/components/modal-footer/index.d.cts +1 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +96 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.d.cts +43 -0
- package/dist/cjs/components/modal-header/index.cjs +7 -0
- package/dist/cjs/components/modal-header/index.d.cts +1 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +5 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +1 -1
- package/dist/cjs/components/radio/daikin-radio.cjs +4 -13
- package/dist/cjs/components/radio/daikin-radio.d.cts +2 -12
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +1 -1
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs/components/select/daikin-select.cjs +6 -1
- package/dist/cjs/components/slider/daikin-slider.cjs +263 -0
- package/dist/cjs/components/slider/daikin-slider.d.cts +67 -0
- package/dist/cjs/components/slider/index.cjs +7 -0
- package/dist/cjs/components/slider/index.d.cts +1 -0
- package/dist/cjs/components/slider/slider-utils.cjs +57 -0
- package/dist/cjs/components/slider/slider-utils.d.cts +37 -0
- package/dist/cjs/components/tab/daikin-tab.cjs +1 -0
- package/dist/cjs/components/table/daikin-table.cjs +74 -15
- package/dist/cjs/components/table/daikin-table.d.cts +72 -34
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +2 -1
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +1 -1
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +31 -6
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +8 -1
- package/dist/cjs/components/tabs/daikin-tabs.cjs +2 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +4 -13
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +2 -12
- package/dist/cjs/components/text-field/daikin-text-field.cjs +289 -57
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +57 -18
- package/dist/cjs/components/text-field/number-utils.cjs +61 -0
- package/dist/cjs/components/text-field/number-utils.d.cts +26 -0
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +312 -0
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.d.cts +136 -0
- package/dist/cjs/components/text-masked-field/index.cjs +7 -0
- package/dist/cjs/components/text-masked-field/index.d.cts +1 -0
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +577 -0
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +165 -0
- package/dist/cjs/components/time-picker/index.cjs +17 -0
- package/dist/cjs/components/time-picker/index.d.cts +1 -0
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +10 -7
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +2 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs/components/toggle/daikin-toggle.cjs +4 -13
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +2 -12
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +24 -8
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +11 -3
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +2 -0
- package/dist/cjs/controllers/click-outside.cjs +3 -1
- package/dist/cjs/controllers/floating-ui-auto-update.cjs +22 -4
- package/dist/cjs/controllers/floating-ui-auto-update.d.cts +12 -0
- package/dist/cjs/controllers/focus-trap.cjs +42 -0
- package/dist/cjs/controllers/focus-trap.d.cts +10 -0
- package/dist/cjs/icon-registry.cjs +170 -0
- package/dist/cjs/icon-registry.d.cts +120 -0
- package/dist/cjs/index.cjs +84 -0
- package/dist/cjs/index.d.cts +1 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +151 -0
- package/dist/cjs/utils/calendar-common.d.cts +64 -0
- package/dist/cjs/utils/notification-common.cjs +19 -15
- package/dist/cjs/utils/notification-common.d.cts +2 -2
- package/dist/cjs/{components/tabs → utils}/scroller.cjs +20 -12
- package/dist/cjs/{components/tabs → utils}/scroller.d.cts +2 -2
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/base/dds-form-element.cjs +139 -0
- package/dist/cjs-dev/base/dds-form-element.d.cts +100 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +7 -3
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +1 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +3 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +2 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +35 -13
- package/dist/cjs-dev/components/button/daikin-button.d.cts +20 -10
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +560 -0
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +87 -0
- package/dist/cjs-dev/components/calendar/index.cjs +7 -0
- package/dist/cjs-dev/components/calendar/index.d.cts +1 -0
- package/dist/cjs-dev/components/card/daikin-card.cjs +1 -1
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +1 -1
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +7 -3
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +2 -2
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +12 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +9 -12
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +94 -0
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +69 -0
- package/dist/cjs-dev/components/checkbox-group/index.cjs +7 -0
- package/dist/cjs-dev/components/checkbox-group/index.d.cts +1 -0
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +106 -0
- package/dist/cjs-dev/components/chip/daikin-chip.d.cts +36 -0
- package/dist/cjs-dev/components/chip/index.cjs +7 -0
- package/dist/cjs-dev/components/chip/index.d.cts +1 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +604 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +134 -0
- package/dist/cjs-dev/components/combobox/index.cjs +8 -0
- package/dist/cjs-dev/components/combobox/index.d.cts +1 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +637 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +106 -0
- package/dist/cjs-dev/components/date-picker/index.cjs +7 -0
- package/dist/cjs-dev/components/date-picker/index.d.cts +1 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +91 -57
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +7 -15
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +141 -16
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +129 -9
- package/dist/cjs-dev/components/icon/icons.json.cjs +6 -2
- package/dist/cjs-dev/components/icon/icons.json.d.cts +16 -16
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +30 -4
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +20 -2
- package/dist/cjs-dev/components/index.cjs +81 -0
- package/dist/cjs-dev/components/index.d.cts +14 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +13 -18
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +3 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +4 -4
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +50 -1
- package/dist/cjs-dev/components/list/daikin-list.cjs +75 -3
- package/dist/cjs-dev/components/list/daikin-list.d.cts +16 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +27 -7
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +9 -3
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +1 -1
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +1 -0
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +105 -0
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +54 -0
- package/dist/cjs-dev/components/logo/index.cjs +7 -0
- package/dist/cjs-dev/components/logo/index.d.cts +1 -0
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +205 -0
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +89 -0
- package/dist/cjs-dev/components/menu/index.cjs +7 -0
- package/dist/cjs-dev/components/menu/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +115 -0
- package/dist/cjs-dev/components/modal/daikin-modal.d.cts +61 -0
- package/dist/cjs-dev/components/modal/index.cjs +7 -0
- package/dist/cjs-dev/components/modal/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +40 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.d.cts +33 -0
- package/dist/cjs-dev/components/modal-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/modal-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +96 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.d.cts +43 -0
- package/dist/cjs-dev/components/modal-header/index.cjs +7 -0
- package/dist/cjs-dev/components/modal-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +5 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +1 -1
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +4 -13
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +2 -12
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +1 -1
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs-dev/components/select/daikin-select.cjs +6 -1
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +263 -0
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +67 -0
- package/dist/cjs-dev/components/slider/index.cjs +7 -0
- package/dist/cjs-dev/components/slider/index.d.cts +1 -0
- package/dist/cjs-dev/components/slider/slider-utils.cjs +57 -0
- package/dist/cjs-dev/components/slider/slider-utils.d.cts +37 -0
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +1 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +77 -18
- package/dist/cjs-dev/components/table/daikin-table.d.cts +72 -34
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +2 -1
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +1 -1
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +31 -6
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +8 -1
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +2 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +4 -13
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +2 -12
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +289 -57
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +57 -18
- package/dist/cjs-dev/components/text-field/number-utils.cjs +64 -0
- package/dist/cjs-dev/components/text-field/number-utils.d.cts +26 -0
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +312 -0
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.d.cts +136 -0
- package/dist/cjs-dev/components/text-masked-field/index.cjs +7 -0
- package/dist/cjs-dev/components/text-masked-field/index.d.cts +1 -0
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +589 -0
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +165 -0
- package/dist/cjs-dev/components/time-picker/index.cjs +17 -0
- package/dist/cjs-dev/components/time-picker/index.d.cts +1 -0
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +10 -7
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +2 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +4 -13
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +2 -12
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +24 -8
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +11 -3
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +2 -0
- package/dist/cjs-dev/controllers/click-outside.cjs +3 -1
- package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +22 -4
- package/dist/cjs-dev/controllers/floating-ui-auto-update.d.cts +12 -0
- package/dist/cjs-dev/controllers/focus-trap.cjs +42 -0
- package/dist/cjs-dev/controllers/focus-trap.d.cts +10 -0
- package/dist/cjs-dev/icon-registry.cjs +170 -0
- package/dist/cjs-dev/icon-registry.d.cts +120 -0
- package/dist/cjs-dev/index.cjs +84 -0
- package/dist/cjs-dev/index.d.cts +1 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +151 -0
- package/dist/cjs-dev/utils/calendar-common.d.cts +64 -0
- package/dist/cjs-dev/utils/notification-common.cjs +19 -15
- package/dist/cjs-dev/utils/notification-common.d.cts +2 -2
- package/dist/cjs-dev/{components/tabs → utils}/scroller.cjs +20 -12
- package/dist/cjs-dev/{components/tabs → utils}/scroller.d.cts +2 -2
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/base/dds-form-element.d.ts +100 -0
- package/dist/es/base/dds-form-element.js +139 -0
- package/dist/es/components/accordion/daikin-accordion.js +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +8 -4
- package/dist/es/components/avatar/daikin-avatar.d.ts +3 -0
- package/dist/es/components/avatar/daikin-avatar.js +2 -1
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +1 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +3 -1
- package/dist/es/components/button/daikin-button.d.ts +20 -10
- package/dist/es/components/button/daikin-button.js +36 -14
- package/dist/es/components/calendar/daikin-calendar.d.ts +87 -0
- package/dist/es/components/calendar/daikin-calendar.js +550 -0
- package/dist/es/components/calendar/index.d.ts +1 -0
- package/dist/es/components/calendar/index.js +4 -0
- package/dist/es/components/card/daikin-card.js +2 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +1 -1
- package/dist/es/components/card-header/daikin-card-header.js +2 -2
- package/dist/es/components/carousel/daikin-carousel.js +8 -4
- package/dist/es/components/carousel-item/daikin-carousel-item.js +3 -3
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +9 -12
- package/dist/es/components/checkbox/daikin-checkbox.js +13 -17
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +69 -0
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +95 -0
- package/dist/es/components/checkbox-group/index.d.ts +1 -0
- package/dist/es/components/checkbox-group/index.js +4 -0
- package/dist/es/components/chip/daikin-chip.d.ts +36 -0
- package/dist/es/components/chip/daikin-chip.js +107 -0
- package/dist/es/components/chip/index.d.ts +1 -0
- package/dist/es/components/chip/index.js +4 -0
- package/dist/es/components/combobox/daikin-combobox.d.ts +134 -0
- package/dist/es/components/combobox/daikin-combobox.js +605 -0
- package/dist/es/components/combobox/index.d.ts +1 -0
- package/dist/es/components/combobox/index.js +5 -0
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +106 -0
- package/dist/es/components/date-picker/daikin-date-picker.js +627 -0
- package/dist/es/components/date-picker/index.d.ts +1 -0
- package/dist/es/components/date-picker/index.js +4 -0
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +7 -15
- package/dist/es/components/dropdown/daikin-dropdown.js +92 -58
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +1 -1
- package/dist/es/components/icon/daikin-icon.d.ts +129 -9
- package/dist/es/components/icon/daikin-icon.js +119 -14
- package/dist/es/components/icon/icons.json.d.ts +16 -16
- package/dist/es/components/icon/icons.json.js +5 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +20 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +31 -5
- package/dist/es/components/index.d.ts +14 -0
- package/dist/es/components/index.js +40 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +3 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.js +14 -19
- package/dist/es/components/input-group/daikin-input-group.d.ts +50 -1
- package/dist/es/components/input-group/daikin-input-group.js +5 -5
- package/dist/es/components/link/daikin-link.js +1 -1
- package/dist/es/components/list/daikin-list.d.ts +16 -0
- package/dist/es/components/list/daikin-list.js +76 -4
- package/dist/es/components/list-item/daikin-list-item.d.ts +9 -3
- package/dist/es/components/list-item/daikin-list-item.js +28 -8
- package/dist/es/components/loading/daikin-loading.d.ts +1 -0
- package/dist/es/components/loading/daikin-loading.js +2 -2
- package/dist/es/components/logo/daikin-logo.d.ts +54 -0
- package/dist/es/components/logo/daikin-logo.js +106 -0
- package/dist/es/components/logo/index.d.ts +1 -0
- package/dist/es/components/logo/index.js +4 -0
- package/dist/es/components/menu/daikin-menu.d.ts +89 -0
- package/dist/es/components/menu/daikin-menu.js +206 -0
- package/dist/es/components/menu/index.d.ts +1 -0
- package/dist/es/components/menu/index.js +4 -0
- package/dist/es/components/modal/daikin-modal.d.ts +61 -0
- package/dist/es/components/modal/daikin-modal.js +116 -0
- package/dist/es/components/modal/index.d.ts +1 -0
- package/dist/es/components/modal/index.js +4 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.d.ts +33 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.js +41 -0
- package/dist/es/components/modal-footer/index.d.ts +1 -0
- package/dist/es/components/modal-footer/index.js +4 -0
- package/dist/es/components/modal-header/daikin-modal-header.d.ts +43 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +97 -0
- package/dist/es/components/modal-header/index.d.ts +1 -0
- package/dist/es/components/modal-header/index.js +4 -0
- package/dist/es/components/pagination/daikin-pagination.js +1 -1
- package/dist/es/components/progress-bar/daikin-progress-bar.js +6 -6
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es/components/radio/daikin-radio.d.ts +2 -12
- package/dist/es/components/radio/daikin-radio.js +5 -14
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +2 -1
- package/dist/es/components/radio-group/daikin-radio-group.js +2 -2
- package/dist/es/components/select/daikin-select.js +7 -2
- package/dist/es/components/slider/daikin-slider.d.ts +67 -0
- package/dist/es/components/slider/daikin-slider.js +264 -0
- package/dist/es/components/slider/index.d.ts +1 -0
- package/dist/es/components/slider/index.js +4 -0
- package/dist/es/components/slider/slider-utils.d.ts +37 -0
- package/dist/es/components/slider/slider-utils.js +57 -0
- package/dist/es/components/tab/daikin-tab.js +2 -1
- package/dist/es/components/tab-panels/daikin-tab-panels.js +1 -1
- package/dist/es/components/table/daikin-table.d.ts +72 -34
- package/dist/es/components/table/daikin-table.js +75 -16
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +1 -1
- package/dist/es/components/table-cell/daikin-table-cell.js +3 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +8 -1
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +32 -7
- package/dist/es/components/tabs/daikin-tabs.js +3 -3
- package/dist/es/components/text-area/daikin-text-area.d.ts +2 -12
- package/dist/es/components/text-area/daikin-text-area.js +5 -14
- package/dist/es/components/text-field/daikin-text-field.d.ts +57 -18
- package/dist/es/components/text-field/daikin-text-field.js +290 -58
- package/dist/es/components/text-field/number-utils.d.ts +26 -0
- package/dist/es/components/text-field/number-utils.js +61 -0
- package/dist/es/components/text-masked-field/daikin-text-masked-field.d.ts +136 -0
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +313 -0
- package/dist/es/components/text-masked-field/index.d.ts +1 -0
- package/dist/es/components/text-masked-field/index.js +4 -0
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +165 -0
- package/dist/es/components/time-picker/daikin-time-picker.js +578 -0
- package/dist/es/components/time-picker/index.d.ts +1 -0
- package/dist/es/components/time-picker/index.js +14 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +2 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +11 -8
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +2 -2
- package/dist/es/components/toggle/daikin-toggle.d.ts +2 -12
- package/dist/es/components/toggle/daikin-toggle.js +5 -14
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +11 -3
- package/dist/es/components/tooltip/daikin-tooltip.js +25 -9
- package/dist/es/components/tree/daikin-tree.js +1 -1
- package/dist/es/components/tree-item/daikin-tree-item.js +1 -1
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +2 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +1 -1
- package/dist/es/controllers/click-outside.js +3 -1
- package/dist/es/controllers/floating-ui-auto-update.d.ts +12 -0
- package/dist/es/controllers/floating-ui-auto-update.js +22 -4
- package/dist/es/controllers/focus-trap.d.ts +10 -0
- package/dist/es/controllers/focus-trap.js +42 -0
- package/dist/es/icon-registry.d.ts +120 -0
- package/dist/es/icon-registry.js +170 -0
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +43 -1
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +64 -0
- package/dist/es/utils/calendar-common.js +151 -0
- package/dist/es/utils/notification-common.d.ts +2 -2
- package/dist/es/utils/notification-common.js +19 -15
- package/dist/es/{components/tabs → utils}/scroller.d.ts +2 -2
- package/dist/es/{components/tabs → utils}/scroller.js +20 -12
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/base/dds-form-element.d.ts +100 -0
- package/dist/es-dev/base/dds-form-element.js +139 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +8 -4
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +3 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +2 -1
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +1 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +3 -1
- package/dist/es-dev/components/button/daikin-button.d.ts +20 -10
- package/dist/es-dev/components/button/daikin-button.js +36 -14
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +87 -0
- package/dist/es-dev/components/calendar/daikin-calendar.js +561 -0
- package/dist/es-dev/components/calendar/index.d.ts +1 -0
- package/dist/es-dev/components/calendar/index.js +4 -0
- package/dist/es-dev/components/card/daikin-card.js +2 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -1
- package/dist/es-dev/components/card-header/daikin-card-header.js +2 -2
- package/dist/es-dev/components/carousel/daikin-carousel.js +8 -4
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +3 -3
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +9 -12
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +13 -17
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +69 -0
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +95 -0
- package/dist/es-dev/components/checkbox-group/index.d.ts +1 -0
- package/dist/es-dev/components/checkbox-group/index.js +4 -0
- package/dist/es-dev/components/chip/daikin-chip.d.ts +36 -0
- package/dist/es-dev/components/chip/daikin-chip.js +107 -0
- package/dist/es-dev/components/chip/index.d.ts +1 -0
- package/dist/es-dev/components/chip/index.js +4 -0
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +134 -0
- package/dist/es-dev/components/combobox/daikin-combobox.js +605 -0
- package/dist/es-dev/components/combobox/index.d.ts +1 -0
- package/dist/es-dev/components/combobox/index.js +5 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +106 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +638 -0
- package/dist/es-dev/components/date-picker/index.d.ts +1 -0
- package/dist/es-dev/components/date-picker/index.js +4 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +7 -15
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +92 -58
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +1 -1
- package/dist/es-dev/components/icon/daikin-icon.d.ts +129 -9
- package/dist/es-dev/components/icon/daikin-icon.js +143 -18
- package/dist/es-dev/components/icon/icons.json.d.ts +16 -16
- package/dist/es-dev/components/icon/icons.json.js +5 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +20 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +31 -5
- package/dist/es-dev/components/index.d.ts +14 -0
- package/dist/es-dev/components/index.js +40 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +3 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +14 -19
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +50 -1
- package/dist/es-dev/components/input-group/daikin-input-group.js +5 -5
- package/dist/es-dev/components/link/daikin-link.js +1 -1
- package/dist/es-dev/components/list/daikin-list.d.ts +16 -0
- package/dist/es-dev/components/list/daikin-list.js +76 -4
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +9 -3
- package/dist/es-dev/components/list-item/daikin-list-item.js +28 -8
- package/dist/es-dev/components/loading/daikin-loading.d.ts +1 -0
- package/dist/es-dev/components/loading/daikin-loading.js +2 -2
- package/dist/es-dev/components/logo/daikin-logo.d.ts +54 -0
- package/dist/es-dev/components/logo/daikin-logo.js +106 -0
- package/dist/es-dev/components/logo/index.d.ts +1 -0
- package/dist/es-dev/components/logo/index.js +4 -0
- package/dist/es-dev/components/menu/daikin-menu.d.ts +89 -0
- package/dist/es-dev/components/menu/daikin-menu.js +206 -0
- package/dist/es-dev/components/menu/index.d.ts +1 -0
- package/dist/es-dev/components/menu/index.js +4 -0
- package/dist/es-dev/components/modal/daikin-modal.d.ts +61 -0
- package/dist/es-dev/components/modal/daikin-modal.js +116 -0
- package/dist/es-dev/components/modal/index.d.ts +1 -0
- package/dist/es-dev/components/modal/index.js +4 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.d.ts +33 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +41 -0
- package/dist/es-dev/components/modal-footer/index.d.ts +1 -0
- package/dist/es-dev/components/modal-footer/index.js +4 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.d.ts +43 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +97 -0
- package/dist/es-dev/components/modal-header/index.d.ts +1 -0
- package/dist/es-dev/components/modal-header/index.js +4 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +1 -1
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +6 -6
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +1 -1
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es-dev/components/radio/daikin-radio.d.ts +2 -12
- package/dist/es-dev/components/radio/daikin-radio.js +5 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +2 -1
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +2 -2
- package/dist/es-dev/components/select/daikin-select.js +7 -2
- package/dist/es-dev/components/slider/daikin-slider.d.ts +67 -0
- package/dist/es-dev/components/slider/daikin-slider.js +264 -0
- package/dist/es-dev/components/slider/index.d.ts +1 -0
- package/dist/es-dev/components/slider/index.js +4 -0
- package/dist/es-dev/components/slider/slider-utils.d.ts +37 -0
- package/dist/es-dev/components/slider/slider-utils.js +57 -0
- package/dist/es-dev/components/tab/daikin-tab.js +2 -1
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +1 -1
- package/dist/es-dev/components/table/daikin-table.d.ts +72 -34
- package/dist/es-dev/components/table/daikin-table.js +78 -19
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +1 -1
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +3 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +8 -1
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +32 -7
- package/dist/es-dev/components/tabs/daikin-tabs.js +3 -3
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +2 -12
- package/dist/es-dev/components/text-area/daikin-text-area.js +5 -14
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +57 -18
- package/dist/es-dev/components/text-field/daikin-text-field.js +290 -58
- package/dist/es-dev/components/text-field/number-utils.d.ts +26 -0
- package/dist/es-dev/components/text-field/number-utils.js +64 -0
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.d.ts +136 -0
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +313 -0
- package/dist/es-dev/components/text-masked-field/index.d.ts +1 -0
- package/dist/es-dev/components/text-masked-field/index.js +4 -0
- package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +165 -0
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +590 -0
- package/dist/es-dev/components/time-picker/index.d.ts +1 -0
- package/dist/es-dev/components/time-picker/index.js +14 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +2 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +11 -8
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +2 -2
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +2 -12
- package/dist/es-dev/components/toggle/daikin-toggle.js +5 -14
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +11 -3
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +25 -9
- package/dist/es-dev/components/tree/daikin-tree.js +1 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +1 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +2 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +1 -1
- package/dist/es-dev/controllers/click-outside.js +3 -1
- package/dist/es-dev/controllers/floating-ui-auto-update.d.ts +12 -0
- package/dist/es-dev/controllers/floating-ui-auto-update.js +22 -4
- package/dist/es-dev/controllers/focus-trap.d.ts +10 -0
- package/dist/es-dev/controllers/focus-trap.js +42 -0
- package/dist/es-dev/icon-registry.d.ts +120 -0
- package/dist/es-dev/icon-registry.js +170 -0
- package/dist/es-dev/index.d.ts +1 -0
- package/dist/es-dev/index.js +43 -1
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +64 -0
- package/dist/es-dev/utils/calendar-common.js +151 -0
- package/dist/es-dev/utils/notification-common.d.ts +2 -2
- package/dist/es-dev/utils/notification-common.js +19 -15
- package/dist/es-dev/{components/tabs → utils}/scroller.d.ts +2 -2
- package/dist/es-dev/{components/tabs → utils}/scroller.js +20 -12
- package/icons/alarm.svg +3 -0
- package/icons/calendar.svg +3 -0
- package/icons/chevron-down.svg +3 -3
- package/icons/chevron-left.svg +2 -2
- package/icons/chevron-right.svg +2 -2
- package/icons/chevron-up.svg +2 -2
- package/icons/close.svg +3 -0
- package/icons/error.svg +3 -0
- package/icons/information.svg +3 -0
- package/icons/logo-negative.svg +10 -0
- package/icons/logo-positive.svg +10 -0
- package/icons/{dropdown-chevron-down.svg → number-minus.svg} +3 -1
- package/icons/number-plus.svg +5 -0
- package/icons/password-hidden.svg +3 -0
- package/icons/password-visible.svg +3 -0
- package/icons/pulldown-down.svg +3 -0
- package/icons/search.svg +3 -0
- package/icons/success.svg +3 -0
- package/icons/warning.svg +3 -0
- package/package.json +20 -6
- package/icons/cross.svg +0 -3
- package/icons/notification-close.svg +0 -5
- package/icons/status-alarm.svg +0 -5
- package/icons/status-error.svg +0 -3
- package/icons/status-information.svg +0 -5
- package/icons/status-negative.svg +0 -5
- package/icons/status-positive.svg +0 -5
- package/icons/status-warning.svg +0 -3
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const DEFAULT_MIN_DATE = "1900-01-01";
|
|
2
|
+
export declare const DEFAULT_MAX_DATE = "2099-12-31";
|
|
3
|
+
export declare const cvaIconButton: (props?: ({
|
|
4
|
+
intent?: "previous" | "next" | "calender" | "pulldown" | null | undefined;
|
|
5
|
+
rotate?: "default" | "inverse" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Determines whether the specified date is outside the range. Time information is ignored.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isDateOutOfRange(base: Date, min: Date, max: Date): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Determines whether the specified month and year are outside the range. Date and time information is ignored.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isMonthOutOfRange(base: Date, min: Date, max: Date): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Determines whether the year and month of two dates are the same.
|
|
17
|
+
*/
|
|
18
|
+
export declare function isSameYearMonth(a: Date, b: Date): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Stringify the date in YYYY-MM-DD format.
|
|
21
|
+
*/
|
|
22
|
+
export declare function formatDateForProperty(date: Date): string;
|
|
23
|
+
/**
|
|
24
|
+
* Parses the date in YYYY-MM-DD format and returns UTC date.
|
|
25
|
+
*/
|
|
26
|
+
export declare function parseDateFromProperty(value: string): Date;
|
|
27
|
+
/**
|
|
28
|
+
* Try parsing the date in YYYY-MM-DD format and returns UTC date if available.
|
|
29
|
+
*/
|
|
30
|
+
export declare function tryParseDateFromProperty(value: string): Date | null;
|
|
31
|
+
/**
|
|
32
|
+
* Normalizes the Date by stripping time information.
|
|
33
|
+
*/
|
|
34
|
+
export declare function normalizeDate(base: Date): Date;
|
|
35
|
+
/**
|
|
36
|
+
* Clones the Date with stripping time information.
|
|
37
|
+
*/
|
|
38
|
+
export declare function cloneDate(base: Date): Date;
|
|
39
|
+
/**
|
|
40
|
+
* Clamps the date to the specified range.
|
|
41
|
+
*/
|
|
42
|
+
export declare function clampDate(base: Date, min: Date, max: Date): Date;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves the date specified by the year, month, and day.
|
|
45
|
+
* If the specified date does not exist in the month (e.g., 2/31), it is rounded to the closest date in the same month.
|
|
46
|
+
* The month is in the range 0 to 11.
|
|
47
|
+
*/
|
|
48
|
+
export declare function createDateClamped(year: number, month: number, date: number): Date;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieves the date of the same day in a different month with the specified offset.
|
|
51
|
+
* If that day does not exist in the month (such as February 31), it is rounded to the closest day in the month.
|
|
52
|
+
*/
|
|
53
|
+
export declare function getDateByMonthOffsetClamped(base: Date, monthOffset: number): Date;
|
|
54
|
+
/**
|
|
55
|
+
* Calculates the sequence of weeks that exist on the calendar for the specified year and month.
|
|
56
|
+
* The array of weeks in each return value always starts with Sunday and contains seven dates.
|
|
57
|
+
*/
|
|
58
|
+
export declare function calcWeeksOnCalendar(year: number, month: number): Date[][];
|
|
59
|
+
/**
|
|
60
|
+
* Return the number of days in the specified year and month.
|
|
61
|
+
* @param year year starting from 1.
|
|
62
|
+
* @param month month starting from 0 (0 means January).
|
|
63
|
+
*/
|
|
64
|
+
export declare function countDaysForYearMonth(year: number, month: number): number;
|
|
@@ -48,23 +48,20 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
48
48
|
status: {
|
|
49
49
|
positive: [
|
|
50
50
|
"before:text-ddt-color-common-success",
|
|
51
|
-
"before:i-daikin-
|
|
51
|
+
"before:i-daikin-success"
|
|
52
52
|
],
|
|
53
53
|
negative: [
|
|
54
54
|
"before:text-ddt-color-common-danger-default",
|
|
55
|
-
"before:i-daikin-
|
|
55
|
+
"before:i-daikin-error"
|
|
56
56
|
],
|
|
57
57
|
warning: [
|
|
58
58
|
"before:text-ddt-color-common-warning",
|
|
59
|
-
"before:i-daikin-
|
|
60
|
-
],
|
|
61
|
-
alarm: [
|
|
62
|
-
"before:text-ddt-color-common-alarm",
|
|
63
|
-
"before:i-daikin-status-alarm"
|
|
59
|
+
"before:i-daikin-warning"
|
|
64
60
|
],
|
|
61
|
+
alarm: ["before:text-ddt-color-common-alarm", "before:i-daikin-alarm"],
|
|
65
62
|
information: [
|
|
66
63
|
"before:text-ddt-color-common-information",
|
|
67
|
-
"before:i-daikin-
|
|
64
|
+
"before:i-daikin-information"
|
|
68
65
|
]
|
|
69
66
|
}
|
|
70
67
|
}
|
|
@@ -94,15 +91,22 @@ const cvaTimestamp = classVarianceAuthority.cva(
|
|
|
94
91
|
}
|
|
95
92
|
}
|
|
96
93
|
);
|
|
97
|
-
const cvaTitle = classVarianceAuthority.cva(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
const cvaTitle = classVarianceAuthority.cva(
|
|
95
|
+
["slotted:inline-block", "font-bold", "leading-[130%]"],
|
|
96
|
+
{
|
|
97
|
+
variants: {
|
|
98
|
+
layout: {
|
|
99
|
+
vertical: [],
|
|
100
|
+
horizontal: [
|
|
101
|
+
"slotted:whitespace-nowrap",
|
|
102
|
+
"slotted:overflow-hidden",
|
|
103
|
+
"slotted:overflow-ellipsis"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
102
106
|
}
|
|
103
107
|
}
|
|
104
|
-
|
|
105
|
-
const cvaDescription = classVarianceAuthority.cva(["inline-block"], {
|
|
108
|
+
);
|
|
109
|
+
const cvaDescription = classVarianceAuthority.cva(["inline-block", "leading-[130%]"], {
|
|
106
110
|
variants: {
|
|
107
111
|
layout: {
|
|
108
112
|
vertical: [],
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
export declare const TOAST_ANIMATION_DURATION = 200;
|
|
3
3
|
export declare function formatDate(date: Date): string | null;
|
|
4
4
|
export declare const cvaContainer: (props?: ({
|
|
5
|
-
variant?: "
|
|
6
|
-
status?: "alarm" | "information" | "
|
|
5
|
+
variant?: "inline" | "toast" | null | undefined;
|
|
6
|
+
status?: "alarm" | "information" | "warning" | "positive" | "negative" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export declare const cvaContent: (props?: ({
|
|
9
9
|
layout?: "horizontal" | "vertical" | null | undefined;
|
|
@@ -5,7 +5,7 @@ function getEffectiveParentElement(element) {
|
|
|
5
5
|
return element.assignedSlot || element.parentElement || ((_a = element.parentNode) == null ? void 0 : _a.host);
|
|
6
6
|
}
|
|
7
7
|
function getBooleanForDirection(horizontal, vertical, direction) {
|
|
8
|
-
return horizontal;
|
|
8
|
+
return direction === "horizontal" ? horizontal : direction === "vertical" ? vertical : horizontal || vertical;
|
|
9
9
|
}
|
|
10
10
|
function isScrollableOverflowValue(overflow) {
|
|
11
11
|
return overflow !== "visible" && overflow !== "hidden" && overflow !== "clip";
|
|
@@ -17,43 +17,51 @@ function getFirstScrollableAncestor(element, direction) {
|
|
|
17
17
|
}
|
|
18
18
|
const overflow = getBooleanForDirection(
|
|
19
19
|
parent.scrollWidth > parent.clientWidth,
|
|
20
|
-
parent.scrollHeight > parent.clientHeight
|
|
20
|
+
parent.scrollHeight > parent.clientHeight,
|
|
21
|
+
direction
|
|
21
22
|
);
|
|
22
23
|
if (overflow) {
|
|
23
24
|
const computedStyle = getComputedStyle(parent);
|
|
24
25
|
const scrollableOverflow = getBooleanForDirection(
|
|
25
26
|
isScrollableOverflowValue(computedStyle.overflowX),
|
|
26
|
-
isScrollableOverflowValue(computedStyle.overflowY)
|
|
27
|
+
isScrollableOverflowValue(computedStyle.overflowY),
|
|
28
|
+
direction
|
|
27
29
|
);
|
|
28
30
|
if (scrollableOverflow) {
|
|
29
31
|
return parent;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
|
-
return getFirstScrollableAncestor(parent);
|
|
34
|
+
return getFirstScrollableAncestor(parent, direction);
|
|
33
35
|
}
|
|
34
|
-
function calcScrollIntoViewOffset(target, container) {
|
|
36
|
+
function calcScrollIntoViewOffset(target, container, center) {
|
|
35
37
|
const bBoxContainer = container.getBoundingClientRect();
|
|
36
38
|
const bBoxTarget = target.getBoundingClientRect();
|
|
39
|
+
const xOffset = center ? (bBoxContainer.width - bBoxTarget.width) / 2 : 0;
|
|
40
|
+
const yOffset = center ? (bBoxContainer.height - bBoxTarget.height) / 2 : 0;
|
|
37
41
|
const scrollByX = (
|
|
38
42
|
// If the left end of the target is to the left of the container, align the left end of the target so that it is in the viewport.
|
|
39
|
-
Math.min(bBoxTarget.left - bBoxContainer.left, 0) || // If the right end of the target is to the right of the container, align the right end of the target so that it is in the viewport.
|
|
40
|
-
Math.max(bBoxTarget.right - bBoxContainer.right, 0)
|
|
43
|
+
Math.min(bBoxTarget.left - bBoxContainer.left - xOffset, 0) || // If the right end of the target is to the right of the container, align the right end of the target so that it is in the viewport.
|
|
44
|
+
Math.max(bBoxTarget.right - bBoxContainer.right + xOffset, 0)
|
|
41
45
|
);
|
|
42
|
-
const scrollByY = Math.min(bBoxTarget.top - bBoxContainer.top, 0) || Math.max(bBoxTarget.bottom - bBoxContainer.bottom, 0);
|
|
46
|
+
const scrollByY = Math.min(bBoxTarget.top - bBoxContainer.top - yOffset, 0) || Math.max(bBoxTarget.bottom - bBoxContainer.bottom + yOffset, 0);
|
|
43
47
|
return [scrollByX, scrollByY];
|
|
44
48
|
}
|
|
45
|
-
function scrollIntoViewOnlyParent(target, direction) {
|
|
46
|
-
const scrollableParent = getFirstScrollableAncestor(target);
|
|
49
|
+
function scrollIntoViewOnlyParent(target, direction, center) {
|
|
50
|
+
const scrollableParent = getFirstScrollableAncestor(target, direction);
|
|
47
51
|
if (!scrollableParent) {
|
|
48
52
|
return false;
|
|
49
53
|
}
|
|
50
54
|
let [scrollByX, scrollByY] = calcScrollIntoViewOffset(
|
|
51
55
|
target,
|
|
52
|
-
scrollableParent
|
|
56
|
+
scrollableParent,
|
|
57
|
+
center
|
|
53
58
|
);
|
|
54
|
-
{
|
|
59
|
+
if (direction === "horizontal") {
|
|
55
60
|
scrollByY = 0;
|
|
56
61
|
}
|
|
62
|
+
if (direction === "vertical") {
|
|
63
|
+
scrollByX = 0;
|
|
64
|
+
}
|
|
57
65
|
if (scrollByX || scrollByY) {
|
|
58
66
|
scrollableParent.scrollBy(scrollByX, scrollByY);
|
|
59
67
|
}
|
|
@@ -14,7 +14,7 @@ export declare function getEffectiveParentElement(element: HTMLElement): HTMLEle
|
|
|
14
14
|
* @returns the first scrollable ancestor element (if any)
|
|
15
15
|
*/
|
|
16
16
|
export declare function getFirstScrollableAncestor(element: HTMLElement, direction: Direction): HTMLElement | null;
|
|
17
|
-
export declare function calcScrollIntoViewOffset(target: HTMLElement, container: HTMLElement): [x: number, y: number];
|
|
17
|
+
export declare function calcScrollIntoViewOffset(target: HTMLElement, container: HTMLElement, center: boolean): [x: number, y: number];
|
|
18
18
|
/**
|
|
19
19
|
* An alternative `.scrollIntoView()` function which only scrolls the first scrollable ancestor element.
|
|
20
20
|
*
|
|
@@ -22,4 +22,4 @@ export declare function calcScrollIntoViewOffset(target: HTMLElement, container:
|
|
|
22
22
|
* @param direction direction
|
|
23
23
|
* @returns `true` if success, `false` if scrollable parent not found
|
|
24
24
|
*/
|
|
25
|
-
export declare function scrollIntoViewOnlyParent(target: HTMLElement, direction: Direction): boolean;
|
|
25
|
+
export declare function scrollIntoViewOnlyParent(target: HTMLElement, direction: Direction, center: boolean): boolean;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { DDSElement } from "./dds-element.js";
|
|
2
|
+
type FormValueType = string | File | FormData | null;
|
|
3
|
+
export declare class DDSFormElement extends DDSElement {
|
|
4
|
+
static readonly formAssociated = true;
|
|
5
|
+
/**
|
|
6
|
+
* The form name, submitted as a name/value pair when submitting the form.
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The form value, submitted as a name/value pair when submitting the form.
|
|
11
|
+
*/
|
|
12
|
+
value: string;
|
|
13
|
+
/**
|
|
14
|
+
* The form attribute specifies the form the form component belongs to.
|
|
15
|
+
* The value of this attribute must be equal to the id attribute of a <form> element in the same document.
|
|
16
|
+
*/
|
|
17
|
+
formAttr: string | undefined;
|
|
18
|
+
protected internals: ElementInternals | null | undefined;
|
|
19
|
+
constructor();
|
|
20
|
+
/**
|
|
21
|
+
* Returns the form object associated with the element, or null if none exists.
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
get form(): HTMLFormElement | null;
|
|
25
|
+
/**
|
|
26
|
+
* Set the element's name and value within the current form.
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
setFormValue(value: FormValueType, state?: FormValueType): void;
|
|
30
|
+
/**
|
|
31
|
+
* A function that maps to the form control's `reportValidity()` function.
|
|
32
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
reportValidity(): boolean | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* A function that maps to the form control's `checkValidity()` function.
|
|
38
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
checkValidity(): boolean | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
hostConnected(): void;
|
|
47
|
+
/**
|
|
48
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
hostDisconnected(): void;
|
|
52
|
+
/**
|
|
53
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
hostUpdated(): void;
|
|
57
|
+
}
|
|
58
|
+
export declare class DDSFormSubmitElement extends DDSElement {
|
|
59
|
+
static readonly formAssociated = true;
|
|
60
|
+
/**
|
|
61
|
+
* The form attribute specifies the form the form component belongs to.
|
|
62
|
+
* The value of this attribute must be equal to the id attribute of a <form> element in the same document.
|
|
63
|
+
*/
|
|
64
|
+
formAttr: string | undefined;
|
|
65
|
+
protected internals: ElementInternals | null | undefined;
|
|
66
|
+
constructor();
|
|
67
|
+
/**
|
|
68
|
+
* Returns the form object associated with the element, or null if none exists.
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
get form(): HTMLFormElement | null;
|
|
72
|
+
/**
|
|
73
|
+
* A function that maps to the form control's `reportValidity()` function.
|
|
74
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity
|
|
75
|
+
* @private
|
|
76
|
+
*/
|
|
77
|
+
requestSubmit(): void;
|
|
78
|
+
/**
|
|
79
|
+
* A function that maps to the form control's `checkValidity()` function.
|
|
80
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity
|
|
81
|
+
* @private
|
|
82
|
+
*/
|
|
83
|
+
reset(): void;
|
|
84
|
+
/**
|
|
85
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
86
|
+
* @private
|
|
87
|
+
*/
|
|
88
|
+
hostConnected(): void;
|
|
89
|
+
/**
|
|
90
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
93
|
+
hostDisconnected(): void;
|
|
94
|
+
/**
|
|
95
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
hostUpdated(): void;
|
|
99
|
+
}
|
|
100
|
+
export {};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { property } from "lit/decorators.js";
|
|
2
|
+
import { DDSElement } from "./dds-element.js";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
5
|
+
var result = void 0;
|
|
6
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7
|
+
if (decorator = decorators[i])
|
|
8
|
+
result = decorator(target, key, result) || result;
|
|
9
|
+
if (result) __defProp(target, key, result);
|
|
10
|
+
return result;
|
|
11
|
+
};
|
|
12
|
+
const _DDSFormElement = class _DDSFormElement extends DDSElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.name = "";
|
|
16
|
+
this.value = "";
|
|
17
|
+
this.internals = this.attachInternals();
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns the form object associated with the element, or null if none exists.
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
get form() {
|
|
24
|
+
return this.internals ? this.internals.form : null;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Set the element's name and value within the current form.
|
|
28
|
+
* @private
|
|
29
|
+
*/
|
|
30
|
+
setFormValue(value, state) {
|
|
31
|
+
var _a;
|
|
32
|
+
(_a = this.internals) == null ? void 0 : _a.setFormValue(value, state);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A function that maps to the form control's `reportValidity()` function.
|
|
36
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
reportValidity() {
|
|
40
|
+
var _a;
|
|
41
|
+
return (_a = this.internals) == null ? void 0 : _a.reportValidity();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A function that maps to the form control's `checkValidity()` function.
|
|
45
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity
|
|
46
|
+
* @private
|
|
47
|
+
*/
|
|
48
|
+
checkValidity() {
|
|
49
|
+
var _a;
|
|
50
|
+
return (_a = this.internals) == null ? void 0 : _a.checkValidity();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
hostConnected() {
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
60
|
+
* @private
|
|
61
|
+
*/
|
|
62
|
+
hostDisconnected() {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
66
|
+
* @private
|
|
67
|
+
*/
|
|
68
|
+
hostUpdated() {
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
_DDSFormElement.formAssociated = true;
|
|
72
|
+
let DDSFormElement = _DDSFormElement;
|
|
73
|
+
__decorateClass([
|
|
74
|
+
property({ type: String, reflect: true })
|
|
75
|
+
], DDSFormElement.prototype, "name");
|
|
76
|
+
__decorateClass([
|
|
77
|
+
property({ type: String, reflect: true })
|
|
78
|
+
], DDSFormElement.prototype, "value");
|
|
79
|
+
__decorateClass([
|
|
80
|
+
property({ type: String, reflect: true, attribute: "form" })
|
|
81
|
+
], DDSFormElement.prototype, "formAttr");
|
|
82
|
+
const _DDSFormSubmitElement = class _DDSFormSubmitElement extends DDSElement {
|
|
83
|
+
constructor() {
|
|
84
|
+
super();
|
|
85
|
+
this.internals = this.attachInternals();
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Returns the form object associated with the element, or null if none exists.
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
get form() {
|
|
92
|
+
return this.internals ? this.internals.form : null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A function that maps to the form control's `reportValidity()` function.
|
|
96
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity
|
|
97
|
+
* @private
|
|
98
|
+
*/
|
|
99
|
+
requestSubmit() {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
(_b = (_a = this.internals) == null ? void 0 : _a.form) == null ? void 0 : _b.requestSubmit();
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* A function that maps to the form control's `checkValidity()` function.
|
|
105
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity
|
|
106
|
+
* @private
|
|
107
|
+
*/
|
|
108
|
+
reset() {
|
|
109
|
+
var _a, _b;
|
|
110
|
+
(_b = (_a = this.internals) == null ? void 0 : _a.form) == null ? void 0 : _b.reset();
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
114
|
+
* @private
|
|
115
|
+
*/
|
|
116
|
+
hostConnected() {
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
120
|
+
* @private
|
|
121
|
+
*/
|
|
122
|
+
hostDisconnected() {
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
126
|
+
* @private
|
|
127
|
+
*/
|
|
128
|
+
hostUpdated() {
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
_DDSFormSubmitElement.formAssociated = true;
|
|
132
|
+
let DDSFormSubmitElement = _DDSFormSubmitElement;
|
|
133
|
+
__decorateClass([
|
|
134
|
+
property({ type: String, reflect: true, attribute: "form" })
|
|
135
|
+
], DDSFormSubmitElement.prototype, "formAttr");
|
|
136
|
+
export {
|
|
137
|
+
DDSFormElement,
|
|
138
|
+
DDSFormSubmitElement
|
|
139
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
4
|
import { ddsElement } from "../../base/decorators.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import {
|
|
2
|
+
import { unsafeCSS, css, html } from "lit";
|
|
3
3
|
import { property } from "lit/decorators.js";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { DDSElement } from "../../base/dds-element.js";
|
|
@@ -25,13 +25,16 @@ const cvaSummary = cva(
|
|
|
25
25
|
"w-full",
|
|
26
26
|
"min-h-12",
|
|
27
27
|
"p-3",
|
|
28
|
+
"break-all",
|
|
29
|
+
"text-left",
|
|
28
30
|
"focus-visible:outline",
|
|
29
31
|
"focus-visible:outline-2",
|
|
30
32
|
"focus-visible:-outline-offset-2",
|
|
31
33
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
32
34
|
"after:size-6",
|
|
33
35
|
"after:transition-all",
|
|
34
|
-
"after:i-daikin-chevron-down"
|
|
36
|
+
"after:i-daikin-chevron-down",
|
|
37
|
+
"after:flex-none"
|
|
35
38
|
],
|
|
36
39
|
{
|
|
37
40
|
variants: {
|
|
@@ -98,10 +101,11 @@ let DaikinAccordionItem = class extends DDSElement {
|
|
|
98
101
|
render() {
|
|
99
102
|
const open = !this.disabled && this.open;
|
|
100
103
|
return html`<div
|
|
101
|
-
class="w-full text-ddt-color-common-text-primary font-daikinSerif
|
|
104
|
+
class="w-full text-ddt-color-common-text-primary font-daikinSerif"
|
|
102
105
|
>
|
|
103
106
|
<button
|
|
104
107
|
id="summary"
|
|
108
|
+
type="button"
|
|
105
109
|
${ref(this._summaryRef)}
|
|
106
110
|
class=${cvaSummary({
|
|
107
111
|
open,
|
|
@@ -126,7 +130,7 @@ let DaikinAccordionItem = class extends DDSElement {
|
|
|
126
130
|
>
|
|
127
131
|
<div class="overflow-hidden">
|
|
128
132
|
<div class="pt-2 px-3 pb-3">
|
|
129
|
-
<slot></slot>
|
|
133
|
+
<slot class="slotted:break-all"></slot>
|
|
130
134
|
</div>
|
|
131
135
|
</div>
|
|
132
136
|
</div>
|
|
@@ -37,14 +37,17 @@ export declare class DaikinAvatar extends LitElement {
|
|
|
37
37
|
alt: string | null;
|
|
38
38
|
/**
|
|
39
39
|
* Specify the avatar disabled state.
|
|
40
|
+
* Ignored when the `type` is `"icon"`.
|
|
40
41
|
*/
|
|
41
42
|
disabled: boolean;
|
|
42
43
|
/**
|
|
43
44
|
* The aria-haspopup of the avatar when `type="button"`.
|
|
45
|
+
* When used within a daikin-menu component, this property is automatically assigned the value `buttonAriaHaspopup="menu"`.
|
|
44
46
|
*/
|
|
45
47
|
avatarAriaHaspopup: "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | null;
|
|
46
48
|
/**
|
|
47
49
|
* The aria-expanded of avatar when `type="button"`.
|
|
50
|
+
* When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
|
|
48
51
|
*/
|
|
49
52
|
avatarAriaExpanded: boolean | null;
|
|
50
53
|
private _focusableElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import {
|
|
2
|
+
import { unsafeCSS, css, LitElement, html } from "lit";
|
|
3
3
|
import { property, query, customElement } from "lit/decorators.js";
|
|
4
4
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
5
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -89,6 +89,7 @@ let DaikinAvatar = class extends LitElement {
|
|
|
89
89
|
</span>`;
|
|
90
90
|
} else if (this.type === "button") {
|
|
91
91
|
return html`<button
|
|
92
|
+
type="button"
|
|
92
93
|
class=${cvaWrapper({ type: "button" })}
|
|
93
94
|
aria-label=${ifDefined(this.alt ?? void 0)}
|
|
94
95
|
aria-haspopup=${ifDefined(this.avatarAriaHaspopup ?? void 0)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
4
|
import { ddsElement } from "../../base/decorators.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
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";
|
|
@@ -29,12 +29,14 @@ let DaikinBreadcrumbItem = class extends DDSElement {
|
|
|
29
29
|
const link = this.variant === "normal" ? html`<daikin-link
|
|
30
30
|
class="text-sm"
|
|
31
31
|
href=${ifDefined(this.href ?? void 0)}
|
|
32
|
+
target=${ifDefined(this.target ?? void 0)}
|
|
32
33
|
?show-visited=${this.showVisited}
|
|
33
34
|
><slot></slot
|
|
34
35
|
></daikin-link>` : html`<a
|
|
35
36
|
class="text-sm font-daikinSerif text-ddt-color-common-text-primary"
|
|
36
37
|
aria-disabled="true"
|
|
37
38
|
aria-current="true"
|
|
39
|
+
target=${ifDefined(this.target ?? void 0)}
|
|
38
40
|
role="link"
|
|
39
41
|
><slot></slot
|
|
40
42
|
></a>`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSFormSubmitElement } from "../../base/dds-form-element.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
5
|
color?: "default" | "danger" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
7
|
-
size?: "small" | "medium" | null | undefined;
|
|
7
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
declare const cvaIcon: (props?: ({
|
|
10
|
-
size?: "small" | "medium" | null | undefined;
|
|
10
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
12
|
type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
|
|
13
13
|
/**
|
|
@@ -32,16 +32,21 @@ type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
|
|
|
32
32
|
* </daikin-button>
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
export declare class DaikinButton extends
|
|
35
|
+
export declare class DaikinButton extends DDSFormSubmitElement {
|
|
36
36
|
static readonly styles: import('lit').CSSResult;
|
|
37
37
|
/**
|
|
38
38
|
* Variant of the button.
|
|
39
39
|
*/
|
|
40
40
|
variant: ButtonVariantProps["variant"];
|
|
41
|
+
/**
|
|
42
|
+
* Type of the button.
|
|
43
|
+
* If `"link"` is specified, the button will be rendered as an `<a>` element.
|
|
44
|
+
*/
|
|
45
|
+
type: "button" | "submit" | "reset" | "link";
|
|
41
46
|
/**
|
|
42
47
|
* Size of the button.
|
|
43
48
|
*/
|
|
44
|
-
size: "small" | "medium";
|
|
49
|
+
size: "small" | "medium" | "large";
|
|
45
50
|
/**
|
|
46
51
|
* Color of the button.
|
|
47
52
|
*/
|
|
@@ -56,15 +61,20 @@ export declare class DaikinButton extends DDSElement {
|
|
|
56
61
|
* If omitted with `type="link"`, the link will be treated as [a placeholder link](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element:~:text=If%20the%20a%20element%20has%20no%20href%20attribute) and rendered as disabled state.
|
|
57
62
|
*/
|
|
58
63
|
href: string | null;
|
|
59
|
-
/**
|
|
60
|
-
* Type of the button.
|
|
61
|
-
* If `"link"` is specified, the button will be rendered as an `<a>` element.
|
|
62
|
-
*/
|
|
63
|
-
type: "button" | "submit" | "reset" | "link";
|
|
64
64
|
/**
|
|
65
65
|
* Optional ARIA role of the button.
|
|
66
66
|
*/
|
|
67
67
|
buttonRole: ARIARole | null;
|
|
68
|
+
/**
|
|
69
|
+
* The aria-haspopup of the button when `type="button"`.
|
|
70
|
+
* When used within a daikin-menu component, this property is automatically assigned the value `buttonAriaHaspopup="menu"`.
|
|
71
|
+
*/
|
|
72
|
+
buttonAriaHaspopup: "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | null;
|
|
73
|
+
/**
|
|
74
|
+
* The aria-expanded of button when `type="button"`.
|
|
75
|
+
* When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
|
|
76
|
+
*/
|
|
77
|
+
buttonAriaExpanded: boolean | null;
|
|
68
78
|
private _focusableElement;
|
|
69
79
|
constructor();
|
|
70
80
|
render(): import('lit-html').TemplateResult<1>;
|