@daikin-oss/design-system-web-components 1.4.1 → 1.5.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 +136 -0
- package/custom-elements.json +25044 -0
- package/dist/THIRDPARTY.txt +1 -0
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/base/dds-navigable.d.cts +16 -0
- package/dist/cjs/base/index.d.cts +1 -0
- package/dist/cjs/components/accordion/daikin-accordion.cjs +28 -5
- package/dist/cjs/components/accordion/daikin-accordion.d.cts +14 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +4 -4
- package/dist/cjs/components/avatar/daikin-avatar.cjs +24 -6
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +13 -3
- package/dist/cjs/components/badge/daikin-badge.cjs +2 -2
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +0 -5
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +37 -1
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +23 -3
- package/dist/cjs/components/button/daikin-button.cjs +37 -19
- package/dist/cjs/components/button/daikin-button.d.cts +13 -3
- package/dist/cjs/components/calendar/daikin-calendar.cjs +12 -12
- package/dist/cjs/components/card/daikin-card.d.cts +1 -0
- package/dist/cjs/components/carousel/daikin-carousel.cjs +5 -5
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +20 -20
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +1 -1
- package/dist/cjs/components/chip/daikin-chip.cjs +261 -51
- package/dist/cjs/components/chip/daikin-chip.d.cts +45 -3
- package/dist/cjs/components/combobox/daikin-combobox.cjs +27 -30
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +10 -10
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +10 -10
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +10 -10
- package/dist/cjs/components/empty-state/daikin-empty-state.cjs +49 -0
- package/dist/cjs/components/empty-state/daikin-empty-state.d.cts +34 -0
- package/dist/cjs/components/empty-state/index.cjs +7 -0
- package/dist/cjs/components/empty-state/index.d.cts +1 -0
- package/dist/cjs/components/icon/daikin-icon.cjs +6 -12
- package/dist/cjs/components/icon/daikin-icon.d.cts +4 -0
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +26 -22
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +42 -24
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +13 -3
- package/dist/cjs/components/index.cjs +20 -0
- package/dist/cjs/components/index.d.cts +4 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +13 -10
- package/dist/cjs/components/input-group/daikin-input-group.cjs +2 -2
- package/dist/cjs/components/link/daikin-link.cjs +29 -10
- package/dist/cjs/components/link/daikin-link.d.cts +12 -2
- package/dist/cjs/components/list-item/daikin-list-item.cjs +23 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +13 -3
- package/dist/cjs/components/loading/daikin-loading.cjs +2 -2
- package/dist/cjs/components/logo/daikin-logo.cjs +22 -4
- package/dist/cjs/components/logo/daikin-logo.d.cts +13 -3
- package/dist/cjs/components/menu/daikin-menu.cjs +18 -4
- package/dist/cjs/components/menu/daikin-menu.d.cts +3 -1
- package/dist/cjs/components/modal/daikin-modal.cjs +15 -8
- package/dist/cjs/components/modal/daikin-modal.d.cts +2 -0
- package/dist/cjs/components/navigation/daikin-navigation.cjs +47 -0
- package/dist/cjs/components/navigation/daikin-navigation.d.cts +56 -0
- package/dist/cjs/components/navigation/index.cjs +7 -0
- package/dist/cjs/components/navigation/index.d.cts +1 -0
- package/dist/cjs/components/navigation-item/daikin-navigation-item.cjs +219 -0
- package/dist/cjs/components/navigation-item/daikin-navigation-item.d.cts +89 -0
- package/dist/cjs/components/navigation-item/index.cjs +7 -0
- package/dist/cjs/components/navigation-item/index.d.cts +1 -0
- package/dist/cjs/components/pagination/daikin-pagination.cjs +7 -7
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +3 -3
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +2 -2
- package/dist/cjs/components/radio/daikin-radio.cjs +7 -7
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +1 -1
- package/dist/cjs/components/select/daikin-select.cjs +34 -34
- package/dist/cjs/components/slider/daikin-slider.cjs +4 -4
- package/dist/cjs/components/status-message/daikin-status-message.cjs +4 -4
- package/dist/cjs/components/tab/daikin-tab.cjs +3 -3
- package/dist/cjs/components/table/daikin-table.cjs +12 -5
- package/dist/cjs/components/table/daikin-table.d.cts +2 -0
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +4 -4
- package/dist/cjs/components/tabs/daikin-tabs.cjs +1 -1
- package/dist/cjs/components/tabs/daikin-tabs.d.cts +2 -2
- package/dist/cjs/components/tag/daikin-tag.cjs +126 -0
- package/dist/cjs/components/tag/daikin-tag.d.cts +46 -0
- package/dist/cjs/components/tag/index.cjs +7 -0
- package/dist/cjs/components/tag/index.d.cts +1 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +11 -11
- package/dist/cjs/components/text-field/daikin-text-field.cjs +20 -20
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +12 -12
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +11 -11
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +28 -36
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +2 -2
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +3 -3
- package/dist/cjs/components/toggle/daikin-toggle.cjs +3 -3
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +3 -3
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +11 -10
- package/dist/cjs/index.cjs +25 -0
- package/dist/cjs/index.d.cts +1 -0
- package/dist/cjs/navigation.cjs +62 -0
- package/dist/cjs/navigation.d.cts +33 -0
- package/dist/cjs/tailwind.css.cjs +3 -2
- package/dist/cjs/utils/calendar-common.cjs +15 -10
- package/dist/cjs/utils/calendar-common.d.cts +8 -3
- package/dist/cjs/utils/notification-common.d.cts +1 -1
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/base/dds-navigable.d.cts +16 -0
- package/dist/cjs-dev/base/index.d.cts +1 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +28 -5
- package/dist/cjs-dev/components/accordion/daikin-accordion.d.cts +14 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +4 -4
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +24 -6
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +13 -3
- package/dist/cjs-dev/components/badge/daikin-badge.cjs +2 -2
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +0 -5
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +37 -1
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +23 -3
- package/dist/cjs-dev/components/button/daikin-button.cjs +37 -19
- package/dist/cjs-dev/components/button/daikin-button.d.cts +13 -3
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +12 -12
- package/dist/cjs-dev/components/card/daikin-card.d.cts +1 -0
- package/dist/cjs-dev/components/carousel/daikin-carousel.cjs +5 -5
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +20 -20
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +1 -1
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +261 -51
- package/dist/cjs-dev/components/chip/daikin-chip.d.cts +45 -3
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +27 -30
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +10 -10
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +10 -10
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +10 -10
- package/dist/cjs-dev/components/empty-state/daikin-empty-state.cjs +49 -0
- package/dist/cjs-dev/components/empty-state/daikin-empty-state.d.cts +34 -0
- package/dist/cjs-dev/components/empty-state/index.cjs +7 -0
- package/dist/cjs-dev/components/empty-state/index.d.cts +1 -0
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +6 -12
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +4 -0
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +26 -22
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +42 -24
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +13 -3
- package/dist/cjs-dev/components/index.cjs +20 -0
- package/dist/cjs-dev/components/index.d.cts +4 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +13 -10
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +2 -2
- package/dist/cjs-dev/components/link/daikin-link.cjs +29 -10
- package/dist/cjs-dev/components/link/daikin-link.d.cts +12 -2
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +23 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +13 -3
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +2 -2
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +22 -4
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +13 -3
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +18 -4
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +3 -1
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +15 -8
- package/dist/cjs-dev/components/modal/daikin-modal.d.cts +2 -0
- package/dist/cjs-dev/components/navigation/daikin-navigation.cjs +47 -0
- package/dist/cjs-dev/components/navigation/daikin-navigation.d.cts +56 -0
- package/dist/cjs-dev/components/navigation/index.cjs +7 -0
- package/dist/cjs-dev/components/navigation/index.d.cts +1 -0
- package/dist/cjs-dev/components/navigation-item/daikin-navigation-item.cjs +219 -0
- package/dist/cjs-dev/components/navigation-item/daikin-navigation-item.d.cts +89 -0
- package/dist/cjs-dev/components/navigation-item/index.cjs +7 -0
- package/dist/cjs-dev/components/navigation-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +7 -7
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +3 -3
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +2 -2
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +7 -7
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +1 -1
- package/dist/cjs-dev/components/select/daikin-select.cjs +34 -34
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +4 -4
- package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +4 -4
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +3 -3
- package/dist/cjs-dev/components/table/daikin-table.cjs +12 -5
- package/dist/cjs-dev/components/table/daikin-table.d.cts +2 -0
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +4 -4
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +1 -1
- package/dist/cjs-dev/components/tabs/daikin-tabs.d.cts +2 -2
- package/dist/cjs-dev/components/tag/daikin-tag.cjs +126 -0
- package/dist/cjs-dev/components/tag/daikin-tag.d.cts +46 -0
- package/dist/cjs-dev/components/tag/index.cjs +7 -0
- package/dist/cjs-dev/components/tag/index.d.cts +1 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +11 -11
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +20 -20
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +12 -12
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +11 -11
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +28 -36
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +2 -2
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +3 -3
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +3 -3
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +3 -3
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +11 -10
- package/dist/cjs-dev/index.cjs +25 -0
- package/dist/cjs-dev/index.d.cts +1 -0
- package/dist/cjs-dev/navigation.cjs +62 -0
- package/dist/cjs-dev/navigation.d.cts +33 -0
- package/dist/cjs-dev/tailwind.css.cjs +3 -2
- package/dist/cjs-dev/utils/calendar-common.cjs +15 -10
- package/dist/cjs-dev/utils/calendar-common.d.cts +8 -3
- package/dist/cjs-dev/utils/notification-common.d.cts +1 -1
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/base/dds-navigable.d.ts +16 -0
- package/dist/es/base/index.d.ts +1 -0
- package/dist/es/components/accordion/daikin-accordion.d.ts +14 -0
- package/dist/es/components/accordion/daikin-accordion.js +29 -6
- package/dist/es/components/accordion-item/daikin-accordion-item.js +4 -4
- package/dist/es/components/avatar/daikin-avatar.d.ts +13 -3
- package/dist/es/components/avatar/daikin-avatar.js +24 -6
- package/dist/es/components/badge/daikin-badge.js +2 -2
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +0 -5
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +23 -3
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +37 -1
- package/dist/es/components/button/daikin-button.d.ts +13 -3
- package/dist/es/components/button/daikin-button.js +37 -19
- package/dist/es/components/calendar/daikin-calendar.js +13 -13
- package/dist/es/components/card/daikin-card.d.ts +1 -0
- package/dist/es/components/carousel/daikin-carousel.js +5 -5
- package/dist/es/components/checkbox/daikin-checkbox.js +20 -20
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +1 -1
- package/dist/es/components/chip/daikin-chip.d.ts +45 -3
- package/dist/es/components/chip/daikin-chip.js +263 -53
- package/dist/es/components/combobox/daikin-combobox.js +27 -30
- package/dist/es/components/date-picker/daikin-date-picker.js +10 -10
- package/dist/es/components/dropdown/daikin-dropdown.js +10 -10
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +10 -10
- package/dist/es/components/empty-state/daikin-empty-state.d.ts +34 -0
- package/dist/es/components/empty-state/daikin-empty-state.js +50 -0
- package/dist/es/components/empty-state/index.d.ts +1 -0
- package/dist/es/components/empty-state/index.js +4 -0
- package/dist/es/components/icon/daikin-icon.d.ts +4 -0
- package/dist/es/components/icon/daikin-icon.js +6 -12
- package/dist/es/components/icon/icons.json.d.ts +26 -22
- package/dist/es/components/icon/icons.json.js +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +13 -3
- package/dist/es/components/icon-button/daikin-icon-button.js +42 -24
- package/dist/es/components/index.d.ts +4 -0
- package/dist/es/components/index.js +8 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.js +13 -10
- package/dist/es/components/input-group/daikin-input-group.js +2 -2
- package/dist/es/components/link/daikin-link.d.ts +12 -2
- package/dist/es/components/link/daikin-link.js +29 -10
- package/dist/es/components/list-item/daikin-list-item.d.ts +13 -3
- package/dist/es/components/list-item/daikin-list-item.js +23 -5
- package/dist/es/components/loading/daikin-loading.js +2 -2
- package/dist/es/components/logo/daikin-logo.d.ts +13 -3
- package/dist/es/components/logo/daikin-logo.js +22 -4
- package/dist/es/components/menu/daikin-menu.d.ts +3 -1
- package/dist/es/components/menu/daikin-menu.js +18 -4
- package/dist/es/components/modal/daikin-modal.d.ts +2 -0
- package/dist/es/components/modal/daikin-modal.js +15 -8
- package/dist/es/components/navigation/daikin-navigation.d.ts +56 -0
- package/dist/es/components/navigation/daikin-navigation.js +48 -0
- package/dist/es/components/navigation/index.d.ts +1 -0
- package/dist/es/components/navigation/index.js +4 -0
- package/dist/es/components/navigation-item/daikin-navigation-item.d.ts +89 -0
- package/dist/es/components/navigation-item/daikin-navigation-item.js +220 -0
- package/dist/es/components/navigation-item/index.d.ts +1 -0
- package/dist/es/components/navigation-item/index.js +4 -0
- package/dist/es/components/pagination/daikin-pagination.js +7 -7
- package/dist/es/components/progress-bar/daikin-progress-bar.js +3 -3
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es/components/radio/daikin-radio.js +7 -7
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +1 -1
- package/dist/es/components/select/daikin-select.js +34 -34
- package/dist/es/components/slider/daikin-slider.js +4 -4
- package/dist/es/components/status-message/daikin-status-message.js +4 -4
- package/dist/es/components/tab/daikin-tab.js +3 -3
- package/dist/es/components/table/daikin-table.d.ts +2 -0
- package/dist/es/components/table/daikin-table.js +12 -5
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +4 -4
- package/dist/es/components/tabs/daikin-tabs.d.ts +2 -2
- package/dist/es/components/tabs/daikin-tabs.js +1 -1
- package/dist/es/components/tag/daikin-tag.d.ts +46 -0
- package/dist/es/components/tag/daikin-tag.js +127 -0
- package/dist/es/components/tag/index.d.ts +1 -0
- package/dist/es/components/tag/index.js +4 -0
- package/dist/es/components/text-area/daikin-text-area.js +11 -11
- package/dist/es/components/text-field/daikin-text-field.js +20 -20
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +12 -12
- package/dist/es/components/time-picker/daikin-time-picker.js +11 -11
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +2 -2
- package/dist/es/components/toast-notification/daikin-toast-notification.js +28 -36
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +3 -3
- package/dist/es/components/toggle/daikin-toggle.js +3 -3
- package/dist/es/components/tooltip/daikin-tooltip.js +3 -3
- package/dist/es/components/tree-item/daikin-tree-item.js +11 -10
- package/dist/es/index.d.ts +1 -0
- package/dist/es/index.js +13 -0
- package/dist/es/navigation.d.ts +33 -0
- package/dist/es/navigation.js +62 -0
- package/dist/es/tailwind.css.js +3 -2
- package/dist/es/utils/calendar-common.d.ts +8 -3
- package/dist/es/utils/calendar-common.js +15 -10
- package/dist/es/utils/notification-common.d.ts +1 -1
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/base/dds-navigable.d.ts +16 -0
- package/dist/es-dev/base/index.d.ts +1 -0
- package/dist/es-dev/components/accordion/daikin-accordion.d.ts +14 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +29 -6
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +4 -4
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +13 -3
- package/dist/es-dev/components/avatar/daikin-avatar.js +24 -6
- package/dist/es-dev/components/badge/daikin-badge.js +2 -2
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +0 -5
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +23 -3
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +37 -1
- package/dist/es-dev/components/button/daikin-button.d.ts +13 -3
- package/dist/es-dev/components/button/daikin-button.js +37 -19
- package/dist/es-dev/components/calendar/daikin-calendar.js +13 -13
- package/dist/es-dev/components/card/daikin-card.d.ts +1 -0
- package/dist/es-dev/components/carousel/daikin-carousel.js +5 -5
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +20 -20
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +1 -1
- package/dist/es-dev/components/chip/daikin-chip.d.ts +45 -3
- package/dist/es-dev/components/chip/daikin-chip.js +263 -53
- package/dist/es-dev/components/combobox/daikin-combobox.js +27 -30
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +10 -10
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +10 -10
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +10 -10
- package/dist/es-dev/components/empty-state/daikin-empty-state.d.ts +34 -0
- package/dist/es-dev/components/empty-state/daikin-empty-state.js +50 -0
- package/dist/es-dev/components/empty-state/index.d.ts +1 -0
- package/dist/es-dev/components/empty-state/index.js +4 -0
- package/dist/es-dev/components/icon/daikin-icon.d.ts +4 -0
- package/dist/es-dev/components/icon/daikin-icon.js +6 -12
- package/dist/es-dev/components/icon/icons.json.d.ts +26 -22
- package/dist/es-dev/components/icon/icons.json.js +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +13 -3
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +42 -24
- package/dist/es-dev/components/index.d.ts +4 -0
- package/dist/es-dev/components/index.js +8 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +13 -10
- package/dist/es-dev/components/input-group/daikin-input-group.js +2 -2
- package/dist/es-dev/components/link/daikin-link.d.ts +12 -2
- package/dist/es-dev/components/link/daikin-link.js +29 -10
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +13 -3
- package/dist/es-dev/components/list-item/daikin-list-item.js +23 -5
- package/dist/es-dev/components/loading/daikin-loading.js +2 -2
- package/dist/es-dev/components/logo/daikin-logo.d.ts +13 -3
- package/dist/es-dev/components/logo/daikin-logo.js +22 -4
- package/dist/es-dev/components/menu/daikin-menu.d.ts +3 -1
- package/dist/es-dev/components/menu/daikin-menu.js +18 -4
- package/dist/es-dev/components/modal/daikin-modal.d.ts +2 -0
- package/dist/es-dev/components/modal/daikin-modal.js +15 -8
- package/dist/es-dev/components/navigation/daikin-navigation.d.ts +56 -0
- package/dist/es-dev/components/navigation/daikin-navigation.js +48 -0
- package/dist/es-dev/components/navigation/index.d.ts +1 -0
- package/dist/es-dev/components/navigation/index.js +4 -0
- package/dist/es-dev/components/navigation-item/daikin-navigation-item.d.ts +89 -0
- package/dist/es-dev/components/navigation-item/daikin-navigation-item.js +220 -0
- package/dist/es-dev/components/navigation-item/index.d.ts +1 -0
- package/dist/es-dev/components/navigation-item/index.js +4 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +7 -7
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +3 -3
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es-dev/components/radio/daikin-radio.js +7 -7
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +1 -1
- package/dist/es-dev/components/select/daikin-select.js +34 -34
- package/dist/es-dev/components/slider/daikin-slider.js +4 -4
- package/dist/es-dev/components/status-message/daikin-status-message.js +4 -4
- package/dist/es-dev/components/tab/daikin-tab.js +3 -3
- package/dist/es-dev/components/table/daikin-table.d.ts +2 -0
- package/dist/es-dev/components/table/daikin-table.js +12 -5
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +4 -4
- package/dist/es-dev/components/tabs/daikin-tabs.d.ts +2 -2
- package/dist/es-dev/components/tabs/daikin-tabs.js +1 -1
- package/dist/es-dev/components/tag/daikin-tag.d.ts +46 -0
- package/dist/es-dev/components/tag/daikin-tag.js +127 -0
- package/dist/es-dev/components/tag/index.d.ts +1 -0
- package/dist/es-dev/components/tag/index.js +4 -0
- package/dist/es-dev/components/text-area/daikin-text-area.js +11 -11
- package/dist/es-dev/components/text-field/daikin-text-field.js +20 -20
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +12 -12
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +11 -11
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +2 -2
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +28 -36
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +3 -3
- package/dist/es-dev/components/toggle/daikin-toggle.js +3 -3
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +3 -3
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +11 -10
- package/dist/es-dev/index.d.ts +1 -0
- package/dist/es-dev/index.js +13 -0
- package/dist/es-dev/navigation.d.ts +33 -0
- package/dist/es-dev/navigation.js +62 -0
- package/dist/es-dev/tailwind.css.js +3 -2
- package/dist/es-dev/utils/calendar-common.d.ts +8 -3
- package/dist/es-dev/utils/calendar-common.js +15 -10
- package/dist/es-dev/utils/notification-common.d.ts +1 -1
- package/icons/check.svg +3 -0
- package/package.json +26 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
No third-party libraries are included in the final bundle, so the list appears empty.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes a navigation destination for DDS components.
|
|
3
|
+
*/
|
|
4
|
+
export interface NavigationTarget {
|
|
5
|
+
/** The destination URL. */
|
|
6
|
+
href: string;
|
|
7
|
+
/** The target browsing context, or null for default behavior. */
|
|
8
|
+
target: string | null;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Interface for DDS components that provide navigation capabilities.
|
|
12
|
+
*/
|
|
13
|
+
export interface DDSNavigable extends HTMLElement {
|
|
14
|
+
/** Returns the navigation target derived from the element state. */
|
|
15
|
+
getDDSNavigationTarget(): NavigationTarget | null;
|
|
16
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
3
4
|
const lit = require("lit");
|
|
4
5
|
const decorators_js = require("lit/decorators.js");
|
|
5
6
|
const ddsElement = require("../../base/dds-element.cjs");
|
|
@@ -18,9 +19,19 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
18
19
|
if (kind && result) __defProp(target, key, result);
|
|
19
20
|
return result;
|
|
20
21
|
};
|
|
22
|
+
const cvaAccordion = classVarianceAuthority.cva(["w-full"], {
|
|
23
|
+
variants: {
|
|
24
|
+
border: {
|
|
25
|
+
vertical: ["border-y border-ddt-color-divider"],
|
|
26
|
+
all: ["border border-ddt-color-divider"],
|
|
27
|
+
none: []
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
21
31
|
exports.DaikinAccordion = class DaikinAccordion extends ddsElement.DDSElement {
|
|
22
32
|
constructor() {
|
|
23
33
|
super(...arguments);
|
|
34
|
+
this.border = "vertical";
|
|
24
35
|
this.openItems = [];
|
|
25
36
|
this.exclusive = false;
|
|
26
37
|
}
|
|
@@ -51,7 +62,7 @@ exports.DaikinAccordion = class DaikinAccordion extends ddsElement.DDSElement {
|
|
|
51
62
|
}
|
|
52
63
|
}
|
|
53
64
|
render() {
|
|
54
|
-
return lit.html`<div class
|
|
65
|
+
return lit.html`<div class=${cvaAccordion({ border: this.border })}>
|
|
55
66
|
<slot
|
|
56
67
|
@accordion-move-focus=${this._handleMoveFocus}
|
|
57
68
|
@toggle=${this._handleToggle}
|
|
@@ -67,15 +78,27 @@ exports.DaikinAccordion.styles = lit.css`
|
|
|
67
78
|
min-width: 10rem;
|
|
68
79
|
}
|
|
69
80
|
|
|
70
|
-
::slotted(daikin-accordion-item) {
|
|
81
|
+
:host(:not([border="none"])) ::slotted(daikin-accordion-item) {
|
|
71
82
|
--divider-top-display: block;
|
|
72
|
-
--divider-bottom-display: none;
|
|
73
83
|
}
|
|
74
84
|
|
|
75
|
-
::slotted(daikin-accordion-item:
|
|
76
|
-
--divider-
|
|
85
|
+
:host(:not([border="none"])) ::slotted(daikin-accordion-item:first-child) {
|
|
86
|
+
--divider-top-display: none;
|
|
77
87
|
}
|
|
78
88
|
`;
|
|
89
|
+
__decorateClass([
|
|
90
|
+
ddsProperty.property({
|
|
91
|
+
type: String,
|
|
92
|
+
reflect: true,
|
|
93
|
+
attribute: "border",
|
|
94
|
+
fallbackValue: "vertical",
|
|
95
|
+
isAllowedValue: ddsProperty.oneOf([
|
|
96
|
+
"vertical",
|
|
97
|
+
"all",
|
|
98
|
+
"none"
|
|
99
|
+
])
|
|
100
|
+
})
|
|
101
|
+
], exports.DaikinAccordion.prototype, "border", 2);
|
|
79
102
|
__decorateClass([
|
|
80
103
|
ddsProperty.property({ type: Array, attribute: false })
|
|
81
104
|
], exports.DaikinAccordion.prototype, "openItems", 2);
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { DDSElement } from "../../base/index.cjs";
|
|
2
|
+
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
|
+
declare const cvaAccordion: (props?: ({
|
|
4
|
+
border?: "vertical" | "all" | "none" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
type AccordionVariantProps = MergeVariantProps<typeof cvaAccordion>;
|
|
2
7
|
/**
|
|
3
8
|
* The accordion component serves as the parent element that organizes and manages the overall structure of the accordion.
|
|
4
9
|
* Currently it only provides appropriate styles for individual accordion items.
|
|
@@ -34,6 +39,15 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
34
39
|
*/
|
|
35
40
|
export declare class DaikinAccordion extends DDSElement {
|
|
36
41
|
static readonly styles: import('lit').CSSResult;
|
|
42
|
+
/**
|
|
43
|
+
* The border type of the accordion.
|
|
44
|
+
* - `vertical`: Display the top and bottom border style.
|
|
45
|
+
* - `all`: Box border style.
|
|
46
|
+
* - `none`: No border style.
|
|
47
|
+
*
|
|
48
|
+
* @default "vertical"
|
|
49
|
+
*/
|
|
50
|
+
border: AccordionVariantProps["border"];
|
|
37
51
|
/**
|
|
38
52
|
* A list of the names of the open items.
|
|
39
53
|
* If `exclusive` is true, the number of elements is 0 or 1.
|
|
@@ -30,13 +30,13 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
30
30
|
"p-3",
|
|
31
31
|
"natural-break",
|
|
32
32
|
"text-left",
|
|
33
|
-
"focus-visible:outline",
|
|
33
|
+
"focus-visible:outline-solid",
|
|
34
34
|
"focus-visible:outline-2",
|
|
35
35
|
"focus-visible:-outline-offset-2",
|
|
36
36
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
37
37
|
"after:size-6",
|
|
38
38
|
"after:transition-all",
|
|
39
|
-
"after:
|
|
39
|
+
"after:icon-[daikin--chevron-down]",
|
|
40
40
|
"after:flex-none"
|
|
41
41
|
],
|
|
42
42
|
{
|
|
@@ -59,7 +59,7 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
const cvaContent = classVarianceAuthority.cva(["grid", "duration-
|
|
62
|
+
const cvaContent = classVarianceAuthority.cva(["grid", "duration-250", "ease-in-out"], {
|
|
63
63
|
variants: {
|
|
64
64
|
open: {
|
|
65
65
|
false: ["grid-rows-[0fr]"],
|
|
@@ -128,7 +128,7 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends ddsElement.DDSEl
|
|
|
128
128
|
role="region"
|
|
129
129
|
class=${cvaContent({ open })}
|
|
130
130
|
aria-labelledby="summary"
|
|
131
|
-
?
|
|
131
|
+
?inert=${!open}
|
|
132
132
|
>
|
|
133
133
|
<div class="overflow-hidden">
|
|
134
134
|
<div class="pt-2 px-3 pb-3">
|
|
@@ -28,7 +28,7 @@ const cvaWrapper = classVarianceAuthority.cva(
|
|
|
28
28
|
"overflow-hidden",
|
|
29
29
|
"box-border",
|
|
30
30
|
"size-full",
|
|
31
|
-
"focus-visible:outline",
|
|
31
|
+
"focus-visible:outline-solid",
|
|
32
32
|
"focus-visible:outline-2",
|
|
33
33
|
"focus-visible:outline-offset-2",
|
|
34
34
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
@@ -53,10 +53,10 @@ const cvaWrapper = classVarianceAuthority.cva(
|
|
|
53
53
|
link: [
|
|
54
54
|
"link-enabled:bg-ddt-color-common-neutral-default",
|
|
55
55
|
"link-enabled:text-ddt-color-common-surface-default",
|
|
56
|
-
"link-enabled:
|
|
57
|
-
"link-enabled:
|
|
58
|
-
"link-enabled:
|
|
59
|
-
"link-enabled:
|
|
56
|
+
"hover:link-enabled:bg-ddt-color-common-neutral-hover",
|
|
57
|
+
"hover:link-enabled:text-ddt-color-common-surface-hover",
|
|
58
|
+
"active:link-enabled:bg-ddt-color-common-neutral-press",
|
|
59
|
+
"active:link-enabled:text-ddt-color-common-surface-press",
|
|
60
60
|
"link-disabled:bg-ddt-color-common-disabled",
|
|
61
61
|
"link-disabled:text-ddt-color-common-surface-default"
|
|
62
62
|
]
|
|
@@ -78,10 +78,28 @@ exports.DaikinAvatar = class DaikinAvatar extends ddsElement.DDSElement {
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* _Internal use._
|
|
83
|
+
* Returns the navigation target information.
|
|
84
|
+
* Used by navigation handling utilities.
|
|
85
|
+
*
|
|
86
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
87
|
+
*
|
|
88
|
+
* @private
|
|
89
|
+
*/
|
|
90
|
+
getDDSNavigationTarget() {
|
|
91
|
+
if (this.href == null || this.disabled || this.type !== "link") {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
href: this.href,
|
|
96
|
+
target: null
|
|
97
|
+
};
|
|
98
|
+
}
|
|
81
99
|
render() {
|
|
82
100
|
const icon = lit.html`
|
|
83
101
|
<span
|
|
84
|
-
class="
|
|
102
|
+
class="icon-[daikin--profile] size-10"
|
|
85
103
|
>
|
|
86
104
|
</span>
|
|
87
105
|
</daikin-icon>`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.cjs";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.cjs";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
3
|
declare const cvaWrapper: (props?: ({
|
|
4
4
|
type?: "button" | "icon" | "link" | null | undefined;
|
|
@@ -19,7 +19,7 @@ type AvatarVariantProps = MergeVariantProps<typeof cvaWrapper>;
|
|
|
19
19
|
* <daikin-avatar></daikin-avatar>
|
|
20
20
|
* ```
|
|
21
21
|
*/
|
|
22
|
-
export declare class DaikinAvatar extends DDSElement {
|
|
22
|
+
export declare class DaikinAvatar extends DDSElement implements DDSNavigable {
|
|
23
23
|
static readonly styles: import('lit').CSSResult;
|
|
24
24
|
/**
|
|
25
25
|
* Replace the wrapping element.
|
|
@@ -52,8 +52,18 @@ export declare class DaikinAvatar extends DDSElement {
|
|
|
52
52
|
* When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
|
|
53
53
|
*/
|
|
54
54
|
avatarAriaExpanded: "true" | "false" | "undefined" | null;
|
|
55
|
-
private _focusableElement;
|
|
55
|
+
private readonly _focusableElement;
|
|
56
56
|
constructor();
|
|
57
|
+
/**
|
|
58
|
+
* _Internal use._
|
|
59
|
+
* Returns the navigation target information.
|
|
60
|
+
* Used by navigation handling utilities.
|
|
61
|
+
*
|
|
62
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
63
|
+
*
|
|
64
|
+
* @private
|
|
65
|
+
*/
|
|
66
|
+
getDDSNavigationTarget(): NavigationTarget | null;
|
|
57
67
|
render(): import('lit-html').TemplateResult<1>;
|
|
58
68
|
/**
|
|
59
69
|
* Focuses on the inner button or link.
|
|
@@ -32,8 +32,8 @@ const cvaBadge = classVarianceAuthority.cva(["absolute", "rounded-full"], {
|
|
|
32
32
|
"flex",
|
|
33
33
|
"items-center",
|
|
34
34
|
"justify-center",
|
|
35
|
-
"-top-
|
|
36
|
-
"-right-
|
|
35
|
+
"-top-0.5",
|
|
36
|
+
"-right-0.5",
|
|
37
37
|
"before:content-[attr(data-count)]",
|
|
38
38
|
"before:leading-none",
|
|
39
39
|
"before:whitespace-nowrap",
|
|
@@ -70,11 +70,6 @@ exports.DaikinBreadcrumb = class DaikinBreadcrumb extends ddsElement.DDSElement
|
|
|
70
70
|
};
|
|
71
71
|
exports.DaikinBreadcrumb.styles = lit.css`
|
|
72
72
|
${lit.unsafeCSS(tailwind.default)}
|
|
73
|
-
|
|
74
|
-
:host {
|
|
75
|
-
padding-top: 0.25rem;
|
|
76
|
-
padding-bottom: 0.25rem;
|
|
77
|
-
}
|
|
78
73
|
`;
|
|
79
74
|
__decorateClass([
|
|
80
75
|
ddsProperty.property({ type: Boolean, reflect: true, attribute: "show-visited" })
|
|
@@ -31,7 +31,7 @@ const LINK_CLASS_NAME = classVarianceAuthority.cva([
|
|
|
31
31
|
"hover:bg-ddt-color-common-surface-brand-hover",
|
|
32
32
|
"active:text-ddt-color-link-text-press",
|
|
33
33
|
"active:bg-ddt-color-common-surface-brand-press",
|
|
34
|
-
"focus-visible:outline",
|
|
34
|
+
"focus-visible:outline-solid",
|
|
35
35
|
"focus-visible:outline-2",
|
|
36
36
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
37
37
|
"focus-visible:outline-offset-2"
|
|
@@ -43,6 +43,26 @@ exports.DaikinBreadcrumbItem = class DaikinBreadcrumbItem extends ddsElement.DDS
|
|
|
43
43
|
this.target = null;
|
|
44
44
|
this.showVisited = false;
|
|
45
45
|
this.appendDivider = false;
|
|
46
|
+
this.breadcrumbAriaHaspopup = null;
|
|
47
|
+
this.breadcrumbAriaExpanded = null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* _Internal use._
|
|
51
|
+
* Returns the navigation target information.
|
|
52
|
+
* Used by navigation handling utilities.
|
|
53
|
+
*
|
|
54
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
55
|
+
*
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
getDDSNavigationTarget() {
|
|
59
|
+
if (this.href == null || this.variant !== "normal") {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
href: this.href,
|
|
64
|
+
target: this.target
|
|
65
|
+
};
|
|
46
66
|
}
|
|
47
67
|
render() {
|
|
48
68
|
const link = this.variant === "normal" ? lit.html`<daikin-link
|
|
@@ -56,6 +76,8 @@ exports.DaikinBreadcrumbItem = class DaikinBreadcrumbItem extends ddsElement.DDS
|
|
|
56
76
|
type="button"
|
|
57
77
|
class=${LINK_CLASS_NAME}
|
|
58
78
|
aria-label="Show more items"
|
|
79
|
+
aria-haspopup=${ifDefined_js.ifDefined(this.breadcrumbAriaHaspopup)}
|
|
80
|
+
aria-expanded=${ifDefined_js.ifDefined(this.breadcrumbAriaExpanded)}
|
|
59
81
|
>
|
|
60
82
|
...
|
|
61
83
|
</button>` : lit.html`<a
|
|
@@ -102,6 +124,20 @@ __decorateClass([
|
|
|
102
124
|
__decorateClass([
|
|
103
125
|
ddsProperty.property({ type: Boolean, reflect: true, attribute: "append-divider" })
|
|
104
126
|
], exports.DaikinBreadcrumbItem.prototype, "appendDivider", 2);
|
|
127
|
+
__decorateClass([
|
|
128
|
+
ddsProperty.property({
|
|
129
|
+
type: String,
|
|
130
|
+
reflect: true,
|
|
131
|
+
attribute: "breadcrumb-aria-haspopup"
|
|
132
|
+
})
|
|
133
|
+
], exports.DaikinBreadcrumbItem.prototype, "breadcrumbAriaHaspopup", 2);
|
|
134
|
+
__decorateClass([
|
|
135
|
+
ddsProperty.property({
|
|
136
|
+
type: String,
|
|
137
|
+
reflect: true,
|
|
138
|
+
attribute: "breadcrumb-aria-expanded"
|
|
139
|
+
})
|
|
140
|
+
], exports.DaikinBreadcrumbItem.prototype, "breadcrumbAriaExpanded", 2);
|
|
105
141
|
exports.DaikinBreadcrumbItem = __decorateClass([
|
|
106
142
|
decorators.ddsElement("daikin-breadcrumb-item")
|
|
107
143
|
], exports.DaikinBreadcrumbItem);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.cjs";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The `daikin-breadcrumb-item` is a component used to represent each item of the breadcrumb list, and is used as a child element of the `daikin-breadcrumb` component.
|
|
4
4
|
*
|
|
@@ -20,8 +20,8 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
20
20
|
* </daikin-breadcrumb-item>
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
export declare class DaikinBreadcrumbItem extends DDSElement {
|
|
24
|
-
static styles: import('lit').CSSResult;
|
|
23
|
+
export declare class DaikinBreadcrumbItem extends DDSElement implements DDSNavigable {
|
|
24
|
+
static readonly styles: import('lit').CSSResult;
|
|
25
25
|
/**
|
|
26
26
|
* Specify link href.
|
|
27
27
|
*/
|
|
@@ -51,6 +51,26 @@ export declare class DaikinBreadcrumbItem extends DDSElement {
|
|
|
51
51
|
* @private
|
|
52
52
|
*/
|
|
53
53
|
appendDivider: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The aria-haspopup of the breadcrumb item when `variant="ellipsis"`.
|
|
56
|
+
* When used within a daikin-menu component, this property is automatically assigned the value `breadcrumbAriaHaspopup="menu"`.
|
|
57
|
+
*/
|
|
58
|
+
breadcrumbAriaHaspopup: "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | null;
|
|
59
|
+
/**
|
|
60
|
+
* The aria-expanded of breadcrumb item when `variant="ellipsis"`.
|
|
61
|
+
* When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
|
|
62
|
+
*/
|
|
63
|
+
breadcrumbAriaExpanded: "true" | "false" | "undefined" | null;
|
|
64
|
+
/**
|
|
65
|
+
* _Internal use._
|
|
66
|
+
* Returns the navigation target information.
|
|
67
|
+
* Used by navigation handling utilities.
|
|
68
|
+
*
|
|
69
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
70
|
+
*
|
|
71
|
+
* @private
|
|
72
|
+
*/
|
|
73
|
+
getDDSNavigationTarget(): NavigationTarget | null;
|
|
54
74
|
render(): import('lit-html').TemplateResult<1>;
|
|
55
75
|
}
|
|
56
76
|
declare global {
|
|
@@ -28,44 +28,44 @@ const cvaButton = classVarianceAuthority.cva(
|
|
|
28
28
|
"size-full",
|
|
29
29
|
"font-daikinSerif",
|
|
30
30
|
"font-bold",
|
|
31
|
-
"rounded",
|
|
31
|
+
"rounded-sm",
|
|
32
32
|
"tracking-wide",
|
|
33
33
|
"text-nowrap",
|
|
34
34
|
"leading-[130%]",
|
|
35
|
-
"focus-visible:outline",
|
|
35
|
+
"focus-visible:outline-solid",
|
|
36
36
|
"focus-visible:outline-2",
|
|
37
37
|
"focus-visible:outline-offset-2",
|
|
38
38
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
39
|
-
"
|
|
40
|
-
"link-disabled:
|
|
39
|
+
"[--color-secondary:transparent]",
|
|
40
|
+
"link-disabled:[--color-primary:var(--dds-color-common-disabled)]"
|
|
41
41
|
],
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
44
|
color: {
|
|
45
45
|
default: [
|
|
46
|
-
"link-enabled:
|
|
47
|
-
"link-enabled:
|
|
48
|
-
"link-enabled:
|
|
49
|
-
"link-enabled:
|
|
50
|
-
"link-enabled:
|
|
46
|
+
"link-enabled:[--color-primary:var(--dds-color-common-brand-default)]",
|
|
47
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-brand-hover)]",
|
|
48
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-hover)]",
|
|
49
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-brand-press)]",
|
|
50
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-press)]"
|
|
51
51
|
],
|
|
52
52
|
danger: [
|
|
53
|
-
"link-enabled:
|
|
54
|
-
"link-enabled:
|
|
55
|
-
"link-enabled:
|
|
56
|
-
"link-enabled:
|
|
57
|
-
"link-enabled:
|
|
53
|
+
"link-enabled:[--color-primary:var(--dds-color-common-danger-default)]",
|
|
54
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-danger-hover)]",
|
|
55
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-danger-hover)]",
|
|
56
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-danger-press)]",
|
|
57
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-danger-press)]"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
variant: {
|
|
61
|
-
fill: ["text-ddt-color-common-text-inverse", "bg-
|
|
61
|
+
fill: ["text-ddt-color-common-text-inverse", "bg-(--color-primary)"],
|
|
62
62
|
outline: [
|
|
63
63
|
"border",
|
|
64
|
-
"text-
|
|
65
|
-
"bg-
|
|
66
|
-
"border-
|
|
64
|
+
"text-(--color-primary)",
|
|
65
|
+
"bg-(--color-secondary)",
|
|
66
|
+
"border-(--color-primary)"
|
|
67
67
|
],
|
|
68
|
-
ghost: ["text-
|
|
68
|
+
ghost: ["text-(--color-primary)", "bg-(--color-secondary)"]
|
|
69
69
|
},
|
|
70
70
|
size: {
|
|
71
71
|
small: ["px-2", "text-sm"],
|
|
@@ -104,6 +104,24 @@ exports.DaikinButton = class DaikinButton extends ddsFormElement.DDSFormSubmitEl
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* _Internal use._
|
|
109
|
+
* Returns the navigation target information.
|
|
110
|
+
* Used by navigation handling utilities.
|
|
111
|
+
*
|
|
112
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
113
|
+
*
|
|
114
|
+
* @private
|
|
115
|
+
*/
|
|
116
|
+
getDDSNavigationTarget() {
|
|
117
|
+
if (this.href == null || this.disabled || this.type !== "link") {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
href: this.href,
|
|
122
|
+
target: null
|
|
123
|
+
};
|
|
124
|
+
}
|
|
107
125
|
render() {
|
|
108
126
|
const className = cvaButton({
|
|
109
127
|
variant: this.variant,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSFormSubmitElement } from "../../base/index.cjs";
|
|
1
|
+
import { DDSFormSubmitElement, DDSNavigable, NavigationTarget } from "../../base/index.cjs";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.cjs";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
4
4
|
declare const cvaButton: (props?: ({
|
|
@@ -35,7 +35,7 @@ type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
|
|
|
35
35
|
* </daikin-button>
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
-
export declare class DaikinButton extends DDSFormSubmitElement {
|
|
38
|
+
export declare class DaikinButton extends DDSFormSubmitElement implements DDSNavigable {
|
|
39
39
|
static readonly styles: import('lit').CSSResult;
|
|
40
40
|
/**
|
|
41
41
|
* Variant of the button.
|
|
@@ -91,8 +91,18 @@ export declare class DaikinButton extends DDSFormSubmitElement {
|
|
|
91
91
|
* This is useful when the button is part of a composite widget and accessible via other keys.
|
|
92
92
|
*/
|
|
93
93
|
buttonTabIndex: number;
|
|
94
|
-
private _focusableElement;
|
|
94
|
+
private readonly _focusableElement;
|
|
95
95
|
constructor();
|
|
96
|
+
/**
|
|
97
|
+
* _Internal use._
|
|
98
|
+
* Returns the navigation target information.
|
|
99
|
+
* Used by navigation handling utilities.
|
|
100
|
+
*
|
|
101
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
102
|
+
*
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
getDDSNavigationTarget(): NavigationTarget | null;
|
|
96
106
|
render(): import('lit-html').TemplateResult<1>;
|
|
97
107
|
/**
|
|
98
108
|
* Focuses on the inner button or link.
|
|
@@ -54,18 +54,18 @@ const cvaContentButton = classVarianceAuthority.cva(
|
|
|
54
54
|
"justify-center",
|
|
55
55
|
"rounded-full",
|
|
56
56
|
"text-sm",
|
|
57
|
-
"outline",
|
|
57
|
+
"outline-solid",
|
|
58
58
|
"outline-2",
|
|
59
59
|
"outline-offset-2",
|
|
60
60
|
"outline-transparent",
|
|
61
61
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
62
|
-
"enabled:bg-
|
|
62
|
+
"enabled:bg-(--color-primary)",
|
|
63
63
|
"disabled:text-ddt-color-common-disabled"
|
|
64
64
|
],
|
|
65
65
|
{
|
|
66
66
|
variants: {
|
|
67
67
|
date: {
|
|
68
|
-
false: ["w-[calc((100
|
|
68
|
+
false: ["w-[calc((100%-3rem)/3)]", "h-8", "px-2"],
|
|
69
69
|
true: ["size-8"]
|
|
70
70
|
},
|
|
71
71
|
variant: {
|
|
@@ -73,14 +73,14 @@ const cvaContentButton = classVarianceAuthority.cva(
|
|
|
73
73
|
"enabled:text-ddt-color-common-neutral-default",
|
|
74
74
|
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
75
75
|
"enabled:active:text-ddt-color-common-neutral-press",
|
|
76
|
-
"enabled:hover:
|
|
77
|
-
"enabled:active:
|
|
76
|
+
"enabled:hover:[--color-primary:var(--dds-color-common-surface-neutral-hover)]",
|
|
77
|
+
"enabled:active:[--color-primary:var(--dds-color-common-surface-neutral-press)]"
|
|
78
78
|
],
|
|
79
79
|
selected: [
|
|
80
80
|
"enabled:text-ddt-color-common-text-inverse",
|
|
81
|
-
"
|
|
82
|
-
"hover:
|
|
83
|
-
"active:
|
|
81
|
+
"[--color-primary:var(--dds-color-common-brand-default)]",
|
|
82
|
+
"hover:[--color-primary:var(--dds-color-common-brand-hover)]",
|
|
83
|
+
"active:[--color-primary:var(--dds-color-common-brand-press)]"
|
|
84
84
|
],
|
|
85
85
|
today: [
|
|
86
86
|
"enabled:text-ddt-color-common-neutral-default",
|
|
@@ -88,15 +88,15 @@ const cvaContentButton = classVarianceAuthority.cva(
|
|
|
88
88
|
"enabled:active:text-ddt-color-common-neutral-press",
|
|
89
89
|
"enabled:border",
|
|
90
90
|
"enabled:border-ddt-color-common-neutral-default",
|
|
91
|
-
"enabled:hover:
|
|
92
|
-
"enabled:active:
|
|
91
|
+
"enabled:hover:[--color-primary:var(--dds-color-common-surface-neutral-hover)]",
|
|
92
|
+
"enabled:active:[--color-primary:var(--dds-color-common-surface-neutral-press)]"
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
98
|
function getToday() {
|
|
99
|
-
return calendarCommon.
|
|
99
|
+
return calendarCommon.parseDateFromProperty(calendarCommon.getTodayForProperty());
|
|
100
100
|
}
|
|
101
101
|
function getNextFocusDateByKey(date, event) {
|
|
102
102
|
const cloned = calendarCommon.cloneDate(date);
|
|
@@ -450,7 +450,7 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
|
450
450
|
day: this._createDatePicker
|
|
451
451
|
}[view].call(this, renderState);
|
|
452
452
|
return lit.html`<div
|
|
453
|
-
class="flex items-stretch flex-col gap-2 w-
|
|
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 font-daikinSerif"
|
|
454
454
|
>
|
|
455
455
|
<div class="flex justify-between items-center pl-4 pr-3">
|
|
456
456
|
<div class="flex items-center gap-2">
|
|
@@ -5,6 +5,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
5
5
|
* Hierarchy:
|
|
6
6
|
* - `daikin-card` > `daikin-card-header`
|
|
7
7
|
* - `daikin-card` > `daikin-card-footer`
|
|
8
|
+
* - `daikin-card` > `daikin-empty-state`
|
|
8
9
|
*
|
|
9
10
|
* @slot - A slot for card header, body, card footer. Place `daikin-card-header`, custom body content, `daikin-card-footer` here in order.
|
|
10
11
|
*
|
|
@@ -35,8 +35,8 @@ const cvaButton = classVarianceAuthority.cva(
|
|
|
35
35
|
{
|
|
36
36
|
variants: {
|
|
37
37
|
intent: {
|
|
38
|
-
previous: ["
|
|
39
|
-
next: ["
|
|
38
|
+
previous: ["icon-[daikin--chevron-left]"],
|
|
39
|
+
next: ["icon-[daikin--chevron-right]"]
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -58,7 +58,7 @@ const INDICATOR_CLASS_NAME = classVarianceAuthority.cva([
|
|
|
58
58
|
"aria-selected:after:bg-ddt-color-common-brand-default",
|
|
59
59
|
"aria-selected:after:absolute",
|
|
60
60
|
"aria-selected:after:rounded-full",
|
|
61
|
-
"aria-selected:focus-visible:after:outline",
|
|
61
|
+
"aria-selected:focus-visible:after:outline-solid",
|
|
62
62
|
"aria-selected:focus-visible:after:outline-1",
|
|
63
63
|
"aria-selected:focus-visible:after:outline-offset-1",
|
|
64
64
|
"aria-selected:focus-visible:after:outline-ddt-color-common-border-focus"
|
|
@@ -145,11 +145,11 @@ exports.DaikinCarousel = class DaikinCarousel extends ddsElement.DDSElement {
|
|
|
145
145
|
<span class=${cvaButton({ intent: "previous" })}></span>
|
|
146
146
|
</daikin-icon-button>
|
|
147
147
|
<div
|
|
148
|
-
class="w-full overflow-clip relative focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-ddt-color-common-border-focus
|
|
148
|
+
class="w-full overflow-clip relative focus-within:outline-solid focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-ddt-color-common-border-focus @container"
|
|
149
149
|
aria-live="polite"
|
|
150
150
|
>
|
|
151
151
|
<div
|
|
152
|
-
class="flex w-[calc(100cqw*var(--total))] transition-transform translate-x-[calc(-100%*var(--current)/var(--total))] duration-
|
|
152
|
+
class="flex w-[calc(100cqw*var(--total))] transition-transform translate-x-[calc(-100%*var(--current)/var(--total))] duration-(--ddc-transition-duration)"
|
|
153
153
|
>
|
|
154
154
|
<slot
|
|
155
155
|
class="slotted:w-[calc(100%/var(--total))]"
|