@daikin-oss/design-system-web-components 0.6.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 +58 -0
- package/README.md +40 -23
- package/dist/cjs/components/accordion-item/daikin-accordion-item.cjs +8 -8
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.cjs +19 -80
- package/dist/cjs/components/breadcrumb/daikin-breadcrumb.d.cts +11 -23
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.cjs +25 -77
- package/dist/cjs/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +14 -23
- package/dist/cjs/components/button/daikin-button.cjs +16 -15
- package/dist/cjs/components/button/daikin-button.d.cts +2 -2
- 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 +29 -29
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +14 -14
- package/dist/cjs/components/dropdown-item/daikin-dropdown-item.cjs +9 -9
- package/dist/cjs/components/icon/daikin-icon.cjs +8 -8
- package/dist/cjs/components/icon/daikin-icon.d.cts +3 -3
- package/dist/cjs/components/icon-button/daikin-icon-button.cjs +21 -20
- package/dist/cjs/components/index.cjs +31 -0
- package/dist/cjs/components/index.d.cts +6 -0
- package/dist/cjs/components/input-group/daikin-input-group.cjs +61 -45
- package/dist/cjs/components/input-group/daikin-input-group.d.cts +10 -1
- package/dist/cjs/components/link/daikin-link.cjs +32 -50
- package/dist/cjs/components/list-item/daikin-list-item.cjs +8 -8
- package/dist/cjs/components/notification/daikin-notification.cjs +18 -19
- package/dist/cjs/components/pagination/daikin-pagination.cjs +22 -24
- package/dist/cjs/components/progress-bar/daikin-progress-bar.cjs +22 -12
- package/dist/cjs/components/progress-indicator/daikin-progress-indicator.cjs +1 -6
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +12 -12
- package/dist/cjs/components/radio/daikin-radio.cjs +12 -10
- package/dist/cjs/components/select/daikin-select.cjs +11 -11
- package/dist/cjs/components/tab/daikin-tab.cjs +13 -13
- package/dist/cjs/components/table/daikin-table.cjs +6 -6
- package/dist/cjs/components/table-cell/daikin-table-cell.cjs +2 -2
- package/dist/cjs/components/table-header-cell/daikin-table-header-cell.cjs +4 -5
- package/dist/cjs/components/tabs/daikin-tabs.cjs +1 -1
- package/dist/cjs/components/text-area/daikin-text-area.cjs +16 -14
- package/dist/cjs/components/text-field/daikin-text-field.cjs +14 -13
- package/dist/cjs/components/toggle/daikin-toggle.cjs +10 -10
- package/dist/cjs/components/tooltip/daikin-tooltip.cjs +3 -3
- package/dist/cjs/components/tooltip/daikin-tooltip.d.cts +1 -1
- 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/index.cjs +31 -2
- package/dist/cjs/index.d.cts +0 -1
- package/dist/cjs/tailwind.css.cjs +1 -1
- 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-item/daikin-accordion-item.cjs +8 -8
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.cjs +19 -80
- package/dist/cjs-dev/components/breadcrumb/daikin-breadcrumb.d.cts +11 -23
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.cjs +25 -77
- package/dist/cjs-dev/components/breadcrumb-item/daikin-breadcrumb-item.d.cts +14 -23
- package/dist/cjs-dev/components/button/daikin-button.cjs +16 -15
- package/dist/cjs-dev/components/button/daikin-button.d.cts +2 -2
- 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 +29 -29
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +14 -14
- package/dist/cjs-dev/components/dropdown-item/daikin-dropdown-item.cjs +9 -9
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +8 -8
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +3 -3
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.cjs +21 -20
- package/dist/cjs-dev/components/index.cjs +31 -0
- package/dist/cjs-dev/components/index.d.cts +6 -0
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +61 -45
- package/dist/cjs-dev/components/input-group/daikin-input-group.d.cts +10 -1
- package/dist/cjs-dev/components/link/daikin-link.cjs +32 -50
- package/dist/cjs-dev/components/list-item/daikin-list-item.cjs +8 -8
- package/dist/cjs-dev/components/notification/daikin-notification.cjs +18 -19
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +22 -24
- package/dist/cjs-dev/components/progress-bar/daikin-progress-bar.cjs +22 -12
- package/dist/cjs-dev/components/progress-indicator/daikin-progress-indicator.cjs +1 -6
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +12 -12
- package/dist/cjs-dev/components/radio/daikin-radio.cjs +12 -10
- package/dist/cjs-dev/components/select/daikin-select.cjs +11 -11
- package/dist/cjs-dev/components/tab/daikin-tab.cjs +13 -13
- package/dist/cjs-dev/components/table/daikin-table.cjs +6 -6
- package/dist/cjs-dev/components/table-cell/daikin-table-cell.cjs +2 -2
- package/dist/cjs-dev/components/table-header-cell/daikin-table-header-cell.cjs +4 -5
- package/dist/cjs-dev/components/tabs/daikin-tabs.cjs +1 -1
- package/dist/cjs-dev/components/text-area/daikin-text-area.cjs +16 -14
- package/dist/cjs-dev/components/text-field/daikin-text-field.cjs +14 -13
- package/dist/cjs-dev/components/toggle/daikin-toggle.cjs +10 -10
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.cjs +3 -3
- package/dist/cjs-dev/components/tooltip/daikin-tooltip.d.cts +1 -1
- 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/index.cjs +31 -2
- package/dist/cjs-dev/index.d.cts +0 -1
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- 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-item/daikin-accordion-item.js +8 -8
- 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-item/daikin-breadcrumb-item.d.ts +14 -23
- package/dist/es/components/breadcrumb-item/daikin-breadcrumb-item.js +26 -78
- package/dist/es/components/button/daikin-button.d.ts +2 -2
- package/dist/es/components/button/daikin-button.js +16 -15
- 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.js +29 -29
- package/dist/es/components/dropdown/daikin-dropdown.js +14 -14
- package/dist/es/components/dropdown-item/daikin-dropdown-item.js +9 -9
- package/dist/es/components/icon/daikin-icon.d.ts +3 -3
- package/dist/es/components/icon/daikin-icon.js +8 -8
- package/dist/es/components/icon-button/daikin-icon-button.js +21 -20
- package/dist/es/components/index.d.ts +6 -0
- package/dist/es/components/index.js +13 -0
- package/dist/es/components/input-group/daikin-input-group.d.ts +10 -1
- package/dist/es/components/input-group/daikin-input-group.js +61 -45
- package/dist/es/components/link/daikin-link.js +32 -50
- package/dist/es/components/list-item/daikin-list-item.js +8 -8
- package/dist/es/components/notification/daikin-notification.js +18 -19
- package/dist/es/components/pagination/daikin-pagination.js +22 -24
- package/dist/es/components/progress-bar/daikin-progress-bar.js +22 -12
- package/dist/es/components/progress-indicator/daikin-progress-indicator.js +1 -6
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +12 -12
- package/dist/es/components/radio/daikin-radio.js +12 -10
- package/dist/es/components/select/daikin-select.js +11 -11
- package/dist/es/components/tab/daikin-tab.js +13 -13
- package/dist/es/components/table/daikin-table.js +6 -6
- package/dist/es/components/table-cell/daikin-table-cell.js +2 -2
- package/dist/es/components/table-header-cell/daikin-table-header-cell.js +4 -5
- package/dist/es/components/tabs/daikin-tabs.js +1 -1
- package/dist/es/components/text-area/daikin-text-area.js +16 -14
- package/dist/es/components/text-field/daikin-text-field.js +14 -13
- package/dist/es/components/toggle/daikin-toggle.js +10 -10
- package/dist/es/components/tooltip/daikin-tooltip.d.ts +1 -1
- package/dist/es/components/tooltip/daikin-tooltip.js +3 -3
- 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/index.d.ts +0 -1
- package/dist/es/index.js +13 -2
- package/dist/es/tailwind.css.js +1 -1
- 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-item/daikin-accordion-item.js +8 -8
- 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-item/daikin-breadcrumb-item.d.ts +14 -23
- package/dist/es-dev/components/breadcrumb-item/daikin-breadcrumb-item.js +26 -78
- package/dist/es-dev/components/button/daikin-button.d.ts +2 -2
- package/dist/es-dev/components/button/daikin-button.js +16 -15
- 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.js +29 -29
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +14 -14
- package/dist/es-dev/components/dropdown-item/daikin-dropdown-item.js +9 -9
- package/dist/es-dev/components/icon/daikin-icon.d.ts +3 -3
- package/dist/es-dev/components/icon/daikin-icon.js +8 -8
- package/dist/es-dev/components/icon-button/daikin-icon-button.js +21 -20
- package/dist/es-dev/components/index.d.ts +6 -0
- package/dist/es-dev/components/index.js +13 -0
- package/dist/es-dev/components/input-group/daikin-input-group.d.ts +10 -1
- package/dist/es-dev/components/input-group/daikin-input-group.js +61 -45
- package/dist/es-dev/components/link/daikin-link.js +32 -50
- package/dist/es-dev/components/list-item/daikin-list-item.js +8 -8
- package/dist/es-dev/components/notification/daikin-notification.js +18 -19
- package/dist/es-dev/components/pagination/daikin-pagination.js +22 -24
- package/dist/es-dev/components/progress-bar/daikin-progress-bar.js +22 -12
- package/dist/es-dev/components/progress-indicator/daikin-progress-indicator.js +1 -6
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +12 -12
- package/dist/es-dev/components/radio/daikin-radio.js +12 -10
- package/dist/es-dev/components/select/daikin-select.js +11 -11
- package/dist/es-dev/components/tab/daikin-tab.js +13 -13
- package/dist/es-dev/components/table/daikin-table.js +6 -6
- package/dist/es-dev/components/table-cell/daikin-table-cell.js +2 -2
- package/dist/es-dev/components/table-header-cell/daikin-table-header-cell.js +4 -5
- package/dist/es-dev/components/tabs/daikin-tabs.js +1 -1
- package/dist/es-dev/components/text-area/daikin-text-area.js +16 -14
- package/dist/es-dev/components/text-field/daikin-text-field.js +14 -13
- package/dist/es-dev/components/toggle/daikin-toggle.js +10 -10
- package/dist/es-dev/components/tooltip/daikin-tooltip.d.ts +1 -1
- package/dist/es-dev/components/tooltip/daikin-tooltip.js +3 -3
- 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/index.d.ts +0 -1
- package/dist/es-dev/index.js +13 -2
- package/dist/es-dev/tailwind.css.js +1 -1
- 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/sort.svg +1 -1
- package/icons/status-error.svg +1 -1
- package/package.json +8 -3
- package/dist/cjs/colors.cjs +0 -80
- package/dist/cjs/colors.d.cts +0 -69
- package/dist/cjs-dev/colors.cjs +0 -80
- package/dist/cjs-dev/colors.d.cts +0 -69
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# @daikin-oss/design-system-web-components
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#100](https://github.com/dsv-rp/DDS/pull/100) [`b26b122`](https://github.com/dsv-rp/DDS/commit/b26b122562a2dc6400d91026fd9e04e6d4b5f324) Thanks [@poetrainy](https://github.com/poetrainy)! - Progress Indicator: Updated appearance. (DDS-1302)
|
|
8
|
+
|
|
9
|
+
- [#104](https://github.com/dsv-rp/DDS/pull/104) [`c01e66d`](https://github.com/dsv-rp/DDS/commit/c01e66d51936cb04d46e5daf7ca6239ca85826ba) Thanks [@poetrainy](https://github.com/poetrainy)! - **BREAKING CHANGE** Breadcrumb: The `trailing-slash` and `overflow` attributes have been removed. (DDS-1642)
|
|
10
|
+
**BREAKING CHANGE** Breadcrumb Item: The `trailing-slash` attribute has been removed. (DDS-1642)
|
|
11
|
+
**BREAKING CHANGE** Breadcrumb Item: The `ellipsis` value of the `variant` attribute has been removed. In addition, the `current` value has been added. (DDS-1642)
|
|
12
|
+
Breadcrumb: The `show-visited` attribute has been added. (DDS-1642)
|
|
13
|
+
Breadcrumb: Updated appearance. (DDS-1642)
|
|
14
|
+
Breadcrumb Item: The `show-visited` attribute has been added. (DDS-1642)
|
|
15
|
+
Breadcrumb Item: Updated appearance. (DDS-1642)
|
|
16
|
+
|
|
17
|
+
- [#105](https://github.com/dsv-rp/DDS/pull/105) [`63cf888`](https://github.com/dsv-rp/DDS/commit/63cf8884649d46837e4012b9d85913dd7bf0cd5f) Thanks [@yodas7](https://github.com/yodas7)! - **BREAKING CHANGE** The `@daikin-oss/design-system-web-components` package now requires `@daikin-oss/dds-tokens` package as a peer dependency.
|
|
18
|
+
**BREAKING CHANGE** The `colors.js` file, which exported colors, has been removed. Please use `@daikin-oss/dds-tokens` instead.
|
|
19
|
+
**BREAKING CHANGE** Icon, Tooltip: Changed the prefix for CSS custom properties to `--ddc-` from `--dds-` to avoid conflicts.
|
|
20
|
+
|
|
21
|
+
- [#73](https://github.com/dsv-rp/DDS/pull/73) [`18a71f6`](https://github.com/dsv-rp/DDS/commit/18a71f6a86fd4bc1cf04172b0e646a657048cd42) Thanks [@poetrainy](https://github.com/poetrainy)! - Tree: Initial Implementation.
|
|
22
|
+
|
|
23
|
+
- [#99](https://github.com/dsv-rp/DDS/pull/99) [`0efff7a`](https://github.com/dsv-rp/DDS/commit/0efff7a021f73388d22f50df96be833a4b446ae7) Thanks [@poetrainy](https://github.com/poetrainy)! - Input Group: Updated appearance.
|
|
24
|
+
Progress bar: Updated appearance.
|
|
25
|
+
|
|
26
|
+
- [#107](https://github.com/dsv-rp/DDS/pull/107) [`2af6462`](https://github.com/dsv-rp/DDS/commit/2af646292808a87f5095f7d97e7647dde3ac2260) Thanks [@yodas7](https://github.com/yodas7)! - Accordion: Replaced colors with design tokens (brings dark mode support).
|
|
27
|
+
Breadcrumb: Replaced colors with design tokens (brings dark mode support).
|
|
28
|
+
Button: Replaced colors with design tokens (brings dark mode support).
|
|
29
|
+
Checkbox: Replaced colors with design tokens (brings dark mode support).
|
|
30
|
+
Dropdown: Replaced colors with design tokens (brings dark mode support).
|
|
31
|
+
Icon: Replaced colors with design tokens (brings dark mode support).
|
|
32
|
+
Icon Button: Replaced colors with design tokens (brings dark mode support).
|
|
33
|
+
Input Group: Replaced colors with design tokens (brings dark mode support).
|
|
34
|
+
Link: Replaced colors with design tokens (brings dark mode support).
|
|
35
|
+
List: Replaced colors with design tokens (brings dark mode support).
|
|
36
|
+
Notification: Replaced colors with design tokens (brings dark mode support).
|
|
37
|
+
Pagination: Replaced colors with design tokens (brings dark mode support).
|
|
38
|
+
Progress Bar: Replaced colors with design tokens (brings dark mode support).
|
|
39
|
+
Progress Indicator: Replaced colors with design tokens (brings dark mode support).
|
|
40
|
+
Radio Button: Replaced colors with design tokens (brings dark mode support).
|
|
41
|
+
Select: Replaced colors with design tokens (brings dark mode support).
|
|
42
|
+
Tab: Replaced colors with design tokens (brings dark mode support).
|
|
43
|
+
Table: Replaced colors with design tokens (brings dark mode support).
|
|
44
|
+
Text Area: Replaced colors with design tokens (brings dark mode support).
|
|
45
|
+
Text Field: Replaced colors with design tokens (brings dark mode support).
|
|
46
|
+
Toggle: Replaced colors with design tokens (brings dark mode support).
|
|
47
|
+
Tree: Replaced colors with design tokens (brings dark mode support).
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- [#111](https://github.com/dsv-rp/DDS/pull/111) [`598656f`](https://github.com/dsv-rp/DDS/commit/598656fc3851ac15461ffff9ca228fa9ad904deb) Thanks [@rinjInTokyo](https://github.com/rinjInTokyo)! - Card: Initial Implementation. (DDS-1209)
|
|
52
|
+
|
|
53
|
+
- [#110](https://github.com/dsv-rp/DDS/pull/110) [`5d5db6b`](https://github.com/dsv-rp/DDS/commit/5d5db6b2990aae84511f5c4e721d101dc7887153) Thanks [@poetrainy](https://github.com/poetrainy)! - Icon Button: Fixed the issue where the size could not be changed. (DDS-1650)
|
|
54
|
+
|
|
55
|
+
- [#101](https://github.com/dsv-rp/DDS/pull/101) [`5150ef1`](https://github.com/dsv-rp/DDS/commit/5150ef1db56729b0adabbc3b246303241af7eed6) Thanks [@poetrainy](https://github.com/poetrainy)! - Text Area: Updated appearance. (DDS-1290)
|
|
56
|
+
|
|
57
|
+
- [#103](https://github.com/dsv-rp/DDS/pull/103) [`12fcb40`](https://github.com/dsv-rp/DDS/commit/12fcb406567c1a436f3ac39887096e91d63130da) Thanks [@poetrainy](https://github.com/poetrainy)! - Link: Fixed underline not shown correctly with line breaks.
|
|
58
|
+
|
|
59
|
+
- [#112](https://github.com/dsv-rp/DDS/pull/112) [`ffdda1e`](https://github.com/dsv-rp/DDS/commit/ffdda1eabd3e3e19dd9fe0929c390c9b56ae3340) Thanks [@poetrainy](https://github.com/poetrainy)! - Button: Updated appearance.
|
|
60
|
+
|
|
3
61
|
## 0.6.0
|
|
4
62
|
|
|
5
63
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -9,7 +9,14 @@ This project is an implementation of the Daikin Design Kit using Web Components.
|
|
|
9
9
|
Start by installing the package:
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm install @daikin-oss/design-system-web-components
|
|
12
|
+
npm install @daikin-oss/design-system-web-components @daikin-oss/dds-tokens
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
To deploy the necessary CSS variables, import the CSS or SCSS from the `@daikin-oss/dds-tokens` package:
|
|
16
|
+
For details, please check the [dds-tokens repository](https://github.com/dsv-rp/dds-tokens?tab=readme-ov-file#readme).
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
import "@daikin-oss/dds-tokens/css/daikin/Light/variables.css";
|
|
13
20
|
```
|
|
14
21
|
|
|
15
22
|
You can then import necessary components in your bundle (the .js extension is optional):
|
|
@@ -18,8 +25,6 @@ You can then import necessary components in your bundle (the .js extension is op
|
|
|
18
25
|
import "@daikin-oss/design-system-web-components/components/button/index.js";
|
|
19
26
|
```
|
|
20
27
|
|
|
21
|
-
By default, out-of-the-box, the styles are for Daikin brand in light mode.
|
|
22
|
-
|
|
23
28
|
### Fonts
|
|
24
29
|
|
|
25
30
|
We use Roboto as the font for our UI components.
|
|
@@ -77,7 +82,7 @@ Reference the CSS in HTML:
|
|
|
77
82
|
```html
|
|
78
83
|
<link
|
|
79
84
|
rel="stylesheet"
|
|
80
|
-
href="node_modules/@daikin-oss/dds-tokens/build/css/DKN/Dark/
|
|
85
|
+
href="node_modules/@daikin-oss/dds-tokens/build/css/DKN/Dark/variables.css"
|
|
81
86
|
media="(prefers-color-scheme: dark)"
|
|
82
87
|
/>
|
|
83
88
|
```
|
|
@@ -85,7 +90,7 @@ Reference the CSS in HTML:
|
|
|
85
90
|
Using CSS `@import` with `prefers-color-scheme`:
|
|
86
91
|
|
|
87
92
|
```css
|
|
88
|
-
@import "@daikin-oss/dds-tokens/css/daikin/Dark/
|
|
93
|
+
@import "@daikin-oss/dds-tokens/css/daikin/Dark/variables.css"
|
|
89
94
|
(prefers-color-scheme: dark);
|
|
90
95
|
```
|
|
91
96
|
|
|
@@ -96,12 +101,12 @@ Reference the CSS in HTML:
|
|
|
96
101
|
```html
|
|
97
102
|
<link
|
|
98
103
|
rel="stylesheet"
|
|
99
|
-
href="node_modules/@daikin-oss/dds-tokens/build/css/AAF/Dark/
|
|
104
|
+
href="node_modules/@daikin-oss/dds-tokens/build/css/AAF/Dark/variables.css"
|
|
100
105
|
media="(prefers-color-scheme: light)"
|
|
101
106
|
/>
|
|
102
107
|
<link
|
|
103
108
|
rel="stylesheet"
|
|
104
|
-
href="node_modules/@daikin-oss/dds-tokens/build/css/AAF/Dark/
|
|
109
|
+
href="node_modules/@daikin-oss/dds-tokens/build/css/AAF/Dark/variables.css"
|
|
105
110
|
media="(prefers-color-scheme: dark)"
|
|
106
111
|
/>
|
|
107
112
|
```
|
|
@@ -109,9 +114,9 @@ Reference the CSS in HTML:
|
|
|
109
114
|
Using CSS `@import` with `prefers-color-scheme`:
|
|
110
115
|
|
|
111
116
|
```css
|
|
112
|
-
@import "@daikin-oss/dds-tokens/css/aaf/Light/
|
|
117
|
+
@import "@daikin-oss/dds-tokens/css/aaf/Light/variables.css"
|
|
113
118
|
(prefers-color-scheme: light);
|
|
114
|
-
@import "@daikin-oss/dds-tokens/css/aaf/Dark/
|
|
119
|
+
@import "@daikin-oss/dds-tokens/css/aaf/Dark/variables.css"
|
|
115
120
|
(prefers-color-scheme: dark);
|
|
116
121
|
```
|
|
117
122
|
|
|
@@ -219,27 +224,39 @@ If you encounter an `Unknown word` error, add the word to the `cspell-dictionary
|
|
|
219
224
|
|
|
220
225
|
### Design Tokens
|
|
221
226
|
|
|
222
|
-
|
|
227
|
+
We manage and use design tokens to ensure consistency in our design system.
|
|
223
228
|
|
|
224
|
-
1. **Source of Truth**:
|
|
229
|
+
1. **Source of Truth**:
|
|
230
|
+
The tokens we use is the foundation of our design styles and was grabbed from https://github.com/dsv-rp/dds-tokens.
|
|
231
|
+
These design tokens are deployed as CSS variables.
|
|
225
232
|
|
|
226
|
-
2. **
|
|
233
|
+
2. **Usage in Components**:
|
|
234
|
+
The components make use of design tokens by referencing CSS variables.
|
|
235
|
+
Since they are integrated with Tailwind CSS, they are mostly used as utility classes, but in some cases they are directly referenced using `var()`.
|
|
227
236
|
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
237
|
+
```ts
|
|
238
|
+
@customElement("daikin-link")
|
|
239
|
+
export class DaikinLink extends LitElement {
|
|
240
|
+
static override readonly styles = css`
|
|
241
|
+
${unsafeCSS(tailwindStyles)}
|
|
232
242
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
--defaultButtonColorBackgroundPrimaryActive: ${unsafeCSS(
|
|
237
|
-
buttonColorBackgroundPrimaryActive
|
|
238
|
-
)};
|
|
243
|
+
:host([show-visited]:not([disabled])) a:visited {
|
|
244
|
+
/* HERE */
|
|
245
|
+
color: var(--dds-color-link-text-visited-default);
|
|
239
246
|
}
|
|
240
247
|
`;
|
|
241
248
|
|
|
242
|
-
|
|
249
|
+
override render() {
|
|
250
|
+
/* AND HERE (`text-ddt-*` classes) */
|
|
251
|
+
return html`
|
|
252
|
+
<a
|
|
253
|
+
class="text-ddt-color-link-text-default hover:text-ddt-color-link-text-hover"
|
|
254
|
+
href="https://www.example.com/"
|
|
255
|
+
>
|
|
256
|
+
...
|
|
257
|
+
</a>
|
|
258
|
+
`;
|
|
259
|
+
}
|
|
243
260
|
}
|
|
244
261
|
```
|
|
245
262
|
|
|
@@ -27,7 +27,7 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
27
27
|
"focus-visible:outline",
|
|
28
28
|
"focus-visible:outline-2",
|
|
29
29
|
"focus-visible:-outline-offset-2",
|
|
30
|
-
"focus-visible:outline-
|
|
30
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
31
31
|
"after:size-6",
|
|
32
32
|
"after:transition-all",
|
|
33
33
|
"after:i-daikin-chevron-down"
|
|
@@ -41,12 +41,12 @@ const cvaSummary = classVarianceAuthority.cva(
|
|
|
41
41
|
disabled: {
|
|
42
42
|
false: [
|
|
43
43
|
"cursor-pointer",
|
|
44
|
-
"hover:bg-
|
|
45
|
-
"active:bg-
|
|
44
|
+
"hover:bg-ddt-color-common-surface-hover",
|
|
45
|
+
"active:bg-ddt-color-common-surface-press"
|
|
46
46
|
],
|
|
47
47
|
true: [
|
|
48
|
-
"text-
|
|
49
|
-
"after:text-
|
|
48
|
+
"text-ddt-color-common-disabled",
|
|
49
|
+
"after:text-ddt-color-common-disabled"
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -129,7 +129,7 @@ exports.DaikinAccordionItem = class DaikinAccordionItem extends lit.LitElement {
|
|
|
129
129
|
const detailsOpen = !this.disabled && this._detailsOpen;
|
|
130
130
|
const open = !this.disabled && this.open;
|
|
131
131
|
return lit.html`<details
|
|
132
|
-
class="w-full text-
|
|
132
|
+
class="w-full text-ddt-color-common-text-primary font-daikinSerif overflow-clip"
|
|
133
133
|
?open=${detailsOpen}
|
|
134
134
|
?data-open=${open}
|
|
135
135
|
aria-disabled=${this.disabled}
|
|
@@ -192,7 +192,7 @@ exports.DaikinAccordionItem.styles = lit.css`
|
|
|
192
192
|
display: var(--divider-top-display, none);
|
|
193
193
|
width: 100%;
|
|
194
194
|
height: 1px;
|
|
195
|
-
background:
|
|
195
|
+
background: var(--dds-color-divider);
|
|
196
196
|
position: absolute;
|
|
197
197
|
top: 0;
|
|
198
198
|
}
|
|
@@ -202,7 +202,7 @@ exports.DaikinAccordionItem.styles = lit.css`
|
|
|
202
202
|
display: var(--divider-bottom-display, none);
|
|
203
203
|
width: 100%;
|
|
204
204
|
height: 1px;
|
|
205
|
-
background:
|
|
205
|
+
background: var(--dds-color-divider);
|
|
206
206
|
position: absolute;
|
|
207
207
|
bottom: 0;
|
|
208
208
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const lit = require("lit");
|
|
4
4
|
const decorators_js = require("lit/decorators.js");
|
|
5
|
-
const ref_js = require("lit/directives/ref.js");
|
|
6
5
|
const tailwind = require("../../tailwind.css.cjs");
|
|
7
6
|
var __defProp = Object.defineProperty;
|
|
8
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -17,105 +16,45 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
17
16
|
exports.DaikinBreadcrumb = class DaikinBreadcrumb extends lit.LitElement {
|
|
18
17
|
constructor() {
|
|
19
18
|
super(...arguments);
|
|
20
|
-
this.
|
|
21
|
-
this._omit();
|
|
22
|
-
});
|
|
23
|
-
this._divWrapRef = ref_js.createRef();
|
|
24
|
-
this.trailingSlash = false;
|
|
25
|
-
this.overflow = "visible";
|
|
26
|
-
this._expandedContentWidth = 0;
|
|
27
|
-
this.omitted = false;
|
|
28
|
-
}
|
|
29
|
-
get _isEllipsis() {
|
|
30
|
-
return this.overflow === "ellipsis";
|
|
31
|
-
}
|
|
32
|
-
_omit() {
|
|
33
|
-
const shouldOmit = this._isEllipsis && this.offsetWidth < this._expandedContentWidth;
|
|
34
|
-
if (this.omitted === shouldOmit) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
this.omitted = shouldOmit;
|
|
38
|
-
const daikinBreadCrumbItems = this._slottedDaikinBreadCrumbItems;
|
|
39
|
-
for (const [index, item] of daikinBreadCrumbItems.entries()) {
|
|
40
|
-
let mode = "normal";
|
|
41
|
-
if (shouldOmit) {
|
|
42
|
-
if (index === 0 || index >= daikinBreadCrumbItems.length - 2) {
|
|
43
|
-
continue;
|
|
44
|
-
} else if (index === 1) {
|
|
45
|
-
mode = "ellipsis";
|
|
46
|
-
} else {
|
|
47
|
-
mode = "hidden";
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
item.hidden = mode === "hidden";
|
|
51
|
-
item.variant = mode === "ellipsis" ? "ellipsis" : "normal";
|
|
52
|
-
}
|
|
19
|
+
this.showVisited = false;
|
|
53
20
|
}
|
|
54
21
|
_updateBreadcrumbs() {
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const isLast = index ===
|
|
58
|
-
item.
|
|
59
|
-
item.
|
|
60
|
-
|
|
22
|
+
const items = this._items;
|
|
23
|
+
items.forEach((item, index) => {
|
|
24
|
+
const isLast = index === items.length - 1;
|
|
25
|
+
item.variant = isLast ? "current" : "normal";
|
|
26
|
+
item.showVisited = this.showVisited;
|
|
27
|
+
item.appendDivider = !isLast;
|
|
28
|
+
});
|
|
61
29
|
}
|
|
62
|
-
|
|
30
|
+
_handleSlotChange() {
|
|
63
31
|
this._updateBreadcrumbs();
|
|
64
32
|
}
|
|
65
|
-
_handleResizeObserver() {
|
|
66
|
-
if (this._isEllipsis) {
|
|
67
|
-
this.resizeObserver.observe(this);
|
|
68
|
-
} else {
|
|
69
|
-
this.resizeObserver.disconnect();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
33
|
render() {
|
|
73
|
-
return lit.html
|
|
74
|
-
<div class="
|
|
75
|
-
<slot @slotchange=${this.
|
|
34
|
+
return lit.html`<nav class="inline-block" aria-label="Breadcrumbs">
|
|
35
|
+
<div class="inline-block" role="list">
|
|
36
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
76
37
|
</div>
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
updated(changedProperties) {
|
|
80
|
-
if (changedProperties.has("trailingSlash")) {
|
|
81
|
-
this._updateBreadcrumbs();
|
|
82
|
-
}
|
|
83
|
-
if (changedProperties.has("overflow")) {
|
|
84
|
-
this._omit();
|
|
85
|
-
this._handleResizeObserver();
|
|
86
|
-
}
|
|
38
|
+
</nav>`;
|
|
87
39
|
}
|
|
88
40
|
firstUpdated() {
|
|
89
41
|
this._updateBreadcrumbs();
|
|
90
|
-
this._omit();
|
|
91
|
-
this._handleResizeObserver();
|
|
92
|
-
this.updateComplete.then(() => {
|
|
93
|
-
const divElement = this._divWrapRef.value;
|
|
94
|
-
if (!divElement) {
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
this._expandedContentWidth = divElement.offsetWidth;
|
|
98
|
-
}).catch(() => {
|
|
99
|
-
});
|
|
100
42
|
}
|
|
101
43
|
};
|
|
102
44
|
exports.DaikinBreadcrumb.styles = lit.css`
|
|
103
45
|
${lit.unsafeCSS(tailwind.default)}
|
|
104
46
|
|
|
105
47
|
:host {
|
|
106
|
-
|
|
107
|
-
|
|
48
|
+
padding-top: 0.25rem;
|
|
49
|
+
padding-bottom: 0.25rem;
|
|
108
50
|
}
|
|
109
51
|
`;
|
|
110
52
|
__decorateClass([
|
|
111
|
-
decorators_js.
|
|
112
|
-
], exports.DaikinBreadcrumb.prototype, "
|
|
113
|
-
__decorateClass([
|
|
114
|
-
decorators_js.property({ type: Boolean, reflect: true, attribute: "trailing-slash" })
|
|
115
|
-
], exports.DaikinBreadcrumb.prototype, "trailingSlash", 2);
|
|
53
|
+
decorators_js.property({ type: Boolean, reflect: true, attribute: "show-visited" })
|
|
54
|
+
], exports.DaikinBreadcrumb.prototype, "showVisited", 2);
|
|
116
55
|
__decorateClass([
|
|
117
|
-
decorators_js.
|
|
118
|
-
], exports.DaikinBreadcrumb.prototype, "
|
|
56
|
+
decorators_js.queryAssignedElements({ selector: "daikin-breadcrumb-item" })
|
|
57
|
+
], exports.DaikinBreadcrumb.prototype, "_items", 2);
|
|
119
58
|
exports.DaikinBreadcrumb = __decorateClass([
|
|
120
59
|
decorators_js.customElement("daikin-breadcrumb")
|
|
121
60
|
], exports.DaikinBreadcrumb);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* `daikin-breadcrumb` is a component for representing a breadcrumb list, and is used together with the `daikin-breadcrumb-item` component.
|
|
4
4
|
*
|
|
@@ -11,43 +11,31 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
11
11
|
*
|
|
12
12
|
* ```js
|
|
13
13
|
* import "@daikin-oss/design-system-web-components/components/breadcrumb/index.js";
|
|
14
|
+
* import "@daikin-oss/design-system-web-components/components/breadcrumb-item/index.js";
|
|
14
15
|
* ```
|
|
15
16
|
*
|
|
16
17
|
* ```html
|
|
17
18
|
* <daikin-breadcrumb>
|
|
18
|
-
* <daikin-breadcrumb-item href="
|
|
19
|
-
* Breadcrumb
|
|
19
|
+
* <daikin-breadcrumb-item href="https://www.example.com/1">
|
|
20
|
+
* Breadcrumb item 1
|
|
20
21
|
* </daikin-breadcrumb-item>
|
|
21
|
-
* <daikin-breadcrumb-item href="
|
|
22
|
-
* Breadcrumb
|
|
22
|
+
* <daikin-breadcrumb-item href="https://www.example.com/2">
|
|
23
|
+
* Breadcrumb item 2
|
|
23
24
|
* </daikin-breadcrumb-item>
|
|
24
25
|
* </daikin-breadcrumb>
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
export declare class DaikinBreadcrumb extends LitElement {
|
|
28
29
|
static readonly styles: import('lit').CSSResult;
|
|
29
|
-
private resizeObserver;
|
|
30
|
-
private _slottedDaikinBreadCrumbItems;
|
|
31
|
-
private _divWrapRef;
|
|
32
30
|
/**
|
|
33
|
-
* Whether
|
|
31
|
+
* Whether or not to change the color of visited links.
|
|
34
32
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* Specifies overflow.
|
|
38
|
-
* If `ellipsis`, some breadcrumb items will be omitted when the total width exceeds the container width.
|
|
39
|
-
*/
|
|
40
|
-
overflow: "visible" | "ellipsis";
|
|
41
|
-
private _expandedContentWidth;
|
|
42
|
-
private omitted;
|
|
43
|
-
get _isEllipsis(): boolean;
|
|
44
|
-
private _omit;
|
|
33
|
+
showVisited: boolean;
|
|
34
|
+
private readonly _items;
|
|
45
35
|
private _updateBreadcrumbs;
|
|
46
|
-
private
|
|
47
|
-
private _handleResizeObserver;
|
|
36
|
+
private _handleSlotChange;
|
|
48
37
|
render(): import('lit-html').TemplateResult<1>;
|
|
49
|
-
|
|
50
|
-
firstUpdated(): void;
|
|
38
|
+
protected firstUpdated(): void;
|
|
51
39
|
}
|
|
52
40
|
declare global {
|
|
53
41
|
interface HTMLElementTagNameMap {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const classVarianceAuthority = require("class-variance-authority");
|
|
4
3
|
const lit = require("lit");
|
|
5
4
|
const decorators_js = require("lit/decorators.js");
|
|
6
5
|
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
7
6
|
const tailwind = require("../../tailwind.css.cjs");
|
|
7
|
+
require("../link/daikin-link.cjs");
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
9
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
10
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -15,87 +15,38 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
15
|
if (kind && result) __defProp(target, key, result);
|
|
16
16
|
return result;
|
|
17
17
|
};
|
|
18
|
-
const cvaLink = classVarianceAuthority.cva(
|
|
19
|
-
[
|
|
20
|
-
"h-8",
|
|
21
|
-
"font-normal",
|
|
22
|
-
"not-italic",
|
|
23
|
-
"leading-8",
|
|
24
|
-
"text-sm",
|
|
25
|
-
"text-daikinBlue-500",
|
|
26
|
-
"outline-none",
|
|
27
|
-
"font-daikinSerif"
|
|
28
|
-
],
|
|
29
|
-
{
|
|
30
|
-
variants: {
|
|
31
|
-
variant: {
|
|
32
|
-
normal: [
|
|
33
|
-
"hover:text-daikinBlue-300",
|
|
34
|
-
"active:text-daikinNeutral-800",
|
|
35
|
-
"focus-visible:text-daikinBlue-700"
|
|
36
|
-
],
|
|
37
|
-
ellipsis: ["hover:text-daikinBlue-300"]
|
|
38
|
-
},
|
|
39
|
-
disabled: {
|
|
40
|
-
true: [
|
|
41
|
-
"!text-daikinNeutral-800",
|
|
42
|
-
"pointer-events-none",
|
|
43
|
-
"cursor-default",
|
|
44
|
-
"focus-visible:!text-daikinNeutral-800"
|
|
45
|
-
],
|
|
46
|
-
false: []
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
18
|
exports.DaikinBreadcrumbItem = class DaikinBreadcrumbItem extends lit.LitElement {
|
|
52
19
|
constructor() {
|
|
53
20
|
super(...arguments);
|
|
54
|
-
this.href =
|
|
21
|
+
this.href = null;
|
|
55
22
|
this.variant = "normal";
|
|
56
|
-
this.disabled = false;
|
|
57
23
|
this.target = null;
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
24
|
+
this.showVisited = false;
|
|
25
|
+
this.appendDivider = false;
|
|
60
26
|
}
|
|
61
27
|
render() {
|
|
62
|
-
const
|
|
63
|
-
|
|
28
|
+
const link = this.variant === "normal" ? lit.html`<daikin-link
|
|
29
|
+
class="text-sm"
|
|
30
|
+
href=${ifDefined_js.ifDefined(this.href ?? void 0)}
|
|
31
|
+
?show-visited=${this.showVisited}
|
|
32
|
+
><slot></slot
|
|
33
|
+
></daikin-link>` : lit.html`<a
|
|
34
|
+
class="text-sm font-daikinSerif text-ddt-color-common-text-primary"
|
|
35
|
+
aria-disabled="true"
|
|
36
|
+
aria-current="true"
|
|
37
|
+
role="link"
|
|
38
|
+
><slot></slot
|
|
39
|
+
></a>`;
|
|
40
|
+
const divider = this.appendDivider ? lit.html`<span
|
|
41
|
+
class="text-ddt-color-common-text-primary mx-2 text-sm"
|
|
64
42
|
aria-hidden="true"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
const isDisabled = this.last || this.disabled;
|
|
69
|
-
return lit.html`
|
|
70
|
-
${this.variant === "normal" ? lit.html`<a
|
|
71
|
-
class=${cvaLink({ variant: this.variant, disabled: isDisabled })}
|
|
72
|
-
href=${ifDefined_js.ifDefined(!isDisabled && this.href || void 0)}
|
|
73
|
-
target=${// eslint-disable-next-line @typescript-eslint/no-explicit-any -- workaround lit-analyzer checking
|
|
74
|
-
ifDefined_js.ifDefined(this.target)}
|
|
75
|
-
aria-disabled=${ifDefined_js.ifDefined(isDisabled || void 0)}
|
|
76
|
-
aria-current=${ifDefined_js.ifDefined(this.last || void 0)}
|
|
77
|
-
>
|
|
78
|
-
<slot></slot>
|
|
79
|
-
</a>` : lit.html`<span class=${cvaLink(this)} aria-label="…">
|
|
80
|
-
<span>. . .</span>
|
|
81
|
-
</span> `}
|
|
82
|
-
${slash}
|
|
83
|
-
`;
|
|
43
|
+
>/</span
|
|
44
|
+
>` : lit.nothing;
|
|
45
|
+
return lit.html`<div class="inline" role="listitem">${link}${divider}</div>`;
|
|
84
46
|
}
|
|
85
47
|
};
|
|
86
48
|
exports.DaikinBreadcrumbItem.styles = lit.css`
|
|
87
49
|
${lit.unsafeCSS(tailwind.default)}
|
|
88
|
-
|
|
89
|
-
:host {
|
|
90
|
-
display: inline-flex;
|
|
91
|
-
align-items: center;
|
|
92
|
-
gap: 0.5rem;
|
|
93
|
-
flex-shrink: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
:host([hidden]) {
|
|
97
|
-
display: none;
|
|
98
|
-
}
|
|
99
50
|
`;
|
|
100
51
|
__decorateClass([
|
|
101
52
|
decorators_js.property({ type: String, reflect: true })
|
|
@@ -103,18 +54,15 @@ __decorateClass([
|
|
|
103
54
|
__decorateClass([
|
|
104
55
|
decorators_js.property({ type: String, reflect: true })
|
|
105
56
|
], exports.DaikinBreadcrumbItem.prototype, "variant", 2);
|
|
106
|
-
__decorateClass([
|
|
107
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
108
|
-
], exports.DaikinBreadcrumbItem.prototype, "disabled", 2);
|
|
109
57
|
__decorateClass([
|
|
110
58
|
decorators_js.property({ type: String, reflect: true })
|
|
111
59
|
], exports.DaikinBreadcrumbItem.prototype, "target", 2);
|
|
112
60
|
__decorateClass([
|
|
113
|
-
decorators_js.property({ type: Boolean, reflect: true, attribute: "
|
|
114
|
-
], exports.DaikinBreadcrumbItem.prototype, "
|
|
61
|
+
decorators_js.property({ type: Boolean, reflect: true, attribute: "show-visited" })
|
|
62
|
+
], exports.DaikinBreadcrumbItem.prototype, "showVisited", 2);
|
|
115
63
|
__decorateClass([
|
|
116
|
-
decorators_js.property({ type: Boolean, reflect: true })
|
|
117
|
-
], exports.DaikinBreadcrumbItem.prototype, "
|
|
64
|
+
decorators_js.property({ type: Boolean, reflect: true, attribute: "append-divider" })
|
|
65
|
+
], exports.DaikinBreadcrumbItem.prototype, "appendDivider", 2);
|
|
118
66
|
exports.DaikinBreadcrumbItem = __decorateClass([
|
|
119
67
|
decorators_js.customElement("daikin-breadcrumb-item")
|
|
120
68
|
], exports.DaikinBreadcrumbItem);
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
3
|
-
declare const cvaLink: (props?: ({
|
|
4
|
-
variant?: "normal" | "ellipsis" | null | undefined;
|
|
5
|
-
disabled?: boolean | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
type LinkVariantProps = MergeVariantProps<typeof cvaLink>;
|
|
8
2
|
/**
|
|
9
3
|
* The `daikin-breadcrumb-item` is a component used to represent each item of the breadcrumb list, and is used as a child element of the `daikin-breadcrumb` component.
|
|
10
4
|
*
|
|
@@ -21,42 +15,40 @@ type LinkVariantProps = MergeVariantProps<typeof cvaLink>;
|
|
|
21
15
|
*
|
|
22
16
|
* ```html
|
|
23
17
|
* <!-- See `daikin-breadcrumb` component for complete example. -->
|
|
24
|
-
* <daikin-breadcrumb-item href="
|
|
25
|
-
* Breadcrumb
|
|
18
|
+
* <daikin-breadcrumb-item href="https://www.example.com">
|
|
19
|
+
* Breadcrumb item
|
|
26
20
|
* </daikin-breadcrumb-item>
|
|
27
21
|
* ```
|
|
28
22
|
*/
|
|
29
23
|
export declare class DaikinBreadcrumbItem extends LitElement {
|
|
30
24
|
static styles: import('lit').CSSResult;
|
|
31
25
|
/**
|
|
32
|
-
* Specify link href
|
|
26
|
+
* Specify link href.
|
|
33
27
|
*/
|
|
34
|
-
href: string;
|
|
28
|
+
href: string | null;
|
|
35
29
|
/**
|
|
36
30
|
* Specifies the display content.
|
|
37
31
|
* If `ellipsis`, the "..." will be displayed instead of the link.
|
|
38
32
|
* Set automatically by `daikin-breadcrumb`.
|
|
39
33
|
*/
|
|
40
|
-
variant:
|
|
34
|
+
variant: "normal" | "current";
|
|
41
35
|
/**
|
|
42
|
-
* Specify
|
|
43
|
-
*/
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Specify the link target
|
|
36
|
+
* Specify the link target.
|
|
47
37
|
*/
|
|
48
38
|
target: string | null;
|
|
49
39
|
/**
|
|
50
|
-
* Whether
|
|
40
|
+
* Whether or not to change the color of visited links.
|
|
51
41
|
* Set automatically by `daikin-breadcrumb`.
|
|
52
42
|
*/
|
|
53
|
-
|
|
43
|
+
showVisited: boolean;
|
|
54
44
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
45
|
+
* _Internal use._
|
|
46
|
+
* Whether or not to display the divider on the right.
|
|
47
|
+
* Set automatically by `daikin-breadcrumb`.
|
|
48
|
+
*
|
|
49
|
+
* @private
|
|
58
50
|
*/
|
|
59
|
-
|
|
51
|
+
appendDivider: boolean;
|
|
60
52
|
render(): import('lit-html').TemplateResult<1>;
|
|
61
53
|
}
|
|
62
54
|
declare global {
|
|
@@ -64,4 +56,3 @@ declare global {
|
|
|
64
56
|
"daikin-breadcrumb-item": DaikinBreadcrumbItem;
|
|
65
57
|
}
|
|
66
58
|
}
|
|
67
|
-
export {};
|