@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
|
@@ -18,6 +18,10 @@ const daikinCheckboxGroup = require("./checkbox-group/daikin-checkbox-group.cjs"
|
|
|
18
18
|
const daikinChip = require("./chip/daikin-chip.cjs");
|
|
19
19
|
const daikinCombobox = require("./combobox/daikin-combobox.cjs");
|
|
20
20
|
const daikinDatePicker = require("./date-picker/daikin-date-picker.cjs");
|
|
21
|
+
const daikinDivider = require("./divider/daikin-divider.cjs");
|
|
22
|
+
const daikinDrawer = require("./drawer/daikin-drawer.cjs");
|
|
23
|
+
const daikinDrawerFooter = require("./drawer-footer/daikin-drawer-footer.cjs");
|
|
24
|
+
const daikinDrawerHeader = require("./drawer-header/daikin-drawer-header.cjs");
|
|
21
25
|
const daikinDropdown = require("./dropdown/daikin-dropdown.cjs");
|
|
22
26
|
const daikinDropdownItem = require("./dropdown-item/daikin-dropdown-item.cjs");
|
|
23
27
|
const daikinEmptyState = require("./empty-state/daikin-empty-state.cjs");
|
|
@@ -63,6 +67,9 @@ const daikinTooltip = require("./tooltip/daikin-tooltip.cjs");
|
|
|
63
67
|
const daikinTree = require("./tree/daikin-tree.cjs");
|
|
64
68
|
const daikinTreeItem = require("./tree-item/daikin-tree-item.cjs");
|
|
65
69
|
const daikinTreeSection = require("./tree-section/daikin-tree-section.cjs");
|
|
70
|
+
const daikinVerticalNavigation = require("./vertical-navigation/daikin-vertical-navigation.cjs");
|
|
71
|
+
const daikinVerticalNavigationItem = require("./vertical-navigation-item/daikin-vertical-navigation-item.cjs");
|
|
72
|
+
const daikinVerticalNavigationMenuItem = require("./vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs");
|
|
66
73
|
Object.defineProperty(exports, "DaikinAccordion", {
|
|
67
74
|
enumerable: true,
|
|
68
75
|
get: () => daikinAccordion.DaikinAccordion
|
|
@@ -136,6 +143,22 @@ Object.defineProperty(exports, "DaikinDatePicker", {
|
|
|
136
143
|
enumerable: true,
|
|
137
144
|
get: () => daikinDatePicker.DaikinDatePicker
|
|
138
145
|
});
|
|
146
|
+
Object.defineProperty(exports, "DaikinDivider", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: () => daikinDivider.DaikinDivider
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "DaikinDrawer", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: () => daikinDrawer.DaikinDrawer
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(exports, "DaikinDrawerFooter", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: () => daikinDrawerFooter.DaikinDrawerFooter
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(exports, "DaikinDrawerHeader", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: () => daikinDrawerHeader.DaikinDrawerHeader
|
|
161
|
+
});
|
|
139
162
|
Object.defineProperty(exports, "DaikinDropdown", {
|
|
140
163
|
enumerable: true,
|
|
141
164
|
get: () => daikinDropdown.DaikinDropdown
|
|
@@ -328,3 +351,15 @@ Object.defineProperty(exports, "DaikinTreeSection", {
|
|
|
328
351
|
enumerable: true,
|
|
329
352
|
get: () => daikinTreeSection.DaikinTreeSection
|
|
330
353
|
});
|
|
354
|
+
Object.defineProperty(exports, "DaikinVerticalNavigation", {
|
|
355
|
+
enumerable: true,
|
|
356
|
+
get: () => daikinVerticalNavigation.DaikinVerticalNavigation
|
|
357
|
+
});
|
|
358
|
+
Object.defineProperty(exports, "DaikinVerticalNavigationItem", {
|
|
359
|
+
enumerable: true,
|
|
360
|
+
get: () => daikinVerticalNavigationItem.DaikinVerticalNavigationItem
|
|
361
|
+
});
|
|
362
|
+
Object.defineProperty(exports, "DaikinVerticalNavigationMenuItem", {
|
|
363
|
+
enumerable: true,
|
|
364
|
+
get: () => daikinVerticalNavigationMenuItem.DaikinVerticalNavigationMenuItem
|
|
365
|
+
});
|
|
@@ -16,6 +16,10 @@ export * from "./checkbox-group/index.cjs";
|
|
|
16
16
|
export * from "./chip/index.cjs";
|
|
17
17
|
export * from "./combobox/index.cjs";
|
|
18
18
|
export * from "./date-picker/index.cjs";
|
|
19
|
+
export * from "./divider/index.cjs";
|
|
20
|
+
export * from "./drawer/index.cjs";
|
|
21
|
+
export * from "./drawer-footer/index.cjs";
|
|
22
|
+
export * from "./drawer-header/index.cjs";
|
|
19
23
|
export * from "./dropdown/index.cjs";
|
|
20
24
|
export * from "./dropdown-item/index.cjs";
|
|
21
25
|
export * from "./empty-state/index.cjs";
|
|
@@ -61,3 +65,6 @@ export * from "./tooltip/index.cjs";
|
|
|
61
65
|
export * from "./tree/index.cjs";
|
|
62
66
|
export * from "./tree-item/index.cjs";
|
|
63
67
|
export * from "./tree-section/index.cjs";
|
|
68
|
+
export * from "./vertical-navigation/index.cjs";
|
|
69
|
+
export * from "./vertical-navigation-item/index.cjs";
|
|
70
|
+
export * from "./vertical-navigation-menu-item/index.cjs";
|
|
@@ -31,7 +31,6 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
31
31
|
"bg-ddt-color-common-background-default",
|
|
32
32
|
"p-4",
|
|
33
33
|
"overflow-hidden",
|
|
34
|
-
"font-daikinSerif",
|
|
35
34
|
"transition",
|
|
36
35
|
"box-border",
|
|
37
36
|
"before:size-6",
|
|
@@ -96,14 +95,9 @@ const cvaTextContent = classVarianceAuthority.cva(["flex"], {
|
|
|
96
95
|
const TITLE_CLASS_NAME = classVarianceAuthority.cva([
|
|
97
96
|
"slotted:inline-block",
|
|
98
97
|
"font-bold",
|
|
99
|
-
"leading-[130%]",
|
|
100
98
|
"slotted:natural-break"
|
|
101
99
|
])();
|
|
102
|
-
const DESCRIPTION_CLASS_NAME = classVarianceAuthority.cva([
|
|
103
|
-
"inline-block",
|
|
104
|
-
"leading-[130%]",
|
|
105
|
-
"natural-break"
|
|
106
|
-
])();
|
|
100
|
+
const DESCRIPTION_CLASS_NAME = classVarianceAuthority.cva(["inline-block", "natural-break"])();
|
|
107
101
|
exports.DaikinInlineNotification = class DaikinInlineNotification extends ddsElement.DDSElement {
|
|
108
102
|
constructor() {
|
|
109
103
|
super(...arguments);
|
|
@@ -20,7 +20,7 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
20
20
|
if (kind && result) __defProp(target, key, result);
|
|
21
21
|
return result;
|
|
22
22
|
};
|
|
23
|
-
const cvaLabel = classVarianceAuthority.cva(["flex", "items-center", "font-bold"
|
|
23
|
+
const cvaLabel = classVarianceAuthority.cva(["flex", "items-center", "font-bold"], {
|
|
24
24
|
variants: {
|
|
25
25
|
disabled: {
|
|
26
26
|
false: [],
|
|
@@ -29,7 +29,7 @@ const cvaLabel = classVarianceAuthority.cva(["flex", "items-center", "font-bold"
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
const cvaHelper = classVarianceAuthority.cva(
|
|
32
|
-
["flex", "gap-1", "items-center", "
|
|
32
|
+
["flex", "gap-1", "items-center", "text-(length:--dds-font-size-350)"],
|
|
33
33
|
{
|
|
34
34
|
variants: {
|
|
35
35
|
type: {
|
|
@@ -54,15 +54,18 @@ const cvaHelper = classVarianceAuthority.cva(
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
|
-
const cvaCounter = classVarianceAuthority.cva(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
const cvaCounter = classVarianceAuthority.cva(
|
|
58
|
+
["text-(length:--dds-font-size-350)", "font-bold", "ml-auto"],
|
|
59
|
+
{
|
|
60
|
+
variants: {
|
|
61
|
+
variant: {
|
|
62
|
+
normal: ["text-ddt-color-common-text-secondary"],
|
|
63
|
+
disabled: ["text-ddt-color-common-disabled"],
|
|
64
|
+
error: ["text-ddt-color-common-danger-default"]
|
|
65
|
+
}
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
|
-
|
|
68
|
+
);
|
|
66
69
|
exports.DaikinInputGroup = class DaikinInputGroup extends ddsElement.DDSElement {
|
|
67
70
|
constructor() {
|
|
68
71
|
super(...arguments);
|
|
@@ -135,13 +138,15 @@ exports.DaikinInputGroup = class DaikinInputGroup extends ddsElement.DDSElement
|
|
|
135
138
|
};
|
|
136
139
|
return lit.html`<fieldset class="contents" ?disabled=${this.disabled}>
|
|
137
140
|
<label
|
|
138
|
-
class="flex flex-col justify-center gap-2 w-full text-ddt-color-common-text-primary
|
|
141
|
+
class="flex flex-col justify-center gap-2 w-full text-ddt-color-common-text-primary"
|
|
139
142
|
>
|
|
140
143
|
<div class="flex items-center flex-wrap gap-1 font-bold">
|
|
141
144
|
${this.label ? lit.html`<span class=${cvaLabel({ disabled: this.disabled })}>
|
|
142
145
|
${this.label}
|
|
143
146
|
</span>` : lit.nothing}
|
|
144
|
-
${this.required && !this.disabled ? lit.html`<span
|
|
147
|
+
${this.required && !this.disabled ? lit.html`<span
|
|
148
|
+
class="text-ddt-color-common-danger-default text-(length:--dds-font-size-300)"
|
|
149
|
+
>
|
|
145
150
|
${this.required}
|
|
146
151
|
</span>` : lit.nothing}
|
|
147
152
|
</div>
|
|
@@ -20,31 +20,35 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
20
20
|
if (kind && result) __defProp(target, key, result);
|
|
21
21
|
return result;
|
|
22
22
|
};
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
const cvaLinkWrapper = classVarianceAuthority.cva(
|
|
24
|
+
[
|
|
25
|
+
"relative",
|
|
26
|
+
"natural-break",
|
|
27
|
+
"link-enabled:text-ddt-color-link-text-default",
|
|
28
|
+
"hover:link-enabled:text-ddt-color-link-text-hover",
|
|
29
|
+
"hover:link-enabled:bg-ddt-color-common-surface-brand-hover",
|
|
30
|
+
"active:link-enabled:text-ddt-color-link-text-press",
|
|
31
|
+
"active:link-enabled:bg-ddt-color-common-surface-brand-press",
|
|
32
|
+
"link-disabled:text-ddt-color-common-disabled",
|
|
33
|
+
"focus-visible:outline-solid",
|
|
34
|
+
"focus-visible:outline-2",
|
|
35
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
36
|
+
"focus-visible:outline-offset-2"
|
|
37
|
+
],
|
|
38
|
+
{
|
|
39
|
+
variants: {
|
|
40
|
+
size: {
|
|
41
|
+
small: ["text-(length:--dds-font-size-350)"],
|
|
42
|
+
medium: []
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
);
|
|
39
47
|
const cvaContent = classVarianceAuthority.cva([], {
|
|
40
48
|
variants: {
|
|
41
49
|
noUnderline: {
|
|
42
50
|
true: [],
|
|
43
51
|
false: ["border-b", "border-b-current"]
|
|
44
|
-
},
|
|
45
|
-
size: {
|
|
46
|
-
small: ["text-sm"],
|
|
47
|
-
medium: ["text-base"]
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
});
|
|
@@ -88,15 +92,14 @@ exports.DaikinLink = class DaikinLink extends ddsElement.DDSElement {
|
|
|
88
92
|
render() {
|
|
89
93
|
return lit.html`<a
|
|
90
94
|
${ref_js.ref(this._anchorRef)}
|
|
91
|
-
class=${
|
|
95
|
+
class=${cvaLinkWrapper({ size: this.size })}
|
|
92
96
|
href=${ifDefined_js.ifDefined(this.disabled ? void 0 : this.href ?? void 0)}
|
|
93
97
|
target=${ifDefined_js.ifDefined(this.target ?? void 0)}
|
|
94
98
|
aria-disabled=${ifDefined_js.ifDefined(this.disabled ? "true" : void 0)}
|
|
95
99
|
><span class="inline-flex mr-0.5 align-sub">
|
|
96
100
|
<slot name="left-icon" class="icon-size-4"
|
|
97
101
|
><span class="-mr-0.5"></span></slot></span
|
|
98
|
-
><span
|
|
99
|
-
class=${cvaContent({ noUnderline: this.noUnderline, size: this.size })}
|
|
102
|
+
><span class=${cvaContent({ noUnderline: this.noUnderline })}
|
|
100
103
|
><slot></slot></span
|
|
101
104
|
><span class="inline-flex ml-0.5 align-sub"
|
|
102
105
|
><slot name="right-icon" class="icon-size-4"
|
|
@@ -89,10 +89,22 @@ exports.DaikinList.styles = lit.css`
|
|
|
89
89
|
display: inline-block;
|
|
90
90
|
width: 100%;
|
|
91
91
|
}
|
|
92
|
+
|
|
93
|
+
:host([border="underline"]) ::slotted(daikin-list-item) {
|
|
94
|
+
--divider-bottom-display: block;
|
|
95
|
+
}
|
|
92
96
|
`;
|
|
93
97
|
__decorateClass([
|
|
94
98
|
ddsProperty.property({ type: String, attribute: false })
|
|
95
99
|
], exports.DaikinList.prototype, "listRole", 2);
|
|
100
|
+
__decorateClass([
|
|
101
|
+
ddsProperty.property({
|
|
102
|
+
type: String,
|
|
103
|
+
reflect: true,
|
|
104
|
+
fallbackValue: "none",
|
|
105
|
+
isAllowedValue: ddsProperty.oneOf(["none", "underline"])
|
|
106
|
+
})
|
|
107
|
+
], exports.DaikinList.prototype, "border", 2);
|
|
96
108
|
__decorateClass([
|
|
97
109
|
decorators_js.queryAssignedElements({ selector: "daikin-list-item" })
|
|
98
110
|
], exports.DaikinList.prototype, "_listItems", 2);
|
|
@@ -30,6 +30,14 @@ export declare class DaikinList extends DDSElement {
|
|
|
30
30
|
* Controlled by the `daikin-menu` component if used within it.
|
|
31
31
|
*/
|
|
32
32
|
listRole: "list" | "menu";
|
|
33
|
+
/**
|
|
34
|
+
* The border style of the list.
|
|
35
|
+
* - `none`: No border style.
|
|
36
|
+
* - `underline`: Underline border style.
|
|
37
|
+
*
|
|
38
|
+
* @default "none"
|
|
39
|
+
*/
|
|
40
|
+
border: "none" | "underline";
|
|
33
41
|
private readonly _listItems;
|
|
34
42
|
private _reflectSlotProperties;
|
|
35
43
|
private _handleSlotChange;
|
|
@@ -22,22 +22,29 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
22
22
|
};
|
|
23
23
|
const INNER_CN = classVarianceAuthority.cva([
|
|
24
24
|
"text-left",
|
|
25
|
+
// Hover/active background overlay
|
|
25
26
|
"before:absolute",
|
|
26
27
|
"before:inset-0",
|
|
27
28
|
"before:w-full",
|
|
28
29
|
"before:h-full",
|
|
30
|
+
// Focus ring overlay (separate from hover bg so it can be raised above the divider)
|
|
31
|
+
"after:absolute",
|
|
32
|
+
"after:inset-0",
|
|
33
|
+
"after:w-full",
|
|
34
|
+
"after:h-full",
|
|
29
35
|
"focus-visible:outline-hidden",
|
|
30
|
-
"focus-visible:
|
|
31
|
-
"focus-visible:
|
|
32
|
-
"focus-visible:
|
|
33
|
-
"focus-visible:
|
|
36
|
+
"focus-visible:after:outline-solid",
|
|
37
|
+
"focus-visible:after:outline-2",
|
|
38
|
+
"focus-visible:after:-outline-offset-2",
|
|
39
|
+
"focus-visible:after:outline-ddt-color-common-border-focus",
|
|
40
|
+
"focus-visible:after:z-1",
|
|
34
41
|
// For buttons and links
|
|
35
42
|
"not-active:group-hover:link-enabled:before:bg-ddt-color-common-surface-hover",
|
|
36
43
|
"active:link-enabled:before:bg-ddt-color-common-surface-press",
|
|
37
44
|
// For text
|
|
38
45
|
"group-hover:[&:not(a,button)]:before:bg-ddt-color-common-surface-hover"
|
|
39
46
|
])();
|
|
40
|
-
const cvaContent = classVarianceAuthority.cva(["block", "pl-2", "pr-3", "text-left"], {
|
|
47
|
+
const cvaContent = classVarianceAuthority.cva(["block", "pl-2", "pr-3", "mt-0.5", "text-left"], {
|
|
41
48
|
variants: {
|
|
42
49
|
disabled: {
|
|
43
50
|
false: ["text-ddt-color-common-text-primary"],
|
|
@@ -49,7 +56,7 @@ const WRAPPER = classVarianceAuthority.cva([
|
|
|
49
56
|
"group",
|
|
50
57
|
"flex",
|
|
51
58
|
"justify-between",
|
|
52
|
-
"items-
|
|
59
|
+
"items-start",
|
|
53
60
|
"w-full",
|
|
54
61
|
"min-h-12",
|
|
55
62
|
"p-3",
|
|
@@ -111,7 +118,7 @@ exports.DaikinListItem = class DaikinListItem extends ddsElement.DDSElement {
|
|
|
111
118
|
}
|
|
112
119
|
render() {
|
|
113
120
|
const disabled = this._disabled;
|
|
114
|
-
const content = lit.html`<span class="flex items-
|
|
121
|
+
const content = lit.html`<span class="flex items-start w-full relative">
|
|
115
122
|
<slot
|
|
116
123
|
name="left-icon"
|
|
117
124
|
class=${cvaIcon({ disabled: this.disabled, position: "left" })}
|
|
@@ -144,7 +151,7 @@ exports.DaikinListItem = class DaikinListItem extends ddsElement.DDSElement {
|
|
|
144
151
|
${list}
|
|
145
152
|
<slot
|
|
146
153
|
name="action"
|
|
147
|
-
class="flex items-
|
|
154
|
+
class="flex items-start gap-3"
|
|
148
155
|
@click=${this._handleClickAction}
|
|
149
156
|
>
|
|
150
157
|
<slot
|
|
@@ -170,8 +177,22 @@ exports.DaikinListItem.styles = lit.css`
|
|
|
170
177
|
${lit.unsafeCSS(tailwind.default)}
|
|
171
178
|
|
|
172
179
|
:host {
|
|
173
|
-
display:
|
|
180
|
+
display: block;
|
|
181
|
+
position: relative;
|
|
174
182
|
width: 100%;
|
|
183
|
+
|
|
184
|
+
--divider-bottom-display: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host::after {
|
|
188
|
+
content: "";
|
|
189
|
+
display: var(--divider-bottom-display, none);
|
|
190
|
+
position: absolute;
|
|
191
|
+
inset: 0;
|
|
192
|
+
top: auto;
|
|
193
|
+
width: 100%;
|
|
194
|
+
height: 1px;
|
|
195
|
+
background: var(--dds-color-divider);
|
|
175
196
|
}
|
|
176
197
|
`;
|
|
177
198
|
__decorateClass([
|
|
@@ -37,12 +37,31 @@ const cvaMenu = classVarianceAuthority.cva([
|
|
|
37
37
|
"py-2",
|
|
38
38
|
"border",
|
|
39
39
|
"rounded-lg",
|
|
40
|
-
"font-daikinSerif",
|
|
41
40
|
"absolute",
|
|
42
41
|
"floating-unready:hidden",
|
|
43
42
|
"bg-ddt-color-common-background-default",
|
|
44
43
|
"border-ddt-color-divider"
|
|
45
44
|
]);
|
|
45
|
+
const cvaWrapper = classVarianceAuthority.cva(["relative"], {
|
|
46
|
+
variants: {
|
|
47
|
+
isLayoutTransparent: {
|
|
48
|
+
true: ["inline-flex"],
|
|
49
|
+
false: [
|
|
50
|
+
"inline-block",
|
|
51
|
+
"text-ddt-color-common-text-primary",
|
|
52
|
+
"font-daikinSerif"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const cvaTrigger = classVarianceAuthority.cva([], {
|
|
58
|
+
variants: {
|
|
59
|
+
isLayoutTransparent: {
|
|
60
|
+
true: ["flex"],
|
|
61
|
+
false: []
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
46
65
|
const DEFAULT_MENU_SPACING = "0px";
|
|
47
66
|
exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
48
67
|
constructor() {
|
|
@@ -50,7 +69,9 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
50
69
|
this.open = false;
|
|
51
70
|
this._autoUpdateController = new floatingUiAutoUpdate.FloatingUIAutoUpdateController(this);
|
|
52
71
|
this._hostStyles = isClient.isClient ? window.getComputedStyle(this) : null;
|
|
72
|
+
this._originalDisplayStyle = null;
|
|
53
73
|
this._staticPlacement = false;
|
|
74
|
+
this._isLayoutTransparent = false;
|
|
54
75
|
}
|
|
55
76
|
static registerCSSCustomProperties() {
|
|
56
77
|
if (!isClient.isClient) {
|
|
@@ -89,6 +110,11 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
89
110
|
*/
|
|
90
111
|
_reflectStaticProperties() {
|
|
91
112
|
this._staticPlacement = false;
|
|
113
|
+
this._isLayoutTransparent = false;
|
|
114
|
+
if (this._originalDisplayStyle !== null) {
|
|
115
|
+
this.style.display = this._originalDisplayStyle;
|
|
116
|
+
this._originalDisplayStyle = null;
|
|
117
|
+
}
|
|
92
118
|
for (const control of this._controls) {
|
|
93
119
|
if (control instanceof daikinButton.DaikinButton || control instanceof daikinIconButton.DaikinIconButton && control.type === "button") {
|
|
94
120
|
control.buttonAriaHaspopup = "menu";
|
|
@@ -96,11 +122,16 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
96
122
|
control.avatarAriaHaspopup = "menu";
|
|
97
123
|
} else if (control instanceof daikinNavigationItem.DaikinNavigationItem && control.type === "menu") {
|
|
98
124
|
control.navigationItemAriaHaspopup = "menu";
|
|
99
|
-
this._staticPlacement = true;
|
|
100
125
|
} else if (control instanceof daikinBreadcrumbItem.DaikinBreadcrumbItem) {
|
|
101
126
|
control.breadcrumbAriaHaspopup = "menu";
|
|
102
127
|
}
|
|
103
128
|
}
|
|
129
|
+
if (this.triggerElement instanceof daikinNavigationItem.DaikinNavigationItem && this.triggerElement.type === "menu") {
|
|
130
|
+
this._staticPlacement = true;
|
|
131
|
+
this._isLayoutTransparent = true;
|
|
132
|
+
this._originalDisplayStyle = this.style.display;
|
|
133
|
+
this.style.display = "contents";
|
|
134
|
+
}
|
|
104
135
|
for (const daikinList of this._lists) {
|
|
105
136
|
daikinList.listRole = "menu";
|
|
106
137
|
}
|
|
@@ -125,20 +156,55 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
125
156
|
_handleSlotChange() {
|
|
126
157
|
this._reflectStaticProperties();
|
|
127
158
|
}
|
|
128
|
-
|
|
129
|
-
if (this.trigger !== "click") return;
|
|
130
|
-
event.preventDefault();
|
|
159
|
+
_toggleOpenState() {
|
|
131
160
|
this.open = !this.open;
|
|
132
161
|
if (this.open) {
|
|
133
162
|
setTimeout(() => {
|
|
134
|
-
|
|
163
|
+
var _a;
|
|
164
|
+
(_a = this._lists[0]) == null ? void 0 : _a.focusFirstItem();
|
|
135
165
|
});
|
|
136
166
|
}
|
|
137
167
|
}
|
|
138
|
-
|
|
168
|
+
_isElementDisabled(element) {
|
|
169
|
+
const maybeDisabled = element;
|
|
170
|
+
if (typeof maybeDisabled.disabled === "boolean" && maybeDisabled.disabled) {
|
|
171
|
+
return true;
|
|
172
|
+
}
|
|
173
|
+
if (element.hasAttribute("disabled")) {
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
return element.getAttribute("aria-disabled") === "true";
|
|
177
|
+
}
|
|
178
|
+
_isTriggerDisabled(event) {
|
|
179
|
+
if (event) {
|
|
180
|
+
for (const target of event.composedPath()) {
|
|
181
|
+
if (target === this || target === this.renderRoot || target === window) {
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
if (target instanceof Element && this._isElementDisabled(target)) {
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
const trigger = this.triggerElement;
|
|
190
|
+
return trigger instanceof Element ? this._isElementDisabled(trigger) : false;
|
|
191
|
+
}
|
|
192
|
+
_handleTriggerPointerUp(event) {
|
|
139
193
|
if (this.trigger !== "click") return;
|
|
194
|
+
if (!event.isPrimary || event.button !== 0) return;
|
|
195
|
+
if (this._isTriggerDisabled(event)) return;
|
|
140
196
|
event.preventDefault();
|
|
141
|
-
this.
|
|
197
|
+
this._toggleOpenState();
|
|
198
|
+
}
|
|
199
|
+
_handleTriggerClick(event) {
|
|
200
|
+
if (this.trigger !== "click") return;
|
|
201
|
+
if (this._isTriggerDisabled(event)) return;
|
|
202
|
+
if (event.detail !== 0) {
|
|
203
|
+
event.preventDefault();
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
event.preventDefault();
|
|
207
|
+
this._toggleOpenState();
|
|
142
208
|
}
|
|
143
209
|
/**
|
|
144
210
|
* Handles click events on the menu-item.
|
|
@@ -164,12 +230,17 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
164
230
|
10
|
|
165
231
|
);
|
|
166
232
|
return lit.html`<div
|
|
167
|
-
|
|
233
|
+
id="wrapper"
|
|
234
|
+
class=${cvaWrapper({ isLayoutTransparent: this._isLayoutTransparent })}
|
|
168
235
|
>
|
|
169
|
-
<div
|
|
236
|
+
<div
|
|
237
|
+
id="trigger"
|
|
238
|
+
class=${cvaTrigger({ isLayoutTransparent: this._isLayoutTransparent })}
|
|
239
|
+
${this._autoUpdateController.refReference()}
|
|
240
|
+
>
|
|
170
241
|
<slot
|
|
242
|
+
@pointerup=${this._handleTriggerPointerUp}
|
|
171
243
|
@click=${this._handleTriggerClick}
|
|
172
|
-
@touchend=${this._handleTouchEnd}
|
|
173
244
|
@slotchange=${this._handleSlotChange}
|
|
174
245
|
></slot>
|
|
175
246
|
</div>
|
|
@@ -274,6 +345,9 @@ __decorateClass([
|
|
|
274
345
|
__decorateClass([
|
|
275
346
|
decorators_js.state()
|
|
276
347
|
], exports.DaikinMenu.prototype, "_staticPlacement", 2);
|
|
348
|
+
__decorateClass([
|
|
349
|
+
decorators_js.state()
|
|
350
|
+
], exports.DaikinMenu.prototype, "_isLayoutTransparent", 2);
|
|
277
351
|
exports.DaikinMenu = __decorateClass([
|
|
278
352
|
decorators.ddsElement("daikin-menu")
|
|
279
353
|
], exports.DaikinMenu);
|
|
@@ -6,7 +6,7 @@ import { DaikinButton } from "../button/index.cjs";
|
|
|
6
6
|
import { DaikinIconButton } from "../icon-button/index.cjs";
|
|
7
7
|
import { DaikinNavigationItem } from "../navigation-item/index.cjs";
|
|
8
8
|
/**
|
|
9
|
-
* A menu component
|
|
9
|
+
* A menu component displays a floating list of actions or options when a user interacts with a trigger element.
|
|
10
10
|
*
|
|
11
11
|
* Hierarchy:
|
|
12
12
|
* - `daikin-menu` > `daikin-list` > `daikin-list-item`
|
|
@@ -19,7 +19,7 @@ import { DaikinNavigationItem } from "../navigation-item/index.cjs";
|
|
|
19
19
|
*
|
|
20
20
|
* @cssprop [--ddc-menu-spacing=0px] - Spacing between the menu and the trigger.
|
|
21
21
|
*
|
|
22
|
-
* @csspart menu -
|
|
22
|
+
* @csspart menu - Targets the internal `<span>` element wrapping the list. This is typically used to control the menu's width. For example, you can allow the menu to automatically fit its content width by default, while enforcing a minimum width of 200px and max width of 400px: `daikin-menu::part(menu) { min-width: 200px; max-width: 400px; }`
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
*
|
|
@@ -31,6 +31,7 @@ import { DaikinNavigationItem } from "../navigation-item/index.cjs";
|
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
33
|
* ```html
|
|
34
|
+
* <!-- Menu width can be set on the slotted <daikin-list slot="menu">, or via daikin-menu::part(menu). -->
|
|
34
35
|
* <daikin-menu>
|
|
35
36
|
* <daikin-button>Click me</daikin-button>
|
|
36
37
|
* <daikin-list slot="menu" style="width: 256px">
|
|
@@ -55,12 +56,17 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
55
56
|
placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
56
57
|
/**
|
|
57
58
|
* Whether the menu is open.
|
|
59
|
+
* When controlling this property manually, make sure to:
|
|
60
|
+
* - Set `trigger="manual"`.
|
|
61
|
+
* - Either set `popover-value="manual"`, or listen to the `toggle` event and sync your state based on `event.newState`.
|
|
58
62
|
*/
|
|
59
63
|
open: boolean;
|
|
60
64
|
/**
|
|
61
65
|
* Specify the value of the popover attribute in the Popover API.
|
|
62
|
-
* - `auto`:
|
|
63
|
-
* - `manual`:
|
|
66
|
+
* - `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.
|
|
67
|
+
* - `manual`: Disables automatic light-dismiss behavior. The menu will not close on outside click or when the Esc key is pressed, and multiple `manual` popovers can remain open at the same time.
|
|
68
|
+
*
|
|
69
|
+
* When controlling `open` manually, either set `popover-value="manual"` or listen to the `toggle` event and sync your state based on `event.newState`.
|
|
64
70
|
*
|
|
65
71
|
* @default "auto"
|
|
66
72
|
*/
|
|
@@ -70,11 +76,15 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
70
76
|
* - `click`: The menu is displayed when the mouse clicks on the trigger element, and hidden when you click on it again. (default)
|
|
71
77
|
* - `manual`: The menu does not respond to user interaction. Use this to control the menu programmatically.
|
|
72
78
|
*
|
|
79
|
+
* When controlling `open` manually, use `trigger="manual"` (do not use other trigger values).
|
|
80
|
+
*
|
|
73
81
|
* @default "click"
|
|
74
82
|
*/
|
|
75
83
|
trigger: "click" | "manual";
|
|
76
84
|
private _autoUpdateController;
|
|
77
85
|
private _hostStyles;
|
|
86
|
+
/** The user's original inline `display` style, saved before we override it with `"contents"`. `null` means we have not overridden it. */
|
|
87
|
+
private _originalDisplayStyle;
|
|
78
88
|
/**
|
|
79
89
|
* Controls whether the floating-ui `flip()` and `shift()` middleware are active.
|
|
80
90
|
*
|
|
@@ -86,6 +96,11 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
86
96
|
* Both middlewares are disabled when the trigger element is a `daikin-navigation-item`.
|
|
87
97
|
*/
|
|
88
98
|
private _staticPlacement;
|
|
99
|
+
/**
|
|
100
|
+
* Whether the trigger element is a `daikin-navigation-item`.
|
|
101
|
+
* When true, the host is made layout-transparent (`display: contents`) and internal wrapper/trigger styles are adjusted so the navigation item sizes correctly within parent flex layouts.
|
|
102
|
+
*/
|
|
103
|
+
private _isLayoutTransparent;
|
|
89
104
|
/**
|
|
90
105
|
* Exposes the trigger element contained within the menu to the outside of the component.
|
|
91
106
|
*
|
|
@@ -110,8 +125,11 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
110
125
|
*/
|
|
111
126
|
private _reflectDynamicProperties;
|
|
112
127
|
private _handleSlotChange;
|
|
128
|
+
private _toggleOpenState;
|
|
129
|
+
private _isElementDisabled;
|
|
130
|
+
private _isTriggerDisabled;
|
|
131
|
+
private _handleTriggerPointerUp;
|
|
113
132
|
private _handleTriggerClick;
|
|
114
|
-
private _handleTouchEnd;
|
|
115
133
|
/**
|
|
116
134
|
* Handles click events on the menu-item.
|
|
117
135
|
* When the popoverValue is manual, the logic for closing the popover should be entirely controlled by the developer and not be the responsibility of the component.
|
|
@@ -9,6 +9,7 @@ require("../../base/dds-form-element.cjs");
|
|
|
9
9
|
const ddsProperty = require("../../base/dds-property.cjs");
|
|
10
10
|
const decorators = require("../../base/decorators.cjs");
|
|
11
11
|
require("../../base/define.cjs");
|
|
12
|
+
const blockScroll = require("../../controllers/block-scroll.cjs");
|
|
12
13
|
const focusTrap = require("../../controllers/focus-trap.cjs");
|
|
13
14
|
const tailwind = require("../../tailwind.css.cjs");
|
|
14
15
|
var __defProp = Object.defineProperty;
|
|
@@ -49,7 +50,7 @@ const cvaBackDrop = classVarianceAuthority.cva(
|
|
|
49
50
|
"z-9999",
|
|
50
51
|
"items-center",
|
|
51
52
|
"justify-center",
|
|
52
|
-
"bg-
|
|
53
|
+
"bg-ddt-color-common-background-overlay"
|
|
53
54
|
],
|
|
54
55
|
{
|
|
55
56
|
variants: {
|
|
@@ -65,6 +66,7 @@ exports.DaikinModal = class DaikinModal extends ddsElement.DDSElement {
|
|
|
65
66
|
super(...arguments);
|
|
66
67
|
this.open = false;
|
|
67
68
|
this.modalAriaLabel = null;
|
|
69
|
+
this._blockScrollController = new blockScroll.BlockScrollController(this);
|
|
68
70
|
this.persistent = false;
|
|
69
71
|
this._handleClose = () => {
|
|
70
72
|
this.open = false;
|
|
@@ -99,11 +101,26 @@ exports.DaikinModal = class DaikinModal extends ddsElement.DDSElement {
|
|
|
99
101
|
// open or persistent change will trigger the re-rendering and directive.
|
|
100
102
|
this._focusTrapController.directive(this.open, this.persistent)
|
|
101
103
|
)
|
|
104
|
+
)}
|
|
105
|
+
${guard_js.guard(
|
|
106
|
+
[this.open],
|
|
107
|
+
() => this._blockScrollController.directive(this.open)
|
|
102
108
|
)}`;
|
|
103
109
|
}
|
|
104
110
|
};
|
|
105
111
|
exports.DaikinModal.styles = lit.css`
|
|
106
112
|
${lit.unsafeCSS(tailwind.default)}
|
|
113
|
+
|
|
114
|
+
::slotted(*) {
|
|
115
|
+
flex-grow: 1;
|
|
116
|
+
min-height: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
::slotted(daikin-modal-header),
|
|
120
|
+
::slotted(daikin-modal-footer) {
|
|
121
|
+
flex-shrink: 0;
|
|
122
|
+
flex-grow: 0;
|
|
123
|
+
}
|
|
107
124
|
`;
|
|
108
125
|
__decorateClass([
|
|
109
126
|
ddsProperty.property({ type: Boolean, reflect: true })
|