@midas-ds/components 17.15.2 → 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 +16 -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 +2 -2
- 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,119 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as d, Fragment as u } from "react/jsx-runtime";
|
|
2
|
-
import { Tag as T, composeRenderProps as f, useContextProps as p, TagListContext as b, TagList as h, TagGroupContext as v, TagGroup as y } from "react-aria-components";
|
|
3
|
-
import { B as x } from "./Button-GCROAMSl.js";
|
|
4
|
-
import { c as _ } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { X as L } from "./x-B9bYxG31.js";
|
|
6
|
-
import { forwardRef as m, Children as N, isValidElement as w } from "react";
|
|
7
|
-
import '../assets/TagGroup.css';const k = "_button_14ocl_1", G = "_tag_14ocl_8", C = "_sky_14ocl_21", R = "_blue_14ocl_22", V = "_mint_14ocl_27", $ = "_green_14ocl_28", z = "_cream_14ocl_33", E = "_yellow_14ocl_34", j = "_teal_14ocl_39", B = "_lagoon_14ocl_44", P = "_lagoonblue_14ocl_45", A = "_lavender_14ocl_50", D = "_purple_14ocl_51", F = "_peach_14ocl_56", I = "_orange_14ocl_57", O = "_pippin_14ocl_62", U = "_red_14ocl_63", X = "_tagText_14ocl_90", q = "_dismissable_14ocl_104", t = {
|
|
8
|
-
button: k,
|
|
9
|
-
tag: G,
|
|
10
|
-
sky: C,
|
|
11
|
-
blue: R,
|
|
12
|
-
mint: V,
|
|
13
|
-
green: $,
|
|
14
|
-
cream: z,
|
|
15
|
-
yellow: E,
|
|
16
|
-
teal: j,
|
|
17
|
-
lagoon: B,
|
|
18
|
-
lagoonblue: P,
|
|
19
|
-
lavender: A,
|
|
20
|
-
purple: D,
|
|
21
|
-
peach: F,
|
|
22
|
-
orange: I,
|
|
23
|
-
pippin: O,
|
|
24
|
-
red: U,
|
|
25
|
-
tagText: X,
|
|
26
|
-
dismissable: q
|
|
27
|
-
}, te = ({
|
|
28
|
-
className: l,
|
|
29
|
-
color: e,
|
|
30
|
-
dismissable: i = !1,
|
|
31
|
-
isDismissable: s,
|
|
32
|
-
type: n,
|
|
33
|
-
...a
|
|
34
|
-
}) => {
|
|
35
|
-
const r = s || typeof s > "u" && i;
|
|
36
|
-
return /* @__PURE__ */ o(
|
|
37
|
-
T,
|
|
38
|
-
{
|
|
39
|
-
className: _(
|
|
40
|
-
t.tag,
|
|
41
|
-
r && t.dismissable,
|
|
42
|
-
{
|
|
43
|
-
[t.sky]: e === "sky",
|
|
44
|
-
[t.blue]: e === "blue" || !e && n === "info",
|
|
45
|
-
[t.mint]: e === "mint",
|
|
46
|
-
[t.green]: e === "green" || !e && n === "success",
|
|
47
|
-
[t.cream]: e === "cream",
|
|
48
|
-
[t.yellow]: e === "yellow" || !e && n === "important",
|
|
49
|
-
[t.teal]: e === "teal",
|
|
50
|
-
[t.lagoon]: e === "lagoon",
|
|
51
|
-
[t.lagoonblue]: e === "lagoonblue",
|
|
52
|
-
[t.lavender]: e === "lavender",
|
|
53
|
-
[t.purple]: e === "purple",
|
|
54
|
-
[t.peach]: e === "peach",
|
|
55
|
-
[t.orange]: e === "orange",
|
|
56
|
-
[t.pippin]: e === "pippin",
|
|
57
|
-
[t.red]: e === "red" || !e && n === "warning"
|
|
58
|
-
},
|
|
59
|
-
l
|
|
60
|
-
),
|
|
61
|
-
...a,
|
|
62
|
-
textValue: a.textValue || (typeof a.children == "string" ? a.children : void 0),
|
|
63
|
-
children: f(a.children, (c) => /* @__PURE__ */ d(u, { children: [
|
|
64
|
-
/* @__PURE__ */ o("div", { className: t.tagText, children: c }),
|
|
65
|
-
r && /* @__PURE__ */ o(
|
|
66
|
-
x,
|
|
67
|
-
{
|
|
68
|
-
variant: "icon",
|
|
69
|
-
size: "medium",
|
|
70
|
-
className: t.button,
|
|
71
|
-
slot: "remove",
|
|
72
|
-
children: /* @__PURE__ */ o(L, { size: 20 })
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] }))
|
|
76
|
-
}
|
|
77
|
-
);
|
|
78
|
-
}, H = "_tagList_17pz2_1", J = {
|
|
79
|
-
tagList: H
|
|
80
|
-
}, K = (l, e) => {
|
|
81
|
-
const [{ className: i, ...s }, n] = p(
|
|
82
|
-
l,
|
|
83
|
-
e,
|
|
84
|
-
b
|
|
85
|
-
);
|
|
86
|
-
return /* @__PURE__ */ o(
|
|
87
|
-
h,
|
|
88
|
-
{
|
|
89
|
-
className: _(i, J.tagList),
|
|
90
|
-
ref: n,
|
|
91
|
-
...s
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
}, g = m(K), M = m(
|
|
95
|
-
(l, e) => {
|
|
96
|
-
const [{ className: i, children: s, ...n }, a] = p(
|
|
97
|
-
l,
|
|
98
|
-
e,
|
|
99
|
-
v
|
|
100
|
-
), r = N.toArray(s).filter(w).find((c) => c.type === g);
|
|
101
|
-
return !r && process.env.NODE_ENV === "development" && console.warn(
|
|
102
|
-
"Using a TagGroup without providing a TagList component is deprecated since v17.0.0, see: https://designsystem.migrationsverket.se/components/tag/"
|
|
103
|
-
), /* @__PURE__ */ o(
|
|
104
|
-
y,
|
|
105
|
-
{
|
|
106
|
-
className: _(i),
|
|
107
|
-
ref: a,
|
|
108
|
-
...n,
|
|
109
|
-
children: r ? s : /* @__PURE__ */ o(g, { children: s })
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
);
|
|
114
|
-
M.displayName = "TagGroup";
|
|
115
|
-
export {
|
|
116
|
-
te as T,
|
|
117
|
-
M as a,
|
|
118
|
-
g as b
|
|
119
|
-
};
|
package/chunks/Text-D0r_W4lH.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as d } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { Text as _ } from "react-aria-components";
|
|
4
|
-
import '../assets/Text.css';const m = "_body_g096r_1", p = "_description_g096r_3", b = "_bold_g096r_24", g = "_italic_g096r_28", s = {
|
|
5
|
-
body: m,
|
|
6
|
-
"body-small": "_body-small_g096r_2",
|
|
7
|
-
description: p,
|
|
8
|
-
"description-small": "_description-small_g096r_4",
|
|
9
|
-
bold: b,
|
|
10
|
-
italic: g
|
|
11
|
-
}, l = "span", E = ({
|
|
12
|
-
children: r,
|
|
13
|
-
className: c,
|
|
14
|
-
size: t,
|
|
15
|
-
isExpressive: e = !1,
|
|
16
|
-
elementType: o = l,
|
|
17
|
-
...i
|
|
18
|
-
}) => {
|
|
19
|
-
const n = {
|
|
20
|
-
className: d(
|
|
21
|
-
i.slot === "description" ? t === "small" ? s["description-small"] : s.description : t === "small" ? s["body-small"] : s.body,
|
|
22
|
-
{
|
|
23
|
-
[s.bold]: ["b", "strong"].includes(o),
|
|
24
|
-
[s.italic]: ["i", "em"].includes(o)
|
|
25
|
-
},
|
|
26
|
-
c
|
|
27
|
-
),
|
|
28
|
-
elementType: o || l,
|
|
29
|
-
...e && { "data-expressive": !0 },
|
|
30
|
-
...i
|
|
31
|
-
};
|
|
32
|
-
return /* @__PURE__ */ a(_, { ...n, children: r });
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
E as T
|
|
36
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsxs as w, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as c, useState as F } from "react";
|
|
4
|
-
import { useContextProps as u, TextFieldContext as y, TextField as g, InputContext as P, Input as b, TextArea as C } from "react-aria-components";
|
|
5
|
-
import { a as I, c as h } from "./clsx-AexbMWKp.js";
|
|
6
|
-
import { s as d } from "./TextField.module-BDIbEV87.js";
|
|
7
|
-
import { B as A } from "./Button-GCROAMSl.js";
|
|
8
|
-
import { u as B } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
9
|
-
import { T as L } from "./Text-D0r_W4lH.js";
|
|
10
|
-
import { F as f } from "./FieldError-krpMBtie.js";
|
|
11
|
-
import { C as S } from "./CharacterCounter-Dgnv-orm.js";
|
|
12
|
-
import { a as v, L as E } from "./Label-Cqo7Xz2v.js";
|
|
13
|
-
const x = c(
|
|
14
|
-
(e, o) => {
|
|
15
|
-
[e] = u(e, o, y);
|
|
16
|
-
const {
|
|
17
|
-
label: s,
|
|
18
|
-
description: a,
|
|
19
|
-
errorMessage: i,
|
|
20
|
-
showCounter: n,
|
|
21
|
-
errorPosition: r = "top",
|
|
22
|
-
size: l = "large",
|
|
23
|
-
popover: m,
|
|
24
|
-
children: p
|
|
25
|
-
} = e;
|
|
26
|
-
return /* @__PURE__ */ w(
|
|
27
|
-
g,
|
|
28
|
-
{
|
|
29
|
-
...e,
|
|
30
|
-
className: I(d.textField, {
|
|
31
|
-
[d.medium]: l === "medium"
|
|
32
|
-
}),
|
|
33
|
-
children: [
|
|
34
|
-
/* @__PURE__ */ t(v, { popover: m, children: s && /* @__PURE__ */ t(E, { children: s }) }),
|
|
35
|
-
a && /* @__PURE__ */ t(L, { slot: "description", children: a }),
|
|
36
|
-
n && /* @__PURE__ */ t(S, { isLonely: !a }),
|
|
37
|
-
r === "top" && /* @__PURE__ */ t(f, { "data-testid": "fieldError", children: i }),
|
|
38
|
-
p,
|
|
39
|
-
r === "bottom" && /* @__PURE__ */ t(
|
|
40
|
-
f,
|
|
41
|
-
{
|
|
42
|
-
"data-testid": "fieldError",
|
|
43
|
-
className: d.bottomError,
|
|
44
|
-
children: i
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
x.displayName = "TextFieldBase";
|
|
53
|
-
const $ = { hide: "Hide", show: "Show", showPassword: "Show password" }, j = { hide: "Dölj", show: "Visa", showPassword: "Visa lösenord" }, z = {
|
|
54
|
-
en: $,
|
|
55
|
-
sv: j
|
|
56
|
-
}, V = ({
|
|
57
|
-
showPassword: e,
|
|
58
|
-
onToggle: o
|
|
59
|
-
}) => {
|
|
60
|
-
const s = B(z);
|
|
61
|
-
return /* @__PURE__ */ t(
|
|
62
|
-
A,
|
|
63
|
-
{
|
|
64
|
-
"aria-label": s.format("showPassword"),
|
|
65
|
-
"aria-pressed": e,
|
|
66
|
-
variant: "tertiary",
|
|
67
|
-
onPress: o,
|
|
68
|
-
className: d.passwordButton,
|
|
69
|
-
children: e ? s.format("hide") : s.format("show")
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
}, T = c(
|
|
73
|
-
({ skipContext: e = !1, ...o }, s) => {
|
|
74
|
-
const [a, i] = u(
|
|
75
|
-
o,
|
|
76
|
-
s,
|
|
77
|
-
P
|
|
78
|
-
), n = e ? s : i, r = e ? o : a, l = r.type === "password", [m, p] = F(!1);
|
|
79
|
-
return /* @__PURE__ */ w("div", { className: d.wrap, children: [
|
|
80
|
-
/* @__PURE__ */ t(
|
|
81
|
-
b,
|
|
82
|
-
{
|
|
83
|
-
...r,
|
|
84
|
-
ref: n,
|
|
85
|
-
type: l && m ? "text" : r.type,
|
|
86
|
-
className: h(d.input, r.className)
|
|
87
|
-
}
|
|
88
|
-
),
|
|
89
|
-
l && /* @__PURE__ */ t(
|
|
90
|
-
V,
|
|
91
|
-
{
|
|
92
|
-
showPassword: m,
|
|
93
|
-
onToggle: () => p((N) => !N)
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
|
-
] });
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
T.displayName = "Input";
|
|
100
|
-
const D = c(
|
|
101
|
-
({ className: e, list: o, type: s, min: a, max: i, form: n, ...r }, l) => /* @__PURE__ */ t(x, { ...r, children: /* @__PURE__ */ t(
|
|
102
|
-
T,
|
|
103
|
-
{
|
|
104
|
-
className: h(e),
|
|
105
|
-
form: n,
|
|
106
|
-
list: o,
|
|
107
|
-
min: a,
|
|
108
|
-
max: i,
|
|
109
|
-
ref: l,
|
|
110
|
-
type: s,
|
|
111
|
-
skipContext: !0
|
|
112
|
-
}
|
|
113
|
-
) })
|
|
114
|
-
);
|
|
115
|
-
D.displayName = "TextField";
|
|
116
|
-
const H = c(
|
|
117
|
-
({ className: e, cols: o, form: s, rows: a, wrap: i, ...n }, r) => /* @__PURE__ */ t(x, { ...n, children: /* @__PURE__ */ t(
|
|
118
|
-
C,
|
|
119
|
-
{
|
|
120
|
-
className: h(d.textArea, e),
|
|
121
|
-
cols: o,
|
|
122
|
-
form: s,
|
|
123
|
-
ref: r,
|
|
124
|
-
rows: a,
|
|
125
|
-
wrap: i
|
|
126
|
-
}
|
|
127
|
-
) })
|
|
128
|
-
);
|
|
129
|
-
H.displayName = "TextArea";
|
|
130
|
-
export {
|
|
131
|
-
T as I,
|
|
132
|
-
H as T,
|
|
133
|
-
D as a,
|
|
134
|
-
x as b
|
|
135
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import '../assets/TextField.css';const t = "_textField_51vk6_1", o = "_bottomError_51vk6_20", _ = "_textArea_51vk6_29", r = "_input_51vk6_30", s = "_wrap_51vk6_87", e = "_medium_51vk6_92", n = "_passwordButton_51vk6_159", a = {
|
|
2
|
-
textField: t,
|
|
3
|
-
bottomError: o,
|
|
4
|
-
textArea: _,
|
|
5
|
-
input: r,
|
|
6
|
-
wrap: s,
|
|
7
|
-
medium: e,
|
|
8
|
-
passwordButton: n
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
a as s
|
|
12
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import * as f from "react";
|
|
3
|
-
import { TimeField as T, TimeFieldStateContext as g } from "react-aria-components";
|
|
4
|
-
import { FocusScope as B, useFocusManager as C } from "@react-aria/focus";
|
|
5
|
-
import { c as d } from "./clsx-AexbMWKp.js";
|
|
6
|
-
import { D as b, a as L } from "./DateInput-NzWcnB4y.js";
|
|
7
|
-
import { F } from "./FieldError-krpMBtie.js";
|
|
8
|
-
import { a as S, L as v } from "./Label-Cqo7Xz2v.js";
|
|
9
|
-
import { T as z } from "./Text-D0r_W4lH.js";
|
|
10
|
-
import { C as N } from "./ClearButton-DkC8PIMi.js";
|
|
11
|
-
import { u as V } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
12
|
-
import '../assets/TimeField.css';const j = { clear: "Clear time" }, D = { clear: "Rensa tid" }, R = {
|
|
13
|
-
en: j,
|
|
14
|
-
sv: D
|
|
15
|
-
}, w = "_timeField_z8d4x_1", E = "_inputField_z8d4x_7", I = "_medium_z8d4x_38", M = "_clearButton_z8d4x_47", r = {
|
|
16
|
-
timeField: w,
|
|
17
|
-
inputField: E,
|
|
18
|
-
medium: I,
|
|
19
|
-
clearButton: M
|
|
20
|
-
}, P = ({ isClearable: l, size: t, isDisabled: o, isReadOnly: s }) => {
|
|
21
|
-
const m = V(R), i = f.useContext(g), a = C(), n = () => {
|
|
22
|
-
i?.setValue(null), a?.focusFirst();
|
|
23
|
-
};
|
|
24
|
-
return l && i?.value != null && !s ? /* @__PURE__ */ e(
|
|
25
|
-
N,
|
|
26
|
-
{
|
|
27
|
-
onPress: n,
|
|
28
|
-
size: t,
|
|
29
|
-
isDisabled: o,
|
|
30
|
-
"aria-label": m.format("clear"),
|
|
31
|
-
className: d(r.clearButton, {
|
|
32
|
-
[r.medium]: t === "medium"
|
|
33
|
-
})
|
|
34
|
-
}
|
|
35
|
-
) : null;
|
|
36
|
-
}, Q = f.forwardRef(
|
|
37
|
-
({
|
|
38
|
-
className: l,
|
|
39
|
-
description: t,
|
|
40
|
-
errorMessage: o,
|
|
41
|
-
errorPosition: s = "top",
|
|
42
|
-
label: m,
|
|
43
|
-
size: i = "large",
|
|
44
|
-
popover: a,
|
|
45
|
-
isClearable: n = !1,
|
|
46
|
-
isReadOnly: c,
|
|
47
|
-
isDisabled: u,
|
|
48
|
-
..._
|
|
49
|
-
}, x) => /* @__PURE__ */ p(
|
|
50
|
-
T,
|
|
51
|
-
{
|
|
52
|
-
..._,
|
|
53
|
-
ref: x,
|
|
54
|
-
isReadOnly: c,
|
|
55
|
-
isDisabled: u,
|
|
56
|
-
className: d(r.timeField, l),
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ e(S, { popover: a, children: m && /* @__PURE__ */ e(v, { children: m }) }),
|
|
59
|
-
t && /* @__PURE__ */ e(z, { slot: "description", children: t }),
|
|
60
|
-
s === "top" && /* @__PURE__ */ e(F, { children: o }),
|
|
61
|
-
/* @__PURE__ */ e(
|
|
62
|
-
"div",
|
|
63
|
-
{
|
|
64
|
-
className: d(r.inputField, {
|
|
65
|
-
[r.medium]: i === "medium"
|
|
66
|
-
}),
|
|
67
|
-
children: /* @__PURE__ */ p(B, { children: [
|
|
68
|
-
/* @__PURE__ */ e(b, { children: (h) => /* @__PURE__ */ e(L, { segment: h }) }),
|
|
69
|
-
/* @__PURE__ */ e(
|
|
70
|
-
P,
|
|
71
|
-
{
|
|
72
|
-
isClearable: n,
|
|
73
|
-
size: i,
|
|
74
|
-
isDisabled: u,
|
|
75
|
-
isReadOnly: c
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] })
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
s === "bottom" && /* @__PURE__ */ e(F, { children: o })
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
);
|
|
86
|
-
export {
|
|
87
|
-
Q as T
|
|
88
|
-
};
|
package/chunks/Toast-BFq_0Ue4.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as n, jsxs as c, Fragment as T } from "react/jsx-runtime";
|
|
3
|
-
import { B as f } from "./Button-GCROAMSl.js";
|
|
4
|
-
import { useToast as p, useToastRegion as g } from "react-aria";
|
|
5
|
-
import { ToastQueue as q, useToastQueue as w, useToastState as h } from "react-stately";
|
|
6
|
-
import _ from "react";
|
|
7
|
-
import { createPortal as R, flushSync as y } from "react-dom";
|
|
8
|
-
import { c as l } from "./clsx-AexbMWKp.js";
|
|
9
|
-
import { F as b } from "./FeedbackStatusIcon-X9Bjgeta.js";
|
|
10
|
-
import { X as P } from "./x-B9bYxG31.js";
|
|
11
|
-
import '../assets/Toast.css';const I = "_toastRegion_1vq8s_49", N = "_toast_1vq8s_49", E = "_success_1vq8s_98", O = "_info_1vq8s_106", x = "_important_1vq8s_114", C = "_warning_1vq8s_122", M = "_icon_1vq8s_130", S = "_toastContent_1vq8s_144", k = "_toastMessage_1vq8s_151", B = "_viewTransition_1vq8s_157", F = "_slideInTop_1vq8s_1", Q = "_slideInEnd_1vq8s_1", V = "_slideOutTop_1vq8s_1", j = "_slideOutEnd_1vq8s_1", e = {
|
|
12
|
-
toastRegion: I,
|
|
13
|
-
toast: N,
|
|
14
|
-
success: E,
|
|
15
|
-
info: O,
|
|
16
|
-
important: x,
|
|
17
|
-
warning: C,
|
|
18
|
-
icon: M,
|
|
19
|
-
toastContent: S,
|
|
20
|
-
toastMessage: k,
|
|
21
|
-
viewTransition: B,
|
|
22
|
-
slideInTop: F,
|
|
23
|
-
slideInEnd: Q,
|
|
24
|
-
slideOutTop: V,
|
|
25
|
-
slideOutEnd: j
|
|
26
|
-
}, u = {
|
|
27
|
-
wrapUpdate(t) {
|
|
28
|
-
"startViewTransition" in document ? document.startViewTransition(() => {
|
|
29
|
-
y(t);
|
|
30
|
-
}) : t();
|
|
31
|
-
},
|
|
32
|
-
maxVisibleToasts: 5
|
|
33
|
-
}, G = new q(u), Y = (t) => {
|
|
34
|
-
const o = w(G);
|
|
35
|
-
return o.visibleToasts.length > 0 ? R(
|
|
36
|
-
/* @__PURE__ */ n(
|
|
37
|
-
d,
|
|
38
|
-
{
|
|
39
|
-
...t,
|
|
40
|
-
state: o
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
document.body
|
|
44
|
-
) : null;
|
|
45
|
-
}, Z = ({ children: t, ...o }) => {
|
|
46
|
-
const s = h(u);
|
|
47
|
-
return /* @__PURE__ */ c(T, { children: [
|
|
48
|
-
typeof t == "function" ? t(s) : t,
|
|
49
|
-
s.visibleToasts.length > 0 && /* @__PURE__ */ n(
|
|
50
|
-
d,
|
|
51
|
-
{
|
|
52
|
-
...o,
|
|
53
|
-
state: s
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
] });
|
|
57
|
-
};
|
|
58
|
-
function d({
|
|
59
|
-
state: t,
|
|
60
|
-
className: o,
|
|
61
|
-
...s
|
|
62
|
-
}) {
|
|
63
|
-
const a = _.useRef(null), { regionProps: r } = g(s, t, a);
|
|
64
|
-
return /* @__PURE__ */ n(
|
|
65
|
-
"div",
|
|
66
|
-
{
|
|
67
|
-
...r,
|
|
68
|
-
ref: a,
|
|
69
|
-
className: l(e.toastRegion, o),
|
|
70
|
-
children: t.visibleToasts.map((i) => /* @__PURE__ */ n(
|
|
71
|
-
z,
|
|
72
|
-
{
|
|
73
|
-
toast: i,
|
|
74
|
-
state: t
|
|
75
|
-
},
|
|
76
|
-
i.key
|
|
77
|
-
))
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
function z({
|
|
82
|
-
state: t,
|
|
83
|
-
className: o,
|
|
84
|
-
...s
|
|
85
|
-
}) {
|
|
86
|
-
const a = _.useRef(null), { toastProps: r, contentProps: i, titleProps: m, closeButtonProps: v } = p(
|
|
87
|
-
s,
|
|
88
|
-
t,
|
|
89
|
-
a
|
|
90
|
-
);
|
|
91
|
-
return /* @__PURE__ */ c(
|
|
92
|
-
"div",
|
|
93
|
-
{
|
|
94
|
-
...r,
|
|
95
|
-
ref: a,
|
|
96
|
-
className: l(
|
|
97
|
-
e.toast,
|
|
98
|
-
e[s.toast.content.type],
|
|
99
|
-
o
|
|
100
|
-
),
|
|
101
|
-
style: {
|
|
102
|
-
viewTransitionName: s.toast.key,
|
|
103
|
-
viewTransitionClass: e.viewTransition
|
|
104
|
-
},
|
|
105
|
-
children: [
|
|
106
|
-
/* @__PURE__ */ c(
|
|
107
|
-
"div",
|
|
108
|
-
{
|
|
109
|
-
...i,
|
|
110
|
-
className: l(e.toastContent, i.className),
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ n(
|
|
113
|
-
b,
|
|
114
|
-
{
|
|
115
|
-
"aria-hidden": !0,
|
|
116
|
-
className: e.icon,
|
|
117
|
-
status: s.toast.content.type
|
|
118
|
-
}
|
|
119
|
-
),
|
|
120
|
-
/* @__PURE__ */ c("div", { children: [
|
|
121
|
-
/* @__PURE__ */ n(
|
|
122
|
-
"p",
|
|
123
|
-
{
|
|
124
|
-
className: e.toastMessage,
|
|
125
|
-
...m,
|
|
126
|
-
children: s.toast.content.message
|
|
127
|
-
}
|
|
128
|
-
),
|
|
129
|
-
s.toast.content.children
|
|
130
|
-
] })
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
),
|
|
134
|
-
/* @__PURE__ */ n(
|
|
135
|
-
f,
|
|
136
|
-
{
|
|
137
|
-
variant: "icon",
|
|
138
|
-
...v,
|
|
139
|
-
children: /* @__PURE__ */ n(
|
|
140
|
-
P,
|
|
141
|
-
{
|
|
142
|
-
size: 20,
|
|
143
|
-
"aria-hidden": !0
|
|
144
|
-
}
|
|
145
|
-
)
|
|
146
|
-
}
|
|
147
|
-
)
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
export {
|
|
153
|
-
Y as G,
|
|
154
|
-
z as T,
|
|
155
|
-
Z as a,
|
|
156
|
-
d as b,
|
|
157
|
-
G as t
|
|
158
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
-
import { ToggleButton as u, ToggleButtonGroup as r } from "react-aria-components";
|
|
3
|
-
import { B as t } from "./Button.module-byTN5rhp.js";
|
|
4
|
-
import { c as s } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import '../assets/ToggleButtonGroup.css';const e = "_group_q04hh_1", l = "_toggleButton_q04hh_10", n = {
|
|
6
|
-
group: e,
|
|
7
|
-
toggleButton: l
|
|
8
|
-
}, p = ({ ...o }) => /* @__PURE__ */ g(
|
|
9
|
-
u,
|
|
10
|
-
{
|
|
11
|
-
...o,
|
|
12
|
-
className: s(
|
|
13
|
-
t.button,
|
|
14
|
-
t.iconBtn,
|
|
15
|
-
n.toggleButton,
|
|
16
|
-
o.className
|
|
17
|
-
)
|
|
18
|
-
}
|
|
19
|
-
), T = ({ ...o }) => /* @__PURE__ */ g(
|
|
20
|
-
r,
|
|
21
|
-
{
|
|
22
|
-
...o,
|
|
23
|
-
className: s(n.group, o.className)
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
export {
|
|
27
|
-
p as T,
|
|
28
|
-
T as a
|
|
29
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as a, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import { c as p } from "./clsx-AexbMWKp.js";
|
|
3
|
-
import { Tooltip as n, OverlayArrow as c, TooltipTrigger as T } from "react-aria-components";
|
|
4
|
-
import '../assets/Tooltip.css';const g = "_tooltip_exq12_1", m = "_arrow_exq12_18", i = {
|
|
5
|
-
tooltip: g,
|
|
6
|
-
arrow: m
|
|
7
|
-
};
|
|
8
|
-
function h({ children: o, className: r, ...s }) {
|
|
9
|
-
return /* @__PURE__ */ t(
|
|
10
|
-
n,
|
|
11
|
-
{
|
|
12
|
-
className: p(i.tooltip, r),
|
|
13
|
-
...s,
|
|
14
|
-
children: (e) => /* @__PURE__ */ a(l, { children: [
|
|
15
|
-
/* @__PURE__ */ t(c, { className: i.arrow, children: /* @__PURE__ */ t(
|
|
16
|
-
"svg",
|
|
17
|
-
{
|
|
18
|
-
width: 8,
|
|
19
|
-
height: 8,
|
|
20
|
-
viewBox: "0 0 8 8",
|
|
21
|
-
children: /* @__PURE__ */ t("path", { d: "M0 0 L4 4 L8 0" })
|
|
22
|
-
}
|
|
23
|
-
) }),
|
|
24
|
-
typeof o == "function" ? o(e) : o
|
|
25
|
-
] })
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
function _({
|
|
30
|
-
delay: o = 0,
|
|
31
|
-
...r
|
|
32
|
-
}) {
|
|
33
|
-
return /* @__PURE__ */ t(
|
|
34
|
-
T,
|
|
35
|
-
{
|
|
36
|
-
delay: o,
|
|
37
|
-
...r
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
h as T,
|
|
43
|
-
_ as a
|
|
44
|
-
};
|
package/chunks/check-Bt2UikoU.js
DELETED
package/chunks/clsx-AexbMWKp.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
function u(r) {
|
|
2
|
-
var f, t, n = "";
|
|
3
|
-
if (typeof r == "string" || typeof r == "number") n += r;
|
|
4
|
-
else if (typeof r == "object") if (Array.isArray(r)) {
|
|
5
|
-
var o = r.length;
|
|
6
|
-
for (f = 0; f < o; f++) r[f] && (t = u(r[f])) && (n && (n += " "), n += t);
|
|
7
|
-
} else for (t in r) r[t] && (n && (n += " "), n += t);
|
|
8
|
-
return n;
|
|
9
|
-
}
|
|
10
|
-
function i() {
|
|
11
|
-
for (var r, f, t = 0, n = "", o = arguments.length; t < o; t++) (r = arguments[t]) && (f = u(r)) && (n && (n += " "), n += f);
|
|
12
|
-
return n;
|
|
13
|
-
}
|
|
14
|
-
function e(...r) {
|
|
15
|
-
return r.some((f) => typeof f == "function") ? (f) => i(
|
|
16
|
-
r.map(
|
|
17
|
-
(t) => typeof t == "function" ? t(f) : t
|
|
18
|
-
)
|
|
19
|
-
) : i(r);
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
i as a,
|
|
23
|
-
e as c
|
|
24
|
-
};
|