@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
|
@@ -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
|
*
|
|
@@ -42,7 +42,7 @@ const cvaHeaderCell = classVarianceAuthority.cva(
|
|
|
42
42
|
true: [
|
|
43
43
|
"hover:bg-ddt-color-common-surface-hover",
|
|
44
44
|
"active:bg-ddt-color-common-surface-press",
|
|
45
|
-
"focus-visible:outline",
|
|
45
|
+
"focus-visible:outline-solid",
|
|
46
46
|
"focus-visible:outline-2",
|
|
47
47
|
"focus-visible:-outline-offset-2",
|
|
48
48
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
@@ -59,17 +59,17 @@ const cvaHeaderCell = classVarianceAuthority.cva(
|
|
|
59
59
|
{
|
|
60
60
|
sortable: true,
|
|
61
61
|
order: null,
|
|
62
|
-
class: ["after:
|
|
62
|
+
class: ["after:icon-[daikin--sort]"]
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
sortable: true,
|
|
66
66
|
order: "asc",
|
|
67
|
-
class: ["after:
|
|
67
|
+
class: ["after:icon-[daikin--chevron-up]"]
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
sortable: true,
|
|
71
71
|
order: "desc",
|
|
72
|
-
class: ["after:
|
|
72
|
+
class: ["after:icon-[daikin--chevron-up]", "after:rotate-180"]
|
|
73
73
|
}
|
|
74
74
|
]
|
|
75
75
|
}
|
|
@@ -182,7 +182,7 @@ exports.DaikinTabs = class DaikinTabs extends ddsElement.DDSElement {
|
|
|
182
182
|
render() {
|
|
183
183
|
return lit.html`
|
|
184
184
|
<div
|
|
185
|
-
class="flex flex-nowrap w-full p-1 overflow-auto relative before:absolute before:h-
|
|
185
|
+
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"
|
|
186
186
|
role="tablist"
|
|
187
187
|
@click=${this._handleTabClick}
|
|
188
188
|
@keydown=${this._handleKeyDown}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropertyValues } from 'lit';
|
|
2
2
|
import { DDSElement } from "../../base/index.cjs";
|
|
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.cjs";
|
|
|
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
|
*
|
|
@@ -0,0 +1,126 @@
|
|
|
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 cvaWrapper = classVarianceAuthority.cva([
|
|
24
|
+
"flex",
|
|
25
|
+
"items-center",
|
|
26
|
+
"justify-between",
|
|
27
|
+
"rounded",
|
|
28
|
+
"overflow-hidden",
|
|
29
|
+
"size-full",
|
|
30
|
+
"gap-1",
|
|
31
|
+
"bg-(--dds-color-common-surface-secondary-default)"
|
|
32
|
+
]);
|
|
33
|
+
const cvaRemoveButton = classVarianceAuthority.cva([
|
|
34
|
+
"mr-1",
|
|
35
|
+
"w-6",
|
|
36
|
+
"h-6",
|
|
37
|
+
"flex",
|
|
38
|
+
"flex-none",
|
|
39
|
+
"items-center",
|
|
40
|
+
"justify-center",
|
|
41
|
+
"rounded-full",
|
|
42
|
+
"overflow-hidden",
|
|
43
|
+
"focus-visible:outline-solid",
|
|
44
|
+
"focus-visible:outline-2",
|
|
45
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
46
|
+
"enabled:[--color-primary:var(--dds-color-common-neutral-default)]",
|
|
47
|
+
"enabled:hover:[--color-primary:var(--dds-color-common-neutral-hover)]",
|
|
48
|
+
"enabled:active:[--color-primary:var(--dds-color-common-neutral-press)]",
|
|
49
|
+
"enabled:[--color-secondary:var(--dds-color-common-surface-secondary-default)]",
|
|
50
|
+
"enabled:hover:[--color-secondary:var(--dds-color-common-surface-secondary-hover)]",
|
|
51
|
+
"enabled:active:[--color-secondary:var(--dds-color-common-surface-secondary-press)]",
|
|
52
|
+
"text-(--color-primary)",
|
|
53
|
+
"bg-(--color-secondary)"
|
|
54
|
+
]);
|
|
55
|
+
exports.DaikinTag = class DaikinTag extends ddsElement.DDSElement {
|
|
56
|
+
constructor() {
|
|
57
|
+
super(...arguments);
|
|
58
|
+
this.hideRemoveButton = false;
|
|
59
|
+
this.tagAriaLabel = null;
|
|
60
|
+
this.removeButtonAriaLabel = null;
|
|
61
|
+
}
|
|
62
|
+
_handleRemoveClick(event) {
|
|
63
|
+
event.stopPropagation();
|
|
64
|
+
this.dispatchEvent(new Event("remove", { bubbles: true, composed: true }));
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return lit.html`
|
|
68
|
+
<div
|
|
69
|
+
role="group"
|
|
70
|
+
aria-label=${ifDefined_js.ifDefined(this.tagAriaLabel ?? void 0)}
|
|
71
|
+
class=${cvaWrapper()}
|
|
72
|
+
>
|
|
73
|
+
<span
|
|
74
|
+
class="text-ddt-color-common-text-primary p-2 text-sm leading-[130%] font-daikinSerif natural-break"
|
|
75
|
+
>
|
|
76
|
+
<slot></slot>
|
|
77
|
+
</span>
|
|
78
|
+
${this.hideRemoveButton ? lit.nothing : lit.html`
|
|
79
|
+
<button
|
|
80
|
+
type="button"
|
|
81
|
+
class=${cvaRemoveButton()}
|
|
82
|
+
aria-label=${ifDefined_js.ifDefined(this.removeButtonAriaLabel ?? "Remove")}
|
|
83
|
+
@click=${this._handleRemoveClick}
|
|
84
|
+
>
|
|
85
|
+
<span class="icon-[daikin--close] size-6"></span>
|
|
86
|
+
</button>
|
|
87
|
+
`}
|
|
88
|
+
</div>
|
|
89
|
+
`;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Focuses on the inner remove button
|
|
93
|
+
* @param options focus options
|
|
94
|
+
*/
|
|
95
|
+
focus(options) {
|
|
96
|
+
var _a;
|
|
97
|
+
(_a = this._focusableElement) == null ? void 0 : _a.focus(options);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
exports.DaikinTag.styles = lit.css`
|
|
101
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
102
|
+
|
|
103
|
+
:host {
|
|
104
|
+
display: block;
|
|
105
|
+
width: fit-content;
|
|
106
|
+
}
|
|
107
|
+
`;
|
|
108
|
+
__decorateClass([
|
|
109
|
+
ddsProperty.property({ type: Boolean, reflect: true, attribute: "hide-remove-button" })
|
|
110
|
+
], exports.DaikinTag.prototype, "hideRemoveButton", 2);
|
|
111
|
+
__decorateClass([
|
|
112
|
+
ddsProperty.property({ type: String, reflect: true, attribute: "tag-aria-label" })
|
|
113
|
+
], exports.DaikinTag.prototype, "tagAriaLabel", 2);
|
|
114
|
+
__decorateClass([
|
|
115
|
+
ddsProperty.property({
|
|
116
|
+
type: String,
|
|
117
|
+
reflect: true,
|
|
118
|
+
attribute: "remove-button-aria-label"
|
|
119
|
+
})
|
|
120
|
+
], exports.DaikinTag.prototype, "removeButtonAriaLabel", 2);
|
|
121
|
+
__decorateClass([
|
|
122
|
+
decorators_js.query("button")
|
|
123
|
+
], exports.DaikinTag.prototype, "_focusableElement", 2);
|
|
124
|
+
exports.DaikinTag = __decorateClass([
|
|
125
|
+
decorators.ddsElement("daikin-tag")
|
|
126
|
+
], exports.DaikinTag);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
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 @@
|
|
|
1
|
+
export * from "./daikin-tag.cjs";
|
|
@@ -27,18 +27,18 @@ const cvaTextArea = classVarianceAuthority.cva(
|
|
|
27
27
|
"bg-ddt-color-common-background-default",
|
|
28
28
|
"px-4",
|
|
29
29
|
"py-3",
|
|
30
|
-
"rounded",
|
|
30
|
+
"rounded-sm",
|
|
31
31
|
"font-daikinSerif",
|
|
32
|
-
"outline",
|
|
33
|
-
"outline-
|
|
32
|
+
"outline-solid",
|
|
33
|
+
"outline-(--color-border)",
|
|
34
34
|
"outline-1",
|
|
35
35
|
"-outline-offset-1",
|
|
36
36
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
37
37
|
// Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
|
|
38
38
|
// `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
|
|
39
|
-
"
|
|
39
|
+
"[--color-border:var(--color-state-active,var(--color-state-focus,var(--color-base)))]",
|
|
40
40
|
"border",
|
|
41
|
-
"border-
|
|
41
|
+
"border-(--color-border)",
|
|
42
42
|
"enabled:text-ddt-color-common-text-primary",
|
|
43
43
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
44
44
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
@@ -46,7 +46,7 @@ const cvaTextArea = classVarianceAuthority.cva(
|
|
|
46
46
|
"focus-visible:-outline-offset-2",
|
|
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
|
-
"disabled:
|
|
49
|
+
"disabled:[--color-base:var(--dds-color-common-disabled)]",
|
|
50
50
|
"disabled:text-ddt-color-common-disabled",
|
|
51
51
|
"disabled:bg-color-common-background-default",
|
|
52
52
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -55,12 +55,12 @@ const cvaTextArea = classVarianceAuthority.cva(
|
|
|
55
55
|
variants: {
|
|
56
56
|
error: {
|
|
57
57
|
false: [
|
|
58
|
-
"enabled:
|
|
59
|
-
"enabled:hover:
|
|
60
|
-
"enabled:active:
|
|
61
|
-
"focus-visible:
|
|
58
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
59
|
+
"enabled:hover:[--color-base:var(--dds-color-common-neutral-hover)]",
|
|
60
|
+
"enabled:active:[--color-base:var(--dds-color-common-neutral-press)]",
|
|
61
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
62
62
|
],
|
|
63
|
-
true: ["enabled:
|
|
63
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
64
64
|
},
|
|
65
65
|
resize: {
|
|
66
66
|
false: ["resize-none"],
|
|
@@ -29,30 +29,30 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
29
29
|
"items-center",
|
|
30
30
|
"w-full",
|
|
31
31
|
"h-full",
|
|
32
|
-
"pl-
|
|
33
|
-
"pr-
|
|
32
|
+
"pl-(--pl,1rem)",
|
|
33
|
+
"pr-(--pr,1rem)",
|
|
34
34
|
"bg-ddt-color-common-background-default",
|
|
35
35
|
"relative",
|
|
36
|
-
"rounded",
|
|
36
|
+
"rounded-sm",
|
|
37
37
|
"overflow-hidden",
|
|
38
38
|
"font-daikinSerif",
|
|
39
|
-
"outline",
|
|
40
|
-
"outline-
|
|
39
|
+
"outline-solid",
|
|
40
|
+
"outline-(--color-border)",
|
|
41
41
|
"outline-0",
|
|
42
42
|
"-outline-offset-2",
|
|
43
43
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
44
44
|
// Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
|
|
45
45
|
// `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
|
|
46
|
-
"
|
|
46
|
+
"[--color-border:var(--color-state-focus,var(--color-base))]",
|
|
47
47
|
"border",
|
|
48
|
-
"border-
|
|
48
|
+
"border-(--color-border)",
|
|
49
49
|
// Update `--color-base` depending on the state.
|
|
50
50
|
// 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.
|
|
51
51
|
"enabled:text-ddt-color-common-text-primary",
|
|
52
52
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
53
53
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
54
54
|
"focus-visible:outline-2",
|
|
55
|
-
"disabled:
|
|
55
|
+
"disabled:[--color-base:var(--dds-color-common-disabled)]",
|
|
56
56
|
"disabled:text-ddt-color-common-disabled",
|
|
57
57
|
"disabled:bg-ddt-color-common-background-default",
|
|
58
58
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -61,12 +61,12 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
61
61
|
variants: {
|
|
62
62
|
error: {
|
|
63
63
|
false: [
|
|
64
|
-
"enabled:
|
|
65
|
-
"enabled:hover:
|
|
66
|
-
"enabled:active:
|
|
67
|
-
"focus-visible:
|
|
64
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
65
|
+
"enabled:hover:[--color-base:var(--dds-color-common-neutral-hover)]",
|
|
66
|
+
"enabled:active:[--color-base:var(--dds-color-common-neutral-press)]",
|
|
67
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
68
68
|
],
|
|
69
|
-
true: ["enabled:
|
|
69
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
70
70
|
},
|
|
71
71
|
leftIcon: {
|
|
72
72
|
false: [],
|
|
@@ -118,11 +118,11 @@ const cvaIcon = classVarianceAuthority.cva(
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
|
-
const cvaShowPasswordIcon = classVarianceAuthority.cva(["
|
|
121
|
+
const cvaShowPasswordIcon = classVarianceAuthority.cva(["size-6"], {
|
|
122
122
|
variants: {
|
|
123
123
|
showPassword: {
|
|
124
|
-
false: ["
|
|
125
|
-
true: ["
|
|
124
|
+
false: ["icon-[daikin--password-hidden]"],
|
|
125
|
+
true: ["icon-[daikin--password-visible]"]
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
});
|
|
@@ -270,7 +270,7 @@ exports.DaikinTextField = class DaikinTextField extends ddsFormElement.DDSFormEl
|
|
|
270
270
|
tabindex="-1"
|
|
271
271
|
@click=${() => this._updateNumberValue(-1)}
|
|
272
272
|
>
|
|
273
|
-
<span class="
|
|
273
|
+
<span class="icon-[daikin--number-minus] size-6"></span>
|
|
274
274
|
</daikin-icon-button>
|
|
275
275
|
<daikin-icon-button
|
|
276
276
|
color="neutral"
|
|
@@ -280,7 +280,7 @@ exports.DaikinTextField = class DaikinTextField extends ddsFormElement.DDSFormEl
|
|
|
280
280
|
tabindex="-1"
|
|
281
281
|
@click=${() => this._updateNumberValue(1)}
|
|
282
282
|
>
|
|
283
|
-
<span class="
|
|
283
|
+
<span class="icon-[daikin--number-plus] size-6"></span>
|
|
284
284
|
</daikin-icon-button>
|
|
285
285
|
</span>`;
|
|
286
286
|
case "password":
|
|
@@ -303,7 +303,7 @@ exports.DaikinTextField = class DaikinTextField extends ddsFormElement.DDSFormEl
|
|
|
303
303
|
disabled: this.disabled
|
|
304
304
|
})}
|
|
305
305
|
>
|
|
306
|
-
<span class="
|
|
306
|
+
<span class="icon-[daikin--search] size-6"></span>
|
|
307
307
|
</span>
|
|
308
308
|
${!!this.value && !!this.value.length ? lit.html`<daikin-icon-button
|
|
309
309
|
color="neutral"
|
|
@@ -313,7 +313,7 @@ exports.DaikinTextField = class DaikinTextField extends ddsFormElement.DDSFormEl
|
|
|
313
313
|
class="absolute right-3 size-6"
|
|
314
314
|
@click=${this._handleClearClick}
|
|
315
315
|
>
|
|
316
|
-
<span class="
|
|
316
|
+
<span class="icon-[daikin--close] size-6"></span>
|
|
317
317
|
</daikin-icon-button>` : lit.nothing}`;
|
|
318
318
|
default:
|
|
319
319
|
return lit.html`${leftIconSlot}${rightIconSlot}`;
|
|
@@ -30,25 +30,25 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
30
30
|
"h-full",
|
|
31
31
|
"bg-ddt-color-common-background-default",
|
|
32
32
|
"relative",
|
|
33
|
-
"rounded",
|
|
33
|
+
"rounded-sm",
|
|
34
34
|
"overflow-hidden",
|
|
35
35
|
"font-daikinSerif",
|
|
36
|
-
"outline",
|
|
37
|
-
"outline-
|
|
36
|
+
"outline-solid",
|
|
37
|
+
"outline-(--color-border)",
|
|
38
38
|
"outline-0",
|
|
39
39
|
"-outline-offset-2",
|
|
40
40
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
41
41
|
// Define `--color-border` as a CSS variable that references `--color-state-focus` and `--color-base` in that order.
|
|
42
42
|
// `--color-base` indicates the color of the border when the element is normal, hovered, or disabled.
|
|
43
|
-
"
|
|
43
|
+
"[--color-border:var(--color-state-focus,var(--color-base))]",
|
|
44
44
|
"border",
|
|
45
|
-
"border-
|
|
45
|
+
"border-(--color-border)",
|
|
46
46
|
"enabled:text-ddt-color-common-text-primary",
|
|
47
|
-
"enabled:data-
|
|
47
|
+
"enabled:data-empty:text-ddt-color-common-text-secondary",
|
|
48
48
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
49
49
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
50
50
|
"focus-visible:outline-2",
|
|
51
|
-
"disabled:
|
|
51
|
+
"disabled:[--color-base:var(--dds-color-common-disabled)]",
|
|
52
52
|
"disabled:text-ddt-color-common-disabled",
|
|
53
53
|
"disabled:bg-ddt-color-common-background-default",
|
|
54
54
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -57,12 +57,12 @@ const cvaInput = classVarianceAuthority.cva(
|
|
|
57
57
|
variants: {
|
|
58
58
|
error: {
|
|
59
59
|
false: [
|
|
60
|
-
"enabled:
|
|
61
|
-
"enabled:hover:
|
|
62
|
-
"enabled:active:
|
|
63
|
-
"focus-visible:
|
|
60
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
61
|
+
"enabled:hover:[--color-base:var(--dds-color-common-neutral-hover)]",
|
|
62
|
+
"enabled:active:[--color-base:var(--dds-color-common-neutral-press)]",
|
|
63
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
64
64
|
],
|
|
65
|
-
true: ["enabled:
|
|
65
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
66
66
|
},
|
|
67
67
|
leftIcon: {
|
|
68
68
|
false: ["pl-4"],
|
|
@@ -154,24 +154,24 @@ const cvaField = classVarianceAuthority.cva(
|
|
|
154
154
|
"flex",
|
|
155
155
|
"items-center",
|
|
156
156
|
"size-full",
|
|
157
|
-
"w-
|
|
157
|
+
"w-23.5",
|
|
158
158
|
"bg-ddt-color-common-background-default",
|
|
159
159
|
"p-3",
|
|
160
|
-
"rounded",
|
|
160
|
+
"rounded-sm",
|
|
161
161
|
"truncate",
|
|
162
|
-
"outline",
|
|
163
|
-
"outline-
|
|
162
|
+
"outline-solid",
|
|
163
|
+
"outline-(--color-border)",
|
|
164
164
|
"outline-0",
|
|
165
165
|
"-outline-offset-2",
|
|
166
166
|
"placeholder:text-ddt-color-common-text-secondary",
|
|
167
|
-
"
|
|
167
|
+
"[--color-border:var(--color-state-focus,var(--color-base))]",
|
|
168
168
|
"border",
|
|
169
|
-
"border-
|
|
169
|
+
"border-(--color-border)",
|
|
170
170
|
"enabled:text-ddt-color-common-text-primary",
|
|
171
171
|
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
172
172
|
"enabled:active:bg-ddt-color-common-surface-press",
|
|
173
173
|
"focus-visible:outline-2",
|
|
174
|
-
"disabled:
|
|
174
|
+
"disabled:[--color-border:var(--dds-color-common-disabled)]",
|
|
175
175
|
"disabled:text-ddt-color-common-disabled",
|
|
176
176
|
"disabled:bg-ddt-color-common-background-default",
|
|
177
177
|
"disabled:placeholder:text-ddt-color-common-disabled"
|
|
@@ -180,10 +180,10 @@ const cvaField = classVarianceAuthority.cva(
|
|
|
180
180
|
variants: {
|
|
181
181
|
error: {
|
|
182
182
|
false: [
|
|
183
|
-
"enabled:
|
|
184
|
-
"focus-visible:
|
|
183
|
+
"enabled:[--color-base:var(--dds-color-common-neutral-default)]",
|
|
184
|
+
"focus-visible:[--color-state-focus:var(--dds-color-common-border-focus)]"
|
|
185
185
|
],
|
|
186
|
-
true: ["enabled:
|
|
186
|
+
true: ["enabled:[--color-base:var(--dds-color-common-danger-default)]"]
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
}
|
|
@@ -498,7 +498,7 @@ exports.DaikinTimePicker = class DaikinTimePicker extends ddsFormElement.DDSForm
|
|
|
498
498
|
@mouseup=${this._handleMouseUp}
|
|
499
499
|
/>
|
|
500
500
|
<daikin-dropdown
|
|
501
|
-
class="w-
|
|
501
|
+
class="w-22"
|
|
502
502
|
placeholder="--"
|
|
503
503
|
.error=${this.error}
|
|
504
504
|
.value=${this._meridiem}
|
|
@@ -35,40 +35,38 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
35
35
|
"transition",
|
|
36
36
|
"box-border",
|
|
37
37
|
"before:size-6",
|
|
38
|
-
"before:flex-none"
|
|
38
|
+
"before:flex-none",
|
|
39
|
+
"rounded-lg",
|
|
40
|
+
"border",
|
|
41
|
+
"border-ddt-color-divider",
|
|
42
|
+
"translate-x-(--move-offset-x,0)",
|
|
43
|
+
"translate-y-(--move-offset-y,0)",
|
|
44
|
+
"opacity-(--opacity,1)",
|
|
45
|
+
"[pointer-events:var(--pointer-events,auto)]",
|
|
46
|
+
"duration-(--transition-duration,var(--ddc-toast-animation-duration,0ms))"
|
|
39
47
|
],
|
|
40
48
|
{
|
|
41
49
|
variants: {
|
|
42
|
-
variant: {
|
|
43
|
-
toast: [
|
|
44
|
-
"rounded-lg",
|
|
45
|
-
"border",
|
|
46
|
-
"border-ddt-color-divider",
|
|
47
|
-
"translate-x-[--move-offset-x,0]",
|
|
48
|
-
"translate-y-[--move-offset-y,0]",
|
|
49
|
-
"opacity-[--opacity,1]",
|
|
50
|
-
"[pointer-events:var(--pointer-events,auto)]",
|
|
51
|
-
"[transition-duration:var(--transition-duration,var(--ddc-toast-animation-duration,0ms))]"
|
|
52
|
-
],
|
|
53
|
-
inline: []
|
|
54
|
-
},
|
|
55
50
|
status: {
|
|
56
51
|
positive: [
|
|
57
52
|
"before:text-ddt-color-common-success",
|
|
58
|
-
"before:
|
|
53
|
+
"before:icon-[daikin--success]"
|
|
59
54
|
],
|
|
60
55
|
negative: [
|
|
61
56
|
"before:text-ddt-color-common-danger-default",
|
|
62
|
-
"before:
|
|
57
|
+
"before:icon-[daikin--error]"
|
|
63
58
|
],
|
|
64
59
|
warning: [
|
|
65
60
|
"before:text-ddt-color-common-warning",
|
|
66
|
-
"before:
|
|
61
|
+
"before:icon-[daikin--warning]"
|
|
62
|
+
],
|
|
63
|
+
alarm: [
|
|
64
|
+
"before:text-ddt-color-common-alarm",
|
|
65
|
+
"before:icon-[daikin--alarm]"
|
|
67
66
|
],
|
|
68
|
-
alarm: ["before:text-ddt-color-common-alarm", "before:i-daikin-alarm"],
|
|
69
67
|
information: [
|
|
70
68
|
"before:text-ddt-color-common-information",
|
|
71
|
-
"before:
|
|
69
|
+
"before:icon-[daikin--information]"
|
|
72
70
|
]
|
|
73
71
|
}
|
|
74
72
|
}
|
|
@@ -82,15 +80,11 @@ const cvaContent = classVarianceAuthority.cva(["flex", "items-center", "w-full"]
|
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
});
|
|
85
|
-
const cvaTitle = classVarianceAuthority.cva(["
|
|
83
|
+
const cvaTitle = classVarianceAuthority.cva(["font-bold", "leading-[130%]"], {
|
|
86
84
|
variants: {
|
|
87
85
|
layout: {
|
|
88
|
-
vertical: ["
|
|
89
|
-
horizontal: [
|
|
90
|
-
"slotted:whitespace-nowrap",
|
|
91
|
-
"slotted:overflow-hidden",
|
|
92
|
-
"slotted:overflow-ellipsis"
|
|
93
|
-
]
|
|
86
|
+
vertical: ["natural-break"],
|
|
87
|
+
horizontal: ["overflow-hidden", "whitespace-nowrap"]
|
|
94
88
|
}
|
|
95
89
|
}
|
|
96
90
|
});
|
|
@@ -98,12 +92,7 @@ const cvaDescription = classVarianceAuthority.cva(["inline-block", "leading-[130
|
|
|
98
92
|
variants: {
|
|
99
93
|
layout: {
|
|
100
94
|
vertical: ["natural-break"],
|
|
101
|
-
horizontal: [
|
|
102
|
-
"whitespace-nowrap",
|
|
103
|
-
"overflow-hidden",
|
|
104
|
-
"overflow-ellipsis",
|
|
105
|
-
"flex-1"
|
|
106
|
-
]
|
|
95
|
+
horizontal: ["flex-1", "overflow-hidden", "whitespace-nowrap"]
|
|
107
96
|
}
|
|
108
97
|
}
|
|
109
98
|
});
|
|
@@ -123,7 +112,7 @@ exports.DaikinToastNotification = class DaikinToastNotification extends ddsEleme
|
|
|
123
112
|
}
|
|
124
113
|
render() {
|
|
125
114
|
return lit.html`<div
|
|
126
|
-
class=${cvaContainer({
|
|
115
|
+
class=${cvaContainer({ status: this.status })}
|
|
127
116
|
role="alert"
|
|
128
117
|
>
|
|
129
118
|
<div class=${cvaContent({ layout: this.layout })}>
|
|
@@ -133,14 +122,14 @@ exports.DaikinToastNotification = class DaikinToastNotification extends ddsEleme
|
|
|
133
122
|
>${notificationCommon.formatDate(this.timestamp)}</span
|
|
134
123
|
>` : lit.nothing}
|
|
135
124
|
</div>
|
|
136
|
-
<slot name="action" class="flex-none"></slot>
|
|
125
|
+
<slot name="action" class="flex-none slotted:flex-none"></slot>
|
|
137
126
|
${this.closable ? lit.html`<daikin-icon-button
|
|
138
127
|
variant="ghost"
|
|
139
128
|
button-aria-label="Close"
|
|
140
129
|
@click=${this._handleClickClose}
|
|
141
130
|
>
|
|
142
131
|
<span
|
|
143
|
-
class="flex size-6 text-ddt-color-common-text-secondary relative
|
|
132
|
+
class="flex size-6 text-ddt-color-common-text-secondary relative icon-[daikin--close]"
|
|
144
133
|
></span>
|
|
145
134
|
</daikin-icon-button>` : lit.nothing}
|
|
146
135
|
</div>`;
|
|
@@ -152,7 +141,6 @@ exports.DaikinToastNotification.styles = lit.css`
|
|
|
152
141
|
:host {
|
|
153
142
|
display: block;
|
|
154
143
|
width: fit-content;
|
|
155
|
-
max-width: 100%;
|
|
156
144
|
|
|
157
145
|
--ddc-toast-animation-duration: ${lit.unsafeCSS(notificationCommon.TOAST_ANIMATION_DURATION)}ms;
|
|
158
146
|
}
|
|
@@ -160,6 +148,10 @@ exports.DaikinToastNotification.styles = lit.css`
|
|
|
160
148
|
:host([layout="horizontal"]) {
|
|
161
149
|
height: 4rem;
|
|
162
150
|
}
|
|
151
|
+
|
|
152
|
+
:host([layout="vertical"]) {
|
|
153
|
+
max-width: 100%;
|
|
154
|
+
}
|
|
163
155
|
`;
|
|
164
156
|
__decorateClass([
|
|
165
157
|
ddsProperty.property({ type: String, reflect: true, fallbackValue: "" })
|