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