rk-designsystem 1.3.1 → 1.3.4
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/dist/assets/logos/RedCrossLogo.js +30 -0
- package/dist/components/Carousel/index.js +18 -17
- package/dist/components/Carousel/styles.module.css.js +24 -24
- package/dist/components/DateInput/index.js +34 -34
- package/dist/components/DatePicker/index.js +127 -124
- package/dist/components/DatePicker/styles.module.css.js +22 -20
- package/dist/components/Donor/index.js +36 -25
- package/dist/components/Footer/index.js +180 -185
- package/dist/components/Footer/styles.module.css.js +66 -66
- package/dist/components/GraphicElement/index.js +6 -6
- package/dist/components/Header/index.js +282 -279
- package/dist/components/Header/styles.module.css.js +47 -47
- package/dist/rk-designsystem.css +1 -1
- package/package.json +7 -13
|
@@ -1,191 +1,191 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as y, jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect as N, useState as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { startOfMonth as
|
|
6
|
-
import { nb as
|
|
7
|
-
import { ChevronLeftIcon as
|
|
8
|
-
import { ChevronRightIcon as
|
|
3
|
+
import { useEffect as N, useState as j, useRef as B, useMemo as D, useCallback as b, useId as te } from "react";
|
|
4
|
+
import { Button as R } from "@digdir/designsystemet-react";
|
|
5
|
+
import { startOfMonth as f, isValid as w, isSameMonth as C, format as u, startOfWeek as I, addDays as g, subMonths as A, addMonths as S, endOfWeek as L, isSameDay as W, isToday as re, endOfMonth as oe, eachDayOfInterval as ae, getDaysInMonth as ne, setDate as ie } from "date-fns";
|
|
6
|
+
import { nb as d } from "date-fns/locale";
|
|
7
|
+
import { ChevronLeftIcon as se } from "../../assets/images/ChevronLeftIcon.js";
|
|
8
|
+
import { ChevronRightIcon as de } from "../../assets/images/ChevronRightIcon.js";
|
|
9
9
|
import n from "./styles.module.css.js";
|
|
10
|
-
import { useLanguageOptional as
|
|
11
|
-
const
|
|
12
|
-
const o =
|
|
13
|
-
return
|
|
14
|
-
}, H = (
|
|
15
|
-
const
|
|
16
|
-
return
|
|
17
|
-
},
|
|
18
|
-
initialDate:
|
|
10
|
+
import { useLanguageOptional as le } from "../../context/LanguageContext.js";
|
|
11
|
+
const ce = (t) => {
|
|
12
|
+
const o = f(t), l = I(o, { locale: d }), z = L(oe(t), { locale: d });
|
|
13
|
+
return ae({ start: l, end: z });
|
|
14
|
+
}, H = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), v = (t, o) => {
|
|
15
|
+
const l = Math.min(t.getDate(), ne(o));
|
|
16
|
+
return ie(f(o), l);
|
|
17
|
+
}, ue = ({
|
|
18
|
+
initialDate: t = /* @__PURE__ */ new Date(),
|
|
19
19
|
selectedDate: o = null,
|
|
20
|
-
onDateSelect:
|
|
20
|
+
onDateSelect: l,
|
|
21
21
|
"data-color": z,
|
|
22
|
-
"data-size":
|
|
22
|
+
"data-size": V
|
|
23
23
|
}) => {
|
|
24
|
-
const { t: E } =
|
|
24
|
+
const { t: E } = le();
|
|
25
25
|
N(() => {
|
|
26
|
-
const
|
|
27
|
-
if (typeof document > "u" || document.getElementById(
|
|
26
|
+
const r = "rk-datepicker-inline-styles";
|
|
27
|
+
if (typeof document > "u" || document.getElementById(r)) return;
|
|
28
28
|
const e = fe(n), a = document.createElement("style");
|
|
29
|
-
a.id =
|
|
29
|
+
a.id = r, a.textContent = e, document.head.prepend(a);
|
|
30
30
|
}, []);
|
|
31
|
-
const [
|
|
32
|
-
|
|
33
|
-
), [
|
|
34
|
-
() => o && w(o) ? o :
|
|
35
|
-
), P =
|
|
31
|
+
const [c, x] = j(
|
|
32
|
+
f(o && w(o) ? o : t)
|
|
33
|
+
), [h, p] = j(
|
|
34
|
+
() => o && w(o) ? o : t
|
|
35
|
+
), P = B(null), $ = B(!1);
|
|
36
36
|
N(() => {
|
|
37
37
|
if (o && w(o)) {
|
|
38
|
-
|
|
39
|
-
const
|
|
38
|
+
p(o);
|
|
39
|
+
const r = f(o);
|
|
40
40
|
x(
|
|
41
|
-
(e) => C(
|
|
41
|
+
(e) => C(r, e) ? e : r
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
}, [o]), N(() => {
|
|
45
45
|
var e;
|
|
46
46
|
if (!$.current) return;
|
|
47
47
|
$.current = !1;
|
|
48
|
-
const
|
|
49
|
-
`[data-date="${
|
|
48
|
+
const r = (e = P.current) == null ? void 0 : e.querySelector(
|
|
49
|
+
`[data-date="${u(h, "yyyy-MM-dd")}"]`
|
|
50
50
|
);
|
|
51
|
-
|
|
52
|
-
}, [
|
|
51
|
+
r == null || r.focus();
|
|
52
|
+
}, [h, c]);
|
|
53
53
|
const M = D(
|
|
54
|
-
() =>
|
|
55
|
-
[
|
|
54
|
+
() => ce(c),
|
|
55
|
+
[c]
|
|
56
56
|
), Y = D(() => {
|
|
57
|
-
const
|
|
57
|
+
const r = [];
|
|
58
58
|
for (let e = 0; e < M.length; e += 7)
|
|
59
|
-
|
|
60
|
-
return
|
|
59
|
+
r.push(M.slice(e, e + 7));
|
|
60
|
+
return r;
|
|
61
61
|
}, [M]), U = D(() => {
|
|
62
|
-
const
|
|
62
|
+
const r = I(/* @__PURE__ */ new Date(), { locale: d });
|
|
63
63
|
return Array.from({ length: 7 }).map((e, a) => {
|
|
64
|
-
const
|
|
65
|
-
return H(
|
|
64
|
+
const m = u(g(r, a), "EEEEEE", { locale: d });
|
|
65
|
+
return H(m);
|
|
66
66
|
});
|
|
67
|
-
}, []), K =
|
|
68
|
-
x((
|
|
69
|
-
const e =
|
|
70
|
-
return
|
|
67
|
+
}, []), K = b(() => {
|
|
68
|
+
x((r) => {
|
|
69
|
+
const e = f(A(r, 1));
|
|
70
|
+
return p((a) => v(a, e)), e;
|
|
71
71
|
});
|
|
72
|
-
}, []), T =
|
|
73
|
-
x((
|
|
74
|
-
const e =
|
|
75
|
-
return
|
|
72
|
+
}, []), T = b(() => {
|
|
73
|
+
x((r) => {
|
|
74
|
+
const e = f(S(r, 1));
|
|
75
|
+
return p((a) => v(a, e)), e;
|
|
76
76
|
});
|
|
77
|
-
}, []), k =
|
|
78
|
-
(
|
|
79
|
-
|
|
77
|
+
}, []), k = b(
|
|
78
|
+
(r) => {
|
|
79
|
+
p(r), l == null || l(r);
|
|
80
80
|
},
|
|
81
|
-
[
|
|
82
|
-
),
|
|
83
|
-
$.current = !0,
|
|
84
|
-
(e) => C(
|
|
81
|
+
[l]
|
|
82
|
+
), s = b((r) => {
|
|
83
|
+
$.current = !0, p(r), x(
|
|
84
|
+
(e) => C(r, e) ? e : f(r)
|
|
85
85
|
);
|
|
86
|
-
}, []), q =
|
|
87
|
-
(
|
|
88
|
-
switch (
|
|
86
|
+
}, []), q = b(
|
|
87
|
+
(r, e) => {
|
|
88
|
+
switch (r.key) {
|
|
89
89
|
case "Enter":
|
|
90
90
|
case " ":
|
|
91
|
-
|
|
91
|
+
r.preventDefault(), k(e);
|
|
92
92
|
return;
|
|
93
93
|
case "ArrowLeft":
|
|
94
|
-
|
|
94
|
+
r.preventDefault(), s(g(e, -1));
|
|
95
95
|
return;
|
|
96
96
|
case "ArrowRight":
|
|
97
|
-
|
|
97
|
+
r.preventDefault(), s(g(e, 1));
|
|
98
98
|
return;
|
|
99
99
|
case "ArrowUp":
|
|
100
|
-
|
|
100
|
+
r.preventDefault(), s(g(e, -7));
|
|
101
101
|
return;
|
|
102
102
|
case "ArrowDown":
|
|
103
|
-
|
|
103
|
+
r.preventDefault(), s(g(e, 7));
|
|
104
104
|
return;
|
|
105
105
|
case "Home":
|
|
106
|
-
|
|
106
|
+
r.preventDefault(), s(I(e, { locale: d }));
|
|
107
107
|
return;
|
|
108
108
|
case "End":
|
|
109
|
-
|
|
109
|
+
r.preventDefault(), s(L(e, { locale: d }));
|
|
110
110
|
return;
|
|
111
111
|
case "PageUp":
|
|
112
|
-
|
|
112
|
+
r.preventDefault(), s(v(e, A(e, 1)));
|
|
113
113
|
return;
|
|
114
114
|
case "PageDown":
|
|
115
|
-
|
|
115
|
+
r.preventDefault(), s(v(e, S(e, 1)));
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
-
[k,
|
|
120
|
-
),
|
|
119
|
+
[k, s]
|
|
120
|
+
), _ = u(c, "MMMM", { locale: d }), G = u(c, "yyyy", { locale: d }), J = `${H(_)} ${G}`, O = te(), Q = C(h, c) ? h : v(h, c);
|
|
121
121
|
return /* @__PURE__ */ y(
|
|
122
122
|
"div",
|
|
123
123
|
{
|
|
124
124
|
className: n.calendarContainer,
|
|
125
125
|
"data-color": z,
|
|
126
|
-
"data-size":
|
|
126
|
+
"data-size": V,
|
|
127
127
|
children: [
|
|
128
128
|
/* @__PURE__ */ y("div", { className: n.calendarHeader, children: [
|
|
129
|
-
/* @__PURE__ */ i("span", { className: n.monthYear, id: O, "aria-live": "polite", children:
|
|
129
|
+
/* @__PURE__ */ i("span", { className: n.monthYear, id: O, "aria-live": "polite", children: J }),
|
|
130
130
|
/* @__PURE__ */ y("div", { className: n.navigationButtons, children: [
|
|
131
131
|
/* @__PURE__ */ i(
|
|
132
|
-
|
|
132
|
+
R,
|
|
133
133
|
{
|
|
134
134
|
variant: "tertiary",
|
|
135
135
|
icon: !0,
|
|
136
136
|
onClick: K,
|
|
137
137
|
"aria-label": E("datePicker.previousMonth"),
|
|
138
|
-
children: /* @__PURE__ */ i(
|
|
138
|
+
children: /* @__PURE__ */ i(se, {})
|
|
139
139
|
}
|
|
140
140
|
),
|
|
141
141
|
/* @__PURE__ */ i(
|
|
142
|
-
|
|
142
|
+
R,
|
|
143
143
|
{
|
|
144
144
|
variant: "tertiary",
|
|
145
145
|
icon: !0,
|
|
146
146
|
onClick: T,
|
|
147
147
|
"aria-label": E("datePicker.nextMonth"),
|
|
148
|
-
children: /* @__PURE__ */ i(
|
|
148
|
+
children: /* @__PURE__ */ i(de, {})
|
|
149
149
|
}
|
|
150
150
|
)
|
|
151
151
|
] })
|
|
152
152
|
] }),
|
|
153
153
|
/* @__PURE__ */ y("div", { role: "grid", "aria-labelledby": O, className: n.gridWrapper, ref: P, children: [
|
|
154
|
-
/* @__PURE__ */ i("div", { role: "row", className: n.gridRow, children: U.map((
|
|
155
|
-
Y.map((
|
|
156
|
-
const a = C(e,
|
|
154
|
+
/* @__PURE__ */ i("div", { role: "row", className: n.gridRow, children: U.map((r) => /* @__PURE__ */ i("div", { role: "columnheader", className: n.dayNameCell, children: r }, r)) }),
|
|
155
|
+
Y.map((r) => /* @__PURE__ */ i("div", { role: "row", className: n.gridRow, children: r.map((e) => {
|
|
156
|
+
const a = C(e, c), m = o && w(o) && W(e, o), F = re(e), X = a && W(e, Q), Z = [
|
|
157
157
|
n.dateCell,
|
|
158
158
|
a ? "" : n.otherMonth,
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
m ? n.selectedDate : "",
|
|
160
|
+
F && !m ? n.todayDate : ""
|
|
161
161
|
].filter(Boolean).join(" ");
|
|
162
162
|
return /* @__PURE__ */ i(
|
|
163
163
|
"div",
|
|
164
164
|
{
|
|
165
165
|
role: "gridcell",
|
|
166
|
-
className:
|
|
167
|
-
"data-date":
|
|
166
|
+
className: Z,
|
|
167
|
+
"data-date": u(e, "yyyy-MM-dd"),
|
|
168
168
|
onClick: a ? () => k(e) : void 0,
|
|
169
|
-
onKeyDown: a ? (
|
|
170
|
-
tabIndex: a ?
|
|
171
|
-
"aria-selected": a ? !!
|
|
169
|
+
onKeyDown: a ? (ee) => q(ee, e) : void 0,
|
|
170
|
+
tabIndex: a ? X ? 0 : -1 : void 0,
|
|
171
|
+
"aria-selected": a ? !!m : void 0,
|
|
172
172
|
"aria-disabled": !a || void 0,
|
|
173
|
-
"aria-current":
|
|
174
|
-
"aria-label":
|
|
175
|
-
children: /* @__PURE__ */ i("span", { className: n.dateNumberContainer, children:
|
|
173
|
+
"aria-current": F ? "date" : void 0,
|
|
174
|
+
"aria-label": u(e, "PPP", { locale: d }),
|
|
175
|
+
children: /* @__PURE__ */ i("span", { className: n.dateNumberContainer, children: u(e, "d") })
|
|
176
176
|
},
|
|
177
177
|
e.toISOString()
|
|
178
178
|
);
|
|
179
|
-
}) },
|
|
179
|
+
}) }, r[0].toISOString()))
|
|
180
180
|
] })
|
|
181
181
|
]
|
|
182
182
|
}
|
|
183
183
|
);
|
|
184
184
|
};
|
|
185
|
-
|
|
186
|
-
function fe(
|
|
185
|
+
ue.displayName = "DatePicker";
|
|
186
|
+
function fe(t) {
|
|
187
187
|
return `
|
|
188
|
-
.${
|
|
188
|
+
.${t.calendarContainer} {
|
|
189
189
|
display: inline-flex;
|
|
190
190
|
padding: var(--ds-size-8, 32px);
|
|
191
191
|
flex-direction: column;
|
|
@@ -199,38 +199,38 @@ function fe(r) {
|
|
|
199
199
|
max-width: 100%;
|
|
200
200
|
box-sizing: border-box;
|
|
201
201
|
}
|
|
202
|
-
.${
|
|
202
|
+
.${t.calendarHeader} {
|
|
203
203
|
display: flex;
|
|
204
204
|
justify-content: space-between;
|
|
205
205
|
align-items: center;
|
|
206
206
|
align-self: stretch;
|
|
207
207
|
}
|
|
208
|
-
.${
|
|
208
|
+
.${t.monthYear} {
|
|
209
209
|
color: var(--ds-color-text-default, #2b2b2b);
|
|
210
|
-
font-family: var(--ds-font-family, sans-serif);
|
|
210
|
+
font-family: var(--ds-font-family, 'Myriad VF', sans-serif);
|
|
211
211
|
font-size: var(--ds-heading-sm-font-size, 1.5rem);
|
|
212
212
|
font-weight: var(--ds-heading-sm-font-weight, 500);
|
|
213
213
|
line-height: var(--ds-heading-sm-line-height, 1.3);
|
|
214
214
|
margin: 0;
|
|
215
215
|
}
|
|
216
|
-
.${
|
|
216
|
+
.${t.navigationButtons} {
|
|
217
217
|
display: flex;
|
|
218
218
|
gap: var(--ds-size-1, 4px);
|
|
219
219
|
}
|
|
220
|
-
.${
|
|
220
|
+
.${t.navigationButtons} > button:disabled svg {
|
|
221
221
|
opacity: var(--ds-opacity-disabled, 0.3);
|
|
222
222
|
}
|
|
223
|
-
.${
|
|
223
|
+
.${t.gridWrapper} {
|
|
224
224
|
width: 100%;
|
|
225
225
|
overflow: hidden;
|
|
226
226
|
}
|
|
227
|
-
.${
|
|
227
|
+
.${t.gridRow} {
|
|
228
228
|
display: grid;
|
|
229
229
|
grid-template-columns: repeat(7, 1fr);
|
|
230
230
|
width: 100%;
|
|
231
231
|
text-align: center;
|
|
232
232
|
}
|
|
233
|
-
.${
|
|
233
|
+
.${t.dayNameCell} {
|
|
234
234
|
display: flex;
|
|
235
235
|
padding: var(--ds-size-2, 8px);
|
|
236
236
|
flex-direction: column;
|
|
@@ -238,14 +238,14 @@ function fe(r) {
|
|
|
238
238
|
align-items: center;
|
|
239
239
|
color: var(--ds-color-text-default, #2b2b2b);
|
|
240
240
|
text-align: center;
|
|
241
|
-
font-family: var(--ds-font-family, sans-serif);
|
|
241
|
+
font-family: var(--ds-font-family, 'Myriad VF', sans-serif);
|
|
242
242
|
font-size: var(--ds-body-xs-font-size, 14px);
|
|
243
243
|
font-weight: var(--ds-font-weight-semibold, 600);
|
|
244
244
|
line-height: var(--ds-body-short-xs-line-height, 1.3);
|
|
245
245
|
box-sizing: border-box;
|
|
246
246
|
min-width: 0;
|
|
247
247
|
}
|
|
248
|
-
.${
|
|
248
|
+
.${t.dateCell} {
|
|
249
249
|
display: flex;
|
|
250
250
|
padding: var(--ds-size-5, 22px);
|
|
251
251
|
flex-direction: column;
|
|
@@ -254,7 +254,7 @@ function fe(r) {
|
|
|
254
254
|
border: var(--ds-border-width-default, 1px) solid var(--ds-color-border-subtle, #bcbcbc);
|
|
255
255
|
box-sizing: border-box;
|
|
256
256
|
margin: -0.5px;
|
|
257
|
-
font-family: var(--ds-font-family, sans-serif);
|
|
257
|
+
font-family: var(--ds-font-family, 'Myriad VF', sans-serif);
|
|
258
258
|
color: var(--ds-color-text-default, #2b2b2b);
|
|
259
259
|
text-align: center;
|
|
260
260
|
font-size: var(--ds-body-xs-font-size, 14px);
|
|
@@ -265,13 +265,13 @@ function fe(r) {
|
|
|
265
265
|
user-select: none;
|
|
266
266
|
min-width: 0;
|
|
267
267
|
}
|
|
268
|
-
.${
|
|
268
|
+
.${t.dateCell}:focus-visible {
|
|
269
269
|
outline: var(--ds-border-width-focus, 3px) solid var(--ds-color-focus-outer, #2b2b2b);
|
|
270
270
|
outline-offset: calc(-1 * var(--ds-border-width-focus, 3px));
|
|
271
271
|
position: relative;
|
|
272
272
|
z-index: 2;
|
|
273
273
|
}
|
|
274
|
-
.${
|
|
274
|
+
.${t.dateNumberContainer} {
|
|
275
275
|
display: flex;
|
|
276
276
|
justify-content: center;
|
|
277
277
|
align-items: center;
|
|
@@ -283,69 +283,72 @@ function fe(r) {
|
|
|
283
283
|
box-sizing: border-box;
|
|
284
284
|
background-color: transparent;
|
|
285
285
|
}
|
|
286
|
-
.${
|
|
286
|
+
.${t.dateCell}:hover:not(.${t.otherMonth}):not(.${t.disabled}) {
|
|
287
287
|
background-color: var(--ds-color-surface-hover, #eee);
|
|
288
288
|
position: relative;
|
|
289
289
|
z-index: 1;
|
|
290
290
|
}
|
|
291
|
-
.${
|
|
292
|
-
|
|
291
|
+
.${t.otherMonth} {
|
|
292
|
+
/* Neutral-scoped tokens on purpose: under the red color scope the
|
|
293
|
+
scope-relative tints turn pink, which emphasized the outside days
|
|
294
|
+
instead of muting them. */
|
|
295
|
+
color: var(--ds-color-neutral-text-subtle, #aaa);
|
|
293
296
|
cursor: default;
|
|
294
297
|
pointer-events: none;
|
|
295
|
-
background-color: var(--ds-color-surface-tinted, #e8e8e8);
|
|
296
|
-
border: var(--ds-border-width-default, 1px) solid var(--ds-color-border-subtle, #bcbcbc);
|
|
298
|
+
background-color: var(--ds-color-neutral-surface-tinted, #e8e8e8);
|
|
299
|
+
border: var(--ds-border-width-default, 1px) solid var(--ds-color-neutral-border-subtle, #bcbcbc);
|
|
297
300
|
margin: -0.5px;
|
|
298
301
|
}
|
|
299
|
-
.${
|
|
302
|
+
.${t.selectedDate} {
|
|
300
303
|
background-color: var(--ds-color-base-default, #C30000);
|
|
301
304
|
border-color: var(--ds-color-base-default, #C30000);
|
|
302
305
|
color: var(--ds-color-base-contrast-default, #fff);
|
|
303
306
|
position: relative;
|
|
304
307
|
z-index: 1;
|
|
305
308
|
}
|
|
306
|
-
.${
|
|
309
|
+
.${t.selectedDate} .${t.dateNumberContainer} {
|
|
307
310
|
color: var(--ds-color-base-contrast-default, #fff);
|
|
308
311
|
font-weight: var(--ds-font-weight-semibold, 600);
|
|
309
312
|
background-color: transparent;
|
|
310
313
|
}
|
|
311
|
-
.${
|
|
314
|
+
.${t.todayDate} .${t.dateNumberContainer} {
|
|
312
315
|
font-weight: var(--ds-font-weight-semibold, 600);
|
|
313
316
|
}
|
|
314
317
|
@media (max-width: 480px) {
|
|
315
|
-
.${
|
|
318
|
+
.${t.calendarContainer} {
|
|
316
319
|
padding: var(--ds-size-4, 16px);
|
|
317
320
|
gap: var(--ds-size-2, 8px);
|
|
318
321
|
width: 100%;
|
|
319
322
|
}
|
|
320
|
-
.${
|
|
323
|
+
.${t.monthYear} {
|
|
321
324
|
font-size: var(--ds-heading-xs-font-size, 1.125rem);
|
|
322
325
|
}
|
|
323
|
-
.${
|
|
326
|
+
.${t.dayNameCell} {
|
|
324
327
|
padding: var(--ds-size-1, 4px);
|
|
325
328
|
font-size: var(--ds-font-size-1, 12px);
|
|
326
329
|
}
|
|
327
|
-
.${
|
|
330
|
+
.${t.dateCell} {
|
|
328
331
|
padding: var(--ds-size-2, 8px);
|
|
329
332
|
font-size: var(--ds-font-size-1, 12px);
|
|
330
333
|
}
|
|
331
|
-
.${
|
|
334
|
+
.${t.dateNumberContainer} {
|
|
332
335
|
width: 20px;
|
|
333
336
|
height: 20px;
|
|
334
337
|
}
|
|
335
338
|
}
|
|
336
339
|
@media (max-width: 360px) {
|
|
337
|
-
.${
|
|
340
|
+
.${t.calendarContainer} {
|
|
338
341
|
padding: var(--ds-size-2, 8px);
|
|
339
342
|
}
|
|
340
|
-
.${
|
|
343
|
+
.${t.dayNameCell} {
|
|
341
344
|
padding: 2px;
|
|
342
345
|
font-size: 10px;
|
|
343
346
|
}
|
|
344
|
-
.${
|
|
347
|
+
.${t.dateCell} {
|
|
345
348
|
padding: var(--ds-size-1, 4px);
|
|
346
349
|
font-size: 11px;
|
|
347
350
|
}
|
|
348
|
-
.${
|
|
351
|
+
.${t.dateNumberContainer} {
|
|
349
352
|
width: 16px;
|
|
350
353
|
height: 16px;
|
|
351
354
|
}
|
|
@@ -353,5 +356,5 @@ function fe(r) {
|
|
|
353
356
|
`;
|
|
354
357
|
}
|
|
355
358
|
export {
|
|
356
|
-
|
|
359
|
+
ue as DatePicker
|
|
357
360
|
};
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const
|
|
3
|
-
calendarContainer:
|
|
4
|
-
calendarHeader:
|
|
5
|
-
monthYear:
|
|
6
|
-
navigationButtons:
|
|
7
|
-
gridWrapper:
|
|
8
|
-
gridRow:
|
|
9
|
-
dayNameCell:
|
|
10
|
-
dateCell:
|
|
2
|
+
const t = "_calendarContainer_tp4n0_1", e = "_calendarHeader_tp4n0_16", n = "_monthYear_tp4n0_23", a = "_navigationButtons_tp4n0_34", o = "_gridWrapper_tp4n0_43", _ = "_gridRow_tp4n0_48", d = "_dayNameCell_tp4n0_55", r = "_dateCell_tp4n0_73", l = "_dateNumberContainer_tp4n0_106", s = "_otherMonth_tp4n0_119", c = "_disabled_tp4n0_119", i = "_selectedDate_tp4n0_148", p = "_todayDate_tp4n0_214", C = {
|
|
3
|
+
calendarContainer: t,
|
|
4
|
+
calendarHeader: e,
|
|
5
|
+
monthYear: n,
|
|
6
|
+
navigationButtons: a,
|
|
7
|
+
gridWrapper: o,
|
|
8
|
+
gridRow: _,
|
|
9
|
+
dayNameCell: d,
|
|
10
|
+
dateCell: r,
|
|
11
11
|
dateNumberContainer: l,
|
|
12
12
|
otherMonth: s,
|
|
13
13
|
disabled: c,
|
|
14
|
-
selectedDate: i
|
|
14
|
+
selectedDate: i,
|
|
15
|
+
todayDate: p
|
|
15
16
|
};
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
t as calendarContainer,
|
|
19
|
+
e as calendarHeader,
|
|
20
|
+
r as dateCell,
|
|
20
21
|
l as dateNumberContainer,
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
d as dayNameCell,
|
|
23
|
+
C as default,
|
|
23
24
|
c as disabled,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
_ as gridRow,
|
|
26
|
+
o as gridWrapper,
|
|
27
|
+
n as monthYear,
|
|
28
|
+
a as navigationButtons,
|
|
28
29
|
s as otherMonth,
|
|
29
|
-
i as selectedDate
|
|
30
|
+
i as selectedDate,
|
|
31
|
+
p as todayDate
|
|
30
32
|
};
|