@daikin-oss/design-system-web-components 1.0.0 → 1.2.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 +127 -0
- package/LICENSE +1 -1
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/base/dds-form-element.cjs +139 -0
- package/dist/cjs/base/dds-form-element.d.cts +100 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +6 -3
- package/dist/cjs/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs/components/avatar/daikin-avatar.d.cts +67 -0
- package/dist/cjs/components/avatar/index.cjs +7 -0
- package/dist/cjs/components/avatar/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +2 -0
- package/dist/cjs/components/button/daikin-button.cjs +35 -13
- package/dist/cjs/components/button/daikin-button.d.cts +20 -10
- package/dist/cjs/components/calendar/daikin-calendar.cjs +547 -0
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +87 -0
- package/dist/cjs/components/calendar/index.cjs +7 -0
- package/dist/cjs/components/calendar/index.d.cts +1 -0
- package/dist/cjs/components/card/daikin-card.cjs +1 -1
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +13 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +13 -12
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +94 -0
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +69 -0
- package/dist/cjs/components/checkbox-group/index.cjs +7 -0
- package/dist/cjs/components/checkbox-group/index.d.cts +1 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +611 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +105 -0
- package/dist/cjs/components/date-picker/index.cjs +7 -0
- package/dist/cjs/components/date-picker/index.d.cts +1 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +181 -86
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +48 -18
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +97 -36
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.d.cts +6 -1
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +30 -14
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +18 -2
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +12 -2
- package/dist/cjs/components/index.cjs +55 -0
- package/dist/cjs/components/index.d.cts +11 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.cjs +13 -18
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +3 -1
- package/dist/cjs/components/input-group/daikin-input-group.cjs +4 -4
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +22 -0
- package/dist/cjs/components/list/daikin-list.cjs +75 -3
- package/dist/cjs/components/list/daikin-list.d.cts +16 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +25 -5
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +9 -3
- package/dist/cjs/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs/components/loading/daikin-loading.d.cts +33 -0
- package/dist/cjs/components/loading/index.cjs +7 -0
- package/dist/cjs/components/loading/index.d.cts +1 -0
- package/dist/cjs/components/logo/daikin-logo.cjs +105 -0
- package/dist/cjs/components/logo/daikin-logo.d.cts +54 -0
- package/dist/cjs/components/logo/index.cjs +7 -0
- package/dist/cjs/components/logo/index.d.cts +1 -0
- package/dist/cjs/components/menu/daikin-menu.cjs +205 -0
- package/dist/cjs/components/menu/daikin-menu.d.cts +89 -0
- package/dist/cjs/components/menu/index.cjs +7 -0
- package/dist/cjs/components/menu/index.d.cts +1 -0
- package/dist/cjs/components/modal/daikin-modal.cjs +115 -0
- package/dist/cjs/components/modal/daikin-modal.d.cts +61 -0
- package/dist/cjs/components/modal/index.cjs +7 -0
- package/dist/cjs/components/modal/index.d.cts +1 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.cjs +40 -0
- package/dist/cjs/components/modal-footer/daikin-modal-footer.d.cts +33 -0
- package/dist/cjs/components/modal-footer/index.cjs +7 -0
- package/dist/cjs/components/modal-footer/index.d.cts +1 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +96 -0
- package/dist/cjs/components/modal-header/daikin-modal-header.d.cts +43 -0
- package/dist/cjs/components/modal-header/index.cjs +7 -0
- package/dist/cjs/components/modal-header/index.d.cts +1 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +2 -2
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +1 -1
- package/dist/cjs/components/radio/daikin-radio.cjs +4 -13
- package/dist/cjs/components/radio/daikin-radio.d.cts +2 -12
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +1 -1
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs/components/slider/daikin-slider.cjs +263 -0
- package/dist/cjs/components/slider/daikin-slider.d.cts +67 -0
- package/dist/cjs/components/slider/index.cjs +7 -0
- package/dist/cjs/components/slider/index.d.cts +1 -0
- package/dist/cjs/components/slider/slider-utils.cjs +57 -0
- package/dist/cjs/components/slider/slider-utils.d.cts +37 -0
- package/dist/cjs/components/table/daikin-table.cjs +42 -4
- package/dist/cjs/components/table/daikin-table.d.cts +5 -0
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +2 -1
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +1 -1
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +1 -1
- package/dist/cjs/components/tabs/daikin-tabs.cjs +2 -2
- package/dist/cjs/components/text-area/daikin-text-area.cjs +4 -13
- package/dist/cjs/components/text-area/daikin-text-area.d.cts +2 -12
- package/dist/cjs/components/text-field/daikin-text-field.cjs +149 -52
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +28 -18
- package/dist/cjs/components/toast-notification/daikin-toast-notification.cjs +10 -7
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +2 -0
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +1 -1
- package/dist/cjs/components/toggle/daikin-toggle.cjs +4 -13
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +2 -12
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +12 -6
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +3 -2
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +2 -0
- package/dist/cjs/controllers/click-outside.cjs +3 -1
- package/dist/cjs/controllers/focus-trap.cjs +42 -0
- package/dist/cjs/controllers/focus-trap.d.cts +10 -0
- package/dist/cjs/index.cjs +55 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +151 -0
- package/dist/cjs/utils/calendar-common.d.cts +64 -0
- package/dist/cjs/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs/utils/is-similar-to-click.d.cts +1 -0
- package/dist/cjs/utils/notification-common.cjs +19 -15
- package/dist/cjs/utils/notification-common.d.cts +1 -1
- package/dist/cjs/{components/tabs → utils}/scroller.cjs +20 -12
- package/dist/cjs/{components/tabs → utils}/scroller.d.cts +2 -2
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/base/dds-form-element.cjs +139 -0
- package/dist/cjs-dev/base/dds-form-element.d.cts +100 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +6 -3
- package/dist/cjs-dev/components/avatar/daikin-avatar.cjs +160 -0
- package/dist/cjs-dev/components/avatar/daikin-avatar.d.cts +67 -0
- package/dist/cjs-dev/components/avatar/index.cjs +7 -0
- package/dist/cjs-dev/components/avatar/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +2 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +35 -13
- package/dist/cjs-dev/components/button/daikin-button.d.cts +20 -10
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +558 -0
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +87 -0
- package/dist/cjs-dev/components/calendar/index.cjs +7 -0
- package/dist/cjs-dev/components/calendar/index.d.cts +1 -0
- package/dist/cjs-dev/components/card/daikin-card.cjs +1 -1
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +13 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +13 -12
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +94 -0
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +69 -0
- package/dist/cjs-dev/components/checkbox-group/index.cjs +7 -0
- package/dist/cjs-dev/components/checkbox-group/index.d.cts +1 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +622 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +105 -0
- package/dist/cjs-dev/components/date-picker/index.cjs +7 -0
- package/dist/cjs-dev/components/date-picker/index.d.cts +1 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +181 -86
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +48 -18
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +97 -36
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.d.cts +6 -1
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +30 -14
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +18 -2
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +12 -2
- package/dist/cjs-dev/components/index.cjs +55 -0
- package/dist/cjs-dev/components/index.d.cts +11 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.cjs +13 -18
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +3 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +4 -4
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +22 -0
- package/dist/cjs-dev/components/list/daikin-list.cjs +75 -3
- package/dist/cjs-dev/components/list/daikin-list.d.cts +16 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +25 -5
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +9 -3
- package/dist/cjs-dev/components/loading/daikin-loading.cjs +91 -0
- package/dist/cjs-dev/components/loading/daikin-loading.d.cts +33 -0
- package/dist/cjs-dev/components/loading/index.cjs +7 -0
- package/dist/cjs-dev/components/loading/index.d.cts +1 -0
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +105 -0
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +54 -0
- package/dist/cjs-dev/components/logo/index.cjs +7 -0
- package/dist/cjs-dev/components/logo/index.d.cts +1 -0
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +205 -0
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +89 -0
- package/dist/cjs-dev/components/menu/index.cjs +7 -0
- package/dist/cjs-dev/components/menu/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal/daikin-modal.cjs +115 -0
- package/dist/cjs-dev/components/modal/daikin-modal.d.cts +61 -0
- package/dist/cjs-dev/components/modal/index.cjs +7 -0
- package/dist/cjs-dev/components/modal/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.cjs +40 -0
- package/dist/cjs-dev/components/modal-footer/daikin-modal-footer.d.cts +33 -0
- package/dist/cjs-dev/components/modal-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/modal-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +96 -0
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.d.cts +43 -0
- package/dist/cjs-dev/components/modal-header/index.cjs +7 -0
- package/dist/cjs-dev/components/modal-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +2 -2
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +1 -1
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +4 -13
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +2 -12
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +1 -1
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +2 -1
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +263 -0
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +67 -0
- package/dist/cjs-dev/components/slider/index.cjs +7 -0
- package/dist/cjs-dev/components/slider/index.d.cts +1 -0
- package/dist/cjs-dev/components/slider/slider-utils.cjs +57 -0
- package/dist/cjs-dev/components/slider/slider-utils.d.cts +37 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +42 -4
- package/dist/cjs-dev/components/table/daikin-table.d.cts +5 -0
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +2 -1
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +1 -1
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +1 -1
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +2 -2
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +4 -13
- package/dist/cjs-dev/components/text-area/daikin-text-area.d.cts +2 -12
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +149 -52
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +28 -18
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.cjs +10 -7
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +2 -0
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.cts +1 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +4 -13
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +2 -12
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +12 -6
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +3 -2
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +2 -0
- package/dist/cjs-dev/controllers/click-outside.cjs +3 -1
- package/dist/cjs-dev/controllers/focus-trap.cjs +42 -0
- package/dist/cjs-dev/controllers/focus-trap.d.cts +10 -0
- package/dist/cjs-dev/index.cjs +55 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +151 -0
- package/dist/cjs-dev/utils/calendar-common.d.cts +64 -0
- package/dist/cjs-dev/utils/is-similar-to-click.cjs +4 -0
- package/dist/cjs-dev/utils/is-similar-to-click.d.cts +1 -0
- package/dist/cjs-dev/utils/notification-common.cjs +19 -15
- package/dist/cjs-dev/utils/notification-common.d.cts +1 -1
- package/dist/cjs-dev/{components/tabs → utils}/scroller.cjs +20 -12
- package/dist/cjs-dev/{components/tabs → utils}/scroller.d.cts +2 -2
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/base/dds-form-element.d.ts +100 -0
- package/dist/es/base/dds-form-element.js +139 -0
- package/dist/es/components/accordion/daikin-accordion.js +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +7 -4
- package/dist/es/components/avatar/daikin-avatar.d.ts +67 -0
- package/dist/es/components/avatar/daikin-avatar.js +161 -0
- package/dist/es/components/avatar/index.d.ts +1 -0
- package/dist/es/components/avatar/index.js +4 -0
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +1 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +3 -1
- package/dist/es/components/button/daikin-button.d.ts +20 -10
- package/dist/es/components/button/daikin-button.js +36 -14
- package/dist/es/components/calendar/daikin-calendar.d.ts +87 -0
- package/dist/es/components/calendar/daikin-calendar.js +548 -0
- package/dist/es/components/calendar/index.d.ts +1 -0
- package/dist/es/components/calendar/index.js +4 -0
- package/dist/es/components/card/daikin-card.js +2 -2
- package/dist/es/components/card-footer/daikin-card-footer.js +1 -1
- package/dist/es/components/card-header/daikin-card-header.js +1 -1
- package/dist/es/components/carousel/daikin-carousel.js +1 -1
- package/dist/es/components/carousel-item/daikin-carousel-item.js +1 -1
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +13 -12
- package/dist/es/components/checkbox/daikin-checkbox.js +14 -17
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +69 -0
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +95 -0
- package/dist/es/components/checkbox-group/index.d.ts +1 -0
- package/dist/es/components/checkbox-group/index.js +4 -0
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +105 -0
- package/dist/es/components/date-picker/daikin-date-picker.js +612 -0
- package/dist/es/components/date-picker/index.d.ts +1 -0
- package/dist/es/components/date-picker/index.js +4 -0
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +48 -18
- package/dist/es/components/dropdown/daikin-dropdown.js +182 -87
- package/dist/es/components/dropdown-item/daikin-dropdown-item.d.ts +6 -1
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +98 -37
- package/dist/es/components/icon/daikin-icon.js +1 -1
- package/dist/es/components/icon/icons.json.d.ts +30 -14
- package/dist/es/components/icon/icons.json.js +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +12 -2
- package/dist/es/components/icon-button/daikin-icon-button.js +19 -3
- package/dist/es/components/index.d.ts +11 -0
- package/dist/es/components/index.js +22 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +3 -1
- package/dist/es/components/inline-notification/daikin-inline-notification.js +14 -19
- package/dist/es/components/input-group/daikin-input-group.d.ts +22 -0
- package/dist/es/components/input-group/daikin-input-group.js +5 -5
- package/dist/es/components/link/daikin-link.js +1 -1
- package/dist/es/components/list/daikin-list.d.ts +16 -0
- package/dist/es/components/list/daikin-list.js +76 -4
- package/dist/es/components/list-item/daikin-list-item.d.ts +9 -3
- package/dist/es/components/list-item/daikin-list-item.js +26 -6
- package/dist/es/components/loading/daikin-loading.d.ts +33 -0
- package/dist/es/components/loading/daikin-loading.js +92 -0
- package/dist/es/components/loading/index.d.ts +1 -0
- package/dist/es/components/loading/index.js +4 -0
- package/dist/es/components/logo/daikin-logo.d.ts +54 -0
- package/dist/es/components/logo/daikin-logo.js +106 -0
- package/dist/es/components/logo/index.d.ts +1 -0
- package/dist/es/components/logo/index.js +4 -0
- package/dist/es/components/menu/daikin-menu.d.ts +89 -0
- package/dist/es/components/menu/daikin-menu.js +206 -0
- package/dist/es/components/menu/index.d.ts +1 -0
- package/dist/es/components/menu/index.js +4 -0
- package/dist/es/components/modal/daikin-modal.d.ts +61 -0
- package/dist/es/components/modal/daikin-modal.js +116 -0
- package/dist/es/components/modal/index.d.ts +1 -0
- package/dist/es/components/modal/index.js +4 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.d.ts +33 -0
- package/dist/es/components/modal-footer/daikin-modal-footer.js +41 -0
- package/dist/es/components/modal-footer/index.d.ts +1 -0
- package/dist/es/components/modal-footer/index.js +4 -0
- package/dist/es/components/modal-header/daikin-modal-header.d.ts +43 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +97 -0
- package/dist/es/components/modal-header/index.d.ts +1 -0
- package/dist/es/components/modal-header/index.js +4 -0
- package/dist/es/components/pagination/daikin-pagination.js +1 -1
- package/dist/es/components/progress-bar/daikin-progress-bar.js +3 -3
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es/components/radio/daikin-radio.d.ts +2 -12
- package/dist/es/components/radio/daikin-radio.js +5 -14
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +2 -1
- package/dist/es/components/radio-group/daikin-radio-group.js +2 -2
- package/dist/es/components/select/daikin-select.js +1 -1
- package/dist/es/components/slider/daikin-slider.d.ts +67 -0
- package/dist/es/components/slider/daikin-slider.js +264 -0
- package/dist/es/components/slider/index.d.ts +1 -0
- package/dist/es/components/slider/index.js +4 -0
- package/dist/es/components/slider/slider-utils.d.ts +37 -0
- package/dist/es/components/slider/slider-utils.js +57 -0
- package/dist/es/components/tab/daikin-tab.js +1 -1
- package/dist/es/components/tab-panels/daikin-tab-panels.js +1 -1
- package/dist/es/components/table/daikin-table.d.ts +5 -0
- package/dist/es/components/table/daikin-table.js +43 -5
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +1 -1
- package/dist/es/components/table-cell/daikin-table-cell.js +3 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +1 -1
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +1 -1
- package/dist/es/components/tabs/daikin-tabs.js +3 -3
- package/dist/es/components/text-area/daikin-text-area.d.ts +2 -12
- package/dist/es/components/text-area/daikin-text-area.js +5 -14
- package/dist/es/components/text-field/daikin-text-field.d.ts +28 -18
- package/dist/es/components/text-field/daikin-text-field.js +150 -53
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +2 -0
- package/dist/es/components/toast-notification/daikin-toast-notification.js +11 -8
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +1 -1
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +2 -2
- package/dist/es/components/toggle/daikin-toggle.d.ts +2 -12
- package/dist/es/components/toggle/daikin-toggle.js +5 -14
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +3 -2
- package/dist/es/components/tooltip/daikin-tooltip.js +13 -7
- package/dist/es/components/tree/daikin-tree.js +1 -1
- package/dist/es/components/tree-item/daikin-tree-item.js +1 -1
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +2 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +1 -1
- package/dist/es/controllers/click-outside.js +3 -1
- package/dist/es/controllers/focus-trap.d.ts +10 -0
- package/dist/es/controllers/focus-trap.js +42 -0
- package/dist/es/index.js +22 -0
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +64 -0
- package/dist/es/utils/calendar-common.js +151 -0
- package/dist/es/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es/utils/is-similar-to-click.js +4 -0
- package/dist/es/utils/notification-common.d.ts +1 -1
- package/dist/es/utils/notification-common.js +19 -15
- package/dist/es/{components/tabs → utils}/scroller.d.ts +2 -2
- package/dist/es/{components/tabs → utils}/scroller.js +20 -12
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/base/dds-form-element.d.ts +100 -0
- package/dist/es-dev/base/dds-form-element.js +139 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +7 -4
- package/dist/es-dev/components/avatar/daikin-avatar.d.ts +67 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +161 -0
- package/dist/es-dev/components/avatar/index.d.ts +1 -0
- package/dist/es-dev/components/avatar/index.js +4 -0
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +1 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +3 -1
- package/dist/es-dev/components/button/daikin-button.d.ts +20 -10
- package/dist/es-dev/components/button/daikin-button.js +36 -14
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +87 -0
- package/dist/es-dev/components/calendar/daikin-calendar.js +559 -0
- package/dist/es-dev/components/calendar/index.d.ts +1 -0
- package/dist/es-dev/components/calendar/index.js +4 -0
- package/dist/es-dev/components/card/daikin-card.js +2 -2
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +1 -1
- package/dist/es-dev/components/card-header/daikin-card-header.js +1 -1
- package/dist/es-dev/components/carousel/daikin-carousel.js +1 -1
- package/dist/es-dev/components/carousel-item/daikin-carousel-item.js +1 -1
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +13 -12
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +14 -17
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +69 -0
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +95 -0
- package/dist/es-dev/components/checkbox-group/index.d.ts +1 -0
- package/dist/es-dev/components/checkbox-group/index.js +4 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +105 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +623 -0
- package/dist/es-dev/components/date-picker/index.d.ts +1 -0
- package/dist/es-dev/components/date-picker/index.js +4 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +48 -18
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +182 -87
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.d.ts +6 -1
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +98 -37
- package/dist/es-dev/components/icon/daikin-icon.js +1 -1
- package/dist/es-dev/components/icon/icons.json.d.ts +30 -14
- package/dist/es-dev/components/icon/icons.json.js +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +12 -2
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +19 -3
- package/dist/es-dev/components/index.d.ts +11 -0
- package/dist/es-dev/components/index.js +22 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +3 -1
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.js +14 -19
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +22 -0
- package/dist/es-dev/components/input-group/daikin-input-group.js +5 -5
- package/dist/es-dev/components/link/daikin-link.js +1 -1
- package/dist/es-dev/components/list/daikin-list.d.ts +16 -0
- package/dist/es-dev/components/list/daikin-list.js +76 -4
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +9 -3
- package/dist/es-dev/components/list-item/daikin-list-item.js +26 -6
- package/dist/es-dev/components/loading/daikin-loading.d.ts +33 -0
- package/dist/es-dev/components/loading/daikin-loading.js +92 -0
- package/dist/es-dev/components/loading/index.d.ts +1 -0
- package/dist/es-dev/components/loading/index.js +4 -0
- package/dist/es-dev/components/logo/daikin-logo.d.ts +54 -0
- package/dist/es-dev/components/logo/daikin-logo.js +106 -0
- package/dist/es-dev/components/logo/index.d.ts +1 -0
- package/dist/es-dev/components/logo/index.js +4 -0
- package/dist/es-dev/components/menu/daikin-menu.d.ts +89 -0
- package/dist/es-dev/components/menu/daikin-menu.js +206 -0
- package/dist/es-dev/components/menu/index.d.ts +1 -0
- package/dist/es-dev/components/menu/index.js +4 -0
- package/dist/es-dev/components/modal/daikin-modal.d.ts +61 -0
- package/dist/es-dev/components/modal/daikin-modal.js +116 -0
- package/dist/es-dev/components/modal/index.d.ts +1 -0
- package/dist/es-dev/components/modal/index.js +4 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.d.ts +33 -0
- package/dist/es-dev/components/modal-footer/daikin-modal-footer.js +41 -0
- package/dist/es-dev/components/modal-footer/index.d.ts +1 -0
- package/dist/es-dev/components/modal-footer/index.js +4 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.d.ts +43 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +97 -0
- package/dist/es-dev/components/modal-header/index.d.ts +1 -0
- package/dist/es-dev/components/modal-header/index.js +4 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +1 -1
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +3 -3
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +1 -1
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es-dev/components/radio/daikin-radio.d.ts +2 -12
- package/dist/es-dev/components/radio/daikin-radio.js +5 -14
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +2 -1
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +2 -2
- package/dist/es-dev/components/select/daikin-select.js +1 -1
- package/dist/es-dev/components/slider/daikin-slider.d.ts +67 -0
- package/dist/es-dev/components/slider/daikin-slider.js +264 -0
- package/dist/es-dev/components/slider/index.d.ts +1 -0
- package/dist/es-dev/components/slider/index.js +4 -0
- package/dist/es-dev/components/slider/slider-utils.d.ts +37 -0
- package/dist/es-dev/components/slider/slider-utils.js +57 -0
- package/dist/es-dev/components/tab/daikin-tab.js +1 -1
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.js +1 -1
- package/dist/es-dev/components/table/daikin-table.d.ts +5 -0
- package/dist/es-dev/components/table/daikin-table.js +43 -5
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +1 -1
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +3 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +1 -1
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +1 -1
- package/dist/es-dev/components/tabs/daikin-tabs.js +3 -3
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +2 -12
- package/dist/es-dev/components/text-area/daikin-text-area.js +5 -14
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +28 -18
- package/dist/es-dev/components/text-field/daikin-text-field.js +150 -53
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +2 -0
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.js +11 -8
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.d.ts +1 -1
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +2 -2
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +2 -12
- package/dist/es-dev/components/toggle/daikin-toggle.js +5 -14
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +3 -2
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +13 -7
- package/dist/es-dev/components/tree/daikin-tree.js +1 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +1 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +2 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +1 -1
- package/dist/es-dev/controllers/click-outside.js +3 -1
- package/dist/es-dev/controllers/focus-trap.d.ts +10 -0
- package/dist/es-dev/controllers/focus-trap.js +42 -0
- package/dist/es-dev/index.js +22 -0
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +64 -0
- package/dist/es-dev/utils/calendar-common.js +151 -0
- package/dist/es-dev/utils/is-similar-to-click.d.ts +1 -0
- package/dist/es-dev/utils/is-similar-to-click.js +4 -0
- package/dist/es-dev/utils/notification-common.d.ts +1 -1
- package/dist/es-dev/utils/notification-common.js +19 -15
- package/dist/es-dev/{components/tabs → utils}/scroller.d.ts +2 -2
- package/dist/es-dev/{components/tabs → utils}/scroller.js +20 -12
- package/icons/alarm.svg +3 -0
- package/icons/calendar.svg +3 -0
- package/icons/chevron-down.svg +3 -3
- package/icons/chevron-left.svg +2 -2
- package/icons/chevron-right.svg +2 -2
- package/icons/chevron-up.svg +2 -2
- package/icons/close.svg +3 -0
- package/icons/dropdown-chevron-down.svg +3 -3
- package/icons/error.svg +3 -0
- package/icons/information.svg +3 -0
- package/icons/logo-negative.svg +10 -0
- package/icons/logo-positive.svg +10 -0
- package/icons/password-hidden.svg +3 -0
- package/icons/password-visible.svg +3 -0
- package/icons/profile.svg +4 -0
- package/icons/pulldown-down.svg +3 -0
- package/icons/search.svg +3 -0
- package/icons/success.svg +3 -0
- package/icons/warning.svg +3 -0
- package/package.json +7 -3
- package/icons/cross.svg +0 -3
- package/icons/notification-close.svg +0 -5
- package/icons/status-alarm.svg +0 -5
- package/icons/status-error.svg +0 -3
- package/icons/status-information.svg +0 -5
- package/icons/status-negative.svg +0 -5
- package/icons/status-positive.svg +0 -5
- package/icons/status-warning.svg +0 -3
|
@@ -7,6 +7,8 @@ const ddsElement = require("../../base/dds-element.cjs");
|
|
|
7
7
|
const decorators = require("../../base/decorators.cjs");
|
|
8
8
|
require("../../base/define.cjs");
|
|
9
9
|
const tailwind = require("../../tailwind.css.cjs");
|
|
10
|
+
const isSimilarToClick = require("../../utils/is-similar-to-click.cjs");
|
|
11
|
+
require("../checkbox/daikin-checkbox.cjs");
|
|
10
12
|
var __defProp = Object.defineProperty;
|
|
11
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
14
|
var __decorateClass = (decorators2, target, key, kind) => {
|
|
@@ -21,35 +23,49 @@ const cvaOption = classVarianceAuthority.cva(
|
|
|
21
23
|
[
|
|
22
24
|
"flex",
|
|
23
25
|
"items-center",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
+
"gap-1",
|
|
27
|
+
"size-full",
|
|
26
28
|
"min-h-12",
|
|
27
|
-
"text-ddt-color-common-text-primary",
|
|
28
|
-
"bg-ddt-color-common-background-default",
|
|
29
|
-
"p-3",
|
|
30
29
|
"font-daikinSerif",
|
|
31
|
-
"leading-
|
|
30
|
+
"leading-[130%]",
|
|
32
31
|
"text-left",
|
|
32
|
+
"relative",
|
|
33
33
|
"focus-visible:outline",
|
|
34
34
|
"focus-visible:outline-2",
|
|
35
35
|
"focus-visible:-outline-offset-2",
|
|
36
|
-
"focus-visible:outline-ddt-color-common-border-focus"
|
|
37
|
-
"disabled:text-ddt-color-common-disabled"
|
|
36
|
+
"focus-visible:outline-ddt-color-common-border-focus"
|
|
38
37
|
],
|
|
39
38
|
{
|
|
40
39
|
variants: {
|
|
41
40
|
selected: {
|
|
42
41
|
false: [
|
|
43
|
-
"
|
|
44
|
-
"
|
|
42
|
+
"var-color-ddt-color-common-background-default/color-primary",
|
|
43
|
+
"hover:var-color-ddt-color-common-surface-hover/color-primary",
|
|
44
|
+
"active:var-color-ddt-color-common-surface-press/color-primary"
|
|
45
45
|
],
|
|
46
46
|
true: [
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
47
|
+
"var-color-ddt-color-common-surface-selected-default/color-primary",
|
|
48
|
+
"hover:var-color-ddt-color-common-surface-selected-hover/color-primary",
|
|
49
|
+
"active:var-color-ddt-color-common-surface-selected-press/color-primary",
|
|
50
50
|
"after:i-daikin-dropdown-check",
|
|
51
|
-
"after:size-6"
|
|
51
|
+
"after:size-6",
|
|
52
|
+
"after:flex-none"
|
|
52
53
|
]
|
|
54
|
+
},
|
|
55
|
+
disabled: {
|
|
56
|
+
false: [
|
|
57
|
+
"text-ddt-color-common-text-primary",
|
|
58
|
+
"bg-[--color-primary]",
|
|
59
|
+
"cursor-pointer"
|
|
60
|
+
],
|
|
61
|
+
true: [
|
|
62
|
+
"text-ddt-color-common-disabled",
|
|
63
|
+
"bg-ddt-color-common-background-default"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
multiple: {
|
|
67
|
+
false: ["justify-between", "p-3"],
|
|
68
|
+
true: ["after:hidden"]
|
|
53
69
|
}
|
|
54
70
|
}
|
|
55
71
|
}
|
|
@@ -60,30 +76,72 @@ exports.DaikinDropdownItem = class DaikinDropdownItem extends ddsElement.DDSElem
|
|
|
60
76
|
this.value = "";
|
|
61
77
|
this.disabled = false;
|
|
62
78
|
this.selected = false;
|
|
79
|
+
this.selectable = false;
|
|
63
80
|
}
|
|
64
|
-
_handleClick() {
|
|
65
|
-
if (this.disabled) {
|
|
81
|
+
_handleClick(event) {
|
|
82
|
+
if (this.disabled || event.target.tagName === "DAIKIN-CHECKBOX") {
|
|
66
83
|
return;
|
|
67
84
|
}
|
|
68
|
-
this.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
);
|
|
85
|
+
this._emitSelect();
|
|
86
|
+
event.preventDefault();
|
|
87
|
+
}
|
|
88
|
+
_handleChange(event) {
|
|
89
|
+
this._emitSelect();
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
}
|
|
92
|
+
_handleKeydown(event) {
|
|
93
|
+
if (!isSimilarToClick.isSimilarToClick(event.key) || this.disabled) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
this._emitSelect();
|
|
97
|
+
event.preventDefault();
|
|
98
|
+
}
|
|
99
|
+
_handleMousedown(event) {
|
|
100
|
+
if (event.detail === 2) {
|
|
101
|
+
event.preventDefault();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
_emitSelect() {
|
|
105
|
+
this.dispatchEvent(new Event("select", { bubbles: true }));
|
|
73
106
|
}
|
|
74
107
|
render() {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
108
|
+
const optionClassName = cvaOption({
|
|
109
|
+
selected: this.selected,
|
|
110
|
+
disabled: this.disabled,
|
|
111
|
+
multiple: this.selectable
|
|
112
|
+
});
|
|
113
|
+
return this.selectable ? lit.html`<span
|
|
114
|
+
class=${optionClassName}
|
|
115
|
+
data-value=${this.value}
|
|
116
|
+
role="option"
|
|
117
|
+
aria-selected=${this.selected}
|
|
118
|
+
tabindex="-1"
|
|
119
|
+
aria-disabled=${this.disabled}
|
|
120
|
+
@click=${this._handleClick}
|
|
121
|
+
@keydown=${this._handleKeydown}
|
|
122
|
+
@mousedown=${this._handleMousedown}
|
|
123
|
+
>
|
|
124
|
+
<daikin-checkbox
|
|
125
|
+
class="size-full part-[label]:p-2 part-[label]:cursor-pointer"
|
|
126
|
+
check-state=${this.selected ? "checked" : "unchecked"}
|
|
127
|
+
tabindex="-1"
|
|
128
|
+
?disabled=${this.disabled}
|
|
129
|
+
@change=${this._handleChange}
|
|
130
|
+
>
|
|
131
|
+
<slot></slot>
|
|
132
|
+
</daikin-checkbox>
|
|
133
|
+
</span>` : lit.html`<button
|
|
134
|
+
type="button"
|
|
135
|
+
class=${optionClassName}
|
|
136
|
+
data-value=${this.value}
|
|
137
|
+
role="option"
|
|
138
|
+
aria-selected=${this.selected}
|
|
139
|
+
tabindex="-1"
|
|
140
|
+
?disabled=${this.disabled}
|
|
141
|
+
@click=${this._handleClick}
|
|
142
|
+
>
|
|
143
|
+
<slot></slot>
|
|
144
|
+
</button>`;
|
|
87
145
|
}
|
|
88
146
|
/**
|
|
89
147
|
* Focuses on the inner button.
|
|
@@ -91,7 +149,7 @@ exports.DaikinDropdownItem = class DaikinDropdownItem extends ddsElement.DDSElem
|
|
|
91
149
|
*/
|
|
92
150
|
focus(options) {
|
|
93
151
|
var _a;
|
|
94
|
-
(_a = this.
|
|
152
|
+
(_a = this._focusableElement) == null ? void 0 : _a.focus(options);
|
|
95
153
|
}
|
|
96
154
|
};
|
|
97
155
|
exports.DaikinDropdownItem.styles = lit.css`
|
|
@@ -112,8 +170,11 @@ __decorateClass([
|
|
|
112
170
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
113
171
|
], exports.DaikinDropdownItem.prototype, "selected", 2);
|
|
114
172
|
__decorateClass([
|
|
115
|
-
decorators_js.
|
|
116
|
-
], exports.DaikinDropdownItem.prototype, "
|
|
173
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
174
|
+
], exports.DaikinDropdownItem.prototype, "selectable", 2);
|
|
175
|
+
__decorateClass([
|
|
176
|
+
decorators_js.query("button,span[role=option]")
|
|
177
|
+
], exports.DaikinDropdownItem.prototype, "_focusableElement", 2);
|
|
117
178
|
exports.DaikinDropdownItem = __decorateClass([
|
|
118
179
|
decorators.ddsElement("daikin-dropdown-item")
|
|
119
180
|
], exports.DaikinDropdownItem);
|
|
@@ -34,8 +34,13 @@ export declare class DaikinDropdownItem extends DDSElement {
|
|
|
34
34
|
* Set automatically by `daikin-dropdown` component.
|
|
35
35
|
*/
|
|
36
36
|
selected: boolean;
|
|
37
|
-
|
|
37
|
+
selectable: boolean;
|
|
38
|
+
private _focusableElement;
|
|
38
39
|
private _handleClick;
|
|
40
|
+
private _handleChange;
|
|
41
|
+
private _handleKeydown;
|
|
42
|
+
private _handleMousedown;
|
|
43
|
+
private _emitSelect;
|
|
39
44
|
render(): import('lit-html').TemplateResult<1>;
|
|
40
45
|
/**
|
|
41
46
|
* Focuses on the inner button.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const icons = { "
|
|
3
|
+
const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null }, "negative": { "class": "i-daikin-error", "color": null }, "positive": { "class": "i-daikin-success", "color": null }, "cross": { "class": "i-daikin-close", "color": null } };
|
|
4
4
|
exports.icons = icons;
|
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"icons": {
|
|
3
|
+
"logo-positive": {
|
|
4
|
+
"class": "i-daikin-logo-positive",
|
|
5
|
+
"color": null
|
|
6
|
+
},
|
|
7
|
+
"logo-negative": {
|
|
8
|
+
"class": "i-daikin-logo-negative",
|
|
9
|
+
"color": null
|
|
10
|
+
},
|
|
3
11
|
"alarm": {
|
|
4
|
-
"class": "i-daikin-
|
|
12
|
+
"class": "i-daikin-alarm",
|
|
5
13
|
"color": null
|
|
6
14
|
},
|
|
7
15
|
"close": {
|
|
8
|
-
"class": "i-daikin-
|
|
16
|
+
"class": "i-daikin-close",
|
|
9
17
|
"color": "#a0a0a0"
|
|
10
18
|
},
|
|
11
19
|
"information": {
|
|
12
|
-
"class": "i-daikin-
|
|
20
|
+
"class": "i-daikin-information",
|
|
13
21
|
"color": null
|
|
14
22
|
},
|
|
15
|
-
"
|
|
16
|
-
"class": "i-daikin-
|
|
23
|
+
"error": {
|
|
24
|
+
"class": "i-daikin-error",
|
|
17
25
|
"color": null
|
|
18
26
|
},
|
|
19
|
-
"
|
|
20
|
-
"class": "i-daikin-
|
|
27
|
+
"success": {
|
|
28
|
+
"class": "i-daikin-success",
|
|
21
29
|
"color": null
|
|
22
30
|
},
|
|
23
31
|
"warning": {
|
|
24
|
-
"class": "i-daikin-
|
|
32
|
+
"class": "i-daikin-warning",
|
|
25
33
|
"color": null
|
|
26
34
|
},
|
|
27
35
|
"pagination-chevron-left": {
|
|
@@ -32,12 +40,8 @@ declare const _default: {
|
|
|
32
40
|
"class": "i-daikin-pagination-chevron-right",
|
|
33
41
|
"color": "#414141"
|
|
34
42
|
},
|
|
35
|
-
"
|
|
36
|
-
"class": "i-daikin-
|
|
37
|
-
"color": "#FF4949"
|
|
38
|
-
},
|
|
39
|
-
"cross": {
|
|
40
|
-
"class": "i-daikin-cross",
|
|
43
|
+
"profile": {
|
|
44
|
+
"class": "i-daikin-profile",
|
|
41
45
|
"color": null
|
|
42
46
|
},
|
|
43
47
|
"chevron-up": {
|
|
@@ -59,6 +63,18 @@ declare const _default: {
|
|
|
59
63
|
"sort": {
|
|
60
64
|
"class": "i-daikin-sort",
|
|
61
65
|
"color": null
|
|
66
|
+
},
|
|
67
|
+
"negative": {
|
|
68
|
+
"class": "i-daikin-error",
|
|
69
|
+
"color": null
|
|
70
|
+
},
|
|
71
|
+
"positive": {
|
|
72
|
+
"class": "i-daikin-success",
|
|
73
|
+
"color": null
|
|
74
|
+
},
|
|
75
|
+
"cross": {
|
|
76
|
+
"class": "i-daikin-close",
|
|
77
|
+
"color": null
|
|
62
78
|
}
|
|
63
79
|
}
|
|
64
80
|
}
|
|
@@ -4,10 +4,11 @@ const classVarianceAuthority = require("class-variance-authority");
|
|
|
4
4
|
const lit = require("lit");
|
|
5
5
|
const decorators_js = require("lit/decorators.js");
|
|
6
6
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
-
|
|
7
|
+
require("../../base/dds-element.cjs");
|
|
8
8
|
const decorators = require("../../base/decorators.cjs");
|
|
9
9
|
require("../../base/define.cjs");
|
|
10
10
|
const tailwind = require("../../tailwind.css.cjs");
|
|
11
|
+
const ddsFormElement = require("../../base/dds-form-element.cjs");
|
|
11
12
|
require("../icon/daikin-icon.cjs");
|
|
12
13
|
var __defProp = Object.defineProperty;
|
|
13
14
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -76,7 +77,7 @@ const cvaIconButton = classVarianceAuthority.cva(
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
);
|
|
79
|
-
exports.DaikinIconButton = class DaikinIconButton extends
|
|
80
|
+
exports.DaikinIconButton = class DaikinIconButton extends ddsFormElement.DDSFormSubmitElement {
|
|
80
81
|
constructor() {
|
|
81
82
|
super();
|
|
82
83
|
this.variant = "fill";
|
|
@@ -86,10 +87,17 @@ exports.DaikinIconButton = class DaikinIconButton extends ddsElement.DDSElement
|
|
|
86
87
|
this.type = "button";
|
|
87
88
|
this.buttonAriaLabel = null;
|
|
88
89
|
this.buttonRole = null;
|
|
90
|
+
this.buttonAriaHaspopup = null;
|
|
91
|
+
this.buttonAriaExpanded = null;
|
|
89
92
|
this.addEventListener("click", (event) => {
|
|
90
93
|
if (this.disabled) {
|
|
91
94
|
event.stopImmediatePropagation();
|
|
92
95
|
}
|
|
96
|
+
if (this.type === "submit") {
|
|
97
|
+
this.requestSubmit();
|
|
98
|
+
} else if (this.type === "reset") {
|
|
99
|
+
this.reset();
|
|
100
|
+
}
|
|
93
101
|
});
|
|
94
102
|
}
|
|
95
103
|
render() {
|
|
@@ -117,6 +125,8 @@ exports.DaikinIconButton = class DaikinIconButton extends ddsElement.DDSElement
|
|
|
117
125
|
type=${this.type}
|
|
118
126
|
aria-label=${this.buttonAriaLabel ?? ""}
|
|
119
127
|
?disabled=${this.disabled}
|
|
128
|
+
aria-haspopup=${ifDefined_js.ifDefined(this.buttonAriaHaspopup ?? void 0)}
|
|
129
|
+
aria-expanded=${ifDefined_js.ifDefined(this.buttonAriaExpanded ?? void 0)}
|
|
120
130
|
>
|
|
121
131
|
<slot class="icon-size-full"></slot>
|
|
122
132
|
</button>
|
|
@@ -161,6 +171,12 @@ __decorateClass([
|
|
|
161
171
|
__decorateClass([
|
|
162
172
|
decorators_js.property({ type: String, reflect: true, attribute: "button-role" })
|
|
163
173
|
], exports.DaikinIconButton.prototype, "buttonRole", 2);
|
|
174
|
+
__decorateClass([
|
|
175
|
+
decorators_js.property({ type: String, reflect: true, attribute: "button-aria-haspopup" })
|
|
176
|
+
], exports.DaikinIconButton.prototype, "buttonAriaHaspopup", 2);
|
|
177
|
+
__decorateClass([
|
|
178
|
+
decorators_js.property({ type: Boolean, reflect: true, attribute: "button-aria-expanded" })
|
|
179
|
+
], exports.DaikinIconButton.prototype, "buttonAriaExpanded", 2);
|
|
164
180
|
__decorateClass([
|
|
165
181
|
decorators_js.query("button")
|
|
166
182
|
], exports.DaikinIconButton.prototype, "_button", 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DDSElement } from "../../base/index.cjs";
|
|
2
1
|
import { ARIARole } from "../../lit-analyzer-types.cjs";
|
|
3
2
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
|
+
import { DDSFormSubmitElement } from "../../base/dds-form-element.cjs";
|
|
4
4
|
declare const cvaIconButton: (props?: ({
|
|
5
5
|
color?: "default" | "danger" | "neutral" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
@@ -32,7 +32,7 @@ type IconButtonVariantProps = MergeVariantProps<typeof cvaIconButton>;
|
|
|
32
32
|
* </daikin-icon-button>
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
export declare class DaikinIconButton extends
|
|
35
|
+
export declare class DaikinIconButton extends DDSFormSubmitElement {
|
|
36
36
|
static readonly styles: import('lit').CSSResult;
|
|
37
37
|
/**
|
|
38
38
|
* Variant of the button.
|
|
@@ -65,6 +65,16 @@ export declare class DaikinIconButton extends DDSElement {
|
|
|
65
65
|
* Optional ARIA role of the button.
|
|
66
66
|
*/
|
|
67
67
|
buttonRole: ARIARole | null;
|
|
68
|
+
/**
|
|
69
|
+
* The aria-haspopup of the icon button when `type="button"`.
|
|
70
|
+
* When used within a daikin-menu component, this property is automatically assigned the value `buttonAriaHaspopup="menu"`.
|
|
71
|
+
*/
|
|
72
|
+
buttonAriaHaspopup: "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | null;
|
|
73
|
+
/**
|
|
74
|
+
* The aria-expanded of icon button when `type="button"`.
|
|
75
|
+
* When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
|
|
76
|
+
*/
|
|
77
|
+
buttonAriaExpanded: boolean | null;
|
|
68
78
|
private _button;
|
|
69
79
|
constructor();
|
|
70
80
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -2,15 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const daikinAccordion = require("./accordion/daikin-accordion.cjs");
|
|
4
4
|
const daikinAccordionItem = require("./accordion-item/daikin-accordion-item.cjs");
|
|
5
|
+
const daikinAvatar = require("./avatar/daikin-avatar.cjs");
|
|
5
6
|
const daikinBreadcrumb = require("./breadcrumb/daikin-breadcrumb.cjs");
|
|
6
7
|
const daikinBreadcrumbItem = require("./breadcrumb-item/daikin-breadcrumb-item.cjs");
|
|
7
8
|
const daikinButton = require("./button/daikin-button.cjs");
|
|
9
|
+
const daikinCalendar = require("./calendar/daikin-calendar.cjs");
|
|
8
10
|
const daikinCard = require("./card/daikin-card.cjs");
|
|
9
11
|
const daikinCardFooter = require("./card-footer/daikin-card-footer.cjs");
|
|
10
12
|
const daikinCardHeader = require("./card-header/daikin-card-header.cjs");
|
|
11
13
|
const daikinCarousel = require("./carousel/daikin-carousel.cjs");
|
|
12
14
|
const daikinCarouselItem = require("./carousel-item/daikin-carousel-item.cjs");
|
|
13
15
|
const daikinCheckbox = require("./checkbox/daikin-checkbox.cjs");
|
|
16
|
+
const daikinCheckboxGroup = require("./checkbox-group/daikin-checkbox-group.cjs");
|
|
17
|
+
const daikinDatePicker = require("./date-picker/daikin-date-picker.cjs");
|
|
14
18
|
const daikinDropdown = require("./dropdown/daikin-dropdown.cjs");
|
|
15
19
|
const daikinDropdownItem = require("./dropdown-item/daikin-dropdown-item.cjs");
|
|
16
20
|
const daikinIcon = require("./icon/daikin-icon.cjs");
|
|
@@ -20,12 +24,19 @@ const daikinInputGroup = require("./input-group/daikin-input-group.cjs");
|
|
|
20
24
|
const daikinLink = require("./link/daikin-link.cjs");
|
|
21
25
|
const daikinList = require("./list/daikin-list.cjs");
|
|
22
26
|
const daikinListItem = require("./list-item/daikin-list-item.cjs");
|
|
27
|
+
const daikinLoading = require("./loading/daikin-loading.cjs");
|
|
28
|
+
const daikinLogo = require("./logo/daikin-logo.cjs");
|
|
29
|
+
const daikinMenu = require("./menu/daikin-menu.cjs");
|
|
30
|
+
const daikinModal = require("./modal/daikin-modal.cjs");
|
|
31
|
+
const daikinModalFooter = require("./modal-footer/daikin-modal-footer.cjs");
|
|
32
|
+
const daikinModalHeader = require("./modal-header/daikin-modal-header.cjs");
|
|
23
33
|
const daikinPagination = require("./pagination/daikin-pagination.cjs");
|
|
24
34
|
const daikinProgressBar = require("./progress-bar/daikin-progress-bar.cjs");
|
|
25
35
|
const daikinProgressIndicator = require("./progress-indicator/daikin-progress-indicator.cjs");
|
|
26
36
|
const daikinProgressIndicatorItem = require("./progress-indicator-item/daikin-progress-indicator-item.cjs");
|
|
27
37
|
const daikinRadio = require("./radio/daikin-radio.cjs");
|
|
28
38
|
const daikinSelect = require("./select/daikin-select.cjs");
|
|
39
|
+
const daikinSlider = require("./slider/daikin-slider.cjs");
|
|
29
40
|
const daikinTab = require("./tab/daikin-tab.cjs");
|
|
30
41
|
const daikinTabPanels = require("./tab-panels/daikin-tab-panels.cjs");
|
|
31
42
|
const daikinTable = require("./table/daikin-table.cjs");
|
|
@@ -49,6 +60,10 @@ Object.defineProperty(exports, "DaikinAccordionItem", {
|
|
|
49
60
|
enumerable: true,
|
|
50
61
|
get: () => daikinAccordionItem.DaikinAccordionItem
|
|
51
62
|
});
|
|
63
|
+
Object.defineProperty(exports, "DaikinAvatar", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: () => daikinAvatar.DaikinAvatar
|
|
66
|
+
});
|
|
52
67
|
Object.defineProperty(exports, "DaikinBreadcrumb", {
|
|
53
68
|
enumerable: true,
|
|
54
69
|
get: () => daikinBreadcrumb.DaikinBreadcrumb
|
|
@@ -61,6 +76,10 @@ Object.defineProperty(exports, "DaikinButton", {
|
|
|
61
76
|
enumerable: true,
|
|
62
77
|
get: () => daikinButton.DaikinButton
|
|
63
78
|
});
|
|
79
|
+
Object.defineProperty(exports, "DaikinCalendar", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: () => daikinCalendar.DaikinCalendar
|
|
82
|
+
});
|
|
64
83
|
Object.defineProperty(exports, "DaikinCard", {
|
|
65
84
|
enumerable: true,
|
|
66
85
|
get: () => daikinCard.DaikinCard
|
|
@@ -85,6 +104,14 @@ Object.defineProperty(exports, "DaikinCheckbox", {
|
|
|
85
104
|
enumerable: true,
|
|
86
105
|
get: () => daikinCheckbox.DaikinCheckbox
|
|
87
106
|
});
|
|
107
|
+
Object.defineProperty(exports, "DaikinCheckboxGroup", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: () => daikinCheckboxGroup.DaikinCheckboxGroup
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, "DaikinDatePicker", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: () => daikinDatePicker.DaikinDatePicker
|
|
114
|
+
});
|
|
88
115
|
Object.defineProperty(exports, "DaikinDropdown", {
|
|
89
116
|
enumerable: true,
|
|
90
117
|
get: () => daikinDropdown.DaikinDropdown
|
|
@@ -122,6 +149,30 @@ Object.defineProperty(exports, "DaikinListItem", {
|
|
|
122
149
|
enumerable: true,
|
|
123
150
|
get: () => daikinListItem.DaikinListItem
|
|
124
151
|
});
|
|
152
|
+
Object.defineProperty(exports, "DaikinLoading", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: () => daikinLoading.DaikinLoading
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "DaikinLogo", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: () => daikinLogo.DaikinLogo
|
|
159
|
+
});
|
|
160
|
+
Object.defineProperty(exports, "DaikinMenu", {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: () => daikinMenu.DaikinMenu
|
|
163
|
+
});
|
|
164
|
+
Object.defineProperty(exports, "DaikinModal", {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: () => daikinModal.DaikinModal
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "DaikinModalFooter", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: () => daikinModalFooter.DaikinModalFooter
|
|
171
|
+
});
|
|
172
|
+
Object.defineProperty(exports, "DaikinModalHeader", {
|
|
173
|
+
enumerable: true,
|
|
174
|
+
get: () => daikinModalHeader.DaikinModalHeader
|
|
175
|
+
});
|
|
125
176
|
Object.defineProperty(exports, "DaikinPagination", {
|
|
126
177
|
enumerable: true,
|
|
127
178
|
get: () => daikinPagination.DaikinPagination
|
|
@@ -146,6 +197,10 @@ Object.defineProperty(exports, "DaikinSelect", {
|
|
|
146
197
|
enumerable: true,
|
|
147
198
|
get: () => daikinSelect.DaikinSelect
|
|
148
199
|
});
|
|
200
|
+
Object.defineProperty(exports, "DaikinSlider", {
|
|
201
|
+
enumerable: true,
|
|
202
|
+
get: () => daikinSlider.DaikinSlider
|
|
203
|
+
});
|
|
149
204
|
Object.defineProperty(exports, "DaikinTab", {
|
|
150
205
|
enumerable: true,
|
|
151
206
|
get: () => daikinTab.DaikinTab
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
export * from "./accordion/index.cjs";
|
|
2
2
|
export * from "./accordion-item/index.cjs";
|
|
3
|
+
export * from "./avatar/index.cjs";
|
|
3
4
|
export * from "./breadcrumb/index.cjs";
|
|
4
5
|
export * from "./breadcrumb-item/index.cjs";
|
|
5
6
|
export * from "./button/index.cjs";
|
|
7
|
+
export * from "./calendar/index.cjs";
|
|
6
8
|
export * from "./card/index.cjs";
|
|
7
9
|
export * from "./card-footer/index.cjs";
|
|
8
10
|
export * from "./card-header/index.cjs";
|
|
9
11
|
export * from "./carousel/index.cjs";
|
|
10
12
|
export * from "./carousel-item/index.cjs";
|
|
11
13
|
export * from "./checkbox/index.cjs";
|
|
14
|
+
export * from "./checkbox-group/index.cjs";
|
|
15
|
+
export * from "./date-picker/index.cjs";
|
|
12
16
|
export * from "./dropdown/index.cjs";
|
|
13
17
|
export * from "./dropdown-item/index.cjs";
|
|
14
18
|
export * from "./icon/index.cjs";
|
|
@@ -18,12 +22,19 @@ export * from "./input-group/index.cjs";
|
|
|
18
22
|
export * from "./link/index.cjs";
|
|
19
23
|
export * from "./list/index.cjs";
|
|
20
24
|
export * from "./list-item/index.cjs";
|
|
25
|
+
export * from "./loading/index.cjs";
|
|
26
|
+
export * from "./logo/index.cjs";
|
|
27
|
+
export * from "./menu/index.cjs";
|
|
28
|
+
export * from "./modal/index.cjs";
|
|
29
|
+
export * from "./modal-footer/index.cjs";
|
|
30
|
+
export * from "./modal-header/index.cjs";
|
|
21
31
|
export * from "./pagination/index.cjs";
|
|
22
32
|
export * from "./progress-bar/index.cjs";
|
|
23
33
|
export * from "./progress-indicator/index.cjs";
|
|
24
34
|
export * from "./progress-indicator-item/index.cjs";
|
|
25
35
|
export * from "./radio/index.cjs";
|
|
26
36
|
export * from "./select/index.cjs";
|
|
37
|
+
export * from "./slider/index.cjs";
|
|
27
38
|
export * from "./tab/index.cjs";
|
|
28
39
|
export * from "./tab-panels/index.cjs";
|
|
29
40
|
export * from "./table/index.cjs";
|
|
@@ -7,6 +7,7 @@ const decorators = require("../../base/decorators.cjs");
|
|
|
7
7
|
require("../../base/define.cjs");
|
|
8
8
|
const tailwind = require("../../tailwind.css.cjs");
|
|
9
9
|
const notificationCommon = require("../../utils/notification-common.cjs");
|
|
10
|
+
require("../icon-button/daikin-icon-button.cjs");
|
|
10
11
|
var __defProp = Object.defineProperty;
|
|
11
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
13
|
var __decorateClass = (decorators2, target, key, kind) => {
|
|
@@ -36,30 +37,24 @@ exports.DaikinInlineNotification = class DaikinInlineNotification extends ddsEle
|
|
|
36
37
|
const formattedTimestamp = this.timestamp ? notificationCommon.formatDate(this.timestamp) : null;
|
|
37
38
|
return lit.html`<aside
|
|
38
39
|
class=${notificationCommon.cvaContainer({ variant: "inline", status: this.status })}
|
|
39
|
-
role="status"
|
|
40
40
|
>
|
|
41
41
|
<div class=${notificationCommon.cvaContent({ layout: this.layout })}>
|
|
42
42
|
<slot class=${notificationCommon.cvaTitle({ layout: this.layout })} name="title"></slot>
|
|
43
|
-
<slot
|
|
44
|
-
class=${notificationCommon.cvaDescription({ layout: this.layout })}
|
|
45
|
-
name="description"
|
|
46
|
-
></slot>
|
|
43
|
+
<slot class=${notificationCommon.cvaDescription({ layout: this.layout })}></slot>
|
|
47
44
|
${formattedTimestamp ? lit.html`<span class=${notificationCommon.cvaTimestamp({ layout: this.layout })}
|
|
48
45
|
>${formattedTimestamp}</span
|
|
49
46
|
>` : lit.nothing}
|
|
50
47
|
</div>
|
|
51
48
|
<slot name="action" class="flex-none"></slot>
|
|
52
|
-
${this.closable ? lit.html
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</daikin-icon-button>
|
|
62
|
-
` : lit.nothing}
|
|
49
|
+
${this.closable ? lit.html`<daikin-icon-button
|
|
50
|
+
variant="ghost"
|
|
51
|
+
button-aria-label="Close"
|
|
52
|
+
@click=${this._handleClickClose}
|
|
53
|
+
>
|
|
54
|
+
<span
|
|
55
|
+
class="flex size-6 text-ddt-color-common-text-secondary relative i-daikin-close"
|
|
56
|
+
></span>
|
|
57
|
+
</daikin-icon-button>` : lit.nothing}
|
|
63
58
|
</aside>`;
|
|
64
59
|
}
|
|
65
60
|
};
|
|
@@ -76,10 +71,10 @@ exports.DaikinInlineNotification.styles = lit.css`
|
|
|
76
71
|
}
|
|
77
72
|
`;
|
|
78
73
|
__decorateClass([
|
|
79
|
-
decorators_js.property({ type: String })
|
|
74
|
+
decorators_js.property({ type: String, reflect: true })
|
|
80
75
|
], exports.DaikinInlineNotification.prototype, "status", 2);
|
|
81
76
|
__decorateClass([
|
|
82
|
-
decorators_js.property({ type: String })
|
|
77
|
+
decorators_js.property({ type: String, reflect: true })
|
|
83
78
|
], exports.DaikinInlineNotification.prototype, "layout", 2);
|
|
84
79
|
__decorateClass([
|
|
85
80
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
@@ -6,10 +6,12 @@ import { ToastNotificationVariantProps } from "../toast-notification/index.cjs";
|
|
|
6
6
|
* An inline notification appears within the content of the application, usually embedded directly within a page or section.
|
|
7
7
|
* Inline notification is more persistent than toast notification and are used to highlight important information or status updates that should remain visible to the user until they are acknowledged or the issue is resolved.
|
|
8
8
|
*
|
|
9
|
+
* @tokenImports ../../utils/notification-common.ts
|
|
10
|
+
*
|
|
9
11
|
* @fires close - A custom event emitted when a user clicks the close button.
|
|
10
12
|
*
|
|
13
|
+
* @slot A slot for the inline notification description content.
|
|
11
14
|
* @slot title - A slot for the title content.
|
|
12
|
-
* @slot description - A slot for the description content.
|
|
13
15
|
*
|
|
14
16
|
* @example
|
|
15
17
|
*
|
|
@@ -36,14 +36,14 @@ const cvaHelper = classVarianceAuthority.cva(
|
|
|
36
36
|
"text-ddt-color-common-danger-default",
|
|
37
37
|
"font-bold",
|
|
38
38
|
"before:size-4",
|
|
39
|
-
"before:i-daikin-
|
|
39
|
+
"before:i-daikin-error",
|
|
40
40
|
"before:flex-none"
|
|
41
41
|
],
|
|
42
42
|
textareaLimitExceedError: [
|
|
43
43
|
"text-ddt-color-common-danger-default",
|
|
44
44
|
"font-bold",
|
|
45
45
|
"before:size-4",
|
|
46
|
-
"before:i-daikin-
|
|
46
|
+
"before:i-daikin-error",
|
|
47
47
|
"before:flex-none"
|
|
48
48
|
],
|
|
49
49
|
none: ["hidden"]
|
|
@@ -111,7 +111,7 @@ exports.DaikinInputGroup = class DaikinInputGroup extends ddsElement.DDSElement
|
|
|
111
111
|
textareaLimitExceedError: this.textareaLimitExceedError,
|
|
112
112
|
none: ""
|
|
113
113
|
}[helperTextVariant];
|
|
114
|
-
return lit.html`<fieldset class="
|
|
114
|
+
return lit.html`<fieldset class="contents" ?disabled=${this.disabled}>
|
|
115
115
|
<label
|
|
116
116
|
class="flex flex-col justify-center gap-2 w-full text-ddt-color-common-text-primary font-daikinSerif"
|
|
117
117
|
>
|
|
@@ -184,7 +184,7 @@ __decorateClass([
|
|
|
184
184
|
], exports.DaikinInputGroup.prototype, "_textareas", 2);
|
|
185
185
|
__decorateClass([
|
|
186
186
|
decorators_js.queryAssignedElements({
|
|
187
|
-
selector: "daikin-dropdown,daikin-radio-group,daikin-select,daikin-text-field,daikin-text-area"
|
|
187
|
+
selector: "daikin-date-picker,daikin-dropdown,daikin-radio-group,daikin-checkbox-group,daikin-select,daikin-text-field,daikin-text-area"
|
|
188
188
|
})
|
|
189
189
|
], exports.DaikinInputGroup.prototype, "_controls", 2);
|
|
190
190
|
__decorateClass([
|