@daikin-oss/design-system-web-components 1.6.0 → 2.0.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 +184 -0
- package/custom-elements.json +2639 -1328
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +25 -8
- package/dist/cjs/components/accordion-item/daikin-accordion-item.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +1 -1
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +9 -6
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +1 -0
- package/dist/cjs/components/calendar/daikin-calendar.cjs +73 -26
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +13 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +190 -52
- package/dist/cjs/components/checkbox/daikin-checkbox.d.cts +18 -0
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.cjs +7 -1
- package/dist/cjs/components/checkbox-group/daikin-checkbox-group.d.cts +5 -0
- package/dist/cjs/components/chip/daikin-chip.cjs +195 -93
- package/dist/cjs/components/chip/daikin-chip.d.cts +20 -0
- package/dist/cjs/components/combobox/daikin-combobox.cjs +111 -33
- package/dist/cjs/components/combobox/daikin-combobox.d.cts +10 -0
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +243 -65
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +37 -2
- package/dist/cjs/components/drawer/daikin-drawer.cjs +1 -1
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +164 -32
- package/dist/cjs/components/dropdown/daikin-dropdown.d.cts +13 -0
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +13 -6
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +2 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +2 -0
- package/dist/cjs/components/index.cjs +2 -2
- package/dist/cjs/components/input-group/daikin-input-group.cjs +88 -30
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +10 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +21 -10
- package/dist/cjs/components/list-item/daikin-list-item.d.cts +9 -0
- package/dist/cjs/components/logo/daikin-logo.cjs +1 -1
- package/dist/cjs/components/logo/daikin-logo.d.cts +2 -2
- package/dist/cjs/components/menu/daikin-menu.cjs +2 -2
- package/dist/cjs/components/modal-header/daikin-modal-header.cjs +10 -4
- package/dist/cjs/components/modal-header/daikin-modal-header.d.cts +1 -0
- package/dist/cjs/components/navigation/daikin-navigation.cjs +21 -0
- package/dist/cjs/components/navigation/daikin-navigation.d.cts +9 -0
- package/dist/cjs/components/navigation-item/daikin-navigation-item.cjs +18 -14
- package/dist/cjs/components/pagination/daikin-pagination.cjs +60 -19
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +11 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +27 -19
- package/dist/cjs/components/progress-bar/daikin-progress-bar.d.cts +1 -0
- package/dist/cjs/components/radio/daikin-radio.cjs +160 -35
- package/dist/cjs/components/radio/daikin-radio.d.cts +26 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +10 -1
- package/dist/cjs/components/radio-group/daikin-radio-group.d.cts +4 -0
- package/dist/cjs/components/select/daikin-select.cjs +128 -21
- package/dist/cjs/components/select/daikin-select.d.cts +11 -0
- package/dist/cjs/components/slider/daikin-slider.cjs +61 -16
- package/dist/cjs/components/slider/daikin-slider.d.cts +4 -0
- package/dist/cjs/components/status-message/daikin-status-message.cjs +1 -0
- package/dist/cjs/components/status-message/daikin-status-message.d.cts +2 -0
- package/dist/cjs/components/table/daikin-table.cjs +108 -16
- package/dist/cjs/components/table/daikin-table.d.cts +58 -1
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +3 -4
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +21 -15
- package/dist/cjs/components/tag/daikin-tag.cjs +99 -20
- package/dist/cjs/components/tag/daikin-tag.d.cts +14 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +22 -2
- package/dist/cjs/components/text-field/daikin-text-field.cjs +96 -50
- package/dist/cjs/components/text-field/daikin-text-field.d.cts +9 -0
- package/dist/cjs/components/text-field/number-utils.cjs +51 -19
- package/dist/cjs/components/text-field/number-utils.d.cts +7 -0
- package/dist/cjs/components/text-masked-field/daikin-text-masked-field.cjs +31 -7
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +325 -108
- package/dist/cjs/components/time-picker/daikin-time-picker.d.cts +57 -14
- package/dist/cjs/components/time-picker/index.cjs +2 -2
- package/dist/cjs/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs/components/toggle/daikin-toggle.cjs +110 -35
- package/dist/cjs/components/toggle/daikin-toggle.d.cts +5 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +1 -1
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +24 -8
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +1 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +7 -1
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +1 -0
- package/dist/cjs/components/vertical-navigation/daikin-vertical-navigation.cjs +1 -1
- package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +248 -38
- package/dist/cjs/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +17 -7
- package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +103 -33
- package/dist/cjs/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +6 -1
- package/dist/cjs/controllers/custom-readonly.cjs +59 -0
- package/dist/cjs/controllers/custom-readonly.d.cts +28 -0
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +6 -2
- package/dist/cjs/utils/calendar-common.d.cts +1 -1
- package/dist/cjs/utils/extract-half-width-digits.cjs +11 -0
- package/dist/cjs/utils/extract-half-width-digits.d.cts +15 -0
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +25 -8
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +1 -1
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +9 -6
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +1 -0
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +73 -26
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +13 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +190 -52
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.d.cts +18 -0
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.cjs +7 -1
- package/dist/cjs-dev/components/checkbox-group/daikin-checkbox-group.d.cts +5 -0
- package/dist/cjs-dev/components/chip/daikin-chip.cjs +195 -93
- package/dist/cjs-dev/components/chip/daikin-chip.d.cts +20 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +111 -33
- package/dist/cjs-dev/components/combobox/daikin-combobox.d.cts +10 -0
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +243 -65
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +37 -2
- package/dist/cjs-dev/components/drawer/daikin-drawer.cjs +1 -1
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +164 -32
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.d.cts +13 -0
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +13 -6
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +2 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +2 -0
- package/dist/cjs-dev/components/index.cjs +2 -2
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +88 -30
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +10 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +21 -10
- package/dist/cjs-dev/components/list-item/daikin-list-item.d.cts +9 -0
- package/dist/cjs-dev/components/logo/daikin-logo.cjs +1 -1
- package/dist/cjs-dev/components/logo/daikin-logo.d.cts +2 -2
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +2 -2
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.cjs +10 -4
- package/dist/cjs-dev/components/modal-header/daikin-modal-header.d.cts +1 -0
- package/dist/cjs-dev/components/navigation/daikin-navigation.cjs +21 -0
- package/dist/cjs-dev/components/navigation/daikin-navigation.d.cts +9 -0
- package/dist/cjs-dev/components/navigation-item/daikin-navigation-item.cjs +18 -14
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +60 -19
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +11 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +27 -19
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.d.cts +1 -0
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +160 -35
- package/dist/cjs-dev/components/radio/daikin-radio.d.cts +26 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +10 -1
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.d.cts +4 -0
- package/dist/cjs-dev/components/select/daikin-select.cjs +128 -21
- package/dist/cjs-dev/components/select/daikin-select.d.cts +11 -0
- package/dist/cjs-dev/components/slider/daikin-slider.cjs +61 -16
- package/dist/cjs-dev/components/slider/daikin-slider.d.cts +4 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +1 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +2 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +108 -16
- package/dist/cjs-dev/components/table/daikin-table.d.cts +58 -1
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +3 -4
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +21 -15
- package/dist/cjs-dev/components/tag/daikin-tag.cjs +99 -20
- package/dist/cjs-dev/components/tag/daikin-tag.d.cts +14 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +22 -2
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +96 -50
- package/dist/cjs-dev/components/text-field/daikin-text-field.d.cts +9 -0
- package/dist/cjs-dev/components/text-field/number-utils.cjs +51 -19
- package/dist/cjs-dev/components/text-field/number-utils.d.cts +7 -0
- package/dist/cjs-dev/components/text-masked-field/daikin-text-masked-field.cjs +31 -7
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +325 -108
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.d.cts +57 -14
- package/dist/cjs-dev/components/time-picker/index.cjs +2 -2
- package/dist/cjs-dev/components/toast-notification-manager/daikin-toast-notification-manager.cjs +1 -1
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +110 -35
- package/dist/cjs-dev/components/toggle/daikin-toggle.d.cts +5 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +1 -1
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +24 -8
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +1 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +7 -1
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +1 -0
- package/dist/cjs-dev/components/vertical-navigation/daikin-vertical-navigation.cjs +1 -1
- package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.cjs +248 -38
- package/dist/cjs-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.cts +17 -7
- package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.cjs +103 -33
- package/dist/cjs-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.cts +6 -1
- package/dist/cjs-dev/controllers/custom-readonly.cjs +59 -0
- package/dist/cjs-dev/controllers/custom-readonly.d.cts +28 -0
- package/dist/cjs-dev/index.cjs +2 -2
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +6 -2
- package/dist/cjs-dev/utils/calendar-common.d.cts +1 -1
- package/dist/cjs-dev/utils/extract-half-width-digits.cjs +11 -0
- package/dist/cjs-dev/utils/extract-half-width-digits.d.cts +15 -0
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +1 -0
- package/dist/es/components/accordion-item/daikin-accordion-item.js +25 -8
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +1 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +1 -0
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +9 -6
- package/dist/es/components/calendar/daikin-calendar.d.ts +13 -0
- package/dist/es/components/calendar/daikin-calendar.js +73 -26
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +18 -0
- package/dist/es/components/checkbox/daikin-checkbox.js +190 -52
- package/dist/es/components/checkbox-group/daikin-checkbox-group.d.ts +5 -0
- package/dist/es/components/checkbox-group/daikin-checkbox-group.js +7 -1
- package/dist/es/components/chip/daikin-chip.d.ts +20 -0
- package/dist/es/components/chip/daikin-chip.js +195 -93
- package/dist/es/components/combobox/daikin-combobox.d.ts +10 -0
- package/dist/es/components/combobox/daikin-combobox.js +111 -33
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +37 -2
- package/dist/es/components/date-picker/daikin-date-picker.js +243 -65
- package/dist/es/components/drawer/daikin-drawer.js +1 -1
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +13 -0
- package/dist/es/components/dropdown/daikin-dropdown.js +164 -32
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +13 -6
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +2 -0
- package/dist/es/components/icon-button/daikin-icon-button.js +2 -0
- package/dist/es/components/index.js +4 -4
- package/dist/es/components/input-group/daikin-input-group.d.ts +10 -0
- package/dist/es/components/input-group/daikin-input-group.js +89 -31
- package/dist/es/components/list-item/daikin-list-item.d.ts +9 -0
- package/dist/es/components/list-item/daikin-list-item.js +21 -10
- package/dist/es/components/logo/daikin-logo.d.ts +2 -2
- package/dist/es/components/logo/daikin-logo.js +1 -1
- package/dist/es/components/menu/daikin-menu.js +2 -2
- package/dist/es/components/modal-header/daikin-modal-header.d.ts +1 -0
- package/dist/es/components/modal-header/daikin-modal-header.js +10 -4
- package/dist/es/components/navigation/daikin-navigation.d.ts +9 -0
- package/dist/es/components/navigation/daikin-navigation.js +22 -1
- package/dist/es/components/navigation-item/daikin-navigation-item.js +18 -14
- package/dist/es/components/pagination/daikin-pagination.d.ts +11 -0
- package/dist/es/components/pagination/daikin-pagination.js +61 -20
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +1 -0
- package/dist/es/components/progress-bar/daikin-progress-bar.js +27 -19
- package/dist/es/components/radio/daikin-radio.d.ts +26 -0
- package/dist/es/components/radio/daikin-radio.js +160 -35
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +4 -0
- package/dist/es/components/radio-group/daikin-radio-group.js +10 -1
- package/dist/es/components/select/daikin-select.d.ts +11 -0
- package/dist/es/components/select/daikin-select.js +128 -21
- package/dist/es/components/slider/daikin-slider.d.ts +4 -0
- package/dist/es/components/slider/daikin-slider.js +61 -16
- package/dist/es/components/status-message/daikin-status-message.d.ts +2 -0
- package/dist/es/components/status-message/daikin-status-message.js +1 -0
- package/dist/es/components/table/daikin-table.d.ts +58 -1
- package/dist/es/components/table/daikin-table.js +109 -17
- package/dist/es/components/table-cell/daikin-table-cell.js +3 -4
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +21 -15
- package/dist/es/components/tag/daikin-tag.d.ts +14 -0
- package/dist/es/components/tag/daikin-tag.js +100 -21
- package/dist/es/components/text-area/daikin-text-area.js +22 -2
- package/dist/es/components/text-field/daikin-text-field.d.ts +9 -0
- package/dist/es/components/text-field/daikin-text-field.js +97 -51
- package/dist/es/components/text-field/number-utils.d.ts +7 -0
- package/dist/es/components/text-field/number-utils.js +51 -19
- package/dist/es/components/text-masked-field/daikin-text-masked-field.js +31 -7
- package/dist/es/components/time-picker/daikin-time-picker.d.ts +57 -14
- package/dist/es/components/time-picker/daikin-time-picker.js +327 -110
- package/dist/es/components/time-picker/index.js +4 -4
- package/dist/es/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -1
- package/dist/es/components/toggle/daikin-toggle.d.ts +5 -0
- package/dist/es/components/toggle/daikin-toggle.js +110 -35
- package/dist/es/components/tooltip/daikin-tooltip.js +1 -1
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +1 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +24 -8
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +1 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +7 -1
- package/dist/es/components/vertical-navigation/daikin-vertical-navigation.js +1 -1
- package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +17 -7
- package/dist/es/components/vertical-navigation-item/daikin-vertical-navigation-item.js +248 -38
- package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +6 -1
- package/dist/es/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +104 -34
- package/dist/es/controllers/custom-readonly.d.ts +28 -0
- package/dist/es/controllers/custom-readonly.js +59 -0
- package/dist/es/index.js +4 -4
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +1 -1
- package/dist/es/utils/calendar-common.js +6 -2
- package/dist/es/utils/extract-half-width-digits.d.ts +15 -0
- package/dist/es/utils/extract-half-width-digits.js +11 -0
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +1 -0
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +25 -8
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +1 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +1 -0
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +9 -6
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +13 -0
- package/dist/es-dev/components/calendar/daikin-calendar.js +73 -26
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +18 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +190 -52
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.d.ts +5 -0
- package/dist/es-dev/components/checkbox-group/daikin-checkbox-group.js +7 -1
- package/dist/es-dev/components/chip/daikin-chip.d.ts +20 -0
- package/dist/es-dev/components/chip/daikin-chip.js +195 -93
- package/dist/es-dev/components/combobox/daikin-combobox.d.ts +10 -0
- package/dist/es-dev/components/combobox/daikin-combobox.js +111 -33
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +37 -2
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +243 -65
- package/dist/es-dev/components/drawer/daikin-drawer.js +1 -1
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +13 -0
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +164 -32
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +13 -6
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +2 -0
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +2 -0
- package/dist/es-dev/components/index.js +4 -4
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +10 -0
- package/dist/es-dev/components/input-group/daikin-input-group.js +89 -31
- package/dist/es-dev/components/list-item/daikin-list-item.d.ts +9 -0
- package/dist/es-dev/components/list-item/daikin-list-item.js +21 -10
- package/dist/es-dev/components/logo/daikin-logo.d.ts +2 -2
- package/dist/es-dev/components/logo/daikin-logo.js +1 -1
- package/dist/es-dev/components/menu/daikin-menu.js +2 -2
- package/dist/es-dev/components/modal-header/daikin-modal-header.d.ts +1 -0
- package/dist/es-dev/components/modal-header/daikin-modal-header.js +10 -4
- package/dist/es-dev/components/navigation/daikin-navigation.d.ts +9 -0
- package/dist/es-dev/components/navigation/daikin-navigation.js +22 -1
- package/dist/es-dev/components/navigation-item/daikin-navigation-item.js +18 -14
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +11 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +61 -20
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +1 -0
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +27 -19
- package/dist/es-dev/components/radio/daikin-radio.d.ts +26 -0
- package/dist/es-dev/components/radio/daikin-radio.js +160 -35
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +4 -0
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +10 -1
- package/dist/es-dev/components/select/daikin-select.d.ts +11 -0
- package/dist/es-dev/components/select/daikin-select.js +128 -21
- package/dist/es-dev/components/slider/daikin-slider.d.ts +4 -0
- package/dist/es-dev/components/slider/daikin-slider.js +61 -16
- package/dist/es-dev/components/status-message/daikin-status-message.d.ts +2 -0
- package/dist/es-dev/components/status-message/daikin-status-message.js +1 -0
- package/dist/es-dev/components/table/daikin-table.d.ts +58 -1
- package/dist/es-dev/components/table/daikin-table.js +109 -17
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +3 -4
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +21 -15
- package/dist/es-dev/components/tag/daikin-tag.d.ts +14 -0
- package/dist/es-dev/components/tag/daikin-tag.js +100 -21
- package/dist/es-dev/components/text-area/daikin-text-area.js +22 -2
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +9 -0
- package/dist/es-dev/components/text-field/daikin-text-field.js +97 -51
- package/dist/es-dev/components/text-field/number-utils.d.ts +7 -0
- package/dist/es-dev/components/text-field/number-utils.js +51 -19
- package/dist/es-dev/components/text-masked-field/daikin-text-masked-field.js +31 -7
- package/dist/es-dev/components/time-picker/daikin-time-picker.d.ts +57 -14
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +327 -110
- package/dist/es-dev/components/time-picker/index.js +4 -4
- package/dist/es-dev/components/toast-notification-manager/daikin-toast-notification-manager.js +1 -1
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +5 -0
- package/dist/es-dev/components/toggle/daikin-toggle.js +110 -35
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +1 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +1 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +24 -8
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +1 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +7 -1
- package/dist/es-dev/components/vertical-navigation/daikin-vertical-navigation.js +1 -1
- package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.d.ts +17 -7
- package/dist/es-dev/components/vertical-navigation-item/daikin-vertical-navigation-item.js +248 -38
- package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.d.ts +6 -1
- package/dist/es-dev/components/vertical-navigation-menu-item/daikin-vertical-navigation-menu-item.js +104 -34
- package/dist/es-dev/controllers/custom-readonly.d.ts +28 -0
- package/dist/es-dev/controllers/custom-readonly.js +59 -0
- package/dist/es-dev/index.js +4 -4
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +1 -1
- package/dist/es-dev/utils/calendar-common.js +6 -2
- package/dist/es-dev/utils/extract-half-width-digits.d.ts +15 -0
- package/dist/es-dev/utils/extract-half-width-digits.js +11 -0
- package/icons/logo-negative.svg +16 -9
- package/icons/logo-positive.svg +16 -9
- package/package.json +6 -5
|
@@ -3,7 +3,7 @@ import { unsafeCSS, css, nothing, html } from "lit";
|
|
|
3
3
|
import { queryAssignedElements, state } from "lit/decorators.js";
|
|
4
4
|
import { DDSElement } from "../../base/dds-element.js";
|
|
5
5
|
import "../../base/dds-form-element.js";
|
|
6
|
-
import { property } from "../../base/dds-property.js";
|
|
6
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
7
7
|
import { ddsElement } from "../../base/decorators.js";
|
|
8
8
|
import "../../base/define.js";
|
|
9
9
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -18,16 +18,51 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
18
|
if (kind && result) __defProp(target, key, result);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
const cvaLayout = cva(
|
|
22
|
+
["flex", "w-full", "text-ddt-color-common-text-primary"],
|
|
23
|
+
{
|
|
24
|
+
variants: {
|
|
25
|
+
orientation: {
|
|
26
|
+
vertical: ["flex-col", "justify-center", "gap-(--dds-gap-20)"],
|
|
27
|
+
horizontal: ["flex-row", "gap-6"]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
const cvaContentArea = cva(
|
|
33
|
+
["flex", "flex-col", "gap-(--dds-gap-20)", "natural-break"],
|
|
34
|
+
{
|
|
35
|
+
variants: {
|
|
36
|
+
orientation: {
|
|
37
|
+
vertical: [],
|
|
38
|
+
horizontal: ["w-50", "shrink-0"]
|
|
39
|
+
}
|
|
26
40
|
}
|
|
27
41
|
}
|
|
28
|
-
|
|
42
|
+
);
|
|
43
|
+
const cvaLabel = cva(
|
|
44
|
+
[
|
|
45
|
+
"flex",
|
|
46
|
+
"items-center",
|
|
47
|
+
"font-bold",
|
|
48
|
+
"text-(length:--dds-font-size-label-text)"
|
|
49
|
+
],
|
|
50
|
+
{
|
|
51
|
+
variants: {
|
|
52
|
+
disabled: {
|
|
53
|
+
false: [],
|
|
54
|
+
true: ["text-ddt-color-common-disabled"]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
);
|
|
29
59
|
const cvaHelper = cva(
|
|
30
|
-
[
|
|
60
|
+
[
|
|
61
|
+
"flex",
|
|
62
|
+
"gap-1",
|
|
63
|
+
"items-center",
|
|
64
|
+
"text-(length:--dds-font-size-helper-text)"
|
|
65
|
+
],
|
|
31
66
|
{
|
|
32
67
|
variants: {
|
|
33
68
|
type: {
|
|
@@ -53,7 +88,7 @@ const cvaHelper = cva(
|
|
|
53
88
|
}
|
|
54
89
|
);
|
|
55
90
|
const cvaCounter = cva(
|
|
56
|
-
["text-(length:--dds-font-size-
|
|
91
|
+
["text-(length:--dds-font-size-helper-text)", "font-bold", "ml-auto"],
|
|
57
92
|
{
|
|
58
93
|
variants: {
|
|
59
94
|
variant: {
|
|
@@ -72,6 +107,7 @@ let DaikinInputGroup = class extends DDSElement {
|
|
|
72
107
|
this.required = null;
|
|
73
108
|
this.error = null;
|
|
74
109
|
this.disabled = false;
|
|
110
|
+
this.readonly = false;
|
|
75
111
|
this.textareaMaxCount = null;
|
|
76
112
|
this.textareaLimitExceedError = null;
|
|
77
113
|
this._textareaCount = null;
|
|
@@ -120,6 +156,7 @@ let DaikinInputGroup = class extends DDSElement {
|
|
|
120
156
|
case "error":
|
|
121
157
|
case "textareaLimitExceedError":
|
|
122
158
|
return html`<daikin-status-message
|
|
159
|
+
class="part-status-message:text-(length:--dds-font-size-helper-text)"
|
|
123
160
|
status="negative"
|
|
124
161
|
status-message-role="alert"
|
|
125
162
|
size="small"
|
|
@@ -135,30 +172,37 @@ let DaikinInputGroup = class extends DDSElement {
|
|
|
135
172
|
}
|
|
136
173
|
};
|
|
137
174
|
return html`<fieldset class="contents" ?disabled=${this.disabled}>
|
|
138
|
-
<label
|
|
139
|
-
class
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
175
|
+
<label class=${cvaLayout({ orientation: this.orientation })}>
|
|
176
|
+
<div class=${cvaContentArea({ orientation: this.orientation })}>
|
|
177
|
+
<div class="flex items-center flex-wrap gap-(--dds-gap-10) font-bold">
|
|
178
|
+
${this.label ? html`<span class=${cvaLabel({ disabled: this.disabled })}>
|
|
179
|
+
${this.label}
|
|
180
|
+
</span>` : nothing}
|
|
181
|
+
${this.required && !this.disabled ? html`<span
|
|
182
|
+
class="text-ddt-color-common-danger-default text-(length:--dds-font-size-300)"
|
|
183
|
+
>
|
|
184
|
+
${this.required}
|
|
185
|
+
</span>` : nothing}
|
|
186
|
+
</div>
|
|
187
|
+
${formatHelperText(helperTextVariant, helperText)}
|
|
150
188
|
</div>
|
|
151
|
-
${
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
189
|
+
${this.textareaMaxCount != null ? html`<div class="flex flex-col gap-2 w-full min-w-0">
|
|
190
|
+
<slot
|
|
191
|
+
@slotchange=${this._handleSlotChange}
|
|
192
|
+
@input=${this._handleInput}
|
|
193
|
+
></slot>
|
|
194
|
+
${this._textareaCount != null ? html`<div class="flex">
|
|
195
|
+
<span
|
|
196
|
+
class=${cvaCounter({
|
|
158
197
|
variant: this.disabled ? "disabled" : this.textareaLimitExceeded ? "error" : "normal"
|
|
159
198
|
})}
|
|
160
|
-
|
|
161
|
-
|
|
199
|
+
>${this._textareaCount}/${this.textareaMaxCount}</span
|
|
200
|
+
>
|
|
201
|
+
</div>` : nothing}
|
|
202
|
+
</div>` : html`<slot
|
|
203
|
+
@slotchange=${this._handleSlotChange}
|
|
204
|
+
@input=${this._handleInput}
|
|
205
|
+
></slot>`}
|
|
162
206
|
</label>
|
|
163
207
|
</fieldset>`;
|
|
164
208
|
}
|
|
@@ -174,6 +218,17 @@ DaikinInputGroup.styles = css`
|
|
|
174
218
|
width: 100%;
|
|
175
219
|
}
|
|
176
220
|
`;
|
|
221
|
+
__decorateClass([
|
|
222
|
+
property({
|
|
223
|
+
type: String,
|
|
224
|
+
reflect: true,
|
|
225
|
+
fallbackValue: "vertical",
|
|
226
|
+
isAllowedValue: oneOf([
|
|
227
|
+
"vertical",
|
|
228
|
+
"horizontal"
|
|
229
|
+
])
|
|
230
|
+
})
|
|
231
|
+
], DaikinInputGroup.prototype, "orientation", 2);
|
|
177
232
|
__decorateClass([
|
|
178
233
|
property({ type: String, reflect: true })
|
|
179
234
|
], DaikinInputGroup.prototype, "label", 2);
|
|
@@ -189,6 +244,9 @@ __decorateClass([
|
|
|
189
244
|
__decorateClass([
|
|
190
245
|
property({ type: Boolean, reflect: true })
|
|
191
246
|
], DaikinInputGroup.prototype, "disabled", 2);
|
|
247
|
+
__decorateClass([
|
|
248
|
+
property({ type: Boolean, reflect: true })
|
|
249
|
+
], DaikinInputGroup.prototype, "readonly", 2);
|
|
192
250
|
__decorateClass([
|
|
193
251
|
property({ type: Number, reflect: true, attribute: "textarea-max-count" })
|
|
194
252
|
], DaikinInputGroup.prototype, "textareaMaxCount", 2);
|
|
@@ -204,7 +262,7 @@ __decorateClass([
|
|
|
204
262
|
], DaikinInputGroup.prototype, "_textareas", 2);
|
|
205
263
|
__decorateClass([
|
|
206
264
|
queryAssignedElements({
|
|
207
|
-
selector: "daikin-checkbox-group,daikin-combobox,daikin-date-picker,daikin-dropdown,daikin-radio-group,daikin-select,daikin-text-area,daikin-text-field,daikin-time-picker"
|
|
265
|
+
selector: "daikin-checkbox-group,daikin-combobox,daikin-date-picker,daikin-dropdown,daikin-radio-group,daikin-select,daikin-text-area,daikin-text-field,daikin-time-picker,daikin-text-masked-field"
|
|
208
266
|
})
|
|
209
267
|
], DaikinInputGroup.prototype, "_controls", 2);
|
|
210
268
|
__decorateClass([
|
|
@@ -29,6 +29,15 @@ import { DDSElement, DDSNavigable, NavigationTarget } from "../../base/index.js"
|
|
|
29
29
|
*
|
|
30
30
|
* ```html
|
|
31
31
|
* <daikin-list-item>List item label</daikin-list-item>
|
|
32
|
+
* <!-- With description -->
|
|
33
|
+
* <daikin-list-item>
|
|
34
|
+
* <div class="flex flex-col gap-0.5">
|
|
35
|
+
* <span>List item label</span>
|
|
36
|
+
* <span class="text-xs text-(--dds-color-common-text-secondary)">
|
|
37
|
+
* Description
|
|
38
|
+
* </span>
|
|
39
|
+
* </div>
|
|
40
|
+
* </daikin-list-item>
|
|
32
41
|
* ```
|
|
33
42
|
*/
|
|
34
43
|
export declare class DaikinListItem extends DDSElement implements DDSNavigable {
|
|
@@ -42,27 +42,38 @@ const INNER_CN = cva([
|
|
|
42
42
|
// For text
|
|
43
43
|
"group-hover:[&:not(a,button)]:before:bg-ddt-color-common-surface-hover"
|
|
44
44
|
])();
|
|
45
|
-
const cvaContent = cva(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
const cvaContent = cva(
|
|
46
|
+
[
|
|
47
|
+
"block",
|
|
48
|
+
"pt-(--dds-padding-05)",
|
|
49
|
+
"pl-(--dds-space-100)",
|
|
50
|
+
"pr-(--dds-space-300)",
|
|
51
|
+
"pb-px",
|
|
52
|
+
"text-left"
|
|
53
|
+
],
|
|
54
|
+
{
|
|
55
|
+
variants: {
|
|
56
|
+
disabled: {
|
|
57
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
58
|
+
true: ["text-ddt-color-common-disabled"]
|
|
59
|
+
}
|
|
50
60
|
}
|
|
51
61
|
}
|
|
52
|
-
|
|
62
|
+
);
|
|
53
63
|
const WRAPPER = cva([
|
|
54
64
|
"group",
|
|
55
65
|
"flex",
|
|
56
66
|
"justify-between",
|
|
57
67
|
"items-start",
|
|
68
|
+
"p-(--dds-padding-30)",
|
|
58
69
|
"w-full",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
70
|
+
"p-(--dds-padding-30)",
|
|
71
|
+
"text-(length:--dds-font-size-label-text)",
|
|
61
72
|
"text-left",
|
|
62
73
|
"relative",
|
|
63
74
|
"natural-break"
|
|
64
75
|
])();
|
|
65
|
-
const cvaIcon = cva(["icon-size-
|
|
76
|
+
const cvaIcon = cva(["icon-size-token", "slotted:flex-none"], {
|
|
66
77
|
variants: {
|
|
67
78
|
position: {
|
|
68
79
|
left: [],
|
|
@@ -116,7 +127,7 @@ let DaikinListItem = class extends DDSElement {
|
|
|
116
127
|
}
|
|
117
128
|
render() {
|
|
118
129
|
const disabled = this._disabled;
|
|
119
|
-
const content = html`<span class="flex items-start w-full relative">
|
|
130
|
+
const content = html`<span class="flex items-start w-full relative gap-1">
|
|
120
131
|
<slot
|
|
121
132
|
name="left-icon"
|
|
122
133
|
class=${cvaIcon({ disabled: this.disabled, position: "left" })}
|
|
@@ -37,8 +37,8 @@ export declare class DaikinLogo extends DDSElement implements DDSNavigable {
|
|
|
37
37
|
*/
|
|
38
38
|
logoAriaLabel: string | null;
|
|
39
39
|
/**
|
|
40
|
-
* Specify the
|
|
41
|
-
* Notice:
|
|
40
|
+
* Specify the logo mode.
|
|
41
|
+
* Notice: "negative" mode can only be used in dark mode.
|
|
42
42
|
*
|
|
43
43
|
* @default "positive"
|
|
44
44
|
*/
|
|
@@ -32,7 +32,7 @@ const cvaMenu = cva([
|
|
|
32
32
|
"left-(--floating-x,0)",
|
|
33
33
|
"top-(--floating-y,0)",
|
|
34
34
|
"w-max",
|
|
35
|
-
"py-
|
|
35
|
+
"py-(--dds-padding-20)",
|
|
36
36
|
"border",
|
|
37
37
|
"rounded-lg",
|
|
38
38
|
"absolute",
|
|
@@ -246,7 +246,7 @@ let DaikinMenu = class extends DDSElement {
|
|
|
246
246
|
id="menu"
|
|
247
247
|
part="menu"
|
|
248
248
|
class=${cvaMenu()}
|
|
249
|
-
popover=${this.popoverValue}
|
|
249
|
+
.popover=${this.popoverValue}
|
|
250
250
|
@click=${this._handleClick}
|
|
251
251
|
@beforetoggle=${this._handleBeforeToggle}
|
|
252
252
|
@toggle=${this._handleToggle}
|
|
@@ -6,6 +6,7 @@ import { DDSElement } from "../../base/index.js";
|
|
|
6
6
|
* - `daikin-modal` > `daikin-modal-header`
|
|
7
7
|
*
|
|
8
8
|
* @slot description - An optional slot for description.
|
|
9
|
+
* @slot left-icon - An optional slot for an icon to be placed to the left of the title. Place a `daikin-icon` element or something similar.
|
|
9
10
|
* @slot - A slot for modal title.
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
@@ -50,10 +50,16 @@ let DaikinModalHeader = class extends DDSElement {
|
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return html`<div class="flex w-full gap-2">
|
|
54
|
-
<div class="flex
|
|
55
|
-
<slot
|
|
56
|
-
|
|
53
|
+
return html`<div class="flex w-full gap-2 justify-between">
|
|
54
|
+
<div class="flex flex-row gap-1 pt-0.5">
|
|
55
|
+
<slot
|
|
56
|
+
name="left-icon"
|
|
57
|
+
class="flex-none icon-size-6 text-ddt-color-common-text-primary"
|
|
58
|
+
></slot>
|
|
59
|
+
<div class="flex-1 flex flex-col gap-2 natural-break">
|
|
60
|
+
<slot class=${cvaTitle}></slot>
|
|
61
|
+
<slot name="description" class=${cvaDescription}></slot>
|
|
62
|
+
</div>
|
|
57
63
|
</div>
|
|
58
64
|
${this.withCloseButton ? html`<div class="flex-none">
|
|
59
65
|
<daikin-icon-button
|
|
@@ -43,6 +43,15 @@ import { DDSElement } from "../../base/index.js";
|
|
|
43
43
|
*/
|
|
44
44
|
export declare class DaikinNavigation extends DDSElement {
|
|
45
45
|
static readonly styles: import('lit').CSSResult;
|
|
46
|
+
/**
|
|
47
|
+
* The horizontal padding of all navigation items in the navigation.
|
|
48
|
+
* - `wide`: 2rem;
|
|
49
|
+
* - `narrow`: 1rem;
|
|
50
|
+
* - `medium`: 1.5rem;
|
|
51
|
+
*
|
|
52
|
+
* @default "wide"
|
|
53
|
+
*/
|
|
54
|
+
horizontalPadding?: "wide" | "narrow" | "medium";
|
|
46
55
|
/**
|
|
47
56
|
* The aria-label of the navigation.
|
|
48
57
|
*/
|
|
@@ -2,7 +2,7 @@ import { unsafeCSS, css, html } from "lit";
|
|
|
2
2
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
3
3
|
import { DDSElement } from "../../base/dds-element.js";
|
|
4
4
|
import "../../base/dds-form-element.js";
|
|
5
|
-
import { property } from "../../base/dds-property.js";
|
|
5
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
6
6
|
import { ddsElement } from "../../base/decorators.js";
|
|
7
7
|
import "../../base/define.js";
|
|
8
8
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -36,8 +36,29 @@ DaikinNavigation.styles = css`
|
|
|
36
36
|
display: flex;
|
|
37
37
|
min-width: 100%;
|
|
38
38
|
width: max-content;
|
|
39
|
+
|
|
40
|
+
--ddc-navigation-horizontal-padding: 2rem;
|
|
41
|
+
}
|
|
42
|
+
:host([horizontal-padding="medium"]) {
|
|
43
|
+
--ddc-navigation-horizontal-padding: 1.5rem;
|
|
44
|
+
}
|
|
45
|
+
:host([horizontal-padding="narrow"]) {
|
|
46
|
+
--ddc-navigation-horizontal-padding: 1rem;
|
|
39
47
|
}
|
|
40
48
|
`;
|
|
49
|
+
__decorateClass([
|
|
50
|
+
property({
|
|
51
|
+
type: String,
|
|
52
|
+
reflect: true,
|
|
53
|
+
fallbackValue: "wide",
|
|
54
|
+
isAllowedValue: oneOf([
|
|
55
|
+
"wide",
|
|
56
|
+
"narrow",
|
|
57
|
+
"medium"
|
|
58
|
+
]),
|
|
59
|
+
attribute: "horizontal-padding"
|
|
60
|
+
})
|
|
61
|
+
], DaikinNavigation.prototype, "horizontalPadding", 2);
|
|
41
62
|
__decorateClass([
|
|
42
63
|
property({ type: String, reflect: true, attribute: "navigation-aria-label" })
|
|
43
64
|
], DaikinNavigation.prototype, "navigationAriaLabel", 2);
|
|
@@ -23,13 +23,11 @@ const cvaBaseClasses = [
|
|
|
23
23
|
"relative",
|
|
24
24
|
"h-full",
|
|
25
25
|
"w-full",
|
|
26
|
-
"gap-1",
|
|
27
26
|
"justify-center",
|
|
28
27
|
"items-center",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"pb-3",
|
|
28
|
+
"px-(--ddc-navigation-horizontal-padding,2rem)",
|
|
29
|
+
"py-(--dds-padding-30)",
|
|
30
|
+
"text-(length:--dds-font-size-label-text)",
|
|
33
31
|
"font-bold",
|
|
34
32
|
"focus-visible:outline-hidden",
|
|
35
33
|
"focus-visible:before:absolute",
|
|
@@ -73,8 +71,14 @@ const cvaBaseVariants = {
|
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
};
|
|
76
|
-
const cvaLinkItem = cva(cvaBaseClasses, cvaBaseVariants);
|
|
77
|
-
const cvaMenuItem = cva(
|
|
74
|
+
const cvaLinkItem = cva([...cvaBaseClasses, "gap-1"], cvaBaseVariants);
|
|
75
|
+
const cvaMenuItem = cva(
|
|
76
|
+
[
|
|
77
|
+
...cvaBaseClasses,
|
|
78
|
+
"gap-(--ddc-navigation-menu-item-gap,var(--dds-space-100))"
|
|
79
|
+
],
|
|
80
|
+
cvaBaseVariants
|
|
81
|
+
);
|
|
78
82
|
let DaikinNavigationItem = class extends DDSElement {
|
|
79
83
|
constructor() {
|
|
80
84
|
super();
|
|
@@ -124,9 +128,10 @@ let DaikinNavigationItem = class extends DDSElement {
|
|
|
124
128
|
aria-disabled=${ifDefined(linkDisabled ? "true" : void 0)}
|
|
125
129
|
><slot
|
|
126
130
|
name="left-icon"
|
|
127
|
-
class="icon-size-
|
|
131
|
+
class="icon-size-token slotted:flex-none"
|
|
128
132
|
></slot
|
|
129
|
-
><span class="px-1 natural-break text-left"
|
|
133
|
+
><span class="px-1 natural-break text-left leading-normal"
|
|
134
|
+
><slot></slot></span
|
|
130
135
|
></a>
|
|
131
136
|
</div>
|
|
132
137
|
`;
|
|
@@ -147,11 +152,12 @@ let DaikinNavigationItem = class extends DDSElement {
|
|
|
147
152
|
>
|
|
148
153
|
<slot
|
|
149
154
|
name="left-icon"
|
|
150
|
-
class="icon-size-
|
|
155
|
+
class="icon-size-token slotted:flex-none"
|
|
151
156
|
></slot
|
|
152
|
-
><span class="px-1 natural-break text-left"
|
|
157
|
+
><span class="px-1 natural-break text-left leading-normal"
|
|
158
|
+
><slot></slot></span
|
|
153
159
|
><span
|
|
154
|
-
class="icon-[daikin--chevron-down] size-
|
|
160
|
+
class="icon-[daikin--chevron-down] size-(--dds-icon) flex-none rotate-(--chevron-rotation)"
|
|
155
161
|
></span>
|
|
156
162
|
</button>
|
|
157
163
|
</div>
|
|
@@ -173,8 +179,6 @@ DaikinNavigationItem.styles = css`
|
|
|
173
179
|
:host {
|
|
174
180
|
display: block;
|
|
175
181
|
width: fit-content;
|
|
176
|
-
|
|
177
|
-
--chevron-rotation: 0deg;
|
|
178
182
|
}
|
|
179
183
|
`;
|
|
180
184
|
__decorateClass([
|
|
@@ -35,6 +35,17 @@ export declare class DaikinPagination extends DDSElement {
|
|
|
35
35
|
* If a value less than 5 is specified, it will be treated as 5.
|
|
36
36
|
*/
|
|
37
37
|
window: number;
|
|
38
|
+
/**
|
|
39
|
+
* Size of the pagination.
|
|
40
|
+
*
|
|
41
|
+
* - `medium`: Default size. Page button min size is `48px`.
|
|
42
|
+
* - `small`: Compact size. Page button min size is `36px`.
|
|
43
|
+
*
|
|
44
|
+
* Page buttons grow horizontally when content gets wider while keeping horizontal padding.
|
|
45
|
+
*
|
|
46
|
+
* On mobile viewport (`<= 767px`), pagination is always rendered in the small size.
|
|
47
|
+
*/
|
|
48
|
+
size: "small" | "medium";
|
|
38
49
|
private _goto;
|
|
39
50
|
private _gotoOffset;
|
|
40
51
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -4,7 +4,7 @@ import { ifDefined } from "lit/directives/if-defined.js";
|
|
|
4
4
|
import { repeat } from "lit/directives/repeat.js";
|
|
5
5
|
import { DDSElement } from "../../base/dds-element.js";
|
|
6
6
|
import "../../base/dds-form-element.js";
|
|
7
|
-
import { property } from "../../base/dds-property.js";
|
|
7
|
+
import { property, oneOf } from "../../base/dds-property.js";
|
|
8
8
|
import { ddsElement } from "../../base/decorators.js";
|
|
9
9
|
import "../../base/define.js";
|
|
10
10
|
import tailwindStyles from "../../tailwind.css.js";
|
|
@@ -27,12 +27,13 @@ const cvaPageButton = cva(
|
|
|
27
27
|
"relative",
|
|
28
28
|
"items-center",
|
|
29
29
|
"justify-center",
|
|
30
|
-
"min-w-
|
|
31
|
-
"min-h-
|
|
30
|
+
"min-w-[var(--ddc-pagination-item-size)]",
|
|
31
|
+
"min-h-[var(--ddc-pagination-item-size)]",
|
|
32
|
+
"h-[var(--ddc-pagination-item-size)]",
|
|
32
33
|
"p-1",
|
|
33
|
-
"text-
|
|
34
|
+
"text-[length:var(--ddc-pagination-font-size)]",
|
|
34
35
|
"not-italic",
|
|
35
|
-
"leading-
|
|
36
|
+
"leading-[var(--ddc-pagination-line-height)]",
|
|
36
37
|
"bg-clip-content",
|
|
37
38
|
"focus-visible:outline-solid",
|
|
38
39
|
"focus-visible:outline-2",
|
|
@@ -52,9 +53,9 @@ const cvaPageButton = cva(
|
|
|
52
53
|
"active:bg-ddt-color-common-surface-brand-press",
|
|
53
54
|
"after:bg-ddt-color-common-brand-default",
|
|
54
55
|
"after:content-['']",
|
|
55
|
-
"after:h-
|
|
56
|
+
"after:h-[var(--ddc-pagination-active-indicator-size)]",
|
|
56
57
|
"after:absolute",
|
|
57
|
-
"after:inset-
|
|
58
|
+
"after:inset-[var(--ddc-pagination-active-indicator-size)]",
|
|
58
59
|
"after:top-auto"
|
|
59
60
|
],
|
|
60
61
|
false: [
|
|
@@ -76,12 +77,14 @@ const cvaEllipsis = cva([
|
|
|
76
77
|
"flex",
|
|
77
78
|
"items-center",
|
|
78
79
|
"justify-center",
|
|
79
|
-
"w-
|
|
80
|
-
"h-
|
|
81
|
-
"
|
|
80
|
+
"min-w-[var(--ddc-pagination-item-size)]",
|
|
81
|
+
"min-h-[var(--ddc-pagination-item-size)]",
|
|
82
|
+
"w-[var(--ddc-pagination-item-size)]",
|
|
83
|
+
"h-[var(--ddc-pagination-item-size)]",
|
|
84
|
+
"text-[length:var(--ddc-pagination-font-size)]",
|
|
82
85
|
"not-italic",
|
|
83
86
|
"font-normal",
|
|
84
|
-
"leading-
|
|
87
|
+
"leading-[var(--ddc-pagination-line-height)]",
|
|
85
88
|
"text-ddt-color-common-neutral-default"
|
|
86
89
|
]);
|
|
87
90
|
const cvaChevronButton = cva([
|
|
@@ -90,13 +93,15 @@ const cvaChevronButton = cva([
|
|
|
90
93
|
"flex",
|
|
91
94
|
"items-center",
|
|
92
95
|
"justify-center",
|
|
93
|
-
"w-
|
|
94
|
-
"h-
|
|
96
|
+
"min-w-[var(--ddc-pagination-item-size)]",
|
|
97
|
+
"min-h-[var(--ddc-pagination-item-size)]",
|
|
98
|
+
"w-[var(--ddc-pagination-item-size)]",
|
|
99
|
+
"h-[var(--ddc-pagination-item-size)]",
|
|
95
100
|
"text-ddt-color-common-neutral-default",
|
|
96
|
-
"text-
|
|
101
|
+
"text-[length:var(--ddc-pagination-font-size)]",
|
|
97
102
|
"not-italic",
|
|
98
103
|
"font-normal",
|
|
99
|
-
"leading-
|
|
104
|
+
"leading-[var(--ddc-pagination-line-height)]",
|
|
100
105
|
"enabled:hover:bg-ddt-color-common-surface-neutral-hover",
|
|
101
106
|
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
102
107
|
"enabled:active:bg-ddt-color-common-surface-neutral-press",
|
|
@@ -113,6 +118,7 @@ let DaikinPagination = class extends DDSElement {
|
|
|
113
118
|
this.current = 1;
|
|
114
119
|
this.total = 1;
|
|
115
120
|
this.window = 5;
|
|
121
|
+
this.size = "medium";
|
|
116
122
|
}
|
|
117
123
|
_goto(page) {
|
|
118
124
|
const newPage = Math.max(Math.min(page, this.total), 1);
|
|
@@ -149,16 +155,18 @@ let DaikinPagination = class extends DDSElement {
|
|
|
149
155
|
<div
|
|
150
156
|
aria-label=${landmarkLabel}
|
|
151
157
|
role="navigation"
|
|
152
|
-
class="inline-flex flex-wrap"
|
|
158
|
+
class="inline-flex flex-wrap max-w-full"
|
|
153
159
|
>
|
|
154
160
|
<button
|
|
155
161
|
class=${cvaChevron}
|
|
156
162
|
type="button"
|
|
157
163
|
aria-label="Go to the previous page."
|
|
158
|
-
?disabled=${this.current === 1}
|
|
164
|
+
?disabled=${this.total <= 1 || this.current === 1}
|
|
159
165
|
@click=${() => this._gotoOffset(-1)}
|
|
160
166
|
>
|
|
161
|
-
<span
|
|
167
|
+
<span
|
|
168
|
+
class="icon-[daikin--chevron-left] w-(--ddc-pagination-icon-size) h-(--ddc-pagination-icon-size)"
|
|
169
|
+
></span>
|
|
162
170
|
</button>
|
|
163
171
|
${repeat(
|
|
164
172
|
pageArray,
|
|
@@ -199,10 +207,12 @@ let DaikinPagination = class extends DDSElement {
|
|
|
199
207
|
type="button"
|
|
200
208
|
class=${cvaChevron}
|
|
201
209
|
aria-label="Go to the next page."
|
|
202
|
-
?disabled=${this.current === this.total}
|
|
210
|
+
?disabled=${this.total <= 1 || this.current === this.total}
|
|
203
211
|
@click=${() => this._gotoOffset(1)}
|
|
204
212
|
>
|
|
205
|
-
<span
|
|
213
|
+
<span
|
|
214
|
+
class="icon-[daikin--chevron-right] w-(--ddc-pagination-icon-size) h-(--ddc-pagination-icon-size)"
|
|
215
|
+
></span>
|
|
206
216
|
</button>
|
|
207
217
|
</div>
|
|
208
218
|
`;
|
|
@@ -213,6 +223,29 @@ DaikinPagination.styles = css`
|
|
|
213
223
|
|
|
214
224
|
:host {
|
|
215
225
|
display: inline-flex;
|
|
226
|
+
--ddc-pagination-item-size: 3rem;
|
|
227
|
+
--ddc-pagination-font-size: 1rem;
|
|
228
|
+
--ddc-pagination-line-height: var(--dds-font-line-height-tight);
|
|
229
|
+
--ddc-pagination-active-indicator-size: 0.25rem;
|
|
230
|
+
--ddc-pagination-icon-size: 2rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
:host([size="small"]) {
|
|
234
|
+
--ddc-pagination-item-size: 2.25rem;
|
|
235
|
+
--ddc-pagination-font-size: 0.875rem;
|
|
236
|
+
--ddc-pagination-line-height: var(--dds-font-line-height-tight);
|
|
237
|
+
--ddc-pagination-active-indicator-size: var(--dds-border-width-075);
|
|
238
|
+
--ddc-pagination-icon-size: 1.5rem;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@media (max-width: 767px) {
|
|
242
|
+
:host {
|
|
243
|
+
--ddc-pagination-item-size: 2.25rem;
|
|
244
|
+
--ddc-pagination-font-size: var(--text-sm);
|
|
245
|
+
--ddc-pagination-line-height: var(--dds-font-line-height-tight);
|
|
246
|
+
--ddc-pagination-active-indicator-size: var(--dds-border-width-075);
|
|
247
|
+
--ddc-pagination-icon-size: 1.5rem;
|
|
248
|
+
}
|
|
216
249
|
}
|
|
217
250
|
`;
|
|
218
251
|
__decorateClass([
|
|
@@ -224,6 +257,14 @@ __decorateClass([
|
|
|
224
257
|
__decorateClass([
|
|
225
258
|
property({ type: Number, reflect: true })
|
|
226
259
|
], DaikinPagination.prototype, "window", 2);
|
|
260
|
+
__decorateClass([
|
|
261
|
+
property({
|
|
262
|
+
type: String,
|
|
263
|
+
reflect: true,
|
|
264
|
+
fallbackValue: "medium",
|
|
265
|
+
isAllowedValue: oneOf(["small", "medium"])
|
|
266
|
+
})
|
|
267
|
+
], DaikinPagination.prototype, "size", 2);
|
|
227
268
|
DaikinPagination = __decorateClass([
|
|
228
269
|
ddsElement("daikin-pagination")
|
|
229
270
|
], DaikinPagination);
|
|
@@ -21,6 +21,7 @@ type ProgressBarVariantProps = MergeVariantProps<typeof cvaBar | typeof cvaHelpe
|
|
|
21
21
|
* - `"error"`: In addition to `"inprogress"`, an error icon is added and the color becomes red. In this variant, the `value` is ignored and the bar always expands to the full width.
|
|
22
22
|
*
|
|
23
23
|
* @slot - A slot for label text displayed at the top of the progress bar.
|
|
24
|
+
* @slot left-icon - A slot for an icon to be placed to the left of the text. Place `daikin-icon` or something similar.
|
|
24
25
|
*
|
|
25
26
|
* @example
|
|
26
27
|
*
|