@daikin-oss/design-system-web-components 1.5.2 → 1.6.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 +89 -0
- package/custom-elements.json +4753 -2696
- package/dist/cjs/base/dds-element.cjs +3 -2
- package/dist/cjs/base/dds-form-element.d.cts +1 -0
- package/dist/cjs/base/dds-property.d.cts +2 -2
- package/dist/cjs/components/accordion/daikin-accordion.cjs +1 -0
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +4 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +13 -11
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +1 -1
- package/dist/cjs/components/badge/daikin-badge.cjs +72 -7
- package/dist/cjs/components/badge/daikin-badge.d.cts +25 -4
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +1 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -4
- package/dist/cjs/components/button/daikin-button.cjs +4 -6
- package/dist/cjs/components/button/daikin-button.d.cts +2 -2
- package/dist/cjs/components/calendar/daikin-calendar.cjs +3 -1
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +2 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +0 -2
- package/dist/cjs/components/carousel/daikin-carousel.d.cts +1 -0
- package/dist/cjs/components/carousel-item/daikin-carousel-item.cjs +3 -3
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +25 -5
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +9 -1
- package/dist/cjs/components/chip/daikin-chip.cjs +2 -4
- package/dist/cjs/components/chip/daikin-chip.d.cts +1 -0
- package/dist/cjs/components/combobox/daikin-combobox.cjs +11 -4
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +3 -1
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +127 -62
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +19 -1
- package/dist/cjs/components/divider/daikin-divider.cjs +42 -0
- package/dist/cjs/components/divider/daikin-divider.d.cts +23 -0
- package/dist/cjs/components/divider/index.cjs +7 -0
- package/dist/cjs/components/divider/index.d.cts +1 -0
- package/dist/cjs/components/drawer/daikin-drawer.cjs +229 -0
- package/dist/cjs/components/drawer/daikin-drawer.d.cts +91 -0
- package/dist/cjs/components/drawer/index.cjs +7 -0
- package/dist/cjs/components/drawer/index.d.cts +1 -0
- package/dist/cjs/components/drawer-footer/daikin-drawer-footer.cjs +36 -0
- package/dist/cjs/components/drawer-footer/daikin-drawer-footer.d.cts +33 -0
- package/dist/cjs/components/drawer-footer/index.cjs +7 -0
- package/dist/cjs/components/drawer-footer/index.d.cts +1 -0
- package/dist/cjs/components/drawer-header/daikin-drawer-header.cjs +83 -0
- package/dist/cjs/components/drawer-header/daikin-drawer-header.d.cts +41 -0
- package/dist/cjs/components/drawer-header/index.cjs +7 -0
- package/dist/cjs/components/drawer-header/index.d.cts +1 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +11 -2
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +3 -1
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +0 -2
- package/dist/cjs/components/empty-state/daikin-empty-state.cjs +2 -2
- package/dist/cjs/components/icon/daikin-icon.cjs +1 -2
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +0 -1
- package/dist/cjs/components/index.cjs +35 -0
- package/dist/cjs/components/index.d.cts +7 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +1 -7
- package/dist/cjs/components/input-group/daikin-input-group.cjs +16 -11
- package/dist/cjs/components/link/daikin-link.cjs +26 -23
- package/dist/cjs/components/list/daikin-list.cjs +12 -0
- package/dist/cjs/components/list/daikin-list.d.cts +8 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +30 -9
- package/dist/cjs/components/menu/daikin-menu.cjs +85 -11
- package/dist/cjs/components/menu/daikin-menu.d.cts +23 -5
- package/dist/cjs/components/modal/daikin-modal.cjs +18 -1
- package/dist/cjs/components/modal/daikin-modal.d.cts +25 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +1 -1
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +0 -2
- package/dist/cjs/components/navigation/daikin-navigation.cjs +2 -1
- package/dist/cjs/components/navigation/daikin-navigation.d.cts +1 -0
- package/dist/cjs/components/navigation-item/daikin-navigation-item.cjs +6 -7
- package/dist/cjs/components/pagination/daikin-pagination.cjs +13 -6
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +4 -1
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +2 -3
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +1 -1
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.d.cts +4 -4
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +7 -5
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +1 -1
- package/dist/cjs/components/radio/daikin-radio.cjs +14 -2
- package/dist/cjs/components/radio/daikin-radio.d.cts +1 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +2 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs/components/select/daikin-select.cjs +0 -1
- package/dist/cjs/components/slider/daikin-slider.cjs +14 -4
- package/dist/cjs/components/slider/daikin-slider.d.cts +1 -1
- package/dist/cjs/components/status-message/daikin-status-message.cjs +3 -4
- package/dist/cjs/components/tab/daikin-tab.cjs +0 -2
- package/dist/cjs/components/table/daikin-table.cjs +1 -1
- package/dist/cjs/components/table/daikin-table.d.cts +2 -0
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +1 -0
- package/dist/cjs/components/tag/daikin-tag.cjs +1 -1
- package/dist/cjs/components/text-area/daikin-text-area.cjs +0 -1
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +1 -1
- package/dist/cjs/components/text-field/daikin-text-field.cjs +0 -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 +0 -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 +1 -1
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +1 -1
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +2 -3
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +1 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +2 -4
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +9 -2
- package/dist/cjs/components/tree/daikin-tree.cjs +2 -0
- package/dist/cjs/components/tree/daikin-tree.d.cts +4 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +1 -2
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +7 -3
- package/dist/cjs/components/vertical-navigation/daikin-vertical-navigation.cjs +115 -0
- package/dist/cjs/components/vertical-navigation/daikin-vertical-navigation.d.cts +77 -0
- package/dist/cjs/components/vertical-navigation/index.cjs +7 -0
- package/dist/cjs/components/vertical-navigation/index.d.cts +1 -0
- package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +378 -0
- package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +121 -0
- package/dist/cjs/components/vertical-navigation-item/index.cjs +7 -0
- package/dist/cjs/components/vertical-navigation-item/index.d.cts +1 -0
- package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +176 -0
- package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +86 -0
- package/dist/cjs/components/vertical-navigation-menu-item/index.cjs +7 -0
- package/dist/cjs/components/vertical-navigation-menu-item/index.d.cts +1 -0
- package/dist/cjs/controllers/block-scroll.cjs +43 -0
- package/dist/cjs/controllers/block-scroll.d.cts +48 -0
- package/dist/cjs/controllers/focus-trap.cjs +33 -17
- package/dist/cjs/controllers/focus-trap.d.cts +1 -1
- package/dist/cjs/index.cjs +35 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/notification-common.cjs +1 -1
- package/dist/cjs-dev/base/dds-element.cjs +3 -2
- package/dist/cjs-dev/base/dds-form-element.d.cts +1 -0
- package/dist/cjs-dev/base/dds-property.d.cts +2 -2
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +1 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +4 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +13 -11
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +1 -1
- package/dist/cjs-dev/components/badge/daikin-badge.cjs +72 -7
- package/dist/cjs-dev/components/badge/daikin-badge.d.cts +25 -4
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +1 -4
- package/dist/cjs-dev/components/button/daikin-button.cjs +4 -6
- package/dist/cjs-dev/components/button/daikin-button.d.cts +2 -2
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +3 -1
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +2 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +0 -2
- package/dist/cjs-dev/components/carousel/daikin-carousel.d.cts +1 -0
- package/dist/cjs-dev/components/carousel-item/daikin-carousel-item.cjs +3 -3
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +25 -5
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +9 -1
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +2 -4
- package/dist/cjs-dev/components/chip/daikin-chip.d.cts +1 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +11 -4
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +3 -1
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +127 -62
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +19 -1
- package/dist/cjs-dev/components/divider/daikin-divider.cjs +42 -0
- package/dist/cjs-dev/components/divider/daikin-divider.d.cts +23 -0
- package/dist/cjs-dev/components/divider/index.cjs +7 -0
- package/dist/cjs-dev/components/divider/index.d.cts +1 -0
- package/dist/cjs-dev/components/drawer/daikin-drawer.cjs +229 -0
- package/dist/cjs-dev/components/drawer/daikin-drawer.d.cts +91 -0
- package/dist/cjs-dev/components/drawer/index.cjs +7 -0
- package/dist/cjs-dev/components/drawer/index.d.cts +1 -0
- package/dist/cjs-dev/components/drawer-footer/daikin-drawer-footer.cjs +36 -0
- package/dist/cjs-dev/components/drawer-footer/daikin-drawer-footer.d.cts +33 -0
- package/dist/cjs-dev/components/drawer-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/drawer-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/drawer-header/daikin-drawer-header.cjs +83 -0
- package/dist/cjs-dev/components/drawer-header/daikin-drawer-header.d.cts +41 -0
- package/dist/cjs-dev/components/drawer-header/index.cjs +7 -0
- package/dist/cjs-dev/components/drawer-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +11 -2
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +3 -1
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +0 -2
- package/dist/cjs-dev/components/empty-state/daikin-empty-state.cjs +2 -2
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +1 -2
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +0 -1
- package/dist/cjs-dev/components/index.cjs +35 -0
- package/dist/cjs-dev/components/index.d.cts +7 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +1 -7
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +16 -11
- package/dist/cjs-dev/components/link/daikin-link.cjs +26 -23
- package/dist/cjs-dev/components/list/daikin-list.cjs +12 -0
- package/dist/cjs-dev/components/list/daikin-list.d.cts +8 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +30 -9
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +85 -11
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +23 -5
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +18 -1
- package/dist/cjs-dev/components/modal/daikin-modal.d.cts +25 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +1 -1
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +0 -2
- package/dist/cjs-dev/components/navigation/daikin-navigation.cjs +2 -1
- package/dist/cjs-dev/components/navigation/daikin-navigation.d.cts +1 -0
- package/dist/cjs-dev/components/navigation-item/daikin-navigation-item.cjs +6 -7
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +13 -6
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +4 -1
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +2 -3
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +1 -1
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.d.cts +4 -4
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +7 -5
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts +1 -1
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +14 -2
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +1 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +2 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs-dev/components/select/daikin-select.cjs +0 -1
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +14 -4
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +1 -1
- package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +3 -4
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +0 -2
- package/dist/cjs-dev/components/table/daikin-table.cjs +1 -1
- package/dist/cjs-dev/components/table/daikin-table.d.cts +2 -0
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +1 -0
- package/dist/cjs-dev/components/tag/daikin-tag.cjs +1 -1
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +0 -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 +0 -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 +0 -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 +1 -1
- 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 +2 -3
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +1 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +2 -4
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +9 -2
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +2 -0
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +4 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +1 -2
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +7 -3
- package/dist/cjs-dev/components/vertical-navigation/daikin-vertical-navigation.cjs +127 -0
- package/dist/cjs-dev/components/vertical-navigation/daikin-vertical-navigation.d.cts +77 -0
- package/dist/cjs-dev/components/vertical-navigation/index.cjs +7 -0
- package/dist/cjs-dev/components/vertical-navigation/index.d.cts +1 -0
- package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +378 -0
- package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +121 -0
- package/dist/cjs-dev/components/vertical-navigation-item/index.cjs +7 -0
- package/dist/cjs-dev/components/vertical-navigation-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +176 -0
- package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +86 -0
- package/dist/cjs-dev/components/vertical-navigation-menu-item/index.cjs +7 -0
- package/dist/cjs-dev/components/vertical-navigation-menu-item/index.d.cts +1 -0
- package/dist/cjs-dev/controllers/block-scroll.cjs +43 -0
- package/dist/cjs-dev/controllers/block-scroll.d.cts +48 -0
- package/dist/cjs-dev/controllers/focus-trap.cjs +33 -17
- package/dist/cjs-dev/controllers/focus-trap.d.cts +1 -1
- package/dist/cjs-dev/index.cjs +35 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/notification-common.cjs +1 -1
- package/dist/es/base/dds-element.js +3 -2
- package/dist/es/base/dds-form-element.d.ts +1 -0
- package/dist/es/base/dds-property.d.ts +2 -2
- package/dist/es/components/accordion/daikin-accordion.d.ts +4 -0
- package/dist/es/components/accordion/daikin-accordion.js +1 -0
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +13 -11
- package/dist/es/components/badge/daikin-badge.d.ts +25 -4
- package/dist/es/components/badge/daikin-badge.js +72 -7
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +1 -0
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -4
- package/dist/es/components/button/daikin-button.d.ts +2 -2
- package/dist/es/components/button/daikin-button.js +4 -6
- package/dist/es/components/calendar/daikin-calendar.d.ts +2 -0
- package/dist/es/components/calendar/daikin-calendar.js +3 -1
- package/dist/es/components/card-header/daikin-card-header.js +0 -2
- package/dist/es/components/carousel/daikin-carousel.d.ts +1 -0
- package/dist/es/components/carousel-item/daikin-carousel-item.js +3 -3
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +9 -1
- package/dist/es/components/checkbox/daikin-checkbox.js +25 -5
- package/dist/es/components/chip/daikin-chip.d.ts +1 -0
- package/dist/es/components/chip/daikin-chip.js +2 -4
- package/dist/es/components/combobox/daikin-combobox.d.ts +3 -1
- package/dist/es/components/combobox/daikin-combobox.js +11 -4
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +19 -1
- package/dist/es/components/date-picker/daikin-date-picker.js +127 -62
- package/dist/es/components/divider/daikin-divider.d.ts +23 -0
- package/dist/es/components/divider/daikin-divider.js +43 -0
- package/dist/es/components/divider/index.d.ts +1 -0
- package/dist/es/components/divider/index.js +4 -0
- package/dist/es/components/drawer/daikin-drawer.d.ts +91 -0
- package/dist/es/components/drawer/daikin-drawer.js +230 -0
- package/dist/es/components/drawer/index.d.ts +1 -0
- package/dist/es/components/drawer/index.js +4 -0
- package/dist/es/components/drawer-footer/daikin-drawer-footer.d.ts +33 -0
- package/dist/es/components/drawer-footer/daikin-drawer-footer.js +37 -0
- package/dist/es/components/drawer-footer/index.d.ts +1 -0
- package/dist/es/components/drawer-footer/index.js +4 -0
- package/dist/es/components/drawer-header/daikin-drawer-header.d.ts +41 -0
- package/dist/es/components/drawer-header/daikin-drawer-header.js +84 -0
- package/dist/es/components/drawer-header/index.d.ts +1 -0
- package/dist/es/components/drawer-header/index.js +4 -0
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +3 -1
- package/dist/es/components/dropdown/daikin-dropdown.js +11 -2
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +0 -2
- package/dist/es/components/empty-state/daikin-empty-state.js +2 -2
- package/dist/es/components/icon/daikin-icon.js +1 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +0 -1
- package/dist/es/components/index.d.ts +7 -0
- package/dist/es/components/index.js +14 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +1 -7
- package/dist/es/components/input-group/daikin-input-group.js +16 -11
- package/dist/es/components/link/daikin-link.js +26 -23
- package/dist/es/components/list/daikin-list.d.ts +8 -0
- package/dist/es/components/list/daikin-list.js +13 -1
- package/dist/es/components/list-item/daikin-list-item.js +30 -9
- package/dist/es/components/menu/daikin-menu.d.ts +23 -5
- package/dist/es/components/menu/daikin-menu.js +85 -11
- package/dist/es/components/modal/daikin-modal.d.ts +25 -0
- package/dist/es/components/modal/daikin-modal.js +18 -1
- package/dist/es/components/modal-footer/daikin-modal-footer.js +1 -1
- package/dist/es/components/modal-header/daikin-modal-header.js +0 -2
- package/dist/es/components/navigation/daikin-navigation.d.ts +1 -0
- package/dist/es/components/navigation/daikin-navigation.js +2 -1
- package/dist/es/components/navigation-item/daikin-navigation-item.js +6 -7
- package/dist/es/components/pagination/daikin-pagination.d.ts +4 -1
- package/dist/es/components/pagination/daikin-pagination.js +13 -6
- package/dist/es/components/progress-bar/daikin-progress-bar.js +2 -3
- package/dist/es/components/progress-indicator/daikin-progress-indicator.d.ts +4 -4
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +1 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +7 -5
- package/dist/es/components/radio/daikin-radio.d.ts +1 -0
- package/dist/es/components/radio/daikin-radio.js +14 -2
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +2 -1
- package/dist/es/components/radio-group/daikin-radio-group.js +2 -0
- package/dist/es/components/select/daikin-select.js +0 -1
- package/dist/es/components/slider/daikin-slider.d.ts +1 -1
- package/dist/es/components/slider/daikin-slider.js +14 -4
- package/dist/es/components/status-message/daikin-status-message.js +3 -4
- package/dist/es/components/tab/daikin-tab.js +0 -2
- package/dist/es/components/table/daikin-table.d.ts +2 -0
- package/dist/es/components/table/daikin-table.js +1 -1
- package/dist/es/components/tabs/daikin-tabs.d.ts +1 -0
- package/dist/es/components/tag/daikin-tag.js +1 -1
- package/dist/es/components/text-area/daikin-text-area.d.ts +1 -1
- package/dist/es/components/text-area/daikin-text-area.js +0 -1
- package/dist/es/components/text-field/daikin-text-field.d.ts +1 -1
- package/dist/es/components/text-field/daikin-text-field.js +0 -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 +0 -1
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +1 -1
- package/dist/es/components/time-picker/daikin-time-picker.js +1 -1
- package/dist/es/components/toast-notification/daikin-toast-notification.js +2 -3
- package/dist/es/components/toggle/daikin-toggle.d.ts +1 -0
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +9 -2
- package/dist/es/components/tooltip/daikin-tooltip.js +2 -4
- package/dist/es/components/tree/daikin-tree.d.ts +4 -0
- package/dist/es/components/tree/daikin-tree.js +2 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +1 -2
- package/dist/es/components/tree-section/daikin-tree-section.js +7 -3
- package/dist/es/components/vertical-navigation/daikin-vertical-navigation.d.ts +77 -0
- package/dist/es/components/vertical-navigation/daikin-vertical-navigation.js +116 -0
- package/dist/es/components/vertical-navigation/index.d.ts +1 -0
- package/dist/es/components/vertical-navigation/index.js +4 -0
- package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +121 -0
- package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.js +379 -0
- package/dist/es/components/vertical-navigation-item/index.d.ts +1 -0
- package/dist/es/components/vertical-navigation-item/index.js +4 -0
- package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +86 -0
- package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +177 -0
- package/dist/es/components/vertical-navigation-menu-item/index.d.ts +1 -0
- package/dist/es/components/vertical-navigation-menu-item/index.js +4 -0
- package/dist/es/controllers/block-scroll.d.ts +48 -0
- package/dist/es/controllers/block-scroll.js +43 -0
- package/dist/es/controllers/focus-trap.d.ts +1 -1
- package/dist/es/controllers/focus-trap.js +33 -17
- package/dist/es/index.js +14 -0
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/notification-common.js +1 -1
- package/dist/es-dev/base/dds-element.js +3 -2
- package/dist/es-dev/base/dds-form-element.d.ts +1 -0
- package/dist/es-dev/base/dds-property.d.ts +2 -2
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +4 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +1 -0
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +13 -11
- package/dist/es-dev/components/badge/daikin-badge.d.ts +25 -4
- package/dist/es-dev/components/badge/daikin-badge.js +72 -7
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +1 -0
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +1 -4
- package/dist/es-dev/components/button/daikin-button.d.ts +2 -2
- package/dist/es-dev/components/button/daikin-button.js +4 -6
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +2 -0
- package/dist/es-dev/components/calendar/daikin-calendar.js +3 -1
- package/dist/es-dev/components/card-header/daikin-card-header.js +0 -2
- package/dist/es-dev/components/carousel/daikin-carousel.d.ts +1 -0
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +3 -3
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +9 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +25 -5
- package/dist/es-dev/components/chip/daikin-chip.d.ts +1 -0
- package/dist/es-dev/components/chip/daikin-chip.js +2 -4
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +3 -1
- package/dist/es-dev/components/combobox/daikin-combobox.js +11 -4
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +19 -1
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +127 -62
- package/dist/es-dev/components/divider/daikin-divider.d.ts +23 -0
- package/dist/es-dev/components/divider/daikin-divider.js +43 -0
- package/dist/es-dev/components/divider/index.d.ts +1 -0
- package/dist/es-dev/components/divider/index.js +4 -0
- package/dist/es-dev/components/drawer/daikin-drawer.d.ts +91 -0
- package/dist/es-dev/components/drawer/daikin-drawer.js +230 -0
- package/dist/es-dev/components/drawer/index.d.ts +1 -0
- package/dist/es-dev/components/drawer/index.js +4 -0
- package/dist/es-dev/components/drawer-footer/daikin-drawer-footer.d.ts +33 -0
- package/dist/es-dev/components/drawer-footer/daikin-drawer-footer.js +37 -0
- package/dist/es-dev/components/drawer-footer/index.d.ts +1 -0
- package/dist/es-dev/components/drawer-footer/index.js +4 -0
- package/dist/es-dev/components/drawer-header/daikin-drawer-header.d.ts +41 -0
- package/dist/es-dev/components/drawer-header/daikin-drawer-header.js +84 -0
- package/dist/es-dev/components/drawer-header/index.d.ts +1 -0
- package/dist/es-dev/components/drawer-header/index.js +4 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +3 -1
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +11 -2
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +0 -2
- package/dist/es-dev/components/empty-state/daikin-empty-state.js +2 -2
- package/dist/es-dev/components/icon/daikin-icon.js +1 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +0 -1
- package/dist/es-dev/components/index.d.ts +7 -0
- package/dist/es-dev/components/index.js +14 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +1 -7
- package/dist/es-dev/components/input-group/daikin-input-group.js +16 -11
- package/dist/es-dev/components/link/daikin-link.js +26 -23
- package/dist/es-dev/components/list/daikin-list.d.ts +8 -0
- package/dist/es-dev/components/list/daikin-list.js +13 -1
- package/dist/es-dev/components/list-item/daikin-list-item.js +30 -9
- package/dist/es-dev/components/menu/daikin-menu.d.ts +23 -5
- package/dist/es-dev/components/menu/daikin-menu.js +85 -11
- package/dist/es-dev/components/modal/daikin-modal.d.ts +25 -0
- package/dist/es-dev/components/modal/daikin-modal.js +18 -1
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +1 -1
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +0 -2
- package/dist/es-dev/components/navigation/daikin-navigation.d.ts +1 -0
- package/dist/es-dev/components/navigation/daikin-navigation.js +2 -1
- package/dist/es-dev/components/navigation-item/daikin-navigation-item.js +6 -7
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +4 -1
- package/dist/es-dev/components/pagination/daikin-pagination.js +13 -6
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +2 -3
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.d.ts +4 -4
- 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.d.ts +1 -1
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +7 -5
- package/dist/es-dev/components/radio/daikin-radio.d.ts +1 -0
- package/dist/es-dev/components/radio/daikin-radio.js +14 -2
- 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 -0
- package/dist/es-dev/components/select/daikin-select.js +0 -1
- package/dist/es-dev/components/slider/daikin-slider.d.ts +1 -1
- package/dist/es-dev/components/slider/daikin-slider.js +14 -4
- package/dist/es-dev/components/status-message/daikin-status-message.js +3 -4
- package/dist/es-dev/components/tab/daikin-tab.js +0 -2
- package/dist/es-dev/components/table/daikin-table.d.ts +2 -0
- package/dist/es-dev/components/table/daikin-table.js +1 -1
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +1 -0
- package/dist/es-dev/components/tag/daikin-tag.js +1 -1
- 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 +0 -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 +0 -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 +0 -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 +1 -1
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +2 -3
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +1 -0
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +9 -2
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +2 -4
- package/dist/es-dev/components/tree/daikin-tree.d.ts +4 -0
- package/dist/es-dev/components/tree/daikin-tree.js +2 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +1 -2
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +7 -3
- package/dist/es-dev/components/vertical-navigation/daikin-vertical-navigation.d.ts +77 -0
- package/dist/es-dev/components/vertical-navigation/daikin-vertical-navigation.js +128 -0
- package/dist/es-dev/components/vertical-navigation/index.d.ts +1 -0
- package/dist/es-dev/components/vertical-navigation/index.js +4 -0
- package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +121 -0
- package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.js +379 -0
- package/dist/es-dev/components/vertical-navigation-item/index.d.ts +1 -0
- package/dist/es-dev/components/vertical-navigation-item/index.js +4 -0
- package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +86 -0
- package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +177 -0
- package/dist/es-dev/components/vertical-navigation-menu-item/index.d.ts +1 -0
- package/dist/es-dev/components/vertical-navigation-menu-item/index.js +4 -0
- package/dist/es-dev/controllers/block-scroll.d.ts +48 -0
- package/dist/es-dev/controllers/block-scroll.js +43 -0
- package/dist/es-dev/controllers/focus-trap.d.ts +1 -1
- package/dist/es-dev/controllers/focus-trap.js +33 -17
- package/dist/es-dev/index.js +14 -0
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/notification-common.js +1 -1
- package/package.json +3 -3
|
@@ -21,6 +21,8 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
21
21
|
const cvaBaseClasses = [
|
|
22
22
|
"flex",
|
|
23
23
|
"relative",
|
|
24
|
+
"h-full",
|
|
25
|
+
"w-full",
|
|
24
26
|
"gap-1",
|
|
25
27
|
"justify-center",
|
|
26
28
|
"items-center",
|
|
@@ -28,9 +30,6 @@ const cvaBaseClasses = [
|
|
|
28
30
|
"px-8",
|
|
29
31
|
"pt-2",
|
|
30
32
|
"pb-3",
|
|
31
|
-
"font-daikinSerif",
|
|
32
|
-
"text-base",
|
|
33
|
-
"leading-[130%]",
|
|
34
33
|
"font-bold",
|
|
35
34
|
"focus-visible:outline-hidden",
|
|
36
35
|
"focus-visible:before:absolute",
|
|
@@ -113,7 +112,7 @@ let DaikinNavigationItem = class extends DDSElement {
|
|
|
113
112
|
case "link": {
|
|
114
113
|
const linkDisabled = this.disabled || this.href == null;
|
|
115
114
|
return html`
|
|
116
|
-
<div role="listitem">
|
|
115
|
+
<div role="listitem" class="h-full">
|
|
117
116
|
<a
|
|
118
117
|
href=${ifDefined(!linkDisabled ? this.href : void 0)}
|
|
119
118
|
class=${cvaLinkItem({
|
|
@@ -127,14 +126,14 @@ let DaikinNavigationItem = class extends DDSElement {
|
|
|
127
126
|
name="left-icon"
|
|
128
127
|
class="icon-size-6 slotted:flex-none"
|
|
129
128
|
></slot
|
|
130
|
-
><span class="px-1
|
|
129
|
+
><span class="px-1 natural-break text-left"><slot></slot></span
|
|
131
130
|
></a>
|
|
132
131
|
</div>
|
|
133
132
|
`;
|
|
134
133
|
}
|
|
135
134
|
case "menu":
|
|
136
135
|
return html`
|
|
137
|
-
<div role="listitem">
|
|
136
|
+
<div role="listitem" class="h-full">
|
|
138
137
|
<button
|
|
139
138
|
type="button"
|
|
140
139
|
class=${cvaMenuItem({
|
|
@@ -150,7 +149,7 @@ let DaikinNavigationItem = class extends DDSElement {
|
|
|
150
149
|
name="left-icon"
|
|
151
150
|
class="icon-size-6 slotted:flex-none"
|
|
152
151
|
></slot
|
|
153
|
-
><span class="px-1
|
|
152
|
+
><span class="px-1 natural-break text-left"><slot></slot></span
|
|
154
153
|
><span
|
|
155
154
|
class="icon-[daikin--chevron-down] size-6 flex-none rotate-(--chevron-rotation)"
|
|
156
155
|
></span>
|
|
@@ -2,7 +2,8 @@ import { DDSElement } from "../../base/index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* The pagination component is used to navigate through a list of items that are divided into multiple pages.
|
|
4
4
|
*
|
|
5
|
-
* @fires change -
|
|
5
|
+
* @fires before-change - _Cancellable._ A custom event emitted before the current page changes. The pending page number is available as `event.detail.page`. If cancelled, the page will not change.
|
|
6
|
+
* @fires change - A custom event emitted when the current page number is changed.
|
|
6
7
|
*
|
|
7
8
|
* @example
|
|
8
9
|
*
|
|
@@ -19,6 +20,8 @@ export declare class DaikinPagination extends DDSElement {
|
|
|
19
20
|
/**
|
|
20
21
|
* The current page number, starting at 1.
|
|
21
22
|
* Must be greater than 0 and less than or equal to `this.total`.
|
|
23
|
+
* To keep external state in sync, listen to the `change` event.
|
|
24
|
+
* To cancel a page change before it happens, listen to the `before-change` event and call `event.preventDefault()`.
|
|
22
25
|
*/
|
|
23
26
|
current: number;
|
|
24
27
|
/**
|
|
@@ -30,7 +30,6 @@ const cvaPageButton = cva(
|
|
|
30
30
|
"min-w-12",
|
|
31
31
|
"min-h-12",
|
|
32
32
|
"p-1",
|
|
33
|
-
"font-daikinSerif",
|
|
34
33
|
"text-base",
|
|
35
34
|
"not-italic",
|
|
36
35
|
"leading-6",
|
|
@@ -79,7 +78,6 @@ const cvaEllipsis = cva([
|
|
|
79
78
|
"justify-center",
|
|
80
79
|
"w-12",
|
|
81
80
|
"h-12",
|
|
82
|
-
"font-daikinSerif",
|
|
83
81
|
"text-base",
|
|
84
82
|
"not-italic",
|
|
85
83
|
"font-normal",
|
|
@@ -95,7 +93,6 @@ const cvaChevronButton = cva([
|
|
|
95
93
|
"w-12",
|
|
96
94
|
"h-12",
|
|
97
95
|
"text-ddt-color-common-neutral-default",
|
|
98
|
-
"font-daikinSerif",
|
|
99
96
|
"text-base",
|
|
100
97
|
"not-italic",
|
|
101
98
|
"font-normal",
|
|
@@ -118,12 +115,22 @@ let DaikinPagination = class extends DDSElement {
|
|
|
118
115
|
this.window = 5;
|
|
119
116
|
}
|
|
120
117
|
_goto(page) {
|
|
121
|
-
|
|
118
|
+
const newPage = Math.max(Math.min(page, this.total), 1);
|
|
119
|
+
if (!this.dispatchEvent(
|
|
120
|
+
new CustomEvent("before-change", {
|
|
121
|
+
bubbles: true,
|
|
122
|
+
composed: true,
|
|
123
|
+
cancelable: true,
|
|
124
|
+
detail: { page: newPage }
|
|
125
|
+
})
|
|
126
|
+
)) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
this.current = newPage;
|
|
122
130
|
this.dispatchEvent(
|
|
123
131
|
new Event("change", {
|
|
124
132
|
bubbles: true,
|
|
125
|
-
composed: true
|
|
126
|
-
cancelable: true
|
|
133
|
+
composed: true
|
|
127
134
|
})
|
|
128
135
|
);
|
|
129
136
|
}
|
|
@@ -55,7 +55,6 @@ const cvaBarContainer = cva(
|
|
|
55
55
|
"justify-between",
|
|
56
56
|
"items-center",
|
|
57
57
|
"text-ddt-color-common-text-primary",
|
|
58
|
-
"leading-[130%]",
|
|
59
58
|
"font-bold",
|
|
60
59
|
"natural-break"
|
|
61
60
|
],
|
|
@@ -80,7 +79,7 @@ const cvaBarContainer = cva(
|
|
|
80
79
|
}
|
|
81
80
|
}
|
|
82
81
|
);
|
|
83
|
-
const cvaHelper = cva(["text-
|
|
82
|
+
const cvaHelper = cva(["text-(length:--dds-font-size-350)", "natural-break"], {
|
|
84
83
|
variants: {
|
|
85
84
|
variant: {
|
|
86
85
|
inprogress: ["text-ddt-color-common-text-secondary"],
|
|
@@ -129,7 +128,7 @@ let DaikinProgressBar = class extends DDSElement {
|
|
|
129
128
|
}
|
|
130
129
|
render() {
|
|
131
130
|
const progressRatio = Math.min(Math.max(this.value / this.max, 0), 1);
|
|
132
|
-
return html`<div class="flex flex-col gap-2 w-full
|
|
131
|
+
return html`<div class="flex flex-col gap-2 w-full">
|
|
133
132
|
<div class=${cvaBarContainer({ variant: this.variant })}>
|
|
134
133
|
<slot></slot>
|
|
135
134
|
</div>
|
|
@@ -16,16 +16,16 @@ import { DDSElement } from "../../base/index.js";
|
|
|
16
16
|
* ```
|
|
17
17
|
*
|
|
18
18
|
* ```html
|
|
19
|
-
* <daikin-progress-indicator>
|
|
20
|
-
* <daikin-progress-indicator-item
|
|
19
|
+
* <daikin-progress-indicator currentItem="1">
|
|
20
|
+
* <daikin-progress-indicator-item>
|
|
21
21
|
* Title 1
|
|
22
22
|
* <span slot="description">Description 1</span>
|
|
23
23
|
* </daikin-progress-indicator-item>
|
|
24
|
-
* <daikin-progress-indicator-item
|
|
24
|
+
* <daikin-progress-indicator-item>
|
|
25
25
|
* Title 2
|
|
26
26
|
* <span slot="description">Description 2</span>
|
|
27
27
|
* </daikin-progress-indicator-item>
|
|
28
|
-
* <daikin-progress-indicator-item
|
|
28
|
+
* <daikin-progress-indicator-item>
|
|
29
29
|
* Title 3
|
|
30
30
|
* <span slot="description">Description 3</span>
|
|
31
31
|
* </daikin-progress-indicator-item>
|
|
@@ -32,7 +32,7 @@ let DaikinProgressIndicator = class extends DDSElement {
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
return html`<div
|
|
35
|
-
class="flex justify-stretch items-start gap-2 w-full
|
|
35
|
+
class="flex justify-stretch items-start gap-2 w-full"
|
|
36
36
|
role="list"
|
|
37
37
|
>
|
|
38
38
|
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
@@ -22,7 +22,7 @@ type ProgressIndicatorItemVariantProps = MergeVariantProps<typeof cvaContainer>;
|
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
24
|
* ```html
|
|
25
|
-
* <daikin-progress-indicator-item
|
|
25
|
+
* <daikin-progress-indicator-item>
|
|
26
26
|
* Progress indicator label
|
|
27
27
|
* <span slot="description">Progress indicator description</span>
|
|
28
28
|
* </daikin-progress-indicator-item>
|
|
@@ -25,8 +25,7 @@ const cvaContainer = cva(
|
|
|
25
25
|
"w-full",
|
|
26
26
|
"text-ddt-color-common-text-primary",
|
|
27
27
|
"pt-2",
|
|
28
|
-
"border-t-4"
|
|
29
|
-
"font-daikinSerif"
|
|
28
|
+
"border-t-4"
|
|
30
29
|
],
|
|
31
30
|
{
|
|
32
31
|
variants: {
|
|
@@ -48,13 +47,16 @@ let DaikinProgressIndicatorItem = class extends DDSElement {
|
|
|
48
47
|
)}
|
|
49
48
|
>
|
|
50
49
|
<div class="flex flex-col gap-1 w-full overflow-auto natural-break">
|
|
51
|
-
<
|
|
52
|
-
<slot
|
|
50
|
+
<span class="font-bold"><slot></slot></span>
|
|
51
|
+
<slot
|
|
52
|
+
class="text-(length:--dds-font-size-350)"
|
|
53
|
+
name="description"
|
|
54
|
+
></slot>
|
|
53
55
|
</div>
|
|
54
56
|
${this.status === "finished" ? html`
|
|
55
57
|
<span
|
|
56
58
|
role="img"
|
|
57
|
-
class="flex-none size-4 icon-[daikin--success] text-ddt-color-common-brand-default"
|
|
59
|
+
class="flex-none size-4 icon-[daikin--success] text-ddt-color-common-brand-default mt-0.5"
|
|
58
60
|
aria-label="Completed"
|
|
59
61
|
></span>
|
|
60
62
|
` : nothing}
|
|
@@ -18,6 +18,17 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
18
|
if (kind && result) __defProp(target, key, result);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
+
const cvaWrapper = cva(
|
|
22
|
+
["group", "flex", "gap-2", "items-center", "size-full"],
|
|
23
|
+
{
|
|
24
|
+
variants: {
|
|
25
|
+
disabled: {
|
|
26
|
+
false: ["cursor-pointer"],
|
|
27
|
+
true: []
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
);
|
|
21
32
|
const RADIO_CLASS_NAME = cva([
|
|
22
33
|
"flex",
|
|
23
34
|
"justify-center",
|
|
@@ -31,6 +42,7 @@ const RADIO_CLASS_NAME = cva([
|
|
|
31
42
|
"focus-visible:outline-offset-2",
|
|
32
43
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
33
44
|
"unchecked:border-2",
|
|
45
|
+
"enabled:cursor-pointer",
|
|
34
46
|
"enabled:unchecked:border-ddt-color-common-neutral-default",
|
|
35
47
|
"group-hover:unchecked:enabled:border-ddt-color-common-neutral-hover",
|
|
36
48
|
"group-active:unchecked:enabled:border-ddt-color-common-neutral-press",
|
|
@@ -70,7 +82,7 @@ let DaikinRadio = class extends DDSFormElement {
|
|
|
70
82
|
}
|
|
71
83
|
_handleClick(event) {
|
|
72
84
|
var _a;
|
|
73
|
-
if (this.disabled) {
|
|
85
|
+
if (this.disabled || this.disabledByParent) {
|
|
74
86
|
event.preventDefault();
|
|
75
87
|
}
|
|
76
88
|
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT") {
|
|
@@ -90,7 +102,7 @@ let DaikinRadio = class extends DDSFormElement {
|
|
|
90
102
|
render() {
|
|
91
103
|
const disabled = this.disabled || this.disabledByParent;
|
|
92
104
|
return html`<label
|
|
93
|
-
class
|
|
105
|
+
class=${cvaWrapper({ disabled })}
|
|
94
106
|
@click=${this._handleClick}
|
|
95
107
|
>
|
|
96
108
|
<span class="p-2">
|
|
@@ -48,7 +48,8 @@ export declare class DaikinRadioGroup extends DDSElement {
|
|
|
48
48
|
name: string;
|
|
49
49
|
/**
|
|
50
50
|
* `value` of the currently selected radio.
|
|
51
|
-
* See
|
|
51
|
+
* See the `value` property of `daikin-radio`.
|
|
52
|
+
* To keep external state in sync, listen to the `change` event.
|
|
52
53
|
*/
|
|
53
54
|
value: string;
|
|
54
55
|
/**
|
|
@@ -35,7 +35,9 @@ let DaikinRadioGroup = class extends DDSElement {
|
|
|
35
35
|
this.disabled = false;
|
|
36
36
|
this._label = null;
|
|
37
37
|
this._handleRadioChange = (event) => {
|
|
38
|
+
event.stopPropagation();
|
|
38
39
|
this.value = event.target.value;
|
|
40
|
+
this.dispatchEvent(new Event("change"));
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
_reflectSlotProperties() {
|
|
@@ -9,7 +9,7 @@ import { DDSFormElement } from "../../base/index.js";
|
|
|
9
9
|
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
10
10
|
* @prop {String} formAttr - The form the component belongs to.
|
|
11
11
|
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
12
|
-
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
12
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form. To keep external state in sync, listen to the `change` event.
|
|
13
13
|
*
|
|
14
14
|
* @fires change - A retargeted event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<input type="range">` element.
|
|
15
15
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
@@ -19,6 +19,14 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
19
19
|
if (kind && result) __defProp(target, key, result);
|
|
20
20
|
return result;
|
|
21
21
|
};
|
|
22
|
+
const cvaWrapper = cva(["relative", "w-full", "h-6"], {
|
|
23
|
+
variants: {
|
|
24
|
+
disabled: {
|
|
25
|
+
false: ["cursor-pointer"],
|
|
26
|
+
true: []
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
});
|
|
22
30
|
const cvaSliderThumb = cva(
|
|
23
31
|
[
|
|
24
32
|
"absolute",
|
|
@@ -34,7 +42,6 @@ const cvaSliderThumb = cva(
|
|
|
34
42
|
variants: {
|
|
35
43
|
disabled: {
|
|
36
44
|
false: [
|
|
37
|
-
"cursor-pointer",
|
|
38
45
|
"[&:not([data-dragging])]:bg-ddt-color-common-brand-default",
|
|
39
46
|
"[&:not([data-dragging])]:hover:bg-ddt-color-common-brand-hover",
|
|
40
47
|
"[&:not([data-dragging])]:active:bg-ddt-color-common-brand-press",
|
|
@@ -76,11 +83,14 @@ let DaikinSlider = class extends DDSFormElement {
|
|
|
76
83
|
this._thumbRef = createRef();
|
|
77
84
|
this.value = this.min;
|
|
78
85
|
}
|
|
79
|
-
_updateFormValue() {
|
|
86
|
+
_updateFormValue(emitEvents) {
|
|
80
87
|
if (this.disabled) {
|
|
81
88
|
return;
|
|
82
89
|
}
|
|
83
90
|
this.setFormValue(this.value);
|
|
91
|
+
if (!emitEvents) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
84
94
|
this.dispatchEvent(
|
|
85
95
|
new Event("change", {
|
|
86
96
|
bubbles: true,
|
|
@@ -205,7 +215,7 @@ let DaikinSlider = class extends DDSFormElement {
|
|
|
205
215
|
return html`
|
|
206
216
|
<span
|
|
207
217
|
${ref(this._sliderRef)}
|
|
208
|
-
class
|
|
218
|
+
class=${cvaWrapper({ disabled: this.disabled })}
|
|
209
219
|
style="--slider-ratio:${progress}%"
|
|
210
220
|
@mousedown=${this._startDrag}
|
|
211
221
|
@touchstart=${this._startTouch}
|
|
@@ -235,7 +245,7 @@ let DaikinSlider = class extends DDSFormElement {
|
|
|
235
245
|
if (!changedProperties.has("value")) {
|
|
236
246
|
return;
|
|
237
247
|
}
|
|
238
|
-
this._updateFormValue();
|
|
248
|
+
this._updateFormValue(changedProperties.get("value") !== void 0);
|
|
239
249
|
}
|
|
240
250
|
};
|
|
241
251
|
DaikinSlider.styles = css`
|
|
@@ -20,11 +20,10 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
20
20
|
const cvaWrapper = cva(
|
|
21
21
|
[
|
|
22
22
|
"flex",
|
|
23
|
+
"relative",
|
|
23
24
|
"items-center",
|
|
24
25
|
"size-full",
|
|
25
|
-
"font-daikinSerif",
|
|
26
26
|
"font-normal",
|
|
27
|
-
"leading-[130%]",
|
|
28
27
|
"gap-1",
|
|
29
28
|
"natural-break",
|
|
30
29
|
"before:content-['']",
|
|
@@ -33,8 +32,8 @@ const cvaWrapper = cva(
|
|
|
33
32
|
{
|
|
34
33
|
variants: {
|
|
35
34
|
size: {
|
|
36
|
-
small: ["before:size-4", "text-
|
|
37
|
-
medium: ["before:size-6"
|
|
35
|
+
small: ["before:size-4", "text-(length:--dds-font-size-350)"],
|
|
36
|
+
medium: ["before:size-6"]
|
|
38
37
|
},
|
|
39
38
|
status: {
|
|
40
39
|
neutral: [
|
|
@@ -120,6 +120,7 @@ export declare class DaikinTable<T extends {
|
|
|
120
120
|
sortable: boolean;
|
|
121
121
|
/**
|
|
122
122
|
* An array of `id` values for the selected rows.
|
|
123
|
+
* When controlling this property externally, listen to the `change-check` event and read the updated `selection` from the component to keep your state in sync.
|
|
123
124
|
*/
|
|
124
125
|
selection: string[];
|
|
125
126
|
/**
|
|
@@ -127,6 +128,7 @@ export declare class DaikinTable<T extends {
|
|
|
127
128
|
* Used with the `order` property to determine which column is sorted and in which direction.
|
|
128
129
|
*
|
|
129
130
|
* For example, if `sort = "name"` and `order = "asc"`, the table will be sorted by the "name" column in ascending order.
|
|
131
|
+
* When controlling `sort` and `order` externally, listen to the `change-sort` event and read the updated `sort` and `order` from the component to keep your state in sync.
|
|
130
132
|
*/
|
|
131
133
|
sort: keyof T | null;
|
|
132
134
|
/**
|
|
@@ -187,7 +187,7 @@ let DaikinTable = class extends DDSElement {
|
|
|
187
187
|
</slot>
|
|
188
188
|
</td>`
|
|
189
189
|
);
|
|
190
|
-
return html`<div class="flex flex-col gap-6 w-full
|
|
190
|
+
return html`<div class="flex flex-col gap-6 w-full">
|
|
191
191
|
<table
|
|
192
192
|
${ref(this._tableRef)}
|
|
193
193
|
class="w-full group"
|
|
@@ -43,6 +43,7 @@ export declare class DaikinTabs extends DDSElement {
|
|
|
43
43
|
static readonly styles: import('lit').CSSResult;
|
|
44
44
|
/**
|
|
45
45
|
* `value` of the currently selected tab (`daikin-tab`).
|
|
46
|
+
* When controlling this property externally, listen to the `change` event and read the updated `value` from the component to keep your state in sync.
|
|
46
47
|
*/
|
|
47
48
|
value: string;
|
|
48
49
|
/**
|
|
@@ -69,7 +69,7 @@ let DaikinTag = class extends DDSElement {
|
|
|
69
69
|
class=${cvaWrapper()}
|
|
70
70
|
>
|
|
71
71
|
<span
|
|
72
|
-
class="text-ddt-color-common-text-primary p-2 text-
|
|
72
|
+
class="text-ddt-color-common-text-primary p-2 text-(length:--dds-font-size-350) natural-break"
|
|
73
73
|
>
|
|
74
74
|
<slot></slot>
|
|
75
75
|
</span>
|
|
@@ -15,7 +15,7 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
15
15
|
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
16
16
|
* @prop {String} formAttr - The form the component belongs to.
|
|
17
17
|
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
18
|
-
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
18
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form. To keep external state in sync, listen to the `change` event.
|
|
19
19
|
*
|
|
20
20
|
* @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<textarea>` element.
|
|
21
21
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
@@ -15,7 +15,7 @@ import { DaikinInputGroup } from "../input-group/index.js";
|
|
|
15
15
|
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
16
16
|
* @prop {String} formAttr - The form the component belongs to.
|
|
17
17
|
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
18
|
-
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
18
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form. To keep external state in sync, listen to the `change` event.
|
|
19
19
|
*
|
|
20
20
|
* @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<input>` element.
|
|
21
21
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
@@ -17,7 +17,7 @@ export type { FactoryOpts, InputMask };
|
|
|
17
17
|
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
18
18
|
* @prop {String} formAttr - The form the component belongs to.
|
|
19
19
|
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
20
|
-
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
20
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form. To keep external state in sync, listen to the `change` event.
|
|
21
21
|
*
|
|
22
22
|
* @fires change - A cloned event of a [change event](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event) emitted from the inner `<input>` element.
|
|
23
23
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event).
|
|
@@ -73,7 +73,7 @@ export declare function calcDigitInput(parts: Readonly<TimeParts>, item: TimeIte
|
|
|
73
73
|
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
74
74
|
* @prop {String} formAttr - The form the component belongs to.
|
|
75
75
|
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
76
|
-
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
76
|
+
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form. To keep external state in sync, listen to the `change` event.
|
|
77
77
|
*
|
|
78
78
|
* @fires change - A custom event emitted when the value of component changed. Validation errors will not trigger this event.
|
|
79
79
|
* @fires input - A retargeted event of a [input event](https://developer.mozilla.org/en-US/docs/Web/API/Element/input_event). Triggered when user type value to input area and change the value of component. change dropdown or validation errors will not trigger this event.
|
|
@@ -485,7 +485,7 @@ let DaikinTimePicker = class extends DDSFormElement {
|
|
|
485
485
|
return html`<div
|
|
486
486
|
role="group"
|
|
487
487
|
aria-label=${ifDefined(this._label ?? void 0)}
|
|
488
|
-
class="flex flex-row h-full gap-2
|
|
488
|
+
class="flex flex-row h-full gap-2"
|
|
489
489
|
>
|
|
490
490
|
<input
|
|
491
491
|
${ref(this._timeInputElement)}
|
|
@@ -29,7 +29,6 @@ const cvaContainer = cva(
|
|
|
29
29
|
"bg-ddt-color-common-background-default",
|
|
30
30
|
"p-4",
|
|
31
31
|
"overflow-hidden",
|
|
32
|
-
"font-daikinSerif",
|
|
33
32
|
"transition",
|
|
34
33
|
"box-border",
|
|
35
34
|
"before:size-6",
|
|
@@ -78,7 +77,7 @@ const cvaContent = cva(["flex", "items-center", "w-full"], {
|
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
});
|
|
81
|
-
const cvaTitle = cva(["font-bold"
|
|
80
|
+
const cvaTitle = cva(["font-bold"], {
|
|
82
81
|
variants: {
|
|
83
82
|
layout: {
|
|
84
83
|
vertical: ["natural-break"],
|
|
@@ -86,7 +85,7 @@ const cvaTitle = cva(["font-bold", "leading-[130%]"], {
|
|
|
86
85
|
}
|
|
87
86
|
}
|
|
88
87
|
});
|
|
89
|
-
const cvaDescription = cva(["inline-block"
|
|
88
|
+
const cvaDescription = cva(["inline-block"], {
|
|
90
89
|
variants: {
|
|
91
90
|
layout: {
|
|
92
91
|
vertical: ["natural-break"],
|
|
@@ -29,6 +29,7 @@ export declare class DaikinToggle extends DDSFormElement {
|
|
|
29
29
|
static readonly styles: import('lit').CSSResult;
|
|
30
30
|
/**
|
|
31
31
|
* Whether the toggle switch is turned on.
|
|
32
|
+
* To keep external state in sync, listen to the `change` event.
|
|
32
33
|
*/
|
|
33
34
|
checked: boolean;
|
|
34
35
|
/**
|
|
@@ -54,6 +54,9 @@ export declare class DaikinTooltip extends DDSElement {
|
|
|
54
54
|
color: TooltipVariantProps["color"];
|
|
55
55
|
/**
|
|
56
56
|
* Whether the tooltip is open.
|
|
57
|
+
* When controlling this property manually, make sure to:
|
|
58
|
+
* - Set `trigger="manual"`.
|
|
59
|
+
* - Either set `popover-value="manual"`, or listen to the `toggle` event and sync your state based on `event.newState`.
|
|
57
60
|
*/
|
|
58
61
|
open: boolean;
|
|
59
62
|
/**
|
|
@@ -64,8 +67,10 @@ export declare class DaikinTooltip extends DDSElement {
|
|
|
64
67
|
description: string;
|
|
65
68
|
/**
|
|
66
69
|
* Specify the value of the popover attribute in the Popover API.
|
|
67
|
-
* - `auto`:
|
|
68
|
-
* - `manual`:
|
|
70
|
+
* - `auto`: Enables the browser's native popover behavior, such as closing on outside click or when the Esc key is pressed. Only one `auto` popover can remain open at a time.
|
|
71
|
+
* - `manual`: Disables automatic light-dismiss behavior. The tooltip will not close on outside click or when the Esc key is pressed, and multiple `manual` popovers can remain open at the same time.
|
|
72
|
+
*
|
|
73
|
+
* When controlling `open` manually, either set `popover-value="manual"` or listen to the `toggle` event and sync your state based on `event.newState`.
|
|
69
74
|
*
|
|
70
75
|
* @default "auto"
|
|
71
76
|
*/
|
|
@@ -76,6 +81,8 @@ export declare class DaikinTooltip extends DDSElement {
|
|
|
76
81
|
* - `click`: The tooltip is displayed when the mouse clicks on the trigger element, and hidden when you click on it again.
|
|
77
82
|
* - `manual`: The tooltip does not respond to user interaction. Use this to control the tooltip programmatically.
|
|
78
83
|
*
|
|
84
|
+
* When controlling `open` manually, use `trigger="manual"` (do not use other trigger values).
|
|
85
|
+
*
|
|
79
86
|
* @default "hover"
|
|
80
87
|
*/
|
|
81
88
|
trigger: "hover" | "click" | "manual";
|
|
@@ -26,12 +26,10 @@ const cvaTooltip = cva(
|
|
|
26
26
|
"left-(--floating-x,0)",
|
|
27
27
|
"top-(--floating-y,0)",
|
|
28
28
|
"w-max",
|
|
29
|
-
"text-
|
|
29
|
+
"text-(length:--dds-font-size-350)",
|
|
30
30
|
"p-2",
|
|
31
|
-
"leading-[130%]",
|
|
32
31
|
"border",
|
|
33
32
|
"rounded-sm",
|
|
34
|
-
"font-daikinSerif",
|
|
35
33
|
"absolute",
|
|
36
34
|
"floating-unready:hidden"
|
|
37
35
|
],
|
|
@@ -122,7 +120,7 @@ let DaikinTooltip = class extends DDSElement {
|
|
|
122
120
|
10
|
|
123
121
|
);
|
|
124
122
|
return html`<div
|
|
125
|
-
class="relative inline-block text-ddt-color-common-text-primary
|
|
123
|
+
class="relative inline-block text-ddt-color-common-text-primary"
|
|
126
124
|
>
|
|
127
125
|
<div
|
|
128
126
|
id="trigger"
|
|
@@ -8,6 +8,8 @@ import { DDSElement } from "../../base/index.js";
|
|
|
8
8
|
* - `daikin-tree` > `daikin-tree-section` > `daikin-tree-section` ...
|
|
9
9
|
* - `daikin-tree` > `daikin-tree-item`
|
|
10
10
|
*
|
|
11
|
+
* @fires change - A custom event emitted when the selection changes due to user interaction. The updated `selectedItems` can be read from the event target.
|
|
12
|
+
*
|
|
11
13
|
* @slot - A slot for tree sections and tree items. Place `daikin-tree-section` or `daikin-tree-item` elements here.
|
|
12
14
|
*
|
|
13
15
|
* @example
|
|
@@ -39,6 +41,8 @@ export declare class DaikinTree extends DDSElement {
|
|
|
39
41
|
selectable: boolean;
|
|
40
42
|
/**
|
|
41
43
|
* The values of the currently selected tree sections or items.
|
|
44
|
+
* When `selectable` is `true`, this property is updated and a `change` event is emitted when the user clicks.
|
|
45
|
+
* When controlling this property externally, listen to the `change` event and read the updated `selectedItems` from the component to keep your state in sync.
|
|
42
46
|
* Even if `selectable` is `false`, you can still set this property yourself.
|
|
43
47
|
* See the `value` property of the `daikin-tree-section` and `daikin-tree-item` components.
|
|
44
48
|
*/
|