@daikin-oss/design-system-web-components 1.5.2 → 1.6.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 +178 -0
- package/custom-elements.json +4499 -2442
- 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,7 +18,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
18
|
if (kind && result) __defProp(target, key, result);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
-
const cvaLabel = cva(["flex", "items-center", "font-bold"
|
|
21
|
+
const cvaLabel = cva(["flex", "items-center", "font-bold"], {
|
|
22
22
|
variants: {
|
|
23
23
|
disabled: {
|
|
24
24
|
false: [],
|
|
@@ -27,7 +27,7 @@ const cvaLabel = cva(["flex", "items-center", "font-bold", "leading-[130%]"], {
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
const cvaHelper = cva(
|
|
30
|
-
["flex", "gap-1", "items-center", "
|
|
30
|
+
["flex", "gap-1", "items-center", "text-(length:--dds-font-size-350)"],
|
|
31
31
|
{
|
|
32
32
|
variants: {
|
|
33
33
|
type: {
|
|
@@ -52,15 +52,18 @@ const cvaHelper = cva(
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
|
-
const cvaCounter = cva(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
const cvaCounter = cva(
|
|
56
|
+
["text-(length:--dds-font-size-350)", "font-bold", "ml-auto"],
|
|
57
|
+
{
|
|
58
|
+
variants: {
|
|
59
|
+
variant: {
|
|
60
|
+
normal: ["text-ddt-color-common-text-secondary"],
|
|
61
|
+
disabled: ["text-ddt-color-common-disabled"],
|
|
62
|
+
error: ["text-ddt-color-common-danger-default"]
|
|
63
|
+
}
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
|
-
|
|
66
|
+
);
|
|
64
67
|
let DaikinInputGroup = class extends DDSElement {
|
|
65
68
|
constructor() {
|
|
66
69
|
super(...arguments);
|
|
@@ -133,13 +136,15 @@ let DaikinInputGroup = class extends DDSElement {
|
|
|
133
136
|
};
|
|
134
137
|
return html`<fieldset class="contents" ?disabled=${this.disabled}>
|
|
135
138
|
<label
|
|
136
|
-
class="flex flex-col justify-center gap-2 w-full text-ddt-color-common-text-primary
|
|
139
|
+
class="flex flex-col justify-center gap-2 w-full text-ddt-color-common-text-primary"
|
|
137
140
|
>
|
|
138
141
|
<div class="flex items-center flex-wrap gap-1 font-bold">
|
|
139
142
|
${this.label ? html`<span class=${cvaLabel({ disabled: this.disabled })}>
|
|
140
143
|
${this.label}
|
|
141
144
|
</span>` : nothing}
|
|
142
|
-
${this.required && !this.disabled ? html`<span
|
|
145
|
+
${this.required && !this.disabled ? html`<span
|
|
146
|
+
class="text-ddt-color-common-danger-default text-(length:--dds-font-size-300)"
|
|
147
|
+
>
|
|
143
148
|
${this.required}
|
|
144
149
|
</span>` : nothing}
|
|
145
150
|
</div>
|
|
@@ -18,31 +18,35 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
18
|
if (kind && result) __defProp(target, key, result);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
21
|
+
const cvaLinkWrapper = cva(
|
|
22
|
+
[
|
|
23
|
+
"relative",
|
|
24
|
+
"natural-break",
|
|
25
|
+
"link-enabled:text-ddt-color-link-text-default",
|
|
26
|
+
"hover:link-enabled:text-ddt-color-link-text-hover",
|
|
27
|
+
"hover:link-enabled:bg-ddt-color-common-surface-brand-hover",
|
|
28
|
+
"active:link-enabled:text-ddt-color-link-text-press",
|
|
29
|
+
"active:link-enabled:bg-ddt-color-common-surface-brand-press",
|
|
30
|
+
"link-disabled:text-ddt-color-common-disabled",
|
|
31
|
+
"focus-visible:outline-solid",
|
|
32
|
+
"focus-visible:outline-2",
|
|
33
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
34
|
+
"focus-visible:outline-offset-2"
|
|
35
|
+
],
|
|
36
|
+
{
|
|
37
|
+
variants: {
|
|
38
|
+
size: {
|
|
39
|
+
small: ["text-(length:--dds-font-size-350)"],
|
|
40
|
+
medium: []
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
);
|
|
37
45
|
const cvaContent = cva([], {
|
|
38
46
|
variants: {
|
|
39
47
|
noUnderline: {
|
|
40
48
|
true: [],
|
|
41
49
|
false: ["border-b", "border-b-current"]
|
|
42
|
-
},
|
|
43
|
-
size: {
|
|
44
|
-
small: ["text-sm"],
|
|
45
|
-
medium: ["text-base"]
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
});
|
|
@@ -86,15 +90,14 @@ let DaikinLink = class extends DDSElement {
|
|
|
86
90
|
render() {
|
|
87
91
|
return html`<a
|
|
88
92
|
${ref(this._anchorRef)}
|
|
89
|
-
class=${
|
|
93
|
+
class=${cvaLinkWrapper({ size: this.size })}
|
|
90
94
|
href=${ifDefined(this.disabled ? void 0 : this.href ?? void 0)}
|
|
91
95
|
target=${ifDefined(this.target ?? void 0)}
|
|
92
96
|
aria-disabled=${ifDefined(this.disabled ? "true" : void 0)}
|
|
93
97
|
><span class="inline-flex mr-0.5 align-sub">
|
|
94
98
|
<slot name="left-icon" class="icon-size-4"
|
|
95
99
|
><span class="-mr-0.5"></span></slot></span
|
|
96
|
-
><span
|
|
97
|
-
class=${cvaContent({ noUnderline: this.noUnderline, size: this.size })}
|
|
100
|
+
><span class=${cvaContent({ noUnderline: this.noUnderline })}
|
|
98
101
|
><slot></slot></span
|
|
99
102
|
><span class="inline-flex ml-0.5 align-sub"
|
|
100
103
|
><slot name="right-icon" class="icon-size-4"
|
|
@@ -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;
|
|
@@ -2,7 +2,7 @@ import { unsafeCSS, css, html } from "lit";
|
|
|
2
2
|
import { queryAssignedElements } from "lit/decorators.js";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
4
|
import "../../base/dds-form-element.js";
|
|
5
|
-
import { property } from "../../base/dds-property.js";
|
|
5
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
6
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
7
|
import "../../base/define.js";
|
|
8
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -87,10 +87,22 @@ DaikinList.styles = css`
|
|
|
87
87
|
display: inline-block;
|
|
88
88
|
width: 100%;
|
|
89
89
|
}
|
|
90
|
+
|
|
91
|
+
:host([border="underline"]) ::slotted(daikin-list-item) {
|
|
92
|
+
--divider-bottom-display: block;
|
|
93
|
+
}
|
|
90
94
|
`;
|
|
91
95
|
__decorateClass([
|
|
92
96
|
property({ type: String, attribute: false })
|
|
93
97
|
], DaikinList.prototype, "listRole", 2);
|
|
98
|
+
__decorateClass([
|
|
99
|
+
property({
|
|
100
|
+
type: String,
|
|
101
|
+
reflect: true,
|
|
102
|
+
fallbackValue: "none",
|
|
103
|
+
isAllowedValue: oneOf(["none", "underline"])
|
|
104
|
+
})
|
|
105
|
+
], DaikinList.prototype, "border", 2);
|
|
94
106
|
__decorateClass([
|
|
95
107
|
queryAssignedElements({ selector: "daikin-list-item" })
|
|
96
108
|
], DaikinList.prototype, "_listItems", 2);
|
|
@@ -20,22 +20,29 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
20
20
|
};
|
|
21
21
|
const INNER_CN = cva([
|
|
22
22
|
"text-left",
|
|
23
|
+
// Hover/active background overlay
|
|
23
24
|
"before:absolute",
|
|
24
25
|
"before:inset-0",
|
|
25
26
|
"before:w-full",
|
|
26
27
|
"before:h-full",
|
|
28
|
+
// Focus ring overlay (separate from hover bg so it can be raised above the divider)
|
|
29
|
+
"after:absolute",
|
|
30
|
+
"after:inset-0",
|
|
31
|
+
"after:w-full",
|
|
32
|
+
"after:h-full",
|
|
27
33
|
"focus-visible:outline-hidden",
|
|
28
|
-
"focus-visible:
|
|
29
|
-
"focus-visible:
|
|
30
|
-
"focus-visible:
|
|
31
|
-
"focus-visible:
|
|
34
|
+
"focus-visible:after:outline-solid",
|
|
35
|
+
"focus-visible:after:outline-2",
|
|
36
|
+
"focus-visible:after:-outline-offset-2",
|
|
37
|
+
"focus-visible:after:outline-ddt-color-common-border-focus",
|
|
38
|
+
"focus-visible:after:z-1",
|
|
32
39
|
// For buttons and links
|
|
33
40
|
"not-active:group-hover:link-enabled:before:bg-ddt-color-common-surface-hover",
|
|
34
41
|
"active:link-enabled:before:bg-ddt-color-common-surface-press",
|
|
35
42
|
// For text
|
|
36
43
|
"group-hover:[&:not(a,button)]:before:bg-ddt-color-common-surface-hover"
|
|
37
44
|
])();
|
|
38
|
-
const cvaContent = cva(["block", "pl-2", "pr-3", "text-left"], {
|
|
45
|
+
const cvaContent = cva(["block", "pl-2", "pr-3", "mt-0.5", "text-left"], {
|
|
39
46
|
variants: {
|
|
40
47
|
disabled: {
|
|
41
48
|
false: ["text-ddt-color-common-text-primary"],
|
|
@@ -47,7 +54,7 @@ const WRAPPER = cva([
|
|
|
47
54
|
"group",
|
|
48
55
|
"flex",
|
|
49
56
|
"justify-between",
|
|
50
|
-
"items-
|
|
57
|
+
"items-start",
|
|
51
58
|
"w-full",
|
|
52
59
|
"min-h-12",
|
|
53
60
|
"p-3",
|
|
@@ -109,7 +116,7 @@ let DaikinListItem = class extends DDSElement {
|
|
|
109
116
|
}
|
|
110
117
|
render() {
|
|
111
118
|
const disabled = this._disabled;
|
|
112
|
-
const content = html`<span class="flex items-
|
|
119
|
+
const content = html`<span class="flex items-start w-full relative">
|
|
113
120
|
<slot
|
|
114
121
|
name="left-icon"
|
|
115
122
|
class=${cvaIcon({ disabled: this.disabled, position: "left" })}
|
|
@@ -142,7 +149,7 @@ let DaikinListItem = class extends DDSElement {
|
|
|
142
149
|
${list}
|
|
143
150
|
<slot
|
|
144
151
|
name="action"
|
|
145
|
-
class="flex items-
|
|
152
|
+
class="flex items-start gap-3"
|
|
146
153
|
@click=${this._handleClickAction}
|
|
147
154
|
>
|
|
148
155
|
<slot
|
|
@@ -168,8 +175,22 @@ DaikinListItem.styles = css`
|
|
|
168
175
|
${unsafeCSS(tailwindStyles)}
|
|
169
176
|
|
|
170
177
|
:host {
|
|
171
|
-
display:
|
|
178
|
+
display: block;
|
|
179
|
+
position: relative;
|
|
172
180
|
width: 100%;
|
|
181
|
+
|
|
182
|
+
--divider-bottom-display: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
:host::after {
|
|
186
|
+
content: "";
|
|
187
|
+
display: var(--divider-bottom-display, none);
|
|
188
|
+
position: absolute;
|
|
189
|
+
inset: 0;
|
|
190
|
+
top: auto;
|
|
191
|
+
width: 100%;
|
|
192
|
+
height: 1px;
|
|
193
|
+
background: var(--dds-color-divider);
|
|
173
194
|
}
|
|
174
195
|
`;
|
|
175
196
|
__decorateClass([
|
|
@@ -6,7 +6,7 @@ import { DaikinButton } from "../button/index.js";
|
|
|
6
6
|
import { DaikinIconButton } from "../icon-button/index.js";
|
|
7
7
|
import { DaikinNavigationItem } from "../navigation-item/index.js";
|
|
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.js";
|
|
|
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.js";
|
|
|
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.
|
|
@@ -35,12 +35,31 @@ const cvaMenu = cva([
|
|
|
35
35
|
"py-2",
|
|
36
36
|
"border",
|
|
37
37
|
"rounded-lg",
|
|
38
|
-
"font-daikinSerif",
|
|
39
38
|
"absolute",
|
|
40
39
|
"floating-unready:hidden",
|
|
41
40
|
"bg-ddt-color-common-background-default",
|
|
42
41
|
"border-ddt-color-divider"
|
|
43
42
|
]);
|
|
43
|
+
const cvaWrapper = cva(["relative"], {
|
|
44
|
+
variants: {
|
|
45
|
+
isLayoutTransparent: {
|
|
46
|
+
true: ["inline-flex"],
|
|
47
|
+
false: [
|
|
48
|
+
"inline-block",
|
|
49
|
+
"text-ddt-color-common-text-primary",
|
|
50
|
+
"font-daikinSerif"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const cvaTrigger = cva([], {
|
|
56
|
+
variants: {
|
|
57
|
+
isLayoutTransparent: {
|
|
58
|
+
true: ["flex"],
|
|
59
|
+
false: []
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
44
63
|
const DEFAULT_MENU_SPACING = "0px";
|
|
45
64
|
let DaikinMenu = class extends DDSElement {
|
|
46
65
|
constructor() {
|
|
@@ -48,7 +67,9 @@ let DaikinMenu = class extends DDSElement {
|
|
|
48
67
|
this.open = false;
|
|
49
68
|
this._autoUpdateController = new FloatingUIAutoUpdateController(this);
|
|
50
69
|
this._hostStyles = isClient ? window.getComputedStyle(this) : null;
|
|
70
|
+
this._originalDisplayStyle = null;
|
|
51
71
|
this._staticPlacement = false;
|
|
72
|
+
this._isLayoutTransparent = false;
|
|
52
73
|
}
|
|
53
74
|
static registerCSSCustomProperties() {
|
|
54
75
|
if (!isClient) {
|
|
@@ -87,6 +108,11 @@ let DaikinMenu = class extends DDSElement {
|
|
|
87
108
|
*/
|
|
88
109
|
_reflectStaticProperties() {
|
|
89
110
|
this._staticPlacement = false;
|
|
111
|
+
this._isLayoutTransparent = false;
|
|
112
|
+
if (this._originalDisplayStyle !== null) {
|
|
113
|
+
this.style.display = this._originalDisplayStyle;
|
|
114
|
+
this._originalDisplayStyle = null;
|
|
115
|
+
}
|
|
90
116
|
for (const control of this._controls) {
|
|
91
117
|
if (control instanceof DaikinButton || control instanceof DaikinIconButton && control.type === "button") {
|
|
92
118
|
control.buttonAriaHaspopup = "menu";
|
|
@@ -94,11 +120,16 @@ let DaikinMenu = class extends DDSElement {
|
|
|
94
120
|
control.avatarAriaHaspopup = "menu";
|
|
95
121
|
} else if (control instanceof DaikinNavigationItem && control.type === "menu") {
|
|
96
122
|
control.navigationItemAriaHaspopup = "menu";
|
|
97
|
-
this._staticPlacement = true;
|
|
98
123
|
} else if (control instanceof DaikinBreadcrumbItem) {
|
|
99
124
|
control.breadcrumbAriaHaspopup = "menu";
|
|
100
125
|
}
|
|
101
126
|
}
|
|
127
|
+
if (this.triggerElement instanceof DaikinNavigationItem && this.triggerElement.type === "menu") {
|
|
128
|
+
this._staticPlacement = true;
|
|
129
|
+
this._isLayoutTransparent = true;
|
|
130
|
+
this._originalDisplayStyle = this.style.display;
|
|
131
|
+
this.style.display = "contents";
|
|
132
|
+
}
|
|
102
133
|
for (const daikinList of this._lists) {
|
|
103
134
|
daikinList.listRole = "menu";
|
|
104
135
|
}
|
|
@@ -123,20 +154,55 @@ let DaikinMenu = class extends DDSElement {
|
|
|
123
154
|
_handleSlotChange() {
|
|
124
155
|
this._reflectStaticProperties();
|
|
125
156
|
}
|
|
126
|
-
|
|
127
|
-
if (this.trigger !== "click") return;
|
|
128
|
-
event.preventDefault();
|
|
157
|
+
_toggleOpenState() {
|
|
129
158
|
this.open = !this.open;
|
|
130
159
|
if (this.open) {
|
|
131
160
|
setTimeout(() => {
|
|
132
|
-
|
|
161
|
+
var _a;
|
|
162
|
+
(_a = this._lists[0]) == null ? void 0 : _a.focusFirstItem();
|
|
133
163
|
});
|
|
134
164
|
}
|
|
135
165
|
}
|
|
136
|
-
|
|
166
|
+
_isElementDisabled(element) {
|
|
167
|
+
const maybeDisabled = element;
|
|
168
|
+
if (typeof maybeDisabled.disabled === "boolean" && maybeDisabled.disabled) {
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
if (element.hasAttribute("disabled")) {
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
return element.getAttribute("aria-disabled") === "true";
|
|
175
|
+
}
|
|
176
|
+
_isTriggerDisabled(event) {
|
|
177
|
+
if (event) {
|
|
178
|
+
for (const target of event.composedPath()) {
|
|
179
|
+
if (target === this || target === this.renderRoot || target === window) {
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
if (target instanceof Element && this._isElementDisabled(target)) {
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
const trigger = this.triggerElement;
|
|
188
|
+
return trigger instanceof Element ? this._isElementDisabled(trigger) : false;
|
|
189
|
+
}
|
|
190
|
+
_handleTriggerPointerUp(event) {
|
|
137
191
|
if (this.trigger !== "click") return;
|
|
192
|
+
if (!event.isPrimary || event.button !== 0) return;
|
|
193
|
+
if (this._isTriggerDisabled(event)) return;
|
|
138
194
|
event.preventDefault();
|
|
139
|
-
this.
|
|
195
|
+
this._toggleOpenState();
|
|
196
|
+
}
|
|
197
|
+
_handleTriggerClick(event) {
|
|
198
|
+
if (this.trigger !== "click") return;
|
|
199
|
+
if (this._isTriggerDisabled(event)) return;
|
|
200
|
+
if (event.detail !== 0) {
|
|
201
|
+
event.preventDefault();
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
event.preventDefault();
|
|
205
|
+
this._toggleOpenState();
|
|
140
206
|
}
|
|
141
207
|
/**
|
|
142
208
|
* Handles click events on the menu-item.
|
|
@@ -162,12 +228,17 @@ let DaikinMenu = class extends DDSElement {
|
|
|
162
228
|
10
|
|
163
229
|
);
|
|
164
230
|
return html`<div
|
|
165
|
-
|
|
231
|
+
id="wrapper"
|
|
232
|
+
class=${cvaWrapper({ isLayoutTransparent: this._isLayoutTransparent })}
|
|
166
233
|
>
|
|
167
|
-
<div
|
|
234
|
+
<div
|
|
235
|
+
id="trigger"
|
|
236
|
+
class=${cvaTrigger({ isLayoutTransparent: this._isLayoutTransparent })}
|
|
237
|
+
${this._autoUpdateController.refReference()}
|
|
238
|
+
>
|
|
168
239
|
<slot
|
|
240
|
+
@pointerup=${this._handleTriggerPointerUp}
|
|
169
241
|
@click=${this._handleTriggerClick}
|
|
170
|
-
@touchend=${this._handleTouchEnd}
|
|
171
242
|
@slotchange=${this._handleSlotChange}
|
|
172
243
|
></slot>
|
|
173
244
|
</div>
|
|
@@ -272,6 +343,9 @@ __decorateClass([
|
|
|
272
343
|
__decorateClass([
|
|
273
344
|
state()
|
|
274
345
|
], DaikinMenu.prototype, "_staticPlacement", 2);
|
|
346
|
+
__decorateClass([
|
|
347
|
+
state()
|
|
348
|
+
], DaikinMenu.prototype, "_isLayoutTransparent", 2);
|
|
275
349
|
DaikinMenu = __decorateClass([
|
|
276
350
|
ddsElement("daikin-menu")
|
|
277
351
|
], DaikinMenu);
|
|
@@ -2,6 +2,29 @@ import { DDSElement } from "../../base/index.js";
|
|
|
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.
|
|
@@ -7,6 +7,7 @@ import "../../base/dds-form-element.js";
|
|
|
7
7
|
import { property, oneOf } from "../../base/dds-property.js";
|
|
8
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
9
9
|
import "../../base/define.js";
|
|
10
|
+
import { BlockScrollController } from "../../controllers/block-scroll.js";
|
|
10
11
|
import { FocusTrapController } from "../../controllers/focus-trap.js";
|
|
11
12
|
import tailwindStyles from "../../tailwind.css.js";
|
|
12
13
|
var __defProp = Object.defineProperty;
|
|
@@ -47,7 +48,7 @@ const cvaBackDrop = cva(
|
|
|
47
48
|
"z-9999",
|
|
48
49
|
"items-center",
|
|
49
50
|
"justify-center",
|
|
50
|
-
"bg-
|
|
51
|
+
"bg-ddt-color-common-background-overlay"
|
|
51
52
|
],
|
|
52
53
|
{
|
|
53
54
|
variants: {
|
|
@@ -63,6 +64,7 @@ let DaikinModal = class extends DDSElement {
|
|
|
63
64
|
super(...arguments);
|
|
64
65
|
this.open = false;
|
|
65
66
|
this.modalAriaLabel = null;
|
|
67
|
+
this._blockScrollController = new BlockScrollController(this);
|
|
66
68
|
this.persistent = false;
|
|
67
69
|
this._handleClose = () => {
|
|
68
70
|
this.open = false;
|
|
@@ -97,11 +99,26 @@ let DaikinModal = class extends DDSElement {
|
|
|
97
99
|
// open or persistent change will trigger the re-rendering and directive.
|
|
98
100
|
this._focusTrapController.directive(this.open, this.persistent)
|
|
99
101
|
)
|
|
102
|
+
)}
|
|
103
|
+
${guard(
|
|
104
|
+
[this.open],
|
|
105
|
+
() => this._blockScrollController.directive(this.open)
|
|
100
106
|
)}`;
|
|
101
107
|
}
|
|
102
108
|
};
|
|
103
109
|
DaikinModal.styles = css`
|
|
104
110
|
${unsafeCSS(tailwindStyles)}
|
|
111
|
+
|
|
112
|
+
::slotted(*) {
|
|
113
|
+
flex-grow: 1;
|
|
114
|
+
min-height: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
::slotted(daikin-modal-header),
|
|
118
|
+
::slotted(daikin-modal-footer) {
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
flex-grow: 0;
|
|
121
|
+
}
|
|
105
122
|
`;
|
|
106
123
|
__decorateClass([
|
|
107
124
|
property({ type: Boolean, reflect: true })
|
|
@@ -15,7 +15,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
15
|
};
|
|
16
16
|
let DaikinModalFooter = class extends DDSElement {
|
|
17
17
|
render() {
|
|
18
|
-
return html`<div class="flex flex-wrap justify-end w-full gap-4">
|
|
18
|
+
return html`<div class="flex flex-wrap justify-end w-full gap-x-4 gap-y-3">
|
|
19
19
|
<slot></slot>
|
|
20
20
|
</div>`;
|
|
21
21
|
}
|
|
@@ -22,7 +22,6 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
22
22
|
const cvaTitle = cva([
|
|
23
23
|
"flex-none",
|
|
24
24
|
"text-ddt-color-common-text-primary",
|
|
25
|
-
"font-daikinSerif",
|
|
26
25
|
"text-xl",
|
|
27
26
|
"leading-[1.3]",
|
|
28
27
|
"not-italic",
|
|
@@ -31,7 +30,6 @@ const cvaTitle = cva([
|
|
|
31
30
|
const cvaDescription = cva([
|
|
32
31
|
"flex-none",
|
|
33
32
|
"text-ddt-color-common-text-primary",
|
|
34
|
-
"font-daikinSerif",
|
|
35
33
|
"text-base",
|
|
36
34
|
"leading-normal",
|
|
37
35
|
"not-italic",
|
|
@@ -24,6 +24,7 @@ import { DDSElement } from "../../base/index.js";
|
|
|
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
|