@midas-ds/components 17.2.6 → 17.3.1
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 +30 -0
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/Button.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/ComboBox.css +1 -1
- package/assets/DateField.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Dialog.css +1 -1
- package/assets/Heading.css +1 -1
- package/assets/LinkButton.css +1 -1
- package/assets/ListBox.css +1 -1
- package/assets/ListBoxEmptyState.css +1 -1
- package/assets/Popover.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/SearchField.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Separator.css +1 -1
- package/assets/Skeleton.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Table.css +1 -1
- package/assets/TagGroup.css +1 -1
- package/assets/Text.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/Tooltip.css +1 -1
- package/assets/default.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.js +2 -2
- package/chunks/AccordionItem-BuUIdVd_.js +129 -0
- package/chunks/{Button-CaLOUTDO.js → Button-BhIvfqOc.js} +1 -1
- package/chunks/Button.module-BW0TvYZ2.js +14 -0
- package/chunks/{Card-DMSnokPn.js → Card-CVwiT9zm.js} +1 -1
- package/chunks/{Checkbox-CRLj7_Ox.js → Checkbox-sAkQe7Q9.js} +18 -18
- package/chunks/{CheckboxGroup-DooCBqUG.js → CheckboxGroup-DGVV0X_Z.js} +4 -4
- package/chunks/{ClearButton-DPm_d7SL.js → ClearButton-DBr9Zfwq.js} +1 -1
- package/chunks/{ColorSchemeSwitch-DOQ0yjtt.js → ColorSchemeSwitch-DkY8VTVR.js} +1 -1
- package/chunks/ComboBox-Dx4GD2oe.js +102 -0
- package/chunks/{DateField-6CclHfL2.js → DateField-h3l0qG7u.js} +23 -23
- package/chunks/DateRangePicker-X6gmcMdv.js +197 -0
- package/chunks/{Dialog-BHxDzbf8.js → Dialog-DVff9MDd.js} +17 -17
- package/chunks/{FieldError-BMTrvSof.js → FieldError-krpMBtie.js} +1 -1
- package/chunks/Heading-nfcRc2QF.js +38 -0
- package/chunks/{InfoBanner-C4HnaXQO.js → InfoBanner-otmuemqy.js} +1 -1
- package/chunks/{Label-6GZmmff9.js → Label-s4J9sYdy.js} +2 -2
- package/chunks/{Layout-BclBqFzc.js → Layout-hXzqx4cY.js} +2 -2
- package/chunks/{LinkButton-B1zayj7k.js → LinkButton-DJ-D5PkB.js} +15 -15
- package/chunks/{ListBox-D5BBeZWL.js → ListBox-CDlOUvzJ.js} +13 -13
- package/chunks/{ListBoxEmptyState-_Cn38cQ6.js → ListBoxEmptyState-CXKkWQy1.js} +3 -3
- package/chunks/{ListBoxHeader-CL9bFH22.js → ListBoxHeader-DSYdXl2I.js} +1 -1
- package/chunks/{Popover-BcEtFiU1.js → Popover-CaP4LFhg.js} +12 -12
- package/chunks/{ProgressBar-Dg0JMQ71.js → ProgressBar-acc8946-.js} +1 -1
- package/chunks/{Radio-CAIyBgBp.js → Radio-DjivEe-_.js} +3 -3
- package/chunks/{RangeCalendar-DIMxoHhy.js → RangeCalendar-LheFd9WF.js} +26 -26
- package/chunks/SearchField-1DYv0w4b.js +128 -0
- package/chunks/Select-CV0H13h-.js +222 -0
- package/chunks/Separator-CkVOLF6I.js +76 -0
- package/chunks/{Skeleton-DqIHQLQl.js → Skeleton-D6mxKxuu.js} +22 -22
- package/chunks/{TabList-BaR443mu.js → TabList-BHX-cuhB.js} +20 -20
- package/chunks/{Table-UbdCFrkS.js → Table-Bg-AKi7d.js} +50 -50
- package/chunks/{TagGroup-CWe0P76-.js → TagGroup-BscTXQ_E.js} +29 -29
- package/chunks/{Text-BuXvuoqM.js → Text-D0r_W4lH.js} +16 -16
- package/chunks/{TextArea-BQuztcdA.js → TextArea-CBRE_gsN.js} +5 -5
- package/chunks/TextField.module-BDIbEV87.js +12 -0
- package/chunks/{Toast-UPM-1ipu.js → Toast-Cxm230CK.js} +1 -1
- package/chunks/{ToggleButtonGroup-CXKTrLbb.js → ToggleButtonGroup-Bv9xpwTT.js} +1 -1
- package/chunks/{Tooltip-rDmOkGmX.js → Tooltip-C1bbgr2l.js} +12 -12
- package/clear-button/index.js +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/date-picker/intl/translations.json.d.ts +4 -2
- package/field-error/index.js +1 -1
- package/heading/index.js +1 -1
- package/index.js +36 -36
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/link-button/index.js +1 -1
- package/list-box/index.js +3 -3
- package/menu/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +2 -2
- package/popover/index.js +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/skeleton/index.js +1 -1
- package/table/index.js +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.js +1 -1
- package/text/index.js +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.js +1 -1
- package/chunks/AccordionItem-CSvARy63.js +0 -129
- package/chunks/Button.module-Cm0H98vy.js +0 -14
- package/chunks/ComboBox-DnqZjAqe.js +0 -102
- package/chunks/DateRangePicker-BoL-sn9u.js +0 -193
- package/chunks/Heading-D8tNNJkt.js +0 -38
- package/chunks/SearchField-C_OjgTE0.js +0 -128
- package/chunks/Select-D7JfpIUT.js +0 -222
- package/chunks/Separator-XIzn8lsq.js +0 -76
- package/chunks/TextField.module-DmV0iI3P.js +0 -12
package/list-box/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as s } from "../chunks/ListBox-
|
|
2
|
-
import { L, a as e, b as x, c as i, d as r } from "../chunks/ListBoxHeader-
|
|
3
|
-
import { L as m, a as p } from "../chunks/ListBoxEmptyState-
|
|
1
|
+
import { L as s } from "../chunks/ListBox-CDlOUvzJ.js";
|
|
2
|
+
import { L, a as e, b as x, c as i, d as r } from "../chunks/ListBoxHeader-DSYdXl2I.js";
|
|
3
|
+
import { L as m, a as p } from "../chunks/ListBoxEmptyState-CXKkWQy1.js";
|
|
4
4
|
export {
|
|
5
5
|
s as ListBox,
|
|
6
6
|
L as ListBoxButton,
|
package/menu/index.js
CHANGED
package/modal/index.js
CHANGED
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"description": "Midas Components",
|
|
15
15
|
"homepage": "https://designsystem.migrationsverket.se/",
|
|
16
16
|
"license": "CC0-1.0",
|
|
17
|
-
"version": "17.
|
|
17
|
+
"version": "17.3.1",
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "./index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"./*": "./*/index.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@midas-ds/theme": "3.
|
|
44
|
+
"@midas-ds/theme": "3.12.0",
|
|
45
45
|
"react-aria-components": "1.14.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/popover/index.js
CHANGED
package/progress-bar/index.js
CHANGED
package/radio/index.js
CHANGED
package/search-field/index.js
CHANGED
package/select/index.js
CHANGED
package/skeleton/index.js
CHANGED
package/table/index.js
CHANGED
package/tabs/index.js
CHANGED
package/tag/index.js
CHANGED
package/text/index.js
CHANGED
package/textfield/index.js
CHANGED
package/toast/index.js
CHANGED
package/toggle-button/index.js
CHANGED
package/tooltip/index.js
CHANGED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as n, jsxs as m } from "react/jsx-runtime";
|
|
3
|
-
import { c as d } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { DisclosureGroup as f, Disclosure as v, DisclosurePanel as C } from "react-aria-components";
|
|
5
|
-
import { createContext as I, useContext as N, useEffect as B } from "react";
|
|
6
|
-
import { B as k } from "./Button-CaLOUTDO.js";
|
|
7
|
-
import { H as w } from "./Heading-D8tNNJkt.js";
|
|
8
|
-
import { F as A } from "./FeedbackStatusIcon-X9Bjgeta.js";
|
|
9
|
-
import { C as T } from "./chevron-down-BBFYYzZq.js";
|
|
10
|
-
import '../assets/AccordionItem.css';const D = "_root_17bdp_1", M = "_contained_17bdp_5", a = {
|
|
11
|
-
root: D,
|
|
12
|
-
contained: M
|
|
13
|
-
}, g = I(void 0), et = ({
|
|
14
|
-
children: o,
|
|
15
|
-
className: c,
|
|
16
|
-
isContained: s,
|
|
17
|
-
size: r = "large",
|
|
18
|
-
...e
|
|
19
|
-
}) => /* @__PURE__ */ n(g.Provider, { value: { isContained: s, size: r }, children: /* @__PURE__ */ n(
|
|
20
|
-
f,
|
|
21
|
-
{
|
|
22
|
-
className: d(
|
|
23
|
-
a.root,
|
|
24
|
-
s ? a.contained : a.uncontained,
|
|
25
|
-
c
|
|
26
|
-
),
|
|
27
|
-
...e,
|
|
28
|
-
children: o
|
|
29
|
-
}
|
|
30
|
-
) }), j = "_item_hpbxd_1", z = "_contained_hpbxd_18", F = "_medium_hpbxd_28", H = "_success_hpbxd_33", P = "_warning_hpbxd_39", S = "_info_hpbxd_45", y = "_important_hpbxd_51", E = "_triggerButton_hpbxd_62", G = "_triggerText_hpbxd_66", R = "_trigger_hpbxd_62", W = "_triggerMainContent_hpbxd_77", $ = "_chevronIcon_hpbxd_94", q = "_statusIcon_hpbxd_100", J = "_panel_hpbxd_122", K = "_content_hpbxd_130", L = "_hasBackground_hpbxd_135", O = "_header_hpbxd_139", t = {
|
|
31
|
-
item: j,
|
|
32
|
-
contained: z,
|
|
33
|
-
medium: F,
|
|
34
|
-
success: H,
|
|
35
|
-
warning: P,
|
|
36
|
-
info: S,
|
|
37
|
-
important: y,
|
|
38
|
-
triggerButton: E,
|
|
39
|
-
triggerText: G,
|
|
40
|
-
trigger: R,
|
|
41
|
-
triggerMainContent: W,
|
|
42
|
-
" ": "_ _hpbxd_1",
|
|
43
|
-
chevronIcon: $,
|
|
44
|
-
statusIcon: q,
|
|
45
|
-
panel: J,
|
|
46
|
-
content: K,
|
|
47
|
-
hasBackground: L,
|
|
48
|
-
header: O
|
|
49
|
-
}, ot = ({
|
|
50
|
-
title: o,
|
|
51
|
-
children: c,
|
|
52
|
-
className: s,
|
|
53
|
-
headingLevel: r = "h2",
|
|
54
|
-
type: e,
|
|
55
|
-
hasBackground: l = !0,
|
|
56
|
-
size: h = "large",
|
|
57
|
-
isContained: u,
|
|
58
|
-
iconAriaLabel: p,
|
|
59
|
-
...x
|
|
60
|
-
}) => {
|
|
61
|
-
const _ = N(g), i = u ?? _?.isContained ?? !1, b = typeof o == "object";
|
|
62
|
-
return B(() => {
|
|
63
|
-
e && !i && console.warn(
|
|
64
|
-
"AccordionItem: When 'type' is set, it is recommended to also set 'isContained' to true for visual consistency."
|
|
65
|
-
);
|
|
66
|
-
}, [e, i]), /* @__PURE__ */ m(
|
|
67
|
-
v,
|
|
68
|
-
{
|
|
69
|
-
...x,
|
|
70
|
-
className: d(
|
|
71
|
-
t.item,
|
|
72
|
-
e && t[e],
|
|
73
|
-
(h === "medium" || _?.size === "medium") && t.medium,
|
|
74
|
-
i && t.contained,
|
|
75
|
-
s
|
|
76
|
-
),
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ n("div", { className: t.trigger, children: /* @__PURE__ */ m(
|
|
79
|
-
k,
|
|
80
|
-
{
|
|
81
|
-
className: t.triggerButton,
|
|
82
|
-
slot: "trigger",
|
|
83
|
-
variant: "icon",
|
|
84
|
-
children: [
|
|
85
|
-
/* @__PURE__ */ n(
|
|
86
|
-
T,
|
|
87
|
-
{
|
|
88
|
-
size: 20,
|
|
89
|
-
className: t.chevronIcon
|
|
90
|
-
}
|
|
91
|
-
),
|
|
92
|
-
/* @__PURE__ */ n("div", { className: t.triggerMainContent, children: b ? o : /* @__PURE__ */ n(
|
|
93
|
-
w,
|
|
94
|
-
{
|
|
95
|
-
level: 3,
|
|
96
|
-
elementType: r,
|
|
97
|
-
className: t.triggerText,
|
|
98
|
-
children: o
|
|
99
|
-
}
|
|
100
|
-
) }),
|
|
101
|
-
e && /* @__PURE__ */ n(
|
|
102
|
-
A,
|
|
103
|
-
{
|
|
104
|
-
"aria-label": p,
|
|
105
|
-
className: t.statusIcon,
|
|
106
|
-
status: e
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
) }),
|
|
112
|
-
/* @__PURE__ */ n(C, { className: t.panel, children: /* @__PURE__ */ n(
|
|
113
|
-
"div",
|
|
114
|
-
{
|
|
115
|
-
className: d(
|
|
116
|
-
t.content,
|
|
117
|
-
l && t.hasBackground
|
|
118
|
-
),
|
|
119
|
-
children: c
|
|
120
|
-
}
|
|
121
|
-
) })
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
};
|
|
126
|
-
export {
|
|
127
|
-
et as A,
|
|
128
|
-
ot as a
|
|
129
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import '../assets/Button.css';const i = "_button_1ikai_1", t = "_secondary_1ikai_48", n = "_tertiary_1ikai_71", _ = "_iconBtn_1ikai_91", o = "_medium_1ikai_111", a = "_danger_1ikai_116", c = "_iconRight_1ikai_138", r = "_fullwidth_1ikai_142", s = "_primary_1ikai_152", e = {
|
|
2
|
-
button: i,
|
|
3
|
-
secondary: t,
|
|
4
|
-
tertiary: n,
|
|
5
|
-
iconBtn: _,
|
|
6
|
-
medium: o,
|
|
7
|
-
danger: a,
|
|
8
|
-
iconRight: c,
|
|
9
|
-
fullwidth: r,
|
|
10
|
-
primary: s
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
e as B
|
|
14
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import L from "react";
|
|
4
|
-
import { ComboBox as F, Input as v, Button as R } from "react-aria-components";
|
|
5
|
-
import { c as s } from "./clsx-AexbMWKp.js";
|
|
6
|
-
import { a as y, L as B } from "./Label-6GZmmff9.js";
|
|
7
|
-
import { T as k } from "./Text-BuXvuoqM.js";
|
|
8
|
-
import { F as u } from "./FieldError-BMTrvSof.js";
|
|
9
|
-
import { L as C } from "./ListBox-D5BBeZWL.js";
|
|
10
|
-
import { a as N, L as g } from "./ListBoxEmptyState-_Cn38cQ6.js";
|
|
11
|
-
import { C as E } from "./chevron-down-BBFYYzZq.js";
|
|
12
|
-
import { u as S } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
13
|
-
import '../assets/ComboBox.css';const T = "_combobox_1awtk_1", j = "_inputField_1awtk_6", I = "_medium_1awtk_27", O = "_wrap_1awtk_79", U = "_button_1awtk_85", z = "_icon_1awtk_121", t = {
|
|
14
|
-
combobox: T,
|
|
15
|
-
inputField: j,
|
|
16
|
-
medium: I,
|
|
17
|
-
wrap: O,
|
|
18
|
-
button: U,
|
|
19
|
-
icon: z
|
|
20
|
-
}, D = { showList: "Show list", noResultsFound: "No results found" }, M = { showList: "Visa lista", noResultsFound: "Inga träffar" }, V = {
|
|
21
|
-
en: D,
|
|
22
|
-
sv: M
|
|
23
|
-
};
|
|
24
|
-
function Y({
|
|
25
|
-
label: a,
|
|
26
|
-
description: i,
|
|
27
|
-
errorMessage: r,
|
|
28
|
-
children: p,
|
|
29
|
-
items: f,
|
|
30
|
-
className: _,
|
|
31
|
-
errorPosition: n = "top",
|
|
32
|
-
size: m = "large",
|
|
33
|
-
popover: h,
|
|
34
|
-
listBoxProps: b,
|
|
35
|
-
...e
|
|
36
|
-
}) {
|
|
37
|
-
const d = L.useRef(null), l = S(V), w = (x) => {
|
|
38
|
-
x.currentTarget.value && d.current?.select();
|
|
39
|
-
};
|
|
40
|
-
return /* @__PURE__ */ c(
|
|
41
|
-
F,
|
|
42
|
-
{
|
|
43
|
-
className: s(t.combobox, _),
|
|
44
|
-
...e,
|
|
45
|
-
"data-readonly": e.isReadOnly || void 0,
|
|
46
|
-
children: [
|
|
47
|
-
/* @__PURE__ */ o(y, { popover: h, children: a && /* @__PURE__ */ o(B, { children: a }) }),
|
|
48
|
-
i && /* @__PURE__ */ o(k, { slot: "description", children: i }),
|
|
49
|
-
n === "top" && /* @__PURE__ */ o(u, { "data-testid": "fieldError", children: r }),
|
|
50
|
-
/* @__PURE__ */ c("div", { className: t.wrap, children: [
|
|
51
|
-
/* @__PURE__ */ o(
|
|
52
|
-
v,
|
|
53
|
-
{
|
|
54
|
-
className: s(t.inputField, {
|
|
55
|
-
[t.medium]: m === "medium"
|
|
56
|
-
}),
|
|
57
|
-
"data-readonly": e.isReadOnly || void 0,
|
|
58
|
-
onMouseUp: w,
|
|
59
|
-
ref: d
|
|
60
|
-
}
|
|
61
|
-
),
|
|
62
|
-
/* @__PURE__ */ o(
|
|
63
|
-
R,
|
|
64
|
-
{
|
|
65
|
-
className: s(t.button, {
|
|
66
|
-
[t.medium]: m === "medium"
|
|
67
|
-
}),
|
|
68
|
-
"aria-label": l.format("showList"),
|
|
69
|
-
children: /* @__PURE__ */ o(
|
|
70
|
-
"div",
|
|
71
|
-
{
|
|
72
|
-
className: t.icon,
|
|
73
|
-
"aria-hidden": "true",
|
|
74
|
-
children: /* @__PURE__ */ o(
|
|
75
|
-
E,
|
|
76
|
-
{
|
|
77
|
-
size: 20,
|
|
78
|
-
"aria-hidden": !0
|
|
79
|
-
}
|
|
80
|
-
)
|
|
81
|
-
}
|
|
82
|
-
)
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
] }),
|
|
86
|
-
n === "bottom" && /* @__PURE__ */ o(u, { "data-testid": "fieldError", children: r }),
|
|
87
|
-
/* @__PURE__ */ o(N, { offset: 4, children: /* @__PURE__ */ o(
|
|
88
|
-
C,
|
|
89
|
-
{
|
|
90
|
-
items: f,
|
|
91
|
-
renderEmptyState: () => /* @__PURE__ */ o(g, { children: l.format("noResultsFound") }),
|
|
92
|
-
...b,
|
|
93
|
-
children: p
|
|
94
|
-
}
|
|
95
|
-
) })
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
export {
|
|
101
|
-
Y as C
|
|
102
|
-
};
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
3
|
-
import { Group as x, DatePickerStateContext as F, DateRangePickerStateContext as j, Popover as B, Dialog as M, DatePicker as S, DateRangePicker as N } from "react-aria-components";
|
|
4
|
-
import { a as k } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { C as R, R as G } from "./RangeCalendar-DIMxoHhy.js";
|
|
6
|
-
import { D as _, b as f, a as L } from "./DateInputDivider-DwopMIb9.js";
|
|
7
|
-
import { F as P } from "./FieldError-BMTrvSof.js";
|
|
8
|
-
import { a as y, L as v } from "./Label-6GZmmff9.js";
|
|
9
|
-
import { T as D } from "./Text-BuXvuoqM.js";
|
|
10
|
-
import * as g from "react";
|
|
11
|
-
import { C as I } from "./ClearButton-DPm_d7SL.js";
|
|
12
|
-
import { FocusScope as V, useFocusManager as w } from "@react-aria/focus";
|
|
13
|
-
import { B as O } from "./Button-CaLOUTDO.js";
|
|
14
|
-
import { c as T } from "./createLucideIcon-CP-mMPfa.js";
|
|
15
|
-
import { u as $ } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
16
|
-
import '../assets/DateRangePicker.css';const E = [
|
|
17
|
-
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
18
|
-
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
19
|
-
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
20
|
-
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
21
|
-
["path", { d: "M8 14h.01", key: "6423bh" }],
|
|
22
|
-
["path", { d: "M12 14h.01", key: "1etili" }],
|
|
23
|
-
["path", { d: "M16 14h.01", key: "1gbofw" }],
|
|
24
|
-
["path", { d: "M8 18h.01", key: "lrp35t" }],
|
|
25
|
-
["path", { d: "M12 18h.01", key: "mhygvu" }],
|
|
26
|
-
["path", { d: "M16 18h.01", key: "kzsmim" }]
|
|
27
|
-
], W = T("calendar-days", E), q = { clear: "Clear date" }, A = { clear: "Rensa datum" }, H = {
|
|
28
|
-
en: q,
|
|
29
|
-
sv: A
|
|
30
|
-
}, J = "_datePicker_11j8a_1", K = "_inputField_11j8a_8", Q = "_medium_11j8a_24", U = "_readOnly_11j8a_47", X = "_buttonGroup_11j8a_52", Y = "_iconButton_11j8a_58", Z = "_dialog_11j8a_81", o = {
|
|
31
|
-
datePicker: J,
|
|
32
|
-
inputField: K,
|
|
33
|
-
medium: Q,
|
|
34
|
-
readOnly: U,
|
|
35
|
-
buttonGroup: X,
|
|
36
|
-
iconButton: Y,
|
|
37
|
-
dialog: Z
|
|
38
|
-
}, z = (t) => !!t && !!t.value && Object.prototype.hasOwnProperty.call(t.value, "start"), ee = ({
|
|
39
|
-
isClearable: t,
|
|
40
|
-
isDisabled: c,
|
|
41
|
-
isReadOnly: i,
|
|
42
|
-
size: a
|
|
43
|
-
}) => {
|
|
44
|
-
const r = g.useContext(F), s = g.useContext(j), u = $(H), l = w(), n = s ?? r, p = z(n) ? !!n.value.start && n.value.end : !!n?.value;
|
|
45
|
-
return t && p && !i ? /* @__PURE__ */ e(
|
|
46
|
-
I,
|
|
47
|
-
{
|
|
48
|
-
onPress: () => {
|
|
49
|
-
n?.setValue(null), l?.focusFirst();
|
|
50
|
-
},
|
|
51
|
-
size: a,
|
|
52
|
-
isDisabled: c,
|
|
53
|
-
"aria-label": u.format("clear"),
|
|
54
|
-
className: k(o.iconButton, {
|
|
55
|
-
[o.medium]: a === "medium"
|
|
56
|
-
})
|
|
57
|
-
}
|
|
58
|
-
) : null;
|
|
59
|
-
}, C = ({
|
|
60
|
-
children: t,
|
|
61
|
-
isDisabled: c,
|
|
62
|
-
isInvalid: i,
|
|
63
|
-
isReadOnly: a,
|
|
64
|
-
size: r = "large",
|
|
65
|
-
isClearable: s = !1
|
|
66
|
-
}) => /* @__PURE__ */ e(
|
|
67
|
-
x,
|
|
68
|
-
{
|
|
69
|
-
className: k(o.inputField, {
|
|
70
|
-
[o.medium]: r === "medium",
|
|
71
|
-
[o.readOnly]: a
|
|
72
|
-
}),
|
|
73
|
-
children: /* @__PURE__ */ h(V, { children: [
|
|
74
|
-
t,
|
|
75
|
-
/* @__PURE__ */ h("div", { className: o.buttonGroup, children: [
|
|
76
|
-
/* @__PURE__ */ e(
|
|
77
|
-
ee,
|
|
78
|
-
{
|
|
79
|
-
isClearable: s,
|
|
80
|
-
isDisabled: c,
|
|
81
|
-
isReadOnly: a,
|
|
82
|
-
size: r
|
|
83
|
-
}
|
|
84
|
-
),
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
O,
|
|
87
|
-
{
|
|
88
|
-
variant: "icon",
|
|
89
|
-
className: k(o.iconButton, {
|
|
90
|
-
[o.medium]: r === "medium",
|
|
91
|
-
[o.readOnly]: a
|
|
92
|
-
}),
|
|
93
|
-
"data-invalid": i || void 0,
|
|
94
|
-
size: r,
|
|
95
|
-
children: /* @__PURE__ */ e(
|
|
96
|
-
W,
|
|
97
|
-
{
|
|
98
|
-
"aria-hidden": !0,
|
|
99
|
-
size: 20
|
|
100
|
-
}
|
|
101
|
-
)
|
|
102
|
-
}
|
|
103
|
-
)
|
|
104
|
-
] })
|
|
105
|
-
] })
|
|
106
|
-
}
|
|
107
|
-
), b = ({
|
|
108
|
-
children: t
|
|
109
|
-
}) => /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(M, { className: o.dialog, children: t }) }), he = ({
|
|
110
|
-
className: t,
|
|
111
|
-
description: c,
|
|
112
|
-
errorMessage: i,
|
|
113
|
-
errorPosition: a = "top",
|
|
114
|
-
label: r,
|
|
115
|
-
popover: s,
|
|
116
|
-
isClearable: u = !1,
|
|
117
|
-
isReadOnly: l,
|
|
118
|
-
isDisabled: n,
|
|
119
|
-
size: p,
|
|
120
|
-
...d
|
|
121
|
-
}) => /* @__PURE__ */ h(
|
|
122
|
-
S,
|
|
123
|
-
{
|
|
124
|
-
className: k(o.datePicker, t),
|
|
125
|
-
isReadOnly: l,
|
|
126
|
-
isDisabled: n,
|
|
127
|
-
...d,
|
|
128
|
-
children: [
|
|
129
|
-
/* @__PURE__ */ e(y, { popover: s, children: r && /* @__PURE__ */ e(v, { children: r }) }),
|
|
130
|
-
c && /* @__PURE__ */ e(D, { slot: "description", children: c }),
|
|
131
|
-
a === "top" && /* @__PURE__ */ e(P, { children: i }),
|
|
132
|
-
/* @__PURE__ */ e(
|
|
133
|
-
C,
|
|
134
|
-
{
|
|
135
|
-
isClearable: u,
|
|
136
|
-
isReadOnly: l,
|
|
137
|
-
isDisabled: n,
|
|
138
|
-
size: p,
|
|
139
|
-
...d,
|
|
140
|
-
children: /* @__PURE__ */ e(_, { children: (m) => /* @__PURE__ */ e(f, { segment: m }) })
|
|
141
|
-
}
|
|
142
|
-
),
|
|
143
|
-
a === "bottom" && /* @__PURE__ */ e(P, { children: i }),
|
|
144
|
-
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(R, {}) })
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
), ke = ({
|
|
148
|
-
className: t,
|
|
149
|
-
description: c,
|
|
150
|
-
errorMessage: i,
|
|
151
|
-
errorPosition: a = "top",
|
|
152
|
-
label: r,
|
|
153
|
-
popover: s,
|
|
154
|
-
isClearable: u = !1,
|
|
155
|
-
isReadOnly: l,
|
|
156
|
-
isDisabled: n,
|
|
157
|
-
size: p,
|
|
158
|
-
...d
|
|
159
|
-
}) => /* @__PURE__ */ h(
|
|
160
|
-
N,
|
|
161
|
-
{
|
|
162
|
-
className: k(o.datePicker, t),
|
|
163
|
-
isReadOnly: l,
|
|
164
|
-
isDisabled: n,
|
|
165
|
-
...d,
|
|
166
|
-
children: [
|
|
167
|
-
/* @__PURE__ */ e(y, { popover: s, children: r && /* @__PURE__ */ e(v, { children: r }) }),
|
|
168
|
-
c && /* @__PURE__ */ e(D, { slot: "description", children: c }),
|
|
169
|
-
a === "top" && /* @__PURE__ */ e(P, { children: i }),
|
|
170
|
-
/* @__PURE__ */ h(
|
|
171
|
-
C,
|
|
172
|
-
{
|
|
173
|
-
isClearable: u,
|
|
174
|
-
isReadOnly: l,
|
|
175
|
-
isDisabled: n,
|
|
176
|
-
size: p,
|
|
177
|
-
...d,
|
|
178
|
-
children: [
|
|
179
|
-
/* @__PURE__ */ e(_, { slot: "start", children: (m) => /* @__PURE__ */ e(f, { segment: m }) }),
|
|
180
|
-
/* @__PURE__ */ e(L, {}),
|
|
181
|
-
/* @__PURE__ */ e(_, { slot: "end", children: (m) => /* @__PURE__ */ e(f, { segment: m }) })
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
),
|
|
185
|
-
a === "bottom" && /* @__PURE__ */ e(P, { children: i }),
|
|
186
|
-
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(G, {}) })
|
|
187
|
-
]
|
|
188
|
-
}
|
|
189
|
-
);
|
|
190
|
-
export {
|
|
191
|
-
he as D,
|
|
192
|
-
ke as a
|
|
193
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as i } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { Heading as m } from "react-aria-components";
|
|
4
|
-
import '../assets/Heading.css';const l = "_h1_155q3_1", p = "_h2_155q3_2", q = "_h3_155q3_3", d = "_h4_155q3_4", f = "_h5_155q3_5", g = "_h6_155q3_6", h = {
|
|
5
|
-
h1: l,
|
|
6
|
-
h2: p,
|
|
7
|
-
h3: q,
|
|
8
|
-
h4: d,
|
|
9
|
-
h5: f,
|
|
10
|
-
h6: g
|
|
11
|
-
}, v = ({
|
|
12
|
-
children: _,
|
|
13
|
-
className: a,
|
|
14
|
-
enableMargins: o = !1,
|
|
15
|
-
isExpressive: n = !1,
|
|
16
|
-
level: s = 3,
|
|
17
|
-
elementType: t,
|
|
18
|
-
...e
|
|
19
|
-
}) => {
|
|
20
|
-
const r = t && parseInt(t.split("h")[1]);
|
|
21
|
-
return /* @__PURE__ */ c(
|
|
22
|
-
m,
|
|
23
|
-
{
|
|
24
|
-
level: r || s,
|
|
25
|
-
className: i(
|
|
26
|
-
[h.h1, h.h2, h.h3, h.h4, h.h5, h.h6][s - 1],
|
|
27
|
-
a
|
|
28
|
-
),
|
|
29
|
-
...n && { "data-expressive": !0 },
|
|
30
|
-
...o && { "data-margin": !0 },
|
|
31
|
-
...e,
|
|
32
|
-
children: _
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
export {
|
|
37
|
-
v as H
|
|
38
|
-
};
|