@midas-ds/components 17.15.3 → 17.15.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/CHANGELOG.md +10 -0
- package/accordion/index.js +2 -5
- package/assets/Button.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/accordion.css +1 -0
- package/assets/badge.css +1 -0
- package/assets/breadcrumbs.css +1 -0
- package/assets/button2.css +1 -0
- package/assets/calendar.css +1 -0
- package/assets/card.css +1 -0
- package/assets/checkbox.css +1 -0
- package/assets/{ColorSchemeSwitch.css → color-scheme-switch.css} +1 -1
- package/assets/combobox.css +1 -0
- package/assets/date-field.css +1 -0
- package/assets/date-picker.css +1 -0
- package/assets/default.css +1 -1
- package/assets/field-error.css +1 -0
- package/assets/file-list.css +1 -0
- package/assets/{FileUpload.css → file-upload.css} +1 -1
- package/assets/grid.css +1 -0
- package/assets/info-banner.css +1 -0
- package/assets/label.css +1 -0
- package/assets/layout.css +1 -0
- package/assets/link-button.css +1 -0
- package/assets/link.css +1 -0
- package/assets/list-box.css +1 -0
- package/assets/logo.css +1 -0
- package/assets/menu.css +1 -0
- package/assets/modal.css +1 -0
- package/assets/popover.css +1 -0
- package/assets/progress-bar.css +1 -0
- package/assets/radio.css +1 -0
- package/assets/search-field.css +1 -0
- package/assets/select.css +1 -0
- package/assets/skeleton.css +1 -0
- package/assets/spinner.css +1 -0
- package/assets/table.css +1 -0
- package/assets/tabs.css +1 -0
- package/assets/{TagGroup.css → tag.css} +1 -1
- package/assets/{Text.css → text.css} +1 -1
- package/assets/time-field.css +1 -0
- package/assets/toast.css +1 -0
- package/assets/toggle-button.css +1 -0
- package/assets/tooltip.css +1 -0
- package/badge/index.js +2 -5
- package/breadcrumbs/index.js +2 -5
- package/button/index.js +2 -6
- package/calendar/index.js +2 -5
- package/card/index.js +2 -12
- package/character-counter/index.js +2 -4
- package/checkbox/index.js +2 -6
- package/chunks/Button.module-0C2ArlRs.js +13 -0
- package/chunks/FeedbackStatusIcon-A1trvSCf.js +54 -0
- package/chunks/TextField.module-CrR3Krxn.js +12 -0
- package/chunks/accordion-AqEcuKz_.js +87 -0
- package/chunks/arrow-right-7yeXXFNV.js +10 -0
- package/chunks/badge-DrCn-5SX.js +22 -0
- package/chunks/breadcrumbs-XTH3axtt.js +23 -0
- package/chunks/button-CFjf-bDe.js +34 -0
- package/chunks/calendar-C0rlcHfr.js +74 -0
- package/chunks/card-CF8iwdg3.js +103 -0
- package/chunks/character-counter-CSoVSrxZ.js +16 -0
- package/chunks/check-BiPE7lAA.js +7 -0
- package/chunks/checkbox-B_41DFjp.js +174 -0
- package/chunks/chevron-down-Buf0eTzo.js +7 -0
- package/chunks/chevron-right-DJ7qKNKG.js +7 -0
- package/chunks/clear-button-Cb4MTvBR.js +17 -0
- package/chunks/clsx-BtlV5Vo3.js +21 -0
- package/chunks/color-scheme-switch-Ce4vL8Yz.js +122 -0
- package/chunks/combobox-BLGIYxNy.js +90 -0
- package/chunks/createLucideIcon-DhIhuN5D.js +39 -0
- package/chunks/date-field-Cy0HGw6v.js +73 -0
- package/chunks/date-picker-ByfWqOZh.js +191 -0
- package/chunks/field-error-DYp2kgFr.js +19 -0
- package/chunks/file-list-DYOuch5G.js +68 -0
- package/chunks/file-upload-CZRTVw5O.js +11 -0
- package/chunks/grid-CUYMbO7c.js +225 -0
- package/chunks/heading-595zCrRS.js +28 -0
- package/chunks/info-Bm2gRija.js +19 -0
- package/chunks/info-banner-hHq0Atii.js +59 -0
- package/chunks/label-uwnwLD3z.js +49 -0
- package/chunks/layout-BzK7P4Xn.js +426 -0
- package/chunks/link-Q46Ny2Po.js +40 -0
- package/chunks/link-button-Cm2B0s4X.js +39 -0
- package/chunks/list-box-Dm2itiZD.js +75 -0
- package/chunks/logo-D7tz-4hp.js +93 -0
- package/chunks/menu-CB6VDQ-u.js +49 -0
- package/chunks/modal-Dr0ythpF.js +66 -0
- package/chunks/popover-DxnYz_IT.js +27 -0
- package/chunks/progress-bar-Dppkp0cT.js +40 -0
- package/chunks/radio-PBrD5BO4.js +43 -0
- package/chunks/search-field-B5RciSq0.js +90 -0
- package/chunks/select-BZ0greL0.js +171 -0
- package/chunks/skeleton-OqKFBcmO.js +36 -0
- package/chunks/spinner-C3WiZYld.js +32 -0
- package/chunks/square-arrow-out-up-right-Bobm4VNc.js +17 -0
- package/chunks/table-BZ7VvZaq.js +150 -0
- package/chunks/tabs-eshGdQJJ.js +52 -0
- package/chunks/tag-CELJrUEQ.js +78 -0
- package/chunks/text-mAeDlv5N.js +23 -0
- package/chunks/textfield-CZSw2R67.js +112 -0
- package/chunks/time-field-DaQfnJQF.js +60 -0
- package/chunks/toast-AYzfHBcQ.js +91 -0
- package/chunks/toggle-button-DlPo9GJW.js +17 -0
- package/chunks/tooltip-BE_r_CBm.js +33 -0
- package/chunks/useLocalizedStringFormatter-bRLuRzVD.js +19 -0
- package/chunks/x-Bs_QW3q8.js +10 -0
- package/clear-button/index.js +2 -4
- package/color-scheme-switch/index.js +2 -4
- package/combobox/index.js +2 -4
- package/date-field/index.js +2 -9
- package/date-picker/index.js +2 -5
- package/field-error/index.js +2 -4
- package/file-list/index.js +2 -5
- package/file-upload/index.js +2 -5
- package/grid/index.js +2 -6
- package/heading/index.js +2 -4
- package/index.js +91 -165
- package/info-banner/index.js +2 -4
- package/label/index.js +2 -4
- package/layout/index.js +2 -8
- package/link/index.js +2 -6
- package/link-button/index.js +2 -6
- package/list-box/index.js +2 -13
- package/logo/index.js +2 -5
- package/menu/index.js +2 -10
- package/modal/index.js +2 -7
- package/package.json +1 -1
- package/popover/index.js +2 -4
- package/progress-bar/index.js +2 -4
- package/radio/index.js +2 -5
- package/search-field/index.js +2 -4
- package/select/index.js +2 -4
- package/skeleton/index.js +2 -4
- package/spinner/index.js +2 -4
- package/table/index.js +2 -9
- package/tabs/index.js +2 -7
- package/tag/index.js +2 -6
- package/text/index.js +2 -4
- package/textfield/index.js +2 -7
- package/time-field/index.js +2 -4
- package/toast/index.js +2 -10
- package/toggle-button/index.js +2 -5
- package/tooltip/index.js +2 -5
- package/assets/AccordionItem.css +0 -1
- package/assets/BadgeContainer.css +0 -1
- package/assets/Breadcrumb.css +0 -1
- package/assets/ButtonGroup.css +0 -1
- package/assets/CardHeader.css +0 -1
- package/assets/Checkbox.css +0 -1
- package/assets/ComboBox.css +0 -1
- package/assets/DateField.css +0 -1
- package/assets/DateInput.css +0 -1
- package/assets/DateRangePicker.css +0 -1
- package/assets/FieldError.css +0 -1
- package/assets/FileListItem.css +0 -1
- package/assets/GridItem.css +0 -1
- package/assets/InfoBanner.css +0 -1
- package/assets/Label.css +0 -1
- package/assets/Layout.css +0 -1
- package/assets/Link.css +0 -1
- package/assets/LinkButton.css +0 -1
- package/assets/ListBox.css +0 -1
- package/assets/ListBoxEmptyState.css +0 -1
- package/assets/Logo.css +0 -1
- package/assets/Modal.css +0 -1
- package/assets/Popover.css +0 -1
- package/assets/ProgressBar.css +0 -1
- package/assets/Radio.css +0 -1
- package/assets/RangeCalendar.css +0 -1
- package/assets/SearchField.css +0 -1
- package/assets/Select.css +0 -1
- package/assets/Separator.css +0 -1
- package/assets/Skeleton.css +0 -1
- package/assets/Spinner.css +0 -1
- package/assets/TabList.css +0 -1
- package/assets/Table.css +0 -1
- package/assets/TimeField.css +0 -1
- package/assets/Toast.css +0 -1
- package/assets/ToggleButtonGroup.css +0 -1
- package/assets/Tooltip.css +0 -1
- package/chunks/AccordionItem-DHhQDd6o.js +0 -129
- package/chunks/BadgeContainer-DyQDrY6S.js +0 -38
- package/chunks/Breadcrumb-Bs836gOn.js +0 -37
- package/chunks/Button-GCROAMSl.js +0 -56
- package/chunks/Button.module-byTN5rhp.js +0 -14
- package/chunks/ButtonGroup-Dr6HOBo2.js +0 -22
- package/chunks/CardHeader-BnwDMzW9.js +0 -184
- package/chunks/CharacterCounter-Dgnv-orm.js +0 -22
- package/chunks/Checkbox-CyamRrFD.js +0 -146
- package/chunks/CheckboxGroup-CmjQm14M.js +0 -84
- package/chunks/ClearButton-DkC8PIMi.js +0 -22
- package/chunks/ColorSchemeSwitch-CjXb7w5A.js +0 -118
- package/chunks/ComboBox-BCfucCKv.js +0 -102
- package/chunks/DateField-CpvZGNHu.js +0 -89
- package/chunks/DateInput-NzWcnB4y.js +0 -29
- package/chunks/DateInputDivider-BHAwPkIR.js +0 -13
- package/chunks/DateRangePicker-BBLNlQ2y.js +0 -202
- package/chunks/FeedbackStatusIcon-X9Bjgeta.js +0 -56
- package/chunks/FieldError-krpMBtie.js +0 -24
- package/chunks/FileListItem-CKF9HPjw.js +0 -69
- package/chunks/FileUpload-D6oyWcDA.js +0 -17
- package/chunks/Grid-C7aRFvmS.js +0 -24
- package/chunks/GridItem-DenBLGXB.js +0 -237
- package/chunks/Heading-nfcRc2QF.js +0 -38
- package/chunks/InfoBanner-CWLvkP6D.js +0 -76
- package/chunks/Label-Cqo7Xz2v.js +0 -67
- package/chunks/Layout-D-nVSBJY.js +0 -493
- package/chunks/Link-CSIZehbN.js +0 -59
- package/chunks/LinkButton-Dzp8ZAPs.js +0 -68
- package/chunks/ListBox-CJhp9Hsb.js +0 -60
- package/chunks/ListBoxEmptyState-BxWWr2D9.js +0 -30
- package/chunks/ListBoxHeader-Cl56gGEe.js +0 -63
- package/chunks/Logo-DDykn5b2.js +0 -150
- package/chunks/Modal-yigospxi.js +0 -78
- package/chunks/Popover-CjEPHe4A.js +0 -34
- package/chunks/ProgressBar-BrWLkY8H.js +0 -53
- package/chunks/Radio-CFolRKKY.js +0 -44
- package/chunks/RangeCalendar-DxLInTav.js +0 -99
- package/chunks/SearchField-BXIDm898.js +0 -121
- package/chunks/Select-BQ109AJG.js +0 -231
- package/chunks/Separator-CDRwpeHz.js +0 -76
- package/chunks/Skeleton-ClvqZoDy.js +0 -88
- package/chunks/Spinner-CfKMn18u.js +0 -43
- package/chunks/TabList-CJSnr6O0.js +0 -87
- package/chunks/Table-CDdv7GeG.js +0 -140
- package/chunks/TagGroup-C-pkXtVn.js +0 -119
- package/chunks/Text-D0r_W4lH.js +0 -36
- package/chunks/TextArea-CNP1Y3jR.js +0 -135
- package/chunks/TextField.module-BDIbEV87.js +0 -12
- package/chunks/TimeField-B3IdCqTf.js +0 -88
- package/chunks/Toast-BFq_0Ue4.js +0 -158
- package/chunks/ToggleButtonGroup-DRnEEi5-.js +0 -29
- package/chunks/Tooltip-BYEaNkZG.js +0 -44
- package/chunks/arrow-right-BVcFGZmy.js +0 -8
- package/chunks/check-Bt2UikoU.js +0 -5
- package/chunks/chevron-down-BBFYYzZq.js +0 -5
- package/chunks/chevron-right-DvXGOiS_.js +0 -5
- package/chunks/clsx-AexbMWKp.js +0 -24
- package/chunks/createLucideIcon-CP-mMPfa.js +0 -75
- package/chunks/info-N5jWZg2A.js +0 -9
- package/chunks/square-arrow-out-up-right-x_I6wdNi.js +0 -9
- package/chunks/useLocalizedStringFormatter-BHvsRxDk.js +0 -25
- package/chunks/x-B9bYxG31.js +0 -8
- /package/assets/{CharacterCounter.css → character-counter.css} +0 -0
- /package/assets/{Heading.css → heading.css} +0 -0
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as m, Fragment as c } from "react/jsx-runtime";
|
|
2
|
-
import { c as i } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { s as e } from "./ListBox-CJhp9Hsb.js";
|
|
4
|
-
import { ListBoxItem as d, composeRenderProps as l, ListBoxSection as x, ListBoxLoadMoreItem as L, Header as B } from "react-aria-components";
|
|
5
|
-
import { S as p } from "./Spinner-CfKMn18u.js";
|
|
6
|
-
import { u as g } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
7
|
-
const y = ({ className: t, children: s, ...a }) => /* @__PURE__ */ o(
|
|
8
|
-
"button",
|
|
9
|
-
{
|
|
10
|
-
type: "button",
|
|
11
|
-
className: i(e.listBoxItem, e.listBoxButton, t),
|
|
12
|
-
...a,
|
|
13
|
-
children: s
|
|
14
|
-
}
|
|
15
|
-
), H = ({
|
|
16
|
-
children: t,
|
|
17
|
-
className: s,
|
|
18
|
-
textValue: a,
|
|
19
|
-
...n
|
|
20
|
-
}) => /* @__PURE__ */ o(
|
|
21
|
-
d,
|
|
22
|
-
{
|
|
23
|
-
className: i(e.listBoxItem, s),
|
|
24
|
-
textValue: a || (typeof t == "string" ? t : void 0),
|
|
25
|
-
...n,
|
|
26
|
-
children: l(t, (r) => /* @__PURE__ */ o("div", { className: e.textContent, children: r }))
|
|
27
|
-
}
|
|
28
|
-
), $ = (t) => /* @__PURE__ */ o(x, { ...t }), u = { "loading...": "Loading..." }, I = { "loading...": "Laddar..." }, f = {
|
|
29
|
-
en: u,
|
|
30
|
-
sv: I
|
|
31
|
-
}, j = ({
|
|
32
|
-
className: t,
|
|
33
|
-
children: s,
|
|
34
|
-
isLoading: a,
|
|
35
|
-
...n
|
|
36
|
-
}) => {
|
|
37
|
-
const r = g(f);
|
|
38
|
-
return /* @__PURE__ */ o(
|
|
39
|
-
L,
|
|
40
|
-
{
|
|
41
|
-
className: i(e.listBoxLoadMoreItem, t),
|
|
42
|
-
isLoading: a,
|
|
43
|
-
...n,
|
|
44
|
-
children: s || /* @__PURE__ */ m(c, { children: [
|
|
45
|
-
/* @__PURE__ */ o(p, { small: !0 }),
|
|
46
|
-
/* @__PURE__ */ o("span", { "aria-hidden": !0, children: r.format("loading...") })
|
|
47
|
-
] })
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
}, F = ({ className: t, ...s }) => /* @__PURE__ */ o(
|
|
51
|
-
B,
|
|
52
|
-
{
|
|
53
|
-
className: i(e.listBoxSectionHeading, t),
|
|
54
|
-
...s
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
export {
|
|
58
|
-
y as L,
|
|
59
|
-
F as a,
|
|
60
|
-
H as b,
|
|
61
|
-
j as c,
|
|
62
|
-
$ as d
|
|
63
|
-
};
|
package/chunks/Logo-DDykn5b2.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { jsx as c, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import { c as t } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { createContext as r, useContext as v } from "react";
|
|
4
|
-
import { u as i } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
5
|
-
import '../assets/Logo.css';const m = "_container_191fy_1", p = "_noPadding_191fy_6", g = "_logo_191fy_10", f = "_primary_191fy_15", M = "_dark_191fy_23", Z = "_xSmall_191fy_31", _ = "_small_191fy_35", u = "_large_191fy_39", l = {
|
|
6
|
-
container: m,
|
|
7
|
-
noPadding: p,
|
|
8
|
-
logo: g,
|
|
9
|
-
primary: f,
|
|
10
|
-
dark: M,
|
|
11
|
-
xSmall: Z,
|
|
12
|
-
small: _,
|
|
13
|
-
large: u
|
|
14
|
-
}, y = { logotype: "Logotype of the Swedish Migration Agency" }, x = { logotype: "Migrationsverkets logotyp" }, w = {
|
|
15
|
-
en: y,
|
|
16
|
-
sv: x
|
|
17
|
-
}, R = r({
|
|
18
|
-
size: void 0
|
|
19
|
-
}), N = ({
|
|
20
|
-
primary: a = !0,
|
|
21
|
-
size: h,
|
|
22
|
-
padding: e = !0,
|
|
23
|
-
className: o,
|
|
24
|
-
...s
|
|
25
|
-
}) => {
|
|
26
|
-
const n = v(R);
|
|
27
|
-
return /* @__PURE__ */ c(
|
|
28
|
-
"div",
|
|
29
|
-
{
|
|
30
|
-
className: t(
|
|
31
|
-
l.container,
|
|
32
|
-
e === !1 && l.noPadding,
|
|
33
|
-
o
|
|
34
|
-
),
|
|
35
|
-
...s,
|
|
36
|
-
children: /* @__PURE__ */ c(
|
|
37
|
-
S,
|
|
38
|
-
{
|
|
39
|
-
size: h ?? n.size ?? "medium",
|
|
40
|
-
primary: a
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
}, S = ({ size: a, primary: h }) => {
|
|
46
|
-
const e = t(
|
|
47
|
-
l.logo,
|
|
48
|
-
h ? l.primary : l.dark,
|
|
49
|
-
a === "x-small" && l.xSmall,
|
|
50
|
-
a === "medium" && l.medium,
|
|
51
|
-
a === "large" && l.large,
|
|
52
|
-
a === "small" && l.small
|
|
53
|
-
), o = i(w);
|
|
54
|
-
return a === "x-small" ? /* @__PURE__ */ c(
|
|
55
|
-
"svg",
|
|
56
|
-
{
|
|
57
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
58
|
-
viewBox: "0 0 100 92",
|
|
59
|
-
className: e,
|
|
60
|
-
role: "img",
|
|
61
|
-
"aria-hidden": "false",
|
|
62
|
-
focusable: "false",
|
|
63
|
-
"aria-label": o.format("logotype"),
|
|
64
|
-
children: /* @__PURE__ */ c("path", { d: "M99.99,91.69c-1.84-1.11-4.05-4.55-4.05-9.46V9.15c0-4.79,1.96-7.25,3.81-8.85h-14.75l-33.91,65.47L12.41.3H0c1.6,1.59,3.93,3.07,3.93,8.23v75.55c0,3.56-2.21,6.51-3.81,7.61h16.34c-1.72-1.22-3.93-4.18-3.93-7.98V25.97l36.24,61.42,33.04-63.26v58.96c0,5.53-2.21,7.61-3.81,8.6h21.99Z" })
|
|
65
|
-
}
|
|
66
|
-
) : /* @__PURE__ */ d(
|
|
67
|
-
"svg",
|
|
68
|
-
{
|
|
69
|
-
role: "img",
|
|
70
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
71
|
-
viewBox: "0 0 112 40",
|
|
72
|
-
className: e,
|
|
73
|
-
"aria-hidden": "false",
|
|
74
|
-
focusable: "false",
|
|
75
|
-
"aria-label": o.format("logotype"),
|
|
76
|
-
children: [
|
|
77
|
-
/* @__PURE__ */ c("path", { d: "M97.78,21.61c-7.48-9.73-20.06-16.03-34.32-16.03-13.07,0-24.86,5.27-32.46,13.65,6.56-5.83,15.64-9.44,25.66-9.44,11.37,0,21.52,4.56,28.18,11.83h12.94Z" }),
|
|
78
|
-
/* @__PURE__ */ c("path", { d: "M90.45,12.58C70.67-1.51,41.26,2.77,27.49,21.61h-12.23C30.56-2.89,68.29-7.47,90.45,12.58h0Z" }),
|
|
79
|
-
/* @__PURE__ */ c("path", { d: "M11.89,37.13c-.22-.13-.48-.53-.48-1.11v-8.58c0-.56.23-.85.45-1.04h-1.73l-3.98,7.69-4.54-7.69H.15c.19.19.46.36.46.97v8.87c0,.42-.26.76-.45.89h1.92c-.2-.14-.46-.49-.46-.94v-6.78l4.25,7.21,3.88-7.43v6.92c0,.65-.26.89-.45,1.01h2.58Z" }),
|
|
80
|
-
/* @__PURE__ */ c(
|
|
81
|
-
"path",
|
|
82
|
-
{
|
|
83
|
-
d: "M15.81,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM16.22,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z",
|
|
84
|
-
fillRule: "evenodd"
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
/* @__PURE__ */ c(
|
|
88
|
-
"path",
|
|
89
|
-
{
|
|
90
|
-
d: "M24.52,30.97c-.04-.33-.17-.68-.37-.95h-1.36c-.29-.26-.87-.58-1.96-.58-1.53,0-2.8.92-2.8,2.58,0,1.02.52,1.86,1.31,2.26-.43.37-1.38.98-1.38,1.61,0,.71.79.99,1.38,1.1-.88.26-1.67.82-1.67,1.59,0,1.14,1.73,1.41,2.64,1.41,1.54,0,3.91-.78,3.91-2.64,0-1.21-1.23-1.49-2.22-1.5-2.42-.06-2.51-.2-2.51-.56,0-.2.42-.68.55-.81.23.03.48.06.71.06,1.76,0,2.93-.94,2.93-2.7,0-.48-.14-.91-.29-1.11.12-.04.25-.04.37-.04.27,0,.55.12.76.27h0ZM22.27,32.21c0,.79-.37,1.61-1.36,1.61-1.07,0-1.47-1.21-1.47-2.09,0-.95.5-1.57,1.31-1.57,1.2,0,1.51,1.25,1.51,2.05h0ZM22.89,37.92c0,.76-.82,1.31-1.93,1.31-.59,0-1.7-.3-1.69-1.15,0-.45.26-.74.59-.99l1.96.04c.5.01,1.07.1,1.07.79h0Z",
|
|
91
|
-
fillRule: "evenodd"
|
|
92
|
-
}
|
|
93
|
-
),
|
|
94
|
-
/* @__PURE__ */ c("path", { d: "M30.11,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z" }),
|
|
95
|
-
/* @__PURE__ */ c(
|
|
96
|
-
"path",
|
|
97
|
-
{
|
|
98
|
-
d: "M36.87,37.13c-.37-.33-.43-.59-.43-1.25v-3.89c0-2.21-1.43-2.55-2.8-2.55-.61,0-1.67.22-2.03.42-.2.4-.3,1.24-.4,1.67.46-.56,1.27-1.37,2.39-1.37,1.18,0,1.36.82,1.36,1.7v.39l-2.21.76c-1.04.36-1.87,1.08-1.87,2.26,0,1.31.88,2.08,2.15,2.08.87,0,1.46-.43,1.93-.94v.72h1.92ZM34.95,35.62c-.26.32-.74.85-1.37.85-.75,0-1.18-.79-1.18-1.54,0-.71.35-1.15.89-1.37l1.66-.63v2.7h0Z",
|
|
99
|
-
fillRule: "evenodd"
|
|
100
|
-
}
|
|
101
|
-
),
|
|
102
|
-
/* @__PURE__ */ c("path", { d: "M42.58,36.15c-.29.27-.71.46-1.11.46-.87,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z" }),
|
|
103
|
-
/* @__PURE__ */ c(
|
|
104
|
-
"path",
|
|
105
|
-
{
|
|
106
|
-
d: "M45.63,26.86c0-.45-.36-.81-.81-.81s-.81.36-.81.81.36.81.81.81.81-.36.81-.81h0ZM46.04,37.13c-.3-.23-.45-.5-.45-1.07v-6.4h-1.98c.37.19.49.58.49,1.17v5.23c0,.48-.09.79-.46,1.07h2.39Z",
|
|
107
|
-
fillRule: "evenodd"
|
|
108
|
-
}
|
|
109
|
-
),
|
|
110
|
-
/* @__PURE__ */ c(
|
|
111
|
-
"path",
|
|
112
|
-
{
|
|
113
|
-
d: "M54.96,33.37c0-2.06-1.3-3.95-3.5-3.95s-3.84,1.76-3.84,4.01c0,2.06,1.28,3.95,3.49,3.95s3.85-1.76,3.85-4.01h0ZM53.43,34.04c0,1.27-.52,2.57-1.86,2.57-1.79,0-2.42-2.44-2.42-3.86,0-1.21.48-2.57,1.87-2.57,1.79,0,2.41,2.44,2.41,3.86h0Z",
|
|
114
|
-
fillRule: "evenodd"
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
/* @__PURE__ */ c("path", { d: "M63.37,37.13c-.27-.22-.45-.42-.45-1.11v-3.94c0-1.63-.39-2.64-2.18-2.64-1.01,0-1.79.56-2.38,1.12v-.91h-1.98c.3.17.49.46.49,1.05v5.33c0,.59-.14.88-.48,1.08h2.39c-.23-.23-.43-.37-.43-1.17v-4.4c.32-.45,1.07-1.24,1.85-1.24,1.01,0,1.23,1.01,1.23,1.8v3.95c0,.74-.26.87-.46,1.05h2.39Z" }),
|
|
118
|
-
/* @__PURE__ */ c(
|
|
119
|
-
"path",
|
|
120
|
-
{
|
|
121
|
-
d: "M69.79,35.2c0-2.21-3.42-2.71-3.42-4.07,0-.75.71-.98,1.34-.98s1.33.29,1.74.81l-.07-1.18c-.46-.17-1.11-.35-1.69-.35-1.44,0-2.68.63-2.68,1.89,0,2.36,3.46,2.68,3.46,4.25,0,.79-.62,1.05-1.31,1.05-1.01,0-1.86-.46-2.52-1.21v.1c0,.4-.03.99.3,1.27.53.43,1.53.56,2.18.56,1.36,0,2.67-.62,2.67-2.15h0Z",
|
|
122
|
-
fillRule: "evenodd"
|
|
123
|
-
}
|
|
124
|
-
),
|
|
125
|
-
/* @__PURE__ */ c("path", { d: "M77.98,29.66h-1.43c.13.1.11.56-.19,1.33l-1.86,4.72-1.87-4.7c-.26-.65-.32-1.15-.16-1.34h-2.06c.19.1.49.85.82,1.67l2.31,5.8h1.31l2.35-5.97c.32-.81.56-1.36.78-1.5h0Z" }),
|
|
126
|
-
/* @__PURE__ */ c(
|
|
127
|
-
"path",
|
|
128
|
-
{
|
|
129
|
-
d: "M84.91,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM83.34,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z",
|
|
130
|
-
fillRule: "evenodd"
|
|
131
|
-
}
|
|
132
|
-
),
|
|
133
|
-
/* @__PURE__ */ c("path", { d: "M90.95,31.22l-.23-1.63c-.2-.1-.43-.14-.65-.14-.85,0-1.46.68-1.79,1.37v-1.15h-1.96c.45.27.48.76.48,1.14v5.19c0,.58-.1.89-.45,1.14h2.35c-.36-.29-.42-.63-.42-1.12v-4.27c.22-.58.78-1.04,1.43-1.04.46,0,.97.26,1.24.52h0Z" }),
|
|
134
|
-
/* @__PURE__ */ c("path", { d: "M99.79,37.16c-2.26-.37-2.49-4.04-4.7-4.04l2.62-2.8c.22-.23.5-.48.75-.66h-1.77c.14.14.13.39-.13.66l-2.65,2.83v-7.07h-1.98c.33.2.49.56.49,1.01v9.01c0,.58-.22.81-.46,1.02h2.35c-.26-.25-.4-.49-.4-1.02v-2.57c.27,0,.62.13.82.26,1.28.82,1.95,3.11,2.67,3.45.14.07.94.1,1.14.1.45,0,.84-.03,1.25-.19h0Z" }),
|
|
135
|
-
/* @__PURE__ */ c(
|
|
136
|
-
"path",
|
|
137
|
-
{
|
|
138
|
-
d: "M106.3,33.54v-.23c0-1.92-.62-3.88-2.88-3.88s-3.56,2.02-3.56,4.11,1.41,3.81,3.58,3.81c.78,0,1.62-.17,2.13-.45.32-.35.49-.79.59-1.27-.69.5-1.41.84-2.31.84-1.49,0-2.35-1.57-2.38-2.88l4.83-.04h0ZM104.73,32.88c-1.1.09-2.16.1-3.27.1.01-.78.29-2.83,1.7-2.83,1.33,0,1.57,1.72,1.57,2.73h0Z",
|
|
139
|
-
fillRule: "evenodd"
|
|
140
|
-
}
|
|
141
|
-
),
|
|
142
|
-
/* @__PURE__ */ c("path", { d: "M111.85,36.15c-.29.27-.71.46-1.11.46-.86,0-1.07-.98-1.07-1.66v-4.51h.85c.43,0,.94.13,1.33.35l-.17-1.12h-2v-1.76c-.68.95-1.54,1.96-2.58,2.54h1.1v4.43c0,1.43.32,2.47,1.95,2.47.48,0,.98-.1,1.38-.36.14-.25.25-.55.33-.82h0Z" })
|
|
143
|
-
]
|
|
144
|
-
}
|
|
145
|
-
);
|
|
146
|
-
};
|
|
147
|
-
export {
|
|
148
|
-
N as L,
|
|
149
|
-
R as a
|
|
150
|
-
};
|
package/chunks/Modal-yigospxi.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { ModalOverlay as y, composeRenderProps as _, Modal as p, Dialog as v } from "react-aria-components";
|
|
3
|
-
import { forwardRef as m } from "react";
|
|
4
|
-
import { B as f } from "./Button-GCROAMSl.js";
|
|
5
|
-
import { H as g } from "./Heading-nfcRc2QF.js";
|
|
6
|
-
import { c as h } from "./clsx-AexbMWKp.js";
|
|
7
|
-
import { X as x } from "./x-B9bYxG31.js";
|
|
8
|
-
import { u as M } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
9
|
-
import '../assets/Modal.css';const N = "_modal_x15md_1", O = "_dialog_x15md_10", B = "_modalHeader_x15md_39", H = "_modalTitle_x15md_50", T = "_modalBody_x15md_56", a = {
|
|
10
|
-
modal: N,
|
|
11
|
-
dialog: O,
|
|
12
|
-
modalHeader: B,
|
|
13
|
-
modalTitle: H,
|
|
14
|
-
modalBody: T
|
|
15
|
-
}, u = { close: "Close" }, $ = { close: "Stäng" }, j = {
|
|
16
|
-
en: u,
|
|
17
|
-
sv: $
|
|
18
|
-
}, w = "_modalOverlay_gwg3f_1", P = {
|
|
19
|
-
modalOverlay: w
|
|
20
|
-
}, r = m(
|
|
21
|
-
({ className: e, ...l }, d) => /* @__PURE__ */ o(
|
|
22
|
-
y,
|
|
23
|
-
{
|
|
24
|
-
className: h(e, P.modalOverlay),
|
|
25
|
-
ref: d,
|
|
26
|
-
...l
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
);
|
|
30
|
-
r.displayName = "ModalOverlay";
|
|
31
|
-
const R = m(
|
|
32
|
-
({ children: e, title: l, hideCloseButton: d = !1, ...t }, c) => {
|
|
33
|
-
const i = M(j);
|
|
34
|
-
return /* @__PURE__ */ o(r, { ...t, children: _(e, (n) => /* @__PURE__ */ o(
|
|
35
|
-
p,
|
|
36
|
-
{
|
|
37
|
-
className: a.modal,
|
|
38
|
-
ref: c,
|
|
39
|
-
children: /* @__PURE__ */ s(v, { className: a.dialog, children: [
|
|
40
|
-
/* @__PURE__ */ s("div", { className: a.modalHeader, children: [
|
|
41
|
-
/* @__PURE__ */ o("div", { className: a.modalTitle, children: l && /* @__PURE__ */ o(
|
|
42
|
-
g,
|
|
43
|
-
{
|
|
44
|
-
level: 3,
|
|
45
|
-
elementType: "h2",
|
|
46
|
-
slot: "title",
|
|
47
|
-
children: l
|
|
48
|
-
}
|
|
49
|
-
) }),
|
|
50
|
-
!d && /* @__PURE__ */ o(
|
|
51
|
-
f,
|
|
52
|
-
{
|
|
53
|
-
slot: "close",
|
|
54
|
-
variant: "tertiary",
|
|
55
|
-
icon: x,
|
|
56
|
-
iconPlacement: "right",
|
|
57
|
-
children: i.format("close")
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
] }),
|
|
61
|
-
/* @__PURE__ */ o(
|
|
62
|
-
"div",
|
|
63
|
-
{
|
|
64
|
-
className: a.modalBody,
|
|
65
|
-
tabIndex: -1,
|
|
66
|
-
children: n
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
] })
|
|
70
|
-
}
|
|
71
|
-
)) });
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
R.displayName = "Modal";
|
|
75
|
-
export {
|
|
76
|
-
R as M,
|
|
77
|
-
r as a
|
|
78
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as i, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as f } from "react";
|
|
3
|
-
import { useContextProps as v, PopoverContext as h, Popover as w, composeRenderProps as P, OverlayArrow as x } from "react-aria-components";
|
|
4
|
-
import { c as _ } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import '../assets/Popover.css';const g = "_popover_1k0dj_1", j = "_arrow_1k0dj_25", e = {
|
|
6
|
-
popover: g,
|
|
7
|
-
arrow: j
|
|
8
|
-
}, y = f((s, t) => {
|
|
9
|
-
const [o, p] = v(s, t, h), { className: a, hideArrow: c = !1, offset: n = 4, ...m } = o;
|
|
10
|
-
return /* @__PURE__ */ r(
|
|
11
|
-
w,
|
|
12
|
-
{
|
|
13
|
-
className: _(e.popover, a),
|
|
14
|
-
offset: n,
|
|
15
|
-
ref: p,
|
|
16
|
-
...m,
|
|
17
|
-
children: P(o.children, (d) => /* @__PURE__ */ i(l, { children: [
|
|
18
|
-
!c && /* @__PURE__ */ r(x, { className: e.arrow, children: /* @__PURE__ */ r(
|
|
19
|
-
"svg",
|
|
20
|
-
{
|
|
21
|
-
height: 16,
|
|
22
|
-
viewBox: "0 0 16 16",
|
|
23
|
-
width: 16,
|
|
24
|
-
children: /* @__PURE__ */ r("path", { d: "M0 0 L8 8 L16 0" })
|
|
25
|
-
}
|
|
26
|
-
) }),
|
|
27
|
-
d
|
|
28
|
-
] }))
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
y as P
|
|
34
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as _, Fragment as v } from "react/jsx-runtime";
|
|
2
|
-
import { ProgressBar as h } from "react-aria-components";
|
|
3
|
-
import { L as t } from "./Label-Cqo7Xz2v.js";
|
|
4
|
-
import { c as l } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import '../assets/ProgressBar.css';const d = "_progressBar_1hwve_1", f = "_label_1hwve_9", N = "_value_1hwve_14", g = "_bar_1hwve_19", p = "_fill_1hwve_29", a = {
|
|
6
|
-
progressBar: d,
|
|
7
|
-
label: f,
|
|
8
|
-
value: N,
|
|
9
|
-
bar: g,
|
|
10
|
-
fill: p
|
|
11
|
-
}, y = ({
|
|
12
|
-
label: r,
|
|
13
|
-
labelProps: s,
|
|
14
|
-
showValueLabel: m = !1,
|
|
15
|
-
...c
|
|
16
|
-
}) => /* @__PURE__ */ e(
|
|
17
|
-
h,
|
|
18
|
-
{
|
|
19
|
-
...c,
|
|
20
|
-
className: l(a.progressBar, c.className),
|
|
21
|
-
children: ({ percentage: i, valueText: n, isIndeterminate: o }) => /* @__PURE__ */ _(v, { children: [
|
|
22
|
-
r && /* @__PURE__ */ e(
|
|
23
|
-
t,
|
|
24
|
-
{
|
|
25
|
-
elementType: "span",
|
|
26
|
-
...s,
|
|
27
|
-
className: l(s?.className, a.label),
|
|
28
|
-
children: r
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
m && /* @__PURE__ */ e(
|
|
32
|
-
t,
|
|
33
|
-
{
|
|
34
|
-
elementType: "span",
|
|
35
|
-
...s,
|
|
36
|
-
id: r ? "" : s?.id,
|
|
37
|
-
className: l(s?.className, a.value),
|
|
38
|
-
children: n
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
/* @__PURE__ */ e("div", { className: a.bar, children: /* @__PURE__ */ e(
|
|
42
|
-
"div",
|
|
43
|
-
{
|
|
44
|
-
className: a.fill,
|
|
45
|
-
style: { width: `${o ? 50 : i}%` }
|
|
46
|
-
}
|
|
47
|
-
) })
|
|
48
|
-
] })
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
export {
|
|
52
|
-
y as P
|
|
53
|
-
};
|
package/chunks/Radio-CFolRKKY.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as o, jsxs as u, Fragment as _ } from "react/jsx-runtime";
|
|
3
|
-
import { Radio as f, RadioGroup as h, composeRenderProps as G, Group as R } from "react-aria-components";
|
|
4
|
-
import { c as p } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { a as x, L as w } from "./Label-Cqo7Xz2v.js";
|
|
6
|
-
import { T as E } from "./Text-D0r_W4lH.js";
|
|
7
|
-
import { F as t } from "./FieldError-krpMBtie.js";
|
|
8
|
-
import '../assets/Radio.css';const F = "_radioGroup_1oic0_1", L = "_wrap_1oic0_12", N = "_radio_1oic0_1", i = {
|
|
9
|
-
radioGroup: F,
|
|
10
|
-
wrap: L,
|
|
11
|
-
radio: N
|
|
12
|
-
}, g = ({
|
|
13
|
-
label: r,
|
|
14
|
-
description: a,
|
|
15
|
-
errorMessage: d,
|
|
16
|
-
children: c,
|
|
17
|
-
className: e,
|
|
18
|
-
errorPosition: s = "top",
|
|
19
|
-
popover: m,
|
|
20
|
-
...l
|
|
21
|
-
}) => /* @__PURE__ */ o(
|
|
22
|
-
h,
|
|
23
|
-
{
|
|
24
|
-
...l,
|
|
25
|
-
className: p(i.radioGroup, e),
|
|
26
|
-
children: G(c, (n) => /* @__PURE__ */ u(_, { children: [
|
|
27
|
-
/* @__PURE__ */ o(x, { popover: m, children: r && /* @__PURE__ */ o(w, { children: r }) }),
|
|
28
|
-
a && /* @__PURE__ */ o(E, { slot: "description", children: a }),
|
|
29
|
-
s === "top" && /* @__PURE__ */ o(t, { "data-testid": "fieldError", children: d }),
|
|
30
|
-
/* @__PURE__ */ o(R, { className: i.wrap, children: n }),
|
|
31
|
-
s === "bottom" && /* @__PURE__ */ o(t, { "data-testid": "fieldError", children: d })
|
|
32
|
-
] }))
|
|
33
|
-
}
|
|
34
|
-
), k = ({ className: r, ...a }) => /* @__PURE__ */ o(
|
|
35
|
-
f,
|
|
36
|
-
{
|
|
37
|
-
className: p(i.radio, r),
|
|
38
|
-
...a
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
export {
|
|
42
|
-
k as R,
|
|
43
|
-
g as a
|
|
44
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { RangeCalendarContext as h, CalendarGrid as C, CalendarCell as v, Calendar as _, RangeCalendar as p } from "react-aria-components";
|
|
3
|
-
import { c as y, a as l } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { F as s } from "./FieldError-krpMBtie.js";
|
|
5
|
-
import * as f from "react";
|
|
6
|
-
import { B as i } from "./Button-GCROAMSl.js";
|
|
7
|
-
import { H as g } from "./Heading-nfcRc2QF.js";
|
|
8
|
-
import { c as R } from "./createLucideIcon-CP-mMPfa.js";
|
|
9
|
-
import { C as x } from "./chevron-right-DvXGOiS_.js";
|
|
10
|
-
import '../assets/RangeCalendar.css';const u = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], N = R("chevron-left", u), I = "_container_19aea_1", $ = "_calendar_19aea_6", G = "_day_19aea_28", H = "_header_19aea_90", j = "_range_19aea_162", r = {
|
|
11
|
-
container: I,
|
|
12
|
-
calendar: $,
|
|
13
|
-
day: G,
|
|
14
|
-
header: H,
|
|
15
|
-
range: j
|
|
16
|
-
}, c = ({
|
|
17
|
-
weekdayStyle: d = "short",
|
|
18
|
-
isReadOnly: n
|
|
19
|
-
}) => {
|
|
20
|
-
const a = !!f.useContext(h);
|
|
21
|
-
return /* @__PURE__ */ e(C, { weekdayStyle: d, children: (m) => /* @__PURE__ */ e(
|
|
22
|
-
v,
|
|
23
|
-
{
|
|
24
|
-
date: m,
|
|
25
|
-
className: y(r.day, a && r.range),
|
|
26
|
-
"data-readonly": n || void 0
|
|
27
|
-
}
|
|
28
|
-
) });
|
|
29
|
-
}, t = ({
|
|
30
|
-
isDisabled: d,
|
|
31
|
-
isReadOnly: n
|
|
32
|
-
}) => /* @__PURE__ */ o("header", { className: r.header, children: [
|
|
33
|
-
/* @__PURE__ */ e(
|
|
34
|
-
i,
|
|
35
|
-
{
|
|
36
|
-
slot: "previous",
|
|
37
|
-
size: "medium",
|
|
38
|
-
"data-readonly": n || void 0,
|
|
39
|
-
children: /* @__PURE__ */ e(N, {})
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
g,
|
|
44
|
-
{
|
|
45
|
-
level: 3,
|
|
46
|
-
elementType: "h2",
|
|
47
|
-
"data-disabled": d || void 0
|
|
48
|
-
}
|
|
49
|
-
),
|
|
50
|
-
/* @__PURE__ */ e(
|
|
51
|
-
i,
|
|
52
|
-
{
|
|
53
|
-
slot: "next",
|
|
54
|
-
size: "medium",
|
|
55
|
-
"data-readonly": n || void 0,
|
|
56
|
-
children: /* @__PURE__ */ e(x, {})
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
] }), O = ({
|
|
60
|
-
className: d,
|
|
61
|
-
errorMessage: n,
|
|
62
|
-
...a
|
|
63
|
-
}) => /* @__PURE__ */ o("div", { className: r.container, children: [
|
|
64
|
-
/* @__PURE__ */ o(
|
|
65
|
-
_,
|
|
66
|
-
{
|
|
67
|
-
className: l(r.calendar, d),
|
|
68
|
-
"data-readonly": a.isReadOnly || void 0,
|
|
69
|
-
...a,
|
|
70
|
-
children: [
|
|
71
|
-
/* @__PURE__ */ e(t, { ...a }),
|
|
72
|
-
/* @__PURE__ */ e(c, { ...a })
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
),
|
|
76
|
-
/* @__PURE__ */ e(s, { isInvalid: a.isInvalid, children: n })
|
|
77
|
-
] }), T = ({
|
|
78
|
-
className: d,
|
|
79
|
-
errorMessage: n,
|
|
80
|
-
...a
|
|
81
|
-
}) => /* @__PURE__ */ o("div", { className: r.container, children: [
|
|
82
|
-
/* @__PURE__ */ o(
|
|
83
|
-
p,
|
|
84
|
-
{
|
|
85
|
-
className: l(r.calendar, d),
|
|
86
|
-
"data-readonly": a.isReadOnly || void 0,
|
|
87
|
-
...a,
|
|
88
|
-
children: [
|
|
89
|
-
/* @__PURE__ */ e(t, { ...a }),
|
|
90
|
-
/* @__PURE__ */ e(c, { ...a })
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
),
|
|
94
|
-
/* @__PURE__ */ e(s, { isInvalid: a.isInvalid, children: n })
|
|
95
|
-
] });
|
|
96
|
-
export {
|
|
97
|
-
O as C,
|
|
98
|
-
T as R
|
|
99
|
-
};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as i, jsxs as s, Fragment as g } from "react/jsx-runtime";
|
|
3
|
-
import { useSlottedContext as j, FormContext as N, SearchField as p, Input as B } from "react-aria-components";
|
|
4
|
-
import { s as C } from "./TextField.module-BDIbEV87.js";
|
|
5
|
-
import { B as d } from "./Button-GCROAMSl.js";
|
|
6
|
-
import { c } from "./clsx-AexbMWKp.js";
|
|
7
|
-
import { F as h } from "./FieldError-krpMBtie.js";
|
|
8
|
-
import { c as k } from "./createLucideIcon-CP-mMPfa.js";
|
|
9
|
-
import { X as I } from "./x-B9bYxG31.js";
|
|
10
|
-
import { u as D } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
11
|
-
import '../assets/SearchField.css';const E = [
|
|
12
|
-
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
13
|
-
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
14
|
-
], T = k("search", E), w = "_container_1msv3_1", L = "_inner_1msv3_10", V = "_inputContainer_1msv3_15", $ = "_medium_1msv3_21", q = "_icon_1msv3_26", K = "_clear_1msv3_38", O = "_input_1msv3_15", e = {
|
|
15
|
-
container: w,
|
|
16
|
-
inner: L,
|
|
17
|
-
inputContainer: V,
|
|
18
|
-
medium: $,
|
|
19
|
-
icon: q,
|
|
20
|
-
clear: K,
|
|
21
|
-
input: O
|
|
22
|
-
}, P = { search: "Search" }, X = { search: "Sök" }, A = {
|
|
23
|
-
en: P,
|
|
24
|
-
sv: X
|
|
25
|
-
};
|
|
26
|
-
function G(o) {
|
|
27
|
-
return !!o?.length;
|
|
28
|
-
}
|
|
29
|
-
const M = ({
|
|
30
|
-
errorPosition: o = "top",
|
|
31
|
-
size: a = "large",
|
|
32
|
-
showButton: v,
|
|
33
|
-
className: _,
|
|
34
|
-
errorMessage: m,
|
|
35
|
-
placeholder: l,
|
|
36
|
-
validationBehavior: f,
|
|
37
|
-
inputMode: S = "search",
|
|
38
|
-
...n
|
|
39
|
-
}) => {
|
|
40
|
-
const b = D(A), x = j(N), F = f ?? x?.validationBehavior ?? "aria", y = v !== !1, u = (t) => {
|
|
41
|
-
!t || n.isInvalid || n.validate && G(n.validate(t)) || n.onSubmit?.(t);
|
|
42
|
-
};
|
|
43
|
-
return /* @__PURE__ */ i(
|
|
44
|
-
p,
|
|
45
|
-
{
|
|
46
|
-
...n,
|
|
47
|
-
inputMode: S,
|
|
48
|
-
onSubmit: u,
|
|
49
|
-
"aria-label": n["aria-label"] ?? l,
|
|
50
|
-
className: c(e.container, _),
|
|
51
|
-
validationBehavior: F,
|
|
52
|
-
children: ({ state: t }) => /* @__PURE__ */ s(g, { children: [
|
|
53
|
-
o === "top" && /* @__PURE__ */ i(h, { children: ({ validationErrors: r }) => m ?? r.join(" ") }),
|
|
54
|
-
/* @__PURE__ */ s("div", { className: e.inner, children: [
|
|
55
|
-
/* @__PURE__ */ s(
|
|
56
|
-
"div",
|
|
57
|
-
{
|
|
58
|
-
className: c(e.inputContainer, {
|
|
59
|
-
[e.medium]: a === "medium"
|
|
60
|
-
}),
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ i(
|
|
63
|
-
T,
|
|
64
|
-
{
|
|
65
|
-
size: 20,
|
|
66
|
-
className: e.icon
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
/* @__PURE__ */ i(
|
|
70
|
-
B,
|
|
71
|
-
{
|
|
72
|
-
placeholder: l,
|
|
73
|
-
className: c(C.input, e.input, {
|
|
74
|
-
[e.medium]: a === "medium"
|
|
75
|
-
}),
|
|
76
|
-
onKeyDown: n.onSubmit ? void 0 : (r) => {
|
|
77
|
-
r.key === "Enter" && t.value && !n.isInvalid && r.currentTarget.form?.requestSubmit();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
t.value.length > 0 && /* @__PURE__ */ i(
|
|
82
|
-
d,
|
|
83
|
-
{
|
|
84
|
-
variant: "icon",
|
|
85
|
-
size: a,
|
|
86
|
-
className: c(e.clear, {
|
|
87
|
-
[e.medium]: a === "medium"
|
|
88
|
-
}),
|
|
89
|
-
children: /* @__PURE__ */ i(
|
|
90
|
-
I,
|
|
91
|
-
{
|
|
92
|
-
size: 20,
|
|
93
|
-
"aria-hidden": !0
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
|
-
}
|
|
97
|
-
)
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
y && /* @__PURE__ */ i(
|
|
102
|
-
d,
|
|
103
|
-
{
|
|
104
|
-
slot: null,
|
|
105
|
-
excludeFromTabOrder: !0,
|
|
106
|
-
size: a,
|
|
107
|
-
isDisabled: n.isDisabled,
|
|
108
|
-
type: "button",
|
|
109
|
-
onPress: () => u(t.value),
|
|
110
|
-
children: n.buttonText ?? b.format("search")
|
|
111
|
-
}
|
|
112
|
-
)
|
|
113
|
-
] }),
|
|
114
|
-
o === "bottom" && /* @__PURE__ */ i(h, { children: ({ validationErrors: r }) => m ?? r.join(" ") })
|
|
115
|
-
] })
|
|
116
|
-
}
|
|
117
|
-
);
|
|
118
|
-
};
|
|
119
|
-
export {
|
|
120
|
-
M as S
|
|
121
|
-
};
|