@daikin-oss/design-system-web-components 0.5.0 → 0.7.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 +95 -0
- package/README.md +40 -23
- package/dist/cjs/components/accordion/daikin-accordion.cjs +1 -1
- package/dist/cjs/components/accordion/index.d.cts +1 -0
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +8 -8
- package/dist/cjs/components/accordion-item/{daikin-accordion-item.d.ts → daikin-accordion-item.d.cts} +1 -1
- package/dist/cjs/components/accordion-item/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +19 -80
- package/dist/{cjs-dev/components/breadcrumb/daikin-breadcrumb.d.ts → cjs/components/breadcrumb/daikin-breadcrumb.d.cts} +11 -23
- package/dist/cjs/components/breadcrumb/index.d.cts +1 -0
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +25 -81
- package/dist/cjs/components/breadcrumb-item/{daikin-breadcrumb-item.d.ts → daikin-breadcrumb-item.d.cts} +13 -27
- package/dist/cjs/components/breadcrumb-item/index.d.cts +1 -0
- package/dist/cjs/components/button/daikin-button.cjs +33 -26
- package/dist/{cjs-dev/components/button/daikin-button.d.ts → cjs/components/button/daikin-button.d.cts} +5 -5
- package/dist/cjs/components/button/index.d.cts +1 -0
- package/dist/cjs/components/card/daikin-card.cjs +63 -0
- package/dist/cjs/components/card/daikin-card.d.cts +42 -0
- package/dist/cjs/components/card/index.cjs +7 -0
- package/dist/cjs/components/card/index.d.cts +1 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs/components/card-footer/daikin-card-footer.d.cts +29 -0
- package/dist/cjs/components/card-footer/index.cjs +7 -0
- package/dist/cjs/components/card-footer/index.d.cts +1 -0
- package/dist/cjs/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs/components/card-header/daikin-card-header.d.cts +31 -0
- package/dist/cjs/components/card-header/index.cjs +7 -0
- package/dist/cjs/components/card-header/index.d.cts +1 -0
- package/dist/cjs/components/checkbox/daikin-checkbox.cjs +30 -30
- package/dist/cjs/components/checkbox/{daikin-checkbox.d.ts → daikin-checkbox.d.cts} +4 -4
- package/dist/cjs/components/checkbox/index.d.cts +1 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +26 -26
- package/dist/cjs/components/dropdown/{daikin-dropdown.d.ts → daikin-dropdown.d.cts} +6 -6
- package/dist/cjs/components/dropdown/index.d.cts +1 -0
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +9 -9
- package/dist/cjs/components/dropdown-item/index.d.cts +1 -0
- package/dist/cjs/components/icon/daikin-icon.cjs +22 -18
- package/dist/{cjs-dev/components/icon/daikin-icon.d.ts → cjs/components/icon/daikin-icon.d.cts} +8 -6
- package/dist/cjs/components/icon/icons.json.cjs +20 -0
- package/dist/cjs/components/icon/{icons.json.d.ts → icons.json.d.cts} +20 -0
- package/dist/cjs/components/icon/index.d.cts +1 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +166 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +82 -0
- package/dist/cjs/components/icon-button/index.cjs +7 -0
- package/dist/cjs/components/icon-button/index.d.cts +1 -0
- package/dist/cjs/components/index.cjs +61 -0
- package/dist/cjs/components/index.d.cts +37 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +62 -46
- package/dist/{cjs-dev/components/input-group/daikin-input-group.d.ts → cjs/components/input-group/daikin-input-group.d.cts} +27 -3
- package/dist/cjs/components/input-group/index.d.cts +1 -0
- package/dist/cjs/components/link/daikin-link.cjs +89 -0
- package/dist/cjs/components/link/daikin-link.d.cts +43 -0
- package/dist/cjs/components/link/index.cjs +7 -0
- package/dist/cjs/components/link/index.d.cts +1 -0
- package/dist/cjs/components/list/index.d.cts +1 -0
- package/dist/cjs/components/list-item/daikin-list-item.cjs +26 -9
- package/dist/cjs/components/list-item/index.d.cts +1 -0
- package/dist/cjs/components/notification/daikin-notification.cjs +43 -37
- package/dist/cjs/components/notification/{daikin-notification.d.ts → daikin-notification.d.cts} +7 -7
- package/dist/cjs/components/notification/index.d.cts +1 -0
- package/dist/cjs/components/pagination/daikin-pagination.cjs +213 -0
- package/dist/cjs/components/pagination/daikin-pagination.d.cts +39 -0
- package/dist/cjs/components/pagination/index.cjs +7 -0
- package/dist/cjs/components/pagination/index.d.cts +1 -0
- package/dist/cjs/components/pagination/pagination-utils.cjs +50 -0
- package/dist/cjs/components/pagination/pagination-utils.d.cts +28 -0
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +22 -12
- package/dist/cjs/components/progress-bar/{daikin-progress-bar.d.ts → daikin-progress-bar.d.cts} +1 -1
- package/dist/cjs/components/progress-bar/index.d.cts +1 -0
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +1 -6
- package/dist/cjs/components/progress-indicator/index.d.cts +1 -0
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +21 -29
- package/dist/{cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts → cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.cts} +2 -5
- package/dist/cjs/components/progress-indicator-item/index.d.cts +1 -0
- package/dist/cjs/components/radio/daikin-radio.cjs +13 -11
- package/dist/cjs/components/radio/{daikin-radio.d.ts → daikin-radio.d.cts} +4 -4
- package/dist/cjs/components/radio/index.d.cts +1 -0
- package/dist/cjs/components/radio-group/daikin-radio-group.cjs +1 -0
- package/dist/cjs/components/radio-group/{daikin-radio-group.d.ts → daikin-radio-group.d.cts} +2 -2
- package/dist/cjs/components/radio-group/index.d.cts +1 -0
- package/dist/cjs/components/select/daikin-select.cjs +25 -17
- package/dist/cjs/components/select/{daikin-select.d.ts → daikin-select.d.cts} +6 -1
- package/dist/cjs/components/select/index.d.cts +1 -0
- package/dist/cjs/components/tab/daikin-tab.cjs +13 -13
- package/dist/cjs/components/tab/index.d.cts +1 -0
- package/dist/{cjs-dev/components/tab-panels/daikin-tab-panels.d.ts → cjs/components/tab-panels/daikin-tab-panels.d.cts} +1 -1
- package/dist/cjs/components/tab-panels/index.d.cts +1 -0
- package/dist/cjs/components/table/daikin-table.cjs +248 -0
- package/dist/cjs/components/table/daikin-table.d.cts +130 -0
- package/dist/cjs/components/table/index.cjs +7 -0
- package/dist/cjs/components/table/index.d.cts +1 -0
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +68 -0
- package/dist/cjs/components/table-cell/daikin-table-cell.d.cts +41 -0
- package/dist/cjs/components/table-cell/index.cjs +7 -0
- package/dist/cjs/components/table-cell/index.d.cts +1 -0
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +92 -0
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.d.cts +50 -0
- package/dist/cjs/components/table-header-cell/index.cjs +7 -0
- package/dist/cjs/components/table-header-cell/index.d.cts +1 -0
- package/dist/cjs/components/tabs/daikin-tabs.cjs +1 -1
- package/dist/cjs/components/tabs/index.d.cts +1 -0
- package/dist/cjs/components/text-area/daikin-text-area.cjs +19 -17
- package/dist/cjs/components/text-area/{daikin-text-area.d.ts → daikin-text-area.d.cts} +3 -3
- package/dist/cjs/components/text-area/index.d.cts +1 -0
- package/dist/cjs/components/text-field/daikin-text-field.cjs +38 -26
- package/dist/cjs/components/text-field/{daikin-text-field.d.ts → daikin-text-field.d.cts} +4 -4
- package/dist/cjs/components/text-field/index.d.cts +1 -0
- package/dist/cjs/components/toggle/daikin-toggle.cjs +11 -11
- package/dist/cjs/components/toggle/{daikin-toggle.d.ts → daikin-toggle.d.cts} +3 -3
- package/dist/cjs/components/toggle/index.d.cts +1 -0
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +40 -83
- package/dist/cjs/components/tooltip/{daikin-tooltip.d.ts → daikin-tooltip.d.cts} +2 -22
- package/dist/cjs/components/tooltip/index.d.cts +1 -0
- package/dist/cjs/components/tree/common.cjs +90 -0
- package/dist/cjs/components/tree/common.d.cts +32 -0
- package/dist/cjs/components/tree/daikin-tree.cjs +109 -0
- package/dist/cjs/components/tree/daikin-tree.d.cts +74 -0
- package/dist/cjs/components/tree/index.cjs +7 -0
- package/dist/cjs/components/tree/index.d.cts +1 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.cjs +197 -0
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs/components/tree-item/index.cjs +8 -0
- package/dist/cjs/components/tree-item/index.d.cts +1 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.cjs +245 -0
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +119 -0
- package/dist/cjs/components/tree-section/index.cjs +7 -0
- package/dist/cjs/components/tree-section/index.d.cts +1 -0
- package/dist/cjs/controllers/floating-ui-auto-update.cjs +6 -0
- package/dist/cjs/controllers/{floating-ui-auto-update.d.ts → floating-ui-auto-update.d.cts} +2 -0
- package/dist/cjs/index.cjs +61 -2
- package/dist/cjs/index.d.cts +2 -0
- package/dist/cjs/tailwind.css.cjs +1 -2
- package/dist/cjs/utils/is-simple-key.cjs +6 -0
- package/dist/cjs/utils/is-simple-key.d.cts +7 -0
- package/dist/cjs-dev/components/accordion/daikin-accordion.cjs +1 -1
- package/dist/cjs-dev/components/accordion/index.d.cts +1 -0
- package/dist/cjs-dev/components/accordion-item/daikin-accordion-item.cjs +8 -8
- package/dist/cjs-dev/components/accordion-item/{daikin-accordion-item.d.ts → daikin-accordion-item.d.cts} +1 -1
- package/dist/cjs-dev/components/accordion-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +19 -80
- package/dist/{cjs/components/breadcrumb/daikin-breadcrumb.d.ts → cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts} +11 -23
- package/dist/cjs-dev/components/breadcrumb/index.d.cts +1 -0
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +25 -81
- package/dist/cjs-dev/components/breadcrumb-item/{daikin-breadcrumb-item.d.ts → daikin-breadcrumb-item.d.cts} +13 -27
- package/dist/cjs-dev/components/breadcrumb-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/button/daikin-button.cjs +33 -26
- package/dist/{cjs/components/button/daikin-button.d.ts → cjs-dev/components/button/daikin-button.d.cts} +5 -5
- package/dist/cjs-dev/components/button/index.d.cts +1 -0
- package/dist/cjs-dev/components/card/daikin-card.cjs +63 -0
- package/dist/cjs-dev/components/card/daikin-card.d.cts +42 -0
- package/dist/cjs-dev/components/card/index.cjs +7 -0
- package/dist/cjs-dev/components/card/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.cjs +33 -0
- package/dist/cjs-dev/components/card-footer/daikin-card-footer.d.cts +29 -0
- package/dist/cjs-dev/components/card-footer/index.cjs +7 -0
- package/dist/cjs-dev/components/card-footer/index.d.cts +1 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.cjs +59 -0
- package/dist/cjs-dev/components/card-header/daikin-card-header.d.cts +31 -0
- package/dist/cjs-dev/components/card-header/index.cjs +7 -0
- package/dist/cjs-dev/components/card-header/index.d.cts +1 -0
- package/dist/cjs-dev/components/checkbox/daikin-checkbox.cjs +30 -30
- package/dist/cjs-dev/components/checkbox/{daikin-checkbox.d.ts → daikin-checkbox.d.cts} +4 -4
- package/dist/cjs-dev/components/checkbox/index.d.cts +1 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +26 -26
- package/dist/cjs-dev/components/dropdown/{daikin-dropdown.d.ts → daikin-dropdown.d.cts} +6 -6
- package/dist/cjs-dev/components/dropdown/index.d.cts +1 -0
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +9 -9
- package/dist/cjs-dev/components/dropdown-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +22 -18
- package/dist/{cjs/components/icon/daikin-icon.d.ts → cjs-dev/components/icon/daikin-icon.d.cts} +8 -6
- package/dist/cjs-dev/components/icon/icons.json.cjs +20 -0
- package/dist/cjs-dev/components/icon/{icons.json.d.ts → icons.json.d.cts} +20 -0
- package/dist/cjs-dev/components/icon/index.d.cts +1 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +166 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +82 -0
- package/dist/cjs-dev/components/icon-button/index.cjs +7 -0
- package/dist/cjs-dev/components/icon-button/index.d.cts +1 -0
- package/dist/cjs-dev/components/index.cjs +61 -0
- package/dist/cjs-dev/components/index.d.cts +37 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +62 -46
- package/dist/{cjs/components/input-group/daikin-input-group.d.ts → cjs-dev/components/input-group/daikin-input-group.d.cts} +27 -3
- package/dist/cjs-dev/components/input-group/index.d.cts +1 -0
- package/dist/cjs-dev/components/link/daikin-link.cjs +89 -0
- package/dist/cjs-dev/components/link/daikin-link.d.cts +43 -0
- package/dist/cjs-dev/components/link/index.cjs +7 -0
- package/dist/cjs-dev/components/link/index.d.cts +1 -0
- package/dist/cjs-dev/components/list/index.d.cts +1 -0
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +26 -9
- package/dist/cjs-dev/components/list-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +43 -37
- package/dist/cjs-dev/components/notification/{daikin-notification.d.ts → daikin-notification.d.cts} +7 -7
- package/dist/cjs-dev/components/notification/index.d.cts +1 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +213 -0
- package/dist/cjs-dev/components/pagination/daikin-pagination.d.cts +39 -0
- package/dist/cjs-dev/components/pagination/index.cjs +7 -0
- package/dist/cjs-dev/components/pagination/index.d.cts +1 -0
- package/dist/cjs-dev/components/pagination/pagination-utils.cjs +50 -0
- package/dist/cjs-dev/components/pagination/pagination-utils.d.cts +28 -0
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +22 -12
- package/dist/cjs-dev/components/progress-bar/{daikin-progress-bar.d.ts → daikin-progress-bar.d.cts} +1 -1
- package/dist/cjs-dev/components/progress-bar/index.d.cts +1 -0
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +1 -6
- package/dist/cjs-dev/components/progress-indicator/index.d.cts +1 -0
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +21 -29
- package/dist/{cjs/components/progress-indicator-item/daikin-progress-indicator-item.d.ts → cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.cts} +2 -5
- package/dist/cjs-dev/components/progress-indicator-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +13 -11
- package/dist/cjs-dev/components/radio/{daikin-radio.d.ts → daikin-radio.d.cts} +4 -4
- package/dist/cjs-dev/components/radio/index.d.cts +1 -0
- package/dist/cjs-dev/components/radio-group/daikin-radio-group.cjs +1 -0
- package/dist/cjs-dev/components/radio-group/{daikin-radio-group.d.ts → daikin-radio-group.d.cts} +2 -2
- package/dist/cjs-dev/components/radio-group/index.d.cts +1 -0
- package/dist/cjs-dev/components/select/daikin-select.cjs +25 -17
- package/dist/cjs-dev/components/select/{daikin-select.d.ts → daikin-select.d.cts} +6 -1
- package/dist/cjs-dev/components/select/index.d.cts +1 -0
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +13 -13
- package/dist/cjs-dev/components/tab/index.d.cts +1 -0
- package/dist/{cjs/components/tab-panels/daikin-tab-panels.d.ts → cjs-dev/components/tab-panels/daikin-tab-panels.d.cts} +1 -1
- package/dist/cjs-dev/components/tab-panels/index.d.cts +1 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +260 -0
- package/dist/cjs-dev/components/table/daikin-table.d.cts +130 -0
- package/dist/cjs-dev/components/table/index.cjs +7 -0
- package/dist/cjs-dev/components/table/index.d.cts +1 -0
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +68 -0
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.d.cts +41 -0
- package/dist/cjs-dev/components/table-cell/index.cjs +7 -0
- package/dist/cjs-dev/components/table-cell/index.d.cts +1 -0
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +92 -0
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.d.cts +50 -0
- package/dist/cjs-dev/components/table-header-cell/index.cjs +7 -0
- package/dist/cjs-dev/components/table-header-cell/index.d.cts +1 -0
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +1 -1
- package/dist/cjs-dev/components/tabs/index.d.cts +1 -0
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +19 -17
- package/dist/cjs-dev/components/text-area/{daikin-text-area.d.ts → daikin-text-area.d.cts} +3 -3
- package/dist/cjs-dev/components/text-area/index.d.cts +1 -0
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +38 -26
- package/dist/cjs-dev/components/text-field/{daikin-text-field.d.ts → daikin-text-field.d.cts} +4 -4
- package/dist/cjs-dev/components/text-field/index.d.cts +1 -0
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +11 -11
- package/dist/cjs-dev/components/toggle/{daikin-toggle.d.ts → daikin-toggle.d.cts} +3 -3
- package/dist/cjs-dev/components/toggle/index.d.cts +1 -0
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +40 -83
- package/dist/cjs-dev/components/tooltip/{daikin-tooltip.d.ts → daikin-tooltip.d.cts} +2 -22
- package/dist/cjs-dev/components/tooltip/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree/common.cjs +90 -0
- package/dist/cjs-dev/components/tree/common.d.cts +32 -0
- package/dist/cjs-dev/components/tree/daikin-tree.cjs +109 -0
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +74 -0
- package/dist/cjs-dev/components/tree/index.cjs +7 -0
- package/dist/cjs-dev/components/tree/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.cjs +197 -0
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +95 -0
- package/dist/cjs-dev/components/tree-item/index.cjs +8 -0
- package/dist/cjs-dev/components/tree-item/index.d.cts +1 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.cjs +245 -0
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +119 -0
- package/dist/cjs-dev/components/tree-section/index.cjs +7 -0
- package/dist/cjs-dev/components/tree-section/index.d.cts +1 -0
- package/dist/cjs-dev/controllers/floating-ui-auto-update.cjs +6 -0
- package/dist/cjs-dev/controllers/{floating-ui-auto-update.d.ts → floating-ui-auto-update.d.cts} +2 -0
- package/dist/cjs-dev/index.cjs +61 -2
- package/dist/cjs-dev/index.d.cts +2 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -2
- package/dist/cjs-dev/utils/is-simple-key.cjs +6 -0
- package/dist/cjs-dev/utils/is-simple-key.d.cts +7 -0
- package/dist/es/components/accordion/daikin-accordion.js +1 -1
- package/dist/es/components/accordion/index.d.ts +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.d.ts +1 -1
- package/dist/es/components/accordion-item/daikin-accordion-item.js +8 -8
- package/dist/es/components/accordion-item/index.d.ts +1 -1
- package/dist/es/components/breadcrumb/daikin-breadcrumb.d.ts +11 -23
- package/dist/es/components/breadcrumb/daikin-breadcrumb.js +20 -81
- package/dist/es/components/breadcrumb/index.d.ts +1 -1
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +13 -27
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +26 -82
- package/dist/es/components/breadcrumb-item/index.d.ts +1 -1
- package/dist/es/components/button/daikin-button.d.ts +5 -5
- package/dist/es/components/button/daikin-button.js +33 -26
- package/dist/es/components/button/index.d.ts +1 -1
- package/dist/es/components/card/daikin-card.d.ts +42 -0
- package/dist/es/components/card/daikin-card.js +64 -0
- package/dist/es/components/card/index.d.ts +1 -0
- package/dist/es/components/card/index.js +4 -0
- package/dist/es/components/card-footer/daikin-card-footer.d.ts +29 -0
- package/dist/es/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es/components/card-footer/index.d.ts +1 -0
- package/dist/es/components/card-footer/index.js +4 -0
- package/dist/es/components/card-header/daikin-card-header.d.ts +31 -0
- package/dist/es/components/card-header/daikin-card-header.js +60 -0
- package/dist/es/components/card-header/index.d.ts +1 -0
- package/dist/es/components/card-header/index.js +4 -0
- package/dist/es/components/checkbox/daikin-checkbox.d.ts +4 -4
- package/dist/es/components/checkbox/daikin-checkbox.js +30 -30
- package/dist/es/components/checkbox/index.d.ts +1 -1
- package/dist/es/components/dropdown/daikin-dropdown.d.ts +6 -6
- package/dist/es/components/dropdown/daikin-dropdown.js +26 -26
- package/dist/es/components/dropdown/index.d.ts +1 -1
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +9 -9
- package/dist/es/components/dropdown-item/index.d.ts +1 -1
- package/dist/es/components/icon/daikin-icon.d.ts +8 -6
- package/dist/es/components/icon/daikin-icon.js +22 -18
- package/dist/es/components/icon/icons.json.d.ts +20 -0
- package/dist/es/components/icon/icons.json.js +20 -0
- package/dist/es/components/icon/index.d.ts +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +82 -0
- package/dist/es/components/icon-button/daikin-icon-button.js +167 -0
- package/dist/es/components/icon-button/index.d.ts +1 -0
- package/dist/es/components/icon-button/index.js +4 -0
- package/dist/es/components/index.d.ts +37 -25
- package/dist/es/components/index.js +25 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +27 -3
- package/dist/es/components/input-group/daikin-input-group.js +62 -46
- package/dist/es/components/input-group/index.d.ts +1 -1
- package/dist/es/components/link/daikin-link.d.ts +43 -0
- package/dist/es/components/link/daikin-link.js +90 -0
- package/dist/es/components/link/index.d.ts +1 -0
- package/dist/es/components/link/index.js +4 -0
- package/dist/es/components/list/index.d.ts +1 -1
- package/dist/es/components/list-item/daikin-list-item.js +26 -9
- package/dist/es/components/list-item/index.d.ts +1 -1
- package/dist/es/components/notification/daikin-notification.d.ts +7 -7
- package/dist/es/components/notification/daikin-notification.js +43 -37
- package/dist/es/components/notification/index.d.ts +1 -1
- package/dist/es/components/pagination/daikin-pagination.d.ts +39 -0
- package/dist/es/components/pagination/daikin-pagination.js +214 -0
- package/dist/es/components/pagination/index.d.ts +1 -0
- package/dist/es/components/pagination/index.js +4 -0
- package/dist/es/components/pagination/pagination-utils.d.ts +28 -0
- package/dist/es/components/pagination/pagination-utils.js +50 -0
- package/dist/es/components/progress-bar/daikin-progress-bar.d.ts +1 -1
- package/dist/es/components/progress-bar/daikin-progress-bar.js +22 -12
- package/dist/es/components/progress-bar/index.d.ts +1 -1
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -6
- package/dist/es/components/progress-indicator/index.d.ts +1 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -5
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +22 -30
- package/dist/es/components/progress-indicator-item/index.d.ts +1 -1
- package/dist/es/components/radio/daikin-radio.d.ts +4 -4
- package/dist/es/components/radio/daikin-radio.js +13 -11
- package/dist/es/components/radio/index.d.ts +1 -1
- package/dist/es/components/radio-group/daikin-radio-group.d.ts +2 -2
- package/dist/es/components/radio-group/daikin-radio-group.js +1 -0
- package/dist/es/components/radio-group/index.d.ts +1 -1
- package/dist/es/components/select/daikin-select.d.ts +6 -1
- package/dist/es/components/select/daikin-select.js +26 -18
- package/dist/es/components/select/index.d.ts +1 -1
- package/dist/es/components/tab/daikin-tab.js +13 -13
- package/dist/es/components/tab/index.d.ts +1 -1
- package/dist/es/components/tab-panels/daikin-tab-panels.d.ts +1 -1
- package/dist/es/components/tab-panels/index.d.ts +1 -1
- package/dist/es/components/table/daikin-table.d.ts +130 -0
- package/dist/es/components/table/daikin-table.js +249 -0
- package/dist/es/components/table/index.d.ts +1 -0
- package/dist/es/components/table/index.js +4 -0
- package/dist/es/components/table-cell/daikin-table-cell.d.ts +41 -0
- package/dist/es/components/table-cell/daikin-table-cell.js +69 -0
- package/dist/es/components/table-cell/index.d.ts +1 -0
- package/dist/es/components/table-cell/index.js +4 -0
- package/dist/es/components/table-header-cell/daikin-table-header-cell.d.ts +50 -0
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +93 -0
- package/dist/es/components/table-header-cell/index.d.ts +1 -0
- package/dist/es/components/table-header-cell/index.js +4 -0
- package/dist/es/components/tabs/daikin-tabs.js +1 -1
- package/dist/es/components/tabs/index.d.ts +1 -1
- package/dist/es/components/text-area/daikin-text-area.d.ts +3 -3
- package/dist/es/components/text-area/daikin-text-area.js +19 -17
- package/dist/es/components/text-area/index.d.ts +1 -1
- package/dist/es/components/text-field/daikin-text-field.d.ts +4 -4
- package/dist/es/components/text-field/daikin-text-field.js +38 -26
- package/dist/es/components/text-field/index.d.ts +1 -1
- package/dist/es/components/toggle/daikin-toggle.d.ts +3 -3
- package/dist/es/components/toggle/daikin-toggle.js +11 -11
- package/dist/es/components/toggle/index.d.ts +1 -1
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +2 -22
- package/dist/es/components/tooltip/daikin-tooltip.js +42 -85
- package/dist/es/components/tooltip/index.d.ts +1 -1
- package/dist/es/components/tree/common.d.ts +32 -0
- package/dist/es/components/tree/common.js +90 -0
- package/dist/es/components/tree/daikin-tree.d.ts +74 -0
- package/dist/es/components/tree/daikin-tree.js +110 -0
- package/dist/es/components/tree/index.d.ts +1 -0
- package/dist/es/components/tree/index.js +4 -0
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es/components/tree-item/daikin-tree-item.js +198 -0
- package/dist/es/components/tree-item/index.d.ts +1 -0
- package/dist/es/components/tree-item/index.js +5 -0
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +119 -0
- package/dist/es/components/tree-section/daikin-tree-section.js +246 -0
- package/dist/es/components/tree-section/index.d.ts +1 -0
- package/dist/es/components/tree-section/index.js +4 -0
- package/dist/es/controllers/floating-ui-auto-update.d.ts +2 -0
- package/dist/es/controllers/floating-ui-auto-update.js +6 -0
- package/dist/es/index.d.ts +2 -3
- package/dist/es/index.js +25 -2
- package/dist/es/tailwind.css.js +1 -2
- package/dist/es/utils/is-simple-key.d.ts +7 -0
- package/dist/es/utils/is-simple-key.js +6 -0
- package/dist/es-dev/components/accordion/daikin-accordion.js +1 -1
- package/dist/es-dev/components/accordion/index.d.ts +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.d.ts +1 -1
- package/dist/es-dev/components/accordion-item/daikin-accordion-item.js +8 -8
- package/dist/es-dev/components/accordion-item/index.d.ts +1 -1
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.d.ts +11 -23
- package/dist/es-dev/components/breadcrumb/daikin-breadcrumb.js +20 -81
- package/dist/es-dev/components/breadcrumb/index.d.ts +1 -1
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.ts +13 -27
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +26 -82
- package/dist/es-dev/components/breadcrumb-item/index.d.ts +1 -1
- package/dist/es-dev/components/button/daikin-button.d.ts +5 -5
- package/dist/es-dev/components/button/daikin-button.js +33 -26
- package/dist/es-dev/components/button/index.d.ts +1 -1
- package/dist/es-dev/components/card/daikin-card.d.ts +42 -0
- package/dist/es-dev/components/card/daikin-card.js +64 -0
- package/dist/es-dev/components/card/index.d.ts +1 -0
- package/dist/es-dev/components/card/index.js +4 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.d.ts +29 -0
- package/dist/es-dev/components/card-footer/daikin-card-footer.js +34 -0
- package/dist/es-dev/components/card-footer/index.d.ts +1 -0
- package/dist/es-dev/components/card-footer/index.js +4 -0
- package/dist/es-dev/components/card-header/daikin-card-header.d.ts +31 -0
- package/dist/es-dev/components/card-header/daikin-card-header.js +60 -0
- package/dist/es-dev/components/card-header/index.d.ts +1 -0
- package/dist/es-dev/components/card-header/index.js +4 -0
- package/dist/es-dev/components/checkbox/daikin-checkbox.d.ts +4 -4
- package/dist/es-dev/components/checkbox/daikin-checkbox.js +30 -30
- package/dist/es-dev/components/checkbox/index.d.ts +1 -1
- package/dist/es-dev/components/dropdown/daikin-dropdown.d.ts +6 -6
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +26 -26
- package/dist/es-dev/components/dropdown/index.d.ts +1 -1
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +9 -9
- package/dist/es-dev/components/dropdown-item/index.d.ts +1 -1
- package/dist/es-dev/components/icon/daikin-icon.d.ts +8 -6
- package/dist/es-dev/components/icon/daikin-icon.js +22 -18
- package/dist/es-dev/components/icon/icons.json.d.ts +20 -0
- package/dist/es-dev/components/icon/icons.json.js +20 -0
- package/dist/es-dev/components/icon/index.d.ts +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +82 -0
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +167 -0
- package/dist/es-dev/components/icon-button/index.d.ts +1 -0
- package/dist/es-dev/components/icon-button/index.js +4 -0
- package/dist/es-dev/components/index.d.ts +37 -25
- package/dist/es-dev/components/index.js +25 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +27 -3
- package/dist/es-dev/components/input-group/daikin-input-group.js +62 -46
- package/dist/es-dev/components/input-group/index.d.ts +1 -1
- package/dist/es-dev/components/link/daikin-link.d.ts +43 -0
- package/dist/es-dev/components/link/daikin-link.js +90 -0
- package/dist/es-dev/components/link/index.d.ts +1 -0
- package/dist/es-dev/components/link/index.js +4 -0
- package/dist/es-dev/components/list/index.d.ts +1 -1
- package/dist/es-dev/components/list-item/daikin-list-item.js +26 -9
- package/dist/es-dev/components/list-item/index.d.ts +1 -1
- package/dist/es-dev/components/notification/daikin-notification.d.ts +7 -7
- package/dist/es-dev/components/notification/daikin-notification.js +43 -37
- package/dist/es-dev/components/notification/index.d.ts +1 -1
- package/dist/es-dev/components/pagination/daikin-pagination.d.ts +39 -0
- package/dist/es-dev/components/pagination/daikin-pagination.js +214 -0
- package/dist/es-dev/components/pagination/index.d.ts +1 -0
- package/dist/es-dev/components/pagination/index.js +4 -0
- package/dist/es-dev/components/pagination/pagination-utils.d.ts +28 -0
- package/dist/es-dev/components/pagination/pagination-utils.js +50 -0
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.d.ts +1 -1
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +22 -12
- package/dist/es-dev/components/progress-bar/index.d.ts +1 -1
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +1 -6
- package/dist/es-dev/components/progress-indicator/index.d.ts +1 -1
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.d.ts +2 -5
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +22 -30
- package/dist/es-dev/components/progress-indicator-item/index.d.ts +1 -1
- package/dist/es-dev/components/radio/daikin-radio.d.ts +4 -4
- package/dist/es-dev/components/radio/daikin-radio.js +13 -11
- package/dist/es-dev/components/radio/index.d.ts +1 -1
- package/dist/es-dev/components/radio-group/daikin-radio-group.d.ts +2 -2
- package/dist/es-dev/components/radio-group/daikin-radio-group.js +1 -0
- package/dist/es-dev/components/radio-group/index.d.ts +1 -1
- package/dist/es-dev/components/select/daikin-select.d.ts +6 -1
- package/dist/es-dev/components/select/daikin-select.js +26 -18
- package/dist/es-dev/components/select/index.d.ts +1 -1
- package/dist/es-dev/components/tab/daikin-tab.js +13 -13
- package/dist/es-dev/components/tab/index.d.ts +1 -1
- package/dist/es-dev/components/tab-panels/daikin-tab-panels.d.ts +1 -1
- package/dist/es-dev/components/tab-panels/index.d.ts +1 -1
- package/dist/es-dev/components/table/daikin-table.d.ts +130 -0
- package/dist/es-dev/components/table/daikin-table.js +261 -0
- package/dist/es-dev/components/table/index.d.ts +1 -0
- package/dist/es-dev/components/table/index.js +4 -0
- package/dist/es-dev/components/table-cell/daikin-table-cell.d.ts +41 -0
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +69 -0
- package/dist/es-dev/components/table-cell/index.d.ts +1 -0
- package/dist/es-dev/components/table-cell/index.js +4 -0
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.d.ts +50 -0
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +93 -0
- package/dist/es-dev/components/table-header-cell/index.d.ts +1 -0
- package/dist/es-dev/components/table-header-cell/index.js +4 -0
- package/dist/es-dev/components/tabs/daikin-tabs.js +1 -1
- package/dist/es-dev/components/tabs/index.d.ts +1 -1
- package/dist/es-dev/components/text-area/daikin-text-area.d.ts +3 -3
- package/dist/es-dev/components/text-area/daikin-text-area.js +19 -17
- package/dist/es-dev/components/text-area/index.d.ts +1 -1
- package/dist/es-dev/components/text-field/daikin-text-field.d.ts +4 -4
- package/dist/es-dev/components/text-field/daikin-text-field.js +38 -26
- package/dist/es-dev/components/text-field/index.d.ts +1 -1
- package/dist/es-dev/components/toggle/daikin-toggle.d.ts +3 -3
- package/dist/es-dev/components/toggle/daikin-toggle.js +11 -11
- package/dist/es-dev/components/toggle/index.d.ts +1 -1
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +2 -22
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +42 -85
- package/dist/es-dev/components/tooltip/index.d.ts +1 -1
- package/dist/es-dev/components/tree/common.d.ts +32 -0
- package/dist/es-dev/components/tree/common.js +90 -0
- package/dist/es-dev/components/tree/daikin-tree.d.ts +74 -0
- package/dist/es-dev/components/tree/daikin-tree.js +110 -0
- package/dist/es-dev/components/tree/index.d.ts +1 -0
- package/dist/es-dev/components/tree/index.js +4 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +95 -0
- package/dist/es-dev/components/tree-item/daikin-tree-item.js +198 -0
- package/dist/es-dev/components/tree-item/index.d.ts +1 -0
- package/dist/es-dev/components/tree-item/index.js +5 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +119 -0
- package/dist/es-dev/components/tree-section/daikin-tree-section.js +246 -0
- package/dist/es-dev/components/tree-section/index.d.ts +1 -0
- package/dist/es-dev/components/tree-section/index.js +4 -0
- package/dist/es-dev/controllers/floating-ui-auto-update.d.ts +2 -0
- package/dist/es-dev/controllers/floating-ui-auto-update.js +6 -0
- package/dist/es-dev/index.d.ts +2 -3
- package/dist/es-dev/index.js +25 -2
- package/dist/es-dev/tailwind.css.js +1 -2
- package/dist/es-dev/utils/is-simple-key.d.ts +7 -0
- package/dist/es-dev/utils/is-simple-key.js +6 -0
- package/icons/arrow-up.svg +3 -0
- package/icons/cross.svg +3 -0
- package/icons/pagination-chevron-left.svg +3 -0
- package/icons/pagination-chevron-right.svg +3 -0
- package/icons/sort.svg +3 -0
- package/icons/status-error.svg +1 -1
- package/package.json +61 -57
- package/dist/cjs/colors.cjs +0 -80
- package/dist/cjs/colors.d.ts +0 -69
- package/dist/cjs/components/accordion/index.d.ts +0 -1
- package/dist/cjs/components/accordion-item/index.d.ts +0 -1
- package/dist/cjs/components/breadcrumb/index.d.ts +0 -1
- package/dist/cjs/components/breadcrumb-item/index.d.ts +0 -1
- package/dist/cjs/components/button/index.d.ts +0 -1
- package/dist/cjs/components/checkbox/index.d.ts +0 -1
- package/dist/cjs/components/dropdown/index.d.ts +0 -1
- package/dist/cjs/components/dropdown-item/index.d.ts +0 -1
- package/dist/cjs/components/icon/index.d.ts +0 -1
- package/dist/cjs/components/index.d.ts +0 -25
- package/dist/cjs/components/input-group/index.d.ts +0 -1
- package/dist/cjs/components/list/index.d.ts +0 -1
- package/dist/cjs/components/list-item/index.d.ts +0 -1
- package/dist/cjs/components/notification/index.d.ts +0 -1
- package/dist/cjs/components/progress-bar/index.d.ts +0 -1
- package/dist/cjs/components/progress-indicator/index.d.ts +0 -1
- package/dist/cjs/components/progress-indicator-item/index.d.ts +0 -1
- package/dist/cjs/components/radio/index.d.ts +0 -1
- package/dist/cjs/components/radio-group/index.d.ts +0 -1
- package/dist/cjs/components/select/index.d.ts +0 -1
- package/dist/cjs/components/tab/index.d.ts +0 -1
- package/dist/cjs/components/tab-panels/index.d.ts +0 -1
- package/dist/cjs/components/tabs/index.d.ts +0 -1
- package/dist/cjs/components/text-area/index.d.ts +0 -1
- package/dist/cjs/components/text-field/index.d.ts +0 -1
- package/dist/cjs/components/toggle/index.d.ts +0 -1
- package/dist/cjs/components/tooltip/index.d.ts +0 -1
- package/dist/cjs/index.d.ts +0 -3
- package/dist/cjs-dev/colors.cjs +0 -80
- package/dist/cjs-dev/colors.d.ts +0 -69
- package/dist/cjs-dev/components/accordion/index.d.ts +0 -1
- package/dist/cjs-dev/components/accordion-item/index.d.ts +0 -1
- package/dist/cjs-dev/components/breadcrumb/index.d.ts +0 -1
- package/dist/cjs-dev/components/breadcrumb-item/index.d.ts +0 -1
- package/dist/cjs-dev/components/button/index.d.ts +0 -1
- package/dist/cjs-dev/components/checkbox/index.d.ts +0 -1
- package/dist/cjs-dev/components/dropdown/index.d.ts +0 -1
- package/dist/cjs-dev/components/dropdown-item/index.d.ts +0 -1
- package/dist/cjs-dev/components/icon/index.d.ts +0 -1
- package/dist/cjs-dev/components/index.d.ts +0 -25
- package/dist/cjs-dev/components/input-group/index.d.ts +0 -1
- package/dist/cjs-dev/components/list/index.d.ts +0 -1
- package/dist/cjs-dev/components/list-item/index.d.ts +0 -1
- package/dist/cjs-dev/components/notification/index.d.ts +0 -1
- package/dist/cjs-dev/components/progress-bar/index.d.ts +0 -1
- package/dist/cjs-dev/components/progress-indicator/index.d.ts +0 -1
- package/dist/cjs-dev/components/progress-indicator-item/index.d.ts +0 -1
- package/dist/cjs-dev/components/radio/index.d.ts +0 -1
- package/dist/cjs-dev/components/radio-group/index.d.ts +0 -1
- package/dist/cjs-dev/components/select/index.d.ts +0 -1
- package/dist/cjs-dev/components/tab/index.d.ts +0 -1
- package/dist/cjs-dev/components/tab-panels/index.d.ts +0 -1
- package/dist/cjs-dev/components/tabs/index.d.ts +0 -1
- package/dist/cjs-dev/components/text-area/index.d.ts +0 -1
- package/dist/cjs-dev/components/text-field/index.d.ts +0 -1
- package/dist/cjs-dev/components/toggle/index.d.ts +0 -1
- package/dist/cjs-dev/components/tooltip/index.d.ts +0 -1
- package/dist/cjs-dev/index.d.ts +0 -3
- package/dist/es/colors.d.ts +0 -69
- package/dist/es/colors.js +0 -80
- package/dist/es-dev/colors.d.ts +0 -69
- package/dist/es-dev/colors.js +0 -80
- /package/dist/cjs/components/accordion/{daikin-accordion.d.ts → daikin-accordion.d.cts} +0 -0
- /package/dist/cjs/components/dropdown-item/{daikin-dropdown-item.d.ts → daikin-dropdown-item.d.cts} +0 -0
- /package/dist/cjs/components/list/{daikin-list.d.ts → daikin-list.d.cts} +0 -0
- /package/dist/cjs/components/list-item/{daikin-list-item.d.ts → daikin-list-item.d.cts} +0 -0
- /package/dist/cjs/components/progress-indicator/{daikin-progress-indicator.d.ts → daikin-progress-indicator.d.cts} +0 -0
- /package/dist/cjs/components/tab/{daikin-tab.d.ts → daikin-tab.d.cts} +0 -0
- /package/dist/cjs/components/tabs/{daikin-tabs.d.ts → daikin-tabs.d.cts} +0 -0
- /package/dist/cjs/components/tabs/{scroller.d.ts → scroller.d.cts} +0 -0
- /package/dist/cjs/constants/{events.d.ts → events.d.cts} +0 -0
- /package/dist/cjs/controllers/{click-outside.d.ts → click-outside.d.cts} +0 -0
- /package/dist/cjs/controllers/helpers/{controller-directive.d.ts → controller-directive.d.cts} +0 -0
- /package/dist/cjs/{is-client.d.ts → is-client.d.cts} +0 -0
- /package/dist/cjs/{lit-analyzer-types.d.ts → lit-analyzer-types.d.cts} +0 -0
- /package/dist/cjs/{type-utils.d.ts → type-utils.d.cts} +0 -0
- /package/dist/cjs/utils/{reDispatch.cjs → re-dispatch.cjs} +0 -0
- /package/dist/cjs/utils/{reDispatch.d.ts → re-dispatch.d.cts} +0 -0
- /package/dist/cjs-dev/components/accordion/{daikin-accordion.d.ts → daikin-accordion.d.cts} +0 -0
- /package/dist/cjs-dev/components/dropdown-item/{daikin-dropdown-item.d.ts → daikin-dropdown-item.d.cts} +0 -0
- /package/dist/cjs-dev/components/list/{daikin-list.d.ts → daikin-list.d.cts} +0 -0
- /package/dist/cjs-dev/components/list-item/{daikin-list-item.d.ts → daikin-list-item.d.cts} +0 -0
- /package/dist/cjs-dev/components/progress-indicator/{daikin-progress-indicator.d.ts → daikin-progress-indicator.d.cts} +0 -0
- /package/dist/cjs-dev/components/tab/{daikin-tab.d.ts → daikin-tab.d.cts} +0 -0
- /package/dist/cjs-dev/components/tabs/{daikin-tabs.d.ts → daikin-tabs.d.cts} +0 -0
- /package/dist/cjs-dev/components/tabs/{scroller.d.ts → scroller.d.cts} +0 -0
- /package/dist/cjs-dev/constants/{events.d.ts → events.d.cts} +0 -0
- /package/dist/cjs-dev/controllers/{click-outside.d.ts → click-outside.d.cts} +0 -0
- /package/dist/cjs-dev/controllers/helpers/{controller-directive.d.ts → controller-directive.d.cts} +0 -0
- /package/dist/cjs-dev/{is-client.d.ts → is-client.d.cts} +0 -0
- /package/dist/cjs-dev/{lit-analyzer-types.d.ts → lit-analyzer-types.d.cts} +0 -0
- /package/dist/cjs-dev/{type-utils.d.ts → type-utils.d.cts} +0 -0
- /package/dist/cjs-dev/utils/{reDispatch.cjs → re-dispatch.cjs} +0 -0
- /package/dist/cjs-dev/utils/{reDispatch.d.ts → re-dispatch.d.cts} +0 -0
- /package/dist/es/utils/{reDispatch.d.ts → re-dispatch.d.ts} +0 -0
- /package/dist/es/utils/{reDispatch.js → re-dispatch.js} +0 -0
- /package/dist/es-dev/utils/{reDispatch.d.ts → re-dispatch.d.ts} +0 -0
- /package/dist/es-dev/utils/{reDispatch.js → re-dispatch.js} +0 -0
|
@@ -5,7 +5,6 @@ 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
|
const tailwind = require("../../tailwind.css.cjs");
|
|
8
|
-
require("../icon/daikin-icon.cjs");
|
|
9
8
|
var __defProp = Object.defineProperty;
|
|
10
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
10
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -26,18 +25,30 @@ const INNER_CN = classVarianceAuthority.cva([
|
|
|
26
25
|
"focus-visible:before:outline",
|
|
27
26
|
"focus-visible:before:outline-2",
|
|
28
27
|
"focus-visible:before:-outline-offset-2",
|
|
29
|
-
"focus-visible:before:outline-
|
|
28
|
+
"focus-visible:before:outline-ddt-color-common-border-focus",
|
|
30
29
|
// For buttons and links
|
|
31
|
-
"link-enabled:before:group-hover:[&:not(:active)]:bg-
|
|
32
|
-
"link-enabled:before:active:bg-
|
|
30
|
+
"link-enabled:before:group-hover:[&:not(:active)]:bg-ddt-color-common-surface-hover",
|
|
31
|
+
"link-enabled:before:active:bg-ddt-color-common-surface-press",
|
|
33
32
|
// For text
|
|
34
|
-
"[&:not(a,button)]:before:group-hover:bg-
|
|
33
|
+
"[&:not(a,button)]:before:group-hover:bg-ddt-color-common-surface-hover"
|
|
35
34
|
])();
|
|
36
35
|
const cvaContent = classVarianceAuthority.cva(["block", "pl-2", "pr-3", "text-left"], {
|
|
37
36
|
variants: {
|
|
38
37
|
disabled: {
|
|
39
|
-
false: ["text-
|
|
40
|
-
true: ["text-
|
|
38
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
39
|
+
true: ["text-ddt-color-common-disabled"]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const cvaIcon = classVarianceAuthority.cva(["icon-size-6"], {
|
|
44
|
+
variants: {
|
|
45
|
+
position: {
|
|
46
|
+
left: [],
|
|
47
|
+
right: ["pointer-events-none"]
|
|
48
|
+
},
|
|
49
|
+
disabled: {
|
|
50
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
51
|
+
true: ["text-ddt-color-common-disabled"]
|
|
41
52
|
}
|
|
42
53
|
}
|
|
43
54
|
});
|
|
@@ -66,7 +77,10 @@ exports.DaikinListItem = class DaikinListItem extends lit.LitElement {
|
|
|
66
77
|
render() {
|
|
67
78
|
const disabled = this._disabled;
|
|
68
79
|
const content = lit.html`<span class="flex items-center w-full relative">
|
|
69
|
-
<slot
|
|
80
|
+
<slot
|
|
81
|
+
name="left-icon"
|
|
82
|
+
class=${cvaIcon({ disabled: this.disabled, position: "left" })}
|
|
83
|
+
>
|
|
70
84
|
<span class="block -ml-1"></span>
|
|
71
85
|
</slot>
|
|
72
86
|
<slot class=${cvaContent({ disabled: this.disabled })}></slot>
|
|
@@ -95,7 +109,10 @@ exports.DaikinListItem = class DaikinListItem extends lit.LitElement {
|
|
|
95
109
|
class="flex items-center gap-3"
|
|
96
110
|
@click=${this._handleClickAction}
|
|
97
111
|
>
|
|
98
|
-
<slot
|
|
112
|
+
<slot
|
|
113
|
+
name="right-icon"
|
|
114
|
+
class=${cvaIcon({ disabled: this.disabled, position: "right" })}
|
|
115
|
+
>
|
|
99
116
|
<span class="block -mr-1"></span>
|
|
100
117
|
</slot>
|
|
101
118
|
</slot>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-list-item.cjs";
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const variables_js = require("@daikin-oss/dds-tokens/js/daikin/Light/variables.js");
|
|
4
3
|
const classVarianceAuthority = require("class-variance-authority");
|
|
5
4
|
const lit = require("lit");
|
|
6
5
|
const decorators_js = require("lit/decorators.js");
|
|
7
6
|
const events = require("../../constants/events.cjs");
|
|
8
7
|
const tailwind = require("../../tailwind.css.cjs");
|
|
9
|
-
require("../icon/daikin-icon.cjs");
|
|
10
8
|
var __defProp = Object.defineProperty;
|
|
11
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
10
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -18,7 +16,13 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
16
|
return result;
|
|
19
17
|
};
|
|
20
18
|
const cvaContainer = classVarianceAuthority.cva(
|
|
21
|
-
[
|
|
19
|
+
[
|
|
20
|
+
"flex",
|
|
21
|
+
"box-border",
|
|
22
|
+
"bg-ddt-color-common-background-default",
|
|
23
|
+
"overflow-hidden",
|
|
24
|
+
"font-daikinSerif"
|
|
25
|
+
],
|
|
22
26
|
{
|
|
23
27
|
variants: {
|
|
24
28
|
variant: {
|
|
@@ -31,11 +35,11 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
31
35
|
inline: []
|
|
32
36
|
},
|
|
33
37
|
status: {
|
|
34
|
-
positive: ["border-
|
|
35
|
-
negative: ["border-
|
|
36
|
-
warning: ["border-
|
|
37
|
-
alarm: ["border-
|
|
38
|
-
information: ["border-
|
|
38
|
+
positive: ["border-ddt-color-common-success"],
|
|
39
|
+
negative: ["border-ddt-color-common-danger-default"],
|
|
40
|
+
warning: ["border-ddt-color-common-warning"],
|
|
41
|
+
alarm: ["border-ddt-color-common-alarm"],
|
|
42
|
+
information: ["border-ddt-color-common-information"]
|
|
39
43
|
}
|
|
40
44
|
},
|
|
41
45
|
defaultVariants: {
|
|
@@ -45,15 +49,35 @@ const cvaContainer = classVarianceAuthority.cva(
|
|
|
45
49
|
}
|
|
46
50
|
);
|
|
47
51
|
const cvaIconContainer = classVarianceAuthority.cva(
|
|
48
|
-
[
|
|
52
|
+
[
|
|
53
|
+
"flex-none",
|
|
54
|
+
"flex",
|
|
55
|
+
"justify-center",
|
|
56
|
+
"items-center",
|
|
57
|
+
"w-[2.75rem]",
|
|
58
|
+
"after:size-6",
|
|
59
|
+
"after:text-ddt-color-common-background-default"
|
|
60
|
+
],
|
|
49
61
|
{
|
|
50
62
|
variants: {
|
|
51
63
|
status: {
|
|
52
|
-
positive: [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
64
|
+
positive: [
|
|
65
|
+
"bg-ddt-color-common-success",
|
|
66
|
+
"after:i-daikin-status-positive"
|
|
67
|
+
],
|
|
68
|
+
negative: [
|
|
69
|
+
"bg-ddt-color-common-danger-default",
|
|
70
|
+
"after:i-daikin-status-negative"
|
|
71
|
+
],
|
|
72
|
+
warning: [
|
|
73
|
+
"bg-ddt-color-common-warning",
|
|
74
|
+
"after:i-daikin-status-warning"
|
|
75
|
+
],
|
|
76
|
+
alarm: ["bg-ddt-color-common-alarm", "after:i-daikin-status-alarm"],
|
|
77
|
+
information: [
|
|
78
|
+
"bg-ddt-color-common-information",
|
|
79
|
+
"after:i-daikin-status-information"
|
|
80
|
+
]
|
|
57
81
|
}
|
|
58
82
|
},
|
|
59
83
|
defaultVariants: {
|
|
@@ -85,7 +109,7 @@ exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
|
|
|
85
109
|
this.closeButton = false;
|
|
86
110
|
}
|
|
87
111
|
/**
|
|
88
|
-
* Call the event registered in "close"
|
|
112
|
+
* Call the event registered in "close".
|
|
89
113
|
*/
|
|
90
114
|
_handleClickClose() {
|
|
91
115
|
const event = new CustomEvent(events.EVENT_CLOSE);
|
|
@@ -108,13 +132,7 @@ exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
|
|
|
108
132
|
class=${cvaIconContainer({
|
|
109
133
|
status: this.status
|
|
110
134
|
})}
|
|
111
|
-
>
|
|
112
|
-
<daikin-icon
|
|
113
|
-
icon=${this.status}
|
|
114
|
-
color="white"
|
|
115
|
-
size="xl"
|
|
116
|
-
></daikin-icon>
|
|
117
|
-
</div>
|
|
135
|
+
></div>
|
|
118
136
|
<div
|
|
119
137
|
class="flex justify-between items-center gap-5 p-5 text-lg flex-auto flex-shrink-0"
|
|
120
138
|
>
|
|
@@ -134,15 +152,9 @@ exports.DaikinNotification = class DaikinNotification extends lit.LitElement {
|
|
|
134
152
|
<div class="flex items-center gap-5">
|
|
135
153
|
<button
|
|
136
154
|
aria-label="Close"
|
|
137
|
-
class="relative flex w-5 h-5"
|
|
155
|
+
class="relative flex w-5 h-5 after:i-daikin-notification-close after:size-5 after:text-[#a0a0a0]"
|
|
138
156
|
@click=${this._handleClickClose}
|
|
139
|
-
>
|
|
140
|
-
<daikin-icon
|
|
141
|
-
icon="close"
|
|
142
|
-
size="l"
|
|
143
|
-
color="default"
|
|
144
|
-
></daikin-icon>
|
|
145
|
-
</button>
|
|
157
|
+
></button>
|
|
146
158
|
</div>
|
|
147
159
|
` : lit.nothing}
|
|
148
160
|
</div>
|
|
@@ -153,12 +165,6 @@ exports.DaikinNotification.styles = lit.css`
|
|
|
153
165
|
${lit.unsafeCSS(tailwind.default)}
|
|
154
166
|
|
|
155
167
|
:host {
|
|
156
|
-
--colorFeedbackPositive: ${lit.unsafeCSS(variables_js.colorFeedbackPositive)};
|
|
157
|
-
--colorFeedbackWarning: ${lit.unsafeCSS(variables_js.colorFeedbackWarning)};
|
|
158
|
-
--colorFeedbackNegative: ${lit.unsafeCSS(variables_js.colorFeedbackNegative)};
|
|
159
|
-
--colorFeedbackAlarm: #f68c54;
|
|
160
|
-
--colorFeedbackInformation: #0097e0;
|
|
161
|
-
|
|
162
168
|
display: block;
|
|
163
169
|
}
|
|
164
170
|
|
|
@@ -183,7 +189,7 @@ __decorateClass([
|
|
|
183
189
|
decorators_js.property({ type: Boolean, reflect: true })
|
|
184
190
|
], exports.DaikinNotification.prototype, "open", 2);
|
|
185
191
|
__decorateClass([
|
|
186
|
-
decorators_js.property({ type: Boolean })
|
|
192
|
+
decorators_js.property({ type: Boolean, attribute: "close-button" })
|
|
187
193
|
], exports.DaikinNotification.prototype, "closeButton", 2);
|
|
188
194
|
exports.DaikinNotification = __decorateClass([
|
|
189
195
|
decorators_js.customElement("daikin-notification")
|
package/dist/cjs/components/notification/{daikin-notification.d.ts → daikin-notification.d.cts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, nothing } from 'lit';
|
|
2
|
-
import { MergeVariantProps } from
|
|
2
|
+
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
3
|
declare const cvaContainer: (props?: ({
|
|
4
4
|
variant?: "toast" | "inline" | null | undefined;
|
|
5
5
|
status?: "alarm" | "information" | "negative" | "positive" | "warning" | null | undefined;
|
|
@@ -44,27 +44,27 @@ type NotificationVariantProps = MergeVariantProps<typeof cvaContainer | typeof c
|
|
|
44
44
|
export declare class DaikinNotification extends LitElement {
|
|
45
45
|
static readonly styles: import('lit').CSSResult;
|
|
46
46
|
/**
|
|
47
|
-
* Type of notification
|
|
47
|
+
* Type of notification.
|
|
48
48
|
*/
|
|
49
49
|
variant: NotificationVariantProps["variant"];
|
|
50
50
|
/**
|
|
51
|
-
* Status of notification
|
|
51
|
+
* Status of notification.
|
|
52
52
|
*/
|
|
53
53
|
status: NotificationVariantProps["status"];
|
|
54
54
|
/**
|
|
55
|
-
* Display in single or multiple lines
|
|
55
|
+
* Display in single or multiple lines.
|
|
56
56
|
*/
|
|
57
57
|
line: NotificationVariantProps["line"];
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Specify the notification's open state.
|
|
60
60
|
*/
|
|
61
61
|
open: boolean;
|
|
62
62
|
/**
|
|
63
|
-
* Whether to display the close button
|
|
63
|
+
* Whether to display the close button.
|
|
64
64
|
*/
|
|
65
65
|
closeButton: boolean;
|
|
66
66
|
/**
|
|
67
|
-
* Call the event registered in "close"
|
|
67
|
+
* Call the event registered in "close".
|
|
68
68
|
*/
|
|
69
69
|
private _handleClickClose;
|
|
70
70
|
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-notification.cjs";
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
4
|
+
const lit = require("lit");
|
|
5
|
+
const decorators_js = require("lit/decorators.js");
|
|
6
|
+
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
|
+
const repeat_js = require("lit/directives/repeat.js");
|
|
8
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
9
|
+
const paginationUtils = require("./pagination-utils.cjs");
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators[i])
|
|
16
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
+
if (kind && result) __defProp(target, key, result);
|
|
18
|
+
return result;
|
|
19
|
+
};
|
|
20
|
+
const cvaPageButton = classVarianceAuthority.cva(
|
|
21
|
+
[
|
|
22
|
+
"border-0",
|
|
23
|
+
"no-underline",
|
|
24
|
+
"flex",
|
|
25
|
+
"relative",
|
|
26
|
+
"items-center",
|
|
27
|
+
"justify-center",
|
|
28
|
+
"min-w-12",
|
|
29
|
+
"min-h-12",
|
|
30
|
+
"font-daikinSerif",
|
|
31
|
+
"text-base",
|
|
32
|
+
"not-italic",
|
|
33
|
+
"leading-6",
|
|
34
|
+
"focus-visible:outline",
|
|
35
|
+
"focus-visible:outline-2",
|
|
36
|
+
"focus-visible:outline-offset-1",
|
|
37
|
+
"focus-visible:outline-ddt-color-common-border-focus"
|
|
38
|
+
],
|
|
39
|
+
{
|
|
40
|
+
variants: {
|
|
41
|
+
active: {
|
|
42
|
+
true: [
|
|
43
|
+
"text-ddt-color-common-brand-default",
|
|
44
|
+
"focus-visible:text-ddt-color-common-brand-default",
|
|
45
|
+
"font-bold",
|
|
46
|
+
"hover:text-ddt-color-common-border-focus",
|
|
47
|
+
"hover:bg-ddt-color-common-surface-selected-default",
|
|
48
|
+
"active:text-ddt-color-common-brand-press",
|
|
49
|
+
"active:bg-ddt-color-common-surface-selected-press",
|
|
50
|
+
"after:bg-ddt-color-common-brand-default",
|
|
51
|
+
"after:content-['']",
|
|
52
|
+
"after:h-1",
|
|
53
|
+
"after:absolute",
|
|
54
|
+
"after:inset-0",
|
|
55
|
+
"after:top-auto"
|
|
56
|
+
],
|
|
57
|
+
false: [
|
|
58
|
+
"font-normal",
|
|
59
|
+
"text-ddt-color-common-neutral-default",
|
|
60
|
+
"active:bg-ddt-color-common-surface-neutral-press",
|
|
61
|
+
"active:text-ddt-color-common-text-primary",
|
|
62
|
+
"hover:bg-ddt-color-common-surface-neutral-hover",
|
|
63
|
+
"hover:text-ddt-color-common-neutral-hover"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
const cvaEllipsis = classVarianceAuthority.cva([
|
|
70
|
+
"relative",
|
|
71
|
+
"border-0",
|
|
72
|
+
"no-underline",
|
|
73
|
+
"flex",
|
|
74
|
+
"items-center",
|
|
75
|
+
"justify-center",
|
|
76
|
+
"w-12",
|
|
77
|
+
"h-12",
|
|
78
|
+
"font-daikinSerif",
|
|
79
|
+
"text-base",
|
|
80
|
+
"not-italic",
|
|
81
|
+
"font-normal",
|
|
82
|
+
"leading-6",
|
|
83
|
+
"text-ddt-color-common-neutral-default"
|
|
84
|
+
]);
|
|
85
|
+
const cvaChevronButton = classVarianceAuthority.cva([
|
|
86
|
+
"border-0",
|
|
87
|
+
"no-underline",
|
|
88
|
+
"flex",
|
|
89
|
+
"items-center",
|
|
90
|
+
"justify-center",
|
|
91
|
+
"w-12",
|
|
92
|
+
"h-12",
|
|
93
|
+
"text-ddt-color-common-neutral-default",
|
|
94
|
+
"font-daikinSerif",
|
|
95
|
+
"text-base",
|
|
96
|
+
"not-italic",
|
|
97
|
+
"font-normal",
|
|
98
|
+
"leading-6",
|
|
99
|
+
"enabled:hover:bg-ddt-color-common-surface-neutral-hover",
|
|
100
|
+
"enabled:hover:text-ddt-color-common-neutral-hover",
|
|
101
|
+
"enabled:active:bg-ddt-color-common-surface-neutral-press",
|
|
102
|
+
"enabled:active:text-ddt-color-common-neutral-press",
|
|
103
|
+
"disabled:!text-ddt-color-common-disabled",
|
|
104
|
+
"focus-visible:outline",
|
|
105
|
+
"focus-visible:outline-2",
|
|
106
|
+
"focus-visible:outline-offset-1",
|
|
107
|
+
"focus-visible:outline-ddt-color-common-border-focus"
|
|
108
|
+
]);
|
|
109
|
+
exports.DaikinPagination = class DaikinPagination extends lit.LitElement {
|
|
110
|
+
constructor() {
|
|
111
|
+
super(...arguments);
|
|
112
|
+
this.current = 1;
|
|
113
|
+
this.total = 1;
|
|
114
|
+
this.window = 5;
|
|
115
|
+
}
|
|
116
|
+
_goto(page) {
|
|
117
|
+
this.current = this.current = Math.max(Math.min(page, this.total), 1);
|
|
118
|
+
this.dispatchEvent(
|
|
119
|
+
new Event("change", {
|
|
120
|
+
bubbles: true,
|
|
121
|
+
composed: true,
|
|
122
|
+
cancelable: true
|
|
123
|
+
})
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
_gotoOffset(offset) {
|
|
127
|
+
this._goto(this.current + offset);
|
|
128
|
+
}
|
|
129
|
+
render() {
|
|
130
|
+
const cvaChevron = cvaChevronButton();
|
|
131
|
+
const pageArray = paginationUtils.calculatePagination(
|
|
132
|
+
this.total,
|
|
133
|
+
this.current,
|
|
134
|
+
this.window
|
|
135
|
+
);
|
|
136
|
+
return lit.html`
|
|
137
|
+
<div aria-label="Pagination" class="inline-flex gap-1">
|
|
138
|
+
<button
|
|
139
|
+
class=${cvaChevron}
|
|
140
|
+
type="button"
|
|
141
|
+
aria-label="Go to the previous page."
|
|
142
|
+
?disabled=${this.current === 1}
|
|
143
|
+
@click=${() => this._gotoOffset(-1)}
|
|
144
|
+
>
|
|
145
|
+
<span class="i-daikin-pagination-chevron-left w-4 h-4"></span>
|
|
146
|
+
</button>
|
|
147
|
+
${repeat_js.repeat(
|
|
148
|
+
pageArray,
|
|
149
|
+
(item, index) => item.type === "page" ? `p${item.page}` : `e${index}`,
|
|
150
|
+
(item) => {
|
|
151
|
+
if (item.type === "page") {
|
|
152
|
+
const buttonClassName = cvaPageButton({
|
|
153
|
+
active: this.current === item.page
|
|
154
|
+
});
|
|
155
|
+
return lit.html`
|
|
156
|
+
<button
|
|
157
|
+
type="button"
|
|
158
|
+
class=${buttonClassName}
|
|
159
|
+
@click=${() => this._goto(item.page)}
|
|
160
|
+
aria-label="Go to page ${item.page}"
|
|
161
|
+
aria-current=${ifDefined_js.ifDefined(
|
|
162
|
+
item.page === this.current ? "page" : void 0
|
|
163
|
+
)}
|
|
164
|
+
>
|
|
165
|
+
${item.page}
|
|
166
|
+
</button>
|
|
167
|
+
`;
|
|
168
|
+
} else {
|
|
169
|
+
return lit.html`
|
|
170
|
+
<span class=${cvaEllipsis()}>
|
|
171
|
+
<button
|
|
172
|
+
type="button"
|
|
173
|
+
disabled
|
|
174
|
+
aria-label="Expand the omitted pages."
|
|
175
|
+
class="after:content-['._._.']"
|
|
176
|
+
></button>
|
|
177
|
+
</span>
|
|
178
|
+
`;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
)}
|
|
182
|
+
<button
|
|
183
|
+
type="button"
|
|
184
|
+
class=${cvaChevron}
|
|
185
|
+
aria-label="Go to the next page."
|
|
186
|
+
?disabled=${this.current === this.total}
|
|
187
|
+
@click=${() => this._gotoOffset(1)}
|
|
188
|
+
>
|
|
189
|
+
<span class="i-daikin-pagination-chevron-right w-4 h-4"></span>
|
|
190
|
+
</button>
|
|
191
|
+
</div>
|
|
192
|
+
`;
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
exports.DaikinPagination.styles = lit.css`
|
|
196
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
197
|
+
|
|
198
|
+
:host {
|
|
199
|
+
display: inline-flex;
|
|
200
|
+
}
|
|
201
|
+
`;
|
|
202
|
+
__decorateClass([
|
|
203
|
+
decorators_js.property({ type: Number, reflect: true })
|
|
204
|
+
], exports.DaikinPagination.prototype, "current", 2);
|
|
205
|
+
__decorateClass([
|
|
206
|
+
decorators_js.property({ type: Number, reflect: true })
|
|
207
|
+
], exports.DaikinPagination.prototype, "total", 2);
|
|
208
|
+
__decorateClass([
|
|
209
|
+
decorators_js.property({ type: Number, reflect: true })
|
|
210
|
+
], exports.DaikinPagination.prototype, "window", 2);
|
|
211
|
+
exports.DaikinPagination = __decorateClass([
|
|
212
|
+
decorators_js.customElement("daikin-pagination")
|
|
213
|
+
], exports.DaikinPagination);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* The pagination component is used to navigate through a list of items that are divided into multiple pages.
|
|
4
|
+
*
|
|
5
|
+
* @fires change - Emitted when the current page number is changed.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
*
|
|
9
|
+
* ```html
|
|
10
|
+
* <daikin-pagination window="5" total="20" current="3"></daikin-pagination>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class DaikinPagination extends LitElement {
|
|
14
|
+
static readonly styles: import('lit').CSSResult;
|
|
15
|
+
/**
|
|
16
|
+
* The current page number, starting at 1.
|
|
17
|
+
* Must be greater than 0 and less than or equal to `this.total`.
|
|
18
|
+
*/
|
|
19
|
+
current: number;
|
|
20
|
+
/**
|
|
21
|
+
* The number of pages.
|
|
22
|
+
* Must be greater than 0.
|
|
23
|
+
*/
|
|
24
|
+
total: number;
|
|
25
|
+
/**
|
|
26
|
+
* Number of elements to display in pagination, including ellipses.
|
|
27
|
+
* Must be greater than or equal to 5.
|
|
28
|
+
* If a value less than 5 is specified, it will be treated as 5.
|
|
29
|
+
*/
|
|
30
|
+
window: number;
|
|
31
|
+
private _goto;
|
|
32
|
+
private _gotoOffset;
|
|
33
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
"daikin-pagination": DaikinPagination;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const daikinPagination = require("./daikin-pagination.cjs");
|
|
4
|
+
Object.defineProperty(exports, "DaikinPagination", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
get: () => daikinPagination.DaikinPagination
|
|
7
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-pagination.cjs";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function sequence(begin, end) {
|
|
4
|
+
const length = Math.max(end - begin, 0);
|
|
5
|
+
return Array.from({ length }, (_, i) => begin + i);
|
|
6
|
+
}
|
|
7
|
+
function pageSequence(begin, end) {
|
|
8
|
+
return sequence(begin, end).map((page) => ({ type: "page", page }));
|
|
9
|
+
}
|
|
10
|
+
function calculatePagination(total, current, window) {
|
|
11
|
+
if (total < 1) {
|
|
12
|
+
total = 1;
|
|
13
|
+
}
|
|
14
|
+
if (window < 5) {
|
|
15
|
+
window = 5;
|
|
16
|
+
}
|
|
17
|
+
if (total <= window) {
|
|
18
|
+
return pageSequence(1, total + 1);
|
|
19
|
+
}
|
|
20
|
+
const centerLeft = current - Math.floor((window - 5) / 2);
|
|
21
|
+
const centerRight = centerLeft + window - 5;
|
|
22
|
+
if (centerLeft <= 3) {
|
|
23
|
+
return [
|
|
24
|
+
...pageSequence(1, window - 1),
|
|
25
|
+
{ type: "ellipsis", pages: sequence(window - 1, total) },
|
|
26
|
+
{ type: "page", page: total }
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
if (centerRight >= total - 2) {
|
|
30
|
+
return [
|
|
31
|
+
{ type: "page", page: 1 },
|
|
32
|
+
{ type: "ellipsis", pages: sequence(2, total - (window - 3)) },
|
|
33
|
+
...sequence(total - (window - 3), total).map(
|
|
34
|
+
(value) => ({ type: "page", page: value })
|
|
35
|
+
),
|
|
36
|
+
{ type: "page", page: total }
|
|
37
|
+
];
|
|
38
|
+
}
|
|
39
|
+
return [
|
|
40
|
+
// Both sides need an ellipsis.
|
|
41
|
+
{ type: "page", page: 1 },
|
|
42
|
+
{ type: "ellipsis", pages: sequence(2, centerLeft) },
|
|
43
|
+
...pageSequence(centerLeft, centerRight + 1),
|
|
44
|
+
{ type: "ellipsis", pages: sequence(centerRight + 1, total) },
|
|
45
|
+
{ type: "page", page: total }
|
|
46
|
+
];
|
|
47
|
+
}
|
|
48
|
+
exports.calculatePagination = calculatePagination;
|
|
49
|
+
exports.pageSequence = pageSequence;
|
|
50
|
+
exports.sequence = sequence;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface Page {
|
|
2
|
+
type: "page";
|
|
3
|
+
page: number;
|
|
4
|
+
}
|
|
5
|
+
interface Ellipsis {
|
|
6
|
+
type: "ellipsis";
|
|
7
|
+
pages: number[];
|
|
8
|
+
}
|
|
9
|
+
export type PaginationContent = (Page | Ellipsis)[];
|
|
10
|
+
/**
|
|
11
|
+
* Generates an array of a sequence of numbers in the range `[begin, end)`.
|
|
12
|
+
*
|
|
13
|
+
* @param begin The value of the first element in the generated array.
|
|
14
|
+
* @param end The value of the last element of the generated array + 1.
|
|
15
|
+
* @returns An array of increasing sequences. Empty if `begin` is greater than or equal to `end`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function sequence(begin: number, end: number): number[];
|
|
18
|
+
export declare function pageSequence(begin: number, end: number): Page[];
|
|
19
|
+
/**
|
|
20
|
+
* Calculate the display and hidden page items.
|
|
21
|
+
*
|
|
22
|
+
* @param total The total pages number.
|
|
23
|
+
* @param current The current page number.
|
|
24
|
+
* @param window Number of elements to display in pagination.
|
|
25
|
+
* @returns {PaginationContent}.
|
|
26
|
+
*/
|
|
27
|
+
export declare function calculatePagination(total: number, current: number, window: number): PaginationContent;
|
|
28
|
+
export {};
|