@daikin-oss/design-system-web-components 1.5.2-next.0 → 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 +134 -0
- package/custom-elements.json +4783 -2726
- 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
|
@@ -2,6 +2,29 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* `daikin-modal` is an interactive overlay that appears on top of the main content to prompt user input or display important information, temporarily blocking interaction with the rest of the page. It's crucial for capturing user attention and guiding specific actions.
|
|
4
4
|
*
|
|
5
|
+
* ### Scroll Lock
|
|
6
|
+
*
|
|
7
|
+
* When the modal is open, it sets the CSS custom property `--ddc-scroll-lock: hidden` on the `<html>` element and removes it when the modal is closed.
|
|
8
|
+
* To enable scroll locking, add the following CSS. If you use a custom scroll container instead of `body`, replace the selector accordingly:
|
|
9
|
+
*
|
|
10
|
+
* ```css
|
|
11
|
+
* body {
|
|
12
|
+
* overflow: var(--ddc-scroll-lock, auto);
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* When no modal is open, `--ddc-scroll-lock` is absent and the fallback value (`auto`) takes effect.
|
|
17
|
+
* When a modal opens, it is set to `hidden`, locking scroll on every element that uses it.
|
|
18
|
+
*
|
|
19
|
+
* ## Multiple modals or drawers
|
|
20
|
+
*
|
|
21
|
+
* If multiple `daikin-modal` or `daikin-drawer` instances are open at the same time, the component tracks them with an internal reference count.
|
|
22
|
+
* `--ddc-scroll-lock` is only removed from `<html>` once **every** open modal or drawer has been closed - closing one modal or drawer while others remain open will not unlock scroll.
|
|
23
|
+
* This means your CSS declaration requires no extra logic to handle concurrent modals or drawers correctly.
|
|
24
|
+
*
|
|
25
|
+
* > **Note:** The `--ddc-scroll-lock` property is set on `<html>` and inherits through the entire document,
|
|
26
|
+
* > so the CSS declaration above works on any element regardless of its position in the DOM tree.
|
|
27
|
+
*
|
|
5
28
|
* Hierarchy:
|
|
6
29
|
* - `daikin-modal` > `daikin-modal-header`
|
|
7
30
|
* - `daikin-modal` > `daikin-modal-footer`
|
|
@@ -37,6 +60,7 @@ export declare class DaikinModal extends DDSElement {
|
|
|
37
60
|
static styles: import('lit').CSSResult;
|
|
38
61
|
/**
|
|
39
62
|
* Whether the modal is open.
|
|
63
|
+
* When controlling this property externally, listen to the `close` event and set your state to `false` to keep it in sync.
|
|
40
64
|
*/
|
|
41
65
|
open: boolean;
|
|
42
66
|
/**
|
|
@@ -49,6 +73,7 @@ export declare class DaikinModal extends DDSElement {
|
|
|
49
73
|
* The aria-label of the modal.
|
|
50
74
|
*/
|
|
51
75
|
modalAriaLabel: string | null;
|
|
76
|
+
private readonly _blockScrollController;
|
|
52
77
|
/**
|
|
53
78
|
* If this property set by `true`, you can't close modal by clicking outside of modal or Escape key.
|
|
54
79
|
* In this case, please ensure you provide users with a method to close the modal, such as a close button in the header or a close button in the footer.
|
|
@@ -17,7 +17,7 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
17
17
|
};
|
|
18
18
|
exports.DaikinModalFooter = class DaikinModalFooter extends ddsElement.DDSElement {
|
|
19
19
|
render() {
|
|
20
|
-
return lit.html`<div class="flex flex-wrap justify-end w-full gap-4">
|
|
20
|
+
return lit.html`<div class="flex flex-wrap justify-end w-full gap-x-4 gap-y-3">
|
|
21
21
|
<slot></slot>
|
|
22
22
|
</div>`;
|
|
23
23
|
}
|
|
@@ -24,7 +24,6 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
24
24
|
const cvaTitle = classVarianceAuthority.cva([
|
|
25
25
|
"flex-none",
|
|
26
26
|
"text-ddt-color-common-text-primary",
|
|
27
|
-
"font-daikinSerif",
|
|
28
27
|
"text-xl",
|
|
29
28
|
"leading-[1.3]",
|
|
30
29
|
"not-italic",
|
|
@@ -33,7 +32,6 @@ const cvaTitle = classVarianceAuthority.cva([
|
|
|
33
32
|
const cvaDescription = classVarianceAuthority.cva([
|
|
34
33
|
"flex-none",
|
|
35
34
|
"text-ddt-color-common-text-primary",
|
|
36
|
-
"font-daikinSerif",
|
|
37
35
|
"text-base",
|
|
38
36
|
"leading-normal",
|
|
39
37
|
"not-italic",
|
|
@@ -24,6 +24,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
24
24
|
* <daikin-navigation-item href="#" current>
|
|
25
25
|
* Navigation content 1
|
|
26
26
|
* </daikin-navigation-item>
|
|
27
|
+
* <!-- Menu width can be set on the slotted <daikin-list slot="menu">, or via daikin-menu::part(menu). See the menu documentation for details. -->
|
|
27
28
|
* <daikin-menu placement="bottom-start">
|
|
28
29
|
* <daikin-navigation-item type="menu">
|
|
29
30
|
* Navigation content 2
|
|
@@ -23,6 +23,8 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
23
23
|
const cvaBaseClasses = [
|
|
24
24
|
"flex",
|
|
25
25
|
"relative",
|
|
26
|
+
"h-full",
|
|
27
|
+
"w-full",
|
|
26
28
|
"gap-1",
|
|
27
29
|
"justify-center",
|
|
28
30
|
"items-center",
|
|
@@ -30,9 +32,6 @@ const cvaBaseClasses = [
|
|
|
30
32
|
"px-8",
|
|
31
33
|
"pt-2",
|
|
32
34
|
"pb-3",
|
|
33
|
-
"font-daikinSerif",
|
|
34
|
-
"text-base",
|
|
35
|
-
"leading-[130%]",
|
|
36
35
|
"font-bold",
|
|
37
36
|
"focus-visible:outline-hidden",
|
|
38
37
|
"focus-visible:before:absolute",
|
|
@@ -115,7 +114,7 @@ exports.DaikinNavigationItem = class DaikinNavigationItem extends ddsElement.DDS
|
|
|
115
114
|
case "link": {
|
|
116
115
|
const linkDisabled = this.disabled || this.href == null;
|
|
117
116
|
return lit.html`
|
|
118
|
-
<div role="listitem">
|
|
117
|
+
<div role="listitem" class="h-full">
|
|
119
118
|
<a
|
|
120
119
|
href=${ifDefined_js.ifDefined(!linkDisabled ? this.href : void 0)}
|
|
121
120
|
class=${cvaLinkItem({
|
|
@@ -129,14 +128,14 @@ exports.DaikinNavigationItem = class DaikinNavigationItem extends ddsElement.DDS
|
|
|
129
128
|
name="left-icon"
|
|
130
129
|
class="icon-size-6 slotted:flex-none"
|
|
131
130
|
></slot
|
|
132
|
-
><span class="px-1
|
|
131
|
+
><span class="px-1 natural-break text-left"><slot></slot></span
|
|
133
132
|
></a>
|
|
134
133
|
</div>
|
|
135
134
|
`;
|
|
136
135
|
}
|
|
137
136
|
case "menu":
|
|
138
137
|
return lit.html`
|
|
139
|
-
<div role="listitem">
|
|
138
|
+
<div role="listitem" class="h-full">
|
|
140
139
|
<button
|
|
141
140
|
type="button"
|
|
142
141
|
class=${cvaMenuItem({
|
|
@@ -152,7 +151,7 @@ exports.DaikinNavigationItem = class DaikinNavigationItem extends ddsElement.DDS
|
|
|
152
151
|
name="left-icon"
|
|
153
152
|
class="icon-size-6 slotted:flex-none"
|
|
154
153
|
></slot
|
|
155
|
-
><span class="px-1
|
|
154
|
+
><span class="px-1 natural-break text-left"><slot></slot></span
|
|
156
155
|
><span
|
|
157
156
|
class="icon-[daikin--chevron-down] size-6 flex-none rotate-(--chevron-rotation)"
|
|
158
157
|
></span>
|
|
@@ -32,7 +32,6 @@ const cvaPageButton = classVarianceAuthority.cva(
|
|
|
32
32
|
"min-w-12",
|
|
33
33
|
"min-h-12",
|
|
34
34
|
"p-1",
|
|
35
|
-
"font-daikinSerif",
|
|
36
35
|
"text-base",
|
|
37
36
|
"not-italic",
|
|
38
37
|
"leading-6",
|
|
@@ -81,7 +80,6 @@ const cvaEllipsis = classVarianceAuthority.cva([
|
|
|
81
80
|
"justify-center",
|
|
82
81
|
"w-12",
|
|
83
82
|
"h-12",
|
|
84
|
-
"font-daikinSerif",
|
|
85
83
|
"text-base",
|
|
86
84
|
"not-italic",
|
|
87
85
|
"font-normal",
|
|
@@ -97,7 +95,6 @@ const cvaChevronButton = classVarianceAuthority.cva([
|
|
|
97
95
|
"w-12",
|
|
98
96
|
"h-12",
|
|
99
97
|
"text-ddt-color-common-neutral-default",
|
|
100
|
-
"font-daikinSerif",
|
|
101
98
|
"text-base",
|
|
102
99
|
"not-italic",
|
|
103
100
|
"font-normal",
|
|
@@ -120,12 +117,22 @@ exports.DaikinPagination = class DaikinPagination extends ddsElement.DDSElement
|
|
|
120
117
|
this.window = 5;
|
|
121
118
|
}
|
|
122
119
|
_goto(page) {
|
|
123
|
-
|
|
120
|
+
const newPage = Math.max(Math.min(page, this.total), 1);
|
|
121
|
+
if (!this.dispatchEvent(
|
|
122
|
+
new CustomEvent("before-change", {
|
|
123
|
+
bubbles: true,
|
|
124
|
+
composed: true,
|
|
125
|
+
cancelable: true,
|
|
126
|
+
detail: { page: newPage }
|
|
127
|
+
})
|
|
128
|
+
)) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
this.current = newPage;
|
|
124
132
|
this.dispatchEvent(
|
|
125
133
|
new Event("change", {
|
|
126
134
|
bubbles: true,
|
|
127
|
-
composed: true
|
|
128
|
-
cancelable: true
|
|
135
|
+
composed: true
|
|
129
136
|
})
|
|
130
137
|
);
|
|
131
138
|
}
|
|
@@ -2,7 +2,8 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
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
|
/**
|
|
@@ -57,7 +57,6 @@ const cvaBarContainer = classVarianceAuthority.cva(
|
|
|
57
57
|
"justify-between",
|
|
58
58
|
"items-center",
|
|
59
59
|
"text-ddt-color-common-text-primary",
|
|
60
|
-
"leading-[130%]",
|
|
61
60
|
"font-bold",
|
|
62
61
|
"natural-break"
|
|
63
62
|
],
|
|
@@ -82,7 +81,7 @@ const cvaBarContainer = classVarianceAuthority.cva(
|
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
);
|
|
85
|
-
const cvaHelper = classVarianceAuthority.cva(["text-
|
|
84
|
+
const cvaHelper = classVarianceAuthority.cva(["text-(length:--dds-font-size-350)", "natural-break"], {
|
|
86
85
|
variants: {
|
|
87
86
|
variant: {
|
|
88
87
|
inprogress: ["text-ddt-color-common-text-secondary"],
|
|
@@ -131,7 +130,7 @@ exports.DaikinProgressBar = class DaikinProgressBar extends ddsElement.DDSElemen
|
|
|
131
130
|
}
|
|
132
131
|
render() {
|
|
133
132
|
const progressRatio = Math.min(Math.max(this.value / this.max, 0), 1);
|
|
134
|
-
return lit.html`<div class="flex flex-col gap-2 w-full
|
|
133
|
+
return lit.html`<div class="flex flex-col gap-2 w-full">
|
|
135
134
|
<div class=${cvaBarContainer({ variant: this.variant })}>
|
|
136
135
|
<slot></slot>
|
|
137
136
|
</div>
|
|
@@ -34,7 +34,7 @@ exports.DaikinProgressIndicator = class DaikinProgressIndicator extends ddsEleme
|
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
return lit.html`<div
|
|
37
|
-
class="flex justify-stretch items-start gap-2 w-full
|
|
37
|
+
class="flex justify-stretch items-start gap-2 w-full"
|
|
38
38
|
role="list"
|
|
39
39
|
>
|
|
40
40
|
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
@@ -16,16 +16,16 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
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>
|
|
@@ -27,8 +27,7 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
27
27
|
"w-full",
|
|
28
28
|
"text-ddt-color-common-text-primary",
|
|
29
29
|
"pt-2",
|
|
30
|
-
"border-t-4"
|
|
31
|
-
"font-daikinSerif"
|
|
30
|
+
"border-t-4"
|
|
32
31
|
],
|
|
33
32
|
{
|
|
34
33
|
variants: {
|
|
@@ -50,13 +49,16 @@ exports.DaikinProgressIndicatorItem = class DaikinProgressIndicatorItem extends
|
|
|
50
49
|
)}
|
|
51
50
|
>
|
|
52
51
|
<div class="flex flex-col gap-1 w-full overflow-auto natural-break">
|
|
53
|
-
<
|
|
54
|
-
<slot
|
|
52
|
+
<span class="font-bold"><slot></slot></span>
|
|
53
|
+
<slot
|
|
54
|
+
class="text-(length:--dds-font-size-350)"
|
|
55
|
+
name="description"
|
|
56
|
+
></slot>
|
|
55
57
|
</div>
|
|
56
58
|
${this.status === "finished" ? lit.html`
|
|
57
59
|
<span
|
|
58
60
|
role="img"
|
|
59
|
-
class="flex-none size-4 icon-[daikin--success] text-ddt-color-common-brand-default"
|
|
61
|
+
class="flex-none size-4 icon-[daikin--success] text-ddt-color-common-brand-default mt-0.5"
|
|
60
62
|
aria-label="Completed"
|
|
61
63
|
></span>
|
|
62
64
|
` : lit.nothing}
|
package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts
CHANGED
|
@@ -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>
|
|
@@ -20,6 +20,17 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
20
20
|
if (kind && result) __defProp(target, key, result);
|
|
21
21
|
return result;
|
|
22
22
|
};
|
|
23
|
+
const cvaWrapper = classVarianceAuthority.cva(
|
|
24
|
+
["group", "flex", "gap-2", "items-center", "size-full"],
|
|
25
|
+
{
|
|
26
|
+
variants: {
|
|
27
|
+
disabled: {
|
|
28
|
+
false: ["cursor-pointer"],
|
|
29
|
+
true: []
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
);
|
|
23
34
|
const RADIO_CLASS_NAME = classVarianceAuthority.cva([
|
|
24
35
|
"flex",
|
|
25
36
|
"justify-center",
|
|
@@ -33,6 +44,7 @@ const RADIO_CLASS_NAME = classVarianceAuthority.cva([
|
|
|
33
44
|
"focus-visible:outline-offset-2",
|
|
34
45
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
35
46
|
"unchecked:border-2",
|
|
47
|
+
"enabled:cursor-pointer",
|
|
36
48
|
"enabled:unchecked:border-ddt-color-common-neutral-default",
|
|
37
49
|
"group-hover:unchecked:enabled:border-ddt-color-common-neutral-hover",
|
|
38
50
|
"group-active:unchecked:enabled:border-ddt-color-common-neutral-press",
|
|
@@ -72,7 +84,7 @@ exports.DaikinRadio = class DaikinRadio extends ddsFormElement.DDSFormElement {
|
|
|
72
84
|
}
|
|
73
85
|
_handleClick(event) {
|
|
74
86
|
var _a;
|
|
75
|
-
if (this.disabled) {
|
|
87
|
+
if (this.disabled || this.disabledByParent) {
|
|
76
88
|
event.preventDefault();
|
|
77
89
|
}
|
|
78
90
|
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT") {
|
|
@@ -92,7 +104,7 @@ exports.DaikinRadio = class DaikinRadio extends ddsFormElement.DDSFormElement {
|
|
|
92
104
|
render() {
|
|
93
105
|
const disabled = this.disabled || this.disabledByParent;
|
|
94
106
|
return lit.html`<label
|
|
95
|
-
class
|
|
107
|
+
class=${cvaWrapper({ disabled })}
|
|
96
108
|
@click=${this._handleClick}
|
|
97
109
|
>
|
|
98
110
|
<span class="p-2">
|
|
@@ -37,7 +37,9 @@ exports.DaikinRadioGroup = class DaikinRadioGroup extends ddsElement.DDSElement
|
|
|
37
37
|
this.disabled = false;
|
|
38
38
|
this._label = null;
|
|
39
39
|
this._handleRadioChange = (event) => {
|
|
40
|
+
event.stopPropagation();
|
|
40
41
|
this.value = event.target.value;
|
|
42
|
+
this.dispatchEvent(new Event("change"));
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
_reflectSlotProperties() {
|
|
@@ -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
|
/**
|
|
@@ -44,7 +44,6 @@ const cvaSelect = classVarianceAuthority.cva(
|
|
|
44
44
|
"slotted-select:pl-4!",
|
|
45
45
|
"slotted-select:pr-12!",
|
|
46
46
|
"slotted-select:text-base!",
|
|
47
|
-
"slotted-select:font-daikinSerif!",
|
|
48
47
|
"slotted-select:border!",
|
|
49
48
|
"slotted-select:border-(--color-base)!",
|
|
50
49
|
"slotted-select:rounded-sm!",
|
|
@@ -21,6 +21,14 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
21
21
|
if (kind && result) __defProp(target, key, result);
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
|
+
const cvaWrapper = classVarianceAuthority.cva(["relative", "w-full", "h-6"], {
|
|
25
|
+
variants: {
|
|
26
|
+
disabled: {
|
|
27
|
+
false: ["cursor-pointer"],
|
|
28
|
+
true: []
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
24
32
|
const cvaSliderThumb = classVarianceAuthority.cva(
|
|
25
33
|
[
|
|
26
34
|
"absolute",
|
|
@@ -36,7 +44,6 @@ const cvaSliderThumb = classVarianceAuthority.cva(
|
|
|
36
44
|
variants: {
|
|
37
45
|
disabled: {
|
|
38
46
|
false: [
|
|
39
|
-
"cursor-pointer",
|
|
40
47
|
"[&:not([data-dragging])]:bg-ddt-color-common-brand-default",
|
|
41
48
|
"[&:not([data-dragging])]:hover:bg-ddt-color-common-brand-hover",
|
|
42
49
|
"[&:not([data-dragging])]:active:bg-ddt-color-common-brand-press",
|
|
@@ -78,11 +85,14 @@ exports.DaikinSlider = class DaikinSlider extends ddsFormElement.DDSFormElement
|
|
|
78
85
|
this._thumbRef = ref_js.createRef();
|
|
79
86
|
this.value = this.min;
|
|
80
87
|
}
|
|
81
|
-
_updateFormValue() {
|
|
88
|
+
_updateFormValue(emitEvents) {
|
|
82
89
|
if (this.disabled) {
|
|
83
90
|
return;
|
|
84
91
|
}
|
|
85
92
|
this.setFormValue(this.value);
|
|
93
|
+
if (!emitEvents) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
86
96
|
this.dispatchEvent(
|
|
87
97
|
new Event("change", {
|
|
88
98
|
bubbles: true,
|
|
@@ -207,7 +217,7 @@ exports.DaikinSlider = class DaikinSlider extends ddsFormElement.DDSFormElement
|
|
|
207
217
|
return lit.html`
|
|
208
218
|
<span
|
|
209
219
|
${ref_js.ref(this._sliderRef)}
|
|
210
|
-
class
|
|
220
|
+
class=${cvaWrapper({ disabled: this.disabled })}
|
|
211
221
|
style="--slider-ratio:${progress}%"
|
|
212
222
|
@mousedown=${this._startDrag}
|
|
213
223
|
@touchstart=${this._startTouch}
|
|
@@ -237,7 +247,7 @@ exports.DaikinSlider = class DaikinSlider extends ddsFormElement.DDSFormElement
|
|
|
237
247
|
if (!changedProperties.has("value")) {
|
|
238
248
|
return;
|
|
239
249
|
}
|
|
240
|
-
this._updateFormValue();
|
|
250
|
+
this._updateFormValue(changedProperties.get("value") !== void 0);
|
|
241
251
|
}
|
|
242
252
|
};
|
|
243
253
|
exports.DaikinSlider.styles = lit.css`
|
|
@@ -9,7 +9,7 @@ import { DDSFormElement } from "../../base/index.cjs";
|
|
|
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).
|
|
@@ -22,11 +22,10 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
22
22
|
const cvaWrapper = classVarianceAuthority.cva(
|
|
23
23
|
[
|
|
24
24
|
"flex",
|
|
25
|
+
"relative",
|
|
25
26
|
"items-center",
|
|
26
27
|
"size-full",
|
|
27
|
-
"font-daikinSerif",
|
|
28
28
|
"font-normal",
|
|
29
|
-
"leading-[130%]",
|
|
30
29
|
"gap-1",
|
|
31
30
|
"natural-break",
|
|
32
31
|
"before:content-['']",
|
|
@@ -35,8 +34,8 @@ const cvaWrapper = classVarianceAuthority.cva(
|
|
|
35
34
|
{
|
|
36
35
|
variants: {
|
|
37
36
|
size: {
|
|
38
|
-
small: ["before:size-4", "text-
|
|
39
|
-
medium: ["before:size-6"
|
|
37
|
+
small: ["before:size-4", "text-(length:--dds-font-size-350)"],
|
|
38
|
+
medium: ["before:size-6"]
|
|
40
39
|
},
|
|
41
40
|
status: {
|
|
42
41
|
neutral: [
|
|
@@ -189,7 +189,7 @@ exports.DaikinTable = class DaikinTable extends ddsElement.DDSElement {
|
|
|
189
189
|
</slot>
|
|
190
190
|
</td>`
|
|
191
191
|
);
|
|
192
|
-
return lit.html`<div class="flex flex-col gap-6 w-full
|
|
192
|
+
return lit.html`<div class="flex flex-col gap-6 w-full">
|
|
193
193
|
<table
|
|
194
194
|
${ref_js.ref(this._tableRef)}
|
|
195
195
|
class="w-full group"
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -71,7 +71,7 @@ exports.DaikinTag = class DaikinTag extends ddsElement.DDSElement {
|
|
|
71
71
|
class=${cvaWrapper()}
|
|
72
72
|
>
|
|
73
73
|
<span
|
|
74
|
-
class="text-ddt-color-common-text-primary p-2 text-
|
|
74
|
+
class="text-ddt-color-common-text-primary p-2 text-(length:--dds-font-size-350) natural-break"
|
|
75
75
|
>
|
|
76
76
|
<slot></slot>
|
|
77
77
|
</span>
|
|
@@ -15,7 +15,7 @@ import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
|
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.cjs";
|
|
|
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).
|
|
@@ -487,7 +487,7 @@ exports.DaikinTimePicker = class DaikinTimePicker extends ddsFormElement.DDSForm
|
|
|
487
487
|
return lit.html`<div
|
|
488
488
|
role="group"
|
|
489
489
|
aria-label=${ifDefined_js.ifDefined(this._label ?? void 0)}
|
|
490
|
-
class="flex flex-row h-full gap-2
|
|
490
|
+
class="flex flex-row h-full gap-2"
|
|
491
491
|
>
|
|
492
492
|
<input
|
|
493
493
|
${ref_js.ref(this._timeInputElement)}
|
|
@@ -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.
|