@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
|
@@ -23,41 +23,41 @@ const cvaSelect = cva(
|
|
|
23
23
|
"w-full",
|
|
24
24
|
"h-full",
|
|
25
25
|
"relative",
|
|
26
|
-
"after:
|
|
26
|
+
"after:icon-[daikin--chevron-down]",
|
|
27
27
|
"after:w-6",
|
|
28
28
|
"after:h-6",
|
|
29
29
|
"after:m-auto",
|
|
30
30
|
"after:absolute",
|
|
31
31
|
"after:top-0",
|
|
32
32
|
"after:bottom-0",
|
|
33
|
-
"after:right-
|
|
33
|
+
"after:right-3.25",
|
|
34
34
|
"after:pointer-events-none",
|
|
35
|
-
"slotted-
|
|
36
|
-
"slotted-
|
|
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-
|
|
35
|
+
"slotted-select:appearance-none!",
|
|
36
|
+
"slotted-select:flex!",
|
|
37
|
+
"slotted-select:items-center!",
|
|
38
|
+
"slotted-select:gap-2!",
|
|
39
|
+
"slotted-select:w-full!",
|
|
40
|
+
"slotted-select:h-full!",
|
|
41
|
+
"slotted-select:min-h-12!",
|
|
42
|
+
"slotted-select:pl-4!",
|
|
43
|
+
"slotted-select:pr-12!",
|
|
44
|
+
"slotted-select:text-base!",
|
|
45
|
+
"slotted-select:font-daikinSerif!",
|
|
46
|
+
"slotted-select:border!",
|
|
47
|
+
"slotted-select:border-(--color-base)!",
|
|
48
|
+
"slotted-select:rounded-sm!",
|
|
49
|
+
"slotted-select:leading-5!",
|
|
50
|
+
"slotted-select:outline-solid!",
|
|
51
|
+
"slotted-select:outline-0!",
|
|
52
|
+
"slotted-select:-outline-offset-2!",
|
|
53
|
+
"slotted-select-focus-visible:outline-2!",
|
|
54
|
+
"slotted-select-focus-visible:outline-(--color-focus)!",
|
|
55
|
+
"slotted-select-enabled:cursor-pointer!",
|
|
56
|
+
"slotted-select-enabled:text-ddt-color-common-text-primary!",
|
|
57
|
+
"slotted-select-hover:bg-ddt-color-common-surface-hover!",
|
|
58
|
+
"slotted-select-active:bg-ddt-color-common-surface-press!",
|
|
59
|
+
"slotted-select-disabled:text-ddt-color-common-disabled!",
|
|
60
|
+
"slotted-select-disabled:border-ddt-color-common-disabled!"
|
|
61
61
|
],
|
|
62
62
|
{
|
|
63
63
|
variants: {
|
|
@@ -67,14 +67,14 @@ const cvaSelect = cva(
|
|
|
67
67
|
},
|
|
68
68
|
error: {
|
|
69
69
|
false: [
|
|
70
|
-
"slotted-
|
|
71
|
-
"slotted-
|
|
72
|
-
"slotted-
|
|
73
|
-
"
|
|
70
|
+
"slotted-select-enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
71
|
+
"slotted-select-hover:[--color-base:var(--dds-color-common-neutral-hover)]",
|
|
72
|
+
"slotted-select-active:[--color-base:var(--dds-color-common-neutral-press)]",
|
|
73
|
+
"[--color-focus:var(--dds-color-common-border-focus)]"
|
|
74
74
|
],
|
|
75
75
|
true: [
|
|
76
|
-
"
|
|
77
|
-
"
|
|
76
|
+
"[--color-base:var(--dds-color-common-danger-default)]",
|
|
77
|
+
"[--color-focus:var(--dds-color-common-danger-default)]"
|
|
78
78
|
]
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -28,7 +28,7 @@ const cvaSliderThumb = cva(
|
|
|
28
28
|
"w-4",
|
|
29
29
|
"h-4",
|
|
30
30
|
"rounded-full",
|
|
31
|
-
"left-
|
|
31
|
+
"left-(--slider-ratio)"
|
|
32
32
|
],
|
|
33
33
|
{
|
|
34
34
|
variants: {
|
|
@@ -38,8 +38,8 @@ const cvaSliderThumb = cva(
|
|
|
38
38
|
"[&:not([data-dragging])]:bg-ddt-color-common-brand-default",
|
|
39
39
|
"[&:not([data-dragging])]:hover:bg-ddt-color-common-brand-hover",
|
|
40
40
|
"[&:not([data-dragging])]:active:bg-ddt-color-common-brand-press",
|
|
41
|
-
"data-
|
|
42
|
-
"focus-visible:outline",
|
|
41
|
+
"data-dragging:bg-ddt-color-common-brand-press",
|
|
42
|
+
"focus-visible:outline-solid",
|
|
43
43
|
"focus-visible:outline-2",
|
|
44
44
|
"focus-visible:outline-offset-2",
|
|
45
45
|
"focus-visible:outline-ddt-color-common-border-focus"
|
|
@@ -56,7 +56,7 @@ const cvaSliderTrack = cva(
|
|
|
56
56
|
"-translate-y-1/2",
|
|
57
57
|
"left-0",
|
|
58
58
|
"h-1",
|
|
59
|
-
"w-
|
|
59
|
+
"w-(--slider-ratio)"
|
|
60
60
|
],
|
|
61
61
|
{
|
|
62
62
|
variants: {
|
|
@@ -39,22 +39,22 @@ const cvaWrapper = cva(
|
|
|
39
39
|
status: {
|
|
40
40
|
neutral: [
|
|
41
41
|
"text-ddt-color-common-text-primary",
|
|
42
|
-
"before:
|
|
42
|
+
"before:icon-[daikin--neutral]",
|
|
43
43
|
"before:text-ddt-color-common-disabled"
|
|
44
44
|
],
|
|
45
45
|
positive: [
|
|
46
46
|
"text-ddt-color-common-text-primary",
|
|
47
|
-
"before:
|
|
47
|
+
"before:icon-[daikin--success]",
|
|
48
48
|
"before:text-ddt-color-common-success"
|
|
49
49
|
],
|
|
50
50
|
negative: [
|
|
51
51
|
"text-ddt-color-common-danger-default",
|
|
52
|
-
"before:
|
|
52
|
+
"before:icon-[daikin--error]",
|
|
53
53
|
"before:text-ddt-color-common-danger-default"
|
|
54
54
|
],
|
|
55
55
|
warning: [
|
|
56
56
|
"text-ddt-color-common-text-primary",
|
|
57
|
-
"before:
|
|
57
|
+
"before:icon-[daikin--warning]",
|
|
58
58
|
"before:text-ddt-color-common-warning"
|
|
59
59
|
]
|
|
60
60
|
}
|
|
@@ -31,10 +31,10 @@ const cvaTab = cva(
|
|
|
31
31
|
"font-daikinSerif",
|
|
32
32
|
"tracking-wide",
|
|
33
33
|
"relative",
|
|
34
|
-
"focus-visible:outline-
|
|
34
|
+
"focus-visible:outline-hidden",
|
|
35
35
|
"focus-visible:before:absolute",
|
|
36
36
|
"focus-visible:before:-inset-1",
|
|
37
|
-
"focus-visible:before:z-
|
|
37
|
+
"focus-visible:before:z-1",
|
|
38
38
|
"focus-visible:before:border",
|
|
39
39
|
"focus-visible:before:border-2",
|
|
40
40
|
"focus-visible:before:border-ddt-color-common-border-focus",
|
|
@@ -52,7 +52,7 @@ const cvaTab = cva(
|
|
|
52
52
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
53
53
|
"enabled:active:text-ddt-color-common-neutral-press",
|
|
54
54
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
55
|
-
"after:h-
|
|
55
|
+
"after:h-px",
|
|
56
56
|
"after:bg-ddt-color-divider"
|
|
57
57
|
],
|
|
58
58
|
true: [
|
|
@@ -20,12 +20,14 @@ export type HeaderType<T extends string = string> = {
|
|
|
20
20
|
* Hierarchy:
|
|
21
21
|
* - `daikin-table` > `daikin-table-cell`
|
|
22
22
|
* - `daikin-table` > `daikin-table-header-cell`
|
|
23
|
+
* - `daikin-table` > `daikin-empty-state`
|
|
23
24
|
*
|
|
24
25
|
* @fires change-check - When the checkbox is operated, it returns the array of `id`s that are currently checked.
|
|
25
26
|
* @fires change-sort - When the sort is changed, it returns the current sort key and the order (ascending or descending).
|
|
26
27
|
*
|
|
27
28
|
* @slot header:${headers[i].key} - A slot for the header cell of a table. Use this when you want to display something other than text, such as an icon. Use `daikin-table-header-cell` for the wrapper.
|
|
28
29
|
* @slot cell:${rows[j].id}:${headers[i].key} - A slot for the data cell of a table. Use `daikin-table-cell` for the wrapper.
|
|
30
|
+
* @slot empty - A slot to define the content displayed when the table rows are empty. Typically, the `daikin-empty-state` component can be used.
|
|
29
31
|
*
|
|
30
32
|
* @example
|
|
31
33
|
*
|
|
@@ -28,7 +28,7 @@ const cvaRow = cva(
|
|
|
28
28
|
[
|
|
29
29
|
"border-b",
|
|
30
30
|
"border-b-ddt-color-divider",
|
|
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"
|
|
@@ -37,13 +37,13 @@ const cvaRow = cva(
|
|
|
37
37
|
variants: {
|
|
38
38
|
selected: {
|
|
39
39
|
false: [
|
|
40
|
-
"group-[:not([data-hover])]:
|
|
41
|
-
"data-
|
|
40
|
+
"hover:group-[:not([data-hover])]:bg-ddt-color-common-surface-hover",
|
|
41
|
+
"data-hover:bg-ddt-color-common-surface-hover"
|
|
42
42
|
],
|
|
43
43
|
true: [
|
|
44
44
|
"bg-ddt-color-common-surface-selected-default",
|
|
45
|
-
"group-[:not([data-hover])]:
|
|
46
|
-
"data-
|
|
45
|
+
"hover:group-[:not([data-hover])]:bg-ddt-color-common-surface-selected-hover",
|
|
46
|
+
"data-hover:bg-ddt-color-common-surface-selected-hover"
|
|
47
47
|
]
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -216,6 +216,13 @@ let DaikinTable = class extends DDSElement {
|
|
|
216
216
|
@touchmove=${this._handleTouchMove}
|
|
217
217
|
@touchend=${this._handleTouchEnd}
|
|
218
218
|
>
|
|
219
|
+
${this._currentView.length === 0 ? html`<tr>
|
|
220
|
+
<td colspan=${this.headers.length + (this.selectable ? 1 : 0)}>
|
|
221
|
+
<div class="flex items-center justify-center">
|
|
222
|
+
<slot name="empty"></slot>
|
|
223
|
+
</div>
|
|
224
|
+
</td>
|
|
225
|
+
</tr>` : nothing}
|
|
219
226
|
${repeat(
|
|
220
227
|
this._currentView,
|
|
221
228
|
({ id }) => id,
|
|
@@ -40,7 +40,7 @@ const cvaHeaderCell = cva(
|
|
|
40
40
|
true: [
|
|
41
41
|
"hover:bg-ddt-color-common-surface-hover",
|
|
42
42
|
"active:bg-ddt-color-common-surface-press",
|
|
43
|
-
"focus-visible:outline",
|
|
43
|
+
"focus-visible:outline-solid",
|
|
44
44
|
"focus-visible:outline-2",
|
|
45
45
|
"focus-visible:-outline-offset-2",
|
|
46
46
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
@@ -57,17 +57,17 @@ const cvaHeaderCell = cva(
|
|
|
57
57
|
{
|
|
58
58
|
sortable: true,
|
|
59
59
|
order: null,
|
|
60
|
-
class: ["after:
|
|
60
|
+
class: ["after:icon-[daikin--sort]"]
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
sortable: true,
|
|
64
64
|
order: "asc",
|
|
65
|
-
class: ["after:
|
|
65
|
+
class: ["after:icon-[daikin--chevron-up]"]
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
sortable: true,
|
|
69
69
|
order: "desc",
|
|
70
|
-
class: ["after:
|
|
70
|
+
class: ["after:icon-[daikin--chevron-up]", "after:rotate-180"]
|
|
71
71
|
}
|
|
72
72
|
]
|
|
73
73
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
2
|
import { DDSElement } from "../../base/index.js";
|
|
3
3
|
/**
|
|
4
|
-
* The
|
|
4
|
+
* The tabs component manages a group of tab components and switches the content displayed using the panel switcher component.
|
|
5
5
|
* It allows users to navigate between different sections of content by clicking on individual tabs.
|
|
6
6
|
*
|
|
7
7
|
* > [!WARNING]
|
|
@@ -22,7 +22,7 @@ import { DDSElement } from "../../base/index.js";
|
|
|
22
22
|
*
|
|
23
23
|
* ```js
|
|
24
24
|
* import "@daikin-oss/design-system-web-components/components/tab/index.js";
|
|
25
|
-
* import "@daikin-oss/design-system-web-components/components/
|
|
25
|
+
* import "@daikin-oss/design-system-web-components/components/tabs/index.js";
|
|
26
26
|
* import "@daikin-oss/design-system-web-components/components/tab-panels/index.js";
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
@@ -190,7 +190,7 @@ let DaikinTabs = class extends DDSElement {
|
|
|
190
190
|
render() {
|
|
191
191
|
return html`
|
|
192
192
|
<div
|
|
193
|
-
class="flex flex-nowrap w-full p-1 overflow-auto relative before:absolute before:h-
|
|
193
|
+
class="flex flex-nowrap w-full p-1 overflow-auto relative before:absolute before:h-px before:inset-1 before:top-auto before:bg-ddt-color-divider"
|
|
194
194
|
role="tablist"
|
|
195
195
|
@click=${this._handleTabClick}
|
|
196
196
|
@keydown=${this._handleKeyDown}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The Tag is a flexible component. It is designed not only to display concise text information but also to support automatic line wrapping for longer content. Furthermore, its slots allow for the customization of multi-element content based on specific requirements.
|
|
4
|
+
*
|
|
5
|
+
* @fires remove - A custom event emitted when a user clicks the remove button.
|
|
6
|
+
*
|
|
7
|
+
* @slot - A slot for the tag content.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* ```js
|
|
12
|
+
* import "@daikin-oss/design-system-web-components/components/tag/index.js";
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <daikin-tag remove-button-aria-label="Remove Text">Text</daikin-tag>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class DaikinTag extends DDSElement {
|
|
20
|
+
static readonly styles: import('lit').CSSResult;
|
|
21
|
+
/**
|
|
22
|
+
* Hides the remove button and makes the tag non-removable. The default value is `false`.
|
|
23
|
+
*/
|
|
24
|
+
hideRemoveButton: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Provides an accessible name of the tag.
|
|
27
|
+
*/
|
|
28
|
+
tagAriaLabel: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Provides an accessible name of the remove button.
|
|
31
|
+
*/
|
|
32
|
+
removeButtonAriaLabel: string | null;
|
|
33
|
+
private _focusableElement;
|
|
34
|
+
private _handleRemoveClick;
|
|
35
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
36
|
+
/**
|
|
37
|
+
* Focuses on the inner remove button
|
|
38
|
+
* @param options focus options
|
|
39
|
+
*/
|
|
40
|
+
focus(options?: FocusOptions): void;
|
|
41
|
+
}
|
|
42
|
+
declare global {
|
|
43
|
+
interface HTMLElementTagNameMap {
|
|
44
|
+
"daikin-tag": DaikinTag;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { unsafeCSS, css, nothing, html } from "lit";
|
|
3
|
+
import { query } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
|
+
import { DDSElement } from "../../base/dds-element.js";
|
|
6
|
+
import "../../base/dds-form-element.js";
|
|
7
|
+
import { property } from "../../base/dds-property.js";
|
|
8
|
+
import { ddsElement } from "../../base/decorators.js";
|
|
9
|
+
import "../../base/define.js";
|
|
10
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
14
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators[i])
|
|
17
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
|
+
if (kind && result) __defProp(target, key, result);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
const cvaWrapper = cva([
|
|
22
|
+
"flex",
|
|
23
|
+
"items-center",
|
|
24
|
+
"justify-between",
|
|
25
|
+
"rounded",
|
|
26
|
+
"overflow-hidden",
|
|
27
|
+
"size-full",
|
|
28
|
+
"gap-1",
|
|
29
|
+
"bg-(--dds-color-common-surface-secondary-default)"
|
|
30
|
+
]);
|
|
31
|
+
const cvaRemoveButton = cva([
|
|
32
|
+
"mr-1",
|
|
33
|
+
"w-6",
|
|
34
|
+
"h-6",
|
|
35
|
+
"flex",
|
|
36
|
+
"flex-none",
|
|
37
|
+
"items-center",
|
|
38
|
+
"justify-center",
|
|
39
|
+
"rounded-full",
|
|
40
|
+
"overflow-hidden",
|
|
41
|
+
"focus-visible:outline-solid",
|
|
42
|
+
"focus-visible:outline-2",
|
|
43
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
44
|
+
"enabled:[--color-primary:var(--dds-color-common-neutral-default)]",
|
|
45
|
+
"enabled:hover:[--color-primary:var(--dds-color-common-neutral-hover)]",
|
|
46
|
+
"enabled:active:[--color-primary:var(--dds-color-common-neutral-press)]",
|
|
47
|
+
"enabled:[--color-secondary:var(--dds-color-common-surface-secondary-default)]",
|
|
48
|
+
"enabled:hover:[--color-secondary:var(--dds-color-common-surface-secondary-hover)]",
|
|
49
|
+
"enabled:active:[--color-secondary:var(--dds-color-common-surface-secondary-press)]",
|
|
50
|
+
"text-(--color-primary)",
|
|
51
|
+
"bg-(--color-secondary)"
|
|
52
|
+
]);
|
|
53
|
+
let DaikinTag = class extends DDSElement {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments);
|
|
56
|
+
this.hideRemoveButton = false;
|
|
57
|
+
this.tagAriaLabel = null;
|
|
58
|
+
this.removeButtonAriaLabel = null;
|
|
59
|
+
}
|
|
60
|
+
_handleRemoveClick(event) {
|
|
61
|
+
event.stopPropagation();
|
|
62
|
+
this.dispatchEvent(new Event("remove", { bubbles: true, composed: true }));
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
return html`
|
|
66
|
+
<div
|
|
67
|
+
role="group"
|
|
68
|
+
aria-label=${ifDefined(this.tagAriaLabel ?? void 0)}
|
|
69
|
+
class=${cvaWrapper()}
|
|
70
|
+
>
|
|
71
|
+
<span
|
|
72
|
+
class="text-ddt-color-common-text-primary p-2 text-sm leading-[130%] font-daikinSerif natural-break"
|
|
73
|
+
>
|
|
74
|
+
<slot></slot>
|
|
75
|
+
</span>
|
|
76
|
+
${this.hideRemoveButton ? nothing : html`
|
|
77
|
+
<button
|
|
78
|
+
type="button"
|
|
79
|
+
class=${cvaRemoveButton()}
|
|
80
|
+
aria-label=${ifDefined(this.removeButtonAriaLabel ?? "Remove")}
|
|
81
|
+
@click=${this._handleRemoveClick}
|
|
82
|
+
>
|
|
83
|
+
<span class="icon-[daikin--close] size-6"></span>
|
|
84
|
+
</button>
|
|
85
|
+
`}
|
|
86
|
+
</div>
|
|
87
|
+
`;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Focuses on the inner remove button
|
|
91
|
+
* @param options focus options
|
|
92
|
+
*/
|
|
93
|
+
focus(options) {
|
|
94
|
+
var _a;
|
|
95
|
+
(_a = this._focusableElement) == null ? void 0 : _a.focus(options);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
DaikinTag.styles = css`
|
|
99
|
+
${unsafeCSS(tailwindStyles)}
|
|
100
|
+
|
|
101
|
+
:host {
|
|
102
|
+
display: block;
|
|
103
|
+
width: fit-content;
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
106
|
+
__decorateClass([
|
|
107
|
+
property({ type: Boolean, reflect: true, attribute: "hide-remove-button" })
|
|
108
|
+
], DaikinTag.prototype, "hideRemoveButton", 2);
|
|
109
|
+
__decorateClass([
|
|
110
|
+
property({ type: String, reflect: true, attribute: "tag-aria-label" })
|
|
111
|
+
], DaikinTag.prototype, "tagAriaLabel", 2);
|
|
112
|
+
__decorateClass([
|
|
113
|
+
property({
|
|
114
|
+
type: String,
|
|
115
|
+
reflect: true,
|
|
116
|
+
attribute: "remove-button-aria-label"
|
|
117
|
+
})
|
|
118
|
+
], DaikinTag.prototype, "removeButtonAriaLabel", 2);
|
|
119
|
+
__decorateClass([
|
|
120
|
+
query("button")
|
|
121
|
+
], DaikinTag.prototype, "_focusableElement", 2);
|
|
122
|
+
DaikinTag = __decorateClass([
|
|
123
|
+
ddsElement("daikin-tag")
|
|
124
|
+
], DaikinTag);
|
|
125
|
+
export {
|
|
126
|
+
DaikinTag
|
|
127
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-tag.js";
|
|
@@ -25,18 +25,18 @@ const cvaTextArea = cva(
|
|
|
25
25
|
"bg-ddt-color-common-background-default",
|
|
26
26
|
"px-4",
|
|
27
27
|
"py-3",
|
|
28
|
-
"rounded",
|
|
28
|
+
"rounded-sm",
|
|
29
29
|
"font-daikinSerif",
|
|
30
|
-
"outline",
|
|
31
|
-
"outline-
|
|
30
|
+
"outline-solid",
|
|
31
|
+
"outline-(--color-border)",
|
|
32
32
|
"outline-1",
|
|
33
33
|
"-outline-offset-1",
|
|
34
34
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
35
35
|
// Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
|
|
36
36
|
// `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
|
|
37
|
-
"
|
|
37
|
+
"[--color-border:var(--color-state-active,var(--color-state-focus,var(--color-base)))]",
|
|
38
38
|
"border",
|
|
39
|
-
"border-
|
|
39
|
+
"border-(--color-border)",
|
|
40
40
|
"enabled:text-ddt-color-common-text-primary",
|
|
41
41
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
42
42
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
@@ -44,7 +44,7 @@ const cvaTextArea = cva(
|
|
|
44
44
|
"focus-visible:-outline-offset-2",
|
|
45
45
|
// Update `--color-base` depending on the state.
|
|
46
46
|
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
47
|
-
"disabled:
|
|
47
|
+
"disabled:[--color-base:var(--dds-color-common-disabled)]",
|
|
48
48
|
"disabled:text-ddt-color-common-disabled",
|
|
49
49
|
"disabled:bg-color-common-background-default",
|
|
50
50
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -53,12 +53,12 @@ const cvaTextArea = cva(
|
|
|
53
53
|
variants: {
|
|
54
54
|
error: {
|
|
55
55
|
false: [
|
|
56
|
-
"enabled:
|
|
57
|
-
"enabled:hover:
|
|
58
|
-
"enabled:active:
|
|
59
|
-
"focus-visible:
|
|
56
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
57
|
+
"enabled:hover:[--color-base:var(--dds-color-common-neutral-hover)]",
|
|
58
|
+
"enabled:active:[--color-base:var(--dds-color-common-neutral-press)]",
|
|
59
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
60
60
|
],
|
|
61
|
-
true: ["enabled:
|
|
61
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
62
62
|
},
|
|
63
63
|
resize: {
|
|
64
64
|
false: ["resize-none"],
|
|
@@ -27,30 +27,30 @@ const cvaInput = cva(
|
|
|
27
27
|
"items-center",
|
|
28
28
|
"w-full",
|
|
29
29
|
"h-full",
|
|
30
|
-
"pl-
|
|
31
|
-
"pr-
|
|
30
|
+
"pl-(--pl,1rem)",
|
|
31
|
+
"pr-(--pr,1rem)",
|
|
32
32
|
"bg-ddt-color-common-background-default",
|
|
33
33
|
"relative",
|
|
34
|
-
"rounded",
|
|
34
|
+
"rounded-sm",
|
|
35
35
|
"overflow-hidden",
|
|
36
36
|
"font-daikinSerif",
|
|
37
|
-
"outline",
|
|
38
|
-
"outline-
|
|
37
|
+
"outline-solid",
|
|
38
|
+
"outline-(--color-border)",
|
|
39
39
|
"outline-0",
|
|
40
40
|
"-outline-offset-2",
|
|
41
41
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
42
42
|
// Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
|
|
43
43
|
// `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
|
|
44
|
-
"
|
|
44
|
+
"[--color-border:var(--color-state-focus,var(--color-base))]",
|
|
45
45
|
"border",
|
|
46
|
-
"border-
|
|
46
|
+
"border-(--color-border)",
|
|
47
47
|
// Update `--color-base` depending on the state.
|
|
48
48
|
// The default `--color-base` and `--color-state-focus` values are defined in `variants.error` because they differ depending on whether or not the input has an error state.
|
|
49
49
|
"enabled:text-ddt-color-common-text-primary",
|
|
50
50
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
51
51
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
52
52
|
"focus-visible:outline-2",
|
|
53
|
-
"disabled:
|
|
53
|
+
"disabled:[--color-base:var(--dds-color-common-disabled)]",
|
|
54
54
|
"disabled:text-ddt-color-common-disabled",
|
|
55
55
|
"disabled:bg-ddt-color-common-background-default",
|
|
56
56
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -59,12 +59,12 @@ const cvaInput = cva(
|
|
|
59
59
|
variants: {
|
|
60
60
|
error: {
|
|
61
61
|
false: [
|
|
62
|
-
"enabled:
|
|
63
|
-
"enabled:hover:
|
|
64
|
-
"enabled:active:
|
|
65
|
-
"focus-visible:
|
|
62
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
63
|
+
"enabled:hover:[--color-base:var(--dds-color-common-neutral-hover)]",
|
|
64
|
+
"enabled:active:[--color-base:var(--dds-color-common-neutral-press)]",
|
|
65
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
66
66
|
],
|
|
67
|
-
true: ["enabled:
|
|
67
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
68
68
|
},
|
|
69
69
|
leftIcon: {
|
|
70
70
|
false: [],
|
|
@@ -116,11 +116,11 @@ const cvaIcon = cva(
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
|
-
const cvaShowPasswordIcon = cva(["
|
|
119
|
+
const cvaShowPasswordIcon = cva(["size-6"], {
|
|
120
120
|
variants: {
|
|
121
121
|
showPassword: {
|
|
122
|
-
false: ["
|
|
123
|
-
true: ["
|
|
122
|
+
false: ["icon-[daikin--password-hidden]"],
|
|
123
|
+
true: ["icon-[daikin--password-visible]"]
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
});
|
|
@@ -268,7 +268,7 @@ let DaikinTextField = class extends DDSFormElement {
|
|
|
268
268
|
tabindex="-1"
|
|
269
269
|
@click=${() => this._updateNumberValue(-1)}
|
|
270
270
|
>
|
|
271
|
-
<span class="
|
|
271
|
+
<span class="icon-[daikin--number-minus] size-6"></span>
|
|
272
272
|
</daikin-icon-button>
|
|
273
273
|
<daikin-icon-button
|
|
274
274
|
color="neutral"
|
|
@@ -278,7 +278,7 @@ let DaikinTextField = class extends DDSFormElement {
|
|
|
278
278
|
tabindex="-1"
|
|
279
279
|
@click=${() => this._updateNumberValue(1)}
|
|
280
280
|
>
|
|
281
|
-
<span class="
|
|
281
|
+
<span class="icon-[daikin--number-plus] size-6"></span>
|
|
282
282
|
</daikin-icon-button>
|
|
283
283
|
</span>`;
|
|
284
284
|
case "password":
|
|
@@ -301,7 +301,7 @@ let DaikinTextField = class extends DDSFormElement {
|
|
|
301
301
|
disabled: this.disabled
|
|
302
302
|
})}
|
|
303
303
|
>
|
|
304
|
-
<span class="
|
|
304
|
+
<span class="icon-[daikin--search] size-6"></span>
|
|
305
305
|
</span>
|
|
306
306
|
${!!this.value && !!this.value.length ? html`<daikin-icon-button
|
|
307
307
|
color="neutral"
|
|
@@ -311,7 +311,7 @@ let DaikinTextField = class extends DDSFormElement {
|
|
|
311
311
|
class="absolute right-3 size-6"
|
|
312
312
|
@click=${this._handleClearClick}
|
|
313
313
|
>
|
|
314
|
-
<span class="
|
|
314
|
+
<span class="icon-[daikin--close] size-6"></span>
|
|
315
315
|
</daikin-icon-button>` : nothing}`;
|
|
316
316
|
default:
|
|
317
317
|
return html`${leftIconSlot}${rightIconSlot}`;
|