@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
|
@@ -4,6 +4,7 @@ import { DaikinAvatar } from "../avatar/index.cjs";
|
|
|
4
4
|
import { DaikinBreadcrumbItem } from "../breadcrumb-item/index.cjs";
|
|
5
5
|
import { DaikinButton } from "../button/index.cjs";
|
|
6
6
|
import { DaikinIconButton } from "../icon-button/index.cjs";
|
|
7
|
+
import { DaikinNavigationItem } from "../navigation-item/index.cjs";
|
|
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.
|
|
@@ -24,23 +24,29 @@ var __decorateClass = (decorators2, target, key, kind) => {
|
|
|
24
24
|
const PANEL = classVarianceAuthority.cva([
|
|
25
25
|
"flex",
|
|
26
26
|
"flex-col",
|
|
27
|
+
"justify-between",
|
|
27
28
|
"gap-4",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"sm:max-w-[50%]",
|
|
32
|
-
"z-[10000]",
|
|
29
|
+
"size-fit",
|
|
30
|
+
"z-10000",
|
|
31
|
+
"overflow-hidden",
|
|
33
32
|
"p-4",
|
|
34
33
|
"rounded-lg",
|
|
35
|
-
"bg-ddt-color-common-background-default"
|
|
34
|
+
"bg-ddt-color-common-background-default",
|
|
35
|
+
"min-w-80",
|
|
36
|
+
"xl:max-w-[calc(100%-10rem)]",
|
|
37
|
+
"md:max-w-[calc(100%-8rem)]",
|
|
38
|
+
"max-w-[calc(100%-2rem)]",
|
|
39
|
+
"min-h-61",
|
|
40
|
+
"xl:max-h-[calc(100vh-8rem)]",
|
|
41
|
+
"md:max-h-[calc(100vh-6rem)]",
|
|
42
|
+
"max-h-[calc(100vh-3rem)]"
|
|
36
43
|
])();
|
|
37
44
|
const cvaBackDrop = classVarianceAuthority.cva(
|
|
38
45
|
[
|
|
39
46
|
"fixed",
|
|
40
47
|
"flex",
|
|
41
|
-
"px-4",
|
|
42
48
|
"inset-0",
|
|
43
|
-
"z-
|
|
49
|
+
"z-9999",
|
|
44
50
|
"items-center",
|
|
45
51
|
"justify-center",
|
|
46
52
|
"bg-black/50"
|
|
@@ -74,6 +80,7 @@ exports.DaikinModal = class DaikinModal extends ddsElement.DDSElement {
|
|
|
74
80
|
render() {
|
|
75
81
|
return lit.html`<div class=${cvaBackDrop({ open: this.open })}>
|
|
76
82
|
<div
|
|
83
|
+
part="modal"
|
|
77
84
|
class=${PANEL}
|
|
78
85
|
role=${this.modalRole}
|
|
79
86
|
aria-modal=${ifDefined_js.ifDefined(this.open ? "true" : void 0)}
|
|
@@ -10,6 +10,8 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
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
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const lit = require("lit");
|
|
4
|
+
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
5
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
6
|
+
require("../../base/dds-form-element.cjs");
|
|
7
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
10
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
14
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators2[i])
|
|
17
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
|
+
if (kind && result) __defProp(target, key, result);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
exports.DaikinNavigation = class DaikinNavigation extends ddsElement.DDSElement {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.navigationAriaLabel = null;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return lit.html`<nav aria-label=${ifDefined_js.ifDefined(this.navigationAriaLabel)}>
|
|
28
|
+
<div role="list" class="w-full flex px-8">
|
|
29
|
+
<slot></slot>
|
|
30
|
+
</div>
|
|
31
|
+
</nav>`;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.DaikinNavigation.styles = lit.css`
|
|
35
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
36
|
+
|
|
37
|
+
:host {
|
|
38
|
+
display: flex;
|
|
39
|
+
width: 100%;
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
__decorateClass([
|
|
43
|
+
ddsProperty.property({ type: String, reflect: true, attribute: "navigation-aria-label" })
|
|
44
|
+
], exports.DaikinNavigation.prototype, "navigationAriaLabel", 2);
|
|
45
|
+
exports.DaikinNavigation = __decorateClass([
|
|
46
|
+
decorators.ddsElement("daikin-navigation")
|
|
47
|
+
], exports.DaikinNavigation);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
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,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinNavigation = require("./daikin-navigation.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinNavigation", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinNavigation.DaikinNavigation
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-navigation.cjs";
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
4
|
+
const lit = require("lit");
|
|
5
|
+
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const ddsElement = require("../../base/dds-element.cjs");
|
|
8
|
+
require("../../base/dds-form-element.cjs");
|
|
9
|
+
const ddsProperty = require("../../base/dds-property.cjs");
|
|
10
|
+
const decorators = require("../../base/decorators.cjs");
|
|
11
|
+
require("../../base/define.cjs");
|
|
12
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
16
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
17
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
18
|
+
if (decorator = decorators2[i])
|
|
19
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
20
|
+
if (kind && result) __defProp(target, key, result);
|
|
21
|
+
return result;
|
|
22
|
+
};
|
|
23
|
+
const cvaBaseClasses = [
|
|
24
|
+
"flex",
|
|
25
|
+
"relative",
|
|
26
|
+
"gap-1",
|
|
27
|
+
"justify-center",
|
|
28
|
+
"items-center",
|
|
29
|
+
"min-h-12",
|
|
30
|
+
"px-8",
|
|
31
|
+
"pt-2",
|
|
32
|
+
"pb-3",
|
|
33
|
+
"font-daikinSerif",
|
|
34
|
+
"text-base",
|
|
35
|
+
"leading-[130%]",
|
|
36
|
+
"font-bold",
|
|
37
|
+
"focus-visible:outline-hidden",
|
|
38
|
+
"focus-visible:before:absolute",
|
|
39
|
+
"focus-visible:before:-inset-1",
|
|
40
|
+
"focus-visible:before:z-1",
|
|
41
|
+
"focus-visible:before:border-2",
|
|
42
|
+
"focus-visible:before:border-ddt-color-common-border-focus",
|
|
43
|
+
"text-(--color-primary)",
|
|
44
|
+
"bg-(--color-secondary)"
|
|
45
|
+
];
|
|
46
|
+
const cvaBaseVariants = {
|
|
47
|
+
variants: {
|
|
48
|
+
current: {
|
|
49
|
+
false: [
|
|
50
|
+
"link-enabled:[--color-primary:var(--dds-color-common-neutral-default)]",
|
|
51
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-neutral-hover)]",
|
|
52
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-neutral-press)]",
|
|
53
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-neutral-hover)]",
|
|
54
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-neutral-press)]"
|
|
55
|
+
],
|
|
56
|
+
true: [
|
|
57
|
+
"link-enabled:[--color-primary:var(--dds-color-common-neutral-default)]",
|
|
58
|
+
"hover:link-enabled:[--color-primary:var(--dds-color-common-neutral-hover)]",
|
|
59
|
+
"active:link-enabled:[--color-primary:var(--dds-color-common-neutral-press)]",
|
|
60
|
+
"hover:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-hover)]",
|
|
61
|
+
"active:link-enabled:[--color-secondary:var(--dds-color-common-surface-brand-press)]",
|
|
62
|
+
"after:h-1",
|
|
63
|
+
"after:absolute",
|
|
64
|
+
"after:inset-0",
|
|
65
|
+
"after:top-auto",
|
|
66
|
+
"after:bg-ddt-color-common-brand-default"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
disabled: {
|
|
70
|
+
false: [],
|
|
71
|
+
true: [
|
|
72
|
+
"text-ddt-color-common-disabled",
|
|
73
|
+
"after:text-ddt-color-common-disabled",
|
|
74
|
+
"after:bg-ddt-color-common-disabled"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const cvaLinkItem = classVarianceAuthority.cva(cvaBaseClasses, cvaBaseVariants);
|
|
80
|
+
const cvaMenuItem = classVarianceAuthority.cva(cvaBaseClasses, cvaBaseVariants);
|
|
81
|
+
exports.DaikinNavigationItem = class DaikinNavigationItem extends ddsElement.DDSElement {
|
|
82
|
+
constructor() {
|
|
83
|
+
super();
|
|
84
|
+
this.disabled = false;
|
|
85
|
+
this.current = false;
|
|
86
|
+
this.href = null;
|
|
87
|
+
this.navigationItemAriaHaspopup = null;
|
|
88
|
+
this.navigationItemAriaExpanded = null;
|
|
89
|
+
this.addEventListener("click", (event) => {
|
|
90
|
+
if (this.disabled || this.type === "link" && this.href == null) {
|
|
91
|
+
event.stopImmediatePropagation();
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* _Internal use._
|
|
97
|
+
* Returns the navigation target information.
|
|
98
|
+
* Used by navigation handling utilities.
|
|
99
|
+
*
|
|
100
|
+
* @returns Navigation target information or `null` if not navigable.
|
|
101
|
+
*
|
|
102
|
+
* @private
|
|
103
|
+
*/
|
|
104
|
+
getDDSNavigationTarget() {
|
|
105
|
+
if (this.type === "menu" || this.href == null || this.disabled) {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
href: this.href,
|
|
110
|
+
target: null
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
switch (this.type) {
|
|
115
|
+
case "link": {
|
|
116
|
+
const linkDisabled = this.disabled || this.href == null;
|
|
117
|
+
return lit.html`
|
|
118
|
+
<div role="listitem">
|
|
119
|
+
<a
|
|
120
|
+
href=${ifDefined_js.ifDefined(!linkDisabled ? this.href : void 0)}
|
|
121
|
+
class=${cvaLinkItem({
|
|
122
|
+
current: this.current,
|
|
123
|
+
disabled: linkDisabled
|
|
124
|
+
})}
|
|
125
|
+
role=${linkDisabled ? "link" : lit.nothing}
|
|
126
|
+
aria-current=${ifDefined_js.ifDefined(this.current ? "page" : void 0)}
|
|
127
|
+
aria-disabled=${ifDefined_js.ifDefined(linkDisabled ? "true" : void 0)}
|
|
128
|
+
><slot
|
|
129
|
+
name="left-icon"
|
|
130
|
+
class="icon-size-6 slotted:flex-none"
|
|
131
|
+
></slot
|
|
132
|
+
><span class="px-1"><slot class="text-nowrap"></slot></span
|
|
133
|
+
></a>
|
|
134
|
+
</div>
|
|
135
|
+
`;
|
|
136
|
+
}
|
|
137
|
+
case "menu":
|
|
138
|
+
return lit.html`
|
|
139
|
+
<div role="listitem">
|
|
140
|
+
<button
|
|
141
|
+
type="button"
|
|
142
|
+
class=${cvaMenuItem({
|
|
143
|
+
current: this.current,
|
|
144
|
+
disabled: this.disabled
|
|
145
|
+
})}
|
|
146
|
+
aria-current=${ifDefined_js.ifDefined(this.current ? "page" : void 0)}
|
|
147
|
+
aria-expanded=${ifDefined_js.ifDefined(this.navigationItemAriaExpanded)}
|
|
148
|
+
aria-haspopup=${ifDefined_js.ifDefined(this.navigationItemAriaHaspopup)}
|
|
149
|
+
?disabled=${this.disabled}
|
|
150
|
+
>
|
|
151
|
+
<slot
|
|
152
|
+
name="left-icon"
|
|
153
|
+
class="icon-size-6 slotted:flex-none"
|
|
154
|
+
></slot
|
|
155
|
+
><span class="px-1"><slot class="text-nowrap"></slot></span
|
|
156
|
+
><span
|
|
157
|
+
class="icon-[daikin--chevron-down] size-6 flex-none rotate-(--chevron-rotation)"
|
|
158
|
+
></span>
|
|
159
|
+
</button>
|
|
160
|
+
</div>
|
|
161
|
+
`;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Focuses on the inner button or link.
|
|
166
|
+
* @param options focus options
|
|
167
|
+
*/
|
|
168
|
+
focus(options) {
|
|
169
|
+
var _a;
|
|
170
|
+
(_a = this._focusableElement) == null ? void 0 : _a.focus(options);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
exports.DaikinNavigationItem.styles = lit.css`
|
|
174
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
175
|
+
|
|
176
|
+
:host {
|
|
177
|
+
display: block;
|
|
178
|
+
width: fit-content;
|
|
179
|
+
|
|
180
|
+
--chevron-rotation: 0deg;
|
|
181
|
+
}
|
|
182
|
+
`;
|
|
183
|
+
__decorateClass([
|
|
184
|
+
ddsProperty.property({
|
|
185
|
+
type: String,
|
|
186
|
+
reflect: true,
|
|
187
|
+
fallbackValue: "link",
|
|
188
|
+
isAllowedValue: ddsProperty.oneOf(["link", "menu"])
|
|
189
|
+
})
|
|
190
|
+
], exports.DaikinNavigationItem.prototype, "type", 2);
|
|
191
|
+
__decorateClass([
|
|
192
|
+
ddsProperty.property({ type: Boolean, reflect: true })
|
|
193
|
+
], exports.DaikinNavigationItem.prototype, "disabled", 2);
|
|
194
|
+
__decorateClass([
|
|
195
|
+
ddsProperty.property({ type: Boolean, reflect: true })
|
|
196
|
+
], exports.DaikinNavigationItem.prototype, "current", 2);
|
|
197
|
+
__decorateClass([
|
|
198
|
+
ddsProperty.property({ type: String, reflect: true })
|
|
199
|
+
], exports.DaikinNavigationItem.prototype, "href", 2);
|
|
200
|
+
__decorateClass([
|
|
201
|
+
ddsProperty.property({
|
|
202
|
+
type: String,
|
|
203
|
+
reflect: true,
|
|
204
|
+
attribute: "navigation-item-aria-haspopup"
|
|
205
|
+
})
|
|
206
|
+
], exports.DaikinNavigationItem.prototype, "navigationItemAriaHaspopup", 2);
|
|
207
|
+
__decorateClass([
|
|
208
|
+
ddsProperty.property({
|
|
209
|
+
type: String,
|
|
210
|
+
reflect: true,
|
|
211
|
+
attribute: "navigation-item-aria-expanded"
|
|
212
|
+
})
|
|
213
|
+
], exports.DaikinNavigationItem.prototype, "navigationItemAriaExpanded", 2);
|
|
214
|
+
__decorateClass([
|
|
215
|
+
decorators_js.query("a,button")
|
|
216
|
+
], exports.DaikinNavigationItem.prototype, "_focusableElement", 2);
|
|
217
|
+
exports.DaikinNavigationItem = __decorateClass([
|
|
218
|
+
decorators.ddsElement("daikin-navigation-item")
|
|
219
|
+
], exports.DaikinNavigationItem);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.cjs";
|
|
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,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinNavigationItem = require("./daikin-navigation-item.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinNavigationItem", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinNavigationItem.DaikinNavigationItem
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-navigation-item.cjs";
|
|
@@ -37,9 +37,9 @@ const cvaPageButton = classVarianceAuthority.cva(
|
|
|
37
37
|
"not-italic",
|
|
38
38
|
"leading-6",
|
|
39
39
|
"bg-clip-content",
|
|
40
|
-
"focus-visible:outline",
|
|
40
|
+
"focus-visible:outline-solid",
|
|
41
41
|
"focus-visible:outline-2",
|
|
42
|
-
"focus-visible
|
|
42
|
+
"focus-visible:-outline-offset-2",
|
|
43
43
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
44
44
|
],
|
|
45
45
|
{
|
|
@@ -106,10 +106,10 @@ const cvaChevronButton = classVarianceAuthority.cva([
|
|
|
106
106
|
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
107
107
|
"enabled:active:bg-ddt-color-common-surface-neutral-press",
|
|
108
108
|
"enabled:active:text-ddt-color-common-neutral-press",
|
|
109
|
-
"disabled
|
|
110
|
-
"focus-visible:outline",
|
|
109
|
+
"disabled:text-ddt-color-common-disabled",
|
|
110
|
+
"focus-visible:outline-solid",
|
|
111
111
|
"focus-visible:outline-2",
|
|
112
|
-
"focus-visible
|
|
112
|
+
"focus-visible:-outline-offset-2",
|
|
113
113
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
114
114
|
]);
|
|
115
115
|
exports.DaikinPagination = class DaikinPagination extends ddsElement.DDSElement {
|
|
@@ -153,7 +153,7 @@ exports.DaikinPagination = class DaikinPagination extends ddsElement.DDSElement
|
|
|
153
153
|
?disabled=${this.current === 1}
|
|
154
154
|
@click=${() => this._gotoOffset(-1)}
|
|
155
155
|
>
|
|
156
|
-
<span class="
|
|
156
|
+
<span class="icon-[daikin--pagination-chevron-left] w-4 h-4"></span>
|
|
157
157
|
</button>
|
|
158
158
|
${repeat_js.repeat(
|
|
159
159
|
pageArray,
|
|
@@ -197,7 +197,7 @@ exports.DaikinPagination = class DaikinPagination extends ddsElement.DDSElement
|
|
|
197
197
|
?disabled=${this.current === this.total}
|
|
198
198
|
@click=${() => this._gotoOffset(1)}
|
|
199
199
|
>
|
|
200
|
-
<span class="
|
|
200
|
+
<span class="icon-[daikin--pagination-chevron-right] w-4 h-4"></span>
|
|
201
201
|
</button>
|
|
202
202
|
</div>
|
|
203
203
|
`;
|
|
@@ -33,7 +33,7 @@ const cvaBar = classVarianceAuthority.cva(
|
|
|
33
33
|
variants: {
|
|
34
34
|
variant: {
|
|
35
35
|
inprogress: [
|
|
36
|
-
"after:w-
|
|
36
|
+
"after:w-(--bar-width)",
|
|
37
37
|
"after:bg-ddt-color-common-brand-default"
|
|
38
38
|
],
|
|
39
39
|
completed: ["after:w-full", "after:bg-ddt-color-common-success"],
|
|
@@ -68,14 +68,14 @@ const cvaBarContainer = classVarianceAuthority.cva(
|
|
|
68
68
|
"after:size-4",
|
|
69
69
|
"after:flex-none",
|
|
70
70
|
"after:bg-ddt-color-common-success",
|
|
71
|
-
"after:
|
|
71
|
+
"after:icon-[daikin--success]"
|
|
72
72
|
],
|
|
73
73
|
indeterminate: [],
|
|
74
74
|
error: [
|
|
75
75
|
"after:size-4",
|
|
76
76
|
"after:flex-none",
|
|
77
77
|
"after:text-ddt-color-common-danger-default",
|
|
78
|
-
"after:
|
|
78
|
+
"after:icon-[daikin--error]"
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -27,7 +27,7 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
27
27
|
"w-full",
|
|
28
28
|
"text-ddt-color-common-text-primary",
|
|
29
29
|
"pt-2",
|
|
30
|
-
"border-t-
|
|
30
|
+
"border-t-4",
|
|
31
31
|
"font-daikinSerif"
|
|
32
32
|
],
|
|
33
33
|
{
|
|
@@ -56,7 +56,7 @@ exports.DaikinProgressIndicatorItem = class DaikinProgressIndicatorItem extends
|
|
|
56
56
|
${this.status === "finished" ? lit.html`
|
|
57
57
|
<span
|
|
58
58
|
role="img"
|
|
59
|
-
class="flex-none size-4
|
|
59
|
+
class="flex-none size-4 icon-[daikin--success] text-ddt-color-common-brand-default"
|
|
60
60
|
aria-label="Completed"
|
|
61
61
|
></span>
|
|
62
62
|
` : lit.nothing}
|
|
@@ -28,20 +28,20 @@ const RADIO_CLASS_NAME = classVarianceAuthority.cva([
|
|
|
28
28
|
"rounded-full",
|
|
29
29
|
"relative",
|
|
30
30
|
"appearance-none",
|
|
31
|
-
"focus-visible:outline",
|
|
31
|
+
"focus-visible:outline-solid",
|
|
32
32
|
"focus-visible:outline-2",
|
|
33
33
|
"focus-visible:outline-offset-2",
|
|
34
34
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
35
35
|
"unchecked:border-2",
|
|
36
36
|
"enabled:unchecked:border-ddt-color-common-neutral-default",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
37
|
+
"group-hover:unchecked:enabled:border-ddt-color-common-neutral-hover",
|
|
38
|
+
"group-active:unchecked:enabled:border-ddt-color-common-neutral-press",
|
|
39
|
+
"group-hover:unchecked:enabled:bg-ddt-color-common-surface-neutral-hover",
|
|
40
|
+
"group-active:unchecked:enabled:bg-ddt-color-common-surface-neutral-press",
|
|
41
41
|
"checked:border-[5px]",
|
|
42
42
|
"enabled:checked:border-ddt-color-common-brand-default",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
43
|
+
"group-hover:checked:enabled:border-ddt-color-common-brand-hover",
|
|
44
|
+
"group-active:checked:enabled:border-ddt-color-common-brand-press",
|
|
45
45
|
"disabled:border-ddt-color-common-disabled"
|
|
46
46
|
])();
|
|
47
47
|
const cvaLabel = classVarianceAuthority.cva([], {
|
|
@@ -3,7 +3,7 @@ import { DDSElement } from "../../base/index.cjs";
|
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
4
4
|
import { DaikinInputGroup } from "../input-group/index.cjs";
|
|
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
|
/**
|