@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
|
+
}
|
|
@@ -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
|
}
|
|
@@ -58,7 +69,7 @@ exports.DaikinAccordion = class DaikinAccordion extends ddsElement.DDSElement {
|
|
|
58
69
|
}
|
|
59
70
|
}
|
|
60
71
|
render() {
|
|
61
|
-
return lit.html`<div class
|
|
72
|
+
return lit.html`<div class=${cvaAccordion({ border: this.border })}>
|
|
62
73
|
<slot
|
|
63
74
|
@accordion-move-focus=${this._handleMoveFocus}
|
|
64
75
|
@toggle=${this._handleToggle}
|
|
@@ -74,15 +85,27 @@ exports.DaikinAccordion.styles = lit.css`
|
|
|
74
85
|
min-width: 10rem;
|
|
75
86
|
}
|
|
76
87
|
|
|
77
|
-
::slotted(daikin-accordion-item) {
|
|
88
|
+
:host(:not([border="none"])) ::slotted(daikin-accordion-item) {
|
|
78
89
|
--divider-top-display: block;
|
|
79
|
-
--divider-bottom-display: none;
|
|
80
90
|
}
|
|
81
91
|
|
|
82
|
-
::slotted(daikin-accordion-item:
|
|
83
|
-
--divider-
|
|
92
|
+
:host(:not([border="none"])) ::slotted(daikin-accordion-item:first-child) {
|
|
93
|
+
--divider-top-display: none;
|
|
84
94
|
}
|
|
85
95
|
`;
|
|
96
|
+
__decorateClass([
|
|
97
|
+
ddsProperty.property({
|
|
98
|
+
type: String,
|
|
99
|
+
reflect: true,
|
|
100
|
+
attribute: "border",
|
|
101
|
+
fallbackValue: "vertical",
|
|
102
|
+
isAllowedValue: ddsProperty.oneOf([
|
|
103
|
+
"vertical",
|
|
104
|
+
"all",
|
|
105
|
+
"none"
|
|
106
|
+
])
|
|
107
|
+
})
|
|
108
|
+
], exports.DaikinAccordion.prototype, "border", 2);
|
|
86
109
|
__decorateClass([
|
|
87
110
|
ddsProperty.property({ type: Array, attribute: false })
|
|
88
111
|
], 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.
|