@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
|
@@ -28,25 +28,25 @@ const cvaInput = cva(
|
|
|
28
28
|
"h-full",
|
|
29
29
|
"bg-ddt-color-common-background-default",
|
|
30
30
|
"relative",
|
|
31
|
-
"rounded",
|
|
31
|
+
"rounded-sm",
|
|
32
32
|
"overflow-hidden",
|
|
33
33
|
"font-daikinSerif",
|
|
34
|
-
"outline",
|
|
35
|
-
"outline-
|
|
34
|
+
"outline-solid",
|
|
35
|
+
"outline-(--color-border)",
|
|
36
36
|
"outline-0",
|
|
37
37
|
"-outline-offset-2",
|
|
38
38
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
39
39
|
// Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
|
|
40
40
|
// `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
|
|
41
|
-
"
|
|
41
|
+
"[--color-border:var(--color-state-focus,var(--color-base))]",
|
|
42
42
|
"border",
|
|
43
|
-
"border-
|
|
43
|
+
"border-(--color-border)",
|
|
44
44
|
"enabled:text-ddt-color-common-text-primary",
|
|
45
|
-
"enabled:data-
|
|
45
|
+
"enabled:data-empty:text-ddt-color-common-text-secondary",
|
|
46
46
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
47
47
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
48
48
|
"focus-visible:outline-2",
|
|
49
|
-
"disabled:
|
|
49
|
+
"disabled:[--color-base:var(--dds-color-common-disabled)]",
|
|
50
50
|
"disabled:text-ddt-color-common-disabled",
|
|
51
51
|
"disabled:bg-ddt-color-common-background-default",
|
|
52
52
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -55,12 +55,12 @@ const cvaInput = cva(
|
|
|
55
55
|
variants: {
|
|
56
56
|
error: {
|
|
57
57
|
false: [
|
|
58
|
-
"enabled:
|
|
59
|
-
"enabled:hover:
|
|
60
|
-
"enabled:active:
|
|
61
|
-
"focus-visible:
|
|
58
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
59
|
+
"enabled:hover:[--color-base:var(--dds-color-common-neutral-hover)]",
|
|
60
|
+
"enabled:active:[--color-base:var(--dds-color-common-neutral-press)]",
|
|
61
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
62
62
|
],
|
|
63
|
-
true: ["enabled:
|
|
63
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
64
64
|
},
|
|
65
65
|
leftIcon: {
|
|
66
66
|
false: ["pl-4"],
|
|
@@ -152,24 +152,24 @@ const cvaField = cva(
|
|
|
152
152
|
"flex",
|
|
153
153
|
"items-center",
|
|
154
154
|
"size-full",
|
|
155
|
-
"w-
|
|
155
|
+
"w-23.5",
|
|
156
156
|
"bg-ddt-color-common-background-default",
|
|
157
157
|
"p-3",
|
|
158
|
-
"rounded",
|
|
158
|
+
"rounded-sm",
|
|
159
159
|
"truncate",
|
|
160
|
-
"outline",
|
|
161
|
-
"outline-
|
|
160
|
+
"outline-solid",
|
|
161
|
+
"outline-(--color-border)",
|
|
162
162
|
"outline-0",
|
|
163
163
|
"-outline-offset-2",
|
|
164
164
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
165
|
-
"
|
|
165
|
+
"[--color-border:var(--color-state-focus,var(--color-base))]",
|
|
166
166
|
"border",
|
|
167
|
-
"border-
|
|
167
|
+
"border-(--color-border)",
|
|
168
168
|
"enabled:text-ddt-color-common-text-primary",
|
|
169
169
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
170
170
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
171
171
|
"focus-visible:outline-2",
|
|
172
|
-
"disabled:
|
|
172
|
+
"disabled:[--color-border:var(--dds-color-common-disabled)]",
|
|
173
173
|
"disabled:text-ddt-color-common-disabled",
|
|
174
174
|
"disabled:bg-ddt-color-common-background-default",
|
|
175
175
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -178,10 +178,10 @@ const cvaField = cva(
|
|
|
178
178
|
variants: {
|
|
179
179
|
error: {
|
|
180
180
|
false: [
|
|
181
|
-
"enabled:
|
|
182
|
-
"focus-visible:
|
|
181
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
182
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
183
183
|
],
|
|
184
|
-
true: ["enabled:
|
|
184
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -496,7 +496,7 @@ let DaikinTimePicker = class extends DDSFormElement {
|
|
|
496
496
|
@mouseup=${this._handleMouseUp}
|
|
497
497
|
/>
|
|
498
498
|
<daikin-dropdown
|
|
499
|
-
class="w-
|
|
499
|
+
class="w-22"
|
|
500
500
|
placeholder="--"
|
|
501
501
|
.error=${this.error}
|
|
502
502
|
.value=${this._meridiem}
|
|
@@ -3,11 +3,10 @@ import { MergeVariantProps } from "../../type-utils.js";
|
|
|
3
3
|
import { cvaTimestamp } from "../../utils/notification-common.js";
|
|
4
4
|
export type ToastNotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof cvaContent | typeof cvaTimestamp>;
|
|
5
5
|
declare const cvaContainer: (props?: ({
|
|
6
|
-
variant?: "inline" | "toast" | null | undefined;
|
|
7
6
|
status?: "negative" | "alarm" | "warning" | "positive" | "information" | null | undefined;
|
|
8
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
8
|
declare const cvaContent: (props?: ({
|
|
10
|
-
layout?: "
|
|
9
|
+
layout?: "vertical" | "horizontal" | null | undefined;
|
|
11
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
11
|
/**
|
|
13
12
|
* The toast notification component is a UI element used to inform users about important updates, alerts, or messages within an application.
|
|
@@ -52,6 +51,7 @@ export declare class DaikinToastNotification extends DDSElement {
|
|
|
52
51
|
status: ToastNotificationVariantProps["status"];
|
|
53
52
|
/**
|
|
54
53
|
* Specify how to arrange the elements.
|
|
54
|
+
* In `horizontal` layout, text that overflows the container is truncated. To resolve this, use `vertical` layout, shorten the text, or customize the CSS to allow scrolling or wrapping.
|
|
55
55
|
*/
|
|
56
56
|
layout: ToastNotificationVariantProps["layout"];
|
|
57
57
|
/**
|
|
@@ -33,40 +33,38 @@ const cvaContainer = cva(
|
|
|
33
33
|
"transition",
|
|
34
34
|
"box-border",
|
|
35
35
|
"before:size-6",
|
|
36
|
-
"before:flex-none"
|
|
36
|
+
"before:flex-none",
|
|
37
|
+
"rounded-lg",
|
|
38
|
+
"border",
|
|
39
|
+
"border-ddt-color-divider",
|
|
40
|
+
"translate-x-(--move-offset-x,0)",
|
|
41
|
+
"translate-y-(--move-offset-y,0)",
|
|
42
|
+
"opacity-(--opacity,1)",
|
|
43
|
+
"[pointer-events:var(--pointer-events,auto)]",
|
|
44
|
+
"duration-(--transition-duration,var(--ddc-toast-animation-duration,0ms))"
|
|
37
45
|
],
|
|
38
46
|
{
|
|
39
47
|
variants: {
|
|
40
|
-
variant: {
|
|
41
|
-
toast: [
|
|
42
|
-
"rounded-lg",
|
|
43
|
-
"border",
|
|
44
|
-
"border-ddt-color-divider",
|
|
45
|
-
"translate-x-[--move-offset-x,0]",
|
|
46
|
-
"translate-y-[--move-offset-y,0]",
|
|
47
|
-
"opacity-[--opacity,1]",
|
|
48
|
-
"[pointer-events:var(--pointer-events,auto)]",
|
|
49
|
-
"[transition-duration:var(--transition-duration,var(--ddc-toast-animation-duration,0ms))]"
|
|
50
|
-
],
|
|
51
|
-
inline: []
|
|
52
|
-
},
|
|
53
48
|
status: {
|
|
54
49
|
positive: [
|
|
55
50
|
"before:text-ddt-color-common-success",
|
|
56
|
-
"before:
|
|
51
|
+
"before:icon-[daikin--success]"
|
|
57
52
|
],
|
|
58
53
|
negative: [
|
|
59
54
|
"before:text-ddt-color-common-danger-default",
|
|
60
|
-
"before:
|
|
55
|
+
"before:icon-[daikin--error]"
|
|
61
56
|
],
|
|
62
57
|
warning: [
|
|
63
58
|
"before:text-ddt-color-common-warning",
|
|
64
|
-
"before:
|
|
59
|
+
"before:icon-[daikin--warning]"
|
|
60
|
+
],
|
|
61
|
+
alarm: [
|
|
62
|
+
"before:text-ddt-color-common-alarm",
|
|
63
|
+
"before:icon-[daikin--alarm]"
|
|
65
64
|
],
|
|
66
|
-
alarm: ["before:text-ddt-color-common-alarm", "before:i-daikin-alarm"],
|
|
67
65
|
information: [
|
|
68
66
|
"before:text-ddt-color-common-information",
|
|
69
|
-
"before:
|
|
67
|
+
"before:icon-[daikin--information]"
|
|
70
68
|
]
|
|
71
69
|
}
|
|
72
70
|
}
|
|
@@ -80,15 +78,11 @@ const cvaContent = cva(["flex", "items-center", "w-full"], {
|
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
80
|
});
|
|
83
|
-
const cvaTitle = cva(["
|
|
81
|
+
const cvaTitle = cva(["font-bold", "leading-[130%]"], {
|
|
84
82
|
variants: {
|
|
85
83
|
layout: {
|
|
86
|
-
vertical: ["
|
|
87
|
-
horizontal: [
|
|
88
|
-
"slotted:whitespace-nowrap",
|
|
89
|
-
"slotted:overflow-hidden",
|
|
90
|
-
"slotted:overflow-ellipsis"
|
|
91
|
-
]
|
|
84
|
+
vertical: ["natural-break"],
|
|
85
|
+
horizontal: ["overflow-hidden", "whitespace-nowrap"]
|
|
92
86
|
}
|
|
93
87
|
}
|
|
94
88
|
});
|
|
@@ -96,12 +90,7 @@ const cvaDescription = cva(["inline-block", "leading-[130%]"], {
|
|
|
96
90
|
variants: {
|
|
97
91
|
layout: {
|
|
98
92
|
vertical: ["natural-break"],
|
|
99
|
-
horizontal: [
|
|
100
|
-
"whitespace-nowrap",
|
|
101
|
-
"overflow-hidden",
|
|
102
|
-
"overflow-ellipsis",
|
|
103
|
-
"flex-1"
|
|
104
|
-
]
|
|
93
|
+
horizontal: ["flex-1", "overflow-hidden", "whitespace-nowrap"]
|
|
105
94
|
}
|
|
106
95
|
}
|
|
107
96
|
});
|
|
@@ -121,7 +110,7 @@ let DaikinToastNotification = class extends DDSElement {
|
|
|
121
110
|
}
|
|
122
111
|
render() {
|
|
123
112
|
return html`<div
|
|
124
|
-
class=${cvaContainer({
|
|
113
|
+
class=${cvaContainer({ status: this.status })}
|
|
125
114
|
role="alert"
|
|
126
115
|
>
|
|
127
116
|
<div class=${cvaContent({ layout: this.layout })}>
|
|
@@ -131,14 +120,14 @@ let DaikinToastNotification = class extends DDSElement {
|
|
|
131
120
|
>${formatDate(this.timestamp)}</span
|
|
132
121
|
>` : nothing}
|
|
133
122
|
</div>
|
|
134
|
-
<slot name="action" class="flex-none"></slot>
|
|
123
|
+
<slot name="action" class="flex-none slotted:flex-none"></slot>
|
|
135
124
|
${this.closable ? html`<daikin-icon-button
|
|
136
125
|
variant="ghost"
|
|
137
126
|
button-aria-label="Close"
|
|
138
127
|
@click=${this._handleClickClose}
|
|
139
128
|
>
|
|
140
129
|
<span
|
|
141
|
-
class="flex size-6 text-ddt-color-common-text-secondary relative
|
|
130
|
+
class="flex size-6 text-ddt-color-common-text-secondary relative icon-[daikin--close]"
|
|
142
131
|
></span>
|
|
143
132
|
</daikin-icon-button>` : nothing}
|
|
144
133
|
</div>`;
|
|
@@ -150,7 +139,6 @@ DaikinToastNotification.styles = css`
|
|
|
150
139
|
:host {
|
|
151
140
|
display: block;
|
|
152
141
|
width: fit-content;
|
|
153
|
-
max-width: 100%;
|
|
154
142
|
|
|
155
143
|
--ddc-toast-animation-duration: ${unsafeCSS(TOAST_ANIMATION_DURATION)}ms;
|
|
156
144
|
}
|
|
@@ -158,6 +146,10 @@ DaikinToastNotification.styles = css`
|
|
|
158
146
|
:host([layout="horizontal"]) {
|
|
159
147
|
height: 4rem;
|
|
160
148
|
}
|
|
149
|
+
|
|
150
|
+
:host([layout="vertical"]) {
|
|
151
|
+
max-width: 100%;
|
|
152
|
+
}
|
|
161
153
|
`;
|
|
162
154
|
__decorateClass([
|
|
163
155
|
property({ type: String, reflect: true, fallbackValue: "" })
|
package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js
CHANGED
|
@@ -28,11 +28,11 @@ const cvaContainer = cva(
|
|
|
28
28
|
[
|
|
29
29
|
"flex",
|
|
30
30
|
"gap-2",
|
|
31
|
-
"w-[calc(
|
|
31
|
+
"w-[calc(100vw-2rem)]",
|
|
32
32
|
"fixed",
|
|
33
33
|
"transition-transform",
|
|
34
|
-
"translate-y-
|
|
35
|
-
"duration-
|
|
34
|
+
"translate-y-(--container-move-offset-y,0)",
|
|
35
|
+
"duration-(--container-transition-duration,200ms)"
|
|
36
36
|
],
|
|
37
37
|
{
|
|
38
38
|
variants: {
|
|
@@ -29,10 +29,10 @@ const TOGGLE_CLASS_NAME = cva([
|
|
|
29
29
|
"appearance-none",
|
|
30
30
|
"enabled:hover:bg-ddt-color-common-neutral-hover",
|
|
31
31
|
"enabled:active:bg-ddt-color-common-neutral-press",
|
|
32
|
-
"
|
|
32
|
+
"enabled:outline-ddt-color-common-border-focus",
|
|
33
|
+
"focus-visible:outline-solid",
|
|
33
34
|
"focus-visible:outline-2",
|
|
34
35
|
"focus-visible:outline-offset-2",
|
|
35
|
-
"focus-visible:outline-ddt-color-common-border-focus",
|
|
36
36
|
"enabled:checked:bg-ddt-color-common-brand-default",
|
|
37
37
|
"enabled:checked:hover:bg-ddt-color-common-brand-hover",
|
|
38
38
|
"enabled:checked:active:bg-ddt-color-common-brand-press",
|
|
@@ -47,7 +47,7 @@ const TOGGLE_CLASS_NAME = cva([
|
|
|
47
47
|
"before:left-1",
|
|
48
48
|
"before:transition",
|
|
49
49
|
"before:duration-300",
|
|
50
|
-
"before:
|
|
50
|
+
"checked:before:translate-x-6",
|
|
51
51
|
"enabled:before:bg-ddt-color-common-background-default",
|
|
52
52
|
"disabled:before:bg-ddt-color-common-surface-hover"
|
|
53
53
|
])();
|
|
@@ -23,14 +23,14 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
23
23
|
};
|
|
24
24
|
const cvaTooltip = cva(
|
|
25
25
|
[
|
|
26
|
-
"left-
|
|
27
|
-
"top-
|
|
26
|
+
"left-(--floating-x,0)",
|
|
27
|
+
"top-(--floating-y,0)",
|
|
28
28
|
"w-max",
|
|
29
29
|
"text-sm",
|
|
30
30
|
"p-2",
|
|
31
31
|
"leading-[130%]",
|
|
32
32
|
"border",
|
|
33
|
-
"rounded",
|
|
33
|
+
"rounded-sm",
|
|
34
34
|
"font-daikinSerif",
|
|
35
35
|
"absolute",
|
|
36
36
|
"floating-unready:hidden"
|
|
@@ -30,7 +30,7 @@ const cvaTreeChildren = cva(
|
|
|
30
30
|
"pr-4",
|
|
31
31
|
"pl-[calc((var(--level)+1)*1rem)]",
|
|
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"
|
|
@@ -40,31 +40,32 @@ const cvaTreeChildren = cva(
|
|
|
40
40
|
disabled: {
|
|
41
41
|
false: [
|
|
42
42
|
"text-ddt-color-common-text-primary",
|
|
43
|
-
"bg-
|
|
43
|
+
"bg-(--color-base)",
|
|
44
44
|
"cursor-pointer"
|
|
45
45
|
],
|
|
46
46
|
true: ["text-ddt-color-common-disabled"]
|
|
47
47
|
},
|
|
48
48
|
selected: {
|
|
49
49
|
false: [
|
|
50
|
-
"
|
|
51
|
-
"hover:
|
|
52
|
-
"active:
|
|
50
|
+
"[--color-base:transparent]",
|
|
51
|
+
"hover:[--color-base:var(--dds-color-common-surface-hover)]",
|
|
52
|
+
"active:[--color-base:var(--dds-color-common-surface-press)]"
|
|
53
53
|
],
|
|
54
54
|
true: [
|
|
55
|
-
"
|
|
56
|
-
"hover:
|
|
57
|
-
"active:
|
|
55
|
+
"[--color-base:var(--dds-color-common-surface-selected-default)]",
|
|
56
|
+
"hover:[--color-base:var(--dds-color-common-surface-selected-hover)]",
|
|
57
|
+
"active:[--color-base:var(--dds-color-common-surface-selected-press)]"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
icon: {
|
|
61
61
|
false: ["before:size-6"],
|
|
62
62
|
true: [
|
|
63
|
-
"before:
|
|
63
|
+
"before:icon-[daikin--chevron-right]",
|
|
64
64
|
"before:size-5",
|
|
65
65
|
"before:m-0.5",
|
|
66
66
|
"before:transition-all",
|
|
67
|
-
"before:flex-none"
|
|
67
|
+
"before:flex-none",
|
|
68
|
+
"before:self-start"
|
|
68
69
|
]
|
|
69
70
|
},
|
|
70
71
|
open: {
|
package/dist/es-dev/index.d.ts
CHANGED
package/dist/es-dev/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import { DaikinCombobox, defaultFilterFn } from "./components/combobox/daikin-co
|
|
|
18
18
|
import { DaikinDatePicker } from "./components/date-picker/daikin-date-picker.js";
|
|
19
19
|
import { DaikinDropdown } from "./components/dropdown/daikin-dropdown.js";
|
|
20
20
|
import { DaikinDropdownItem } from "./components/dropdown-item/daikin-dropdown-item.js";
|
|
21
|
+
import { DaikinEmptyState } from "./components/empty-state/daikin-empty-state.js";
|
|
21
22
|
import { DaikinIcon, iconList } from "./components/icon/daikin-icon.js";
|
|
22
23
|
import { DaikinIconButton } from "./components/icon-button/daikin-icon-button.js";
|
|
23
24
|
import { DaikinInlineNotification } from "./components/inline-notification/daikin-inline-notification.js";
|
|
@@ -31,6 +32,8 @@ import { DaikinMenu } from "./components/menu/daikin-menu.js";
|
|
|
31
32
|
import { DaikinModal } from "./components/modal/daikin-modal.js";
|
|
32
33
|
import { DaikinModalFooter } from "./components/modal-footer/daikin-modal-footer.js";
|
|
33
34
|
import { DaikinModalHeader } from "./components/modal-header/daikin-modal-header.js";
|
|
35
|
+
import { DaikinNavigation } from "./components/navigation/daikin-navigation.js";
|
|
36
|
+
import { DaikinNavigationItem } from "./components/navigation-item/daikin-navigation-item.js";
|
|
34
37
|
import { DaikinPagination } from "./components/pagination/daikin-pagination.js";
|
|
35
38
|
import { DaikinProgressBar } from "./components/progress-bar/daikin-progress-bar.js";
|
|
36
39
|
import { DaikinProgressIndicator } from "./components/progress-indicator/daikin-progress-indicator.js";
|
|
@@ -46,6 +49,7 @@ import { DaikinTable } from "./components/table/daikin-table.js";
|
|
|
46
49
|
import { DaikinTableCell } from "./components/table-cell/daikin-table-cell.js";
|
|
47
50
|
import { DaikinTableHeaderCell } from "./components/table-header-cell/daikin-table-header-cell.js";
|
|
48
51
|
import { DaikinTabs } from "./components/tabs/daikin-tabs.js";
|
|
52
|
+
import { DaikinTag } from "./components/tag/daikin-tag.js";
|
|
49
53
|
import { DaikinTextArea } from "./components/text-area/daikin-text-area.js";
|
|
50
54
|
import { DaikinTextField } from "./components/text-field/daikin-text-field.js";
|
|
51
55
|
import { DaikinTextMaskedField } from "./components/text-masked-field/daikin-text-masked-field.js";
|
|
@@ -58,6 +62,7 @@ import { DaikinTree } from "./components/tree/daikin-tree.js";
|
|
|
58
62
|
import { DaikinTreeItem, cvaTreeChildren } from "./components/tree-item/daikin-tree-item.js";
|
|
59
63
|
import { DaikinTreeSection } from "./components/tree-section/daikin-tree-section.js";
|
|
60
64
|
import { IconRegistry, iconRegistry } from "./icon-registry.js";
|
|
65
|
+
import { getNavigationTarget, getSPANavigationURL, isInternalNavigation, shouldSPANavigate } from "./navigation.js";
|
|
61
66
|
export {
|
|
62
67
|
DaikinAccordion,
|
|
63
68
|
DaikinAccordionItem,
|
|
@@ -79,6 +84,7 @@ export {
|
|
|
79
84
|
DaikinDatePicker,
|
|
80
85
|
DaikinDropdown,
|
|
81
86
|
DaikinDropdownItem,
|
|
87
|
+
DaikinEmptyState,
|
|
82
88
|
DaikinIcon,
|
|
83
89
|
DaikinIconButton,
|
|
84
90
|
DaikinInlineNotification,
|
|
@@ -92,6 +98,8 @@ export {
|
|
|
92
98
|
DaikinModal,
|
|
93
99
|
DaikinModalFooter,
|
|
94
100
|
DaikinModalHeader,
|
|
101
|
+
DaikinNavigation,
|
|
102
|
+
DaikinNavigationItem,
|
|
95
103
|
DaikinPagination,
|
|
96
104
|
DaikinProgressBar,
|
|
97
105
|
DaikinProgressIndicator,
|
|
@@ -107,6 +115,7 @@ export {
|
|
|
107
115
|
DaikinTableCell,
|
|
108
116
|
DaikinTableHeaderCell,
|
|
109
117
|
DaikinTabs,
|
|
118
|
+
DaikinTag,
|
|
110
119
|
DaikinTextArea,
|
|
111
120
|
DaikinTextField,
|
|
112
121
|
DaikinTextMaskedField,
|
|
@@ -125,12 +134,16 @@ export {
|
|
|
125
134
|
formatPartsForUI,
|
|
126
135
|
formatTimeForUI,
|
|
127
136
|
from24HourFormat,
|
|
137
|
+
getNavigationTarget,
|
|
138
|
+
getSPANavigationURL,
|
|
128
139
|
getTimeItemInSelection,
|
|
129
140
|
iconList,
|
|
130
141
|
iconRegistry,
|
|
142
|
+
isInternalNavigation,
|
|
131
143
|
isTimeOutOfRange,
|
|
132
144
|
isValidValueTime,
|
|
133
145
|
parsePartsFromUIValue,
|
|
146
|
+
shouldSPANavigate,
|
|
134
147
|
to24HourFormat,
|
|
135
148
|
tryParseTimeFromUIValue
|
|
136
149
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NavigationTarget } from "./base/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Extracts a navigation target from a component that implements `DDSNavigable`.
|
|
4
|
+
*
|
|
5
|
+
* @param element - Candidate element that may implement `DDSNavigable`.
|
|
6
|
+
* @returns The navigation target when available, otherwise null.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getNavigationTarget(element: unknown): NavigationTarget | null;
|
|
9
|
+
/**
|
|
10
|
+
* Returns true when the href points to the current origin using http(s) or a relative URL.
|
|
11
|
+
*
|
|
12
|
+
* @param href - Destination URL or path to evaluate.
|
|
13
|
+
* @param base - Base URL used when resolving relative paths.
|
|
14
|
+
* @param origin - Origin to compare against after resolving the URL.
|
|
15
|
+
* @returns True when the navigation stays within the same origin.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isInternalNavigation(href: string, base?: string, origin?: string): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Determines whether a click should be handled by SPA navigation rules.
|
|
20
|
+
*
|
|
21
|
+
* @param event - Mouse event that triggered navigation, if any.
|
|
22
|
+
* @param element - Target element to evaluate when no event is available.
|
|
23
|
+
* @param target - Navigation target information to evaluate when no event is available.
|
|
24
|
+
* @returns True when the click qualifies for SPA navigation.
|
|
25
|
+
*/
|
|
26
|
+
export declare function shouldSPANavigate(event: MouseEvent | undefined, element?: EventTarget | null | undefined, target?: NavigationTarget | null): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the URL to navigate to when a click event qualifies for SPA navigation, otherwise null.
|
|
29
|
+
*
|
|
30
|
+
* @param event - Mouse event that triggered navigation.
|
|
31
|
+
* @returns The URL to navigate to, or null when the click does not qualify for SPA navigation.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getSPANavigationURL(event: MouseEvent): string | null;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import "./base/dds-element.js";
|
|
2
|
+
import "./base/dds-form-element.js";
|
|
3
|
+
import "lit/decorators.js";
|
|
4
|
+
import "./base/define.js";
|
|
5
|
+
function isDDSNavigable(element) {
|
|
6
|
+
return typeof element === "object" && element != null && // We intentionally skip the `instanceof` check to avoid issues with multiple versions of the library.
|
|
7
|
+
"getDDSNavigationTarget" in element;
|
|
8
|
+
}
|
|
9
|
+
function getNavigationTarget(element) {
|
|
10
|
+
if (isDDSNavigable(element)) {
|
|
11
|
+
return element.getDDSNavigationTarget();
|
|
12
|
+
}
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
function isInternalNavigation(href, base = document.baseURI, origin = location.origin) {
|
|
16
|
+
var _a;
|
|
17
|
+
try {
|
|
18
|
+
const scheme = (_a = /^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(href)) == null ? void 0 : _a[0];
|
|
19
|
+
if (scheme && !/^https?:$/.test(scheme)) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
const url = new URL(href, base);
|
|
23
|
+
return url.origin === origin;
|
|
24
|
+
} catch {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function shouldSPANavigate(event, element = event == null ? void 0 : event.target, target = getNavigationTarget(element)) {
|
|
29
|
+
if (!element) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
if (event) {
|
|
33
|
+
if (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
if (event.button !== 0) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (!target || (target.target || "_self") !== "_self" || !isInternalNavigation(target.href)) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function getNearestDDSNavigable(paths) {
|
|
46
|
+
return paths.find((path) => isDDSNavigable(path)) ?? null;
|
|
47
|
+
}
|
|
48
|
+
function getSPANavigationURL(event) {
|
|
49
|
+
const paths = event.composedPath();
|
|
50
|
+
const element = getNearestDDSNavigable(paths);
|
|
51
|
+
const target = element == null ? void 0 : element.getDDSNavigationTarget();
|
|
52
|
+
if (!target || !shouldSPANavigate(event, element, target)) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return target.href;
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
getNavigationTarget,
|
|
59
|
+
getSPANavigationURL,
|
|
60
|
+
isInternalNavigation,
|
|
61
|
+
shouldSPANavigate
|
|
62
|
+
};
|