@daikin-oss/design-system-web-components 1.3.1 → 1.4.0-next.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 +90 -0
- package/dist/cjs/base/dds-element.cjs +1 -1
- package/dist/cjs/components/badge/daikin-badge.cjs +133 -0
- package/dist/cjs/components/badge/daikin-badge.d.cts +85 -0
- package/dist/cjs/components/badge/index.cjs +7 -0
- package/dist/cjs/components/badge/index.d.cts +1 -0
- package/dist/cjs/components/button/daikin-button.d.cts +1 -1
- package/dist/cjs/components/calendar/daikin-calendar.cjs +28 -6
- package/dist/cjs/components/calendar/daikin-calendar.d.cts +9 -0
- package/dist/cjs/components/combobox/daikin-combobox.cjs +6 -3
- package/dist/cjs/components/date-picker/daikin-date-picker.cjs +26 -2
- package/dist/cjs/components/date-picker/daikin-date-picker.d.cts +5 -0
- package/dist/cjs/components/dropdown/daikin-dropdown.cjs +5 -7
- package/dist/cjs/components/icon/daikin-icon.cjs +4 -4
- package/dist/cjs/components/icon/daikin-icon.d.cts +8 -0
- package/dist/cjs/components/icon/icons.json.cjs +1 -1
- package/dist/cjs/components/icon/icons.json.d.cts +8 -0
- package/dist/cjs/components/icon-button/daikin-icon-button.d.cts +1 -1
- package/dist/cjs/components/index.cjs +10 -0
- package/dist/cjs/components/index.d.cts +2 -0
- package/dist/cjs/components/inline-notification/daikin-inline-notification.d.cts +4 -1
- package/dist/cjs/components/input-group/daikin-input-group.cjs +21 -6
- package/dist/cjs/components/menu/daikin-menu.cjs +21 -10
- package/dist/cjs/components/menu/daikin-menu.d.cts +6 -1
- package/dist/cjs/components/pagination/daikin-pagination.cjs +2 -1
- package/dist/cjs/components/progress-indicator-item/daikin-progress-indicator-item.cjs +2 -2
- package/dist/cjs/components/status-message/daikin-status-message.cjs +110 -0
- package/dist/cjs/components/status-message/daikin-status-message.d.cts +51 -0
- package/dist/cjs/components/status-message/index.cjs +7 -0
- package/dist/cjs/components/status-message/index.d.cts +1 -0
- package/dist/cjs/components/table/daikin-table.cjs +2 -2
- package/dist/cjs/components/time-picker/daikin-time-picker.cjs +1 -1
- package/dist/cjs/components/toast-notification/daikin-toast-notification.d.cts +4 -1
- package/dist/cjs/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs/components/tree-item/daikin-tree-item.d.cts +6 -1
- package/dist/cjs/components/tree-section/daikin-tree-section.d.cts +6 -1
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/tailwind.css.cjs +1 -1
- package/dist/cjs/utils/calendar-common.cjs +6 -0
- package/dist/cjs/utils/calendar-common.d.cts +7 -0
- package/dist/cjs/utils/notification-common.d.cts +1 -1
- package/dist/cjs-dev/base/dds-element.cjs +1 -1
- package/dist/cjs-dev/components/badge/daikin-badge.cjs +133 -0
- package/dist/cjs-dev/components/badge/daikin-badge.d.cts +85 -0
- package/dist/cjs-dev/components/badge/index.cjs +7 -0
- package/dist/cjs-dev/components/badge/index.d.cts +1 -0
- package/dist/cjs-dev/components/button/daikin-button.d.cts +1 -1
- package/dist/cjs-dev/components/calendar/daikin-calendar.cjs +28 -6
- package/dist/cjs-dev/components/calendar/daikin-calendar.d.cts +9 -0
- package/dist/cjs-dev/components/combobox/daikin-combobox.cjs +6 -3
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.cjs +26 -2
- package/dist/cjs-dev/components/date-picker/daikin-date-picker.d.cts +5 -0
- package/dist/cjs-dev/components/dropdown/daikin-dropdown.cjs +5 -7
- package/dist/cjs-dev/components/icon/daikin-icon.cjs +4 -4
- package/dist/cjs-dev/components/icon/daikin-icon.d.cts +8 -0
- package/dist/cjs-dev/components/icon/icons.json.cjs +1 -1
- package/dist/cjs-dev/components/icon/icons.json.d.cts +8 -0
- package/dist/cjs-dev/components/icon-button/daikin-icon-button.d.cts +1 -1
- package/dist/cjs-dev/components/index.cjs +10 -0
- package/dist/cjs-dev/components/index.d.cts +2 -0
- package/dist/cjs-dev/components/inline-notification/daikin-inline-notification.d.cts +4 -1
- package/dist/cjs-dev/components/input-group/daikin-input-group.cjs +21 -6
- package/dist/cjs-dev/components/menu/daikin-menu.cjs +21 -10
- package/dist/cjs-dev/components/menu/daikin-menu.d.cts +6 -1
- package/dist/cjs-dev/components/pagination/daikin-pagination.cjs +2 -1
- package/dist/cjs-dev/components/progress-indicator-item/daikin-progress-indicator-item.cjs +2 -2
- package/dist/cjs-dev/components/status-message/daikin-status-message.cjs +110 -0
- package/dist/cjs-dev/components/status-message/daikin-status-message.d.cts +51 -0
- package/dist/cjs-dev/components/status-message/index.cjs +7 -0
- package/dist/cjs-dev/components/status-message/index.d.cts +1 -0
- package/dist/cjs-dev/components/table/daikin-table.cjs +2 -2
- package/dist/cjs-dev/components/time-picker/daikin-time-picker.cjs +1 -1
- package/dist/cjs-dev/components/toast-notification/daikin-toast-notification.d.cts +4 -1
- package/dist/cjs-dev/components/tree/daikin-tree.d.cts +2 -1
- package/dist/cjs-dev/components/tree-item/daikin-tree-item.d.cts +6 -1
- package/dist/cjs-dev/components/tree-section/daikin-tree-section.d.cts +6 -1
- package/dist/cjs-dev/index.cjs +10 -0
- package/dist/cjs-dev/tailwind.css.cjs +1 -1
- package/dist/cjs-dev/utils/calendar-common.cjs +6 -0
- package/dist/cjs-dev/utils/calendar-common.d.cts +7 -0
- package/dist/cjs-dev/utils/notification-common.d.cts +1 -1
- package/dist/es/base/dds-element.js +1 -1
- package/dist/es/components/badge/daikin-badge.d.ts +85 -0
- package/dist/es/components/badge/daikin-badge.js +134 -0
- package/dist/es/components/badge/index.d.ts +1 -0
- package/dist/es/components/badge/index.js +4 -0
- package/dist/es/components/button/daikin-button.d.ts +1 -1
- package/dist/es/components/calendar/daikin-calendar.d.ts +9 -0
- package/dist/es/components/calendar/daikin-calendar.js +29 -7
- package/dist/es/components/combobox/daikin-combobox.js +6 -3
- package/dist/es/components/date-picker/daikin-date-picker.d.ts +5 -0
- package/dist/es/components/date-picker/daikin-date-picker.js +26 -2
- package/dist/es/components/dropdown/daikin-dropdown.js +6 -8
- package/dist/es/components/icon/daikin-icon.d.ts +8 -0
- package/dist/es/components/icon/daikin-icon.js +4 -4
- package/dist/es/components/icon/icons.json.d.ts +8 -0
- package/dist/es/components/icon/icons.json.js +1 -1
- package/dist/es/components/icon-button/daikin-icon-button.d.ts +1 -1
- package/dist/es/components/index.d.ts +2 -0
- package/dist/es/components/index.js +4 -0
- package/dist/es/components/inline-notification/daikin-inline-notification.d.ts +4 -1
- package/dist/es/components/input-group/daikin-input-group.js +21 -6
- package/dist/es/components/menu/daikin-menu.d.ts +6 -1
- package/dist/es/components/menu/daikin-menu.js +21 -10
- package/dist/es/components/pagination/daikin-pagination.js +2 -1
- package/dist/es/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es/components/status-message/daikin-status-message.d.ts +51 -0
- package/dist/es/components/status-message/daikin-status-message.js +111 -0
- package/dist/es/components/status-message/index.d.ts +1 -0
- package/dist/es/components/status-message/index.js +4 -0
- package/dist/es/components/table/daikin-table.js +2 -2
- package/dist/es/components/time-picker/daikin-time-picker.js +1 -1
- package/dist/es/components/toast-notification/daikin-toast-notification.d.ts +4 -1
- package/dist/es/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es/components/tree-item/daikin-tree-item.d.ts +6 -1
- package/dist/es/components/tree-section/daikin-tree-section.d.ts +6 -1
- package/dist/es/index.js +4 -0
- package/dist/es/tailwind.css.js +1 -1
- package/dist/es/utils/calendar-common.d.ts +7 -0
- package/dist/es/utils/calendar-common.js +6 -0
- package/dist/es/utils/notification-common.d.ts +1 -1
- package/dist/es-dev/base/dds-element.js +1 -1
- package/dist/es-dev/components/badge/daikin-badge.d.ts +85 -0
- package/dist/es-dev/components/badge/daikin-badge.js +134 -0
- package/dist/es-dev/components/badge/index.d.ts +1 -0
- package/dist/es-dev/components/badge/index.js +4 -0
- package/dist/es-dev/components/button/daikin-button.d.ts +1 -1
- package/dist/es-dev/components/calendar/daikin-calendar.d.ts +9 -0
- package/dist/es-dev/components/calendar/daikin-calendar.js +29 -7
- package/dist/es-dev/components/combobox/daikin-combobox.js +6 -3
- package/dist/es-dev/components/date-picker/daikin-date-picker.d.ts +5 -0
- package/dist/es-dev/components/date-picker/daikin-date-picker.js +26 -2
- package/dist/es-dev/components/dropdown/daikin-dropdown.js +6 -8
- package/dist/es-dev/components/icon/daikin-icon.d.ts +8 -0
- package/dist/es-dev/components/icon/daikin-icon.js +4 -4
- package/dist/es-dev/components/icon/icons.json.d.ts +8 -0
- package/dist/es-dev/components/icon/icons.json.js +1 -1
- package/dist/es-dev/components/icon-button/daikin-icon-button.d.ts +1 -1
- package/dist/es-dev/components/index.d.ts +2 -0
- package/dist/es-dev/components/index.js +4 -0
- package/dist/es-dev/components/inline-notification/daikin-inline-notification.d.ts +4 -1
- package/dist/es-dev/components/input-group/daikin-input-group.js +21 -6
- package/dist/es-dev/components/menu/daikin-menu.d.ts +6 -1
- package/dist/es-dev/components/menu/daikin-menu.js +21 -10
- package/dist/es-dev/components/pagination/daikin-pagination.js +2 -1
- package/dist/es-dev/components/progress-indicator-item/daikin-progress-indicator-item.js +2 -2
- package/dist/es-dev/components/status-message/daikin-status-message.d.ts +51 -0
- package/dist/es-dev/components/status-message/daikin-status-message.js +111 -0
- package/dist/es-dev/components/status-message/index.d.ts +1 -0
- package/dist/es-dev/components/status-message/index.js +4 -0
- package/dist/es-dev/components/table/daikin-table.js +2 -2
- package/dist/es-dev/components/time-picker/daikin-time-picker.js +1 -1
- package/dist/es-dev/components/toast-notification/daikin-toast-notification.d.ts +4 -1
- package/dist/es-dev/components/tree/daikin-tree.d.ts +2 -1
- package/dist/es-dev/components/tree-item/daikin-tree-item.d.ts +6 -1
- package/dist/es-dev/components/tree-section/daikin-tree-section.d.ts +6 -1
- package/dist/es-dev/index.js +4 -0
- package/dist/es-dev/tailwind.css.js +1 -1
- package/dist/es-dev/utils/calendar-common.d.ts +7 -0
- package/dist/es-dev/utils/calendar-common.js +6 -0
- package/dist/es-dev/utils/notification-common.d.ts +1 -1
- package/icons/neutral.svg +3 -0
- package/icons/notification.svg +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,133 @@
|
|
|
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 ddsElement = require("../../base/dds-element.cjs");
|
|
7
|
+
require("../../base/dds-form-element.cjs");
|
|
8
|
+
const decorators = require("../../base/decorators.cjs");
|
|
9
|
+
require("../../base/define.cjs");
|
|
10
|
+
const tailwind = require("../../tailwind.css.cjs");
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __decorateClass = (decorators2, target, key, kind) => {
|
|
14
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
+
for (var i = decorators2.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators2[i])
|
|
17
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
|
+
if (kind && result) __defProp(target, key, result);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
const cvaBadge = classVarianceAuthority.cva(["absolute", "rounded-full"], {
|
|
22
|
+
variants: {
|
|
23
|
+
type: {
|
|
24
|
+
number: [
|
|
25
|
+
"h-4",
|
|
26
|
+
"min-w-4",
|
|
27
|
+
"px-1",
|
|
28
|
+
"text-[10px]",
|
|
29
|
+
"font-normal",
|
|
30
|
+
"font-daikinSerif",
|
|
31
|
+
"text-white",
|
|
32
|
+
"flex",
|
|
33
|
+
"items-center",
|
|
34
|
+
"justify-center",
|
|
35
|
+
"-top-[2px]",
|
|
36
|
+
"-right-[2px]",
|
|
37
|
+
"before:content-[attr(data-count)]",
|
|
38
|
+
"before:leading-none",
|
|
39
|
+
"before:whitespace-nowrap",
|
|
40
|
+
"data-[count=0]:hidden"
|
|
41
|
+
],
|
|
42
|
+
dot: ["w-2", "h-2", "top-1", "right-1"]
|
|
43
|
+
},
|
|
44
|
+
color: {
|
|
45
|
+
danger: ["bg-ddt-color-common-danger-default"],
|
|
46
|
+
alarm: ["bg-ddt-color-common-alarm"],
|
|
47
|
+
warning: ["bg-ddt-color-common-warning"],
|
|
48
|
+
success: ["bg-ddt-color-common-success"],
|
|
49
|
+
information: ["bg-ddt-color-common-information"]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
exports.DaikinBadge = class DaikinBadge extends ddsElement.DDSElement {
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments);
|
|
56
|
+
this.type = "dot";
|
|
57
|
+
this.count = null;
|
|
58
|
+
this.maxCount = "99";
|
|
59
|
+
this.invisible = false;
|
|
60
|
+
this.color = "danger";
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Computes the actual number to display in the badge.
|
|
64
|
+
* - If count is null or invalid, displays "0".
|
|
65
|
+
* - If count exceeds maxCount, displays "maxCount+".
|
|
66
|
+
* - Otherwise, displays the actual number.
|
|
67
|
+
*/
|
|
68
|
+
get _count() {
|
|
69
|
+
if (this.count == null) {
|
|
70
|
+
return "0";
|
|
71
|
+
}
|
|
72
|
+
const count = parseInt(this.count, 10);
|
|
73
|
+
const maxCount = this.maxCount ? parseInt(this.maxCount, 10) : null;
|
|
74
|
+
if (isNaN(count) || count < 0) {
|
|
75
|
+
return "0";
|
|
76
|
+
}
|
|
77
|
+
if (maxCount != null && !isNaN(maxCount) && count > maxCount) {
|
|
78
|
+
return `${maxCount.toLocaleString()}+`;
|
|
79
|
+
}
|
|
80
|
+
return count.toLocaleString();
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Renders the badge component.
|
|
84
|
+
* - Renders a small dot when type="dot".
|
|
85
|
+
* - Renders a number when type="number" and count > 0.
|
|
86
|
+
* - Does not render the badge if invisible=true.
|
|
87
|
+
* - The slot wraps the icon button.
|
|
88
|
+
*/
|
|
89
|
+
render() {
|
|
90
|
+
return lit.html`
|
|
91
|
+
<slot></slot>
|
|
92
|
+
<span
|
|
93
|
+
role="presentation"
|
|
94
|
+
data-count=${this._count}
|
|
95
|
+
class=${cvaBadge({
|
|
96
|
+
type: this.type,
|
|
97
|
+
color: this.color
|
|
98
|
+
})}
|
|
99
|
+
?hidden=${this.invisible}
|
|
100
|
+
></span>
|
|
101
|
+
`;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
exports.DaikinBadge.styles = lit.css`
|
|
105
|
+
${lit.unsafeCSS(tailwind.default)}
|
|
106
|
+
|
|
107
|
+
:host {
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
position: relative;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
span[hidden] {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
116
|
+
__decorateClass([
|
|
117
|
+
decorators_js.property({ type: String, reflect: true })
|
|
118
|
+
], exports.DaikinBadge.prototype, "type", 2);
|
|
119
|
+
__decorateClass([
|
|
120
|
+
decorators_js.property({ type: String, reflect: true })
|
|
121
|
+
], exports.DaikinBadge.prototype, "count", 2);
|
|
122
|
+
__decorateClass([
|
|
123
|
+
decorators_js.property({ type: String, reflect: true, attribute: "max-count" })
|
|
124
|
+
], exports.DaikinBadge.prototype, "maxCount", 2);
|
|
125
|
+
__decorateClass([
|
|
126
|
+
decorators_js.property({ type: Boolean, reflect: true })
|
|
127
|
+
], exports.DaikinBadge.prototype, "invisible", 2);
|
|
128
|
+
__decorateClass([
|
|
129
|
+
decorators_js.property({ type: String, reflect: true })
|
|
130
|
+
], exports.DaikinBadge.prototype, "color", 2);
|
|
131
|
+
exports.DaikinBadge = __decorateClass([
|
|
132
|
+
decorators.ddsElement("daikin-badge")
|
|
133
|
+
], exports.DaikinBadge);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DDSElement } from "../../base/index.cjs";
|
|
2
|
+
/**
|
|
3
|
+
* A badge is used to display notification counts, status indicators, or small dots in the UI—commonly for message alerts or status marking.
|
|
4
|
+
*
|
|
5
|
+
* @slot - A slot for anchoring element. Place `daikin-icon-button` here.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
*
|
|
9
|
+
* ```js
|
|
10
|
+
* import "@daikin-oss/design-system-web-components/components/badge/index.js";
|
|
11
|
+
* import "@daikin-oss/design-system-web-components/components/icon/index.js";
|
|
12
|
+
* import "@daikin-oss/design-system-web-components/components/icon-button/index.js";
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <daikin-badge count="42" max-count="999" color="danger">
|
|
17
|
+
* <daikin-icon-button variant="ghost" size="m" buttonAriaLabel="42 unread notifications">
|
|
18
|
+
* <daikin-icon
|
|
19
|
+
* class="w-8 h-8"
|
|
20
|
+
* icon="notification"
|
|
21
|
+
* size="current"
|
|
22
|
+
* color="current"
|
|
23
|
+
* >
|
|
24
|
+
* </daikin-icon>
|
|
25
|
+
* </daikin-icon-button>
|
|
26
|
+
* </daikin-badge>
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class DaikinBadge extends DDSElement {
|
|
30
|
+
static readonly styles: import('lit').CSSResult;
|
|
31
|
+
/**
|
|
32
|
+
* Badge type.
|
|
33
|
+
* - "number": Displays a number (e.g., message count, quantity).
|
|
34
|
+
* - "dot": Displays only a small dot (e.g., status indicator).
|
|
35
|
+
* @default "dot"
|
|
36
|
+
*/
|
|
37
|
+
type: "number" | "dot";
|
|
38
|
+
/**
|
|
39
|
+
* The numeric content displayed in the badge.
|
|
40
|
+
* Only effective when type="number".
|
|
41
|
+
* Accepts a string or null; will be parsed as a number internally.
|
|
42
|
+
* @example "5"
|
|
43
|
+
*/
|
|
44
|
+
count: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The maximum number to display in the badge.
|
|
47
|
+
* If the count exceeds this value, it will display as "maxCount+", e.g., "99+".
|
|
48
|
+
* Only effective when type="number".
|
|
49
|
+
* @example "99"
|
|
50
|
+
*/
|
|
51
|
+
maxCount: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Whether to hide the badge.
|
|
54
|
+
* - true: The badge is not displayed (slot content remains visible).
|
|
55
|
+
* - false: The badge is displayed normally.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
invisible: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Badge color.
|
|
61
|
+
* Supports predefined semantic color tokens (danger, alarm, warning, success, information).
|
|
62
|
+
* @default "danger"
|
|
63
|
+
*/
|
|
64
|
+
color: "danger" | "alarm" | "warning" | "success" | "information";
|
|
65
|
+
/**
|
|
66
|
+
* Computes the actual number to display in the badge.
|
|
67
|
+
* - If count is null or invalid, displays "0".
|
|
68
|
+
* - If count exceeds maxCount, displays "maxCount+".
|
|
69
|
+
* - Otherwise, displays the actual number.
|
|
70
|
+
*/
|
|
71
|
+
private get _count();
|
|
72
|
+
/**
|
|
73
|
+
* Renders the badge component.
|
|
74
|
+
* - Renders a small dot when type="dot".
|
|
75
|
+
* - Renders a number when type="number" and count > 0.
|
|
76
|
+
* - Does not render the badge if invisible=true.
|
|
77
|
+
* - The slot wraps the icon button.
|
|
78
|
+
*/
|
|
79
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
80
|
+
}
|
|
81
|
+
declare global {
|
|
82
|
+
interface HTMLElementTagNameMap {
|
|
83
|
+
"daikin-badge": DaikinBadge;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./daikin-badge.cjs";
|
|
@@ -2,7 +2,7 @@ import { DDSFormSubmitElement } from "../../base/index.cjs";
|
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.cjs";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
4
4
|
declare const cvaButton: (props?: ({
|
|
5
|
-
color?: "
|
|
5
|
+
color?: "danger" | "default" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
7
7
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -131,6 +131,7 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
|
131
131
|
this.max = "2099-12-31";
|
|
132
132
|
this.defaultValue = null;
|
|
133
133
|
this.view = "day";
|
|
134
|
+
this._lastFocusedDate = null;
|
|
134
135
|
this._dateToBeFocused = null;
|
|
135
136
|
this._viewDate = getToday();
|
|
136
137
|
}
|
|
@@ -177,6 +178,7 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
|
177
178
|
}
|
|
178
179
|
_navigateMonth(date, offset) {
|
|
179
180
|
this._viewDate = calendarCommon.getDateByMonthOffsetClamped(date, offset);
|
|
181
|
+
this._lastFocusedDate = null;
|
|
180
182
|
}
|
|
181
183
|
_handleCalendarClick(date) {
|
|
182
184
|
this.value = calendarCommon.formatDateForProperty(date);
|
|
@@ -208,6 +210,7 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
|
208
210
|
`[data-type=day][data-date="${calendarCommon.formatDateForProperty(dateToBeFocused)}"]`
|
|
209
211
|
);
|
|
210
212
|
if (dateButton && calendarCommon.isSameYearMonth(dateToBeFocused, focusedDate)) {
|
|
213
|
+
this._lastFocusedDate = dateToBeFocused;
|
|
211
214
|
dateButton.focus();
|
|
212
215
|
} else {
|
|
213
216
|
this._dateToBeFocused = dateToBeFocused;
|
|
@@ -363,7 +366,19 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
|
363
366
|
viewDate.getUTCFullYear(),
|
|
364
367
|
viewDate.getUTCMonth()
|
|
365
368
|
);
|
|
366
|
-
const focusable =
|
|
369
|
+
const focusable = (
|
|
370
|
+
// If the last focused date is in the same month as the view date, use it as the focusable date.
|
|
371
|
+
this._lastFocusedDate && calendarCommon.isSameYearMonth(viewDate, this._lastFocusedDate) ? this._lastFocusedDate : (
|
|
372
|
+
// If the value is in the same month as the view date, use it as the focusable date.
|
|
373
|
+
value && calendarCommon.isSameYearMonth(viewDate, value) ? value : (
|
|
374
|
+
// If today's date is in the same month as the view date, use it as the focusable date.
|
|
375
|
+
calendarCommon.isSameYearMonth(viewDate, today) ? today : (
|
|
376
|
+
// Otherwise, use the first day of the month (clamped).
|
|
377
|
+
calendarCommon.clampDate(calendarCommon.toFirstDayOfMonth(viewDate), min, max)
|
|
378
|
+
)
|
|
379
|
+
)
|
|
380
|
+
)
|
|
381
|
+
);
|
|
367
382
|
return lit.html`<div class="flex flex-col gap-2 w-full h-72" role="grid">
|
|
368
383
|
<div class="flex gap-1 flex-wrap w-full px-4" role="row">
|
|
369
384
|
${repeat_js.repeat(
|
|
@@ -398,9 +413,7 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
|
398
413
|
})}
|
|
399
414
|
role="gridcell"
|
|
400
415
|
?disabled=${calendarCommon.isDateOutOfRange(date, min, max)}
|
|
401
|
-
tabindex=${
|
|
402
|
-
focusable.getTime() != date.getTime() ? -1 : void 0
|
|
403
|
-
)}
|
|
416
|
+
tabindex=${date.getTime() === focusable.getTime() ? lit.nothing : -1}
|
|
404
417
|
aria-current=${date.getTime() === today.getTime() ? "date" : lit.nothing}
|
|
405
418
|
aria-selected=${date.getTime() === (value == null ? void 0 : value.getTime())}
|
|
406
419
|
data-type="day"
|
|
@@ -509,11 +522,14 @@ exports.DaikinCalendar = class DaikinCalendar extends ddsElement.DDSElement {
|
|
|
509
522
|
}
|
|
510
523
|
}
|
|
511
524
|
updated(changedProperties) {
|
|
512
|
-
if (
|
|
525
|
+
if (this._dateToBeFocused != null) {
|
|
513
526
|
const dateButton = this.renderRoot.querySelector(
|
|
514
527
|
`[data-type=day][data-date="${calendarCommon.formatDateForProperty(this._dateToBeFocused)}"]`
|
|
515
528
|
);
|
|
516
|
-
|
|
529
|
+
if (dateButton) {
|
|
530
|
+
this._lastFocusedDate = this._dateToBeFocused;
|
|
531
|
+
dateButton.focus();
|
|
532
|
+
}
|
|
517
533
|
this._dateToBeFocused = null;
|
|
518
534
|
}
|
|
519
535
|
if (changedProperties.get("view") != null) {
|
|
@@ -556,6 +572,12 @@ __decorateClass([
|
|
|
556
572
|
__decorateClass([
|
|
557
573
|
decorators_js.property({ type: String, attribute: false })
|
|
558
574
|
], exports.DaikinCalendar.prototype, "view", 2);
|
|
575
|
+
__decorateClass([
|
|
576
|
+
decorators_js.state()
|
|
577
|
+
], exports.DaikinCalendar.prototype, "_lastFocusedDate", 2);
|
|
578
|
+
__decorateClass([
|
|
579
|
+
decorators_js.state()
|
|
580
|
+
], exports.DaikinCalendar.prototype, "_dateToBeFocused", 2);
|
|
559
581
|
__decorateClass([
|
|
560
582
|
decorators_js.state()
|
|
561
583
|
], exports.DaikinCalendar.prototype, "_viewDate", 2);
|
|
@@ -46,6 +46,15 @@ export declare class DaikinCalendar extends DDSElement {
|
|
|
46
46
|
* Intended for use only by `daikin-date-picker`.
|
|
47
47
|
*/
|
|
48
48
|
view: "year" | "month" | "day";
|
|
49
|
+
/**
|
|
50
|
+
* The date that was last focused.
|
|
51
|
+
* Used to preserve focus when tabbing out and back in.
|
|
52
|
+
*/
|
|
53
|
+
private _lastFocusedDate;
|
|
54
|
+
/**
|
|
55
|
+
* The date to be focused.
|
|
56
|
+
* Used to set focus on a date that is not in the current view (year and month).
|
|
57
|
+
*/
|
|
49
58
|
private _dateToBeFocused;
|
|
50
59
|
private get _value();
|
|
51
60
|
private get _min();
|
|
@@ -106,8 +106,11 @@ const cvaOption = classVarianceAuthority.cva(
|
|
|
106
106
|
"active:var-color-ddt-color-common-surface-selected-press/color-primary",
|
|
107
107
|
"after:i-daikin-dropdown-check",
|
|
108
108
|
"after:size-6",
|
|
109
|
-
"
|
|
110
|
-
"
|
|
109
|
+
"pr-10",
|
|
110
|
+
"after:absolute",
|
|
111
|
+
"after:right-3",
|
|
112
|
+
"after:top-1/2",
|
|
113
|
+
"after:-translate-y-1/2"
|
|
111
114
|
]
|
|
112
115
|
},
|
|
113
116
|
disabled: {
|
|
@@ -433,7 +436,7 @@ exports.DaikinCombobox = class DaikinCombobox extends ddsFormElement.DDSFormElem
|
|
|
433
436
|
aria-label=${ifDefined_js.ifDefined(this._label ?? void 0)}
|
|
434
437
|
aria-expanded=${this.open && !this.disabled}
|
|
435
438
|
aria-disabled=${this.disabled}
|
|
436
|
-
aria-controls
|
|
439
|
+
aria-controls=${ifDefined_js.ifDefined(this.open ? "combobox-items" : void 0)}
|
|
437
440
|
aria-autocomplete="list"
|
|
438
441
|
aria-required=${this.required}
|
|
439
442
|
aria-haspopup="listbox"
|
|
@@ -12,6 +12,7 @@ const ddsFormElement = require("../../base/dds-form-element.cjs");
|
|
|
12
12
|
const decorators = require("../../base/decorators.cjs");
|
|
13
13
|
require("../../base/define.cjs");
|
|
14
14
|
const floatingUiAutoUpdate = require("../../controllers/floating-ui-auto-update.cjs");
|
|
15
|
+
const focusTrap = require("../../controllers/focus-trap.cjs");
|
|
15
16
|
const tailwind = require("../../tailwind.css.cjs");
|
|
16
17
|
const calendarCommon = require("../../utils/calendar-common.cjs");
|
|
17
18
|
const reDispatch = require("../../utils/re-dispatch.cjs");
|
|
@@ -58,7 +59,7 @@ const cvaField = classVarianceAuthority.cva(
|
|
|
58
59
|
"pl-4",
|
|
59
60
|
"pr-10",
|
|
60
61
|
"rounded",
|
|
61
|
-
"
|
|
62
|
+
"truncate",
|
|
62
63
|
"outline",
|
|
63
64
|
"outline-[--color-border]",
|
|
64
65
|
"outline-0",
|
|
@@ -245,6 +246,18 @@ exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSForm
|
|
|
245
246
|
this._autoUpdateController = new floatingUiAutoUpdate.FloatingUIAutoUpdateController(this);
|
|
246
247
|
this._dateInputElement = ref_js.createRef();
|
|
247
248
|
this._calendarElement = ref_js.createRef();
|
|
249
|
+
this._calendarButtonElement = ref_js.createRef();
|
|
250
|
+
this._ignoreCloseByFocusTrap = false;
|
|
251
|
+
this._handleCloseCalendar = () => {
|
|
252
|
+
var _a;
|
|
253
|
+
if (this._ignoreCloseByFocusTrap) return;
|
|
254
|
+
this.open = false;
|
|
255
|
+
(_a = this._calendarButtonElement.value) == null ? void 0 : _a.focus();
|
|
256
|
+
};
|
|
257
|
+
this._focusTrapController = new focusTrap.FocusTrapController(
|
|
258
|
+
this,
|
|
259
|
+
this._handleCloseCalendar
|
|
260
|
+
);
|
|
248
261
|
}
|
|
249
262
|
get _value() {
|
|
250
263
|
return calendarCommon.tryParseDateFromProperty(this.value);
|
|
@@ -408,7 +421,11 @@ exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSForm
|
|
|
408
421
|
}
|
|
409
422
|
this._emitSelect();
|
|
410
423
|
}
|
|
424
|
+
_handlePointerDown() {
|
|
425
|
+
this._ignoreCloseByFocusTrap = true;
|
|
426
|
+
}
|
|
411
427
|
_handlePointerUp() {
|
|
428
|
+
this._ignoreCloseByFocusTrap = false;
|
|
412
429
|
if (this.disabled || this.readonly) {
|
|
413
430
|
return;
|
|
414
431
|
}
|
|
@@ -506,12 +523,14 @@ exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSForm
|
|
|
506
523
|
@mouseup=${this._handleMouseUp}
|
|
507
524
|
/>
|
|
508
525
|
<daikin-icon-button
|
|
526
|
+
${ref_js.ref(this._calendarButtonElement)}
|
|
509
527
|
class="absolute top-0 bottom-0 right-2 m-auto"
|
|
510
528
|
type="button"
|
|
511
529
|
color="neutral"
|
|
512
530
|
variant="ghost"
|
|
513
531
|
button-aria-label="Open the date picker"
|
|
514
532
|
?disabled=${this.disabled}
|
|
533
|
+
@pointerdown=${this._handlePointerDown}
|
|
515
534
|
@pointerup=${this._handlePointerUp}
|
|
516
535
|
@keydown=${this._handleCalendarKeyDown}
|
|
517
536
|
>
|
|
@@ -520,6 +539,7 @@ exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSForm
|
|
|
520
539
|
</div>
|
|
521
540
|
<daikin-calendar
|
|
522
541
|
${ref_js.ref(this._calendarElement)}
|
|
542
|
+
${this._focusTrapController.refContainer()}
|
|
523
543
|
id="calendar"
|
|
524
544
|
.value=${this._value ? calendarCommon.formatDateForProperty(this._value) : null}
|
|
525
545
|
min=${calendarCommon.formatDateForProperty(min)}
|
|
@@ -527,7 +547,7 @@ exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSForm
|
|
|
527
547
|
default-value=${ifDefined_js.ifDefined(
|
|
528
548
|
this._defaultValue ? calendarCommon.formatDateForProperty(this._defaultValue) : void 0
|
|
529
549
|
)}
|
|
530
|
-
popover="
|
|
550
|
+
popover="manual"
|
|
531
551
|
class="absolute left-[--floating-x,0] top-[--floating-y,0]"
|
|
532
552
|
@toggle=${this._handleToggle}
|
|
533
553
|
@select=${this._handleSelect}
|
|
@@ -546,6 +566,10 @@ exports.DaikinDatePicker = class DaikinDatePicker extends ddsFormElement.DDSForm
|
|
|
546
566
|
},
|
|
547
567
|
this.open
|
|
548
568
|
)
|
|
569
|
+
)}
|
|
570
|
+
${guard_js.guard(
|
|
571
|
+
[this.open],
|
|
572
|
+
() => this._focusTrapController.directive(this.open)
|
|
549
573
|
)}`;
|
|
550
574
|
}
|
|
551
575
|
willUpdate(changedProperties) {
|
|
@@ -70,12 +70,16 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
70
70
|
private _autoUpdateController;
|
|
71
71
|
private _dateInputElement;
|
|
72
72
|
private _calendarElement;
|
|
73
|
+
private _calendarButtonElement;
|
|
73
74
|
private get _value();
|
|
74
75
|
private get _min();
|
|
75
76
|
private get _max();
|
|
76
77
|
private get _defaultValue();
|
|
77
78
|
private get _viewDate();
|
|
78
79
|
private get _open();
|
|
80
|
+
private _ignoreCloseByFocusTrap;
|
|
81
|
+
private _handleCloseCalendar;
|
|
82
|
+
private readonly _focusTrapController;
|
|
79
83
|
private _emitSelect;
|
|
80
84
|
private _handleFocusIn;
|
|
81
85
|
private _handleFocusOut;
|
|
@@ -84,6 +88,7 @@ export declare class DaikinDatePicker extends DDSFormElement {
|
|
|
84
88
|
private _handleKeyDown;
|
|
85
89
|
private _handleBeforeInput;
|
|
86
90
|
private _handleSelect;
|
|
91
|
+
private _handlePointerDown;
|
|
87
92
|
private _handlePointerUp;
|
|
88
93
|
private _handleCalendarKeyDown;
|
|
89
94
|
private _handleToggle;
|
|
@@ -4,7 +4,6 @@ const dom = require("@floating-ui/dom");
|
|
|
4
4
|
const classVarianceAuthority = require("class-variance-authority");
|
|
5
5
|
const lit = require("lit");
|
|
6
6
|
const decorators_js = require("lit/decorators.js");
|
|
7
|
-
const ifDefined_js = require("lit/directives/if-defined.js");
|
|
8
7
|
const ref_js = require("lit/directives/ref.js");
|
|
9
8
|
require("../../base/dds-element.cjs");
|
|
10
9
|
const ddsFormElement = require("../../base/dds-form-element.cjs");
|
|
@@ -326,6 +325,7 @@ exports.DaikinDropdown = class DaikinDropdown extends ddsFormElement.DDSFormElem
|
|
|
326
325
|
return lit.html`<div class="w-full" @keydown=${this._handleKeyDown}>
|
|
327
326
|
<button
|
|
328
327
|
${ref_js.ref(this._dropdownRef)}
|
|
328
|
+
id="dropdown-button"
|
|
329
329
|
type="button"
|
|
330
330
|
class=${cvaButton({
|
|
331
331
|
open: this.open,
|
|
@@ -336,7 +336,7 @@ exports.DaikinDropdown = class DaikinDropdown extends ddsFormElement.DDSFormElem
|
|
|
336
336
|
aria-label=${this._label ?? fallbackLabel}
|
|
337
337
|
aria-expanded=${this.open && !this.disabled}
|
|
338
338
|
aria-disabled=${this.disabled}
|
|
339
|
-
aria-controls
|
|
339
|
+
aria-controls=${this.open ? "dropdown-items" : lit.nothing}
|
|
340
340
|
aria-required=${this.required}
|
|
341
341
|
aria-haspopup="listbox"
|
|
342
342
|
@pointerup=${this._handlePointerUp}
|
|
@@ -350,16 +350,14 @@ exports.DaikinDropdown = class DaikinDropdown extends ddsFormElement.DDSFormElem
|
|
|
350
350
|
</button>
|
|
351
351
|
<div
|
|
352
352
|
id="dropdown-items"
|
|
353
|
+
role="listbox"
|
|
353
354
|
popover="manual"
|
|
354
355
|
class="flex flex-col overflow-hidden floating-unready:hidden absolute left-[--floating-x,0] top-[--floating-y,0] min-w-[--floating-width] max-h-[12.5rem] border border-ddt-color-divider opacity-1 transition-[opacity] rounded max-w-min"
|
|
356
|
+
aria-labelledby="dropdown-button"
|
|
355
357
|
@floating-ready=${this._handleFloatingReady}
|
|
356
358
|
${this._autoUpdateController.refFloating()}
|
|
357
359
|
>
|
|
358
|
-
<div
|
|
359
|
-
class="flex-1 overflow-y-auto break-all"
|
|
360
|
-
aria-label=${ifDefined_js.ifDefined(this._label ?? void 0)}
|
|
361
|
-
role="listbox"
|
|
362
|
-
>
|
|
360
|
+
<div class="flex-1 overflow-y-auto break-all">
|
|
363
361
|
<slot
|
|
364
362
|
@slotchange=${this._handleSlotChange}
|
|
365
363
|
@select=${this._handleSelect}
|
|
@@ -193,19 +193,19 @@ exports.DaikinIcon.styles = lit.css`
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
:host([size="s"]) {
|
|
196
|
-
--ddc-icon-size:
|
|
196
|
+
--ddc-icon-size: 16px;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
:host([size="m"]) {
|
|
200
|
-
--ddc-icon-size:
|
|
200
|
+
--ddc-icon-size: 24px;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
:host([size="l"]) {
|
|
204
|
-
--ddc-icon-size:
|
|
204
|
+
--ddc-icon-size: 32px;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
:host([size="xl"]) {
|
|
208
|
-
--ddc-icon-size:
|
|
208
|
+
--ddc-icon-size: 40px;
|
|
209
209
|
}
|
|
210
210
|
`;
|
|
211
211
|
__decorateClass([
|
|
@@ -78,6 +78,14 @@ declare const icons: {
|
|
|
78
78
|
class: string;
|
|
79
79
|
color: null;
|
|
80
80
|
};
|
|
81
|
+
notification: {
|
|
82
|
+
class: string;
|
|
83
|
+
color: null;
|
|
84
|
+
};
|
|
85
|
+
neutral: {
|
|
86
|
+
class: string;
|
|
87
|
+
color: null;
|
|
88
|
+
};
|
|
81
89
|
};
|
|
82
90
|
export declare const iconList: string[];
|
|
83
91
|
export type IconType = keyof typeof icons;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null }, "negative": { "class": "i-daikin-error", "color": null }, "positive": { "class": "i-daikin-success", "color": null }, "cross": { "class": "i-daikin-close", "color": null } };
|
|
3
|
+
const icons = { "logo-positive": { "class": "i-daikin-logo-positive", "color": null }, "logo-negative": { "class": "i-daikin-logo-negative", "color": null }, "alarm": { "class": "i-daikin-alarm", "color": null }, "close": { "class": "i-daikin-close", "color": "#a0a0a0" }, "information": { "class": "i-daikin-information", "color": null }, "error": { "class": "i-daikin-error", "color": null }, "success": { "class": "i-daikin-success", "color": null }, "warning": { "class": "i-daikin-warning", "color": null }, "pagination-chevron-left": { "class": "i-daikin-pagination-chevron-left", "color": "#414141" }, "pagination-chevron-right": { "class": "i-daikin-pagination-chevron-right", "color": "#414141" }, "profile": { "class": "i-daikin-profile", "color": null }, "chevron-up": { "class": "i-daikin-chevron-up", "color": null }, "chevron-down": { "class": "i-daikin-chevron-down", "color": null }, "chevron-left": { "class": "i-daikin-chevron-left", "color": null }, "chevron-right": { "class": "i-daikin-chevron-right", "color": null }, "sort": { "class": "i-daikin-sort", "color": null }, "negative": { "class": "i-daikin-error", "color": null }, "positive": { "class": "i-daikin-success", "color": null }, "cross": { "class": "i-daikin-close", "color": null }, "notification": { "class": "i-daikin-notification", "color": null }, "neutral": { "class": "i-daikin-neutral", "color": null } };
|
|
4
4
|
const iconsJson = {
|
|
5
5
|
icons
|
|
6
6
|
};
|
|
@@ -75,6 +75,14 @@ declare const _default: {
|
|
|
75
75
|
"cross": {
|
|
76
76
|
"class": "i-daikin-close",
|
|
77
77
|
"color": null
|
|
78
|
+
},
|
|
79
|
+
"notification": {
|
|
80
|
+
"class": "i-daikin-notification",
|
|
81
|
+
"color": null
|
|
82
|
+
},
|
|
83
|
+
"neutral": {
|
|
84
|
+
"class": "i-daikin-neutral",
|
|
85
|
+
"color": null
|
|
78
86
|
}
|
|
79
87
|
}
|
|
80
88
|
}
|
|
@@ -2,7 +2,7 @@ import { DDSFormSubmitElement } from "../../base/index.cjs";
|
|
|
2
2
|
import { ARIARole } from "../../lit-analyzer-types.cjs";
|
|
3
3
|
import { MergeVariantProps } from "../../type-utils.cjs";
|
|
4
4
|
declare const cvaIconButton: (props?: ({
|
|
5
|
-
color?: "
|
|
5
|
+
color?: "danger" | "default" | "neutral" | null | undefined;
|
|
6
6
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
type IconButtonVariantProps = MergeVariantProps<typeof cvaIconButton>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const daikinAccordion = require("./accordion/daikin-accordion.cjs");
|
|
4
4
|
const daikinAccordionItem = require("./accordion-item/daikin-accordion-item.cjs");
|
|
5
5
|
const daikinAvatar = require("./avatar/daikin-avatar.cjs");
|
|
6
|
+
const daikinBadge = require("./badge/daikin-badge.cjs");
|
|
6
7
|
const daikinBreadcrumb = require("./breadcrumb/daikin-breadcrumb.cjs");
|
|
7
8
|
const daikinBreadcrumbItem = require("./breadcrumb-item/daikin-breadcrumb-item.cjs");
|
|
8
9
|
const daikinButton = require("./button/daikin-button.cjs");
|
|
@@ -40,6 +41,7 @@ const daikinRadio = require("./radio/daikin-radio.cjs");
|
|
|
40
41
|
const daikinRadioGroup = require("./radio-group/daikin-radio-group.cjs");
|
|
41
42
|
const daikinSelect = require("./select/daikin-select.cjs");
|
|
42
43
|
const daikinSlider = require("./slider/daikin-slider.cjs");
|
|
44
|
+
const daikinStatusMessage = require("./status-message/daikin-status-message.cjs");
|
|
43
45
|
const daikinTab = require("./tab/daikin-tab.cjs");
|
|
44
46
|
const daikinTabPanels = require("./tab-panels/daikin-tab-panels.cjs");
|
|
45
47
|
const daikinTable = require("./table/daikin-table.cjs");
|
|
@@ -69,6 +71,10 @@ Object.defineProperty(exports, "DaikinAvatar", {
|
|
|
69
71
|
enumerable: true,
|
|
70
72
|
get: () => daikinAvatar.DaikinAvatar
|
|
71
73
|
});
|
|
74
|
+
Object.defineProperty(exports, "DaikinBadge", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: () => daikinBadge.DaikinBadge
|
|
77
|
+
});
|
|
72
78
|
Object.defineProperty(exports, "DaikinBreadcrumb", {
|
|
73
79
|
enumerable: true,
|
|
74
80
|
get: () => daikinBreadcrumb.DaikinBreadcrumb
|
|
@@ -219,6 +225,10 @@ Object.defineProperty(exports, "DaikinSlider", {
|
|
|
219
225
|
enumerable: true,
|
|
220
226
|
get: () => daikinSlider.DaikinSlider
|
|
221
227
|
});
|
|
228
|
+
Object.defineProperty(exports, "DaikinStatusMessage", {
|
|
229
|
+
enumerable: true,
|
|
230
|
+
get: () => daikinStatusMessage.DaikinStatusMessage
|
|
231
|
+
});
|
|
222
232
|
Object.defineProperty(exports, "DaikinTab", {
|
|
223
233
|
enumerable: true,
|
|
224
234
|
get: () => daikinTab.DaikinTab
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./accordion/index.cjs";
|
|
2
2
|
export * from "./accordion-item/index.cjs";
|
|
3
3
|
export * from "./avatar/index.cjs";
|
|
4
|
+
export * from "./badge/index.cjs";
|
|
4
5
|
export * from "./breadcrumb/index.cjs";
|
|
5
6
|
export * from "./breadcrumb-item/index.cjs";
|
|
6
7
|
export * from "./button/index.cjs";
|
|
@@ -38,6 +39,7 @@ export * from "./radio/index.cjs";
|
|
|
38
39
|
export * from "./radio-group/index.cjs";
|
|
39
40
|
export * from "./select/index.cjs";
|
|
40
41
|
export * from "./slider/index.cjs";
|
|
42
|
+
export * from "./status-message/index.cjs";
|
|
41
43
|
export * from "./tab/index.cjs";
|
|
42
44
|
export * from "./tab-panels/index.cjs";
|
|
43
45
|
export * from "./table/index.cjs";
|