@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
|
@@ -8,10 +8,10 @@ const cvaIconButton = classVarianceAuthority.cva(
|
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
intent: {
|
|
11
|
-
previous: ["size-5", "
|
|
12
|
-
next: ["size-5", "
|
|
13
|
-
calender: ["size-6", "
|
|
14
|
-
pulldown: ["size-6", "
|
|
11
|
+
previous: ["size-5", "icon-[daikin--chevron-left]"],
|
|
12
|
+
next: ["size-5", "icon-[daikin--chevron-right]"],
|
|
13
|
+
calender: ["size-6", "icon-[daikin--calendar]"],
|
|
14
|
+
pulldown: ["size-6", "icon-[daikin--pulldown-down]"]
|
|
15
15
|
},
|
|
16
16
|
rotate: {
|
|
17
17
|
default: [],
|
|
@@ -41,15 +41,19 @@ function isSameYearMonth(a, b) {
|
|
|
41
41
|
function formatDateForProperty(date) {
|
|
42
42
|
return `${String(date.getUTCFullYear()).padStart(4, "0")}-${String(date.getUTCMonth() + 1).padStart(2, "0")}-${String(date.getUTCDate()).padStart(2, "0")}`;
|
|
43
43
|
}
|
|
44
|
+
function getTodayForProperty() {
|
|
45
|
+
const date = /* @__PURE__ */ new Date();
|
|
46
|
+
return `${String(date.getFullYear()).padStart(4, "0")}-${String(date.getMonth() + 1).padStart(2, "0")}-${String(date.getDate()).padStart(2, "0")}`;
|
|
47
|
+
}
|
|
44
48
|
function parseDateFromProperty(value) {
|
|
45
|
-
return new Date(value);
|
|
49
|
+
return /* @__PURE__ */ new Date(`${value}T00:00:00Z`);
|
|
46
50
|
}
|
|
47
51
|
function tryParseDateFromProperty(value) {
|
|
48
52
|
if (!/^\d\d\d\d-\d\d-\d\d$/.test(value)) {
|
|
49
53
|
return null;
|
|
50
54
|
}
|
|
51
|
-
const date = new Date(value);
|
|
52
|
-
if (isNaN(date.getTime())) {
|
|
55
|
+
const date = /* @__PURE__ */ new Date(`${value}T00:00:00Z`);
|
|
56
|
+
if (Number.isNaN(date.getTime())) {
|
|
53
57
|
return null;
|
|
54
58
|
}
|
|
55
59
|
return date;
|
|
@@ -78,7 +82,7 @@ function createDateClamped(year, month, date) {
|
|
|
78
82
|
return newDate;
|
|
79
83
|
}
|
|
80
84
|
function getDateByMonthOffsetClamped(base, monthOffset) {
|
|
81
|
-
const newDate = new Date(base
|
|
85
|
+
const newDate = new Date(base);
|
|
82
86
|
const expectedMonth = ((base.getUTCMonth() + monthOffset) % 12 + 12) % 12;
|
|
83
87
|
newDate.setUTCMonth(base.getUTCMonth() + monthOffset);
|
|
84
88
|
if (newDate.getUTCMonth() !== expectedMonth) {
|
|
@@ -90,8 +94,8 @@ function calcWeeksOnCalendar(year, month) {
|
|
|
90
94
|
const firstDateOfMonth = createDateClamped(year, month, 1);
|
|
91
95
|
const lastDateOfMonth = createDateClamped(year, month, 31);
|
|
92
96
|
const currentMonthDates = lastDateOfMonth.getUTCDate() - firstDateOfMonth.getUTCDate() + 1;
|
|
93
|
-
const prevMonthDates = firstDateOfMonth.
|
|
94
|
-
const nextMonthDates = 6 - lastDateOfMonth.
|
|
97
|
+
const prevMonthDates = firstDateOfMonth.getUTCDay();
|
|
98
|
+
const nextMonthDates = 6 - lastDateOfMonth.getUTCDay();
|
|
95
99
|
const dates = [
|
|
96
100
|
// Days of the previous month to fill columns
|
|
97
101
|
Array.from({ length: prevMonthDates }, (_, index) => {
|
|
@@ -148,6 +152,7 @@ exports.createDateClamped = createDateClamped;
|
|
|
148
152
|
exports.cvaIconButton = cvaIconButton;
|
|
149
153
|
exports.formatDateForProperty = formatDateForProperty;
|
|
150
154
|
exports.getDateByMonthOffsetClamped = getDateByMonthOffsetClamped;
|
|
155
|
+
exports.getTodayForProperty = getTodayForProperty;
|
|
151
156
|
exports.isDateOutOfRange = isDateOutOfRange;
|
|
152
157
|
exports.isMonthOutOfRange = isMonthOutOfRange;
|
|
153
158
|
exports.isSameYearMonth = isSameYearMonth;
|
|
@@ -17,15 +17,20 @@ export declare function isMonthOutOfRange(base: Date, min: Date, max: Date): boo
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function isSameYearMonth(a: Date, b: Date): boolean;
|
|
19
19
|
/**
|
|
20
|
-
* Stringify the date in YYYY-MM-DD format.
|
|
20
|
+
* Stringify the _UTC_ date in YYYY-MM-DD format.
|
|
21
21
|
*/
|
|
22
22
|
export declare function formatDateForProperty(date: Date): string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Returns today's date as a string in the format 'YYYY-MM-DD'.
|
|
25
|
+
* Uses _local_ timezone to determine the current date.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getTodayForProperty(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Parses the date in YYYY-MM-DD format and returns _UTC_ date.
|
|
25
30
|
*/
|
|
26
31
|
export declare function parseDateFromProperty(value: string): Date;
|
|
27
32
|
/**
|
|
28
|
-
* Try parsing the date in YYYY-MM-DD format and returns
|
|
33
|
+
* Try parsing the date in YYYY-MM-DD format and returns _UTC_ date if available.
|
|
29
34
|
*/
|
|
30
35
|
export declare function tryParseDateFromProperty(value: string): Date | null;
|
|
31
36
|
/**
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
export declare const TOAST_ANIMATION_DURATION = 200;
|
|
3
3
|
export declare function formatDate(date: Date): string | null;
|
|
4
4
|
export declare const cvaTimestamp: (props?: ({
|
|
5
|
-
layout?: "
|
|
5
|
+
layout?: "vertical" | "horizontal" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -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
|
+
}
|
package/dist/es/base/index.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { DDSElement } from "../../base/index.js";
|
|
2
|
+
import { MergeVariantProps } from "../../type-utils.js";
|
|
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.js";
|
|
|
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.
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
1
2
|
import { unsafeCSS, css, html } from "lit";
|
|
2
3
|
import { queryAssignedElements } from "lit/decorators.js";
|
|
3
4
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
5
|
import "../../base/dds-form-element.js";
|
|
5
|
-
import { property } from "../../base/dds-property.js";
|
|
6
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
6
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
8
|
import "../../base/define.js";
|
|
8
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -16,9 +17,19 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
16
17
|
if (kind && result) __defProp(target, key, result);
|
|
17
18
|
return result;
|
|
18
19
|
};
|
|
20
|
+
const cvaAccordion = cva(["w-full"], {
|
|
21
|
+
variants: {
|
|
22
|
+
border: {
|
|
23
|
+
vertical: ["border-y border-ddt-color-divider"],
|
|
24
|
+
all: ["border border-ddt-color-divider"],
|
|
25
|
+
none: []
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
19
29
|
let DaikinAccordion = class extends DDSElement {
|
|
20
30
|
constructor() {
|
|
21
31
|
super(...arguments);
|
|
32
|
+
this.border = "vertical";
|
|
22
33
|
this.openItems = [];
|
|
23
34
|
this.exclusive = false;
|
|
24
35
|
}
|
|
@@ -49,7 +60,7 @@ let DaikinAccordion = class extends DDSElement {
|
|
|
49
60
|
}
|
|
50
61
|
}
|
|
51
62
|
render() {
|
|
52
|
-
return html`<div class
|
|
63
|
+
return html`<div class=${cvaAccordion({ border: this.border })}>
|
|
53
64
|
<slot
|
|
54
65
|
@accordion-move-focus=${this._handleMoveFocus}
|
|
55
66
|
@toggle=${this._handleToggle}
|
|
@@ -65,15 +76,27 @@ DaikinAccordion.styles = css`
|
|
|
65
76
|
min-width: 10rem;
|
|
66
77
|
}
|
|
67
78
|
|
|
68
|
-
::slotted(daikin-accordion-item) {
|
|
79
|
+
:host(:not([border="none"])) ::slotted(daikin-accordion-item) {
|
|
69
80
|
--divider-top-display: block;
|
|
70
|
-
--divider-bottom-display: none;
|
|
71
81
|
}
|
|
72
82
|
|
|
73
|
-
::slotted(daikin-accordion-item:
|
|
74
|
-
--divider-
|
|
83
|
+
:host(:not([border="none"])) ::slotted(daikin-accordion-item:first-child) {
|
|
84
|
+
--divider-top-display: none;
|
|
75
85
|
}
|
|
76
86
|
`;
|
|
87
|
+
__decorateClass([
|
|
88
|
+
property({
|
|
89
|
+
type: String,
|
|
90
|
+
reflect: true,
|
|
91
|
+
attribute: "border",
|
|
92
|
+
fallbackValue: "vertical",
|
|
93
|
+
isAllowedValue: oneOf([
|
|
94
|
+
"vertical",
|
|
95
|
+
"all",
|
|
96
|
+
"none"
|
|
97
|
+
])
|
|
98
|
+
})
|
|
99
|
+
], DaikinAccordion.prototype, "border", 2);
|
|
77
100
|
__decorateClass([
|
|
78
101
|
property({ type: Array, attribute: false })
|
|
79
102
|
], DaikinAccordion.prototype, "openItems", 2);
|
|
@@ -28,13 +28,13 @@ const cvaSummary = cva(
|
|
|
28
28
|
"p-3",
|
|
29
29
|
"natural-break",
|
|
30
30
|
"text-left",
|
|
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",
|
|
35
35
|
"after:size-6",
|
|
36
36
|
"after:transition-all",
|
|
37
|
-
"after:
|
|
37
|
+
"after:icon-[daikin--chevron-down]",
|
|
38
38
|
"after:flex-none"
|
|
39
39
|
],
|
|
40
40
|
{
|
|
@@ -57,7 +57,7 @@ const cvaSummary = cva(
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
|
-
const cvaContent = cva(["grid", "duration-
|
|
60
|
+
const cvaContent = cva(["grid", "duration-250", "ease-in-out"], {
|
|
61
61
|
variants: {
|
|
62
62
|
open: {
|
|
63
63
|
false: ["grid-rows-[0fr]"],
|
|
@@ -126,7 +126,7 @@ let DaikinAccordionItem = class extends DDSElement {
|
|
|
126
126
|
role="region"
|
|
127
127
|
class=${cvaContent({ open })}
|
|
128
128
|
aria-labelledby="summary"
|
|
129
|
-
?
|
|
129
|
+
?inert=${!open}
|
|
130
130
|
>
|
|
131
131
|
<div class="overflow-hidden">
|
|
132
132
|
<div class="pt-2 px-3 pb-3">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.js";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.js";
|
|
2
2
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
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.
|
|
@@ -26,7 +26,7 @@ const cvaWrapper = cva(
|
|
|
26
26
|
"overflow-hidden",
|
|
27
27
|
"box-border",
|
|
28
28
|
"size-full",
|
|
29
|
-
"focus-visible:outline",
|
|
29
|
+
"focus-visible:outline-solid",
|
|
30
30
|
"focus-visible:outline-2",
|
|
31
31
|
"focus-visible:outline-offset-2",
|
|
32
32
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
@@ -51,10 +51,10 @@ const cvaWrapper = cva(
|
|
|
51
51
|
link: [
|
|
52
52
|
"link-enabled:bg-ddt-color-common-neutral-default",
|
|
53
53
|
"link-enabled:text-ddt-color-common-surface-default",
|
|
54
|
-
"link-enabled:
|
|
55
|
-
"link-enabled:
|
|
56
|
-
"link-enabled:
|
|
57
|
-
"link-enabled:
|
|
54
|
+
"hover:link-enabled:bg-ddt-color-common-neutral-hover",
|
|
55
|
+
"hover:link-enabled:text-ddt-color-common-surface-hover",
|
|
56
|
+
"active:link-enabled:bg-ddt-color-common-neutral-press",
|
|
57
|
+
"active:link-enabled:text-ddt-color-common-surface-press",
|
|
58
58
|
"link-disabled:bg-ddt-color-common-disabled",
|
|
59
59
|
"link-disabled:text-ddt-color-common-surface-default"
|
|
60
60
|
]
|
|
@@ -76,10 +76,28 @@ let DaikinAvatar = class extends DDSElement {
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* _Internal use._
|
|
81
|
+
* Returns the navigation target information.
|
|
82
|
+
* Used by navigation handling utilities.
|
|
83
|
+
*
|
|
84
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
85
|
+
*
|
|
86
|
+
* @private
|
|
87
|
+
*/
|
|
88
|
+
getDDSNavigationTarget() {
|
|
89
|
+
if (this.href == null || this.disabled || this.type !== "link") {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
href: this.href,
|
|
94
|
+
target: null
|
|
95
|
+
};
|
|
96
|
+
}
|
|
79
97
|
render() {
|
|
80
98
|
const icon = html`
|
|
81
99
|
<span
|
|
82
|
-
class="
|
|
100
|
+
class="icon-[daikin--profile] size-10"
|
|
83
101
|
>
|
|
84
102
|
</span>
|
|
85
103
|
</daikin-icon>`;
|
|
@@ -30,8 +30,8 @@ const cvaBadge = cva(["absolute", "rounded-full"], {
|
|
|
30
30
|
"flex",
|
|
31
31
|
"items-center",
|
|
32
32
|
"justify-center",
|
|
33
|
-
"-top-
|
|
34
|
-
"-right-
|
|
33
|
+
"-top-0.5",
|
|
34
|
+
"-right-0.5",
|
|
35
35
|
"before:content-[attr(data-count)]",
|
|
36
36
|
"before:leading-none",
|
|
37
37
|
"before:whitespace-nowrap",
|
|
@@ -68,11 +68,6 @@ let DaikinBreadcrumb = class extends DDSElement {
|
|
|
68
68
|
};
|
|
69
69
|
DaikinBreadcrumb.styles = css`
|
|
70
70
|
${unsafeCSS(tailwindStyles)}
|
|
71
|
-
|
|
72
|
-
:host {
|
|
73
|
-
padding-top: 0.25rem;
|
|
74
|
-
padding-bottom: 0.25rem;
|
|
75
|
-
}
|
|
76
71
|
`;
|
|
77
72
|
__decorateClass([
|
|
78
73
|
property({ type: Boolean, reflect: true, attribute: "show-visited" })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.js";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.js";
|
|
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.js";
|
|
|
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 {
|
|
@@ -29,7 +29,7 @@ const LINK_CLASS_NAME = cva([
|
|
|
29
29
|
"hover:bg-ddt-color-common-surface-brand-hover",
|
|
30
30
|
"active:text-ddt-color-link-text-press",
|
|
31
31
|
"active:bg-ddt-color-common-surface-brand-press",
|
|
32
|
-
"focus-visible:outline",
|
|
32
|
+
"focus-visible:outline-solid",
|
|
33
33
|
"focus-visible:outline-2",
|
|
34
34
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
35
35
|
"focus-visible:outline-offset-2"
|
|
@@ -41,6 +41,26 @@ let DaikinBreadcrumbItem = class extends DDSElement {
|
|
|
41
41
|
this.target = null;
|
|
42
42
|
this.showVisited = false;
|
|
43
43
|
this.appendDivider = false;
|
|
44
|
+
this.breadcrumbAriaHaspopup = null;
|
|
45
|
+
this.breadcrumbAriaExpanded = null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* _Internal use._
|
|
49
|
+
* Returns the navigation target information.
|
|
50
|
+
* Used by navigation handling utilities.
|
|
51
|
+
*
|
|
52
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
53
|
+
*
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
getDDSNavigationTarget() {
|
|
57
|
+
if (this.href == null || this.variant !== "normal") {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
href: this.href,
|
|
62
|
+
target: this.target
|
|
63
|
+
};
|
|
44
64
|
}
|
|
45
65
|
render() {
|
|
46
66
|
const link = this.variant === "normal" ? html`<daikin-link
|
|
@@ -54,6 +74,8 @@ let DaikinBreadcrumbItem = class extends DDSElement {
|
|
|
54
74
|
type="button"
|
|
55
75
|
class=${LINK_CLASS_NAME}
|
|
56
76
|
aria-label="Show more items"
|
|
77
|
+
aria-haspopup=${ifDefined(this.breadcrumbAriaHaspopup)}
|
|
78
|
+
aria-expanded=${ifDefined(this.breadcrumbAriaExpanded)}
|
|
57
79
|
>
|
|
58
80
|
...
|
|
59
81
|
</button>` : html`<a
|
|
@@ -100,6 +122,20 @@ __decorateClass([
|
|
|
100
122
|
__decorateClass([
|
|
101
123
|
property({ type: Boolean, reflect: true, attribute: "append-divider" })
|
|
102
124
|
], DaikinBreadcrumbItem.prototype, "appendDivider", 2);
|
|
125
|
+
__decorateClass([
|
|
126
|
+
property({
|
|
127
|
+
type: String,
|
|
128
|
+
reflect: true,
|
|
129
|
+
attribute: "breadcrumb-aria-haspopup"
|
|
130
|
+
})
|
|
131
|
+
], DaikinBreadcrumbItem.prototype, "breadcrumbAriaHaspopup", 2);
|
|
132
|
+
__decorateClass([
|
|
133
|
+
property({
|
|
134
|
+
type: String,
|
|
135
|
+
reflect: true,
|
|
136
|
+
attribute: "breadcrumb-aria-expanded"
|
|
137
|
+
})
|
|
138
|
+
], DaikinBreadcrumbItem.prototype, "breadcrumbAriaExpanded", 2);
|
|
103
139
|
DaikinBreadcrumbItem = __decorateClass([
|
|
104
140
|
ddsElement("daikin-breadcrumb-item")
|
|
105
141
|
], DaikinBreadcrumbItem);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSFormSubmitElement } from "../../base/index.js";
|
|
1
|
+
import { DDSFormSubmitElement, DDSNavigable, NavigationTarget } from "../../base/index.js";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.js";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
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.
|
|
@@ -26,44 +26,44 @@ const cvaButton = cva(
|
|
|
26
26
|
"size-full",
|
|
27
27
|
"font-daikinSerif",
|
|
28
28
|
"font-bold",
|
|
29
|
-
"rounded",
|
|
29
|
+
"rounded-sm",
|
|
30
30
|
"tracking-wide",
|
|
31
31
|
"text-nowrap",
|
|
32
32
|
"leading-[130%]",
|
|
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
|
-
"
|
|
38
|
-
"link-disabled:
|
|
37
|
+
"[--color-secondary:transparent]",
|
|
38
|
+
"link-disabled:[--color-primary:var(--dds-color-common-disabled)]"
|
|
39
39
|
],
|
|
40
40
|
{
|
|
41
41
|
variants: {
|
|
42
42
|
color: {
|
|
43
43
|
default: [
|
|
44
|
-
"link-enabled:
|
|
45
|
-
"link-enabled:
|
|
46
|
-
"link-enabled:
|
|
47
|
-
"link-enabled:
|
|
48
|
-
"link-enabled:
|
|
44
|
+
"link-enabled:[--color-primary:var(--dds-color-common-brand-default)]",
|
|
45
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-brand-hover)]",
|
|
46
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-hover)]",
|
|
47
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-brand-press)]",
|
|
48
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-press)]"
|
|
49
49
|
],
|
|
50
50
|
danger: [
|
|
51
|
-
"link-enabled:
|
|
52
|
-
"link-enabled:
|
|
53
|
-
"link-enabled:
|
|
54
|
-
"link-enabled:
|
|
55
|
-
"link-enabled:
|
|
51
|
+
"link-enabled:[--color-primary:var(--dds-color-common-danger-default)]",
|
|
52
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-danger-hover)]",
|
|
53
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-danger-hover)]",
|
|
54
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-danger-press)]",
|
|
55
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-danger-press)]"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
variant: {
|
|
59
|
-
fill: ["text-ddt-color-common-text-inverse", "bg-
|
|
59
|
+
fill: ["text-ddt-color-common-text-inverse", "bg-(--color-primary)"],
|
|
60
60
|
outline: [
|
|
61
61
|
"border",
|
|
62
|
-
"text-
|
|
63
|
-
"bg-
|
|
64
|
-
"border-
|
|
62
|
+
"text-(--color-primary)",
|
|
63
|
+
"bg-(--color-secondary)",
|
|
64
|
+
"border-(--color-primary)"
|
|
65
65
|
],
|
|
66
|
-
ghost: ["text-
|
|
66
|
+
ghost: ["text-(--color-primary)", "bg-(--color-secondary)"]
|
|
67
67
|
},
|
|
68
68
|
size: {
|
|
69
69
|
small: ["px-2", "text-sm"],
|
|
@@ -102,6 +102,24 @@ let DaikinButton = class extends DDSFormSubmitElement {
|
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* _Internal use._
|
|
107
|
+
* Returns the navigation target information.
|
|
108
|
+
* Used by navigation handling utilities.
|
|
109
|
+
*
|
|
110
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
111
|
+
*
|
|
112
|
+
* @private
|
|
113
|
+
*/
|
|
114
|
+
getDDSNavigationTarget() {
|
|
115
|
+
if (this.href == null || this.disabled || this.type !== "link") {
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
href: this.href,
|
|
120
|
+
target: null
|
|
121
|
+
};
|
|
122
|
+
}
|
|
105
123
|
render() {
|
|
106
124
|
const className = cvaButton({
|
|
107
125
|
variant: this.variant,
|