@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
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import { css, unsafeCSS, LitElement, html } from "lit";
|
|
3
|
+
import { customElement } from "lit/decorators.js";
|
|
4
|
+
import tailwindStyles from "../../tailwind.css.js";
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
9
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
|
+
if (decorator = decorators[i])
|
|
11
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
12
|
+
if (kind && result) __defProp(target, key, result);
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
const cvaTitle = cva([
|
|
16
|
+
"flex-none",
|
|
17
|
+
"text-ddt-color-common-text-primary",
|
|
18
|
+
"font-daikinSerif",
|
|
19
|
+
"text-base",
|
|
20
|
+
"leading-[1.3]",
|
|
21
|
+
"not-italic",
|
|
22
|
+
"font-bold"
|
|
23
|
+
])();
|
|
24
|
+
const cvaDescription = cva([
|
|
25
|
+
"flex-none",
|
|
26
|
+
"text-ddt-color-common-text-secondary",
|
|
27
|
+
"font-daikinSerif",
|
|
28
|
+
"text-sm",
|
|
29
|
+
"leading-normal",
|
|
30
|
+
"not-italic",
|
|
31
|
+
"font-normal"
|
|
32
|
+
])();
|
|
33
|
+
let DaikinCardHeader = class extends LitElement {
|
|
34
|
+
render() {
|
|
35
|
+
return html`<div class="flex w-full gap-1">
|
|
36
|
+
<slot
|
|
37
|
+
name="left-icon"
|
|
38
|
+
class="flex-none icon-size-6 text-ddt-color-common-text-primary"
|
|
39
|
+
></slot>
|
|
40
|
+
<div class="flex-1 flex flex-col pt-0.5 gap-[1px]">
|
|
41
|
+
<slot class=${cvaTitle}></slot>
|
|
42
|
+
<slot name="description" class=${cvaDescription}></slot>
|
|
43
|
+
</div>
|
|
44
|
+
</div>`;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
DaikinCardHeader.styles = css`
|
|
48
|
+
${unsafeCSS(tailwindStyles)}
|
|
49
|
+
|
|
50
|
+
:host {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
DaikinCardHeader = __decorateClass([
|
|
56
|
+
customElement("daikin-card-header")
|
|
57
|
+
], DaikinCardHeader);
|
|
58
|
+
export {
|
|
59
|
+
DaikinCardHeader
|
|
60
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-card-header.js";
|
|
@@ -15,12 +15,12 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
15
|
const CHECKBOX_CLASS_NAME = cva([
|
|
16
16
|
"block",
|
|
17
17
|
"size-4",
|
|
18
|
-
"border-
|
|
18
|
+
"border-ddt-color-common-neutral-default",
|
|
19
19
|
"border-2",
|
|
20
20
|
"rounded-sm",
|
|
21
21
|
"relative",
|
|
22
22
|
"appearance-none",
|
|
23
|
-
"before:text-
|
|
23
|
+
"before:text-ddt-color-common-text-inverse",
|
|
24
24
|
"before:absolute",
|
|
25
25
|
"before:m-auto",
|
|
26
26
|
"before:inset-0",
|
|
@@ -30,37 +30,37 @@ const CHECKBOX_CLASS_NAME = cva([
|
|
|
30
30
|
"focus-visible:outline",
|
|
31
31
|
"focus-visible:outline-2",
|
|
32
32
|
"focus-visible:outline-offset-2",
|
|
33
|
-
"focus-visible:outline-
|
|
34
|
-
"enabled:group-hover:border-
|
|
35
|
-
"enabled:group-hover:bg-
|
|
36
|
-
"enabled:group-active:border-
|
|
37
|
-
"enabled:group-active:bg-
|
|
38
|
-
"enabled:checked:border-
|
|
39
|
-
"enabled:checked:bg-
|
|
40
|
-
"enabled:checked:group-hover:bg-
|
|
41
|
-
"enabled:checked:group-hover:border-
|
|
42
|
-
"enabled:checked:group-hover:before:text-
|
|
43
|
-
"enabled:checked:group-active:bg-
|
|
44
|
-
"enabled:checked:group-active:border-
|
|
45
|
-
"enabled:checked:group-active:before:text-
|
|
46
|
-
"enabled:indeterminate:bg-
|
|
47
|
-
"enabled:indeterminate:border-
|
|
48
|
-
"enabled:indeterminate:group-hover:bg-
|
|
49
|
-
"enabled:indeterminate:group-hover:border-
|
|
50
|
-
"enabled:indeterminate:group-hover:before:text-
|
|
51
|
-
"enabled:indeterminate:group-active:bg-
|
|
52
|
-
"enabled:indeterminate:group-active:border-
|
|
53
|
-
"enabled:indeterminate:group-active:before:text-
|
|
54
|
-
"disabled:border-
|
|
55
|
-
"disabled:bg-
|
|
56
|
-
"disabled:checked:bg-
|
|
57
|
-
"disabled:indeterminate:bg-
|
|
33
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
34
|
+
"enabled:group-hover:border-ddt-color-common-neutral-hover",
|
|
35
|
+
"enabled:group-hover:bg-ddt-color-common-surface-hover",
|
|
36
|
+
"enabled:group-active:border-ddt-color-common-neutral-press",
|
|
37
|
+
"enabled:group-active:bg-ddt-color-common-surface-press",
|
|
38
|
+
"enabled:checked:border-ddt-color-common-brand-default",
|
|
39
|
+
"enabled:checked:bg-ddt-color-common-brand-default",
|
|
40
|
+
"enabled:checked:group-hover:bg-ddt-color-common-brand-hover",
|
|
41
|
+
"enabled:checked:group-hover:border-ddt-color-common-brand-hover",
|
|
42
|
+
"enabled:checked:group-hover:before:text-ddt-color-common-text-inverse",
|
|
43
|
+
"enabled:checked:group-active:bg-ddt-color-common-brand-press",
|
|
44
|
+
"enabled:checked:group-active:border-ddt-color-common-brand-press",
|
|
45
|
+
"enabled:checked:group-active:before:text-ddt-color-common-text-inverse",
|
|
46
|
+
"enabled:indeterminate:bg-ddt-color-common-brand-default",
|
|
47
|
+
"enabled:indeterminate:border-ddt-color-common-brand-default",
|
|
48
|
+
"enabled:indeterminate:group-hover:bg-ddt-color-common-brand-hover",
|
|
49
|
+
"enabled:indeterminate:group-hover:border-ddt-color-common-brand-hover",
|
|
50
|
+
"enabled:indeterminate:group-hover:before:text-ddt-color-common-text-inverse",
|
|
51
|
+
"enabled:indeterminate:group-active:bg-ddt-color-common-brand-press",
|
|
52
|
+
"enabled:indeterminate:group-active:border-ddt-color-common-brand-press",
|
|
53
|
+
"enabled:indeterminate:group-active:before:text-ddt-color-common-text-inverse",
|
|
54
|
+
"disabled:border-ddt-color-common-disabled",
|
|
55
|
+
"disabled:bg-ddt-color-common-text-inverse",
|
|
56
|
+
"disabled:checked:bg-ddt-color-common-disabled",
|
|
57
|
+
"disabled:indeterminate:bg-ddt-color-common-disabled"
|
|
58
58
|
])();
|
|
59
59
|
const cvaLabel = cva(["pr-2"], {
|
|
60
60
|
variants: {
|
|
61
61
|
disabled: {
|
|
62
|
-
false: ["text-
|
|
63
|
-
true: ["text-
|
|
62
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
63
|
+
true: ["text-ddt-color-common-disabled"]
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
});
|
|
@@ -24,7 +24,7 @@ const cvaButton = cva(
|
|
|
24
24
|
"w-full",
|
|
25
25
|
"h-full",
|
|
26
26
|
"min-h-12",
|
|
27
|
-
"bg-
|
|
27
|
+
"bg-ddt-color-common-background-default",
|
|
28
28
|
"p-3",
|
|
29
29
|
"border",
|
|
30
30
|
"border-[--color-base]",
|
|
@@ -39,8 +39,8 @@ const cvaButton = cva(
|
|
|
39
39
|
"-outline-offset-2",
|
|
40
40
|
"focus-visible:outline-2",
|
|
41
41
|
"focus-visible:outline-[--color-focus]",
|
|
42
|
-
"disabled:text-
|
|
43
|
-
"disabled:border-
|
|
42
|
+
"disabled:text-ddt-color-common-disabled",
|
|
43
|
+
"disabled:border-ddt-color-common-disabled",
|
|
44
44
|
"after:i-daikin-dropdown-chevron-down",
|
|
45
45
|
"after:w-6",
|
|
46
46
|
"after:h-6",
|
|
@@ -49,31 +49,31 @@ const cvaButton = cva(
|
|
|
49
49
|
"after:top-0",
|
|
50
50
|
"after:bottom-0",
|
|
51
51
|
"after:right-3",
|
|
52
|
-
"enabled:after:text-
|
|
53
|
-
"disabled:after:text-
|
|
52
|
+
"enabled:after:text-ddt-color-common-text-primary",
|
|
53
|
+
"disabled:after:text-ddt-color-common-disabled"
|
|
54
54
|
],
|
|
55
55
|
{
|
|
56
56
|
variants: {
|
|
57
57
|
open: {
|
|
58
58
|
false: [
|
|
59
|
-
"enabled:hover:bg-
|
|
60
|
-
"enabled:active:bg-
|
|
59
|
+
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
60
|
+
"enabled:active:bg-ddt-color-common-surface-press"
|
|
61
61
|
],
|
|
62
|
-
true: ["enabled:bg-
|
|
62
|
+
true: ["enabled:bg-ddt-color-common-surface-press"]
|
|
63
63
|
},
|
|
64
64
|
error: {
|
|
65
65
|
false: [
|
|
66
|
-
"var-color-
|
|
67
|
-
"var-color-
|
|
66
|
+
"var-color-ddt-color-common-neutral-default/color-base",
|
|
67
|
+
"var-color-ddt-color-common-border-focus/color-focus"
|
|
68
68
|
],
|
|
69
69
|
true: [
|
|
70
|
-
"var-color-
|
|
71
|
-
"var-color-
|
|
70
|
+
"var-color-ddt-color-common-danger-default/color-base",
|
|
71
|
+
"var-color-ddt-color-common-danger-default/color-focus"
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
74
|
placeholder: {
|
|
75
|
-
false: ["text-
|
|
76
|
-
true: ["text-
|
|
75
|
+
false: ["text-ddt-color-common-text-primary"],
|
|
76
|
+
true: ["text-ddt-color-common-text-secondary"]
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -19,8 +19,8 @@ const cvaOption = cva(
|
|
|
19
19
|
"justify-between",
|
|
20
20
|
"w-full",
|
|
21
21
|
"min-h-12",
|
|
22
|
-
"text-
|
|
23
|
-
"bg-
|
|
22
|
+
"text-ddt-color-common-text-primary",
|
|
23
|
+
"bg-ddt-color-common-background-default",
|
|
24
24
|
"p-3",
|
|
25
25
|
"font-daikinSerif",
|
|
26
26
|
"leading-5",
|
|
@@ -28,20 +28,20 @@ const cvaOption = cva(
|
|
|
28
28
|
"focus-visible:outline",
|
|
29
29
|
"focus-visible:outline-2",
|
|
30
30
|
"focus-visible:-outline-offset-2",
|
|
31
|
-
"focus-visible:outline-
|
|
32
|
-
"disabled:text-
|
|
31
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
32
|
+
"disabled:text-ddt-color-common-disabled"
|
|
33
33
|
],
|
|
34
34
|
{
|
|
35
35
|
variants: {
|
|
36
36
|
selected: {
|
|
37
37
|
false: [
|
|
38
|
-
"enabled:hover:bg-
|
|
39
|
-
"enabled:active:bg-
|
|
38
|
+
"enabled:hover:bg-ddt-color-common-surface-hover",
|
|
39
|
+
"enabled:active:bg-ddt-color-common-surface-press"
|
|
40
40
|
],
|
|
41
41
|
true: [
|
|
42
|
-
"enabled:bg-
|
|
43
|
-
"enabled:hover:bg-
|
|
44
|
-
"enabled:active:bg-
|
|
42
|
+
"enabled:bg-ddt-color-common-surface-selected-default",
|
|
43
|
+
"enabled:hover:bg-ddt-color-common-surface-selected-hover",
|
|
44
|
+
"enabled:active:bg-ddt-color-common-surface-selected-press",
|
|
45
45
|
"after:i-daikin-dropdown-check",
|
|
46
46
|
"after:size-6"
|
|
47
47
|
]
|
|
@@ -5,7 +5,7 @@ export declare const iconList: string[];
|
|
|
5
5
|
export type IconType = keyof typeof icons;
|
|
6
6
|
declare const cvaIcon: (props?: ({
|
|
7
7
|
icon?: string | number | null | undefined;
|
|
8
|
-
color?: "
|
|
8
|
+
color?: "current" | "default" | "black" | "white" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
|
|
11
11
|
/**
|
|
@@ -17,7 +17,7 @@ export type IconVariantProps = MergeVariantProps<typeof cvaIcon>;
|
|
|
17
17
|
* If you try to use an icon that does not exist, a blank space will be displayed.
|
|
18
18
|
* In the development build, warnings will be displayed in the console, so please check there if you encounter any unexpected behavior.
|
|
19
19
|
*
|
|
20
|
-
* @cssprop [--
|
|
20
|
+
* @cssprop [--ddc-icon-size] - Icon size. If a value other than "current" is set for the `size` property, it will be overwritten automatically. This may be set by the parent component such as `daikin-icon-button`.
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
23
|
*
|
|
@@ -41,7 +41,7 @@ export declare class DaikinIcon extends LitElement {
|
|
|
41
41
|
color: IconVariantProps["color"];
|
|
42
42
|
/**
|
|
43
43
|
* Specify the size of the icon.
|
|
44
|
-
* If "current" is set, `--
|
|
44
|
+
* If "current" is set, `--ddc-icon-size` CSS variable will be used. `--ddc-icon-size` may be set by the parent component such as `daikin-icon-button`.
|
|
45
45
|
*/
|
|
46
46
|
size: "s" | "m" | "l" | "xl" | "current";
|
|
47
47
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -21,8 +21,8 @@ const cvaIcon = cva(["block"], {
|
|
|
21
21
|
variants: {
|
|
22
22
|
icon: iconClassMap,
|
|
23
23
|
color: {
|
|
24
|
-
black: ["text-
|
|
25
|
-
white: ["text-
|
|
24
|
+
black: ["text-ddt-color-common-background-overlay"],
|
|
25
|
+
white: ["text-ddt-color-common-text-inverse"],
|
|
26
26
|
default: ["text-[--default-color]"],
|
|
27
27
|
current: []
|
|
28
28
|
// uses `currentColor`
|
|
@@ -54,24 +54,24 @@ DaikinIcon.styles = css`
|
|
|
54
54
|
|
|
55
55
|
:host {
|
|
56
56
|
display: inline-block;
|
|
57
|
-
width: var(--
|
|
58
|
-
height: var(--
|
|
57
|
+
width: var(--ddc-icon-size, 100%);
|
|
58
|
+
height: var(--ddc-icon-size, 100%);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
:host([size="s"]) {
|
|
62
|
-
--
|
|
62
|
+
--ddc-icon-size: 12px;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
:host([size="m"]) {
|
|
66
|
-
--
|
|
66
|
+
--ddc-icon-size: 16px;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
:host([size="l"]) {
|
|
70
|
-
--
|
|
70
|
+
--ddc-icon-size: 20px;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
:host([size="xl"]) {
|
|
74
|
-
--
|
|
74
|
+
--ddc-icon-size: 24px;
|
|
75
75
|
}
|
|
76
76
|
`;
|
|
77
77
|
__decorateClass([
|
|
@@ -19,8 +19,7 @@ const cvaIconButton = cva(
|
|
|
19
19
|
"inline-flex",
|
|
20
20
|
"justify-center",
|
|
21
21
|
"items-center",
|
|
22
|
-
"
|
|
23
|
-
"h-8",
|
|
22
|
+
"size-full",
|
|
24
23
|
"font-daikinSerif",
|
|
25
24
|
"font-bold",
|
|
26
25
|
"rounded",
|
|
@@ -30,37 +29,37 @@ const cvaIconButton = cva(
|
|
|
30
29
|
"focus-visible:outline",
|
|
31
30
|
"focus-visible:outline-2",
|
|
32
31
|
"focus-visible:outline-offset-2",
|
|
33
|
-
"focus-visible:outline-
|
|
32
|
+
"focus-visible:outline-ddt-color-common-border-focus",
|
|
34
33
|
"var-color-transparent/color-secondary",
|
|
35
|
-
"link-disabled:var-color-
|
|
34
|
+
"link-disabled:var-color-ddt-color-common-disabled/color-primary"
|
|
36
35
|
],
|
|
37
36
|
{
|
|
38
37
|
variants: {
|
|
39
38
|
color: {
|
|
40
39
|
default: [
|
|
41
|
-
"link-enabled:var-color-
|
|
42
|
-
"link-enabled:hover:var-color-
|
|
43
|
-
"link-enabled:hover:var-color-
|
|
44
|
-
"link-enabled:active:var-color-
|
|
45
|
-
"link-enabled:active:var-color-
|
|
40
|
+
"link-enabled:var-color-ddt-color-common-brand-default/color-primary",
|
|
41
|
+
"link-enabled:hover:var-color-ddt-color-common-brand-hover/color-primary",
|
|
42
|
+
"link-enabled:hover:var-color-ddt-color-common-surface-brand-hover/color-secondary",
|
|
43
|
+
"link-enabled:active:var-color-ddt-color-common-brand-press/color-primary",
|
|
44
|
+
"link-enabled:active:var-color-ddt-color-common-surface-brand-press/color-secondary"
|
|
46
45
|
],
|
|
47
46
|
neutral: [
|
|
48
|
-
"link-enabled:var-color-
|
|
49
|
-
"link-enabled:hover:var-color-
|
|
50
|
-
"link-enabled:hover:var-color-
|
|
51
|
-
"link-enabled:active:var-color-
|
|
52
|
-
"link-enabled:active:var-color-
|
|
47
|
+
"link-enabled:var-color-ddt-color-common-neutral-default/color-primary",
|
|
48
|
+
"link-enabled:hover:var-color-ddt-color-common-neutral-hover/color-primary",
|
|
49
|
+
"link-enabled:hover:var-color-ddt-color-common-surface-neutral-hover/color-secondary",
|
|
50
|
+
"link-enabled:active:var-color-ddt-color-common-neutral-press/color-primary",
|
|
51
|
+
"link-enabled:active:var-color-ddt-color-common-surface-neutral-press/color-secondary"
|
|
53
52
|
],
|
|
54
53
|
danger: [
|
|
55
|
-
"link-enabled:var-color-
|
|
56
|
-
"link-enabled:hover:var-color-
|
|
57
|
-
"link-enabled:hover:var-color-
|
|
58
|
-
"link-enabled:active:var-color-
|
|
59
|
-
"link-enabled:active:var-color-
|
|
54
|
+
"link-enabled:var-color-ddt-color-common-danger-default/color-primary",
|
|
55
|
+
"link-enabled:hover:var-color-ddt-color-common-danger-hover/color-primary",
|
|
56
|
+
"link-enabled:hover:var-color-ddt-color-common-surface-danger-hover/color-secondary",
|
|
57
|
+
"link-enabled:active:var-color-ddt-color-common-danger-press/color-primary",
|
|
58
|
+
"link-enabled:active:var-color-ddt-color-common-surface-danger-press/color-secondary"
|
|
60
59
|
]
|
|
61
60
|
},
|
|
62
61
|
variant: {
|
|
63
|
-
fill: ["text-
|
|
62
|
+
fill: ["text-ddt-color-common-text-inverse", "bg-[--color-primary]"],
|
|
64
63
|
outline: [
|
|
65
64
|
"border",
|
|
66
65
|
"text-[--color-primary]",
|
|
@@ -132,6 +131,8 @@ DaikinIconButton.styles = css`
|
|
|
132
131
|
|
|
133
132
|
:host {
|
|
134
133
|
display: inline-block;
|
|
134
|
+
width: 2rem;
|
|
135
|
+
height: 2rem;
|
|
135
136
|
}
|
|
136
137
|
`;
|
|
137
138
|
__decorateClass([
|
|
@@ -3,6 +3,9 @@ export * from "./accordion-item/index.js";
|
|
|
3
3
|
export * from "./breadcrumb/index.js";
|
|
4
4
|
export * from "./breadcrumb-item/index.js";
|
|
5
5
|
export * from "./button/index.js";
|
|
6
|
+
export * from "./card/index.js";
|
|
7
|
+
export * from "./card-footer/index.js";
|
|
8
|
+
export * from "./card-header/index.js";
|
|
6
9
|
export * from "./checkbox/index.js";
|
|
7
10
|
export * from "./dropdown/index.js";
|
|
8
11
|
export * from "./dropdown-item/index.js";
|
|
@@ -29,3 +32,6 @@ export * from "./text-area/index.js";
|
|
|
29
32
|
export * from "./text-field/index.js";
|
|
30
33
|
export * from "./toggle/index.js";
|
|
31
34
|
export * from "./tooltip/index.js";
|
|
35
|
+
export * from "./tree/index.js";
|
|
36
|
+
export * from "./tree-item/index.js";
|
|
37
|
+
export * from "./tree-section/index.js";
|
|
@@ -3,6 +3,9 @@ import { DaikinAccordionItem } from "./accordion-item/daikin-accordion-item.js";
|
|
|
3
3
|
import { DaikinBreadcrumb } from "./breadcrumb/daikin-breadcrumb.js";
|
|
4
4
|
import { DaikinBreadcrumbItem } from "./breadcrumb-item/daikin-breadcrumb-item.js";
|
|
5
5
|
import { DaikinButton } from "./button/daikin-button.js";
|
|
6
|
+
import { DaikinCard } from "./card/daikin-card.js";
|
|
7
|
+
import { DaikinCardFooter } from "./card-footer/daikin-card-footer.js";
|
|
8
|
+
import { DaikinCardHeader } from "./card-header/daikin-card-header.js";
|
|
6
9
|
import { DaikinCheckbox } from "./checkbox/daikin-checkbox.js";
|
|
7
10
|
import { DaikinDropdown } from "./dropdown/daikin-dropdown.js";
|
|
8
11
|
import { DaikinDropdownItem } from "./dropdown-item/daikin-dropdown-item.js";
|
|
@@ -29,12 +32,18 @@ import { DaikinTextArea } from "./text-area/daikin-text-area.js";
|
|
|
29
32
|
import { DaikinTextField } from "./text-field/daikin-text-field.js";
|
|
30
33
|
import { DaikinToggle } from "./toggle/daikin-toggle.js";
|
|
31
34
|
import { DaikinTooltip } from "./tooltip/daikin-tooltip.js";
|
|
35
|
+
import { DaikinTree } from "./tree/daikin-tree.js";
|
|
36
|
+
import { DaikinTreeItem, cvaTreeChildren } from "./tree-item/daikin-tree-item.js";
|
|
37
|
+
import { DaikinTreeSection } from "./tree-section/daikin-tree-section.js";
|
|
32
38
|
export {
|
|
33
39
|
DaikinAccordion,
|
|
34
40
|
DaikinAccordionItem,
|
|
35
41
|
DaikinBreadcrumb,
|
|
36
42
|
DaikinBreadcrumbItem,
|
|
37
43
|
DaikinButton,
|
|
44
|
+
DaikinCard,
|
|
45
|
+
DaikinCardFooter,
|
|
46
|
+
DaikinCardHeader,
|
|
38
47
|
DaikinCheckbox,
|
|
39
48
|
DaikinDropdown,
|
|
40
49
|
DaikinDropdownItem,
|
|
@@ -61,5 +70,9 @@ export {
|
|
|
61
70
|
DaikinTextField,
|
|
62
71
|
DaikinToggle,
|
|
63
72
|
DaikinTooltip,
|
|
73
|
+
DaikinTree,
|
|
74
|
+
DaikinTreeItem,
|
|
75
|
+
DaikinTreeSection,
|
|
76
|
+
cvaTreeChildren,
|
|
64
77
|
iconList
|
|
65
78
|
};
|
|
@@ -111,12 +111,21 @@ export declare class DaikinInputGroup extends LitElement {
|
|
|
111
111
|
*/
|
|
112
112
|
disabled: boolean;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* The maximum number of characters that can be input into the text area.
|
|
115
|
+
* If set, a counter will be displayed at the bottom of the text area.
|
|
116
|
+
* Users can enter more characters than the limit, but in that case the counter will turn red and an error message will be displayed (if specified) to indicate that the limit has been exceeded.
|
|
115
117
|
*/
|
|
116
118
|
textareaMaxCount: number | null;
|
|
119
|
+
/**
|
|
120
|
+
* An error message displayed when the number of characters in the text area exceeds the limit (optional).
|
|
121
|
+
* When the number of characters in the text area exceeds the limit, this is displayed below the label by overriding `helper` and `error`.
|
|
122
|
+
* Only used when a text area is assigned to a slot and `textareaMaxCount` is set.
|
|
123
|
+
*/
|
|
124
|
+
textareaLimitExceedError: string | null;
|
|
117
125
|
private readonly _textareas;
|
|
118
126
|
private readonly _controls;
|
|
119
127
|
private _textareaCount;
|
|
128
|
+
get textareaLimitExceeded(): boolean;
|
|
120
129
|
private _handleSlotChange;
|
|
121
130
|
private _handleInput;
|
|
122
131
|
private _reflectSlotProperties;
|