@serendie/ui 2.4.0 → 2.4.1-dev.202601150618
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.
|
@@ -10,7 +10,7 @@ import { CheckboxContext as C } from "../../node_modules/@ark-ui/react/dist/comp
|
|
|
10
10
|
import { CheckboxControl as S } from "../../node_modules/@ark-ui/react/dist/components/checkbox/checkbox-control.js";
|
|
11
11
|
import { CheckboxLabel as i } from "../../node_modules/@ark-ui/react/dist/components/checkbox/checkbox-label.js";
|
|
12
12
|
import { CheckboxHiddenInput as I } from "../../node_modules/@ark-ui/react/dist/components/checkbox/checkbox-hidden-input.js";
|
|
13
|
-
const
|
|
13
|
+
const v = {
|
|
14
14
|
flexShrink: 0,
|
|
15
15
|
cursor: "pointer",
|
|
16
16
|
".group:has(:focus-visible) &": {
|
|
@@ -30,7 +30,7 @@ const _ = {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, _ = {
|
|
34
34
|
width: 24,
|
|
35
35
|
height: 24,
|
|
36
36
|
color: "sd.system.color.impression.primary",
|
|
@@ -61,10 +61,11 @@ const _ = {
|
|
|
61
61
|
gap: "sd.system.dimension.spacing.medium",
|
|
62
62
|
paddingY: "sd.system.dimension.spacing.small",
|
|
63
63
|
paddingX: "sd.system.dimension.spacing.medium",
|
|
64
|
-
cursor: "pointer"
|
|
64
|
+
cursor: "pointer",
|
|
65
|
+
position: "relative"
|
|
65
66
|
},
|
|
66
|
-
itemControl:
|
|
67
|
-
checkedIcon:
|
|
67
|
+
itemControl: v,
|
|
68
|
+
checkedIcon: _,
|
|
68
69
|
uncheckedIcon: N,
|
|
69
70
|
itemTextGroup: {
|
|
70
71
|
display: "flex",
|
|
@@ -123,7 +124,7 @@ const _ = {
|
|
|
123
124
|
export {
|
|
124
125
|
H as CheckBox,
|
|
125
126
|
n as CheckBoxStyle,
|
|
126
|
-
|
|
127
|
-
|
|
127
|
+
_ as checkboxCheckedIconCss,
|
|
128
|
+
v as checkboxIconCss,
|
|
128
129
|
N as checkboxUncheckedIconCss
|
|
129
130
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as i, Fragment as T } from "react/jsx-runtime";
|
|
2
2
|
import { SerendieSymbolCalendar as B, SerendieSymbolArrowRight as J, SerendieSymbolChevronDown as Y, SerendieSymbolChevronLeft as _, SerendieSymbolChevronRight as z } from "@serendie/symbols";
|
|
3
3
|
import { forwardRef as E, useState as G } from "react";
|
|
4
4
|
import { datePickerStyles as S } from "./styles.js";
|
|
@@ -11,14 +11,14 @@ import { DatePickerLabel as X } from "../../node_modules/@ark-ui/react/dist/comp
|
|
|
11
11
|
import { DatePickerControl as Z } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js";
|
|
12
12
|
import { cx as f } from "../../styled-system/css/cx.js";
|
|
13
13
|
import { DatePickerTrigger as $ } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js";
|
|
14
|
-
import { css as
|
|
14
|
+
import { css as a } from "../../styled-system/css/css.js";
|
|
15
15
|
import { DatePickerInput as P } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js";
|
|
16
16
|
import { DatePickerPositioner as M } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js";
|
|
17
17
|
import { DatePickerContent as ee } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js";
|
|
18
18
|
import { DatePickerView as re } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js";
|
|
19
19
|
import { DatePickerContext as te } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js";
|
|
20
|
-
import { DatePickerViewControl as
|
|
21
|
-
import { DatePickerYearSelect as
|
|
20
|
+
import { DatePickerViewControl as ie } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js";
|
|
21
|
+
import { DatePickerYearSelect as ae } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js";
|
|
22
22
|
import { DatePickerPrevTrigger as oe } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js";
|
|
23
23
|
import { DatePickerMonthSelect as le } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js";
|
|
24
24
|
import { DatePickerNextTrigger as ne } from "../../node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js";
|
|
@@ -59,7 +59,7 @@ const Ee = E(
|
|
|
59
59
|
className: t.root,
|
|
60
60
|
children: /* @__PURE__ */ e(x, {})
|
|
61
61
|
}
|
|
62
|
-
) : /* @__PURE__ */
|
|
62
|
+
) : /* @__PURE__ */ i(
|
|
63
63
|
y,
|
|
64
64
|
{
|
|
65
65
|
locale: u,
|
|
@@ -73,17 +73,17 @@ const Ee = E(
|
|
|
73
73
|
p(D.open), (b = c.onOpenChange) == null || b.call(c, D);
|
|
74
74
|
},
|
|
75
75
|
children: [
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
o && /* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ i(T, { children: [
|
|
77
|
+
o && /* @__PURE__ */ i(X, { className: t.label, children: [
|
|
78
78
|
o,
|
|
79
79
|
l && /* @__PURE__ */ e("span", { className: t.labelRequired, children: n ?? d("common.required") })
|
|
80
80
|
] }),
|
|
81
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ i(
|
|
82
82
|
Z,
|
|
83
83
|
{
|
|
84
84
|
className: f(
|
|
85
85
|
t.inputWrapper,
|
|
86
|
-
|
|
86
|
+
a({
|
|
87
87
|
_expanded: {
|
|
88
88
|
outlineWidth: "sd.system.dimension.border.thick",
|
|
89
89
|
outlineColor: "sd.system.color.impression.primary"
|
|
@@ -91,20 +91,20 @@ const Ee = E(
|
|
|
91
91
|
})
|
|
92
92
|
),
|
|
93
93
|
"data-expanded": N ? !0 : void 0,
|
|
94
|
-
"data-
|
|
94
|
+
"data-invalid": s ? !0 : void 0,
|
|
95
95
|
children: [
|
|
96
96
|
/* @__PURE__ */ e("div", { className: t.leftContent, children: /* @__PURE__ */ e(
|
|
97
97
|
$,
|
|
98
98
|
{
|
|
99
|
-
className:
|
|
99
|
+
className: a({ display: "flex" }),
|
|
100
100
|
ref: q,
|
|
101
101
|
children: /* @__PURE__ */ e(B, {})
|
|
102
102
|
}
|
|
103
103
|
) }),
|
|
104
|
-
V ? /* @__PURE__ */
|
|
104
|
+
V ? /* @__PURE__ */ i(
|
|
105
105
|
"div",
|
|
106
106
|
{
|
|
107
|
-
className:
|
|
107
|
+
className: a({
|
|
108
108
|
display: "grid",
|
|
109
109
|
gridTemplateColumns: "1fr auto 1fr",
|
|
110
110
|
alignItems: "center"
|
|
@@ -117,7 +117,7 @@ const Ee = E(
|
|
|
117
117
|
placeholder: W,
|
|
118
118
|
className: f(
|
|
119
119
|
t.input,
|
|
120
|
-
|
|
120
|
+
a({
|
|
121
121
|
minWidth: "100%",
|
|
122
122
|
borderRadius: "sd.system.dimension.radius.medium"
|
|
123
123
|
})
|
|
@@ -133,7 +133,7 @@ const Ee = E(
|
|
|
133
133
|
placeholder: O,
|
|
134
134
|
className: f(
|
|
135
135
|
t.input,
|
|
136
|
-
|
|
136
|
+
a({
|
|
137
137
|
minWidth: "100%",
|
|
138
138
|
borderRadius: "sd.system.dimension.radius.medium"
|
|
139
139
|
})
|
|
@@ -164,18 +164,18 @@ const Ee = E(
|
|
|
164
164
|
}
|
|
165
165
|
), x = () => {
|
|
166
166
|
const r = S();
|
|
167
|
-
return /* @__PURE__ */ e(ee, { className: r.content, children: /* @__PURE__ */ e(re, { view: "day", className: r.view, children: /* @__PURE__ */ e(te, { children: (o) => /* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */ e(
|
|
167
|
+
return /* @__PURE__ */ e(ee, { className: r.content, children: /* @__PURE__ */ e(re, { view: "day", className: r.view, children: /* @__PURE__ */ e(te, { children: (o) => /* @__PURE__ */ i(T, { children: [
|
|
168
|
+
/* @__PURE__ */ i(ie, { className: r.viewControl, children: [
|
|
169
|
+
/* @__PURE__ */ i("div", { className: r.selectWrapper, children: [
|
|
170
|
+
/* @__PURE__ */ e(ae, { className: r.select }),
|
|
171
171
|
/* @__PURE__ */ e(Y, { className: r.selectIcon })
|
|
172
172
|
] }),
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ i("div", { className: a({ display: "flex", alignItems: "center" }), children: [
|
|
174
174
|
/* @__PURE__ */ e(oe, { className: r.prevTrigger, children: /* @__PURE__ */ e(_, {}) }),
|
|
175
175
|
/* @__PURE__ */ e(
|
|
176
176
|
le,
|
|
177
177
|
{
|
|
178
|
-
className:
|
|
178
|
+
className: a({
|
|
179
179
|
appearance: "none",
|
|
180
180
|
textAlign: "center"
|
|
181
181
|
})
|
|
@@ -184,7 +184,7 @@ const Ee = E(
|
|
|
184
184
|
/* @__PURE__ */ e(ne, { className: r.nextTrigger, children: /* @__PURE__ */ e(z, {}) })
|
|
185
185
|
] })
|
|
186
186
|
] }),
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ i(se, { className: r.table, children: [
|
|
188
188
|
/* @__PURE__ */ e(ce, { children: /* @__PURE__ */ e(v, { children: o.weekDays.map((l, n) => /* @__PURE__ */ e(
|
|
189
189
|
me,
|
|
190
190
|
{
|
|
@@ -43,7 +43,8 @@ const k = {
|
|
|
43
43
|
gap: "sd.system.dimension.spacing.medium",
|
|
44
44
|
paddingY: "sd.system.dimension.spacing.small",
|
|
45
45
|
paddingX: "sd.system.dimension.spacing.medium",
|
|
46
|
-
cursor: "pointer"
|
|
46
|
+
cursor: "pointer",
|
|
47
|
+
position: "relative"
|
|
47
48
|
},
|
|
48
49
|
itemControl: k,
|
|
49
50
|
checkedIcon: R,
|
|
@@ -17,6 +17,7 @@ const n = u({
|
|
|
17
17
|
gap: "sd.system.dimension.spacing.medium",
|
|
18
18
|
paddingY: "sd.system.dimension.spacing.small",
|
|
19
19
|
paddingX: "sd.system.dimension.spacing.medium",
|
|
20
|
+
position: "relative",
|
|
20
21
|
'&[data-focus="true"] .control': {
|
|
21
22
|
borderColor: "sd.system.color.impression.primary"
|
|
22
23
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@serendie/ui",
|
|
3
3
|
"description": "Adaptive UI component library as part of Serendie Design System by Mitsubishi Electric",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.4.
|
|
5
|
+
"version": "2.4.1-dev.202601150618",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"sideEffects": [
|