@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
|
@@ -30,25 +30,25 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
30
30
|
"h-full",
|
|
31
31
|
"bg-ddt-color-common-background-default",
|
|
32
32
|
"relative",
|
|
33
|
-
"rounded",
|
|
33
|
+
"rounded-sm",
|
|
34
34
|
"overflow-hidden",
|
|
35
35
|
"font-daikinSerif",
|
|
36
|
-
"outline",
|
|
37
|
-
"outline-
|
|
36
|
+
"outline-solid",
|
|
37
|
+
"outline-(--color-border)",
|
|
38
38
|
"outline-0",
|
|
39
39
|
"-outline-offset-2",
|
|
40
40
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
41
41
|
// Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
|
|
42
42
|
// `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
|
|
43
|
-
"
|
|
43
|
+
"[--color-border:var(--color-state-focus,var(--color-base))]",
|
|
44
44
|
"border",
|
|
45
|
-
"border-
|
|
45
|
+
"border-(--color-border)",
|
|
46
46
|
"enabled:text-ddt-color-common-text-primary",
|
|
47
|
-
"enabled:data-
|
|
47
|
+
"enabled:data-empty:text-ddt-color-common-text-secondary",
|
|
48
48
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
49
49
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
50
50
|
"focus-visible:outline-2",
|
|
51
|
-
"disabled:
|
|
51
|
+
"disabled:[--color-base:var(--dds-color-common-disabled)]",
|
|
52
52
|
"disabled:text-ddt-color-common-disabled",
|
|
53
53
|
"disabled:bg-ddt-color-common-background-default",
|
|
54
54
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -57,12 +57,12 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
57
57
|
variants: {
|
|
58
58
|
error: {
|
|
59
59
|
false: [
|
|
60
|
-
"enabled:
|
|
61
|
-
"enabled:hover:
|
|
62
|
-
"enabled:active:
|
|
63
|
-
"focus-visible:
|
|
60
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
61
|
+
"enabled:hover:[--color-base:var(--dds-color-common-neutral-hover)]",
|
|
62
|
+
"enabled:active:[--color-base:var(--dds-color-common-neutral-press)]",
|
|
63
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
64
64
|
],
|
|
65
|
-
true: ["enabled:
|
|
65
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
66
66
|
},
|
|
67
67
|
leftIcon: {
|
|
68
68
|
false: ["pl-4"],
|
|
@@ -154,24 +154,24 @@ const cvaField = classVarianceAuthority.cva(
|
|
|
154
154
|
"flex",
|
|
155
155
|
"items-center",
|
|
156
156
|
"size-full",
|
|
157
|
-
"w-
|
|
157
|
+
"w-23.5",
|
|
158
158
|
"bg-ddt-color-common-background-default",
|
|
159
159
|
"p-3",
|
|
160
|
-
"rounded",
|
|
160
|
+
"rounded-sm",
|
|
161
161
|
"truncate",
|
|
162
|
-
"outline",
|
|
163
|
-
"outline-
|
|
162
|
+
"outline-solid",
|
|
163
|
+
"outline-(--color-border)",
|
|
164
164
|
"outline-0",
|
|
165
165
|
"-outline-offset-2",
|
|
166
166
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
167
|
-
"
|
|
167
|
+
"[--color-border:var(--color-state-focus,var(--color-base))]",
|
|
168
168
|
"border",
|
|
169
|
-
"border-
|
|
169
|
+
"border-(--color-border)",
|
|
170
170
|
"enabled:text-ddt-color-common-text-primary",
|
|
171
171
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
172
172
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
173
173
|
"focus-visible:outline-2",
|
|
174
|
-
"disabled:
|
|
174
|
+
"disabled:[--color-border:var(--dds-color-common-disabled)]",
|
|
175
175
|
"disabled:text-ddt-color-common-disabled",
|
|
176
176
|
"disabled:bg-ddt-color-common-background-default",
|
|
177
177
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -180,10 +180,10 @@ const cvaField = classVarianceAuthority.cva(
|
|
|
180
180
|
variants: {
|
|
181
181
|
error: {
|
|
182
182
|
false: [
|
|
183
|
-
"enabled:
|
|
184
|
-
"focus-visible:
|
|
183
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
184
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
185
185
|
],
|
|
186
|
-
true: ["enabled:
|
|
186
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
}
|
|
@@ -498,7 +498,7 @@ exports.DaikinTimePicker = class DaikinTimePicker extends ddsFormElement.DDSForm
|
|
|
498
498
|
@mouseup=${this._handleMouseUp}
|
|
499
499
|
/>
|
|
500
500
|
<daikin-dropdown
|
|
501
|
-
class="w-
|
|
501
|
+
class="w-22"
|
|
502
502
|
placeholder="--"
|
|
503
503
|
.error=${this.error}
|
|
504
504
|
.value=${this._meridiem}
|
|
@@ -35,40 +35,38 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
35
35
|
"transition",
|
|
36
36
|
"box-border",
|
|
37
37
|
"before:size-6",
|
|
38
|
-
"before:flex-none"
|
|
38
|
+
"before:flex-none",
|
|
39
|
+
"rounded-lg",
|
|
40
|
+
"border",
|
|
41
|
+
"border-ddt-color-divider",
|
|
42
|
+
"translate-x-(--move-offset-x,0)",
|
|
43
|
+
"translate-y-(--move-offset-y,0)",
|
|
44
|
+
"opacity-(--opacity,1)",
|
|
45
|
+
"[pointer-events:var(--pointer-events,auto)]",
|
|
46
|
+
"duration-(--transition-duration,var(--ddc-toast-animation-duration,0ms))"
|
|
39
47
|
],
|
|
40
48
|
{
|
|
41
49
|
variants: {
|
|
42
|
-
variant: {
|
|
43
|
-
toast: [
|
|
44
|
-
"rounded-lg",
|
|
45
|
-
"border",
|
|
46
|
-
"border-ddt-color-divider",
|
|
47
|
-
"translate-x-[--move-offset-x,0]",
|
|
48
|
-
"translate-y-[--move-offset-y,0]",
|
|
49
|
-
"opacity-[--opacity,1]",
|
|
50
|
-
"[pointer-events:var(--pointer-events,auto)]",
|
|
51
|
-
"[transition-duration:var(--transition-duration,var(--ddc-toast-animation-duration,0ms))]"
|
|
52
|
-
],
|
|
53
|
-
inline: []
|
|
54
|
-
},
|
|
55
50
|
status: {
|
|
56
51
|
positive: [
|
|
57
52
|
"before:text-ddt-color-common-success",
|
|
58
|
-
"before:
|
|
53
|
+
"before:icon-[daikin--success]"
|
|
59
54
|
],
|
|
60
55
|
negative: [
|
|
61
56
|
"before:text-ddt-color-common-danger-default",
|
|
62
|
-
"before:
|
|
57
|
+
"before:icon-[daikin--error]"
|
|
63
58
|
],
|
|
64
59
|
warning: [
|
|
65
60
|
"before:text-ddt-color-common-warning",
|
|
66
|
-
"before:
|
|
61
|
+
"before:icon-[daikin--warning]"
|
|
62
|
+
],
|
|
63
|
+
alarm: [
|
|
64
|
+
"before:text-ddt-color-common-alarm",
|
|
65
|
+
"before:icon-[daikin--alarm]"
|
|
67
66
|
],
|
|
68
|
-
alarm: ["before:text-ddt-color-common-alarm", "before:i-daikin-alarm"],
|
|
69
67
|
information: [
|
|
70
68
|
"before:text-ddt-color-common-information",
|
|
71
|
-
"before:
|
|
69
|
+
"before:icon-[daikin--information]"
|
|
72
70
|
]
|
|
73
71
|
}
|
|
74
72
|
}
|
|
@@ -82,15 +80,11 @@ const cvaContent = classVarianceAuthority.cva(["flex", "items-center", "w-full"]
|
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
});
|
|
85
|
-
const cvaTitle = classVarianceAuthority.cva(["
|
|
83
|
+
const cvaTitle = classVarianceAuthority.cva(["font-bold", "leading-[130%]"], {
|
|
86
84
|
variants: {
|
|
87
85
|
layout: {
|
|
88
|
-
vertical: ["
|
|
89
|
-
horizontal: [
|
|
90
|
-
"slotted:whitespace-nowrap",
|
|
91
|
-
"slotted:overflow-hidden",
|
|
92
|
-
"slotted:overflow-ellipsis"
|
|
93
|
-
]
|
|
86
|
+
vertical: ["natural-break"],
|
|
87
|
+
horizontal: ["overflow-hidden", "whitespace-nowrap"]
|
|
94
88
|
}
|
|
95
89
|
}
|
|
96
90
|
});
|
|
@@ -98,12 +92,7 @@ const cvaDescription = classVarianceAuthority.cva(["inline-block", "leading-[130
|
|
|
98
92
|
variants: {
|
|
99
93
|
layout: {
|
|
100
94
|
vertical: ["natural-break"],
|
|
101
|
-
horizontal: [
|
|
102
|
-
"whitespace-nowrap",
|
|
103
|
-
"overflow-hidden",
|
|
104
|
-
"overflow-ellipsis",
|
|
105
|
-
"flex-1"
|
|
106
|
-
]
|
|
95
|
+
horizontal: ["flex-1", "overflow-hidden", "whitespace-nowrap"]
|
|
107
96
|
}
|
|
108
97
|
}
|
|
109
98
|
});
|
|
@@ -123,7 +112,7 @@ exports.DaikinToastNotification = class DaikinToastNotification extends ddsEleme
|
|
|
123
112
|
}
|
|
124
113
|
render() {
|
|
125
114
|
return lit.html`<div
|
|
126
|
-
class=${cvaContainer({
|
|
115
|
+
class=${cvaContainer({ status: this.status })}
|
|
127
116
|
role="alert"
|
|
128
117
|
>
|
|
129
118
|
<div class=${cvaContent({ layout: this.layout })}>
|
|
@@ -133,14 +122,14 @@ exports.DaikinToastNotification = class DaikinToastNotification extends ddsEleme
|
|
|
133
122
|
>${notificationCommon.formatDate(this.timestamp)}</span
|
|
134
123
|
>` : lit.nothing}
|
|
135
124
|
</div>
|
|
136
|
-
<slot name="action" class="flex-none"></slot>
|
|
125
|
+
<slot name="action" class="flex-none slotted:flex-none"></slot>
|
|
137
126
|
${this.closable ? lit.html`<daikin-icon-button
|
|
138
127
|
variant="ghost"
|
|
139
128
|
button-aria-label="Close"
|
|
140
129
|
@click=${this._handleClickClose}
|
|
141
130
|
>
|
|
142
131
|
<span
|
|
143
|
-
class="flex size-6 text-ddt-color-common-text-secondary relative
|
|
132
|
+
class="flex size-6 text-ddt-color-common-text-secondary relative icon-[daikin--close]"
|
|
144
133
|
></span>
|
|
145
134
|
</daikin-icon-button>` : lit.nothing}
|
|
146
135
|
</div>`;
|
|
@@ -152,7 +141,6 @@ exports.DaikinToastNotification.styles = lit.css`
|
|
|
152
141
|
:host {
|
|
153
142
|
display: block;
|
|
154
143
|
width: fit-content;
|
|
155
|
-
max-width: 100%;
|
|
156
144
|
|
|
157
145
|
--ddc-toast-animation-duration: ${lit.unsafeCSS(notificationCommon.TOAST_ANIMATION_DURATION)}ms;
|
|
158
146
|
}
|
|
@@ -160,6 +148,10 @@ exports.DaikinToastNotification.styles = lit.css`
|
|
|
160
148
|
:host([layout="horizontal"]) {
|
|
161
149
|
height: 4rem;
|
|
162
150
|
}
|
|
151
|
+
|
|
152
|
+
:host([layout="vertical"]) {
|
|
153
|
+
max-width: 100%;
|
|
154
|
+
}
|
|
163
155
|
`;
|
|
164
156
|
__decorateClass([
|
|
165
157
|
ddsProperty.property({ type: String, reflect: true, fallbackValue: "" })
|
|
@@ -3,11 +3,10 @@ import { MergeVariantProps } from "../../type-utils.cjs";
|
|
|
3
3
|
import { cvaTimestamp } from "../../utils/notification-common.cjs";
|
|
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
|
/**
|
package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs
CHANGED
|
@@ -30,11 +30,11 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
30
30
|
[
|
|
31
31
|
"flex",
|
|
32
32
|
"gap-2",
|
|
33
|
-
"w-[calc(
|
|
33
|
+
"w-[calc(100vw-2rem)]",
|
|
34
34
|
"fixed",
|
|
35
35
|
"transition-transform",
|
|
36
|
-
"translate-y-
|
|
37
|
-
"duration-
|
|
36
|
+
"translate-y-(--container-move-offset-y,0)",
|
|
37
|
+
"duration-(--container-transition-duration,200ms)"
|
|
38
38
|
],
|
|
39
39
|
{
|
|
40
40
|
variants: {
|
|
@@ -31,10 +31,10 @@ const TOGGLE_CLASS_NAME = classVarianceAuthority.cva([
|
|
|
31
31
|
"appearance-none",
|
|
32
32
|
"enabled:hover:bg-ddt-color-common-neutral-hover",
|
|
33
33
|
"enabled:active:bg-ddt-color-common-neutral-press",
|
|
34
|
-
"
|
|
34
|
+
"enabled:outline-ddt-color-common-border-focus",
|
|
35
|
+
"focus-visible:outline-solid",
|
|
35
36
|
"focus-visible:outline-2",
|
|
36
37
|
"focus-visible:outline-offset-2",
|
|
37
|
-
"focus-visible:outline-ddt-color-common-border-focus",
|
|
38
38
|
"enabled:checked:bg-ddt-color-common-brand-default",
|
|
39
39
|
"enabled:checked:hover:bg-ddt-color-common-brand-hover",
|
|
40
40
|
"enabled:checked:active:bg-ddt-color-common-brand-press",
|
|
@@ -49,7 +49,7 @@ const TOGGLE_CLASS_NAME = classVarianceAuthority.cva([
|
|
|
49
49
|
"before:left-1",
|
|
50
50
|
"before:transition",
|
|
51
51
|
"before:duration-300",
|
|
52
|
-
"before:
|
|
52
|
+
"checked:before:translate-x-6",
|
|
53
53
|
"enabled:before:bg-ddt-color-common-background-default",
|
|
54
54
|
"disabled:before:bg-ddt-color-common-surface-hover"
|
|
55
55
|
])();
|
|
@@ -25,14 +25,14 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
25
25
|
};
|
|
26
26
|
const cvaTooltip = classVarianceAuthority.cva(
|
|
27
27
|
[
|
|
28
|
-
"left-
|
|
29
|
-
"top-
|
|
28
|
+
"left-(--floating-x,0)",
|
|
29
|
+
"top-(--floating-y,0)",
|
|
30
30
|
"w-max",
|
|
31
31
|
"text-sm",
|
|
32
32
|
"p-2",
|
|
33
33
|
"leading-[130%]",
|
|
34
34
|
"border",
|
|
35
|
-
"rounded",
|
|
35
|
+
"rounded-sm",
|
|
36
36
|
"font-daikinSerif",
|
|
37
37
|
"absolute",
|
|
38
38
|
"floating-unready:hidden"
|
|
@@ -32,7 +32,7 @@ const cvaTreeChildren = classVarianceAuthority.cva(
|
|
|
32
32
|
"pr-4",
|
|
33
33
|
"pl-[calc((var(--level)+1)*1rem)]",
|
|
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"
|
|
@@ -42,31 +42,32 @@ const cvaTreeChildren = classVarianceAuthority.cva(
|
|
|
42
42
|
disabled: {
|
|
43
43
|
false: [
|
|
44
44
|
"text-ddt-color-common-text-primary",
|
|
45
|
-
"bg-
|
|
45
|
+
"bg-(--color-base)",
|
|
46
46
|
"cursor-pointer"
|
|
47
47
|
],
|
|
48
48
|
true: ["text-ddt-color-common-disabled"]
|
|
49
49
|
},
|
|
50
50
|
selected: {
|
|
51
51
|
false: [
|
|
52
|
-
"
|
|
53
|
-
"hover:
|
|
54
|
-
"active:
|
|
52
|
+
"[--color-base:transparent]",
|
|
53
|
+
"hover:[--color-base:var(--dds-color-common-surface-hover)]",
|
|
54
|
+
"active:[--color-base:var(--dds-color-common-surface-press)]"
|
|
55
55
|
],
|
|
56
56
|
true: [
|
|
57
|
-
"
|
|
58
|
-
"hover:
|
|
59
|
-
"active:
|
|
57
|
+
"[--color-base:var(--dds-color-common-surface-selected-default)]",
|
|
58
|
+
"hover:[--color-base:var(--dds-color-common-surface-selected-hover)]",
|
|
59
|
+
"active:[--color-base:var(--dds-color-common-surface-selected-press)]"
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
62
|
icon: {
|
|
63
63
|
false: ["before:size-6"],
|
|
64
64
|
true: [
|
|
65
|
-
"before:
|
|
65
|
+
"before:icon-[daikin--chevron-right]",
|
|
66
66
|
"before:size-5",
|
|
67
67
|
"before:m-0.5",
|
|
68
68
|
"before:transition-all",
|
|
69
|
-
"before:flex-none"
|
|
69
|
+
"before:flex-none",
|
|
70
|
+
"before:self-start"
|
|
70
71
|
]
|
|
71
72
|
},
|
|
72
73
|
open: {
|
package/dist/cjs-dev/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ const daikinCombobox = require("./components/combobox/daikin-combobox.cjs");
|
|
|
20
20
|
const daikinDatePicker = require("./components/date-picker/daikin-date-picker.cjs");
|
|
21
21
|
const daikinDropdown = require("./components/dropdown/daikin-dropdown.cjs");
|
|
22
22
|
const daikinDropdownItem = require("./components/dropdown-item/daikin-dropdown-item.cjs");
|
|
23
|
+
const daikinEmptyState = require("./components/empty-state/daikin-empty-state.cjs");
|
|
23
24
|
const daikinIcon = require("./components/icon/daikin-icon.cjs");
|
|
24
25
|
const daikinIconButton = require("./components/icon-button/daikin-icon-button.cjs");
|
|
25
26
|
const daikinInlineNotification = require("./components/inline-notification/daikin-inline-notification.cjs");
|
|
@@ -33,6 +34,8 @@ const daikinMenu = require("./components/menu/daikin-menu.cjs");
|
|
|
33
34
|
const daikinModal = require("./components/modal/daikin-modal.cjs");
|
|
34
35
|
const daikinModalFooter = require("./components/modal-footer/daikin-modal-footer.cjs");
|
|
35
36
|
const daikinModalHeader = require("./components/modal-header/daikin-modal-header.cjs");
|
|
37
|
+
const daikinNavigation = require("./components/navigation/daikin-navigation.cjs");
|
|
38
|
+
const daikinNavigationItem = require("./components/navigation-item/daikin-navigation-item.cjs");
|
|
36
39
|
const daikinPagination = require("./components/pagination/daikin-pagination.cjs");
|
|
37
40
|
const daikinProgressBar = require("./components/progress-bar/daikin-progress-bar.cjs");
|
|
38
41
|
const daikinProgressIndicator = require("./components/progress-indicator/daikin-progress-indicator.cjs");
|
|
@@ -48,6 +51,7 @@ const daikinTable = require("./components/table/daikin-table.cjs");
|
|
|
48
51
|
const daikinTableCell = require("./components/table-cell/daikin-table-cell.cjs");
|
|
49
52
|
const daikinTableHeaderCell = require("./components/table-header-cell/daikin-table-header-cell.cjs");
|
|
50
53
|
const daikinTabs = require("./components/tabs/daikin-tabs.cjs");
|
|
54
|
+
const daikinTag = require("./components/tag/daikin-tag.cjs");
|
|
51
55
|
const daikinTextArea = require("./components/text-area/daikin-text-area.cjs");
|
|
52
56
|
const daikinTextField = require("./components/text-field/daikin-text-field.cjs");
|
|
53
57
|
const daikinTextMaskedField = require("./components/text-masked-field/daikin-text-masked-field.cjs");
|
|
@@ -60,6 +64,7 @@ const daikinTree = require("./components/tree/daikin-tree.cjs");
|
|
|
60
64
|
const daikinTreeItem = require("./components/tree-item/daikin-tree-item.cjs");
|
|
61
65
|
const daikinTreeSection = require("./components/tree-section/daikin-tree-section.cjs");
|
|
62
66
|
const iconRegistry = require("./icon-registry.cjs");
|
|
67
|
+
const navigation = require("./navigation.cjs");
|
|
63
68
|
Object.defineProperty(exports, "DaikinAccordion", {
|
|
64
69
|
enumerable: true,
|
|
65
70
|
get: () => daikinAccordion.DaikinAccordion
|
|
@@ -141,6 +146,10 @@ Object.defineProperty(exports, "DaikinDropdownItem", {
|
|
|
141
146
|
enumerable: true,
|
|
142
147
|
get: () => daikinDropdownItem.DaikinDropdownItem
|
|
143
148
|
});
|
|
149
|
+
Object.defineProperty(exports, "DaikinEmptyState", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: () => daikinEmptyState.DaikinEmptyState
|
|
152
|
+
});
|
|
144
153
|
Object.defineProperty(exports, "DaikinIcon", {
|
|
145
154
|
enumerable: true,
|
|
146
155
|
get: () => daikinIcon.DaikinIcon
|
|
@@ -194,6 +203,14 @@ Object.defineProperty(exports, "DaikinModalHeader", {
|
|
|
194
203
|
enumerable: true,
|
|
195
204
|
get: () => daikinModalHeader.DaikinModalHeader
|
|
196
205
|
});
|
|
206
|
+
Object.defineProperty(exports, "DaikinNavigation", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: () => daikinNavigation.DaikinNavigation
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "DaikinNavigationItem", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: () => daikinNavigationItem.DaikinNavigationItem
|
|
213
|
+
});
|
|
197
214
|
Object.defineProperty(exports, "DaikinPagination", {
|
|
198
215
|
enumerable: true,
|
|
199
216
|
get: () => daikinPagination.DaikinPagination
|
|
@@ -254,6 +271,10 @@ Object.defineProperty(exports, "DaikinTabs", {
|
|
|
254
271
|
enumerable: true,
|
|
255
272
|
get: () => daikinTabs.DaikinTabs
|
|
256
273
|
});
|
|
274
|
+
Object.defineProperty(exports, "DaikinTag", {
|
|
275
|
+
enumerable: true,
|
|
276
|
+
get: () => daikinTag.DaikinTag
|
|
277
|
+
});
|
|
257
278
|
Object.defineProperty(exports, "DaikinTextArea", {
|
|
258
279
|
enumerable: true,
|
|
259
280
|
get: () => daikinTextArea.DaikinTextArea
|
|
@@ -311,3 +332,7 @@ Object.defineProperty(exports, "DaikinTreeSection", {
|
|
|
311
332
|
});
|
|
312
333
|
exports.IconRegistry = iconRegistry.IconRegistry;
|
|
313
334
|
exports.iconRegistry = iconRegistry.iconRegistry;
|
|
335
|
+
exports.getNavigationTarget = navigation.getNavigationTarget;
|
|
336
|
+
exports.getSPANavigationURL = navigation.getSPANavigationURL;
|
|
337
|
+
exports.isInternalNavigation = navigation.isInternalNavigation;
|
|
338
|
+
exports.shouldSPANavigate = navigation.shouldSPANavigate;
|
package/dist/cjs-dev/index.d.cts
CHANGED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("./base/dds-element.cjs");
|
|
4
|
+
require("./base/dds-form-element.cjs");
|
|
5
|
+
require("lit/decorators.js");
|
|
6
|
+
require("./base/define.cjs");
|
|
7
|
+
function isDDSNavigable(element) {
|
|
8
|
+
return typeof element === "object" && element != null && // We intentionally skip the `instanceof` check to avoid issues with multiple versions of the library.
|
|
9
|
+
"getDDSNavigationTarget" in element;
|
|
10
|
+
}
|
|
11
|
+
function getNavigationTarget(element) {
|
|
12
|
+
if (isDDSNavigable(element)) {
|
|
13
|
+
return element.getDDSNavigationTarget();
|
|
14
|
+
}
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
function isInternalNavigation(href, base = document.baseURI, origin = location.origin) {
|
|
18
|
+
var _a;
|
|
19
|
+
try {
|
|
20
|
+
const scheme = (_a = /^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(href)) == null ? void 0 : _a[0];
|
|
21
|
+
if (scheme && !/^https?:$/.test(scheme)) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
const url = new URL(href, base);
|
|
25
|
+
return url.origin === origin;
|
|
26
|
+
} catch {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function shouldSPANavigate(event, element = event == null ? void 0 : event.target, target = getNavigationTarget(element)) {
|
|
31
|
+
if (!element) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if (event) {
|
|
35
|
+
if (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
if (event.button !== 0) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (!target || (target.target || "_self") !== "_self" || !isInternalNavigation(target.href)) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function getNearestDDSNavigable(paths) {
|
|
48
|
+
return paths.find((path) => isDDSNavigable(path)) ?? null;
|
|
49
|
+
}
|
|
50
|
+
function getSPANavigationURL(event) {
|
|
51
|
+
const paths = event.composedPath();
|
|
52
|
+
const element = getNearestDDSNavigable(paths);
|
|
53
|
+
const target = element == null ? void 0 : element.getDDSNavigationTarget();
|
|
54
|
+
if (!target || !shouldSPANavigate(event, element, target)) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return target.href;
|
|
58
|
+
}
|
|
59
|
+
exports.getNavigationTarget = getNavigationTarget;
|
|
60
|
+
exports.getSPANavigationURL = getSPANavigationURL;
|
|
61
|
+
exports.isInternalNavigation = isInternalNavigation;
|
|
62
|
+
exports.shouldSPANavigate = shouldSPANavigate;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { NavigationTarget } from "./base/index.cjs";
|
|
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;
|