@daikin-oss/design-system-web-components 1.1.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 +109 -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.d.cts +3 -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 +12 -16
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +9 -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 +44 -25
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +3 -12
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +28 -16
- 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 +45 -0
- package/dist/cjs/components/index.d.cts +9 -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 +1 -1
- package/dist/cjs/components/loading/daikin-loading.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 +45 -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/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.d.cts +3 -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 +12 -16
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +9 -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 +44 -25
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +3 -12
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +28 -16
- 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 +45 -0
- package/dist/cjs-dev/components/index.d.cts +9 -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 +1 -1
- package/dist/cjs-dev/components/loading/daikin-loading.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 +45 -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/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 +3 -0
- package/dist/es/components/avatar/daikin-avatar.js +1 -1
- 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 +9 -12
- package/dist/es/components/checkbox/daikin-checkbox.js +13 -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 +3 -12
- package/dist/es/components/dropdown/daikin-dropdown.js +45 -26
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +1 -1
- package/dist/es/components/icon/daikin-icon.js +1 -1
- package/dist/es/components/icon/icons.json.d.ts +28 -16
- 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 +9 -0
- package/dist/es/components/index.js +18 -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 +1 -0
- package/dist/es/components/loading/daikin-loading.js +2 -2
- 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 +18 -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/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 +3 -0
- package/dist/es-dev/components/avatar/daikin-avatar.js +1 -1
- 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 +9 -12
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +13 -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 +3 -12
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +45 -26
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +1 -1
- package/dist/es-dev/components/icon/daikin-icon.js +1 -1
- package/dist/es-dev/components/icon/icons.json.d.ts +28 -16
- 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 +9 -0
- package/dist/es-dev/components/index.js +18 -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 +1 -0
- package/dist/es-dev/components/loading/daikin-loading.js +2 -2
- 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 +18 -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/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/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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,114 @@
|
|
|
1
1
|
# @daikin-oss/design-system-web-components
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#193](https://github.com/dsv-rp/DDS/pull/193) [`a726caa`](https://github.com/dsv-rp/DDS/commit/a726caa048f528aedda421ace0388683ebd3c804) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Header: Add Recipe. (DDS-2169)
|
|
8
|
+
Data Display: Add Recipe. (DDS-2284)
|
|
9
|
+
|
|
10
|
+
- [#144](https://github.com/dsv-rp/DDS/pull/144) [`bde7786`](https://github.com/dsv-rp/DDS/commit/bde778694815e551bcca77c190d13b7b0488728e) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Checkbox Group: Initial Implementation. (DDS-1732)
|
|
11
|
+
|
|
12
|
+
- [#161](https://github.com/dsv-rp/DDS/pull/161) [`c4f05f8`](https://github.com/dsv-rp/DDS/commit/c4f05f8c2b4feb1fee67bdd7449e3e5429e1d10a) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Menu: Initial Implementation. (DDS-1937)
|
|
13
|
+
|
|
14
|
+
- [#180](https://github.com/dsv-rp/DDS/pull/180) [`2590eee`](https://github.com/dsv-rp/DDS/commit/2590eee5e2a51dd7a6d9342010c9ce91f101ed20) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Logo: Initial Implementation. (DDS-2122)
|
|
15
|
+
|
|
16
|
+
- [#120](https://github.com/dsv-rp/DDS/pull/120) [`cd05582`](https://github.com/dsv-rp/DDS/commit/cd055823e21a54de02db36ba0a9cd0488b21c85f) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Slider: Initial Implementation. (DDS-1740)
|
|
17
|
+
|
|
18
|
+
- [#194](https://github.com/dsv-rp/DDS/pull/194) [`3a0834a`](https://github.com/dsv-rp/DDS/commit/3a0834aade4661eb1b2df6a05a273a9c45c90568) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Button: Fixed an issue where the button did not function as a submit button.
|
|
19
|
+
Icon Button: Fixed an issue where the button did not function as a submit button.
|
|
20
|
+
Checkbox: Added `form` attribute. (DDS-2254)
|
|
21
|
+
Date Picker: Added `form` attribute. (DDS-2254)
|
|
22
|
+
Dropdown: Added `form` and `name` attributes. (DDS-2254)
|
|
23
|
+
Dropdown: Fixed an issue where the component is not acting as a form control. (DDS-2254)
|
|
24
|
+
Radio Group: Added `form` attribute. (DDS-2254)
|
|
25
|
+
Radio: Added `form` attribute. (DDS-2254)
|
|
26
|
+
Slider: Added `form` attribute. (DDS-2254)
|
|
27
|
+
Text Area: Added `form` attribute. (DDS-2254)
|
|
28
|
+
Text Field: Added `form` attribute. (DDS-2254)
|
|
29
|
+
Toggle: Added `form` attribute. (DDS-2254)
|
|
30
|
+
|
|
31
|
+
- [#167](https://github.com/dsv-rp/DDS/pull/167) [`c9d2430`](https://github.com/dsv-rp/DDS/commit/c9d2430520890b3b2fdb9cefb7d552fd3d237d28) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Inline Notification: The `description` slot has been replaced with the default slot. (DDS-1981)
|
|
32
|
+
Inline Notification: Updated appearance. (DDS-1981)
|
|
33
|
+
**BREAKING CHANGE** Toast Notification: The `description` slot has been replaced with the default slot. (DDS-1982)
|
|
34
|
+
Toast Notification: Updated appearance. (DDS-1982)
|
|
35
|
+
|
|
36
|
+
- [#204](https://github.com/dsv-rp/DDS/pull/204) [`219547a`](https://github.com/dsv-rp/DDS/commit/219547afb633c0e05504307fa1638852e7b5ec52) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Button: Add large size variant. (DDS-2323)
|
|
37
|
+
|
|
38
|
+
- [#202](https://github.com/dsv-rp/DDS/pull/202) [`415ddc5`](https://github.com/dsv-rp/DDS/commit/415ddc59a7cd3ca209f6a5c112fc0245bf2e17b6) Thanks [@yodas7](https://github.com/yodas7)! - Date Picker: Initial Implementation. (DDS-1703)
|
|
39
|
+
Calender: Initial Implementation. (DDS-1704)
|
|
40
|
+
|
|
41
|
+
- [#157](https://github.com/dsv-rp/DDS/pull/157) [`79b510a`](https://github.com/dsv-rp/DDS/commit/79b510a396435731ba8b2bec6b2fbe1bbcc780d6) Thanks [@poetrainy](https://github.com/poetrainy)! - Text Field: The `type` attribute now accepts `password` and `search` . (DDS-1707, DDS-1709)
|
|
42
|
+
Text Field: The `type` attribute now accepts `search` . (DDS-1709)
|
|
43
|
+
|
|
44
|
+
- [#219](https://github.com/dsv-rp/DDS/pull/219) [`36552b0`](https://github.com/dsv-rp/DDS/commit/36552b070cacda6e051ff233df78edfe817527a5) Thanks [@yodas7](https://github.com/yodas7)! - Release v1.2.0.
|
|
45
|
+
|
|
46
|
+
The following (stable) components have been added in this release.
|
|
47
|
+
|
|
48
|
+
- Slider
|
|
49
|
+
- Logo
|
|
50
|
+
- Menu
|
|
51
|
+
- Checkbox Group
|
|
52
|
+
- Date Picker
|
|
53
|
+
- Calendar
|
|
54
|
+
- Modal
|
|
55
|
+
|
|
56
|
+
The following components have been promoted from experimental to stable in this release.
|
|
57
|
+
|
|
58
|
+
- Loading
|
|
59
|
+
- Avatar
|
|
60
|
+
- Toast Notification
|
|
61
|
+
|
|
62
|
+
No new experimental components were added in this release.
|
|
63
|
+
|
|
64
|
+
- [#182](https://github.com/dsv-rp/DDS/pull/182) [`08cea1b`](https://github.com/dsv-rp/DDS/commit/08cea1bc3a7250a8cbad44363aeb8bb7d2bc084a) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Modal: Initial Implementation. (DDS-1723)
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- [#200](https://github.com/dsv-rp/DDS/pull/200) [`625ff76`](https://github.com/dsv-rp/DDS/commit/625ff763ee3a41bdf1d448575617b4faf18f0c16) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Loading: Update story appearance and comment about background property. (DDS-2099)
|
|
69
|
+
Password: Update story appearance and fixed an issue where an extra eye icon appeared in input fields on Edge browser. (DDS-2095)
|
|
70
|
+
Logo: Automatically select the appropriate logo variant based on the Storybook theme to prevent user confusion. (DDS-2150)
|
|
71
|
+
Menu: Removed unnecessary items from the story controls and adjusted the text change line strategy. (DDS-2113)
|
|
72
|
+
|
|
73
|
+
- [#171](https://github.com/dsv-rp/DDS/pull/171) [`48dd161`](https://github.com/dsv-rp/DDS/commit/48dd16156a8776e6fc13fc825bf4bb98270a4488) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Dropdown: Fixed bugs open properties not work in storybook doc. (DDS-1983)
|
|
74
|
+
Dropdown: Update story appearance.
|
|
75
|
+
Dropdown: Update appearance when content overflow. (DDS-1983)
|
|
76
|
+
|
|
77
|
+
- [#182](https://github.com/dsv-rp/DDS/pull/182) [`08cea1b`](https://github.com/dsv-rp/DDS/commit/08cea1bc3a7250a8cbad44363aeb8bb7d2bc084a) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Card: Change padding from 16px to 12px.
|
|
78
|
+
|
|
79
|
+
- [#212](https://github.com/dsv-rp/DDS/pull/212) [`b299a93`](https://github.com/dsv-rp/DDS/commit/b299a931eebafdddc36e5c3641fcef2c5fa368d1) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Tooltip: fix an issue that tooltip not work in touch device. (DDS-2303)
|
|
80
|
+
|
|
81
|
+
- [#190](https://github.com/dsv-rp/DDS/pull/190) [`9d1e55b`](https://github.com/dsv-rp/DDS/commit/9d1e55bda7a4032702332b2f894b26fb354a1751) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Icon: Some icons have been updated. (DDS-2249)
|
|
82
|
+
|
|
83
|
+
Icon: The following icons have been added. (DDS-2249)
|
|
84
|
+
|
|
85
|
+
- `success`
|
|
86
|
+
- `error`
|
|
87
|
+
|
|
88
|
+
**DEPRECATED** Icon: The following icons are deprecated and will be removed in future versions. (DDS-2249)
|
|
89
|
+
|
|
90
|
+
- `positive` (Use `success` instead)
|
|
91
|
+
- `negative` (Use `error` instead)
|
|
92
|
+
- `cross` (Use `close` instead)
|
|
93
|
+
|
|
94
|
+
- [#209](https://github.com/dsv-rp/DDS/pull/209) [`8fa51e0`](https://github.com/dsv-rp/DDS/commit/8fa51e071129190733dae441193ed0f34a1c207b) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Modal: Update story appearance and the text change line strategy. (DDS-2012)
|
|
95
|
+
|
|
96
|
+
- [#183](https://github.com/dsv-rp/DDS/pull/183) [`707676d`](https://github.com/dsv-rp/DDS/commit/707676db9ad8cddab0c7c2e5e8e8a4f22167e14b) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Tooltip: Keep the tooltip component always centered in the storybook view. (DDS-2207)
|
|
97
|
+
|
|
98
|
+
- [#172](https://github.com/dsv-rp/DDS/pull/172) [`8bb6dde`](https://github.com/dsv-rp/DDS/commit/8bb6ddef0db41b3c220bdd34f41dce95f6b15d89) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Avatar: Added a comment to the `disabled` property. (DDS-2105)
|
|
99
|
+
|
|
100
|
+
- [#164](https://github.com/dsv-rp/DDS/pull/164) [`4b81d6a`](https://github.com/dsv-rp/DDS/commit/4b81d6a6639dc5bc77496916f22ba4635b9e29fc) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Loading: remove aria-busy from loading component
|
|
101
|
+
|
|
102
|
+
- [#161](https://github.com/dsv-rp/DDS/pull/161) [`c4f05f8`](https://github.com/dsv-rp/DDS/commit/c4f05f8c2b4feb1fee67bdd7449e3e5429e1d10a) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Button: Add button-aria-haspopup and button-aria-expanded properties.
|
|
103
|
+
Icon Button: Add button-aria-haspopup and button-aria-expanded properties.
|
|
104
|
+
|
|
105
|
+
- [#192](https://github.com/dsv-rp/DDS/pull/192) [`511f1dc`](https://github.com/dsv-rp/DDS/commit/511f1dca49c14d2755da8fdf8f4bdcb1d8fb61e9) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Accordion: Improved the responsive behavior for long text content that doesn't contain spaces. (DDS-2257, DDS-2258)
|
|
106
|
+
Breadcrumb: Fixed an issue where the `target` property setting was not working. (DDS-2259)
|
|
107
|
+
Avatar, Button, Icon Button: Fix an issue specify `aria-haspopup` and `aria-expanded` not work in storybook. (DDS-2262)
|
|
108
|
+
Storybook: Fixed some accessibility warning error in storybook. (DDS-2224)
|
|
109
|
+
|
|
110
|
+
- [#173](https://github.com/dsv-rp/DDS/pull/173) [`2c9fd65`](https://github.com/dsv-rp/DDS/commit/2c9fd658938aa192e5fd39462dde765b393c3785) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Text Field: Added a comment to the `left-icon` and `right-icon` slot. (DDS-2106)
|
|
111
|
+
|
|
3
112
|
## 1.1.0
|
|
4
113
|
|
|
5
114
|
### Minor Changes
|
package/LICENSE
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const lit = require("lit");
|
|
4
4
|
const _DDSElement = class _DDSElement extends lit.LitElement {
|
|
5
5
|
};
|
|
6
|
-
_DDSElement.version = "1.
|
|
6
|
+
_DDSElement.version = "1.2.0";
|
|
7
7
|
let DDSElement = _DDSElement;
|
|
8
8
|
exports.DDSElement = DDSElement;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const decorators_js = require("lit/decorators.js");
|
|
4
|
+
const ddsElement = require("./dds-element.cjs");
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
7
|
+
var result = void 0;
|
|
8
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9
|
+
if (decorator = decorators[i])
|
|
10
|
+
result = decorator(target, key, result) || result;
|
|
11
|
+
if (result) __defProp(target, key, result);
|
|
12
|
+
return result;
|
|
13
|
+
};
|
|
14
|
+
const _DDSFormElement = class _DDSFormElement extends ddsElement.DDSElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
this.name = "";
|
|
18
|
+
this.value = "";
|
|
19
|
+
this.internals = this.attachInternals();
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns the form object associated with the element, or null if none exists.
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
get form() {
|
|
26
|
+
return this.internals ? this.internals.form : null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Set the element's name and value within the current form.
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
setFormValue(value, state) {
|
|
33
|
+
var _a;
|
|
34
|
+
(_a = this.internals) == null ? void 0 : _a.setFormValue(value, state);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A function that maps to the form control's `reportValidity()` function.
|
|
38
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
reportValidity() {
|
|
42
|
+
var _a;
|
|
43
|
+
return (_a = this.internals) == null ? void 0 : _a.reportValidity();
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A function that maps to the form control's `checkValidity()` function.
|
|
47
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
50
|
+
checkValidity() {
|
|
51
|
+
var _a;
|
|
52
|
+
return (_a = this.internals) == null ? void 0 : _a.checkValidity();
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
hostConnected() {
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
62
|
+
* @private
|
|
63
|
+
*/
|
|
64
|
+
hostDisconnected() {
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
68
|
+
* @private
|
|
69
|
+
*/
|
|
70
|
+
hostUpdated() {
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
_DDSFormElement.formAssociated = true;
|
|
74
|
+
let DDSFormElement = _DDSFormElement;
|
|
75
|
+
__decorateClass([
|
|
76
|
+
decorators_js.property({ type: String, reflect: true })
|
|
77
|
+
], DDSFormElement.prototype, "name");
|
|
78
|
+
__decorateClass([
|
|
79
|
+
decorators_js.property({ type: String, reflect: true })
|
|
80
|
+
], DDSFormElement.prototype, "value");
|
|
81
|
+
__decorateClass([
|
|
82
|
+
decorators_js.property({ type: String, reflect: true, attribute: "form" })
|
|
83
|
+
], DDSFormElement.prototype, "formAttr");
|
|
84
|
+
const _DDSFormSubmitElement = class _DDSFormSubmitElement extends ddsElement.DDSElement {
|
|
85
|
+
constructor() {
|
|
86
|
+
super();
|
|
87
|
+
this.internals = this.attachInternals();
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Returns the form object associated with the element, or null if none exists.
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
93
|
+
get form() {
|
|
94
|
+
return this.internals ? this.internals.form : null;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A function that maps to the form control's `reportValidity()` function.
|
|
98
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
requestSubmit() {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
(_b = (_a = this.internals) == null ? void 0 : _a.form) == null ? void 0 : _b.requestSubmit();
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* A function that maps to the form control's `checkValidity()` function.
|
|
107
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity
|
|
108
|
+
* @private
|
|
109
|
+
*/
|
|
110
|
+
reset() {
|
|
111
|
+
var _a, _b;
|
|
112
|
+
(_b = (_a = this.internals) == null ? void 0 : _a.form) == null ? void 0 : _b.reset();
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
116
|
+
* @private
|
|
117
|
+
*/
|
|
118
|
+
hostConnected() {
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
122
|
+
* @private
|
|
123
|
+
*/
|
|
124
|
+
hostDisconnected() {
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
|
+
hostUpdated() {
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
_DDSFormSubmitElement.formAssociated = true;
|
|
134
|
+
let DDSFormSubmitElement = _DDSFormSubmitElement;
|
|
135
|
+
__decorateClass([
|
|
136
|
+
decorators_js.property({ type: String, reflect: true, attribute: "form" })
|
|
137
|
+
], DDSFormSubmitElement.prototype, "formAttr");
|
|
138
|
+
exports.DDSFormElement = DDSFormElement;
|
|
139
|
+
exports.DDSFormSubmitElement = DDSFormSubmitElement;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { DDSElement } from "./dds-element.cjs";
|
|
2
|
+
type FormValueType = string | File | FormData | null;
|
|
3
|
+
export declare class DDSFormElement extends DDSElement {
|
|
4
|
+
static readonly formAssociated = true;
|
|
5
|
+
/**
|
|
6
|
+
* The form name, submitted as a name/value pair when submitting the form.
|
|
7
|
+
*/
|
|
8
|
+
name: string;
|
|
9
|
+
/**
|
|
10
|
+
* The form value, submitted as a name/value pair when submitting the form.
|
|
11
|
+
*/
|
|
12
|
+
value: string;
|
|
13
|
+
/**
|
|
14
|
+
* The form attribute specifies the form the form component belongs to.
|
|
15
|
+
* The value of this attribute must be equal to the id attribute of a <form> element in the same document.
|
|
16
|
+
*/
|
|
17
|
+
formAttr: string | undefined;
|
|
18
|
+
protected internals: ElementInternals | null | undefined;
|
|
19
|
+
constructor();
|
|
20
|
+
/**
|
|
21
|
+
* Returns the form object associated with the element, or null if none exists.
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
get form(): HTMLFormElement | null;
|
|
25
|
+
/**
|
|
26
|
+
* Set the element's name and value within the current form.
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
setFormValue(value: FormValueType, state?: FormValueType): void;
|
|
30
|
+
/**
|
|
31
|
+
* A function that maps to the form control's `reportValidity()` function.
|
|
32
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
reportValidity(): boolean | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* A function that maps to the form control's `checkValidity()` function.
|
|
38
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
checkValidity(): boolean | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
44
|
+
* @private
|
|
45
|
+
*/
|
|
46
|
+
hostConnected(): void;
|
|
47
|
+
/**
|
|
48
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
hostDisconnected(): void;
|
|
52
|
+
/**
|
|
53
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
hostUpdated(): void;
|
|
57
|
+
}
|
|
58
|
+
export declare class DDSFormSubmitElement extends DDSElement {
|
|
59
|
+
static readonly formAssociated = true;
|
|
60
|
+
/**
|
|
61
|
+
* The form attribute specifies the form the form component belongs to.
|
|
62
|
+
* The value of this attribute must be equal to the id attribute of a <form> element in the same document.
|
|
63
|
+
*/
|
|
64
|
+
formAttr: string | undefined;
|
|
65
|
+
protected internals: ElementInternals | null | undefined;
|
|
66
|
+
constructor();
|
|
67
|
+
/**
|
|
68
|
+
* Returns the form object associated with the element, or null if none exists.
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
get form(): HTMLFormElement | null;
|
|
72
|
+
/**
|
|
73
|
+
* A function that maps to the form control's `reportValidity()` function.
|
|
74
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity
|
|
75
|
+
* @private
|
|
76
|
+
*/
|
|
77
|
+
requestSubmit(): void;
|
|
78
|
+
/**
|
|
79
|
+
* A function that maps to the form control's `checkValidity()` function.
|
|
80
|
+
* Reference: https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity
|
|
81
|
+
* @private
|
|
82
|
+
*/
|
|
83
|
+
reset(): void;
|
|
84
|
+
/**
|
|
85
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
86
|
+
* @private
|
|
87
|
+
*/
|
|
88
|
+
hostConnected(): void;
|
|
89
|
+
/**
|
|
90
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
93
|
+
hostDisconnected(): void;
|
|
94
|
+
/**
|
|
95
|
+
* TODO Enhance these functions to bring our components closer to native form components.
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
hostUpdated(): void;
|
|
99
|
+
}
|
|
100
|
+
export {};
|
|
@@ -27,13 +27,16 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
27
27
|
"w-full",
|
|
28
28
|
"min-h-12",
|
|
29
29
|
"p-3",
|
|
30
|
+
"break-all",
|
|
31
|
+
"text-left",
|
|
30
32
|
"focus-visible:outline",
|
|
31
33
|
"focus-visible:outline-2",
|
|
32
34
|
"focus-visible:-outline-offset-2",
|
|
33
35
|
"focus-visible:outline-ddt-color-common-border-focus",
|
|
34
36
|
"after:size-6",
|
|
35
37
|
"after:transition-all",
|
|
36
|
-
"after:i-daikin-chevron-down"
|
|
38
|
+
"after:i-daikin-chevron-down",
|
|
39
|
+
"after:flex-none"
|
|
37
40
|
],
|
|
38
41
|
{
|
|
39
42
|
variants: {
|
|
@@ -100,7 +103,7 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends ddsElement.DDSEl
|
|
|
100
103
|
render() {
|
|
101
104
|
const open = !this.disabled && this.open;
|
|
102
105
|
return lit.html`<div
|
|
103
|
-
class="w-full text-ddt-color-common-text-primary font-daikinSerif
|
|
106
|
+
class="w-full text-ddt-color-common-text-primary font-daikinSerif"
|
|
104
107
|
>
|
|
105
108
|
<button
|
|
106
109
|
id="summary"
|
|
@@ -128,7 +131,7 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends ddsElement.DDSEl
|
|
|
128
131
|
>
|
|
129
132
|
<div class="overflow-hidden">
|
|
130
133
|
<div class="pt-2 px-3 pb-3">
|
|
131
|
-
<slot></slot>
|
|
134
|
+
<slot class="slotted:break-all"></slot>
|
|
132
135
|
</div>
|
|
133
136
|
</div>
|
|
134
137
|
</div>
|
|
@@ -37,14 +37,17 @@ export declare class DaikinAvatar extends LitElement {
|
|
|
37
37
|
alt: string | null;
|
|
38
38
|
/**
|
|
39
39
|
* Specify the avatar disabled state.
|
|
40
|
+
* Ignored when the `type` is `"icon"`.
|
|
40
41
|
*/
|
|
41
42
|
disabled: boolean;
|
|
42
43
|
/**
|
|
43
44
|
* The aria-haspopup of the avatar when `type="button"`.
|
|
45
|
+
* When used within a daikin-menu component, this property is automatically assigned the value `buttonAriaHaspopup="menu"`.
|
|
44
46
|
*/
|
|
45
47
|
avatarAriaHaspopup: "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | null;
|
|
46
48
|
/**
|
|
47
49
|
* The aria-expanded of avatar when `type="button"`.
|
|
50
|
+
* When used within a daikin-menu component, this property will be controlled by daikin-menu, so you don't need to specify it explicitly.
|
|
48
51
|
*/
|
|
49
52
|
avatarAriaExpanded: boolean | null;
|
|
50
53
|
private _focusableElement;
|
|
@@ -31,12 +31,14 @@ exports.DaikinBreadcrumbItem = class DaikinBreadcrumbItem extends ddsElement.DDS
|
|
|
31
31
|
const link = this.variant === "normal" ? lit.html`<daikin-link
|
|
32
32
|
class="text-sm"
|
|
33
33
|
href=${ifDefined_js.ifDefined(this.href ?? void 0)}
|
|
34
|
+
target=${ifDefined_js.ifDefined(this.target ?? void 0)}
|
|
34
35
|
?show-visited=${this.showVisited}
|
|
35
36
|
><slot></slot
|
|
36
37
|
></daikin-link>` : lit.html`<a
|
|
37
38
|
class="text-sm font-daikinSerif text-ddt-color-common-text-primary"
|
|
38
39
|
aria-disabled="true"
|
|
39
40
|
aria-current="true"
|
|
41
|
+
target=${ifDefined_js.ifDefined(this.target ?? void 0)}
|
|
40
42
|
role="link"
|
|
41
43
|
><slot></slot
|
|
42
44
|
></a>`;
|
|
@@ -4,9 +4,10 @@ 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
|
+
const ddsFormElement = require("../../base/dds-form-element.cjs");
|
|
10
11
|
const tailwind = require("../../tailwind.css.cjs");
|
|
11
12
|
var __defProp = Object.defineProperty;
|
|
12
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -27,7 +28,6 @@ const cvaButton = classVarianceAuthority.cva(
|
|
|
27
28
|
"font-daikinSerif",
|
|
28
29
|
"font-bold",
|
|
29
30
|
"rounded",
|
|
30
|
-
"px-3",
|
|
31
31
|
"tracking-wide",
|
|
32
32
|
"text-nowrap",
|
|
33
33
|
"leading-[130%]",
|
|
@@ -67,34 +67,43 @@ const cvaButton = classVarianceAuthority.cva(
|
|
|
67
67
|
ghost: ["text-[--color-primary]", "bg-[--color-secondary]"]
|
|
68
68
|
},
|
|
69
69
|
size: {
|
|
70
|
-
small: ["text-sm"],
|
|
71
|
-
medium: []
|
|
70
|
+
small: ["px-2", "text-sm"],
|
|
71
|
+
medium: ["px-3", "text-base"],
|
|
72
|
+
large: ["px-4", "text-xl"]
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
);
|
|
76
|
-
const cvaIcon = classVarianceAuthority.cva([], {
|
|
77
|
+
const cvaIcon = classVarianceAuthority.cva(["slotted:flex-none"], {
|
|
77
78
|
variants: {
|
|
78
79
|
size: {
|
|
79
80
|
small: ["icon-size-4"],
|
|
80
|
-
medium: ["icon-size-6"]
|
|
81
|
+
medium: ["icon-size-6"],
|
|
82
|
+
large: ["icon-size-6"]
|
|
81
83
|
}
|
|
82
84
|
}
|
|
83
85
|
});
|
|
84
|
-
exports.DaikinButton = class DaikinButton extends
|
|
86
|
+
exports.DaikinButton = class DaikinButton extends ddsFormElement.DDSFormSubmitElement {
|
|
85
87
|
constructor() {
|
|
86
88
|
super();
|
|
87
89
|
this.variant = "fill";
|
|
90
|
+
this.type = "button";
|
|
88
91
|
this.size = "medium";
|
|
89
92
|
this.color = "default";
|
|
90
93
|
this.disabled = false;
|
|
91
94
|
this.href = null;
|
|
92
|
-
this.type = "button";
|
|
93
95
|
this.buttonRole = null;
|
|
96
|
+
this.buttonAriaHaspopup = null;
|
|
97
|
+
this.buttonAriaExpanded = null;
|
|
94
98
|
this.addEventListener("click", (event) => {
|
|
95
99
|
if (this.disabled || this.type === "link" && this.href == null) {
|
|
96
100
|
event.stopImmediatePropagation();
|
|
97
101
|
}
|
|
102
|
+
if (this.type === "submit") {
|
|
103
|
+
this.requestSubmit();
|
|
104
|
+
} else if (this.type === "reset") {
|
|
105
|
+
this.reset();
|
|
106
|
+
}
|
|
98
107
|
});
|
|
99
108
|
}
|
|
100
109
|
render() {
|
|
@@ -128,13 +137,15 @@ exports.DaikinButton = class DaikinButton extends ddsElement.DDSElement {
|
|
|
128
137
|
?disabled=${this.disabled}
|
|
129
138
|
type=${this.type}
|
|
130
139
|
role=${ifDefined_js.ifDefined(this.buttonRole ?? void 0)}
|
|
140
|
+
aria-haspopup=${ifDefined_js.ifDefined(this.buttonAriaHaspopup ?? void 0)}
|
|
141
|
+
aria-expanded=${ifDefined_js.ifDefined(this.buttonAriaExpanded ?? void 0)}
|
|
131
142
|
>
|
|
132
143
|
<slot name="left-icon" class=${cvaIcon({ size: this.size })}>
|
|
133
|
-
<span class="block -ml-1"></span>
|
|
144
|
+
<span class="flex-none block -ml-1"></span>
|
|
134
145
|
</slot>
|
|
135
146
|
<span class="px-2"><slot></slot></span>
|
|
136
147
|
<slot name="right-icon" class=${cvaIcon({ size: this.size })}>
|
|
137
|
-
<span class="block -mr-1"></span>
|
|
148
|
+
<span class="flex-none block -mr-1"></span>
|
|
138
149
|
</slot>
|
|
139
150
|
</button>
|
|
140
151
|
`;
|
|
@@ -165,10 +176,18 @@ exports.DaikinButton.styles = lit.css`
|
|
|
165
176
|
min-width: 3.75em;
|
|
166
177
|
height: 3rem;
|
|
167
178
|
}
|
|
179
|
+
|
|
180
|
+
:host([size="large"]) {
|
|
181
|
+
min-width: 4.25em;
|
|
182
|
+
height: 4.5rem;
|
|
183
|
+
}
|
|
168
184
|
`;
|
|
169
185
|
__decorateClass([
|
|
170
186
|
decorators_js.property({ type: String, reflect: true })
|
|
171
187
|
], exports.DaikinButton.prototype, "variant", 2);
|
|
188
|
+
__decorateClass([
|
|
189
|
+
decorators_js.property({ type: String, reflect: true })
|
|
190
|
+
], exports.DaikinButton.prototype, "type", 2);
|
|
172
191
|
__decorateClass([
|
|
173
192
|
decorators_js.property({ type: String, reflect: true })
|
|
174
193
|
], exports.DaikinButton.prototype, "size", 2);
|
|
@@ -181,12 +200,15 @@ __decorateClass([
|
|
|
181
200
|
__decorateClass([
|
|
182
201
|
decorators_js.property({ type: String, reflect: true })
|
|
183
202
|
], exports.DaikinButton.prototype, "href", 2);
|
|
184
|
-
__decorateClass([
|
|
185
|
-
decorators_js.property({ type: String, reflect: true })
|
|
186
|
-
], exports.DaikinButton.prototype, "type", 2);
|
|
187
203
|
__decorateClass([
|
|
188
204
|
decorators_js.property({ type: String, reflect: true, attribute: "button-role" })
|
|
189
205
|
], exports.DaikinButton.prototype, "buttonRole", 2);
|
|
206
|
+
__decorateClass([
|
|
207
|
+
decorators_js.property({ type: String, reflect: true, attribute: "button-aria-haspopup" })
|
|
208
|
+
], exports.DaikinButton.prototype, "buttonAriaHaspopup", 2);
|
|
209
|
+
__decorateClass([
|
|
210
|
+
decorators_js.property({ type: Boolean, reflect: true, attribute: "button-aria-expanded" })
|
|
211
|
+
], exports.DaikinButton.prototype, "buttonAriaExpanded", 2);
|
|
190
212
|
__decorateClass([
|
|
191
213
|
decorators_js.query("a,button")
|
|
192
214
|
], exports.DaikinButton.prototype, "_focusableElement", 2);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DDSFormSubmitElement } from "../../base/dds-form-element.cjs";
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.cjs";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
4
4
|
declare const cvaButton: (props?: ({
|
|
5
5
|
color?: "default" | "danger" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
7
|
-
size?: "small" | "medium" | null | undefined;
|
|
7
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
declare const cvaIcon: (props?: ({
|
|
10
|
-
size?: "small" | "medium" | null | undefined;
|
|
10
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
12
|
type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
|
|
13
13
|
/**
|
|
@@ -32,16 +32,21 @@ type ButtonVariantProps = MergeVariantProps<typeof cvaButton | typeof cvaIcon>;
|
|
|
32
32
|
* </daikin-button>
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
export declare class DaikinButton extends
|
|
35
|
+
export declare class DaikinButton extends DDSFormSubmitElement {
|
|
36
36
|
static readonly styles: import('lit').CSSResult;
|
|
37
37
|
/**
|
|
38
38
|
* Variant of the button.
|
|
39
39
|
*/
|
|
40
40
|
variant: ButtonVariantProps["variant"];
|
|
41
|
+
/**
|
|
42
|
+
* Type of the button.
|
|
43
|
+
* If `"link"` is specified, the button will be rendered as an `<a>` element.
|
|
44
|
+
*/
|
|
45
|
+
type: "button" | "submit" | "reset" | "link";
|
|
41
46
|
/**
|
|
42
47
|
* Size of the button.
|
|
43
48
|
*/
|
|
44
|
-
size: "small" | "medium";
|
|
49
|
+
size: "small" | "medium" | "large";
|
|
45
50
|
/**
|
|
46
51
|
* Color of the button.
|
|
47
52
|
*/
|
|
@@ -56,15 +61,20 @@ export declare class DaikinButton extends DDSElement {
|
|
|
56
61
|
* If omitted with `type="link"`, the link will be treated as [a placeholder link](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element:~:text=If%20the%20a%20element%20has%20no%20href%20attribute) and rendered as disabled state.
|
|
57
62
|
*/
|
|
58
63
|
href: string | null;
|
|
59
|
-
/**
|
|
60
|
-
* Type of the button.
|
|
61
|
-
* If `"link"` is specified, the button will be rendered as an `<a>` element.
|
|
62
|
-
*/
|
|
63
|
-
type: "button" | "submit" | "reset" | "link";
|
|
64
64
|
/**
|
|
65
65
|
* Optional ARIA role of the button.
|
|
66
66
|
*/
|
|
67
67
|
buttonRole: ARIARole | null;
|
|
68
|
+
/**
|
|
69
|
+
* The aria-haspopup of the 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 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 _focusableElement;
|
|
69
79
|
constructor();
|
|
70
80
|
render(): import('lit-html').TemplateResult<1>;
|