@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
|
@@ -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
|
/**
|
|
@@ -25,41 +25,41 @@ const cvaSelect = classVarianceAuthority.cva(
|
|
|
25
25
|
"w-full",
|
|
26
26
|
"h-full",
|
|
27
27
|
"relative",
|
|
28
|
-
"after:
|
|
28
|
+
"after:icon-[daikin--chevron-down]",
|
|
29
29
|
"after:w-6",
|
|
30
30
|
"after:h-6",
|
|
31
31
|
"after:m-auto",
|
|
32
32
|
"after:absolute",
|
|
33
33
|
"after:top-0",
|
|
34
34
|
"after:bottom-0",
|
|
35
|
-
"after:right-
|
|
35
|
+
"after:right-3.25",
|
|
36
36
|
"after:pointer-events-none",
|
|
37
|
-
"slotted-
|
|
38
|
-
"slotted-
|
|
39
|
-
"slotted-
|
|
40
|
-
"slotted-
|
|
41
|
-
"slotted-
|
|
42
|
-
"slotted-
|
|
43
|
-
"slotted-
|
|
44
|
-
"slotted-
|
|
45
|
-
"slotted-
|
|
46
|
-
"slotted-
|
|
47
|
-
"slotted-
|
|
48
|
-
"slotted-
|
|
49
|
-
"slotted-
|
|
50
|
-
"slotted-
|
|
51
|
-
"slotted-
|
|
52
|
-
"slotted-
|
|
53
|
-
"slotted-
|
|
54
|
-
"slotted-
|
|
55
|
-
"slotted-
|
|
56
|
-
"slotted-
|
|
57
|
-
"slotted-
|
|
58
|
-
"slotted-
|
|
59
|
-
"slotted-
|
|
60
|
-
"slotted-
|
|
61
|
-
"slotted-
|
|
62
|
-
"slotted-
|
|
37
|
+
"slotted-select:appearance-none!",
|
|
38
|
+
"slotted-select:flex!",
|
|
39
|
+
"slotted-select:items-center!",
|
|
40
|
+
"slotted-select:gap-2!",
|
|
41
|
+
"slotted-select:w-full!",
|
|
42
|
+
"slotted-select:h-full!",
|
|
43
|
+
"slotted-select:min-h-12!",
|
|
44
|
+
"slotted-select:pl-4!",
|
|
45
|
+
"slotted-select:pr-12!",
|
|
46
|
+
"slotted-select:text-base!",
|
|
47
|
+
"slotted-select:font-daikinSerif!",
|
|
48
|
+
"slotted-select:border!",
|
|
49
|
+
"slotted-select:border-(--color-base)!",
|
|
50
|
+
"slotted-select:rounded-sm!",
|
|
51
|
+
"slotted-select:leading-5!",
|
|
52
|
+
"slotted-select:outline-solid!",
|
|
53
|
+
"slotted-select:outline-0!",
|
|
54
|
+
"slotted-select:-outline-offset-2!",
|
|
55
|
+
"slotted-select-focus-visible:outline-2!",
|
|
56
|
+
"slotted-select-focus-visible:outline-(--color-focus)!",
|
|
57
|
+
"slotted-select-enabled:cursor-pointer!",
|
|
58
|
+
"slotted-select-enabled:text-ddt-color-common-text-primary!",
|
|
59
|
+
"slotted-select-hover:bg-ddt-color-common-surface-hover!",
|
|
60
|
+
"slotted-select-active:bg-ddt-color-common-surface-press!",
|
|
61
|
+
"slotted-select-disabled:text-ddt-color-common-disabled!",
|
|
62
|
+
"slotted-select-disabled:border-ddt-color-common-disabled!"
|
|
63
63
|
],
|
|
64
64
|
{
|
|
65
65
|
variants: {
|
|
@@ -69,14 +69,14 @@ const cvaSelect = classVarianceAuthority.cva(
|
|
|
69
69
|
},
|
|
70
70
|
error: {
|
|
71
71
|
false: [
|
|
72
|
-
"slotted-
|
|
73
|
-
"slotted-
|
|
74
|
-
"slotted-
|
|
75
|
-
"
|
|
72
|
+
"slotted-select-enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
73
|
+
"slotted-select-hover:[--color-base:var(--dds-color-common-neutral-hover)]",
|
|
74
|
+
"slotted-select-active:[--color-base:var(--dds-color-common-neutral-press)]",
|
|
75
|
+
"[--color-focus:var(--dds-color-common-border-focus)]"
|
|
76
76
|
],
|
|
77
77
|
true: [
|
|
78
|
-
"
|
|
79
|
-
"
|
|
78
|
+
"[--color-base:var(--dds-color-common-danger-default)]",
|
|
79
|
+
"[--color-focus:var(--dds-color-common-danger-default)]"
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -30,7 +30,7 @@ const cvaSliderThumb = classVarianceAuthority.cva(
|
|
|
30
30
|
"w-4",
|
|
31
31
|
"h-4",
|
|
32
32
|
"rounded-full",
|
|
33
|
-
"left-
|
|
33
|
+
"left-(--slider-ratio)"
|
|
34
34
|
],
|
|
35
35
|
{
|
|
36
36
|
variants: {
|
|
@@ -40,8 +40,8 @@ const cvaSliderThumb = classVarianceAuthority.cva(
|
|
|
40
40
|
"[&:not([data-dragging])]:bg-ddt-color-common-brand-default",
|
|
41
41
|
"[&:not([data-dragging])]:hover:bg-ddt-color-common-brand-hover",
|
|
42
42
|
"[&:not([data-dragging])]:active:bg-ddt-color-common-brand-press",
|
|
43
|
-
"data-
|
|
44
|
-
"focus-visible:outline",
|
|
43
|
+
"data-dragging:bg-ddt-color-common-brand-press",
|
|
44
|
+
"focus-visible:outline-solid",
|
|
45
45
|
"focus-visible:outline-2",
|
|
46
46
|
"focus-visible:outline-offset-2",
|
|
47
47
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
@@ -58,7 +58,7 @@ const cvaSliderTrack = classVarianceAuthority.cva(
|
|
|
58
58
|
"-translate-y-1/2",
|
|
59
59
|
"left-0",
|
|
60
60
|
"h-1",
|
|
61
|
-
"w-
|
|
61
|
+
"w-(--slider-ratio)"
|
|
62
62
|
],
|
|
63
63
|
{
|
|
64
64
|
variants: {
|
|
@@ -41,22 +41,22 @@ const cvaWrapper = classVarianceAuthority.cva(
|
|
|
41
41
|
status: {
|
|
42
42
|
neutral: [
|
|
43
43
|
"text-ddt-color-common-text-primary",
|
|
44
|
-
"before:
|
|
44
|
+
"before:icon-[daikin--neutral]",
|
|
45
45
|
"before:text-ddt-color-common-disabled"
|
|
46
46
|
],
|
|
47
47
|
positive: [
|
|
48
48
|
"text-ddt-color-common-text-primary",
|
|
49
|
-
"before:
|
|
49
|
+
"before:icon-[daikin--success]",
|
|
50
50
|
"before:text-ddt-color-common-success"
|
|
51
51
|
],
|
|
52
52
|
negative: [
|
|
53
53
|
"text-ddt-color-common-danger-default",
|
|
54
|
-
"before:
|
|
54
|
+
"before:icon-[daikin--error]",
|
|
55
55
|
"before:text-ddt-color-common-danger-default"
|
|
56
56
|
],
|
|
57
57
|
warning: [
|
|
58
58
|
"text-ddt-color-common-text-primary",
|
|
59
|
-
"before:
|
|
59
|
+
"before:icon-[daikin--warning]",
|
|
60
60
|
"before:text-ddt-color-common-warning"
|
|
61
61
|
]
|
|
62
62
|
}
|
|
@@ -33,10 +33,10 @@ const cvaTab = classVarianceAuthority.cva(
|
|
|
33
33
|
"font-daikinSerif",
|
|
34
34
|
"tracking-wide",
|
|
35
35
|
"relative",
|
|
36
|
-
"focus-visible:outline-
|
|
36
|
+
"focus-visible:outline-hidden",
|
|
37
37
|
"focus-visible:before:absolute",
|
|
38
38
|
"focus-visible:before:-inset-1",
|
|
39
|
-
"focus-visible:before:z-
|
|
39
|
+
"focus-visible:before:z-1",
|
|
40
40
|
"focus-visible:before:border",
|
|
41
41
|
"focus-visible:before:border-2",
|
|
42
42
|
"focus-visible:before:border-ddt-color-common-border-focus",
|
|
@@ -54,7 +54,7 @@ const cvaTab = classVarianceAuthority.cva(
|
|
|
54
54
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
55
55
|
"enabled:active:text-ddt-color-common-neutral-press",
|
|
56
56
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
57
|
-
"after:h-
|
|
57
|
+
"after:h-px",
|
|
58
58
|
"after:bg-ddt-color-divider"
|
|
59
59
|
],
|
|
60
60
|
true: [
|
|
@@ -30,7 +30,7 @@ const cvaRow = classVarianceAuthority.cva(
|
|
|
30
30
|
[
|
|
31
31
|
"border-b",
|
|
32
32
|
"border-b-ddt-color-divider",
|
|
33
|
-
"focus-visible:outline",
|
|
33
|
+
"focus-visible:outline-solid",
|
|
34
34
|
"focus-visible:outline-2",
|
|
35
35
|
"focus-visible:-outline-offset-2",
|
|
36
36
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
@@ -39,13 +39,13 @@ const cvaRow = classVarianceAuthority.cva(
|
|
|
39
39
|
variants: {
|
|
40
40
|
selected: {
|
|
41
41
|
false: [
|
|
42
|
-
"group-[:not([data-hover])]:
|
|
43
|
-
"data-
|
|
42
|
+
"hover:group-[:not([data-hover])]:bg-ddt-color-common-surface-hover",
|
|
43
|
+
"data-hover:bg-ddt-color-common-surface-hover"
|
|
44
44
|
],
|
|
45
45
|
true: [
|
|
46
46
|
"bg-ddt-color-common-surface-selected-default",
|
|
47
|
-
"group-[:not([data-hover])]:
|
|
48
|
-
"data-
|
|
47
|
+
"hover:group-[:not([data-hover])]:bg-ddt-color-common-surface-selected-hover",
|
|
48
|
+
"data-hover:bg-ddt-color-common-surface-selected-hover"
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -218,6 +218,13 @@ exports.DaikinTable = class DaikinTable extends ddsElement.DDSElement {
|
|
|
218
218
|
@touchmove=${this._handleTouchMove}
|
|
219
219
|
@touchend=${this._handleTouchEnd}
|
|
220
220
|
>
|
|
221
|
+
${this._currentView.length === 0 ? lit.html`<tr>
|
|
222
|
+
<td colspan=${this.headers.length + (this.selectable ? 1 : 0)}>
|
|
223
|
+
<div class="flex items-center justify-center">
|
|
224
|
+
<slot name="empty"></slot>
|
|
225
|
+
</div>
|
|
226
|
+
</td>
|
|
227
|
+
</tr>` : lit.nothing}
|
|
221
228
|
${repeat_js.repeat(
|
|
222
229
|
this._currentView,
|
|
223
230
|
({ id }) => id,
|