@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
|
@@ -22,23 +22,29 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
22
22
|
const PANEL = cva([
|
|
23
23
|
"flex",
|
|
24
24
|
"flex-col",
|
|
25
|
+
"justify-between",
|
|
25
26
|
"gap-4",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"sm:max-w-[50%]",
|
|
30
|
-
"z-[10000]",
|
|
27
|
+
"size-fit",
|
|
28
|
+
"z-10000",
|
|
29
|
+
"overflow-hidden",
|
|
31
30
|
"p-4",
|
|
32
31
|
"rounded-lg",
|
|
33
|
-
"bg-ddt-color-common-background-default"
|
|
32
|
+
"bg-ddt-color-common-background-default",
|
|
33
|
+
"min-w-80",
|
|
34
|
+
"xl:max-w-[calc(100%-10rem)]",
|
|
35
|
+
"md:max-w-[calc(100%-8rem)]",
|
|
36
|
+
"max-w-[calc(100%-2rem)]",
|
|
37
|
+
"min-h-61",
|
|
38
|
+
"xl:max-h-[calc(100vh-8rem)]",
|
|
39
|
+
"md:max-h-[calc(100vh-6rem)]",
|
|
40
|
+
"max-h-[calc(100vh-3rem)]"
|
|
34
41
|
])();
|
|
35
42
|
const cvaBackDrop = cva(
|
|
36
43
|
[
|
|
37
44
|
"fixed",
|
|
38
45
|
"flex",
|
|
39
|
-
"px-4",
|
|
40
46
|
"inset-0",
|
|
41
|
-
"z-
|
|
47
|
+
"z-9999",
|
|
42
48
|
"items-center",
|
|
43
49
|
"justify-center",
|
|
44
50
|
"bg-black/50"
|
|
@@ -72,6 +78,7 @@ let DaikinModal = class extends DDSElement {
|
|
|
72
78
|
render() {
|
|
73
79
|
return html`<div class=${cvaBackDrop({ open: this.open })}>
|
|
74
80
|
<div
|
|
81
|
+
part="modal"
|
|
75
82
|
class=${PANEL}
|
|
76
83
|
role=${this.modalRole}
|
|
77
84
|
aria-modal=${ifDefined(this.open ? "true" : void 0)}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The navigation serves as the primary navigation component, acting as the global anchor point that defines the site's high-level information architecture.
|
|
4
|
+
* The navigation component is used as the parent element that organizes and manages the overall structure of the navigation.
|
|
5
|
+
* Currently it only provides appropriate styles for individual navigation items.
|
|
6
|
+
*
|
|
7
|
+
* Hierarchy:
|
|
8
|
+
* - `daikin-navigation` > `daikin-navigation-item`
|
|
9
|
+
*
|
|
10
|
+
* @slot - A slot for the navigation items. Place `daikin-navigation-item` elements here.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* ```js
|
|
15
|
+
* import "@daikin-oss/design-system-web-components/components/navigation/index.js";
|
|
16
|
+
* import "@daikin-oss/design-system-web-components/components/navigation-item/index.js";
|
|
17
|
+
* import "@daikin-oss/design-system-web-components/components/menu/index.js";
|
|
18
|
+
* import "@daikin-oss/design-system-web-components/components/list/index.js";
|
|
19
|
+
* import "@daikin-oss/design-system-web-components/components/list-item/index.js";
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ```html
|
|
23
|
+
* <daikin-navigation>
|
|
24
|
+
* <daikin-navigation-item href="#" current>
|
|
25
|
+
* Navigation content 1
|
|
26
|
+
* </daikin-navigation-item>
|
|
27
|
+
* <daikin-menu placement="bottom-start">
|
|
28
|
+
* <daikin-navigation-item type="menu">
|
|
29
|
+
* Navigation content 2
|
|
30
|
+
* </daikin-navigation-item>
|
|
31
|
+
* <daikin-list slot="menu" class="max-w-40">
|
|
32
|
+
* <daikin-list-item href="#" type="link">Menu item 1</daikin-list-item>
|
|
33
|
+
* <daikin-list-item href="#" type="link">Menu item 2</daikin-list-item>
|
|
34
|
+
* <daikin-list-item href="#" type="link">Menu item 3</daikin-list-item>
|
|
35
|
+
* </daikin-list>
|
|
36
|
+
* </daikin-menu>
|
|
37
|
+
* <daikin-navigation-item href="#">
|
|
38
|
+
* Navigation content 3
|
|
39
|
+
* </daikin-navigation-item>
|
|
40
|
+
* </daikin-navigation>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare class DaikinNavigation extends DDSElement {
|
|
44
|
+
static readonly styles: import('lit').CSSResult;
|
|
45
|
+
/**
|
|
46
|
+
* The aria-label of the navigation.
|
|
47
|
+
*/
|
|
48
|
+
navigationAriaLabel: string | null;
|
|
49
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
50
|
+
}
|
|
51
|
+
declare global {
|
|
52
|
+
interface HTMLElementTagNameMap {
|
|
53
|
+
"daikin-navigation": DaikinNavigation;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export default DaikinNavigation;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { unsafeCSS, css, html } from "lit";
|
|
2
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
3
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
4
|
+
import "../../base/dds-form-element.js";
|
|
5
|
+
import { property } from "../../base/dds-property.js";
|
|
6
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
7
|
+
import "../../base/define.js";
|
|
8
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
9
|
+
var __defProp = Object.defineProperty;
|
|
10
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
+
if (decorator = decorators[i])
|
|
15
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
16
|
+
if (kind && result) __defProp(target, key, result);
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
19
|
+
let DaikinNavigation = class extends DDSElement {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.navigationAriaLabel = null;
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return html`<nav aria-label=${ifDefined(this.navigationAriaLabel)}>
|
|
26
|
+
<div role="list" class="w-full flex px-8">
|
|
27
|
+
<slot></slot>
|
|
28
|
+
</div>
|
|
29
|
+
</nav>`;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
DaikinNavigation.styles = css`
|
|
33
|
+
${unsafeCSS(tailwindStyles)}
|
|
34
|
+
|
|
35
|
+
:host {
|
|
36
|
+
display: flex;
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
__decorateClass([
|
|
41
|
+
property({ type: String, reflect: true, attribute: "navigation-aria-label" })
|
|
42
|
+
], DaikinNavigation.prototype, "navigationAriaLabel", 2);
|
|
43
|
+
DaikinNavigation = __decorateClass([
|
|
44
|
+
ddsElement("daikin-navigation")
|
|
45
|
+
], DaikinNavigation);
|
|
46
|
+
export {
|
|
47
|
+
DaikinNavigation
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-navigation.js";
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The navigation item component is a child element within the `daikin-navigation` component.
|
|
4
|
+
* It represents a single navigational action and is rendered as a link or button, depending on configuration.
|
|
5
|
+
* This component is responsible for displaying the specific content within the navigation and allowing users to navigate to the associated target.
|
|
6
|
+
*
|
|
7
|
+
* Hierarchy:
|
|
8
|
+
* - `daikin-navigation` > `daikin-navigation-item`
|
|
9
|
+
*
|
|
10
|
+
* @fires click - A retargeted event of a [click event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event) emitted from the inner `<a>` or `<button>` element. Suppressed if `disabled` is true or when rendered as a link (`type="link"`) without an `href`.
|
|
11
|
+
*
|
|
12
|
+
* @slot - A slot for the navigation item content.
|
|
13
|
+
* @slot left-icon - A slot for the left icon.
|
|
14
|
+
*
|
|
15
|
+
* @cssprop [--chevron-rotation=0deg] - The rotation angle of the chevron icon. This can be used to indicate the open or closed state of a menu. When used within a `daikin-menu` component, this property is automatically controlled by the menu to rotate the chevron icon when the menu is opened or closed, so you don't need to specify it explicitly.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* ```js
|
|
20
|
+
* import "@daikin-oss/design-system-web-components/components/navigation-item/index.js";
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ```html
|
|
24
|
+
* <daikin-navigation-item>
|
|
25
|
+
* Navigation content
|
|
26
|
+
* </daikin-navigation-item>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class DaikinNavigationItem extends DDSElement implements DDSNavigable {
|
|
30
|
+
static readonly styles: import('lit').CSSResult;
|
|
31
|
+
constructor();
|
|
32
|
+
/**
|
|
33
|
+
* Type of the navigation item.
|
|
34
|
+
* - `"link"`: A regular navigation item that is rendered as a link (`<a>`). Use this for navigation items that directly link to other pages or sections.
|
|
35
|
+
* - `"menu"`: A navigation item that is rendered as a button (`<button>`) and is intended to trigger a dropdown menu. Use this for navigation items that open a menu with additional options.
|
|
36
|
+
*
|
|
37
|
+
* @default "link"
|
|
38
|
+
*/
|
|
39
|
+
type: "link" | "menu";
|
|
40
|
+
/**
|
|
41
|
+
* Whether the navigation item is disabled.
|
|
42
|
+
* When set to `true`, the navigation item is rendered in a disabled state
|
|
43
|
+
* and does not respond to user interaction or navigation.
|
|
44
|
+
*/
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the navigation item is the current item.
|
|
48
|
+
* If this is set to `true`, the navigation item will be highlighted as the current item.
|
|
49
|
+
*/
|
|
50
|
+
current: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Link `href`.
|
|
53
|
+
* Only used if the `type` is `"link"`.
|
|
54
|
+
* If omitted with `type="link"`, the link will be treated as [a placeholder link](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element:~:text=If%20the%20a%20element%20has%20no%20href%20attribute) and rendered as disabled state.
|
|
55
|
+
*/
|
|
56
|
+
href: string | null;
|
|
57
|
+
/**
|
|
58
|
+
* The aria-haspopup of the navigation item when `type="menu"`.
|
|
59
|
+
* When used within a daikin-menu component, this property is automatically assigned the value `navigationItemAriaHaspopup="menu"`.
|
|
60
|
+
*/
|
|
61
|
+
navigationItemAriaHaspopup: "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | null;
|
|
62
|
+
/**
|
|
63
|
+
* The aria-expanded of the navigation item when `type="menu"`.
|
|
64
|
+
* When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
|
|
65
|
+
*/
|
|
66
|
+
navigationItemAriaExpanded: "true" | "false" | "undefined" | null;
|
|
67
|
+
private readonly _focusableElement;
|
|
68
|
+
/**
|
|
69
|
+
* _Internal use._
|
|
70
|
+
* Returns the navigation target information.
|
|
71
|
+
* Used by navigation handling utilities.
|
|
72
|
+
*
|
|
73
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
74
|
+
*
|
|
75
|
+
* @private
|
|
76
|
+
*/
|
|
77
|
+
getDDSNavigationTarget(): NavigationTarget | null;
|
|
78
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
79
|
+
/**
|
|
80
|
+
* Focuses on the inner button or link.
|
|
81
|
+
* @param options focus options
|
|
82
|
+
*/
|
|
83
|
+
focus(options?: FocusOptions): void;
|
|
84
|
+
}
|
|
85
|
+
declare global {
|
|
86
|
+
interface HTMLElementTagNameMap {
|
|
87
|
+
"daikin-navigation-item": DaikinNavigationItem;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { unsafeCSS, css, html, nothing } from "lit";
|
|
3
|
+
import { query } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import "../../base/dds-form-element.js";
|
|
7
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
8
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
9
|
+
import "../../base/define.js";
|
|
10
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
14
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators[i])
|
|
17
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
|
+
if (kind && result) __defProp(target, key, result);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
const cvaBaseClasses = [
|
|
22
|
+
"flex",
|
|
23
|
+
"relative",
|
|
24
|
+
"gap-1",
|
|
25
|
+
"justify-center",
|
|
26
|
+
"items-center",
|
|
27
|
+
"min-h-12",
|
|
28
|
+
"px-8",
|
|
29
|
+
"pt-2",
|
|
30
|
+
"pb-3",
|
|
31
|
+
"font-daikinSerif",
|
|
32
|
+
"text-base",
|
|
33
|
+
"leading-[130%]",
|
|
34
|
+
"font-bold",
|
|
35
|
+
"focus-visible:outline-hidden",
|
|
36
|
+
"focus-visible:before:absolute",
|
|
37
|
+
"focus-visible:before:-inset-1",
|
|
38
|
+
"focus-visible:before:z-1",
|
|
39
|
+
"focus-visible:before:border-2",
|
|
40
|
+
"focus-visible:before:border-ddt-color-common-border-focus",
|
|
41
|
+
"text-(--color-primary)",
|
|
42
|
+
"bg-(--color-secondary)"
|
|
43
|
+
];
|
|
44
|
+
const cvaBaseVariants = {
|
|
45
|
+
variants: {
|
|
46
|
+
current: {
|
|
47
|
+
false: [
|
|
48
|
+
"link-enabled:[--color-primary:var(--dds-color-common-neutral-default)]",
|
|
49
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-neutral-hover)]",
|
|
50
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-neutral-press)]",
|
|
51
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-neutral-hover)]",
|
|
52
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-neutral-press)]"
|
|
53
|
+
],
|
|
54
|
+
true: [
|
|
55
|
+
"link-enabled:[--color-primary:var(--dds-color-common-neutral-default)]",
|
|
56
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-neutral-hover)]",
|
|
57
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-neutral-press)]",
|
|
58
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-hover)]",
|
|
59
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-press)]",
|
|
60
|
+
"after:h-1",
|
|
61
|
+
"after:absolute",
|
|
62
|
+
"after:inset-0",
|
|
63
|
+
"after:top-auto",
|
|
64
|
+
"after:bg-ddt-color-common-brand-default"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
disabled: {
|
|
68
|
+
false: [],
|
|
69
|
+
true: [
|
|
70
|
+
"text-ddt-color-common-disabled",
|
|
71
|
+
"after:text-ddt-color-common-disabled",
|
|
72
|
+
"after:bg-ddt-color-common-disabled"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
const cvaLinkItem = cva(cvaBaseClasses, cvaBaseVariants);
|
|
78
|
+
const cvaMenuItem = cva(cvaBaseClasses, cvaBaseVariants);
|
|
79
|
+
let DaikinNavigationItem = class extends DDSElement {
|
|
80
|
+
constructor() {
|
|
81
|
+
super();
|
|
82
|
+
this.disabled = false;
|
|
83
|
+
this.current = false;
|
|
84
|
+
this.href = null;
|
|
85
|
+
this.navigationItemAriaHaspopup = null;
|
|
86
|
+
this.navigationItemAriaExpanded = null;
|
|
87
|
+
this.addEventListener("click", (event) => {
|
|
88
|
+
if (this.disabled || this.type === "link" && this.href == null) {
|
|
89
|
+
event.stopImmediatePropagation();
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* _Internal use._
|
|
95
|
+
* Returns the navigation target information.
|
|
96
|
+
* Used by navigation handling utilities.
|
|
97
|
+
*
|
|
98
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
99
|
+
*
|
|
100
|
+
* @private
|
|
101
|
+
*/
|
|
102
|
+
getDDSNavigationTarget() {
|
|
103
|
+
if (this.type === "menu" || this.href == null || this.disabled) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
href: this.href,
|
|
108
|
+
target: null
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
render() {
|
|
112
|
+
switch (this.type) {
|
|
113
|
+
case "link": {
|
|
114
|
+
const linkDisabled = this.disabled || this.href == null;
|
|
115
|
+
return html`
|
|
116
|
+
<div role="listitem">
|
|
117
|
+
<a
|
|
118
|
+
href=${ifDefined(!linkDisabled ? this.href : void 0)}
|
|
119
|
+
class=${cvaLinkItem({
|
|
120
|
+
current: this.current,
|
|
121
|
+
disabled: linkDisabled
|
|
122
|
+
})}
|
|
123
|
+
role=${linkDisabled ? "link" : nothing}
|
|
124
|
+
aria-current=${ifDefined(this.current ? "page" : void 0)}
|
|
125
|
+
aria-disabled=${ifDefined(linkDisabled ? "true" : void 0)}
|
|
126
|
+
><slot
|
|
127
|
+
name="left-icon"
|
|
128
|
+
class="icon-size-6 slotted:flex-none"
|
|
129
|
+
></slot
|
|
130
|
+
><span class="px-1"><slot class="text-nowrap"></slot></span
|
|
131
|
+
></a>
|
|
132
|
+
</div>
|
|
133
|
+
`;
|
|
134
|
+
}
|
|
135
|
+
case "menu":
|
|
136
|
+
return html`
|
|
137
|
+
<div role="listitem">
|
|
138
|
+
<button
|
|
139
|
+
type="button"
|
|
140
|
+
class=${cvaMenuItem({
|
|
141
|
+
current: this.current,
|
|
142
|
+
disabled: this.disabled
|
|
143
|
+
})}
|
|
144
|
+
aria-current=${ifDefined(this.current ? "page" : void 0)}
|
|
145
|
+
aria-expanded=${ifDefined(this.navigationItemAriaExpanded)}
|
|
146
|
+
aria-haspopup=${ifDefined(this.navigationItemAriaHaspopup)}
|
|
147
|
+
?disabled=${this.disabled}
|
|
148
|
+
>
|
|
149
|
+
<slot
|
|
150
|
+
name="left-icon"
|
|
151
|
+
class="icon-size-6 slotted:flex-none"
|
|
152
|
+
></slot
|
|
153
|
+
><span class="px-1"><slot class="text-nowrap"></slot></span
|
|
154
|
+
><span
|
|
155
|
+
class="icon-[daikin--chevron-down] size-6 flex-none rotate-(--chevron-rotation)"
|
|
156
|
+
></span>
|
|
157
|
+
</button>
|
|
158
|
+
</div>
|
|
159
|
+
`;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Focuses on the inner button or link.
|
|
164
|
+
* @param options focus options
|
|
165
|
+
*/
|
|
166
|
+
focus(options) {
|
|
167
|
+
var _a;
|
|
168
|
+
(_a = this._focusableElement) == null ? void 0 : _a.focus(options);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
DaikinNavigationItem.styles = css`
|
|
172
|
+
${unsafeCSS(tailwindStyles)}
|
|
173
|
+
|
|
174
|
+
:host {
|
|
175
|
+
display: block;
|
|
176
|
+
width: fit-content;
|
|
177
|
+
|
|
178
|
+
--chevron-rotation: 0deg;
|
|
179
|
+
}
|
|
180
|
+
`;
|
|
181
|
+
__decorateClass([
|
|
182
|
+
property({
|
|
183
|
+
type: String,
|
|
184
|
+
reflect: true,
|
|
185
|
+
fallbackValue: "link",
|
|
186
|
+
isAllowedValue: oneOf(["link", "menu"])
|
|
187
|
+
})
|
|
188
|
+
], DaikinNavigationItem.prototype, "type", 2);
|
|
189
|
+
__decorateClass([
|
|
190
|
+
property({ type: Boolean, reflect: true })
|
|
191
|
+
], DaikinNavigationItem.prototype, "disabled", 2);
|
|
192
|
+
__decorateClass([
|
|
193
|
+
property({ type: Boolean, reflect: true })
|
|
194
|
+
], DaikinNavigationItem.prototype, "current", 2);
|
|
195
|
+
__decorateClass([
|
|
196
|
+
property({ type: String, reflect: true })
|
|
197
|
+
], DaikinNavigationItem.prototype, "href", 2);
|
|
198
|
+
__decorateClass([
|
|
199
|
+
property({
|
|
200
|
+
type: String,
|
|
201
|
+
reflect: true,
|
|
202
|
+
attribute: "navigation-item-aria-haspopup"
|
|
203
|
+
})
|
|
204
|
+
], DaikinNavigationItem.prototype, "navigationItemAriaHaspopup", 2);
|
|
205
|
+
__decorateClass([
|
|
206
|
+
property({
|
|
207
|
+
type: String,
|
|
208
|
+
reflect: true,
|
|
209
|
+
attribute: "navigation-item-aria-expanded"
|
|
210
|
+
})
|
|
211
|
+
], DaikinNavigationItem.prototype, "navigationItemAriaExpanded", 2);
|
|
212
|
+
__decorateClass([
|
|
213
|
+
query("a,button")
|
|
214
|
+
], DaikinNavigationItem.prototype, "_focusableElement", 2);
|
|
215
|
+
DaikinNavigationItem = __decorateClass([
|
|
216
|
+
ddsElement("daikin-navigation-item")
|
|
217
|
+
], DaikinNavigationItem);
|
|
218
|
+
export {
|
|
219
|
+
DaikinNavigationItem
|
|
220
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-navigation-item.js";
|
|
@@ -35,9 +35,9 @@ const cvaPageButton = cva(
|
|
|
35
35
|
"not-italic",
|
|
36
36
|
"leading-6",
|
|
37
37
|
"bg-clip-content",
|
|
38
|
-
"focus-visible:outline",
|
|
38
|
+
"focus-visible:outline-solid",
|
|
39
39
|
"focus-visible:outline-2",
|
|
40
|
-
"focus-visible
|
|
40
|
+
"focus-visible:-outline-offset-2",
|
|
41
41
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
42
42
|
],
|
|
43
43
|
{
|
|
@@ -104,10 +104,10 @@ const cvaChevronButton = cva([
|
|
|
104
104
|
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
105
105
|
"enabled:active:bg-ddt-color-common-surface-neutral-press",
|
|
106
106
|
"enabled:active:text-ddt-color-common-neutral-press",
|
|
107
|
-
"disabled
|
|
108
|
-
"focus-visible:outline",
|
|
107
|
+
"disabled:text-ddt-color-common-disabled",
|
|
108
|
+
"focus-visible:outline-solid",
|
|
109
109
|
"focus-visible:outline-2",
|
|
110
|
-
"focus-visible
|
|
110
|
+
"focus-visible:-outline-offset-2",
|
|
111
111
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
112
112
|
]);
|
|
113
113
|
let DaikinPagination = class extends DDSElement {
|
|
@@ -151,7 +151,7 @@ let DaikinPagination = class extends DDSElement {
|
|
|
151
151
|
?disabled=${this.current === 1}
|
|
152
152
|
@click=${() => this._gotoOffset(-1)}
|
|
153
153
|
>
|
|
154
|
-
<span class="
|
|
154
|
+
<span class="icon-[daikin--pagination-chevron-left] w-4 h-4"></span>
|
|
155
155
|
</button>
|
|
156
156
|
${repeat(
|
|
157
157
|
pageArray,
|
|
@@ -195,7 +195,7 @@ let DaikinPagination = class extends DDSElement {
|
|
|
195
195
|
?disabled=${this.current === this.total}
|
|
196
196
|
@click=${() => this._gotoOffset(1)}
|
|
197
197
|
>
|
|
198
|
-
<span class="
|
|
198
|
+
<span class="icon-[daikin--pagination-chevron-right] w-4 h-4"></span>
|
|
199
199
|
</button>
|
|
200
200
|
</div>
|
|
201
201
|
`;
|
|
@@ -31,7 +31,7 @@ const cvaBar = cva(
|
|
|
31
31
|
variants: {
|
|
32
32
|
variant: {
|
|
33
33
|
inprogress: [
|
|
34
|
-
"after:w-
|
|
34
|
+
"after:w-(--bar-width)",
|
|
35
35
|
"after:bg-ddt-color-common-brand-default"
|
|
36
36
|
],
|
|
37
37
|
completed: ["after:w-full", "after:bg-ddt-color-common-success"],
|
|
@@ -66,14 +66,14 @@ const cvaBarContainer = cva(
|
|
|
66
66
|
"after:size-4",
|
|
67
67
|
"after:flex-none",
|
|
68
68
|
"after:bg-ddt-color-common-success",
|
|
69
|
-
"after:
|
|
69
|
+
"after:icon-[daikin--success]"
|
|
70
70
|
],
|
|
71
71
|
indeterminate: [],
|
|
72
72
|
error: [
|
|
73
73
|
"after:size-4",
|
|
74
74
|
"after:flex-none",
|
|
75
75
|
"after:text-ddt-color-common-danger-default",
|
|
76
|
-
"after:
|
|
76
|
+
"after:icon-[daikin--error]"
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -25,7 +25,7 @@ const cvaContainer = cva(
|
|
|
25
25
|
"w-full",
|
|
26
26
|
"text-ddt-color-common-text-primary",
|
|
27
27
|
"pt-2",
|
|
28
|
-
"border-t-
|
|
28
|
+
"border-t-4",
|
|
29
29
|
"font-daikinSerif"
|
|
30
30
|
],
|
|
31
31
|
{
|
|
@@ -54,7 +54,7 @@ let DaikinProgressIndicatorItem = class extends DDSElement {
|
|
|
54
54
|
${this.status === "finished" ? html`
|
|
55
55
|
<span
|
|
56
56
|
role="img"
|
|
57
|
-
class="flex-none size-4
|
|
57
|
+
class="flex-none size-4 icon-[daikin--success] text-ddt-color-common-brand-default"
|
|
58
58
|
aria-label="Completed"
|
|
59
59
|
></span>
|
|
60
60
|
` : nothing}
|
|
@@ -26,20 +26,20 @@ const RADIO_CLASS_NAME = cva([
|
|
|
26
26
|
"rounded-full",
|
|
27
27
|
"relative",
|
|
28
28
|
"appearance-none",
|
|
29
|
-
"focus-visible:outline",
|
|
29
|
+
"focus-visible:outline-solid",
|
|
30
30
|
"focus-visible:outline-2",
|
|
31
31
|
"focus-visible:outline-offset-2",
|
|
32
32
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
33
33
|
"unchecked:border-2",
|
|
34
34
|
"enabled:unchecked:border-ddt-color-common-neutral-default",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
35
|
+
"group-hover:unchecked:enabled:border-ddt-color-common-neutral-hover",
|
|
36
|
+
"group-active:unchecked:enabled:border-ddt-color-common-neutral-press",
|
|
37
|
+
"group-hover:unchecked:enabled:bg-ddt-color-common-surface-neutral-hover",
|
|
38
|
+
"group-active:unchecked:enabled:bg-ddt-color-common-surface-neutral-press",
|
|
39
39
|
"checked:border-[5px]",
|
|
40
40
|
"enabled:checked:border-ddt-color-common-brand-default",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
41
|
+
"group-hover:checked:enabled:border-ddt-color-common-brand-hover",
|
|
42
|
+
"group-active:checked:enabled:border-ddt-color-common-brand-press",
|
|
43
43
|
"disabled:border-ddt-color-common-disabled"
|
|
44
44
|
])();
|
|
45
45
|
const cvaLabel = cva([], {
|
|
@@ -3,7 +3,7 @@ import { DDSElement } from "../../base/index.js";
|
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.js";
|
|
4
4
|
import { DaikinInputGroup } from "../input-group/index.js";
|
|
5
5
|
declare const cvaRadioGroup: (props?: ({
|
|
6
|
-
orientation?: "
|
|
6
|
+
orientation?: "vertical" | "horizontal" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
type RadioGroupProps = MergeVariantProps<typeof cvaRadioGroup>;
|
|
9
9
|
/**
|