@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
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { n as e } from "./clsx-BtlV5Vo3.js";
|
|
3
|
+
import { t } from "./createLucideIcon-DhIhuN5D.js";
|
|
4
|
+
import { n, t as r } from "./calendar-C0rlcHfr.js";
|
|
5
|
+
import { t as i } from "./useLocalizedStringFormatter-bRLuRzVD.js";
|
|
6
|
+
import { n as a } from "./button-CFjf-bDe.js";
|
|
7
|
+
import { t as o } from "./text-mAeDlv5N.js";
|
|
8
|
+
import { t as s } from "./field-error-DYp2kgFr.js";
|
|
9
|
+
import { n as c, t as l } from "./label-uwnwLD3z.js";
|
|
10
|
+
import { t as u } from "./clear-button-Cb4MTvBR.js";
|
|
11
|
+
import { n as d, r as f, t as p } from "./date-field-Cy0HGw6v.js";
|
|
12
|
+
import * as m from "react";
|
|
13
|
+
import { DatePicker as h, DatePickerStateContext as g, DateRangePicker as _, DateRangePickerStateContext as v, Dialog as y, Group as b, Popover as x } from "react-aria-components";
|
|
14
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
15
|
+
import { FocusScope as w, useFocusManager as T } from "@react-aria/focus";
|
|
16
|
+
import '../assets/date-picker.css';var E = t("calendar-days", [
|
|
17
|
+
["path", {
|
|
18
|
+
d: "M8 2v4",
|
|
19
|
+
key: "1cmpym"
|
|
20
|
+
}],
|
|
21
|
+
["path", {
|
|
22
|
+
d: "M16 2v4",
|
|
23
|
+
key: "4m81vk"
|
|
24
|
+
}],
|
|
25
|
+
["rect", {
|
|
26
|
+
width: "18",
|
|
27
|
+
height: "18",
|
|
28
|
+
x: "3",
|
|
29
|
+
y: "4",
|
|
30
|
+
rx: "2",
|
|
31
|
+
key: "1hopcy"
|
|
32
|
+
}],
|
|
33
|
+
["path", {
|
|
34
|
+
d: "M3 10h18",
|
|
35
|
+
key: "8toen8"
|
|
36
|
+
}],
|
|
37
|
+
["path", {
|
|
38
|
+
d: "M8 14h.01",
|
|
39
|
+
key: "6423bh"
|
|
40
|
+
}],
|
|
41
|
+
["path", {
|
|
42
|
+
d: "M12 14h.01",
|
|
43
|
+
key: "1etili"
|
|
44
|
+
}],
|
|
45
|
+
["path", {
|
|
46
|
+
d: "M16 14h.01",
|
|
47
|
+
key: "1gbofw"
|
|
48
|
+
}],
|
|
49
|
+
["path", {
|
|
50
|
+
d: "M8 18h.01",
|
|
51
|
+
key: "lrp35t"
|
|
52
|
+
}],
|
|
53
|
+
["path", {
|
|
54
|
+
d: "M12 18h.01",
|
|
55
|
+
key: "mhygvu"
|
|
56
|
+
}],
|
|
57
|
+
["path", {
|
|
58
|
+
d: "M16 18h.01",
|
|
59
|
+
key: "kzsmim"
|
|
60
|
+
}]
|
|
61
|
+
]), D = {
|
|
62
|
+
en: {
|
|
63
|
+
clear: "Clear date",
|
|
64
|
+
"open-calendar": "Open calendar"
|
|
65
|
+
},
|
|
66
|
+
sv: {
|
|
67
|
+
clear: "Rensa datum",
|
|
68
|
+
"open-calendar": "Öppna kalender"
|
|
69
|
+
}
|
|
70
|
+
}, O = {
|
|
71
|
+
datePicker: "_datePicker_13jtn_1",
|
|
72
|
+
inputField: "_inputField_13jtn_8",
|
|
73
|
+
medium: "_medium_13jtn_24",
|
|
74
|
+
readOnly: "_readOnly_13jtn_47",
|
|
75
|
+
buttonGroup: "_buttonGroup_13jtn_52",
|
|
76
|
+
iconButton: "_iconButton_13jtn_58",
|
|
77
|
+
popover: "_popover_13jtn_81 _dropdownAnimation_1ljkv_4",
|
|
78
|
+
dialog: "_dialog_13jtn_85"
|
|
79
|
+
}, k = (e) => !!e && !!e.value && Object.prototype.hasOwnProperty.call(e.value, "start"), A = ({ isClearable: t, isDisabled: n, isReadOnly: r, size: a }) => {
|
|
80
|
+
let o = m.useContext(g), s = m.useContext(v), c = i(D), l = T(), d = s ?? o, f = k(d) ? !!d.value.start && d.value.end : !!d?.value;
|
|
81
|
+
return t && f && !r ? /* @__PURE__ */ S(u, {
|
|
82
|
+
onPress: () => {
|
|
83
|
+
d?.setValue(null), l?.focusFirst();
|
|
84
|
+
},
|
|
85
|
+
size: a,
|
|
86
|
+
isDisabled: n,
|
|
87
|
+
"aria-label": c.format("clear"),
|
|
88
|
+
className: e(O.iconButton, { [O.medium]: a === "medium" })
|
|
89
|
+
}) : null;
|
|
90
|
+
}, j = ({ children: t, isDisabled: n, isInvalid: r, isReadOnly: o, size: s = "large", isClearable: c = !1 }) => {
|
|
91
|
+
let l = i(D);
|
|
92
|
+
return /* @__PURE__ */ S(b, {
|
|
93
|
+
className: e(O.inputField, {
|
|
94
|
+
[O.medium]: s === "medium",
|
|
95
|
+
[O.readOnly]: o
|
|
96
|
+
}),
|
|
97
|
+
children: /* @__PURE__ */ C(w, { children: [t, /* @__PURE__ */ C("div", {
|
|
98
|
+
className: O.buttonGroup,
|
|
99
|
+
children: [/* @__PURE__ */ S(A, {
|
|
100
|
+
isClearable: c,
|
|
101
|
+
isDisabled: n,
|
|
102
|
+
isReadOnly: o,
|
|
103
|
+
size: s
|
|
104
|
+
}), /* @__PURE__ */ S(a, {
|
|
105
|
+
variant: "icon",
|
|
106
|
+
"aria-label": l.format("open-calendar"),
|
|
107
|
+
className: e(O.iconButton, {
|
|
108
|
+
[O.medium]: s === "medium",
|
|
109
|
+
[O.readOnly]: o
|
|
110
|
+
}),
|
|
111
|
+
"data-invalid": r || void 0,
|
|
112
|
+
size: s,
|
|
113
|
+
children: /* @__PURE__ */ S(E, {
|
|
114
|
+
"aria-hidden": !0,
|
|
115
|
+
size: 20
|
|
116
|
+
})
|
|
117
|
+
})]
|
|
118
|
+
})] })
|
|
119
|
+
});
|
|
120
|
+
}, M = ({ children: e }) => /* @__PURE__ */ S(x, {
|
|
121
|
+
className: O.popover,
|
|
122
|
+
children: /* @__PURE__ */ S(y, {
|
|
123
|
+
className: O.dialog,
|
|
124
|
+
children: e
|
|
125
|
+
})
|
|
126
|
+
}), N = m.forwardRef(({ className: t, description: r, errorMessage: i, errorPosition: a = "top", label: u, popover: p, isClearable: m = !1, isReadOnly: g, isDisabled: _, size: v, ...y }, b) => /* @__PURE__ */ C(h, {
|
|
127
|
+
className: e(O.datePicker, t),
|
|
128
|
+
isReadOnly: g,
|
|
129
|
+
isDisabled: _,
|
|
130
|
+
ref: b,
|
|
131
|
+
...y,
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ S(c, {
|
|
134
|
+
popover: p,
|
|
135
|
+
children: u && /* @__PURE__ */ S(l, { children: u })
|
|
136
|
+
}),
|
|
137
|
+
r && /* @__PURE__ */ S(o, {
|
|
138
|
+
slot: "description",
|
|
139
|
+
children: r
|
|
140
|
+
}),
|
|
141
|
+
a === "top" && /* @__PURE__ */ S(s, { children: i }),
|
|
142
|
+
/* @__PURE__ */ S(j, {
|
|
143
|
+
isClearable: m,
|
|
144
|
+
isReadOnly: g,
|
|
145
|
+
isDisabled: _,
|
|
146
|
+
size: v,
|
|
147
|
+
...y,
|
|
148
|
+
children: /* @__PURE__ */ S(d, { children: (e) => /* @__PURE__ */ S(f, { segment: e }) })
|
|
149
|
+
}),
|
|
150
|
+
a === "bottom" && /* @__PURE__ */ S(s, { children: i }),
|
|
151
|
+
/* @__PURE__ */ S(M, { children: /* @__PURE__ */ S(n, {}) })
|
|
152
|
+
]
|
|
153
|
+
})), P = ({ className: t, description: n, errorMessage: i, errorPosition: a = "top", label: u, popover: m, isClearable: h = !1, isReadOnly: g, isDisabled: v, size: y, ...b }) => /* @__PURE__ */ C(_, {
|
|
154
|
+
className: e(O.datePicker, t),
|
|
155
|
+
isReadOnly: g,
|
|
156
|
+
isDisabled: v,
|
|
157
|
+
...b,
|
|
158
|
+
children: [
|
|
159
|
+
/* @__PURE__ */ S(c, {
|
|
160
|
+
popover: m,
|
|
161
|
+
children: u && /* @__PURE__ */ S(l, { children: u })
|
|
162
|
+
}),
|
|
163
|
+
n && /* @__PURE__ */ S(o, {
|
|
164
|
+
slot: "description",
|
|
165
|
+
children: n
|
|
166
|
+
}),
|
|
167
|
+
a === "top" && /* @__PURE__ */ S(s, { children: i }),
|
|
168
|
+
/* @__PURE__ */ C(j, {
|
|
169
|
+
isClearable: h,
|
|
170
|
+
isReadOnly: g,
|
|
171
|
+
isDisabled: v,
|
|
172
|
+
size: y,
|
|
173
|
+
...b,
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ S(d, {
|
|
176
|
+
slot: "start",
|
|
177
|
+
children: (e) => /* @__PURE__ */ S(f, { segment: e })
|
|
178
|
+
}),
|
|
179
|
+
/* @__PURE__ */ S(p, {}),
|
|
180
|
+
/* @__PURE__ */ S(d, {
|
|
181
|
+
slot: "end",
|
|
182
|
+
children: (e) => /* @__PURE__ */ S(f, { segment: e })
|
|
183
|
+
})
|
|
184
|
+
]
|
|
185
|
+
}),
|
|
186
|
+
a === "bottom" && /* @__PURE__ */ S(s, { children: i }),
|
|
187
|
+
/* @__PURE__ */ S(M, { children: /* @__PURE__ */ S(r, {}) })
|
|
188
|
+
]
|
|
189
|
+
});
|
|
190
|
+
//#endregion
|
|
191
|
+
export { N as n, P as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
2
|
+
import { t } from "./text-mAeDlv5N.js";
|
|
3
|
+
import { forwardRef as n, useContext as r } from "react";
|
|
4
|
+
import { FieldError as i, FieldErrorContext as a } from "react-aria-components";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
import '../assets/field-error.css';var s = { fieldError: "_fieldError_u3cks_1" }, c = n((n, c) => {
|
|
7
|
+
let { children: l, isInvalid: u } = n, d = e(s.fieldError, n.className), f = r(a);
|
|
8
|
+
return !f && u && typeof l != "function" ? /* @__PURE__ */ o(t, {
|
|
9
|
+
className: d,
|
|
10
|
+
children: l
|
|
11
|
+
}) : f?.isInvalid ? /* @__PURE__ */ o(i, {
|
|
12
|
+
...n,
|
|
13
|
+
ref: c,
|
|
14
|
+
className: d
|
|
15
|
+
}) : null;
|
|
16
|
+
});
|
|
17
|
+
c.displayName = "FieldError";
|
|
18
|
+
//#endregion
|
|
19
|
+
export { c as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
3
|
+
import { t } from "./createLucideIcon-DhIhuN5D.js";
|
|
4
|
+
import { t as n } from "./useLocalizedStringFormatter-bRLuRzVD.js";
|
|
5
|
+
import { n as r } from "./button-CFjf-bDe.js";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
import '../assets/file-list.css';var o = t("trash-2", [
|
|
8
|
+
["path", {
|
|
9
|
+
d: "M10 11v6",
|
|
10
|
+
key: "nco0om"
|
|
11
|
+
}],
|
|
12
|
+
["path", {
|
|
13
|
+
d: "M14 11v6",
|
|
14
|
+
key: "outv1u"
|
|
15
|
+
}],
|
|
16
|
+
["path", {
|
|
17
|
+
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
|
|
18
|
+
key: "miytrc"
|
|
19
|
+
}],
|
|
20
|
+
["path", {
|
|
21
|
+
d: "M3 6h18",
|
|
22
|
+
key: "d0wm0j"
|
|
23
|
+
}],
|
|
24
|
+
["path", {
|
|
25
|
+
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
26
|
+
key: "e791ji"
|
|
27
|
+
}]
|
|
28
|
+
]), s = {
|
|
29
|
+
fileList: "_fileList_1jd3b_1",
|
|
30
|
+
fileListItem: "_fileListItem_1jd3b_10",
|
|
31
|
+
fileInfo: "_fileInfo_1jd3b_20",
|
|
32
|
+
fileName: "_fileName_1jd3b_28",
|
|
33
|
+
fileSize: "_fileSize_1jd3b_37",
|
|
34
|
+
deleteButton: "_deleteButton_1jd3b_43"
|
|
35
|
+
}, c = ({ className: t, children: n, ...r }) => /* @__PURE__ */ i("ul", {
|
|
36
|
+
...r,
|
|
37
|
+
className: e(s.fileList, t),
|
|
38
|
+
children: n
|
|
39
|
+
}), l = {
|
|
40
|
+
en: { removeFile: "Remove" },
|
|
41
|
+
sv: { removeFile: "Ta bort" }
|
|
42
|
+
}, u = ({ fileName: t, fileSize: c, onDelete: u, className: d }) => {
|
|
43
|
+
let f = n(l);
|
|
44
|
+
return /* @__PURE__ */ a("li", {
|
|
45
|
+
className: e(s.fileListItem, d),
|
|
46
|
+
children: [/* @__PURE__ */ a("span", {
|
|
47
|
+
className: s.fileInfo,
|
|
48
|
+
children: [/* @__PURE__ */ i("span", {
|
|
49
|
+
className: s.fileName,
|
|
50
|
+
children: t
|
|
51
|
+
}), c && /* @__PURE__ */ i("span", {
|
|
52
|
+
className: s.fileSize,
|
|
53
|
+
children: c
|
|
54
|
+
})]
|
|
55
|
+
}), u && /* @__PURE__ */ i(r, {
|
|
56
|
+
variant: "icon",
|
|
57
|
+
onPress: u,
|
|
58
|
+
"aria-label": `${f.format("removeFile")} ${t}`,
|
|
59
|
+
className: s.deleteButton,
|
|
60
|
+
children: /* @__PURE__ */ i(o, {
|
|
61
|
+
size: 20,
|
|
62
|
+
"aria-hidden": !0
|
|
63
|
+
})
|
|
64
|
+
})]
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
export { c as n, u as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { DropZone as t, FileTrigger as n } from "react-aria-components";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import '../assets/file-upload.css';var i = { dropzone: "_dropzone_pm0xi_1" }, a = ({ className: n, ...a }) => /* @__PURE__ */ r(t, {
|
|
7
|
+
...a,
|
|
8
|
+
className: e(i.dropzone, n)
|
|
9
|
+
}), o = (e) => /* @__PURE__ */ r(n, { ...e });
|
|
10
|
+
//#endregion
|
|
11
|
+
export { o as n, a as t };
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import '../assets/grid.css';var n = {
|
|
5
|
+
container: "_container_1gh8t_1",
|
|
6
|
+
removeMargins: "_removeMargins_1gh8t_13",
|
|
7
|
+
contained: "_contained_1gh8t_17",
|
|
8
|
+
flex: "_flex_1gh8t_23",
|
|
9
|
+
fluid: "_fluid_1gh8t_52",
|
|
10
|
+
col: "_col_1gh8t_58",
|
|
11
|
+
"col-1": "_col-1_1gh8t_62",
|
|
12
|
+
"col-2": "_col-2_1gh8t_67",
|
|
13
|
+
"col-3": "_col-3_1gh8t_74",
|
|
14
|
+
"col-quarter": "_col-quarter_1gh8t_75",
|
|
15
|
+
"col-4": "_col-4_1gh8t_82",
|
|
16
|
+
"col-third": "_col-third_1gh8t_83",
|
|
17
|
+
"col-5": "_col-5_1gh8t_90",
|
|
18
|
+
"col-6": "_col-6_1gh8t_97",
|
|
19
|
+
"col-half": "_col-half_1gh8t_98",
|
|
20
|
+
"col-7": "_col-7_1gh8t_105",
|
|
21
|
+
"col-8": "_col-8_1gh8t_112",
|
|
22
|
+
"col-9": "_col-9_1gh8t_119",
|
|
23
|
+
"col-10": "_col-10_1gh8t_126",
|
|
24
|
+
"col-11": "_col-11_1gh8t_133",
|
|
25
|
+
"col-12": "_col-12_1gh8t_140",
|
|
26
|
+
"col-full": "_col-full_1gh8t_141",
|
|
27
|
+
"col-auto": "_col-auto_1gh8t_148",
|
|
28
|
+
"col-grow": "_col-grow_1gh8t_153",
|
|
29
|
+
"col-xs-1": "_col-xs-1_1gh8t_158",
|
|
30
|
+
"col-xs-2": "_col-xs-2_1gh8t_165",
|
|
31
|
+
"col-xs-3": "_col-xs-3_1gh8t_172",
|
|
32
|
+
"col-xs-quarter": "_col-xs-quarter_1gh8t_173",
|
|
33
|
+
"col-xs-4": "_col-xs-4_1gh8t_180",
|
|
34
|
+
"col-xs-third": "_col-xs-third_1gh8t_181",
|
|
35
|
+
"col-xs-5": "_col-xs-5_1gh8t_188",
|
|
36
|
+
"col-xs-6": "_col-xs-6_1gh8t_195",
|
|
37
|
+
"col-xs-half": "_col-xs-half_1gh8t_196",
|
|
38
|
+
"col-xs-7": "_col-xs-7_1gh8t_203",
|
|
39
|
+
"col-xs-8": "_col-xs-8_1gh8t_210",
|
|
40
|
+
"col-xs-9": "_col-xs-9_1gh8t_217",
|
|
41
|
+
"col-xs-10": "_col-xs-10_1gh8t_224",
|
|
42
|
+
"col-xs-11": "_col-xs-11_1gh8t_231",
|
|
43
|
+
"col-xs-12": "_col-xs-12_1gh8t_238",
|
|
44
|
+
"col-xs-full": "_col-xs-full_1gh8t_239",
|
|
45
|
+
"col-xs-auto": "_col-xs-auto_1gh8t_246",
|
|
46
|
+
"col-xs-grow": "_col-xs-grow_1gh8t_251",
|
|
47
|
+
"col-sm-1": "_col-sm-1_1gh8t_257",
|
|
48
|
+
"col-sm-2": "_col-sm-2_1gh8t_264",
|
|
49
|
+
"col-sm-3": "_col-sm-3_1gh8t_271",
|
|
50
|
+
"col-sm-quarter": "_col-sm-quarter_1gh8t_272",
|
|
51
|
+
"col-sm-4": "_col-sm-4_1gh8t_279",
|
|
52
|
+
"col-sm-third": "_col-sm-third_1gh8t_280",
|
|
53
|
+
"col-sm-5": "_col-sm-5_1gh8t_287",
|
|
54
|
+
"col-sm-6": "_col-sm-6_1gh8t_294",
|
|
55
|
+
"col-sm-half": "_col-sm-half_1gh8t_295",
|
|
56
|
+
"col-sm-7": "_col-sm-7_1gh8t_302",
|
|
57
|
+
"col-sm-8": "_col-sm-8_1gh8t_309",
|
|
58
|
+
"col-sm-9": "_col-sm-9_1gh8t_316",
|
|
59
|
+
"col-sm-10": "_col-sm-10_1gh8t_323",
|
|
60
|
+
"col-sm-11": "_col-sm-11_1gh8t_330",
|
|
61
|
+
"col-sm-12": "_col-sm-12_1gh8t_337",
|
|
62
|
+
"col-sm-full": "_col-sm-full_1gh8t_338",
|
|
63
|
+
"col-sm-auto": "_col-sm-auto_1gh8t_345",
|
|
64
|
+
"col-sm-grow": "_col-sm-grow_1gh8t_350",
|
|
65
|
+
"col-md-1": "_col-md-1_1gh8t_356",
|
|
66
|
+
"col-md-2": "_col-md-2_1gh8t_363",
|
|
67
|
+
"col-md-3": "_col-md-3_1gh8t_370",
|
|
68
|
+
"col-md-quarter": "_col-md-quarter_1gh8t_371",
|
|
69
|
+
"col-md-4": "_col-md-4_1gh8t_378",
|
|
70
|
+
"col-md-third": "_col-md-third_1gh8t_379",
|
|
71
|
+
"col-md-5": "_col-md-5_1gh8t_386",
|
|
72
|
+
"col-md-6": "_col-md-6_1gh8t_393",
|
|
73
|
+
"col-md-half": "_col-md-half_1gh8t_394",
|
|
74
|
+
"col-md-7": "_col-md-7_1gh8t_401",
|
|
75
|
+
"col-md-8": "_col-md-8_1gh8t_408",
|
|
76
|
+
"col-md-9": "_col-md-9_1gh8t_415",
|
|
77
|
+
"col-md-10": "_col-md-10_1gh8t_422",
|
|
78
|
+
"col-md-11": "_col-md-11_1gh8t_429",
|
|
79
|
+
"col-md-12": "_col-md-12_1gh8t_436",
|
|
80
|
+
"col-md-full": "_col-md-full_1gh8t_437",
|
|
81
|
+
"col-md-auto": "_col-md-auto_1gh8t_444",
|
|
82
|
+
"col-md-grow": "_col-md-grow_1gh8t_449",
|
|
83
|
+
"col-lg-1": "_col-lg-1_1gh8t_455",
|
|
84
|
+
"col-lg-2": "_col-lg-2_1gh8t_462",
|
|
85
|
+
"col-lg-3": "_col-lg-3_1gh8t_469",
|
|
86
|
+
"col-lg-quarter": "_col-lg-quarter_1gh8t_470",
|
|
87
|
+
"col-lg-4": "_col-lg-4_1gh8t_477",
|
|
88
|
+
"col-lg-third": "_col-lg-third_1gh8t_478",
|
|
89
|
+
"col-lg-5": "_col-lg-5_1gh8t_485",
|
|
90
|
+
"col-lg-6": "_col-lg-6_1gh8t_492",
|
|
91
|
+
"col-lg-half": "_col-lg-half_1gh8t_493",
|
|
92
|
+
"col-lg-7": "_col-lg-7_1gh8t_500",
|
|
93
|
+
"col-lg-8": "_col-lg-8_1gh8t_507",
|
|
94
|
+
"col-lg-9": "_col-lg-9_1gh8t_514",
|
|
95
|
+
"col-lg-10": "_col-lg-10_1gh8t_521",
|
|
96
|
+
"col-lg-11": "_col-lg-11_1gh8t_528",
|
|
97
|
+
"col-lg-12": "_col-lg-12_1gh8t_535",
|
|
98
|
+
"col-lg-full": "_col-lg-full_1gh8t_536",
|
|
99
|
+
"col-lg-auto": "_col-lg-auto_1gh8t_543",
|
|
100
|
+
"col-lg-grow": "_col-lg-grow_1gh8t_548",
|
|
101
|
+
"col-xl-1": "_col-xl-1_1gh8t_554",
|
|
102
|
+
"col-xl-2": "_col-xl-2_1gh8t_561",
|
|
103
|
+
"col-xl-3": "_col-xl-3_1gh8t_568",
|
|
104
|
+
"col-xl-quarter": "_col-xl-quarter_1gh8t_569",
|
|
105
|
+
"col-xl-4": "_col-xl-4_1gh8t_576",
|
|
106
|
+
"col-xl-third": "_col-xl-third_1gh8t_577",
|
|
107
|
+
"col-xl-5": "_col-xl-5_1gh8t_584",
|
|
108
|
+
"col-xl-6": "_col-xl-6_1gh8t_591",
|
|
109
|
+
"col-xl-half": "_col-xl-half_1gh8t_592",
|
|
110
|
+
"col-xl-7": "_col-xl-7_1gh8t_599",
|
|
111
|
+
"col-xl-8": "_col-xl-8_1gh8t_606",
|
|
112
|
+
"col-xl-9": "_col-xl-9_1gh8t_613",
|
|
113
|
+
"col-xl-10": "_col-xl-10_1gh8t_620",
|
|
114
|
+
"col-xl-11": "_col-xl-11_1gh8t_627",
|
|
115
|
+
"col-xl-12": "_col-xl-12_1gh8t_634",
|
|
116
|
+
"col-xl-full": "_col-xl-full_1gh8t_635",
|
|
117
|
+
"col-xl-auto": "_col-xl-auto_1gh8t_642",
|
|
118
|
+
"col-xl-grow": "_col-xl-grow_1gh8t_647",
|
|
119
|
+
"offset-1": "_offset-1_1gh8t_652",
|
|
120
|
+
"offset-2": "_offset-2_1gh8t_656",
|
|
121
|
+
"offset-3": "_offset-3_1gh8t_662",
|
|
122
|
+
"offset-quarter": "_offset-quarter_1gh8t_663",
|
|
123
|
+
"offset-4": "_offset-4_1gh8t_669",
|
|
124
|
+
"offset-third": "_offset-third_1gh8t_670",
|
|
125
|
+
"offset-5": "_offset-5_1gh8t_676",
|
|
126
|
+
"offset-6": "_offset-6_1gh8t_682",
|
|
127
|
+
"offset-half": "_offset-half_1gh8t_683",
|
|
128
|
+
"offset-7": "_offset-7_1gh8t_689",
|
|
129
|
+
"offset-8": "_offset-8_1gh8t_695",
|
|
130
|
+
"offset-9": "_offset-9_1gh8t_701",
|
|
131
|
+
"offset-10": "_offset-10_1gh8t_707",
|
|
132
|
+
"offset-11": "_offset-11_1gh8t_713",
|
|
133
|
+
"offset-auto": "_offset-auto_1gh8t_719",
|
|
134
|
+
"offset-xs-1": "_offset-xs-1_1gh8t_724",
|
|
135
|
+
"offset-xs-2": "_offset-xs-2_1gh8t_730",
|
|
136
|
+
"offset-xs-3": "_offset-xs-3_1gh8t_736",
|
|
137
|
+
"offset-xs-quarter": "_offset-xs-quarter_1gh8t_737",
|
|
138
|
+
"offset-xs-4": "_offset-xs-4_1gh8t_743",
|
|
139
|
+
"offset-xs-third": "_offset-xs-third_1gh8t_744",
|
|
140
|
+
"offset-xs-5": "_offset-xs-5_1gh8t_750",
|
|
141
|
+
"offset-xs-6": "_offset-xs-6_1gh8t_756",
|
|
142
|
+
"offset-xs-half": "_offset-xs-half_1gh8t_757",
|
|
143
|
+
"offset-xs-7": "_offset-xs-7_1gh8t_763",
|
|
144
|
+
"offset-xs-8": "_offset-xs-8_1gh8t_769",
|
|
145
|
+
"offset-xs-9": "_offset-xs-9_1gh8t_775",
|
|
146
|
+
"offset-xs-10": "_offset-xs-10_1gh8t_781",
|
|
147
|
+
"offset-xs-11": "_offset-xs-11_1gh8t_787",
|
|
148
|
+
"offset-xs-auto": "_offset-xs-auto_1gh8t_793",
|
|
149
|
+
"offset-sm-1": "_offset-sm-1_1gh8t_799",
|
|
150
|
+
"offset-sm-2": "_offset-sm-2_1gh8t_805",
|
|
151
|
+
"offset-sm-3": "_offset-sm-3_1gh8t_811",
|
|
152
|
+
"offset-sm-quarter": "_offset-sm-quarter_1gh8t_812",
|
|
153
|
+
"offset-sm-4": "_offset-sm-4_1gh8t_818",
|
|
154
|
+
"offset-sm-third": "_offset-sm-third_1gh8t_819",
|
|
155
|
+
"offset-sm-5": "_offset-sm-5_1gh8t_825",
|
|
156
|
+
"offset-sm-6": "_offset-sm-6_1gh8t_831",
|
|
157
|
+
"offset-sm-half": "_offset-sm-half_1gh8t_832",
|
|
158
|
+
"offset-sm-7": "_offset-sm-7_1gh8t_838",
|
|
159
|
+
"offset-sm-8": "_offset-sm-8_1gh8t_844",
|
|
160
|
+
"offset-sm-9": "_offset-sm-9_1gh8t_850",
|
|
161
|
+
"offset-sm-10": "_offset-sm-10_1gh8t_856",
|
|
162
|
+
"offset-sm-11": "_offset-sm-11_1gh8t_862",
|
|
163
|
+
"offset-sm-auto": "_offset-sm-auto_1gh8t_868",
|
|
164
|
+
"offset-md-1": "_offset-md-1_1gh8t_874",
|
|
165
|
+
"offset-md-2": "_offset-md-2_1gh8t_880",
|
|
166
|
+
"offset-md-3": "_offset-md-3_1gh8t_886",
|
|
167
|
+
"offset-md-quarter": "_offset-md-quarter_1gh8t_887",
|
|
168
|
+
"offset-md-4": "_offset-md-4_1gh8t_893",
|
|
169
|
+
"offset-md-third": "_offset-md-third_1gh8t_894",
|
|
170
|
+
"offset-md-5": "_offset-md-5_1gh8t_900",
|
|
171
|
+
"offset-md-6": "_offset-md-6_1gh8t_906",
|
|
172
|
+
"offset-md-half": "_offset-md-half_1gh8t_907",
|
|
173
|
+
"offset-md-7": "_offset-md-7_1gh8t_913",
|
|
174
|
+
"offset-md-8": "_offset-md-8_1gh8t_919",
|
|
175
|
+
"offset-md-9": "_offset-md-9_1gh8t_925",
|
|
176
|
+
"offset-md-10": "_offset-md-10_1gh8t_931",
|
|
177
|
+
"offset-md-11": "_offset-md-11_1gh8t_937",
|
|
178
|
+
"offset-md-auto": "_offset-md-auto_1gh8t_943",
|
|
179
|
+
"offset-lg-1": "_offset-lg-1_1gh8t_949",
|
|
180
|
+
"offset-lg-2": "_offset-lg-2_1gh8t_955",
|
|
181
|
+
"offset-lg-3": "_offset-lg-3_1gh8t_961",
|
|
182
|
+
"offset-lg-quarter": "_offset-lg-quarter_1gh8t_962",
|
|
183
|
+
"offset-lg-4": "_offset-lg-4_1gh8t_968",
|
|
184
|
+
"offset-lg-third": "_offset-lg-third_1gh8t_969",
|
|
185
|
+
"offset-lg-5": "_offset-lg-5_1gh8t_975",
|
|
186
|
+
"offset-lg-6": "_offset-lg-6_1gh8t_981",
|
|
187
|
+
"offset-lg-half": "_offset-lg-half_1gh8t_982",
|
|
188
|
+
"offset-lg-7": "_offset-lg-7_1gh8t_988",
|
|
189
|
+
"offset-lg-8": "_offset-lg-8_1gh8t_994",
|
|
190
|
+
"offset-lg-9": "_offset-lg-9_1gh8t_1000",
|
|
191
|
+
"offset-lg-10": "_offset-lg-10_1gh8t_1006",
|
|
192
|
+
"offset-lg-11": "_offset-lg-11_1gh8t_1012",
|
|
193
|
+
"offset-lg-auto": "_offset-lg-auto_1gh8t_1018",
|
|
194
|
+
"offset-xl-1": "_offset-xl-1_1gh8t_1024",
|
|
195
|
+
"offset-xl-2": "_offset-xl-2_1gh8t_1030",
|
|
196
|
+
"offset-xl-3": "_offset-xl-3_1gh8t_1036",
|
|
197
|
+
"offset-xl-quarter": "_offset-xl-quarter_1gh8t_1037",
|
|
198
|
+
"offset-xl-4": "_offset-xl-4_1gh8t_1043",
|
|
199
|
+
"offset-xl-third": "_offset-xl-third_1gh8t_1044",
|
|
200
|
+
"offset-xl-5": "_offset-xl-5_1gh8t_1050",
|
|
201
|
+
"offset-xl-6": "_offset-xl-6_1gh8t_1056",
|
|
202
|
+
"offset-xl-half": "_offset-xl-half_1gh8t_1057",
|
|
203
|
+
"offset-xl-7": "_offset-xl-7_1gh8t_1063",
|
|
204
|
+
"offset-xl-8": "_offset-xl-8_1gh8t_1069",
|
|
205
|
+
"offset-xl-9": "_offset-xl-9_1gh8t_1075",
|
|
206
|
+
"offset-xl-10": "_offset-xl-10_1gh8t_1081",
|
|
207
|
+
"offset-xl-11": "_offset-xl-11_1gh8t_1087",
|
|
208
|
+
"offset-xl-auto": "_offset-xl-auto_1gh8t_1093"
|
|
209
|
+
}, r = ({ children: r, isContained: i = !1, removeMargins: a = !1, ...o }) => /* @__PURE__ */ t("div", {
|
|
210
|
+
...o,
|
|
211
|
+
className: e(n.container, i && n.contained, a && n.removeMargins, o.className),
|
|
212
|
+
children: /* @__PURE__ */ t("div", {
|
|
213
|
+
className: n.flex,
|
|
214
|
+
children: r
|
|
215
|
+
})
|
|
216
|
+
}), i = ({ children: r, size: i, offset: s, ...c }) => {
|
|
217
|
+
let l = s ? `offset-${s}` : "", u = a(i), d = o(s);
|
|
218
|
+
return /* @__PURE__ */ t("div", {
|
|
219
|
+
...c,
|
|
220
|
+
className: e(n.col, n[l], u.map((e) => n[e]), d.map((e) => n[e]), c.className),
|
|
221
|
+
children: r
|
|
222
|
+
});
|
|
223
|
+
}, a = (e) => e ? typeof e == "object" ? Object.entries(e).map(([e, t]) => e === "xs" ? `col-${t}` : `col-${e}-${t}`) : [`col-${e}`] : [], o = (e) => e ? typeof e == "object" ? Object.entries(e).map(([e, t]) => e === "xs" ? `offset-${t}` : `offset-${e}-${t}`) : [`offset-${e}`] : [];
|
|
224
|
+
//#endregion
|
|
225
|
+
export { r as n, i as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Heading as t } from "react-aria-components";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import '../assets/heading.css';var r = {
|
|
6
|
+
h1: "_h1_13alg_1",
|
|
7
|
+
h2: "_h2_13alg_2",
|
|
8
|
+
h3: "_h3_13alg_3",
|
|
9
|
+
h4: "_h4_13alg_4",
|
|
10
|
+
h5: "_h5_13alg_5",
|
|
11
|
+
h6: "_h6_13alg_6"
|
|
12
|
+
}, i = ({ children: i, className: a, enableMargins: o = !1, isExpressive: s = !1, level: c = 3, elementType: l, ...u }) => /* @__PURE__ */ n(t, {
|
|
13
|
+
level: l && parseInt(l.split("h")[1]) || c,
|
|
14
|
+
className: e([
|
|
15
|
+
r.h1,
|
|
16
|
+
r.h2,
|
|
17
|
+
r.h3,
|
|
18
|
+
r.h4,
|
|
19
|
+
r.h5,
|
|
20
|
+
r.h6
|
|
21
|
+
][c - 1], a),
|
|
22
|
+
...s && { "data-expressive": !0 },
|
|
23
|
+
...o && { "data-margin": !0 },
|
|
24
|
+
...u,
|
|
25
|
+
children: i
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { i as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as e } from "./createLucideIcon-DhIhuN5D.js";
|
|
2
|
+
var t = e("info", [
|
|
3
|
+
["circle", {
|
|
4
|
+
cx: "12",
|
|
5
|
+
cy: "12",
|
|
6
|
+
r: "10",
|
|
7
|
+
key: "1mglay"
|
|
8
|
+
}],
|
|
9
|
+
["path", {
|
|
10
|
+
d: "M12 16v-4",
|
|
11
|
+
key: "1dtifu"
|
|
12
|
+
}],
|
|
13
|
+
["path", {
|
|
14
|
+
d: "M12 8h.01",
|
|
15
|
+
key: "e9boi3"
|
|
16
|
+
}]
|
|
17
|
+
]);
|
|
18
|
+
//#endregion
|
|
19
|
+
export { t };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
2
|
+
import { t } from "./FeedbackStatusIcon-A1trvSCf.js";
|
|
3
|
+
import { t as n } from "./x-Bs_QW3q8.js";
|
|
4
|
+
import { t as r } from "./useLocalizedStringFormatter-bRLuRzVD.js";
|
|
5
|
+
import { n as i } from "./button-CFjf-bDe.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
+
import { useControlledState as s } from "@react-stately/utils";
|
|
9
|
+
import '../assets/info-banner.css';var c = {
|
|
10
|
+
infoBanner: "_infoBanner_7d8d1_1",
|
|
11
|
+
success: "_success_7d8d1_11",
|
|
12
|
+
info: "_info_7d8d1_1",
|
|
13
|
+
important: "_important_7d8d1_21",
|
|
14
|
+
warning: "_warning_7d8d1_26",
|
|
15
|
+
content: "_content_7d8d1_40",
|
|
16
|
+
heading: "_heading_7d8d1_46",
|
|
17
|
+
text: "_text_7d8d1_51",
|
|
18
|
+
icon: "_icon_7d8d1_66",
|
|
19
|
+
dismissable: "_dismissable_7d8d1_75"
|
|
20
|
+
}, l = {
|
|
21
|
+
en: { close: "Close" },
|
|
22
|
+
sv: { close: "Stäng" }
|
|
23
|
+
}, u = ({ title: u, message: d, type: f, children: p, isDismissable: m = !1, defaultOpen: h = !0, isOpen: g, onOpenChange: _, ...v }) => {
|
|
24
|
+
let [y, b] = s(g, h, _), x = r(l), S = () => {
|
|
25
|
+
b(!1);
|
|
26
|
+
};
|
|
27
|
+
return y ? /* @__PURE__ */ o("aside", {
|
|
28
|
+
...v,
|
|
29
|
+
className: e(c.infoBanner, c[f], v.className),
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ a(t, {
|
|
32
|
+
"aria-hidden": !0,
|
|
33
|
+
className: c.icon,
|
|
34
|
+
status: f
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ o("div", {
|
|
37
|
+
className: c.content,
|
|
38
|
+
children: [u && /* @__PURE__ */ a("strong", {
|
|
39
|
+
className: c.heading,
|
|
40
|
+
children: u
|
|
41
|
+
}), /* @__PURE__ */ o("div", {
|
|
42
|
+
className: c.text,
|
|
43
|
+
children: [d, p]
|
|
44
|
+
})]
|
|
45
|
+
}),
|
|
46
|
+
m && /* @__PURE__ */ a("div", {
|
|
47
|
+
className: c.dismissable,
|
|
48
|
+
children: /* @__PURE__ */ a(i, {
|
|
49
|
+
variant: "icon",
|
|
50
|
+
"aria-label": x.format("close"),
|
|
51
|
+
onPress: S,
|
|
52
|
+
children: /* @__PURE__ */ a(n, { size: 20 })
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
}) : null;
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
export { u as t };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
2
|
+
import { t } from "./info-Bm2gRija.js";
|
|
3
|
+
import { t as n } from "./useLocalizedStringFormatter-bRLuRzVD.js";
|
|
4
|
+
import { n as r } from "./button-CFjf-bDe.js";
|
|
5
|
+
import { t as i } from "./popover-DxnYz_IT.js";
|
|
6
|
+
import { t as a } from "./modal-Dr0ythpF.js";
|
|
7
|
+
import * as o from "react";
|
|
8
|
+
import s, { useContext as c } from "react";
|
|
9
|
+
import { Label as l } from "react-aria-components";
|
|
10
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
|
+
import '../assets/label.css';var f = { labelBase: "_labelBase_f5wtf_1" }, p = {
|
|
12
|
+
labelPopover: "_labelPopover_1cx2t_1",
|
|
13
|
+
labelPopoverTrigger: "_labelPopoverTrigger_1cx2t_7"
|
|
14
|
+
}, m = {
|
|
15
|
+
en: { moreInfo: "More info" },
|
|
16
|
+
sv: { moreInfo: "Mer information" }
|
|
17
|
+
}, h = ({ children: e, "aria-label": o }) => {
|
|
18
|
+
let s = c(g), l = n(m);
|
|
19
|
+
return /* @__PURE__ */ d(a, { children: [/* @__PURE__ */ u(r, {
|
|
20
|
+
variant: "icon",
|
|
21
|
+
size: "medium",
|
|
22
|
+
className: p.labelPopoverTrigger,
|
|
23
|
+
"aria-label": o || l.format("moreInfo"),
|
|
24
|
+
id: s?.popoverId,
|
|
25
|
+
children: /* @__PURE__ */ u(t, { size: 20 })
|
|
26
|
+
}), /* @__PURE__ */ u(i, { children: e })] });
|
|
27
|
+
}, g = s.createContext(void 0), _ = ({ children: e, popover: t }) => {
|
|
28
|
+
let n = s.useId();
|
|
29
|
+
return t ? /* @__PURE__ */ u(g.Provider, {
|
|
30
|
+
value: { popoverId: n },
|
|
31
|
+
children: /* @__PURE__ */ d("div", {
|
|
32
|
+
className: p.labelPopover,
|
|
33
|
+
children: [e, /* @__PURE__ */ u(h, { ...t })]
|
|
34
|
+
})
|
|
35
|
+
}) : e;
|
|
36
|
+
}, v = "label", y = ({ children: t, className: n, elementType: r = v, ...i }) => {
|
|
37
|
+
let a = {
|
|
38
|
+
className: e(f.labelBase, n),
|
|
39
|
+
elementType: r || v,
|
|
40
|
+
...i
|
|
41
|
+
}, s = o.useContext(g);
|
|
42
|
+
return /* @__PURE__ */ u(l, {
|
|
43
|
+
...a,
|
|
44
|
+
"aria-describedby": s?.popoverId,
|
|
45
|
+
children: t
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { _ as n, y as t };
|