@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
|
@@ -27,51 +27,51 @@ const cvaIconButton = cva(
|
|
|
27
27
|
"size-full",
|
|
28
28
|
"font-daikinSerif",
|
|
29
29
|
"font-bold",
|
|
30
|
-
"rounded",
|
|
30
|
+
"rounded-sm",
|
|
31
31
|
"p-1",
|
|
32
32
|
"tracking-wide",
|
|
33
33
|
"text-nowrap",
|
|
34
|
-
"focus-visible:outline",
|
|
34
|
+
"focus-visible:outline-solid",
|
|
35
35
|
"focus-visible:outline-2",
|
|
36
36
|
"focus-visible:outline-offset-2",
|
|
37
37
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
38
|
-
"
|
|
39
|
-
"link-disabled:
|
|
38
|
+
"[--color-secondary:transparent]",
|
|
39
|
+
"link-disabled:[--color-primary:var(--dds-color-common-disabled)]"
|
|
40
40
|
],
|
|
41
41
|
{
|
|
42
42
|
variants: {
|
|
43
43
|
color: {
|
|
44
44
|
default: [
|
|
45
|
-
"link-enabled:
|
|
46
|
-
"link-enabled:
|
|
47
|
-
"link-enabled:
|
|
48
|
-
"link-enabled:
|
|
49
|
-
"link-enabled:
|
|
45
|
+
"link-enabled:[--color-primary:var(--dds-color-common-brand-default)]",
|
|
46
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-brand-hover)]",
|
|
47
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-hover)]",
|
|
48
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-brand-press)]",
|
|
49
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-press)]"
|
|
50
50
|
],
|
|
51
51
|
neutral: [
|
|
52
|
-
"link-enabled:
|
|
53
|
-
"link-enabled:
|
|
54
|
-
"link-enabled:
|
|
55
|
-
"link-enabled:
|
|
56
|
-
"link-enabled:
|
|
52
|
+
"link-enabled:[--color-primary:var(--dds-color-common-neutral-default)]",
|
|
53
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-neutral-hover)]",
|
|
54
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-neutral-hover)]",
|
|
55
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-neutral-press)]",
|
|
56
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-neutral-press)]"
|
|
57
57
|
],
|
|
58
58
|
danger: [
|
|
59
|
-
"link-enabled:
|
|
60
|
-
"link-enabled:
|
|
61
|
-
"link-enabled:
|
|
62
|
-
"link-enabled:
|
|
63
|
-
"link-enabled:
|
|
59
|
+
"link-enabled:[--color-primary:var(--dds-color-common-danger-default)]",
|
|
60
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-danger-hover)]",
|
|
61
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-danger-hover)]",
|
|
62
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-danger-press)]",
|
|
63
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-danger-press)]"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
variant: {
|
|
67
|
-
fill: ["text-ddt-color-common-text-inverse", "bg-
|
|
67
|
+
fill: ["text-ddt-color-common-text-inverse", "bg-(--color-primary)"],
|
|
68
68
|
outline: [
|
|
69
69
|
"border",
|
|
70
|
-
"text-
|
|
71
|
-
"bg-
|
|
72
|
-
"border-
|
|
70
|
+
"text-(--color-primary)",
|
|
71
|
+
"bg-(--color-secondary)",
|
|
72
|
+
"border-(--color-primary)"
|
|
73
73
|
],
|
|
74
|
-
ghost: ["text-
|
|
74
|
+
ghost: ["text-(--color-primary)", "bg-(--color-secondary)"]
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -97,6 +97,24 @@ let DaikinIconButton = class extends DDSFormSubmitElement {
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* _Internal use._
|
|
102
|
+
* Returns the navigation target information.
|
|
103
|
+
* Used by navigation handling utilities.
|
|
104
|
+
*
|
|
105
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
106
|
+
*
|
|
107
|
+
* @private
|
|
108
|
+
*/
|
|
109
|
+
getDDSNavigationTarget() {
|
|
110
|
+
if (this.href == null || this.disabled || this.type !== "link") {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
href: this.href,
|
|
115
|
+
target: null
|
|
116
|
+
};
|
|
117
|
+
}
|
|
100
118
|
render() {
|
|
101
119
|
const iconButtonCN = cvaIconButton({
|
|
102
120
|
variant: this.variant,
|
|
@@ -18,6 +18,7 @@ export * from "./combobox/index.js";
|
|
|
18
18
|
export * from "./date-picker/index.js";
|
|
19
19
|
export * from "./dropdown/index.js";
|
|
20
20
|
export * from "./dropdown-item/index.js";
|
|
21
|
+
export * from "./empty-state/index.js";
|
|
21
22
|
export * from "./icon/index.js";
|
|
22
23
|
export * from "./icon-button/index.js";
|
|
23
24
|
export * from "./inline-notification/index.js";
|
|
@@ -31,6 +32,8 @@ export * from "./menu/index.js";
|
|
|
31
32
|
export * from "./modal/index.js";
|
|
32
33
|
export * from "./modal-footer/index.js";
|
|
33
34
|
export * from "./modal-header/index.js";
|
|
35
|
+
export * from "./navigation/index.js";
|
|
36
|
+
export * from "./navigation-item/index.js";
|
|
34
37
|
export * from "./pagination/index.js";
|
|
35
38
|
export * from "./progress-bar/index.js";
|
|
36
39
|
export * from "./progress-indicator/index.js";
|
|
@@ -46,6 +49,7 @@ export * from "./table/index.js";
|
|
|
46
49
|
export * from "./table-cell/index.js";
|
|
47
50
|
export * from "./table-header-cell/index.js";
|
|
48
51
|
export * from "./tabs/index.js";
|
|
52
|
+
export * from "./tag/index.js";
|
|
49
53
|
export * from "./text-area/index.js";
|
|
50
54
|
export * from "./text-field/index.js";
|
|
51
55
|
export * from "./text-masked-field/index.js";
|
|
@@ -18,6 +18,7 @@ import { DaikinCombobox, defaultFilterFn } from "./combobox/daikin-combobox.js";
|
|
|
18
18
|
import { DaikinDatePicker } from "./date-picker/daikin-date-picker.js";
|
|
19
19
|
import { DaikinDropdown } from "./dropdown/daikin-dropdown.js";
|
|
20
20
|
import { DaikinDropdownItem } from "./dropdown-item/daikin-dropdown-item.js";
|
|
21
|
+
import { DaikinEmptyState } from "./empty-state/daikin-empty-state.js";
|
|
21
22
|
import { DaikinIcon, iconList } from "./icon/daikin-icon.js";
|
|
22
23
|
import { DaikinIconButton } from "./icon-button/daikin-icon-button.js";
|
|
23
24
|
import { DaikinInlineNotification } from "./inline-notification/daikin-inline-notification.js";
|
|
@@ -31,6 +32,8 @@ import { DaikinMenu } from "./menu/daikin-menu.js";
|
|
|
31
32
|
import { DaikinModal } from "./modal/daikin-modal.js";
|
|
32
33
|
import { DaikinModalFooter } from "./modal-footer/daikin-modal-footer.js";
|
|
33
34
|
import { DaikinModalHeader } from "./modal-header/daikin-modal-header.js";
|
|
35
|
+
import { DaikinNavigation } from "./navigation/daikin-navigation.js";
|
|
36
|
+
import { DaikinNavigationItem } from "./navigation-item/daikin-navigation-item.js";
|
|
34
37
|
import { DaikinPagination } from "./pagination/daikin-pagination.js";
|
|
35
38
|
import { DaikinProgressBar } from "./progress-bar/daikin-progress-bar.js";
|
|
36
39
|
import { DaikinProgressIndicator } from "./progress-indicator/daikin-progress-indicator.js";
|
|
@@ -46,6 +49,7 @@ import { DaikinTable } from "./table/daikin-table.js";
|
|
|
46
49
|
import { DaikinTableCell } from "./table-cell/daikin-table-cell.js";
|
|
47
50
|
import { DaikinTableHeaderCell } from "./table-header-cell/daikin-table-header-cell.js";
|
|
48
51
|
import { DaikinTabs } from "./tabs/daikin-tabs.js";
|
|
52
|
+
import { DaikinTag } from "./tag/daikin-tag.js";
|
|
49
53
|
import { DaikinTextArea } from "./text-area/daikin-text-area.js";
|
|
50
54
|
import { DaikinTextField } from "./text-field/daikin-text-field.js";
|
|
51
55
|
import { DaikinTextMaskedField } from "./text-masked-field/daikin-text-masked-field.js";
|
|
@@ -78,6 +82,7 @@ export {
|
|
|
78
82
|
DaikinDatePicker,
|
|
79
83
|
DaikinDropdown,
|
|
80
84
|
DaikinDropdownItem,
|
|
85
|
+
DaikinEmptyState,
|
|
81
86
|
DaikinIcon,
|
|
82
87
|
DaikinIconButton,
|
|
83
88
|
DaikinInlineNotification,
|
|
@@ -91,6 +96,8 @@ export {
|
|
|
91
96
|
DaikinModal,
|
|
92
97
|
DaikinModalFooter,
|
|
93
98
|
DaikinModalHeader,
|
|
99
|
+
DaikinNavigation,
|
|
100
|
+
DaikinNavigationItem,
|
|
94
101
|
DaikinPagination,
|
|
95
102
|
DaikinProgressBar,
|
|
96
103
|
DaikinProgressIndicator,
|
|
@@ -106,6 +113,7 @@ export {
|
|
|
106
113
|
DaikinTableCell,
|
|
107
114
|
DaikinTableHeaderCell,
|
|
108
115
|
DaikinTabs,
|
|
116
|
+
DaikinTag,
|
|
109
117
|
DaikinTextArea,
|
|
110
118
|
DaikinTextField,
|
|
111
119
|
DaikinTextMaskedField,
|
|
@@ -42,31 +42,34 @@ const cvaContainer = cva(
|
|
|
42
42
|
"rounded-lg",
|
|
43
43
|
"border",
|
|
44
44
|
"border-ddt-color-divider",
|
|
45
|
-
"translate-x-
|
|
46
|
-
"translate-y-
|
|
47
|
-
"opacity-
|
|
45
|
+
"translate-x-(--move-offset-x,0)",
|
|
46
|
+
"translate-y-(--move-offset-y,0)",
|
|
47
|
+
"opacity-(--opacity,1)",
|
|
48
48
|
"[pointer-events:var(--pointer-events,auto)]",
|
|
49
|
-
"
|
|
49
|
+
"duration-(--transition-duration,var(--ddc-toast-animation-duration,0ms))"
|
|
50
50
|
],
|
|
51
51
|
inline: []
|
|
52
52
|
},
|
|
53
53
|
status: {
|
|
54
54
|
positive: [
|
|
55
55
|
"before:text-ddt-color-common-success",
|
|
56
|
-
"before:
|
|
56
|
+
"before:icon-[daikin--success]"
|
|
57
57
|
],
|
|
58
58
|
negative: [
|
|
59
59
|
"before:text-ddt-color-common-danger-default",
|
|
60
|
-
"before:
|
|
60
|
+
"before:icon-[daikin--error]"
|
|
61
61
|
],
|
|
62
62
|
warning: [
|
|
63
63
|
"before:text-ddt-color-common-warning",
|
|
64
|
-
"before:
|
|
64
|
+
"before:icon-[daikin--warning]"
|
|
65
|
+
],
|
|
66
|
+
alarm: [
|
|
67
|
+
"before:text-ddt-color-common-alarm",
|
|
68
|
+
"before:icon-[daikin--alarm]"
|
|
65
69
|
],
|
|
66
|
-
alarm: ["before:text-ddt-color-common-alarm", "before:i-daikin-alarm"],
|
|
67
70
|
information: [
|
|
68
71
|
"before:text-ddt-color-common-information",
|
|
69
|
-
"before:
|
|
72
|
+
"before:icon-[daikin--information]"
|
|
70
73
|
]
|
|
71
74
|
}
|
|
72
75
|
}
|
|
@@ -133,7 +136,7 @@ let DaikinInlineNotification = class extends DDSElement {
|
|
|
133
136
|
@click=${this._handleClickClose}
|
|
134
137
|
>
|
|
135
138
|
<span
|
|
136
|
-
class="flex size-6 text-ddt-color-common-text-secondary relative
|
|
139
|
+
class="flex size-6 text-ddt-color-common-text-secondary relative icon-[daikin--close]"
|
|
137
140
|
></span>
|
|
138
141
|
</daikin-icon-button>` : nothing}
|
|
139
142
|
</aside>`;
|
|
@@ -37,14 +37,14 @@ const cvaHelper = cva(
|
|
|
37
37
|
"text-ddt-color-common-danger-default",
|
|
38
38
|
"font-bold",
|
|
39
39
|
"before:size-4",
|
|
40
|
-
"before:
|
|
40
|
+
"before:icon-[daikin--error]",
|
|
41
41
|
"before:flex-none"
|
|
42
42
|
],
|
|
43
43
|
textareaLimitExceedError: [
|
|
44
44
|
"text-ddt-color-common-danger-default",
|
|
45
45
|
"font-bold",
|
|
46
46
|
"before:size-4",
|
|
47
|
-
"before:
|
|
47
|
+
"before:icon-[daikin--error]",
|
|
48
48
|
"before:flex-none"
|
|
49
49
|
],
|
|
50
50
|
none: ["hidden"]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.js";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The 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.js";
|
|
|
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 {
|
|
@@ -19,19 +19,20 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
19
19
|
};
|
|
20
20
|
const LINK_CLASS_NAME = cva([
|
|
21
21
|
"font-daikinSerif",
|
|
22
|
+
"leading-[130%]",
|
|
22
23
|
"relative",
|
|
23
24
|
"link-enabled:text-ddt-color-link-text-default",
|
|
24
|
-
"link-enabled:
|
|
25
|
-
"link-enabled:
|
|
26
|
-
"link-enabled:
|
|
27
|
-
"link-enabled:
|
|
25
|
+
"hover:link-enabled:text-ddt-color-link-text-hover",
|
|
26
|
+
"hover:link-enabled:bg-ddt-color-common-surface-brand-hover",
|
|
27
|
+
"active:link-enabled:text-ddt-color-link-text-press",
|
|
28
|
+
"active:link-enabled:bg-ddt-color-common-surface-brand-press",
|
|
28
29
|
"link-disabled:text-ddt-color-common-disabled",
|
|
29
|
-
"focus-visible:outline",
|
|
30
|
+
"focus-visible:outline-solid",
|
|
30
31
|
"focus-visible:outline-2",
|
|
31
32
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
32
33
|
"focus-visible:outline-offset-2"
|
|
33
34
|
])();
|
|
34
|
-
const cvaContent = cva([
|
|
35
|
+
const cvaContent = cva([], {
|
|
35
36
|
variants: {
|
|
36
37
|
noUnderline: {
|
|
37
38
|
true: [],
|
|
@@ -53,21 +54,39 @@ let DaikinLink = class extends DDSElement {
|
|
|
53
54
|
this.size = "medium";
|
|
54
55
|
this.noUnderline = false;
|
|
55
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* _Internal use._
|
|
59
|
+
* Returns the navigation target information.
|
|
60
|
+
* Used by navigation handling utilities.
|
|
61
|
+
*
|
|
62
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
63
|
+
*
|
|
64
|
+
* @private
|
|
65
|
+
*/
|
|
66
|
+
getDDSNavigationTarget() {
|
|
67
|
+
if (this.href == null || this.disabled) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
href: this.href,
|
|
72
|
+
target: this.target
|
|
73
|
+
};
|
|
74
|
+
}
|
|
56
75
|
render() {
|
|
57
76
|
return html`<a
|
|
58
77
|
class=${LINK_CLASS_NAME}
|
|
59
78
|
href=${ifDefined(this.disabled ? void 0 : this.href ?? void 0)}
|
|
60
79
|
target=${ifDefined(this.target ?? void 0)}
|
|
61
80
|
aria-disabled=${ifDefined(this.disabled ? "true" : void 0)}
|
|
62
|
-
><span class="inline-flex mr-
|
|
81
|
+
><span class="inline-flex mr-0.5 align-sub">
|
|
63
82
|
<slot name="left-icon" class="icon-size-4"
|
|
64
|
-
><span class="-mr-
|
|
83
|
+
><span class="-mr-0.5"></span></slot></span
|
|
65
84
|
><span
|
|
66
85
|
class=${cvaContent({ noUnderline: this.noUnderline, size: this.size })}
|
|
67
86
|
><slot></slot></span
|
|
68
|
-
><span class="inline-flex ml-
|
|
87
|
+
><span class="inline-flex ml-0.5 align-sub"
|
|
69
88
|
><slot name="right-icon" class="icon-size-4"
|
|
70
|
-
><span class="-ml-
|
|
89
|
+
><span class="-ml-0.5"></span></slot></span
|
|
71
90
|
></a>`;
|
|
72
91
|
}
|
|
73
92
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.js";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The 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.js";
|
|
|
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,16 +24,16 @@ const INNER_CN = cva([
|
|
|
24
24
|
"before:inset-0",
|
|
25
25
|
"before:w-full",
|
|
26
26
|
"before:h-full",
|
|
27
|
-
"focus-visible:outline-
|
|
28
|
-
"focus-visible:before:outline",
|
|
27
|
+
"focus-visible:outline-hidden",
|
|
28
|
+
"focus-visible:before:outline-solid",
|
|
29
29
|
"focus-visible:before:outline-2",
|
|
30
30
|
"focus-visible:before:-outline-offset-2",
|
|
31
31
|
"focus-visible:before:outline-ddt-color-common-border-focus",
|
|
32
32
|
// For buttons and links
|
|
33
|
-
"
|
|
34
|
-
"link-enabled:before:
|
|
33
|
+
"not-active:group-hover:link-enabled:before:bg-ddt-color-common-surface-hover",
|
|
34
|
+
"active:link-enabled:before:bg-ddt-color-common-surface-press",
|
|
35
35
|
// For text
|
|
36
|
-
"[&:not(a,button)]:before:
|
|
36
|
+
"group-hover:[&:not(a,button)]:before:bg-ddt-color-common-surface-hover"
|
|
37
37
|
])();
|
|
38
38
|
const cvaContent = cva(["block", "pl-2", "pr-3", "text-left"], {
|
|
39
39
|
variants: {
|
|
@@ -89,6 +89,24 @@ let DaikinListItem = class extends DDSElement {
|
|
|
89
89
|
_handleClickAction(event) {
|
|
90
90
|
event.stopPropagation();
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* _Internal use._
|
|
94
|
+
* Returns the navigation target information.
|
|
95
|
+
* Used by navigation handling utilities.
|
|
96
|
+
*
|
|
97
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
98
|
+
*
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
getDDSNavigationTarget() {
|
|
102
|
+
if (this.href == null || this.disabled || this.type !== "link") {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
href: this.href,
|
|
107
|
+
target: null
|
|
108
|
+
};
|
|
109
|
+
}
|
|
92
110
|
render() {
|
|
93
111
|
const disabled = this._disabled;
|
|
94
112
|
const content = html`<span class="flex items-center w-full relative">
|
|
@@ -22,7 +22,7 @@ const cvaLoadingContainer = cva(
|
|
|
22
22
|
variants: {
|
|
23
23
|
background: {
|
|
24
24
|
false: ["bg-transparent"],
|
|
25
|
-
true: ["bg-ddt-color-common-background-default", "rounded"]
|
|
25
|
+
true: ["bg-ddt-color-common-background-default", "rounded-sm"]
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -40,7 +40,7 @@ const cvaLoading = cva(
|
|
|
40
40
|
{
|
|
41
41
|
variants: {
|
|
42
42
|
size: {
|
|
43
|
-
small: ["size-
|
|
43
|
+
small: ["size-4.5", "border-2"],
|
|
44
44
|
medium: ["size-9", "border-4"]
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.js";
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* The 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.js";
|
|
|
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.
|
|
@@ -32,15 +32,15 @@ const cvaWrapper = cva(
|
|
|
32
32
|
type: {
|
|
33
33
|
logo: [],
|
|
34
34
|
link: [
|
|
35
|
-
"focus-visible:outline",
|
|
35
|
+
"focus-visible:outline-solid",
|
|
36
36
|
"focus-visible:outline-2",
|
|
37
37
|
"focus-visible:outline-offset-2",
|
|
38
38
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
39
39
|
]
|
|
40
40
|
},
|
|
41
41
|
mode: {
|
|
42
|
-
positive: ["
|
|
43
|
-
negative: ["
|
|
42
|
+
positive: ["icon-[daikin--logo-positive]"],
|
|
43
|
+
negative: ["icon-[daikin--logo-negative]"]
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -51,8 +51,26 @@ let DaikinLogo = class extends DDSElement {
|
|
|
51
51
|
this.href = null;
|
|
52
52
|
this.target = null;
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* _Internal use._
|
|
56
|
+
* Returns the navigation target information.
|
|
57
|
+
* Used by navigation handling utilities.
|
|
58
|
+
*
|
|
59
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
60
|
+
*
|
|
61
|
+
* @private
|
|
62
|
+
*/
|
|
63
|
+
getDDSNavigationTarget() {
|
|
64
|
+
if (this.href == null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
href: this.href,
|
|
69
|
+
target: this.target
|
|
70
|
+
};
|
|
71
|
+
}
|
|
54
72
|
render() {
|
|
55
|
-
if (
|
|
73
|
+
if (this.href == null) {
|
|
56
74
|
return html`<span
|
|
57
75
|
class=${cvaWrapper({ type: "logo", mode: this.mode })}
|
|
58
76
|
role="img"
|
|
@@ -4,6 +4,7 @@ import { DaikinAvatar } from "../avatar/index.js";
|
|
|
4
4
|
import { DaikinBreadcrumbItem } from "../breadcrumb-item/index.js";
|
|
5
5
|
import { DaikinButton } from "../button/index.js";
|
|
6
6
|
import { DaikinIconButton } from "../icon-button/index.js";
|
|
7
|
+
import { DaikinNavigationItem } from "../navigation-item/index.js";
|
|
7
8
|
/**
|
|
8
9
|
* A menu component is used to show list information when a user interacts with an element.
|
|
9
10
|
*
|
|
@@ -82,10 +83,11 @@ export declare class DaikinMenu extends DDSElement {
|
|
|
82
83
|
* - `<daikin-icon-button>`
|
|
83
84
|
* - `<daikin-avatar>`
|
|
84
85
|
* - `<daikin-breadcrumb-item>`
|
|
86
|
+
* - `<daikin-navigation-item>`
|
|
85
87
|
*
|
|
86
88
|
* Returns the first matching element from the slot.
|
|
87
89
|
*/
|
|
88
|
-
get triggerElement(): DaikinAvatar | DaikinButton | DaikinIconButton | DaikinBreadcrumbItem | null;
|
|
90
|
+
get triggerElement(): DaikinAvatar | DaikinButton | DaikinIconButton | DaikinBreadcrumbItem | DaikinNavigationItem | null;
|
|
89
91
|
/**
|
|
90
92
|
* Reflects static attributes (e.g. ARIA roles) to slot components.
|
|
91
93
|
* These are typically set once when the slot changes and do not change frequently.
|
|
@@ -17,6 +17,7 @@ import { DaikinBreadcrumbItem } from "../breadcrumb-item/daikin-breadcrumb-item.
|
|
|
17
17
|
import { DaikinButton } from "../button/daikin-button.js";
|
|
18
18
|
import { DaikinIconButton } from "../icon-button/daikin-icon-button.js";
|
|
19
19
|
import DaikinListItem from "../list-item/daikin-list-item.js";
|
|
20
|
+
import { DaikinNavigationItem } from "../navigation-item/daikin-navigation-item.js";
|
|
20
21
|
var __defProp = Object.defineProperty;
|
|
21
22
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
22
23
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -28,8 +29,8 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
28
29
|
return result;
|
|
29
30
|
};
|
|
30
31
|
const cvaMenu = cva([
|
|
31
|
-
"left-
|
|
32
|
-
"top-
|
|
32
|
+
"left-(--floating-x,0)",
|
|
33
|
+
"top-(--floating-y,0)",
|
|
33
34
|
"w-max",
|
|
34
35
|
"py-2",
|
|
35
36
|
"border",
|
|
@@ -67,12 +68,13 @@ let DaikinMenu = class extends DDSElement {
|
|
|
67
68
|
* - `<daikin-icon-button>`
|
|
68
69
|
* - `<daikin-avatar>`
|
|
69
70
|
* - `<daikin-breadcrumb-item>`
|
|
71
|
+
* - `<daikin-navigation-item>`
|
|
70
72
|
*
|
|
71
73
|
* Returns the first matching element from the slot.
|
|
72
74
|
*/
|
|
73
75
|
get triggerElement() {
|
|
74
76
|
for (const control of this._controls) {
|
|
75
|
-
if (control instanceof DaikinButton || control instanceof DaikinIconButton && control.type === "button" || control instanceof DaikinAvatar && control.type === "button" || control instanceof DaikinBreadcrumbItem) {
|
|
77
|
+
if (control instanceof DaikinButton || control instanceof DaikinIconButton && control.type === "button" || control instanceof DaikinAvatar && control.type === "button" || control instanceof DaikinBreadcrumbItem || control instanceof DaikinNavigationItem && control.type === "menu") {
|
|
76
78
|
return control;
|
|
77
79
|
}
|
|
78
80
|
}
|
|
@@ -88,6 +90,10 @@ let DaikinMenu = class extends DDSElement {
|
|
|
88
90
|
control.buttonAriaHaspopup = "menu";
|
|
89
91
|
} else if (control instanceof DaikinAvatar && control.type === "button") {
|
|
90
92
|
control.avatarAriaHaspopup = "menu";
|
|
93
|
+
} else if (control instanceof DaikinNavigationItem && control.type === "menu") {
|
|
94
|
+
control.navigationItemAriaHaspopup = "menu";
|
|
95
|
+
} else if (control instanceof DaikinBreadcrumbItem) {
|
|
96
|
+
control.breadcrumbAriaHaspopup = "menu";
|
|
91
97
|
}
|
|
92
98
|
}
|
|
93
99
|
for (const daikinList of this._lists) {
|
|
@@ -104,6 +110,10 @@ let DaikinMenu = class extends DDSElement {
|
|
|
104
110
|
control.buttonAriaExpanded = `${this.open}`;
|
|
105
111
|
} else if (control instanceof DaikinAvatar && control.type === "button") {
|
|
106
112
|
control.avatarAriaExpanded = `${this.open}`;
|
|
113
|
+
} else if (control instanceof DaikinNavigationItem && control.type === "menu") {
|
|
114
|
+
control.navigationItemAriaExpanded = `${this.open}`;
|
|
115
|
+
} else if (control instanceof DaikinBreadcrumbItem) {
|
|
116
|
+
control.breadcrumbAriaExpanded = `${this.open}`;
|
|
107
117
|
}
|
|
108
118
|
}
|
|
109
119
|
}
|
|
@@ -199,13 +209,17 @@ DaikinMenu.styles = css`
|
|
|
199
209
|
|
|
200
210
|
--ddc-menu-spacing: ${unsafeCSS(DEFAULT_MENU_SPACING)};
|
|
201
211
|
}
|
|
212
|
+
|
|
213
|
+
:host([open]) ::slotted(daikin-navigation-item) {
|
|
214
|
+
--chevron-rotation: 180deg;
|
|
215
|
+
}
|
|
202
216
|
`;
|
|
203
217
|
__decorateClass([
|
|
204
218
|
queryAssignedElements({ slot: "menu", selector: "daikin-list" })
|
|
205
219
|
], DaikinMenu.prototype, "_lists", 2);
|
|
206
220
|
__decorateClass([
|
|
207
221
|
queryAssignedElements({
|
|
208
|
-
selector: "daikin-button,daikin-icon-button,daikin-avatar,daikin-breadcrumb-item"
|
|
222
|
+
selector: "daikin-button,daikin-icon-button,daikin-avatar,daikin-breadcrumb-item,daikin-navigation-item"
|
|
209
223
|
})
|
|
210
224
|
], DaikinMenu.prototype, "_controls", 2);
|
|
211
225
|
__decorateClass([
|
|
@@ -10,6 +10,8 @@ import { DDSElement } from "../../base/index.js";
|
|
|
10
10
|
*
|
|
11
11
|
* @fires close - A custom event emitted when a user clicks the close button in the header.
|
|
12
12
|
*
|
|
13
|
+
* @csspart modal - CSS styles applied to the modal panel container. By default, the panel uses content-based sizing (`size-fit`) and is clamped by responsive min/max width and height constraints so it does not touch the viewport edges. Use `::part(modal)` to customize its width, height, or padding; the built-in min/max constraints remain in effect unless you override them with more specific rules.
|
|
14
|
+
*
|
|
13
15
|
* @example
|
|
14
16
|
*
|
|
15
17
|
* ```js
|