@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
|
@@ -40,7 +40,8 @@ const _DDSElement = class _DDSElement extends lit.LitElement {
|
|
|
40
40
|
return {
|
|
41
41
|
get() {
|
|
42
42
|
const orgValue = orgDescriptor.get.call(this);
|
|
43
|
-
|
|
43
|
+
const resolvedFallbackValue = typeof fallbackValue === "function" ? fallbackValue(this) : fallbackValue;
|
|
44
|
+
return orgValue === void 0 ? resolvedFallbackValue : orgValue;
|
|
44
45
|
},
|
|
45
46
|
set(value) {
|
|
46
47
|
const isValid = isAllowedValue == null || value != null && isAllowedValue(value);
|
|
@@ -94,6 +95,6 @@ const _DDSElement = class _DDSElement extends lit.LitElement {
|
|
|
94
95
|
return this[key];
|
|
95
96
|
}
|
|
96
97
|
};
|
|
97
|
-
_DDSElement.version = "1.
|
|
98
|
+
_DDSElement.version = "1.6.0-next.0";
|
|
98
99
|
let DDSElement = _DDSElement;
|
|
99
100
|
exports.DDSElement = DDSElement;
|
|
@@ -36,14 +36,14 @@ export type DDSPropertyDeclaration<Type = unknown, TypeHint = unknown> = Propert
|
|
|
36
36
|
/** Property reflects to attribute (required for fallback) */
|
|
37
37
|
reflect: true;
|
|
38
38
|
/** Default value to use when property is undefined */
|
|
39
|
-
fallbackValue: Type;
|
|
39
|
+
fallbackValue: Type | ((instance: Element) => Type);
|
|
40
40
|
/** No validation function specified */
|
|
41
41
|
isAllowedValue?: undefined;
|
|
42
42
|
} | {
|
|
43
43
|
/** Property reflects to attribute (required for fallback) */
|
|
44
44
|
reflect: true;
|
|
45
45
|
/** Default value to use when property is undefined */
|
|
46
|
-
fallbackValue: Type;
|
|
46
|
+
fallbackValue: Type | ((instance: Element) => Type);
|
|
47
47
|
/** Function to validate if a value is allowed for this property */
|
|
48
48
|
isAllowedValue: (value: Type) => boolean;
|
|
49
49
|
});
|
|
@@ -45,6 +45,7 @@ exports.DaikinAccordion = class DaikinAccordion extends ddsElement.DDSElement {
|
|
|
45
45
|
this.openItems = opened ? [...this.openItems, targetValue] : this.openItems.filter((item) => item != targetValue);
|
|
46
46
|
}
|
|
47
47
|
this._reflectItemOpen();
|
|
48
|
+
this.dispatchEvent(new Event("change", { bubbles: true }));
|
|
48
49
|
}
|
|
49
50
|
_reflectItemOpen() {
|
|
50
51
|
{
|
|
@@ -6,6 +6,8 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
6
6
|
* Hierarchy:
|
|
7
7
|
* - `daikin-accordion` > `daikin-accordion-item`
|
|
8
8
|
*
|
|
9
|
+
* @fires change - A custom event emitted when the open state of the accordion changes. The updated `openItems` can be read from the event target.
|
|
10
|
+
*
|
|
9
11
|
* @slot - A slot for the accordion items. Place `daikin-accordion-item` elements here.
|
|
10
12
|
*
|
|
11
13
|
* @example
|
|
@@ -46,6 +48,8 @@ export declare class DaikinAccordion extends DDSElement {
|
|
|
46
48
|
/**
|
|
47
49
|
* A list of the names of the open items.
|
|
48
50
|
* If `exclusive` is true, the number of elements is 0 or 1.
|
|
51
|
+
* When the user toggles an accordion item, this property is updated and a `change` event is emitted.
|
|
52
|
+
* When controlling this property externally, listen to the `change` event and read the updated `openItems` from the component to keep your state in sync.
|
|
49
53
|
*/
|
|
50
54
|
openItems: string[];
|
|
51
55
|
/**
|
|
@@ -24,7 +24,7 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
24
24
|
"flex",
|
|
25
25
|
"justify-between",
|
|
26
26
|
"items-center",
|
|
27
|
-
"gap-
|
|
27
|
+
"gap-3",
|
|
28
28
|
"w-full",
|
|
29
29
|
"min-h-12",
|
|
30
30
|
"p-3",
|
|
@@ -37,7 +37,8 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
37
37
|
"after:size-6",
|
|
38
38
|
"after:transition-all",
|
|
39
39
|
"after:icon-[daikin--chevron-down]",
|
|
40
|
-
"after:flex-none"
|
|
40
|
+
"after:flex-none",
|
|
41
|
+
"after:self-start"
|
|
41
42
|
],
|
|
42
43
|
{
|
|
43
44
|
variants: {
|
|
@@ -59,14 +60,17 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
);
|
|
62
|
-
const cvaContent = classVarianceAuthority.cva(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
const cvaContent = classVarianceAuthority.cva(
|
|
64
|
+
["grid", "duration-250", "ease-in-out", "leading-normal"],
|
|
65
|
+
{
|
|
66
|
+
variants: {
|
|
67
|
+
open: {
|
|
68
|
+
false: ["grid-rows-[0fr]"],
|
|
69
|
+
true: ["grid-rows-[1fr]"]
|
|
70
|
+
}
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
|
-
|
|
73
|
+
);
|
|
70
74
|
exports.DaikinAccordionItem = class DaikinAccordionItem extends ddsElement.DDSElement {
|
|
71
75
|
constructor() {
|
|
72
76
|
super(...arguments);
|
|
@@ -102,9 +106,7 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends ddsElement.DDSEl
|
|
|
102
106
|
}
|
|
103
107
|
render() {
|
|
104
108
|
const open = !this.disabled && this.open;
|
|
105
|
-
return lit.html`<div
|
|
106
|
-
class="w-full text-ddt-color-common-text-primary font-daikinSerif"
|
|
107
|
-
>
|
|
109
|
+
return lit.html`<div class="w-full text-ddt-color-common-text-primary">
|
|
108
110
|
<button
|
|
109
111
|
id="summary"
|
|
110
112
|
type="button"
|
|
@@ -39,7 +39,7 @@ export declare class DaikinAccordionItem extends DDSElement {
|
|
|
39
39
|
/**
|
|
40
40
|
* Whether the accordion item is open.
|
|
41
41
|
* Ignored if `disabled` is `true`.
|
|
42
|
-
* Controlled by `daikin-accordion`.
|
|
42
|
+
* Controlled by `daikin-accordion`. When using standalone (outside `daikin-accordion`) and controlling this property externally, listen to the `toggle` event and toggle `open` in your state to keep it in sync.
|
|
43
43
|
*/
|
|
44
44
|
open: boolean;
|
|
45
45
|
/**
|
|
@@ -18,7 +18,7 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
18
18
|
if (kind && result) __defProp(target, key, result);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
-
const cvaBadge = classVarianceAuthority.cva(["
|
|
21
|
+
const cvaBadge = classVarianceAuthority.cva(["rounded-full"], {
|
|
22
22
|
variants: {
|
|
23
23
|
type: {
|
|
24
24
|
number: [
|
|
@@ -27,19 +27,20 @@ const cvaBadge = classVarianceAuthority.cva(["absolute", "rounded-full"], {
|
|
|
27
27
|
"px-1",
|
|
28
28
|
"text-[10px]",
|
|
29
29
|
"font-normal",
|
|
30
|
-
"font-daikinSerif",
|
|
31
30
|
"text-white",
|
|
32
31
|
"flex",
|
|
33
32
|
"items-center",
|
|
34
33
|
"justify-center",
|
|
35
|
-
"-top-0.5",
|
|
36
|
-
"-right-0.5",
|
|
37
34
|
"before:content-[attr(data-count)]",
|
|
38
35
|
"before:leading-none",
|
|
39
36
|
"before:whitespace-nowrap",
|
|
40
37
|
"data-[count=0]:hidden"
|
|
41
38
|
],
|
|
42
|
-
dot: [
|
|
39
|
+
dot: []
|
|
40
|
+
},
|
|
41
|
+
size: {
|
|
42
|
+
medium: [],
|
|
43
|
+
large: []
|
|
43
44
|
},
|
|
44
45
|
color: {
|
|
45
46
|
negative: ["bg-ddt-color-common-danger-default"],
|
|
@@ -47,8 +48,34 @@ const cvaBadge = classVarianceAuthority.cva(["absolute", "rounded-full"], {
|
|
|
47
48
|
warning: ["bg-ddt-color-common-warning"],
|
|
48
49
|
positive: ["bg-ddt-color-common-success"],
|
|
49
50
|
information: ["bg-ddt-color-common-information"]
|
|
51
|
+
},
|
|
52
|
+
mode: {
|
|
53
|
+
anchored: ["absolute"],
|
|
54
|
+
standalone: []
|
|
50
55
|
}
|
|
51
|
-
}
|
|
56
|
+
},
|
|
57
|
+
compoundVariants: [
|
|
58
|
+
{
|
|
59
|
+
type: "dot",
|
|
60
|
+
size: "medium",
|
|
61
|
+
class: ["size-2"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: "dot",
|
|
65
|
+
size: "large",
|
|
66
|
+
class: ["size-3"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
mode: "anchored",
|
|
70
|
+
type: "number",
|
|
71
|
+
class: ["-top-0.5", "-right-0.5"]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
mode: "anchored",
|
|
75
|
+
type: "dot",
|
|
76
|
+
class: ["top-1", "right-1"]
|
|
77
|
+
}
|
|
78
|
+
]
|
|
52
79
|
});
|
|
53
80
|
const DEFAULT_MAX_COUNT = "99";
|
|
54
81
|
exports.DaikinBadge = class DaikinBadge extends ddsElement.DDSElement {
|
|
@@ -92,6 +119,21 @@ exports.DaikinBadge = class DaikinBadge extends ddsElement.DDSElement {
|
|
|
92
119
|
* - The slot wraps the icon button.
|
|
93
120
|
*/
|
|
94
121
|
render() {
|
|
122
|
+
if (this.mode === "standalone") {
|
|
123
|
+
return lit.html`
|
|
124
|
+
<span
|
|
125
|
+
role="presentation"
|
|
126
|
+
data-count=${this._count}
|
|
127
|
+
class=${cvaBadge({
|
|
128
|
+
type: this.type,
|
|
129
|
+
size: this.size,
|
|
130
|
+
color: this.color,
|
|
131
|
+
mode: this.mode
|
|
132
|
+
})}
|
|
133
|
+
?hidden=${this.invisible}
|
|
134
|
+
></span>
|
|
135
|
+
`;
|
|
136
|
+
}
|
|
95
137
|
return lit.html`
|
|
96
138
|
<slot></slot>
|
|
97
139
|
<span
|
|
@@ -99,7 +141,9 @@ exports.DaikinBadge = class DaikinBadge extends ddsElement.DDSElement {
|
|
|
99
141
|
data-count=${this._count}
|
|
100
142
|
class=${cvaBadge({
|
|
101
143
|
type: this.type,
|
|
102
|
-
|
|
144
|
+
size: this.size,
|
|
145
|
+
color: this.color,
|
|
146
|
+
mode: this.mode
|
|
103
147
|
})}
|
|
104
148
|
?hidden=${this.invisible}
|
|
105
149
|
></span>
|
|
@@ -111,6 +155,11 @@ exports.DaikinBadge.styles = lit.css`
|
|
|
111
155
|
|
|
112
156
|
:host {
|
|
113
157
|
display: inline-flex;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Use :not([mode="standalone"]) so that the default anchored behavior
|
|
161
|
+
applies even when the mode attribute is absent */
|
|
162
|
+
:host(:not([mode="standalone"])) {
|
|
114
163
|
position: relative;
|
|
115
164
|
}
|
|
116
165
|
|
|
@@ -126,6 +175,22 @@ __decorateClass([
|
|
|
126
175
|
isAllowedValue: ddsProperty.oneOf(["number", "dot"])
|
|
127
176
|
})
|
|
128
177
|
], exports.DaikinBadge.prototype, "type", 2);
|
|
178
|
+
__decorateClass([
|
|
179
|
+
ddsProperty.property({
|
|
180
|
+
type: String,
|
|
181
|
+
reflect: true,
|
|
182
|
+
fallbackValue: "anchored",
|
|
183
|
+
isAllowedValue: ddsProperty.oneOf(["anchored", "standalone"])
|
|
184
|
+
})
|
|
185
|
+
], exports.DaikinBadge.prototype, "mode", 2);
|
|
186
|
+
__decorateClass([
|
|
187
|
+
ddsProperty.property({
|
|
188
|
+
type: String,
|
|
189
|
+
reflect: true,
|
|
190
|
+
fallbackValue: "medium",
|
|
191
|
+
isAllowedValue: ddsProperty.oneOf(["medium", "large"])
|
|
192
|
+
})
|
|
193
|
+
], exports.DaikinBadge.prototype, "size", 2);
|
|
129
194
|
__decorateClass([
|
|
130
195
|
ddsProperty.property({ type: String, reflect: true })
|
|
131
196
|
], exports.DaikinBadge.prototype, "count", 2);
|
|
@@ -2,7 +2,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* A badge is used to display notification counts, status indicators, or small dots in the UI—commonly for message alerts or status marking.
|
|
4
4
|
*
|
|
5
|
-
* @slot - A slot for anchoring element. Place `daikin-icon-button` here.
|
|
5
|
+
* @slot - A slot for anchoring element. Place `daikin-icon-button` here. This slot is only applicable when mode is "anchored". For standalone badges, do not include any content in the slot.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
*
|
|
@@ -13,8 +13,9 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
15
|
* ```html
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* <!-- Anchored badge example -->
|
|
17
|
+
* <daikin-badge type="number" count="42" max-count="999" color="negative">
|
|
18
|
+
* <daikin-icon-button variant="ghost" size="m" button-aria-label="42 unread notifications">
|
|
18
19
|
* <daikin-icon
|
|
19
20
|
* class="w-8 h-8"
|
|
20
21
|
* icon="notification"
|
|
@@ -24,6 +25,10 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
24
25
|
* </daikin-icon>
|
|
25
26
|
* </daikin-icon-button>
|
|
26
27
|
* </daikin-badge>
|
|
28
|
+
*
|
|
29
|
+
* <!-- Standalone badge example -->
|
|
30
|
+
* <daikin-badge type="number" count="42" max-count="999" color="negative" mode="standalone"></daikin-badge>
|
|
31
|
+
* <daikin-badge type="dot" color="positive" mode="standalone"></daikin-badge>
|
|
27
32
|
* ```
|
|
28
33
|
*/
|
|
29
34
|
export declare class DaikinBadge extends DDSElement {
|
|
@@ -36,10 +41,26 @@ export declare class DaikinBadge extends DDSElement {
|
|
|
36
41
|
* @default "dot"
|
|
37
42
|
*/
|
|
38
43
|
type: "number" | "dot";
|
|
44
|
+
/**
|
|
45
|
+
* Badge mode.
|
|
46
|
+
* - "anchored": The badge is anchored to a parent element.
|
|
47
|
+
* - "standalone": The badge is displayed independently. You can use this mode to display badges without an anchor, such as in a header or toolbar.
|
|
48
|
+
*
|
|
49
|
+
* @default "anchored"
|
|
50
|
+
*/
|
|
51
|
+
mode: "anchored" | "standalone";
|
|
52
|
+
/**
|
|
53
|
+
* Badge size.
|
|
54
|
+
* - "medium": Displays a medium-sized badge.
|
|
55
|
+
* - "large": Displays a large-sized badge. When type="number", this will not change the badge size.
|
|
56
|
+
*
|
|
57
|
+
* @default "medium"
|
|
58
|
+
*/
|
|
59
|
+
size: "medium" | "large";
|
|
39
60
|
/**
|
|
40
61
|
* The numeric content displayed in the badge.
|
|
41
62
|
* Only effective when type="number".
|
|
42
|
-
* Accepts a string or null; will be parsed as a number internally.
|
|
63
|
+
* Accepts a string (A half-width numeric string that can be parsed into a number.) or null; will be parsed as a number internally.
|
|
43
64
|
*
|
|
44
65
|
* @example "5"
|
|
45
66
|
*/
|
|
@@ -34,6 +34,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
34
34
|
* <daikin-breadcrumb-item href="#">
|
|
35
35
|
* Breadcrumb item 1
|
|
36
36
|
* </daikin-breadcrumb-item>
|
|
37
|
+
* <!-- Menu width can be set on the slotted <daikin-list slot="menu">, or via daikin-menu::part(menu). See the menu documentation for details. -->
|
|
37
38
|
* <daikin-menu placement="bottom-start">
|
|
38
39
|
* <daikin-breadcrumb-item></daikin-breadcrumb-item>
|
|
39
40
|
* <daikin-list list-role="menu" slot="menu" style="width: 10rem">
|
|
@@ -22,10 +22,7 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
24
|
const LINK_CLASS_NAME = classVarianceAuthority.cva([
|
|
25
|
-
"font-daikinSerif",
|
|
26
25
|
"font-normal",
|
|
27
|
-
"text-base",
|
|
28
|
-
"leading-[130%]",
|
|
29
26
|
"relative",
|
|
30
27
|
"text-ddt-color-link-text-default",
|
|
31
28
|
"hover:text-ddt-color-link-text-hover",
|
|
@@ -93,7 +90,7 @@ exports.DaikinBreadcrumbItem = class DaikinBreadcrumbItem extends ddsElement.DDS
|
|
|
93
90
|
>
|
|
94
91
|
...
|
|
95
92
|
</button>` : lit.html`<a
|
|
96
|
-
class="
|
|
93
|
+
class="align-middle text-ddt-color-common-text-primary"
|
|
97
94
|
aria-disabled="true"
|
|
98
95
|
aria-current="true"
|
|
99
96
|
target=${ifDefined_js.ifDefined(this.target)}
|
|
@@ -26,12 +26,10 @@ const cvaButton = classVarianceAuthority.cva(
|
|
|
26
26
|
"justify-center",
|
|
27
27
|
"items-center",
|
|
28
28
|
"size-full",
|
|
29
|
-
"font-daikinSerif",
|
|
30
29
|
"font-bold",
|
|
31
30
|
"rounded-sm",
|
|
32
31
|
"tracking-wide",
|
|
33
32
|
"text-nowrap",
|
|
34
|
-
"leading-[130%]",
|
|
35
33
|
"focus-visible:outline-solid",
|
|
36
34
|
"focus-visible:outline-2",
|
|
37
35
|
"focus-visible:outline-offset-2",
|
|
@@ -68,9 +66,9 @@ const cvaButton = classVarianceAuthority.cva(
|
|
|
68
66
|
ghost: ["text-(--color-primary)", "bg-(--color-secondary)"]
|
|
69
67
|
},
|
|
70
68
|
size: {
|
|
71
|
-
small: ["text-
|
|
72
|
-
medium: [
|
|
73
|
-
large: ["text-
|
|
69
|
+
small: ["text-(length:--dds-font-size-350)"],
|
|
70
|
+
medium: [],
|
|
71
|
+
large: ["text-(length:--dds-font-size-500)"]
|
|
74
72
|
}
|
|
75
73
|
},
|
|
76
74
|
compoundVariants: [
|
|
@@ -244,7 +242,7 @@ exports.DaikinButton.styles = lit.css`
|
|
|
244
242
|
|
|
245
243
|
:host([size="large"]) {
|
|
246
244
|
min-width: 4.25em;
|
|
247
|
-
height:
|
|
245
|
+
height: 4rem;
|
|
248
246
|
}
|
|
249
247
|
`;
|
|
250
248
|
__decorateClass([
|
|
@@ -4,10 +4,10 @@ import { MergeVariantProps } from "../../type-utils.cjs";
|
|
|
4
4
|
declare const cvaButton: (props?: ({
|
|
5
5
|
color?: "default" | "danger" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "medium" | "large" | "small" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
declare const cvaIcon: (props?: ({
|
|
10
|
-
size?: "
|
|
10
|
+
size?: "medium" | "large" | "small" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
12
|
type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
|
|
13
13
|
/**
|
|
@@ -185,11 +185,13 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
|
185
185
|
}
|
|
186
186
|
_handleMonthClick() {
|
|
187
187
|
this.view = this.view != "year" ? "year" : "month";
|
|
188
|
+
this.dispatchEvent(new Event("view-change", { bubbles: true }));
|
|
188
189
|
}
|
|
189
190
|
_handleYearAndMonthPickerClick(date) {
|
|
190
191
|
this.view = this.view === "year" ? "month" : "day";
|
|
191
192
|
this._viewDate = calendarCommon.cloneDate(date);
|
|
192
193
|
this.value = calendarCommon.formatDateForProperty(calendarCommon.clampDate(date, this._min, this._max));
|
|
194
|
+
this.dispatchEvent(new Event("view-change", { bubbles: true }));
|
|
193
195
|
this._emitSelecting();
|
|
194
196
|
}
|
|
195
197
|
_handleCalendarKeyDown(event) {
|
|
@@ -450,7 +452,7 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
|
450
452
|
day: this._createDatePicker
|
|
451
453
|
}[view].call(this, renderState);
|
|
452
454
|
return lit.html`<div
|
|
453
|
-
class="flex items-stretch flex-col gap-2 w-70 h-max pt-3 bg-ddt-color-common-background-default outline-solid outline-1 -outline-offset-1 outline-ddt-color-divider rounded-sm
|
|
455
|
+
class="flex items-stretch flex-col gap-2 w-70 h-max pt-3 bg-ddt-color-common-background-default outline-solid outline-1 -outline-offset-1 outline-ddt-color-divider rounded-sm"
|
|
454
456
|
>
|
|
455
457
|
<div class="flex justify-between items-center pl-4 pr-3">
|
|
456
458
|
<div class="flex items-center gap-2">
|
|
@@ -5,6 +5,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
5
5
|
*
|
|
6
6
|
* @fires select - Fires when the date is selected.
|
|
7
7
|
* @fires selecting - Fires when the year or month is selected.
|
|
8
|
+
* @fires view-change - _Internal use._ Fires when the calendar view changes between day, month, and year picker.
|
|
8
9
|
*
|
|
9
10
|
* @example
|
|
10
11
|
*
|
|
@@ -20,6 +21,7 @@ export declare class DaikinCalendar extends DDSElement {
|
|
|
20
21
|
static readonly styles: import('lit').CSSResult;
|
|
21
22
|
/**
|
|
22
23
|
* The current value of the input, submitted as a name/value pair with form data.
|
|
24
|
+
* When controlling this property externally, listen to the `select` event and read the updated `value` from the component to keep your state in sync.
|
|
23
25
|
*/
|
|
24
26
|
value: string;
|
|
25
27
|
/**
|
|
@@ -19,7 +19,6 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
19
19
|
const cvaTitle = classVarianceAuthority.cva([
|
|
20
20
|
"flex-none",
|
|
21
21
|
"text-ddt-color-common-text-primary",
|
|
22
|
-
"font-daikinSerif",
|
|
23
22
|
"text-base",
|
|
24
23
|
"leading-[1.3]",
|
|
25
24
|
"not-italic",
|
|
@@ -29,7 +28,6 @@ const cvaTitle = classVarianceAuthority.cva([
|
|
|
29
28
|
const cvaDescription = classVarianceAuthority.cva([
|
|
30
29
|
"flex-none",
|
|
31
30
|
"text-ddt-color-common-text-primary",
|
|
32
|
-
"font-daikinSerif",
|
|
33
31
|
"text-sm",
|
|
34
32
|
"leading-normal",
|
|
35
33
|
"not-italic",
|
|
@@ -33,6 +33,7 @@ export declare class DaikinCarousel extends DDSElement {
|
|
|
33
33
|
static readonly styles: import('lit').CSSResult;
|
|
34
34
|
/**
|
|
35
35
|
* The index number of the content currently being displayed.
|
|
36
|
+
* When controlling this property externally, listen to the `select` event and read the updated `currentIndex` from the component to keep your state in sync.
|
|
36
37
|
*/
|
|
37
38
|
currentIndex: number;
|
|
38
39
|
private readonly _items;
|
|
@@ -30,7 +30,7 @@ exports.DaikinCarouselItem = class DaikinCarouselItem extends ddsElement.DDSElem
|
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
32
|
return lit.html`<div
|
|
33
|
-
class="flex flex-col flex-none gap-3 text-ddt-color-common-text-primary
|
|
33
|
+
class="flex flex-col flex-none gap-3 text-ddt-color-common-text-primary overflow-hidden"
|
|
34
34
|
role="tabpanel"
|
|
35
35
|
aria-label=${this.label}
|
|
36
36
|
aria-hidden=${!this.active}
|
|
@@ -42,12 +42,12 @@ exports.DaikinCarouselItem = class DaikinCarouselItem extends ddsElement.DDSElem
|
|
|
42
42
|
>
|
|
43
43
|
<slot
|
|
44
44
|
name="title"
|
|
45
|
-
class="
|
|
45
|
+
class="font-bold natural-break"
|
|
46
46
|
@slotchange=${this._handleFooterSlotChange}
|
|
47
47
|
></slot>
|
|
48
48
|
<slot
|
|
49
49
|
name="description"
|
|
50
|
-
class="text-
|
|
50
|
+
class="text-(length:--dds-font-size-350) leading-normal natural-break"
|
|
51
51
|
@slotchange=${this._handleFooterSlotChange}
|
|
52
52
|
></slot>
|
|
53
53
|
</div>
|
|
@@ -20,6 +20,17 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
20
20
|
if (kind && result) __defProp(target, key, result);
|
|
21
21
|
return result;
|
|
22
22
|
};
|
|
23
|
+
const cvaWrapper = classVarianceAuthority.cva(
|
|
24
|
+
["group", "flex", "gap-2", "items-center", "size-full"],
|
|
25
|
+
{
|
|
26
|
+
variants: {
|
|
27
|
+
disabled: {
|
|
28
|
+
false: ["cursor-pointer"],
|
|
29
|
+
true: []
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
);
|
|
23
34
|
const CHECKBOX_CLASS_NAME = classVarianceAuthority.cva([
|
|
24
35
|
"block",
|
|
25
36
|
"size-4",
|
|
@@ -46,6 +57,7 @@ const CHECKBOX_CLASS_NAME = classVarianceAuthority.cva([
|
|
|
46
57
|
"group-active:enabled:bg-ddt-color-common-surface-press",
|
|
47
58
|
"enabled:checked:border-ddt-color-common-brand-default",
|
|
48
59
|
"enabled:checked:bg-ddt-color-common-brand-default",
|
|
60
|
+
"enabled:cursor-pointer",
|
|
49
61
|
"group-hover:checked:enabled:bg-ddt-color-common-brand-hover",
|
|
50
62
|
"group-hover:checked:enabled:border-ddt-color-common-brand-hover",
|
|
51
63
|
"group-hover:checked:enabled:before:text-ddt-color-common-text-inverse",
|
|
@@ -84,6 +96,15 @@ exports.DaikinCheckbox = class DaikinCheckbox extends ddsFormElement.DDSFormElem
|
|
|
84
96
|
this.disabledByParent = false;
|
|
85
97
|
this._inputRef = ref_js.createRef();
|
|
86
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* The effective disabled state of the checkbox.
|
|
101
|
+
* Returns `true` if either `disabled` or `disabledByParent` is `true`.
|
|
102
|
+
*
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
get _disabled() {
|
|
106
|
+
return this.disabled || this.disabledByParent;
|
|
107
|
+
}
|
|
87
108
|
/**
|
|
88
109
|
* Focuses on the inner checkbox.
|
|
89
110
|
* @param options focus options
|
|
@@ -111,7 +132,7 @@ exports.DaikinCheckbox = class DaikinCheckbox extends ddsFormElement.DDSFormElem
|
|
|
111
132
|
}
|
|
112
133
|
_handleClick(event) {
|
|
113
134
|
var _a;
|
|
114
|
-
if (this.
|
|
135
|
+
if (this._disabled) {
|
|
115
136
|
event.preventDefault();
|
|
116
137
|
}
|
|
117
138
|
if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT") {
|
|
@@ -124,9 +145,8 @@ exports.DaikinCheckbox = class DaikinCheckbox extends ddsFormElement.DDSFormElem
|
|
|
124
145
|
this.dispatchEvent(new Event("change", event));
|
|
125
146
|
}
|
|
126
147
|
render() {
|
|
127
|
-
const disabled = this.disabled || this.disabledByParent;
|
|
128
148
|
return lit.html`<label
|
|
129
|
-
class
|
|
149
|
+
class=${cvaWrapper({ disabled: this._disabled })}
|
|
130
150
|
part="label"
|
|
131
151
|
@click=${this._handleClick}
|
|
132
152
|
>
|
|
@@ -136,7 +156,7 @@ exports.DaikinCheckbox = class DaikinCheckbox extends ddsFormElement.DDSFormElem
|
|
|
136
156
|
class=${CHECKBOX_CLASS_NAME}
|
|
137
157
|
type="checkbox"
|
|
138
158
|
name=${ifDefined_js.ifDefined(this.getBackingProperty("name"))}
|
|
139
|
-
?disabled=${
|
|
159
|
+
?disabled=${this._disabled}
|
|
140
160
|
aria-label=${this._labelHidden ? this.label : lit.nothing}
|
|
141
161
|
.checked=${this.checked}
|
|
142
162
|
.indeterminate=${this.checkState === "indeterminate"}
|
|
@@ -146,7 +166,7 @@ exports.DaikinCheckbox = class DaikinCheckbox extends ddsFormElement.DDSFormElem
|
|
|
146
166
|
</span>
|
|
147
167
|
<slot
|
|
148
168
|
class=${cvaLabel({
|
|
149
|
-
disabled,
|
|
169
|
+
disabled: this._disabled,
|
|
150
170
|
hidden: this._labelHidden
|
|
151
171
|
})}
|
|
152
172
|
?hidden=${this._labelHidden}
|
|
@@ -7,7 +7,7 @@ import { DDSFormElement } from "../../base/index.cjs";
|
|
|
7
7
|
*
|
|
8
8
|
* @attr form - The form the component belongs to.
|
|
9
9
|
* @attr name - The form name, submitted as a name/value pair when submitting the form.
|
|
10
|
-
* @attr value - The initial form value, submitted as a name/value pair when submitting the form.
|
|
10
|
+
* @attr value - The initial form value, submitted as a name/value pair when submitting the form. To keep external state in sync, listen to the `change` event.
|
|
11
11
|
* @prop {String} formAttr - The form the component belongs to.
|
|
12
12
|
* @prop {String} name - The form name, submitted as a name/value pair when submitting the form.
|
|
13
13
|
* @prop {String} value - The form value, submitted as a name/value pair when submitting the form.
|
|
@@ -44,6 +44,7 @@ export declare class DaikinCheckbox extends DDSFormElement {
|
|
|
44
44
|
labelPosition: "right" | "hidden";
|
|
45
45
|
/**
|
|
46
46
|
* Specify the checkbox checked state.
|
|
47
|
+
* To keep external state in sync, listen to the `change` event.
|
|
47
48
|
*
|
|
48
49
|
* @default "unchecked"
|
|
49
50
|
*/
|
|
@@ -59,6 +60,13 @@ export declare class DaikinCheckbox extends DDSFormElement {
|
|
|
59
60
|
* @private
|
|
60
61
|
*/
|
|
61
62
|
disabledByParent: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The effective disabled state of the checkbox.
|
|
65
|
+
* Returns `true` if either `disabled` or `disabledByParent` is `true`.
|
|
66
|
+
*
|
|
67
|
+
* @private
|
|
68
|
+
*/
|
|
69
|
+
private get _disabled();
|
|
62
70
|
private readonly _inputRef;
|
|
63
71
|
/**
|
|
64
72
|
* Focuses on the inner checkbox.
|
|
@@ -52,9 +52,7 @@ const cvaInputChipIcon = classVarianceAuthority.cva(["icon-size-4", "slotted:fle
|
|
|
52
52
|
});
|
|
53
53
|
const cvaInputChipText = classVarianceAuthority.cva(
|
|
54
54
|
[
|
|
55
|
-
"text-
|
|
56
|
-
"font-daikinSerif",
|
|
57
|
-
"leading-[130%]",
|
|
55
|
+
"text-(length:--dds-font-size-350)",
|
|
58
56
|
"px-1",
|
|
59
57
|
"mr-0.5",
|
|
60
58
|
"overflow-hidden",
|
|
@@ -167,7 +165,7 @@ const cvaFilterChipWrapper = classVarianceAuthority.cva(
|
|
|
167
165
|
}
|
|
168
166
|
);
|
|
169
167
|
const cvaFilterChipText = classVarianceAuthority.cva(
|
|
170
|
-
["text-
|
|
168
|
+
["text-(length:--dds-font-size-350)", "px-1", "mr-0.5"],
|
|
171
169
|
{
|
|
172
170
|
variants: {
|
|
173
171
|
checked: {
|
|
@@ -35,6 +35,7 @@ export declare class DaikinChip extends DDSElement {
|
|
|
35
35
|
variant: "fill" | "outline";
|
|
36
36
|
/**
|
|
37
37
|
* Specify the chip is selected when type is "filter".
|
|
38
|
+
* When controlling this property externally, listen to the `select` event and update your state from `event.detail.checked` to keep it in sync.
|
|
38
39
|
*/
|
|
39
40
|
checked: boolean;
|
|
40
41
|
/**
|