@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
package/breadcrumbs/index.js
CHANGED
package/button/index.js
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
r as Button,
|
|
5
|
-
p as ButtonGroup
|
|
6
|
-
};
|
|
1
|
+
import { n as e, t } from "../chunks/button-CFjf-bDe.js";
|
|
2
|
+
export { e as Button, t as ButtonGroup };
|
package/calendar/index.js
CHANGED
package/card/index.js
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
d as Card,
|
|
4
|
-
C as CardActionArea,
|
|
5
|
-
s as CardActions,
|
|
6
|
-
e as CardBody,
|
|
7
|
-
o as CardContent,
|
|
8
|
-
t as CardHeader,
|
|
9
|
-
n as CardImage,
|
|
10
|
-
i as CardLink,
|
|
11
|
-
c as CardTitle
|
|
12
|
-
};
|
|
1
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "../chunks/card-CF8iwdg3.js";
|
|
2
|
+
export { o as Card, n as CardActionArea, e as CardActions, i as CardBody, a as CardContent, c as CardHeader, s as CardImage, t as CardLink, r as CardTitle };
|
package/checkbox/index.js
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
e as Checkbox,
|
|
5
|
-
C as CheckboxGroup
|
|
6
|
-
};
|
|
1
|
+
import { n as e, t } from "../chunks/checkbox-B_41DFjp.js";
|
|
2
|
+
export { e as Checkbox, t as CheckboxGroup };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '../assets/Button.css';var e = {
|
|
2
|
+
button: "_button_1woxv_1",
|
|
3
|
+
secondary: "_secondary_1woxv_48",
|
|
4
|
+
tertiary: "_tertiary_1woxv_71",
|
|
5
|
+
iconBtn: "_iconBtn_1woxv_91",
|
|
6
|
+
medium: "_medium_1woxv_111",
|
|
7
|
+
danger: "_danger_1woxv_116",
|
|
8
|
+
iconRight: "_iconRight_1woxv_138",
|
|
9
|
+
fullwidth: "_fullwidth_1woxv_142",
|
|
10
|
+
primary: "_primary_1woxv_152"
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { e as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as e } from "./createLucideIcon-DhIhuN5D.js";
|
|
2
|
+
import { t } from "./check-BiPE7lAA.js";
|
|
3
|
+
import { t as n } from "./info-Bm2gRija.js";
|
|
4
|
+
import { t as r } from "./useLocalizedStringFormatter-bRLuRzVD.js";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
var a = e("triangle-alert", [
|
|
7
|
+
["path", {
|
|
8
|
+
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
9
|
+
key: "wmoenq"
|
|
10
|
+
}],
|
|
11
|
+
["path", {
|
|
12
|
+
d: "M12 9v4",
|
|
13
|
+
key: "juzpu7"
|
|
14
|
+
}],
|
|
15
|
+
["path", {
|
|
16
|
+
d: "M12 17h.01",
|
|
17
|
+
key: "p32p05"
|
|
18
|
+
}]
|
|
19
|
+
]), o = e("flag", [["path", {
|
|
20
|
+
d: "M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",
|
|
21
|
+
key: "1jaruq"
|
|
22
|
+
}]]), s = {
|
|
23
|
+
en: {
|
|
24
|
+
ok: "okay",
|
|
25
|
+
information: "information",
|
|
26
|
+
importantInformation: "important information",
|
|
27
|
+
warning: "warning"
|
|
28
|
+
},
|
|
29
|
+
sv: {
|
|
30
|
+
ok: "okej",
|
|
31
|
+
information: "information",
|
|
32
|
+
importantInformation: "viktig information",
|
|
33
|
+
warning: "varning"
|
|
34
|
+
}
|
|
35
|
+
}, c = {
|
|
36
|
+
success: t,
|
|
37
|
+
info: n,
|
|
38
|
+
important: o,
|
|
39
|
+
warning: a
|
|
40
|
+
}, l = {
|
|
41
|
+
success: "ok",
|
|
42
|
+
info: "information",
|
|
43
|
+
important: "importantInformation",
|
|
44
|
+
warning: "warning"
|
|
45
|
+
}, u = ({ status: e, "aria-label": t, size: n = 20, ...a }) => {
|
|
46
|
+
let o = r(s), u = c[e];
|
|
47
|
+
return /* @__PURE__ */ i(u, {
|
|
48
|
+
"aria-label": t || o.format(l[e]),
|
|
49
|
+
size: n,
|
|
50
|
+
...a
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { u as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '../assets/TextField.css';var e = {
|
|
2
|
+
textField: "_textField_51vk6_1",
|
|
3
|
+
bottomError: "_bottomError_51vk6_20",
|
|
4
|
+
textArea: "_textArea_51vk6_29",
|
|
5
|
+
input: "_input_51vk6_30",
|
|
6
|
+
wrap: "_wrap_51vk6_87",
|
|
7
|
+
medium: "_medium_51vk6_92",
|
|
8
|
+
passwordText: "_passwordText_51vk6_120",
|
|
9
|
+
passwordButton: "_passwordButton_51vk6_159"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as t };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
3
|
+
import { t } from "./FeedbackStatusIcon-A1trvSCf.js";
|
|
4
|
+
import { t as n } from "./chevron-down-Buf0eTzo.js";
|
|
5
|
+
import { n as r } from "./button-CFjf-bDe.js";
|
|
6
|
+
import { t as i } from "./heading-595zCrRS.js";
|
|
7
|
+
import { createContext as a, useContext as o, useEffect as s } from "react";
|
|
8
|
+
import { Disclosure as c, DisclosureGroup as l, DisclosurePanel as u, composeRenderProps as d } from "react-aria-components";
|
|
9
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
|
+
import '../assets/accordion.css';var h = {
|
|
11
|
+
root: "_root_17bdp_1",
|
|
12
|
+
contained: "_contained_17bdp_5",
|
|
13
|
+
triggerButton: "_triggerButton_17bdp_12"
|
|
14
|
+
}, g = a(void 0), _ = ({ children: t, className: n, isContained: r, size: i = "large", ...a }) => /* @__PURE__ */ p(g.Provider, {
|
|
15
|
+
value: {
|
|
16
|
+
isContained: r,
|
|
17
|
+
size: i
|
|
18
|
+
},
|
|
19
|
+
children: /* @__PURE__ */ p(l, {
|
|
20
|
+
className: e(h.root, r ? h.contained : h.uncontained, n),
|
|
21
|
+
...a,
|
|
22
|
+
children: t
|
|
23
|
+
})
|
|
24
|
+
}), v = {
|
|
25
|
+
item: "_item_1l4iy_1",
|
|
26
|
+
contained: "_contained_1l4iy_18",
|
|
27
|
+
medium: "_medium_1l4iy_28",
|
|
28
|
+
success: "_success_1l4iy_33",
|
|
29
|
+
warning: "_warning_1l4iy_39",
|
|
30
|
+
info: "_info_1l4iy_45",
|
|
31
|
+
important: "_important_1l4iy_51",
|
|
32
|
+
triggerButton: "_triggerButton_1l4iy_62",
|
|
33
|
+
triggerText: "_triggerText_1l4iy_66",
|
|
34
|
+
trigger: "_trigger_1l4iy_62",
|
|
35
|
+
triggerMainContent: "_triggerMainContent_1l4iy_77",
|
|
36
|
+
" ": "_ _1l4iy_1",
|
|
37
|
+
chevronIcon: "_chevronIcon_1l4iy_94",
|
|
38
|
+
statusIcon: "_statusIcon_1l4iy_100",
|
|
39
|
+
panel: "_panel_1l4iy_122",
|
|
40
|
+
content: "_content_1l4iy_130",
|
|
41
|
+
hasBackground: "_hasBackground_1l4iy_135",
|
|
42
|
+
header: "_header_1l4iy_139"
|
|
43
|
+
}, y = ({ title: a, children: l, className: h, headingLevel: _ = "h2", type: y, hasBackground: b = !0, size: x = "large", isContained: S, iconAriaLabel: C, ...w }) => {
|
|
44
|
+
let T = o(g), E = S ?? T?.isContained ?? !1, D = typeof a == "object";
|
|
45
|
+
return s(() => {
|
|
46
|
+
y && !E && console.warn("AccordionItem: When 'type' is set, it is recommended to also set 'isContained' to true for visual consistency.");
|
|
47
|
+
}, [y, E]), /* @__PURE__ */ p(c, {
|
|
48
|
+
...w,
|
|
49
|
+
className: e(v.item, y && v[y], (x === "medium" || T?.size === "medium") && v.medium, E && v.contained, h),
|
|
50
|
+
children: d(l, (o) => /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("div", {
|
|
51
|
+
className: v.trigger,
|
|
52
|
+
children: /* @__PURE__ */ m(r, {
|
|
53
|
+
className: v.triggerButton,
|
|
54
|
+
slot: "trigger",
|
|
55
|
+
variant: "icon",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ p(n, {
|
|
58
|
+
size: 20,
|
|
59
|
+
className: v.chevronIcon
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ p("div", {
|
|
62
|
+
className: v.triggerMainContent,
|
|
63
|
+
children: D ? a : /* @__PURE__ */ p(i, {
|
|
64
|
+
level: 3,
|
|
65
|
+
elementType: _,
|
|
66
|
+
className: v.triggerText,
|
|
67
|
+
children: a
|
|
68
|
+
})
|
|
69
|
+
}),
|
|
70
|
+
y && /* @__PURE__ */ p(t, {
|
|
71
|
+
"aria-label": C,
|
|
72
|
+
className: v.statusIcon,
|
|
73
|
+
status: y
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
})
|
|
77
|
+
}), /* @__PURE__ */ p(u, {
|
|
78
|
+
className: v.panel,
|
|
79
|
+
children: /* @__PURE__ */ p("div", {
|
|
80
|
+
className: e(v.content, b && v.hasBackground),
|
|
81
|
+
children: o
|
|
82
|
+
})
|
|
83
|
+
})] }))
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
export { _ as n, y as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import '../assets/badge.css';var r = {
|
|
5
|
+
badge: "_badge_1fwow_1",
|
|
6
|
+
hasChildren: "_hasChildren_1fwow_10",
|
|
7
|
+
badgeContainer: "_badgeContainer_1fwow_19"
|
|
8
|
+
}, i = ({ children: i, className: a, ...o }) => {
|
|
9
|
+
let s = t.Children.count(i) > 0;
|
|
10
|
+
return /* @__PURE__ */ n("span", {
|
|
11
|
+
"data-badge": !0,
|
|
12
|
+
className: e(r.badge, s && r.hasChildren, a),
|
|
13
|
+
...o,
|
|
14
|
+
children: i
|
|
15
|
+
});
|
|
16
|
+
}, a = ({ children: t, className: i, ...a }) => /* @__PURE__ */ n("span", {
|
|
17
|
+
className: e(r.badgeContainer, i),
|
|
18
|
+
...a,
|
|
19
|
+
children: t
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { i as n, a as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
2
|
+
import { Breadcrumb as t, Breadcrumbs as n } from "react-aria-components";
|
|
3
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
import '../assets/breadcrumbs.css';var o = {
|
|
5
|
+
container: "_container_14dns_1",
|
|
6
|
+
separator: "_separator_14dns_20"
|
|
7
|
+
}, s = ({ className: t, ...r }) => /* @__PURE__ */ i(n, {
|
|
8
|
+
className: e(o.container, t),
|
|
9
|
+
...r
|
|
10
|
+
}), c = ({ className: n, children: s, ...c }) => /* @__PURE__ */ i(t, {
|
|
11
|
+
className: e(n),
|
|
12
|
+
...c,
|
|
13
|
+
children: (e) => {
|
|
14
|
+
let t = !e.isCurrent;
|
|
15
|
+
return /* @__PURE__ */ a(r, { children: [typeof s == "function" ? s(e) : s, t ? /* @__PURE__ */ i("span", {
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
className: o.separator,
|
|
18
|
+
children: "/"
|
|
19
|
+
}) : null] });
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { s as n, c as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
3
|
+
import { t } from "./spinner-C3WiZYld.js";
|
|
4
|
+
import { t as n } from "./Button.module-0C2ArlRs.js";
|
|
5
|
+
import { forwardRef as r } from "react";
|
|
6
|
+
import { Button as i, ButtonContext as a, composeRenderProps as o, useContextProps as s } from "react-aria-components";
|
|
7
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
|
+
import '../assets/button2.css';//#region packages/components/src/button/Button.tsx
|
|
9
|
+
var d = r((r, d) => {
|
|
10
|
+
let [f, p] = s(r, d, a), { className: m, fullwidth: h, icon: g, iconPlacement: _, iconSize: v, isPending: y, size: b = "large", variant: x = "primary", ...S } = f;
|
|
11
|
+
return /* @__PURE__ */ l(i, {
|
|
12
|
+
className: e(n.button, x === "primary" && n.primary, x === "secondary" && n.secondary, x === "tertiary" && n.tertiary, x === "danger" && n.danger, x === "icon" && n.iconBtn, h && n.fullwidth, b === "medium" && n.medium, _ === "right" && n.iconRight, m),
|
|
13
|
+
ref: p,
|
|
14
|
+
...S,
|
|
15
|
+
children: o(f.children, (e) => /* @__PURE__ */ u(c, { children: [
|
|
16
|
+
g && !y && /* @__PURE__ */ l(g, {
|
|
17
|
+
"aria-hidden": !0,
|
|
18
|
+
size: v ?? 20
|
|
19
|
+
}),
|
|
20
|
+
y && /* @__PURE__ */ l(t, { small: !0 }),
|
|
21
|
+
e
|
|
22
|
+
] }))
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
d.displayName = "Button";
|
|
26
|
+
var f = { buttonGroup: "_buttonGroup_o1hqg_1" }, p = ({ children: t, className: n, "aria-label": r, ...i }) => /* @__PURE__ */ l("div", {
|
|
27
|
+
role: "group",
|
|
28
|
+
"aria-label": r,
|
|
29
|
+
className: e(f.buttonGroup, n),
|
|
30
|
+
...i,
|
|
31
|
+
children: t
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { d as n, p as t };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { n as e, t } from "./clsx-BtlV5Vo3.js";
|
|
2
|
+
import { t as n } from "./createLucideIcon-DhIhuN5D.js";
|
|
3
|
+
import { t as r } from "./chevron-right-DJ7qKNKG.js";
|
|
4
|
+
import { n as i } from "./button-CFjf-bDe.js";
|
|
5
|
+
import { t as a } from "./heading-595zCrRS.js";
|
|
6
|
+
import { t as o } from "./field-error-DYp2kgFr.js";
|
|
7
|
+
import * as s from "react";
|
|
8
|
+
import { Calendar as c, CalendarCell as l, CalendarGrid as u, RangeCalendar as d, RangeCalendarContext as f } from "react-aria-components";
|
|
9
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
|
+
import '../assets/calendar.css';var h = n("chevron-left", [["path", {
|
|
11
|
+
d: "m15 18-6-6 6-6",
|
|
12
|
+
key: "1wnfg3"
|
|
13
|
+
}]]), g = {
|
|
14
|
+
container: "_container_19aea_1",
|
|
15
|
+
calendar: "_calendar_19aea_6",
|
|
16
|
+
day: "_day_19aea_28",
|
|
17
|
+
header: "_header_19aea_90",
|
|
18
|
+
range: "_range_19aea_162"
|
|
19
|
+
}, _ = ({ weekdayStyle: e = "short", isReadOnly: n }) => {
|
|
20
|
+
let r = !!s.useContext(f);
|
|
21
|
+
return /* @__PURE__ */ p(u, {
|
|
22
|
+
weekdayStyle: e,
|
|
23
|
+
children: (e) => /* @__PURE__ */ p(l, {
|
|
24
|
+
date: e,
|
|
25
|
+
className: t(g.day, r && g.range),
|
|
26
|
+
"data-readonly": n || void 0
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
}, v = ({ isDisabled: e, isReadOnly: t }) => /* @__PURE__ */ m("header", {
|
|
30
|
+
className: g.header,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ p(i, {
|
|
33
|
+
slot: "previous",
|
|
34
|
+
size: "medium",
|
|
35
|
+
"data-readonly": t || void 0,
|
|
36
|
+
children: /* @__PURE__ */ p(h, { size: 20 })
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ p(a, {
|
|
39
|
+
level: 3,
|
|
40
|
+
elementType: "h2",
|
|
41
|
+
"data-disabled": e || void 0
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ p(i, {
|
|
44
|
+
slot: "next",
|
|
45
|
+
size: "medium",
|
|
46
|
+
"data-readonly": t || void 0,
|
|
47
|
+
children: /* @__PURE__ */ p(r, { size: 20 })
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
}), y = ({ className: t, errorMessage: n, ...r }) => /* @__PURE__ */ m("div", {
|
|
51
|
+
className: g.container,
|
|
52
|
+
children: [/* @__PURE__ */ m(c, {
|
|
53
|
+
className: e(g.calendar, t),
|
|
54
|
+
"data-readonly": r.isReadOnly || void 0,
|
|
55
|
+
...r,
|
|
56
|
+
children: [/* @__PURE__ */ p(v, { ...r }), /* @__PURE__ */ p(_, { ...r })]
|
|
57
|
+
}), /* @__PURE__ */ p(o, {
|
|
58
|
+
isInvalid: r.isInvalid,
|
|
59
|
+
children: n
|
|
60
|
+
})]
|
|
61
|
+
}), b = ({ className: t, errorMessage: n, ...r }) => /* @__PURE__ */ m("div", {
|
|
62
|
+
className: g.container,
|
|
63
|
+
children: [/* @__PURE__ */ m(d, {
|
|
64
|
+
className: e(g.calendar, t),
|
|
65
|
+
"data-readonly": r.isReadOnly || void 0,
|
|
66
|
+
...r,
|
|
67
|
+
children: [/* @__PURE__ */ p(v, { ...r }), /* @__PURE__ */ p(_, { ...r })]
|
|
68
|
+
}), /* @__PURE__ */ p(o, {
|
|
69
|
+
isInvalid: r.isInvalid,
|
|
70
|
+
children: n
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
//#endregion
|
|
74
|
+
export { y as n, b as t };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtlV5Vo3.js";
|
|
2
|
+
import { t } from "./arrow-right-7yeXXFNV.js";
|
|
3
|
+
import { t as n } from "./heading-595zCrRS.js";
|
|
4
|
+
import { t as r } from "./text-mAeDlv5N.js";
|
|
5
|
+
import * as i from "react";
|
|
6
|
+
import { Button as a, Link as o } from "react-aria-components";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
import '../assets/card.css';var l = {
|
|
9
|
+
card: "_card_7i5z9_1",
|
|
10
|
+
horizontal: "_horizontal_7i5z9_12",
|
|
11
|
+
cardLink: "_cardLink_7i5z9_17",
|
|
12
|
+
cardContent: "_cardContent_7i5z9_28",
|
|
13
|
+
cardActions: "_cardActions_7i5z9_47",
|
|
14
|
+
deprecated: "_deprecated_7i5z9_61",
|
|
15
|
+
cardActionArea: "_cardActionArea_7i5z9_67",
|
|
16
|
+
cardImage: "_cardImage_7i5z9_100",
|
|
17
|
+
cardLinkIcon: "_cardLinkIcon_7i5z9_132"
|
|
18
|
+
}, u = i.createContext({
|
|
19
|
+
horizontal: void 0,
|
|
20
|
+
titleId: void 0
|
|
21
|
+
}), d = i.createContext(void 0), f = ({ horizontal: t, className: n, children: r, ...a }) => {
|
|
22
|
+
let o = `card-title-${i.useId()}`;
|
|
23
|
+
return /* @__PURE__ */ s(u.Provider, {
|
|
24
|
+
value: {
|
|
25
|
+
horizontal: t,
|
|
26
|
+
titleId: o
|
|
27
|
+
},
|
|
28
|
+
children: /* @__PURE__ */ s("div", {
|
|
29
|
+
...a,
|
|
30
|
+
className: e(l.card, t && l.horizontal, n),
|
|
31
|
+
children: r
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
}, p = ({ children: t, ...n }) => {
|
|
35
|
+
let { horizontal: r } = i.useContext(u);
|
|
36
|
+
return /* @__PURE__ */ s(d.Provider, {
|
|
37
|
+
value: {},
|
|
38
|
+
children: /* @__PURE__ */ s("div", {
|
|
39
|
+
...n,
|
|
40
|
+
className: e(l.cardContent, r && l.horizontal),
|
|
41
|
+
children: t
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
}, m = ({ elementType: t = "h2", children: r, className: a, ...o }) => {
|
|
45
|
+
let { horizontal: c, titleId: d } = i.useContext(u);
|
|
46
|
+
return /* @__PURE__ */ s(n, {
|
|
47
|
+
level: 3,
|
|
48
|
+
elementType: t,
|
|
49
|
+
className: e(a, l.cardTitle, c && l.horizontal),
|
|
50
|
+
id: d,
|
|
51
|
+
...o,
|
|
52
|
+
children: r
|
|
53
|
+
});
|
|
54
|
+
}, h = ({ children: t, ...n }) => {
|
|
55
|
+
let { horizontal: r } = i.useContext(u), a = !!i.useContext(d);
|
|
56
|
+
return /* @__PURE__ */ s("div", {
|
|
57
|
+
...n,
|
|
58
|
+
className: e(l.cardActions, r && l.horizontal, a && l.deprecated),
|
|
59
|
+
children: t
|
|
60
|
+
});
|
|
61
|
+
}, g = ({ children: t, className: n, ...r }) => {
|
|
62
|
+
let { titleId: o } = i.useContext(u);
|
|
63
|
+
return /* @__PURE__ */ s(a, {
|
|
64
|
+
...r,
|
|
65
|
+
"aria-labelledby": o,
|
|
66
|
+
className: e(l.cardActionArea, n),
|
|
67
|
+
children: t
|
|
68
|
+
});
|
|
69
|
+
}, _ = ({ as: t = "img", className: n, ...r }) => /* @__PURE__ */ s(t, {
|
|
70
|
+
...r,
|
|
71
|
+
"data-card-image": !0,
|
|
72
|
+
className: e(l.cardImage, n)
|
|
73
|
+
}), v = ({ children: n, as: r, ...i }) => /* @__PURE__ */ c(r || o, {
|
|
74
|
+
...i,
|
|
75
|
+
className: e(l.cardLink, i.className),
|
|
76
|
+
children: [n, /* @__PURE__ */ s(t, {
|
|
77
|
+
className: l.cardLinkIcon,
|
|
78
|
+
size: 24
|
|
79
|
+
})]
|
|
80
|
+
}), y = { cardBody: "_cardBody_337uy_1" }, b = ({ className: t, ...n }) => /* @__PURE__ */ s("div", {
|
|
81
|
+
className: e(t, y.cardBody),
|
|
82
|
+
...n
|
|
83
|
+
}), x = {
|
|
84
|
+
cardHeader: "_cardHeader_1625c_1",
|
|
85
|
+
textContainer: "_textContainer_1625c_14",
|
|
86
|
+
subHeading: "_subHeading_1625c_20"
|
|
87
|
+
}, S = ({ children: t, className: n, heading: i, headingLevel: a, subHeading: o, ...l }) => /* @__PURE__ */ c("div", {
|
|
88
|
+
className: e(n, x.cardHeader),
|
|
89
|
+
...l,
|
|
90
|
+
children: [/* @__PURE__ */ c("div", {
|
|
91
|
+
className: x.textContainer,
|
|
92
|
+
children: [/* @__PURE__ */ s(m, {
|
|
93
|
+
elementType: a,
|
|
94
|
+
children: i
|
|
95
|
+
}), o && /* @__PURE__ */ s(r, {
|
|
96
|
+
slot: "description",
|
|
97
|
+
className: x.subHeading,
|
|
98
|
+
children: o
|
|
99
|
+
})]
|
|
100
|
+
}), t]
|
|
101
|
+
});
|
|
102
|
+
//#endregion
|
|
103
|
+
export { h as a, v as c, g as i, m as l, b as n, p as o, f as r, _ as s, S as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { forwardRef as e } from "react";
|
|
2
|
+
import { InputContext as t, useContextProps as n } from "react-aria-components";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
import '../assets/character-counter.css';var i = { characterCounter: "_characterCounter_1cgvx_1" }, a = e((e, a) => {
|
|
5
|
+
[e] = n(e, a, t);
|
|
6
|
+
let { maxLength: o, value: s, isLonely: c } = e, { length: l } = s?.toString() ?? "", u = o !== void 0;
|
|
7
|
+
return /* @__PURE__ */ r("span", {
|
|
8
|
+
className: i.characterCounter,
|
|
9
|
+
"data-exceeded": u && l > o || void 0,
|
|
10
|
+
"data-lonely": c || void 0,
|
|
11
|
+
children: u ? `${l} / ${o}` : l
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
a.displayName = "CharacterCounter";
|
|
15
|
+
//#endregion
|
|
16
|
+
export { a as t };
|