@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
|
@@ -29,51 +29,51 @@ const cvaIconButton = classVarianceAuthority.cva(
|
|
|
29
29
|
"size-full",
|
|
30
30
|
"font-daikinSerif",
|
|
31
31
|
"font-bold",
|
|
32
|
-
"rounded",
|
|
32
|
+
"rounded-sm",
|
|
33
33
|
"p-1",
|
|
34
34
|
"tracking-wide",
|
|
35
35
|
"text-nowrap",
|
|
36
|
-
"focus-visible:outline",
|
|
36
|
+
"focus-visible:outline-solid",
|
|
37
37
|
"focus-visible:outline-2",
|
|
38
38
|
"focus-visible:outline-offset-2",
|
|
39
39
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
40
|
-
"
|
|
41
|
-
"link-disabled:
|
|
40
|
+
"[--color-secondary:transparent]",
|
|
41
|
+
"link-disabled:[--color-primary:var(--dds-color-common-disabled)]"
|
|
42
42
|
],
|
|
43
43
|
{
|
|
44
44
|
variants: {
|
|
45
45
|
color: {
|
|
46
46
|
default: [
|
|
47
|
-
"link-enabled:
|
|
48
|
-
"link-enabled:
|
|
49
|
-
"link-enabled:
|
|
50
|
-
"link-enabled:
|
|
51
|
-
"link-enabled:
|
|
47
|
+
"link-enabled:[--color-primary:var(--dds-color-common-brand-default)]",
|
|
48
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-brand-hover)]",
|
|
49
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-hover)]",
|
|
50
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-brand-press)]",
|
|
51
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-press)]"
|
|
52
52
|
],
|
|
53
53
|
neutral: [
|
|
54
|
-
"link-enabled:
|
|
55
|
-
"link-enabled:
|
|
56
|
-
"link-enabled:
|
|
57
|
-
"link-enabled:
|
|
58
|
-
"link-enabled:
|
|
54
|
+
"link-enabled:[--color-primary:var(--dds-color-common-neutral-default)]",
|
|
55
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-neutral-hover)]",
|
|
56
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-neutral-hover)]",
|
|
57
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-neutral-press)]",
|
|
58
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-neutral-press)]"
|
|
59
59
|
],
|
|
60
60
|
danger: [
|
|
61
|
-
"link-enabled:
|
|
62
|
-
"link-enabled:
|
|
63
|
-
"link-enabled:
|
|
64
|
-
"link-enabled:
|
|
65
|
-
"link-enabled:
|
|
61
|
+
"link-enabled:[--color-primary:var(--dds-color-common-danger-default)]",
|
|
62
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-danger-hover)]",
|
|
63
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-danger-hover)]",
|
|
64
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-danger-press)]",
|
|
65
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-danger-press)]"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
variant: {
|
|
69
|
-
fill: ["text-ddt-color-common-text-inverse", "bg-
|
|
69
|
+
fill: ["text-ddt-color-common-text-inverse", "bg-(--color-primary)"],
|
|
70
70
|
outline: [
|
|
71
71
|
"border",
|
|
72
|
-
"text-
|
|
73
|
-
"bg-
|
|
74
|
-
"border-
|
|
72
|
+
"text-(--color-primary)",
|
|
73
|
+
"bg-(--color-secondary)",
|
|
74
|
+
"border-(--color-primary)"
|
|
75
75
|
],
|
|
76
|
-
ghost: ["text-
|
|
76
|
+
ghost: ["text-(--color-primary)", "bg-(--color-secondary)"]
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -99,6 +99,24 @@ exports.DaikinIconButton = class DaikinIconButton extends ddsFormElement.DDSForm
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* _Internal use._
|
|
104
|
+
* Returns the navigation target information.
|
|
105
|
+
* Used by navigation handling utilities.
|
|
106
|
+
*
|
|
107
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
108
|
+
*
|
|
109
|
+
* @private
|
|
110
|
+
*/
|
|
111
|
+
getDDSNavigationTarget() {
|
|
112
|
+
if (this.href == null || this.disabled || this.type !== "link") {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
href: this.href,
|
|
117
|
+
target: null
|
|
118
|
+
};
|
|
119
|
+
}
|
|
102
120
|
render() {
|
|
103
121
|
const iconButtonCN = cvaIconButton({
|
|
104
122
|
variant: this.variant,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSFormSubmitElement } from "../../base/index.cjs";
|
|
1
|
+
import { DDSFormSubmitElement, DDSNavigable, NavigationTarget } from "../../base/index.cjs";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.cjs";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
4
4
|
declare const cvaIconButton: (props?: ({
|
|
@@ -35,7 +35,7 @@ type IconButtonVariantProps = MergeVariantProps<typeof cvaIconButton>;
|
|
|
35
35
|
* </daikin-icon-button>
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
|
-
export declare class DaikinIconButton extends DDSFormSubmitElement {
|
|
38
|
+
export declare class DaikinIconButton extends DDSFormSubmitElement implements DDSNavigable {
|
|
39
39
|
static readonly styles: import('lit').CSSResult;
|
|
40
40
|
/**
|
|
41
41
|
* Variant of the button.
|
|
@@ -97,8 +97,18 @@ export declare class DaikinIconButton extends DDSFormSubmitElement {
|
|
|
97
97
|
* - `m`: 48px * 48px
|
|
98
98
|
*/
|
|
99
99
|
size: "s" | "m";
|
|
100
|
-
private _button;
|
|
100
|
+
private readonly _button;
|
|
101
101
|
constructor();
|
|
102
|
+
/**
|
|
103
|
+
* _Internal use._
|
|
104
|
+
* Returns the navigation target information.
|
|
105
|
+
* Used by navigation handling utilities.
|
|
106
|
+
*
|
|
107
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
108
|
+
*
|
|
109
|
+
* @private
|
|
110
|
+
*/
|
|
111
|
+
getDDSNavigationTarget(): NavigationTarget | null;
|
|
102
112
|
render(): import('lit-html').TemplateResult<1>;
|
|
103
113
|
/**
|
|
104
114
|
* Focuses on the inner button.
|
|
@@ -20,6 +20,7 @@ const daikinCombobox = require("./combobox/daikin-combobox.cjs");
|
|
|
20
20
|
const daikinDatePicker = require("./date-picker/daikin-date-picker.cjs");
|
|
21
21
|
const daikinDropdown = require("./dropdown/daikin-dropdown.cjs");
|
|
22
22
|
const daikinDropdownItem = require("./dropdown-item/daikin-dropdown-item.cjs");
|
|
23
|
+
const daikinEmptyState = require("./empty-state/daikin-empty-state.cjs");
|
|
23
24
|
const daikinIcon = require("./icon/daikin-icon.cjs");
|
|
24
25
|
const daikinIconButton = require("./icon-button/daikin-icon-button.cjs");
|
|
25
26
|
const daikinInlineNotification = require("./inline-notification/daikin-inline-notification.cjs");
|
|
@@ -33,6 +34,8 @@ const daikinMenu = require("./menu/daikin-menu.cjs");
|
|
|
33
34
|
const daikinModal = require("./modal/daikin-modal.cjs");
|
|
34
35
|
const daikinModalFooter = require("./modal-footer/daikin-modal-footer.cjs");
|
|
35
36
|
const daikinModalHeader = require("./modal-header/daikin-modal-header.cjs");
|
|
37
|
+
const daikinNavigation = require("./navigation/daikin-navigation.cjs");
|
|
38
|
+
const daikinNavigationItem = require("./navigation-item/daikin-navigation-item.cjs");
|
|
36
39
|
const daikinPagination = require("./pagination/daikin-pagination.cjs");
|
|
37
40
|
const daikinProgressBar = require("./progress-bar/daikin-progress-bar.cjs");
|
|
38
41
|
const daikinProgressIndicator = require("./progress-indicator/daikin-progress-indicator.cjs");
|
|
@@ -48,6 +51,7 @@ const daikinTable = require("./table/daikin-table.cjs");
|
|
|
48
51
|
const daikinTableCell = require("./table-cell/daikin-table-cell.cjs");
|
|
49
52
|
const daikinTableHeaderCell = require("./table-header-cell/daikin-table-header-cell.cjs");
|
|
50
53
|
const daikinTabs = require("./tabs/daikin-tabs.cjs");
|
|
54
|
+
const daikinTag = require("./tag/daikin-tag.cjs");
|
|
51
55
|
const daikinTextArea = require("./text-area/daikin-text-area.cjs");
|
|
52
56
|
const daikinTextField = require("./text-field/daikin-text-field.cjs");
|
|
53
57
|
const daikinTextMaskedField = require("./text-masked-field/daikin-text-masked-field.cjs");
|
|
@@ -140,6 +144,10 @@ Object.defineProperty(exports, "DaikinDropdownItem", {
|
|
|
140
144
|
enumerable: true,
|
|
141
145
|
get: () => daikinDropdownItem.DaikinDropdownItem
|
|
142
146
|
});
|
|
147
|
+
Object.defineProperty(exports, "DaikinEmptyState", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: () => daikinEmptyState.DaikinEmptyState
|
|
150
|
+
});
|
|
143
151
|
Object.defineProperty(exports, "DaikinIcon", {
|
|
144
152
|
enumerable: true,
|
|
145
153
|
get: () => daikinIcon.DaikinIcon
|
|
@@ -193,6 +201,14 @@ Object.defineProperty(exports, "DaikinModalHeader", {
|
|
|
193
201
|
enumerable: true,
|
|
194
202
|
get: () => daikinModalHeader.DaikinModalHeader
|
|
195
203
|
});
|
|
204
|
+
Object.defineProperty(exports, "DaikinNavigation", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: () => daikinNavigation.DaikinNavigation
|
|
207
|
+
});
|
|
208
|
+
Object.defineProperty(exports, "DaikinNavigationItem", {
|
|
209
|
+
enumerable: true,
|
|
210
|
+
get: () => daikinNavigationItem.DaikinNavigationItem
|
|
211
|
+
});
|
|
196
212
|
Object.defineProperty(exports, "DaikinPagination", {
|
|
197
213
|
enumerable: true,
|
|
198
214
|
get: () => daikinPagination.DaikinPagination
|
|
@@ -253,6 +269,10 @@ Object.defineProperty(exports, "DaikinTabs", {
|
|
|
253
269
|
enumerable: true,
|
|
254
270
|
get: () => daikinTabs.DaikinTabs
|
|
255
271
|
});
|
|
272
|
+
Object.defineProperty(exports, "DaikinTag", {
|
|
273
|
+
enumerable: true,
|
|
274
|
+
get: () => daikinTag.DaikinTag
|
|
275
|
+
});
|
|
256
276
|
Object.defineProperty(exports, "DaikinTextArea", {
|
|
257
277
|
enumerable: true,
|
|
258
278
|
get: () => daikinTextArea.DaikinTextArea
|
|
@@ -18,6 +18,7 @@ export * from "./combobox/index.cjs";
|
|
|
18
18
|
export * from "./date-picker/index.cjs";
|
|
19
19
|
export * from "./dropdown/index.cjs";
|
|
20
20
|
export * from "./dropdown-item/index.cjs";
|
|
21
|
+
export * from "./empty-state/index.cjs";
|
|
21
22
|
export * from "./icon/index.cjs";
|
|
22
23
|
export * from "./icon-button/index.cjs";
|
|
23
24
|
export * from "./inline-notification/index.cjs";
|
|
@@ -31,6 +32,8 @@ export * from "./menu/index.cjs";
|
|
|
31
32
|
export * from "./modal/index.cjs";
|
|
32
33
|
export * from "./modal-footer/index.cjs";
|
|
33
34
|
export * from "./modal-header/index.cjs";
|
|
35
|
+
export * from "./navigation/index.cjs";
|
|
36
|
+
export * from "./navigation-item/index.cjs";
|
|
34
37
|
export * from "./pagination/index.cjs";
|
|
35
38
|
export * from "./progress-bar/index.cjs";
|
|
36
39
|
export * from "./progress-indicator/index.cjs";
|
|
@@ -46,6 +49,7 @@ export * from "./table/index.cjs";
|
|
|
46
49
|
export * from "./table-cell/index.cjs";
|
|
47
50
|
export * from "./table-header-cell/index.cjs";
|
|
48
51
|
export * from "./tabs/index.cjs";
|
|
52
|
+
export * from "./tag/index.cjs";
|
|
49
53
|
export * from "./text-area/index.cjs";
|
|
50
54
|
export * from "./text-field/index.cjs";
|
|
51
55
|
export * from "./text-masked-field/index.cjs";
|
|
@@ -44,31 +44,34 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
44
44
|
"rounded-lg",
|
|
45
45
|
"border",
|
|
46
46
|
"border-ddt-color-divider",
|
|
47
|
-
"translate-x-
|
|
48
|
-
"translate-y-
|
|
49
|
-
"opacity-
|
|
47
|
+
"translate-x-(--move-offset-x,0)",
|
|
48
|
+
"translate-y-(--move-offset-y,0)",
|
|
49
|
+
"opacity-(--opacity,1)",
|
|
50
50
|
"[pointer-events:var(--pointer-events,auto)]",
|
|
51
|
-
"
|
|
51
|
+
"duration-(--transition-duration,var(--ddc-toast-animation-duration,0ms))"
|
|
52
52
|
],
|
|
53
53
|
inline: []
|
|
54
54
|
},
|
|
55
55
|
status: {
|
|
56
56
|
positive: [
|
|
57
57
|
"before:text-ddt-color-common-success",
|
|
58
|
-
"before:
|
|
58
|
+
"before:icon-[daikin--success]"
|
|
59
59
|
],
|
|
60
60
|
negative: [
|
|
61
61
|
"before:text-ddt-color-common-danger-default",
|
|
62
|
-
"before:
|
|
62
|
+
"before:icon-[daikin--error]"
|
|
63
63
|
],
|
|
64
64
|
warning: [
|
|
65
65
|
"before:text-ddt-color-common-warning",
|
|
66
|
-
"before:
|
|
66
|
+
"before:icon-[daikin--warning]"
|
|
67
|
+
],
|
|
68
|
+
alarm: [
|
|
69
|
+
"before:text-ddt-color-common-alarm",
|
|
70
|
+
"before:icon-[daikin--alarm]"
|
|
67
71
|
],
|
|
68
|
-
alarm: ["before:text-ddt-color-common-alarm", "before:i-daikin-alarm"],
|
|
69
72
|
information: [
|
|
70
73
|
"before:text-ddt-color-common-information",
|
|
71
|
-
"before:
|
|
74
|
+
"before:icon-[daikin--information]"
|
|
72
75
|
]
|
|
73
76
|
}
|
|
74
77
|
}
|
|
@@ -135,7 +138,7 @@ exports.DaikinInlineNotification = class DaikinInlineNotification extends ddsEle
|
|
|
135
138
|
@click=${this._handleClickClose}
|
|
136
139
|
>
|
|
137
140
|
<span
|
|
138
|
-
class="flex size-6 text-ddt-color-common-text-secondary relative
|
|
141
|
+
class="flex size-6 text-ddt-color-common-text-secondary relative icon-[daikin--close]"
|
|
139
142
|
></span>
|
|
140
143
|
</daikin-icon-button>` : lit.nothing}
|
|
141
144
|
</aside>`;
|
|
@@ -39,14 +39,14 @@ const cvaHelper = classVarianceAuthority.cva(
|
|
|
39
39
|
"text-ddt-color-common-danger-default",
|
|
40
40
|
"font-bold",
|
|
41
41
|
"before:size-4",
|
|
42
|
-
"before:
|
|
42
|
+
"before:icon-[daikin--error]",
|
|
43
43
|
"before:flex-none"
|
|
44
44
|
],
|
|
45
45
|
textareaLimitExceedError: [
|
|
46
46
|
"text-ddt-color-common-danger-default",
|
|
47
47
|
"font-bold",
|
|
48
48
|
"before:size-4",
|
|
49
|
-
"before:
|
|
49
|
+
"before:icon-[daikin--error]",
|
|
50
50
|
"before:flex-none"
|
|
51
51
|
],
|
|
52
52
|
none: ["hidden"]
|
|
@@ -21,19 +21,20 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
21
21
|
};
|
|
22
22
|
const LINK_CLASS_NAME = classVarianceAuthority.cva([
|
|
23
23
|
"font-daikinSerif",
|
|
24
|
+
"leading-[130%]",
|
|
24
25
|
"relative",
|
|
25
26
|
"link-enabled:text-ddt-color-link-text-default",
|
|
26
|
-
"link-enabled:
|
|
27
|
-
"link-enabled:
|
|
28
|
-
"link-enabled:
|
|
29
|
-
"link-enabled:
|
|
27
|
+
"hover:link-enabled:text-ddt-color-link-text-hover",
|
|
28
|
+
"hover:link-enabled:bg-ddt-color-common-surface-brand-hover",
|
|
29
|
+
"active:link-enabled:text-ddt-color-link-text-press",
|
|
30
|
+
"active:link-enabled:bg-ddt-color-common-surface-brand-press",
|
|
30
31
|
"link-disabled:text-ddt-color-common-disabled",
|
|
31
|
-
"focus-visible:outline",
|
|
32
|
+
"focus-visible:outline-solid",
|
|
32
33
|
"focus-visible:outline-2",
|
|
33
34
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
34
35
|
"focus-visible:outline-offset-2"
|
|
35
36
|
])();
|
|
36
|
-
const cvaContent = classVarianceAuthority.cva([
|
|
37
|
+
const cvaContent = classVarianceAuthority.cva([], {
|
|
37
38
|
variants: {
|
|
38
39
|
noUnderline: {
|
|
39
40
|
true: [],
|
|
@@ -55,21 +56,39 @@ exports.DaikinLink = class DaikinLink extends ddsElement.DDSElement {
|
|
|
55
56
|
this.size = "medium";
|
|
56
57
|
this.noUnderline = false;
|
|
57
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* _Internal use._
|
|
61
|
+
* Returns the navigation target information.
|
|
62
|
+
* Used by navigation handling utilities.
|
|
63
|
+
*
|
|
64
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
65
|
+
*
|
|
66
|
+
* @private
|
|
67
|
+
*/
|
|
68
|
+
getDDSNavigationTarget() {
|
|
69
|
+
if (this.href == null || this.disabled) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
href: this.href,
|
|
74
|
+
target: this.target
|
|
75
|
+
};
|
|
76
|
+
}
|
|
58
77
|
render() {
|
|
59
78
|
return lit.html`<a
|
|
60
79
|
class=${LINK_CLASS_NAME}
|
|
61
80
|
href=${ifDefined_js.ifDefined(this.disabled ? void 0 : this.href ?? void 0)}
|
|
62
81
|
target=${ifDefined_js.ifDefined(this.target ?? void 0)}
|
|
63
82
|
aria-disabled=${ifDefined_js.ifDefined(this.disabled ? "true" : void 0)}
|
|
64
|
-
><span class="inline-flex mr-
|
|
83
|
+
><span class="inline-flex mr-0.5 align-sub">
|
|
65
84
|
<slot name="left-icon" class="icon-size-4"
|
|
66
|
-
><span class="-mr-
|
|
85
|
+
><span class="-mr-0.5"></span></slot></span
|
|
67
86
|
><span
|
|
68
87
|
class=${cvaContent({ noUnderline: this.noUnderline, size: this.size })}
|
|
69
88
|
><slot></slot></span
|
|
70
|
-
><span class="inline-flex ml-
|
|
89
|
+
><span class="inline-flex ml-0.5 align-sub"
|
|
71
90
|
><slot name="right-icon" class="icon-size-4"
|
|
72
|
-
><span class="-ml-
|
|
91
|
+
><span class="-ml-0.5"></span></slot></span
|
|
73
92
|
></a>`;
|
|
74
93
|
}
|
|
75
94
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.cjs";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The link component uses the standard HTML <a> tag. Unlike the link used in the button component, it provides the style of the text as it is.
|
|
4
4
|
*
|
|
@@ -16,7 +16,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
16
16
|
* </daikin-link>
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare class DaikinLink extends DDSElement {
|
|
19
|
+
export declare class DaikinLink extends DDSElement implements DDSNavigable {
|
|
20
20
|
static readonly styles: import('lit').CSSResult;
|
|
21
21
|
/**
|
|
22
22
|
* Link `href`.
|
|
@@ -45,6 +45,16 @@ export declare class DaikinLink extends DDSElement {
|
|
|
45
45
|
* Whether or not to display an underline.
|
|
46
46
|
*/
|
|
47
47
|
noUnderline: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* _Internal use._
|
|
50
|
+
* Returns the navigation target information.
|
|
51
|
+
* Used by navigation handling utilities.
|
|
52
|
+
*
|
|
53
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
54
|
+
*
|
|
55
|
+
* @private
|
|
56
|
+
*/
|
|
57
|
+
getDDSNavigationTarget(): NavigationTarget | null;
|
|
48
58
|
render(): import('lit-html').TemplateResult<1>;
|
|
49
59
|
}
|
|
50
60
|
declare global {
|
|
@@ -26,16 +26,16 @@ const INNER_CN = classVarianceAuthority.cva([
|
|
|
26
26
|
"before:inset-0",
|
|
27
27
|
"before:w-full",
|
|
28
28
|
"before:h-full",
|
|
29
|
-
"focus-visible:outline-
|
|
30
|
-
"focus-visible:before:outline",
|
|
29
|
+
"focus-visible:outline-hidden",
|
|
30
|
+
"focus-visible:before:outline-solid",
|
|
31
31
|
"focus-visible:before:outline-2",
|
|
32
32
|
"focus-visible:before:-outline-offset-2",
|
|
33
33
|
"focus-visible:before:outline-ddt-color-common-border-focus",
|
|
34
34
|
// For buttons and links
|
|
35
|
-
"
|
|
36
|
-
"link-enabled:before:
|
|
35
|
+
"not-active:group-hover:link-enabled:before:bg-ddt-color-common-surface-hover",
|
|
36
|
+
"active:link-enabled:before:bg-ddt-color-common-surface-press",
|
|
37
37
|
// For text
|
|
38
|
-
"[&:not(a,button)]:before:
|
|
38
|
+
"group-hover:[&:not(a,button)]:before:bg-ddt-color-common-surface-hover"
|
|
39
39
|
])();
|
|
40
40
|
const cvaContent = classVarianceAuthority.cva(["block", "pl-2", "pr-3", "text-left"], {
|
|
41
41
|
variants: {
|
|
@@ -91,6 +91,24 @@ exports.DaikinListItem = class DaikinListItem extends ddsElement.DDSElement {
|
|
|
91
91
|
_handleClickAction(event) {
|
|
92
92
|
event.stopPropagation();
|
|
93
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* _Internal use._
|
|
96
|
+
* Returns the navigation target information.
|
|
97
|
+
* Used by navigation handling utilities.
|
|
98
|
+
*
|
|
99
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
100
|
+
*
|
|
101
|
+
* @private
|
|
102
|
+
*/
|
|
103
|
+
getDDSNavigationTarget() {
|
|
104
|
+
if (this.href == null || this.disabled || this.type !== "link") {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
href: this.href,
|
|
109
|
+
target: null
|
|
110
|
+
};
|
|
111
|
+
}
|
|
94
112
|
render() {
|
|
95
113
|
const disabled = this._disabled;
|
|
96
114
|
const content = lit.html`<span class="flex items-center w-full relative">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.cjs";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The list item component is used to represent a single item in a list. Please use it within the `daikin-list` component.
|
|
4
4
|
*
|
|
@@ -31,7 +31,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
31
31
|
* <daikin-list-item>List item label</daikin-list-item>
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
export declare class DaikinListItem extends DDSElement {
|
|
34
|
+
export declare class DaikinListItem extends DDSElement implements DDSNavigable {
|
|
35
35
|
static readonly styles: import('lit').CSSResult;
|
|
36
36
|
/**
|
|
37
37
|
* Type of the list item.
|
|
@@ -58,10 +58,20 @@ export declare class DaikinListItem extends DDSElement {
|
|
|
58
58
|
* Ignored if the `type` is `"text"`.
|
|
59
59
|
*/
|
|
60
60
|
disabled: boolean;
|
|
61
|
-
private _focusableElement;
|
|
61
|
+
private readonly _focusableElement;
|
|
62
62
|
private get _disabled();
|
|
63
63
|
private _handleClickAction;
|
|
64
64
|
constructor();
|
|
65
|
+
/**
|
|
66
|
+
* _Internal use._
|
|
67
|
+
* Returns the navigation target information.
|
|
68
|
+
* Used by navigation handling utilities.
|
|
69
|
+
*
|
|
70
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
71
|
+
*
|
|
72
|
+
* @private
|
|
73
|
+
*/
|
|
74
|
+
getDDSNavigationTarget(): NavigationTarget | null;
|
|
65
75
|
render(): import('lit-html').TemplateResult<1>;
|
|
66
76
|
/**
|
|
67
77
|
* Focuses on the inner button or link.
|
|
@@ -24,7 +24,7 @@ const cvaLoadingContainer = classVarianceAuthority.cva(
|
|
|
24
24
|
variants: {
|
|
25
25
|
background: {
|
|
26
26
|
false: ["bg-transparent"],
|
|
27
|
-
true: ["bg-ddt-color-common-background-default", "rounded"]
|
|
27
|
+
true: ["bg-ddt-color-common-background-default", "rounded-sm"]
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -42,7 +42,7 @@ const cvaLoading = classVarianceAuthority.cva(
|
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
44
|
size: {
|
|
45
|
-
small: ["size-
|
|
45
|
+
small: ["size-4.5", "border-2"],
|
|
46
46
|
medium: ["size-9", "border-4"]
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -34,15 +34,15 @@ const cvaWrapper = classVarianceAuthority.cva(
|
|
|
34
34
|
type: {
|
|
35
35
|
logo: [],
|
|
36
36
|
link: [
|
|
37
|
-
"focus-visible:outline",
|
|
37
|
+
"focus-visible:outline-solid",
|
|
38
38
|
"focus-visible:outline-2",
|
|
39
39
|
"focus-visible:outline-offset-2",
|
|
40
40
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
mode: {
|
|
44
|
-
positive: ["
|
|
45
|
-
negative: ["
|
|
44
|
+
positive: ["icon-[daikin--logo-positive]"],
|
|
45
|
+
negative: ["icon-[daikin--logo-negative]"]
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -53,8 +53,26 @@ exports.DaikinLogo = class DaikinLogo extends ddsElement.DDSElement {
|
|
|
53
53
|
this.href = null;
|
|
54
54
|
this.target = null;
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* _Internal use._
|
|
58
|
+
* Returns the navigation target information.
|
|
59
|
+
* Used by navigation handling utilities.
|
|
60
|
+
*
|
|
61
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
62
|
+
*
|
|
63
|
+
* @private
|
|
64
|
+
*/
|
|
65
|
+
getDDSNavigationTarget() {
|
|
66
|
+
if (this.href == null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
href: this.href,
|
|
71
|
+
target: this.target
|
|
72
|
+
};
|
|
73
|
+
}
|
|
56
74
|
render() {
|
|
57
|
-
if (
|
|
75
|
+
if (this.href == null) {
|
|
58
76
|
return lit.html`<span
|
|
59
77
|
class=${cvaWrapper({ type: "logo", mode: this.mode })}
|
|
60
78
|
role="img"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.cjs";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* The logo is a UI element that represents a brand, company or service. It serves as a visual identifier, helping users recognize and navigate within a specific application or website.
|
|
4
4
|
*
|
|
@@ -18,7 +18,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
18
18
|
* </div>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export declare class DaikinLogo extends DDSElement {
|
|
21
|
+
export declare class DaikinLogo extends DDSElement implements DDSNavigable {
|
|
22
22
|
static readonly styles: import('lit').CSSResult;
|
|
23
23
|
/**
|
|
24
24
|
* Link `href`.
|
|
@@ -43,7 +43,17 @@ export declare class DaikinLogo extends DDSElement {
|
|
|
43
43
|
* @default "positive"
|
|
44
44
|
*/
|
|
45
45
|
mode: "positive" | "negative";
|
|
46
|
-
private _focusableElement;
|
|
46
|
+
private readonly _focusableElement;
|
|
47
|
+
/**
|
|
48
|
+
* _Internal use._
|
|
49
|
+
* Returns the navigation target information.
|
|
50
|
+
* Used by navigation handling utilities.
|
|
51
|
+
*
|
|
52
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
53
|
+
*
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
getDDSNavigationTarget(): NavigationTarget | null;
|
|
47
57
|
render(): import('lit-html').TemplateResult<1>;
|
|
48
58
|
/**
|
|
49
59
|
* Focuses on the inner link.
|
|
@@ -19,6 +19,7 @@ const daikinBreadcrumbItem = require("../breadcrumb-item/daikin-breadcrumb-item.
|
|
|
19
19
|
const daikinButton = require("../button/daikin-button.cjs");
|
|
20
20
|
const daikinIconButton = require("../icon-button/daikin-icon-button.cjs");
|
|
21
21
|
const daikinListItem = require("../list-item/daikin-list-item.cjs");
|
|
22
|
+
const daikinNavigationItem = require("../navigation-item/daikin-navigation-item.cjs");
|
|
22
23
|
var __defProp = Object.defineProperty;
|
|
23
24
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
24
25
|
var __decorateClass = (decorators2, target, key, kind) => {
|
|
@@ -30,8 +31,8 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
30
31
|
return result;
|
|
31
32
|
};
|
|
32
33
|
const cvaMenu = classVarianceAuthority.cva([
|
|
33
|
-
"left-
|
|
34
|
-
"top-
|
|
34
|
+
"left-(--floating-x,0)",
|
|
35
|
+
"top-(--floating-y,0)",
|
|
35
36
|
"w-max",
|
|
36
37
|
"py-2",
|
|
37
38
|
"border",
|
|
@@ -69,12 +70,13 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
69
70
|
* - `<daikin-icon-button>`
|
|
70
71
|
* - `<daikin-avatar>`
|
|
71
72
|
* - `<daikin-breadcrumb-item>`
|
|
73
|
+
* - `<daikin-navigation-item>`
|
|
72
74
|
*
|
|
73
75
|
* Returns the first matching element from the slot.
|
|
74
76
|
*/
|
|
75
77
|
get triggerElement() {
|
|
76
78
|
for (const control of this._controls) {
|
|
77
|
-
if (control instanceof daikinButton.DaikinButton || control instanceof daikinIconButton.DaikinIconButton && control.type === "button" || control instanceof daikinAvatar.DaikinAvatar && control.type === "button" || control instanceof daikinBreadcrumbItem.DaikinBreadcrumbItem) {
|
|
79
|
+
if (control instanceof daikinButton.DaikinButton || control instanceof daikinIconButton.DaikinIconButton && control.type === "button" || control instanceof daikinAvatar.DaikinAvatar && control.type === "button" || control instanceof daikinBreadcrumbItem.DaikinBreadcrumbItem || control instanceof daikinNavigationItem.DaikinNavigationItem && control.type === "menu") {
|
|
78
80
|
return control;
|
|
79
81
|
}
|
|
80
82
|
}
|
|
@@ -90,6 +92,10 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
90
92
|
control.buttonAriaHaspopup = "menu";
|
|
91
93
|
} else if (control instanceof daikinAvatar.DaikinAvatar && control.type === "button") {
|
|
92
94
|
control.avatarAriaHaspopup = "menu";
|
|
95
|
+
} else if (control instanceof daikinNavigationItem.DaikinNavigationItem && control.type === "menu") {
|
|
96
|
+
control.navigationItemAriaHaspopup = "menu";
|
|
97
|
+
} else if (control instanceof daikinBreadcrumbItem.DaikinBreadcrumbItem) {
|
|
98
|
+
control.breadcrumbAriaHaspopup = "menu";
|
|
93
99
|
}
|
|
94
100
|
}
|
|
95
101
|
for (const daikinList of this._lists) {
|
|
@@ -106,6 +112,10 @@ exports.DaikinMenu = class DaikinMenu extends ddsElement.DDSElement {
|
|
|
106
112
|
control.buttonAriaExpanded = `${this.open}`;
|
|
107
113
|
} else if (control instanceof daikinAvatar.DaikinAvatar && control.type === "button") {
|
|
108
114
|
control.avatarAriaExpanded = `${this.open}`;
|
|
115
|
+
} else if (control instanceof daikinNavigationItem.DaikinNavigationItem && control.type === "menu") {
|
|
116
|
+
control.navigationItemAriaExpanded = `${this.open}`;
|
|
117
|
+
} else if (control instanceof daikinBreadcrumbItem.DaikinBreadcrumbItem) {
|
|
118
|
+
control.breadcrumbAriaExpanded = `${this.open}`;
|
|
109
119
|
}
|
|
110
120
|
}
|
|
111
121
|
}
|
|
@@ -201,13 +211,17 @@ exports.DaikinMenu.styles = lit.css`
|
|
|
201
211
|
|
|
202
212
|
--ddc-menu-spacing: ${lit.unsafeCSS(DEFAULT_MENU_SPACING)};
|
|
203
213
|
}
|
|
214
|
+
|
|
215
|
+
:host([open]) ::slotted(daikin-navigation-item) {
|
|
216
|
+
--chevron-rotation: 180deg;
|
|
217
|
+
}
|
|
204
218
|
`;
|
|
205
219
|
__decorateClass([
|
|
206
220
|
decorators_js.queryAssignedElements({ slot: "menu", selector: "daikin-list" })
|
|
207
221
|
], exports.DaikinMenu.prototype, "_lists", 2);
|
|
208
222
|
__decorateClass([
|
|
209
223
|
decorators_js.queryAssignedElements({
|
|
210
|
-
selector: "daikin-button,daikin-icon-button,daikin-avatar,daikin-breadcrumb-item"
|
|
224
|
+
selector: "daikin-button,daikin-icon-button,daikin-avatar,daikin-breadcrumb-item,daikin-navigation-item"
|
|
211
225
|
})
|
|
212
226
|
], exports.DaikinMenu.prototype, "_controls", 2);
|
|
213
227
|
__decorateClass([
|