@midas-ds/components 1.0.2 → 1.1.0
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/Button-DL6nqUco.js +182 -0
- package/CHANGELOG.md +15 -0
- package/Checkbox-q0dugR2t.js +402 -0
- package/{Collection-B3xUVWPF.js → Collection-KMFfVuzU.js} +179 -152
- package/Dialog-D6Bqrpn-.js +1952 -0
- package/Disclosure-dAZYXyTH.js +225 -0
- package/Disclosure.css +1 -0
- package/DragAndDrop-B0T3WgjL.js +40 -0
- package/FocusScope-B7CkxXNC.js +513 -0
- package/{Form-DXLoQL91.js → Form-BWBjJC6v.js} +79 -81
- package/Group-D7_8007y.js +42 -0
- package/Heading-RCRHv6hd.js +15 -0
- package/{Hidden-BQWDvze4.js → Hidden-CVlUgUJM.js} +1 -1
- package/Link-BnQvB-hH.js +75 -0
- package/ListBox-DBBiqvcR.js +474 -0
- package/ListKeyboardDelegate-gCXy-Xnn.js +172 -0
- package/PressResponder-B4g56kDz.js +31 -0
- package/README.md +21 -3
- package/{RSPContexts-EOiWkKOf.js → RSPContexts-BW2SEIqe.js} +2 -2
- package/SelectionManager-BfXUE1qg.js +1031 -0
- package/Separator-BBX9m2O2.js +49 -0
- package/Tag-DWt0koFj.js +728 -0
- package/Text-BCF0xvqL.js +15 -0
- package/TextField-CX4eOQf6.js +225 -0
- package/TextField.module-DdICj682.js +143 -0
- package/{VisuallyHidden-B_XzVvlX.js → VisuallyHidden-Dhr5caPC.js} +1 -1
- package/accordion/Accordion.d.ts +8 -8
- package/accordion/AccordionItem.d.ts +11 -3
- package/accordion/index.d.ts +0 -3
- package/{context-ScOIq_Gu.js → context-BpJLnOuu.js} +11 -11
- package/global.css +1 -0
- package/index-B-jHjTDC.js +120 -0
- package/{index-CorR1LBD.js → index-BPdc9gJ8.js} +3 -3
- package/{index-Dl1Q-tbj.js → index-KSgQWWiy.js} +5315 -5315
- package/index.d.ts +1 -0
- package/index.js +105 -112
- package/index10.js +1 -1
- package/index11.js +1 -1
- package/index12.js +1 -1
- package/index13.js +1 -1
- package/index14.js +1 -1
- package/index15.js +2 -2
- package/index16.js +2 -2
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +2 -2
- package/index2.js +1 -1
- package/index20.js +2 -2
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +1 -1
- package/index24.js +1 -1
- package/index25.js +2 -2
- package/index26.js +2 -2
- package/index27.js +2 -2
- package/index28.js +1 -1
- package/index29.js +2 -8
- package/index3.js +2 -4
- package/index30.js +17 -16
- package/index31.js +3 -3
- package/index32.js +3 -3
- package/index33.js +2 -2
- package/index34.js +3 -3
- package/index35.js +1 -1
- package/index36.js +2 -2
- package/index37.js +2 -2
- package/index38.js +2 -2
- package/index39.js +2 -2
- package/index4.js +1 -1
- package/index40.js +19 -12
- package/index41.js +61 -14
- package/index42.js +44 -22
- package/index43.js +13 -11
- package/index44.js +25 -4
- package/index45.js +16 -51
- package/index46.js +19 -16
- package/index47.js +49 -27
- package/index48.js +5 -18
- package/index49.js +25 -21
- package/index5.js +1 -1
- package/index50.js +16 -47
- package/index51.js +7 -3
- package/index52.js +18 -18
- package/index53.js +16 -16
- package/index54.js +6 -4
- package/index55.js +8 -21
- package/index56.js +13 -16
- package/index57.js +6 -8
- package/index58.js +6 -9
- package/index59.js +17 -13
- package/index6.js +1 -1
- package/index60.js +20 -7
- package/index61.js +59 -7
- package/index62.js +13 -17
- package/index63.js +9 -20
- package/index64.js +40 -48
- package/index65.js +85 -15
- package/index66.js +74 -11
- package/index67.js +23 -62
- package/index68.js +64 -80
- package/index69.js +68 -62
- package/index7.js +1 -1
- package/index70.js +138 -22
- package/index71.js +66 -65
- package/index72.js +40 -78
- package/index73.js +75 -133
- package/index74.js +69 -68
- package/index75.js +96 -34
- package/index76.js +258 -65
- package/index77.js +715 -63
- package/index78.js +478 -93
- package/index79.js +303 -263
- package/index8.js +1 -1
- package/index80.js +343 -678
- package/index81.js +242 -481
- package/index82.js +1329 -282
- package/index83.js +968 -350
- package/index84.js +343 -211
- package/index85.js +2025 -1288
- package/index86.js +2313 -954
- package/index87.js +6782 -339
- package/index88.js +15 -2103
- package/index89.js +12 -2369
- package/index9.js +1 -1
- package/index90.js +4 -6832
- package/index91.js +7 -15
- package/link/Link.d.ts +2 -2
- package/link-button/LinkButton.d.ts +1 -1
- package/package.json +7 -1
- package/{react.esm-D8HpDGKP.js → react.esm-sMU8Z7rL.js} +1872 -1872
- package/textfield/index.d.ts +0 -2
- package/useControlledState-Kv9K2AYu.js +30 -0
- package/{useDescription-D4_zk_sA.js → useDescription-B7stiK3j.js} +1 -1
- package/useEvent-Xk5kn5Ns.js +21 -0
- package/useField-DMzJIIN4.js +67 -0
- package/{useFilter-BnJDBCkt.js → useFilter-Bt9dbV1U.js} +1 -1
- package/useFocusRing-9PXyKy2A.js +1297 -0
- package/{useFocusable-C-N9wcwm.js → useFocusable-CcEBZe40.js} +11 -8
- package/{useGridSelectionCheckbox-i1rsjlC-.js → useGridSelectionCheckbox-DYgEnElE.js} +3 -3
- package/useHasTabbableChild-D6DwR81L.js +34 -0
- package/{useHighlightSelectionDescription-JVx2MW_e.js → useHighlightSelectionDescription-WYAbP4No.js} +19 -19
- package/useLabels-9zaZ9oa0.js +17 -0
- package/useListState-BfTeKTk5.js +119 -0
- package/{useLocalizedStringFormatter-DVCAZqcL.js → useLocalizedStringFormatter-BlCbn-hX.js} +29 -29
- package/{useSingleSelectListState-CmX9_L5H.js → useSingleSelectListState-DPkaL0la.js} +5 -5
- package/Button-CCevm2s3.js +0 -183
- package/Checkbox-CllWDBxF.js +0 -405
- package/Dialog-CLTyYwkS.js +0 -1889
- package/DragAndDrop-OTN7La7U.js +0 -42
- package/FocusScope-BR0SJ-cZ.js +0 -512
- package/Group-DPMuN3h8.js +0 -44
- package/Label-C18A_4Z5.js +0 -69
- package/Link-BU1h3K2a.js +0 -77
- package/ListBox-D21tdwTs.js +0 -463
- package/ListKeyboardDelegate-DxMjfMsI.js +0 -172
- package/PressResponder-DP8ZDNGy.js +0 -31
- package/SelectionManager-D4WtKtey.js +0 -988
- package/Separator-DLUHK9vv.js +0 -48
- package/Tag-CEd6WWSc.js +0 -725
- package/Text-DGLaY3HR.js +0 -17
- package/TextField-C_hq9WeT.js +0 -226
- package/TextField.module-Cwq1FAm7.js +0 -141
- package/accordion/AccordionContent.d.ts +0 -3
- package/accordion/AccordionTagContext.d.ts +0 -3
- package/accordion/AccordionTrigger.d.ts +0 -3
- package/index-CEg5vZQH.js +0 -132
- package/index-CgfokhRq.js +0 -674
- package/index.css +0 -1
- package/index92.js +0 -14
- package/index93.js +0 -6
- package/index94.js +0 -9
- package/useControlledState-S_TYcV_c.js +0 -45
- package/useFocusRing-D97-G3fT.js +0 -1324
- package/useHasTabbableChild-DeuCnGGv.js +0 -34
- package/useListState-DSOTbsL3.js +0 -119
package/index41.js
CHANGED
|
@@ -1,16 +1,63 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { a as d, s as e, b as $ } from "./Disclosure-dAZYXyTH.js";
|
|
4
|
+
import { $ as h } from "./Heading-RCRHv6hd.js";
|
|
5
|
+
import { Button as g } from "./index66.js";
|
|
6
|
+
import { c as n } from "./clsx-OuTLNxxd.js";
|
|
7
|
+
import { C as u } from "./chevron-down-Cd1bkzXT.js";
|
|
8
|
+
const R = ({
|
|
9
|
+
title: c,
|
|
10
|
+
children: i,
|
|
11
|
+
className: f,
|
|
12
|
+
headingLevel: l = 3,
|
|
13
|
+
...m
|
|
14
|
+
}) => {
|
|
15
|
+
const r = a.useRef(null), [s, p] = a.useState(0);
|
|
16
|
+
return a.useLayoutEffect(() => {
|
|
17
|
+
r.current && p(r.current.clientHeight);
|
|
18
|
+
}, []), /* @__PURE__ */ o(
|
|
19
|
+
d,
|
|
20
|
+
{
|
|
21
|
+
...m,
|
|
22
|
+
className: n(e.item, f),
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ t(
|
|
25
|
+
h,
|
|
26
|
+
{
|
|
27
|
+
level: l,
|
|
28
|
+
className: e.trigger,
|
|
29
|
+
children: /* @__PURE__ */ o(
|
|
30
|
+
g,
|
|
31
|
+
{
|
|
32
|
+
slot: "trigger",
|
|
33
|
+
variant: "icon",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ t(u, { size: 20 }),
|
|
36
|
+
/* @__PURE__ */ t("span", { className: e.triggerText, children: c })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ t(
|
|
43
|
+
$,
|
|
44
|
+
{
|
|
45
|
+
style: { "--panel-height": `${s}px` },
|
|
46
|
+
className: n(e.panel, s === 0 && e.panel0),
|
|
47
|
+
children: /* @__PURE__ */ t(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref: r,
|
|
51
|
+
className: e.content,
|
|
52
|
+
children: i
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
};
|
|
14
61
|
export {
|
|
15
|
-
|
|
62
|
+
R as AccordionItem
|
|
16
63
|
};
|
package/index42.js
CHANGED
|
@@ -1,31 +1,53 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx as c, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { $ as C, s as i, a as V, C as v } from "./Checkbox-q0dugR2t.js";
|
|
4
|
+
import { $ as S } from "./Group-D7_8007y.js";
|
|
5
|
+
import { I } from "./TextField-CX4eOQf6.js";
|
|
6
|
+
const N = ({
|
|
7
|
+
label: m,
|
|
8
|
+
description: f,
|
|
9
|
+
errorMessage: g,
|
|
10
|
+
showSelectAll: p,
|
|
11
|
+
children: s,
|
|
12
|
+
...b
|
|
13
|
+
}) => {
|
|
14
|
+
const [t, e] = r.useState(), h = () => {
|
|
15
|
+
const l = r.useContext(V), n = r.Children.toArray(s).filter(r.isValidElement).map((a) => a.props.value), $ = () => t !== "all" ? (e("all"), l == null ? void 0 : l.setValue(["toggleAll", ...n])) : (e("none"), l == null ? void 0 : l.setValue([]));
|
|
16
|
+
return r.useEffect(() => {
|
|
17
|
+
var d, u;
|
|
18
|
+
const a = n.length, A = n.length + 1, o = ((d = l == null ? void 0 : l.value) == null ? void 0 : d.length) || 0;
|
|
19
|
+
o === 0 && e("none"), o > 0 && o < a && e("some"), o !== A && (l == null || l.removeValue("toggleAll")), o === a && !((u = l == null ? void 0 : l.value) != null && u.includes("toggleAll")) && (l == null || l.addValue("toggleAll"), e("all"));
|
|
20
|
+
}, [n.length, l == null ? void 0 : l.value]), /* @__PURE__ */ c(
|
|
21
|
+
v,
|
|
22
|
+
{
|
|
23
|
+
value: "toggleAll",
|
|
24
|
+
isSelected: t === "all",
|
|
25
|
+
isIndeterminate: t === "some",
|
|
26
|
+
onChange: () => $(),
|
|
27
|
+
children: "Välj alla"
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
return /* @__PURE__ */ c(
|
|
32
|
+
C,
|
|
11
33
|
{
|
|
12
|
-
className:
|
|
13
|
-
|
|
34
|
+
className: i.checkboxGroup,
|
|
35
|
+
...b,
|
|
14
36
|
children: /* @__PURE__ */ c(
|
|
15
|
-
|
|
37
|
+
I,
|
|
16
38
|
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
]
|
|
39
|
+
label: m,
|
|
40
|
+
description: f,
|
|
41
|
+
errorMessage: g,
|
|
42
|
+
children: /* @__PURE__ */ x(S, { className: i.wrap, children: [
|
|
43
|
+
p && /* @__PURE__ */ c(h, {}),
|
|
44
|
+
s
|
|
45
|
+
] })
|
|
24
46
|
}
|
|
25
47
|
)
|
|
26
48
|
}
|
|
27
49
|
);
|
|
28
|
-
}
|
|
50
|
+
};
|
|
29
51
|
export {
|
|
30
|
-
|
|
52
|
+
N as CheckboxGroup
|
|
31
53
|
};
|
package/index43.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { C as s, s as c } from "./index-CgfokhRq.js";
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { s } from "./Flex.module-CpoxBzQX.js";
|
|
4
3
|
import { c as m } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
4
|
+
const t = ({
|
|
5
|
+
children: l,
|
|
6
|
+
fluid: r = !1,
|
|
7
|
+
...a
|
|
8
|
+
}) => /* @__PURE__ */ e(
|
|
9
|
+
"div",
|
|
7
10
|
{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
children: o.children
|
|
11
|
+
className: m(s.container, r && s.fluid, a.className),
|
|
12
|
+
...a,
|
|
13
|
+
children: /* @__PURE__ */ e("div", { className: s.flex, children: l })
|
|
12
14
|
}
|
|
13
|
-
)
|
|
15
|
+
);
|
|
14
16
|
export {
|
|
15
|
-
|
|
17
|
+
t as Flex
|
|
16
18
|
};
|
package/index44.js
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { s } from "./Flex.module-CpoxBzQX.js";
|
|
3
|
+
import { c as r } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const x = ({
|
|
5
|
+
children: l,
|
|
6
|
+
col: o,
|
|
7
|
+
offset: t,
|
|
8
|
+
...c
|
|
9
|
+
}) => {
|
|
10
|
+
const m = o ? `col-${o}` : "", a = t ? `offset-${t}` : "";
|
|
11
|
+
return /* @__PURE__ */ e(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: r(
|
|
15
|
+
s.col,
|
|
16
|
+
s[m],
|
|
17
|
+
s[a],
|
|
18
|
+
c.className
|
|
19
|
+
),
|
|
20
|
+
...c,
|
|
21
|
+
children: l
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
3
25
|
export {
|
|
4
|
-
|
|
5
|
-
n as useAccordionTag
|
|
26
|
+
x as FlexItem
|
|
6
27
|
};
|
package/index45.js
CHANGED
|
@@ -1,53 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return r.useEffect(() => {
|
|
17
|
-
var u, d;
|
|
18
|
-
const a = n.length, $ = n.length + 1, o = ((u = l == null ? void 0 : l.value) == null ? void 0 : u.length) || 0;
|
|
19
|
-
o === 0 && e("none"), o > 0 && o < a && e("some"), o !== $ && (l == null || l.removeValue("toggleAll")), o === a && !((d = l == null ? void 0 : l.value) != null && d.includes("toggleAll")) && (l == null || l.addValue("toggleAll"), e("all"));
|
|
20
|
-
}, [n.length, l == null ? void 0 : l.value]), /* @__PURE__ */ c(
|
|
21
|
-
v,
|
|
22
|
-
{
|
|
23
|
-
value: "toggleAll",
|
|
24
|
-
isSelected: t === "all",
|
|
25
|
-
isIndeterminate: t === "some",
|
|
26
|
-
onChange: () => A(),
|
|
27
|
-
children: "Välj alla"
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
};
|
|
31
|
-
return /* @__PURE__ */ c(
|
|
32
|
-
C,
|
|
33
|
-
{
|
|
34
|
-
className: i.checkboxGroup,
|
|
35
|
-
...h,
|
|
36
|
-
children: /* @__PURE__ */ c(
|
|
37
|
-
S,
|
|
38
|
-
{
|
|
39
|
-
label: m,
|
|
40
|
-
description: f,
|
|
41
|
-
errorMessage: g,
|
|
42
|
-
children: /* @__PURE__ */ x(I, { className: i.wrap, children: [
|
|
43
|
-
p && /* @__PURE__ */ c(b, {}),
|
|
44
|
-
s
|
|
45
|
-
] })
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
};
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { s } from "./Grid.module-Ia0e9Dix.js";
|
|
3
|
+
import { c as o } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const t = ({
|
|
5
|
+
children: i,
|
|
6
|
+
fluid: m = !1,
|
|
7
|
+
...r
|
|
8
|
+
}) => /* @__PURE__ */ a(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: o(s.container, m && s.fluid, r.className),
|
|
12
|
+
...r,
|
|
13
|
+
children: /* @__PURE__ */ a("div", { className: s.grid, children: i })
|
|
14
|
+
}
|
|
15
|
+
);
|
|
51
16
|
export {
|
|
52
|
-
|
|
17
|
+
t as Grid
|
|
53
18
|
};
|
package/index46.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { s } from "./
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
children:
|
|
6
|
-
|
|
7
|
-
...
|
|
8
|
-
}) =>
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { s as m } from "./Grid.module-Ia0e9Dix.js";
|
|
3
|
+
import { c as a } from "./clsx-OuTLNxxd.js";
|
|
4
|
+
const p = ({
|
|
5
|
+
children: r,
|
|
6
|
+
col: s,
|
|
7
|
+
...o
|
|
8
|
+
}) => {
|
|
9
|
+
const c = s ? `col-${s}` : "";
|
|
10
|
+
return /* @__PURE__ */ t(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
className: a(m.col, m[c], o.className),
|
|
14
|
+
...o,
|
|
15
|
+
children: r
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
};
|
|
16
19
|
export {
|
|
17
|
-
|
|
20
|
+
p as GridItem
|
|
18
21
|
};
|
package/index47.js
CHANGED
|
@@ -1,27 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { r as t } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
+
import { MultiSelect as a } from "./index77.js";
|
|
4
|
+
const o = [
|
|
5
|
+
"Apple",
|
|
6
|
+
"Banana",
|
|
7
|
+
"Kiwi",
|
|
8
|
+
"Elderflower",
|
|
9
|
+
"Nectarine",
|
|
10
|
+
"Watermelon",
|
|
11
|
+
"Pineapple",
|
|
12
|
+
"Apricot",
|
|
13
|
+
"Cloudberry",
|
|
14
|
+
"Mango",
|
|
15
|
+
"Strawberry",
|
|
16
|
+
"Blueberry",
|
|
17
|
+
"Raspberry",
|
|
18
|
+
"Blackberry",
|
|
19
|
+
"Cherry",
|
|
20
|
+
"Peach",
|
|
21
|
+
"Plum",
|
|
22
|
+
"Grape",
|
|
23
|
+
"Orange",
|
|
24
|
+
"Lemon",
|
|
25
|
+
"Lime",
|
|
26
|
+
"Coconut",
|
|
27
|
+
"Fig",
|
|
28
|
+
"Papaya",
|
|
29
|
+
"Guava",
|
|
30
|
+
"Pomegranate",
|
|
31
|
+
"Dragonfruit",
|
|
32
|
+
"Starfruit",
|
|
33
|
+
"Passionfruit"
|
|
34
|
+
], i = o.map((e) => ({ name: e, id: e.toLocaleLowerCase() }));
|
|
35
|
+
describe("MultiSelect", () => {
|
|
36
|
+
it("should render successfully", () => {
|
|
37
|
+
const { baseElement: e } = t(
|
|
38
|
+
/* @__PURE__ */ r(
|
|
39
|
+
a,
|
|
40
|
+
{
|
|
41
|
+
label: "Label",
|
|
42
|
+
description: "Etikett",
|
|
43
|
+
items: i
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
);
|
|
47
|
+
expect(e).toBeTruthy();
|
|
48
|
+
});
|
|
49
|
+
});
|
package/index48.js
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
fluid: m = !1,
|
|
7
|
-
...r
|
|
8
|
-
}) => /* @__PURE__ */ a(
|
|
9
|
-
"div",
|
|
10
|
-
{
|
|
11
|
-
className: o(s.container, m && s.fluid, r.className),
|
|
12
|
-
...r,
|
|
13
|
-
children: /* @__PURE__ */ a("div", { className: s.grid, children: i })
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
export {
|
|
17
|
-
t as Grid
|
|
18
|
-
};
|
|
1
|
+
describe("Modal", () => {
|
|
2
|
+
it("should pass without testing", () => {
|
|
3
|
+
expect(!0).toBe(!0);
|
|
4
|
+
});
|
|
5
|
+
});
|
package/index49.js
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { r } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
+
import "./index-BPdc9gJ8.js";
|
|
4
|
+
import { Logo as i } from "./index70.js";
|
|
5
|
+
import { j as t } from "./index-KSgQWWiy.js";
|
|
6
|
+
expect.extend(t.toHaveNoViolations);
|
|
7
|
+
describe("given a default Logo", () => {
|
|
8
|
+
let e;
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
e = r(
|
|
11
|
+
/* @__PURE__ */ o(
|
|
12
|
+
a,
|
|
13
|
+
{
|
|
14
|
+
primary: !0,
|
|
15
|
+
background: !0
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
);
|
|
19
|
+
}), it("should render successfully", () => {
|
|
20
|
+
expect(e).toBeTruthy();
|
|
21
|
+
}), it("should have no accessibility violations", async () => {
|
|
22
|
+
expect(await t.axe(await e.findByRole("img"))).toHaveNoViolations();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
const a = (e) => /* @__PURE__ */ o(i, { ...e });
|
package/index5.js
CHANGED
package/index50.js
CHANGED
|
@@ -1,49 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"Cloudberry",
|
|
14
|
-
"Mango",
|
|
15
|
-
"Strawberry",
|
|
16
|
-
"Blueberry",
|
|
17
|
-
"Raspberry",
|
|
18
|
-
"Blackberry",
|
|
19
|
-
"Cherry",
|
|
20
|
-
"Peach",
|
|
21
|
-
"Plum",
|
|
22
|
-
"Grape",
|
|
23
|
-
"Orange",
|
|
24
|
-
"Lemon",
|
|
25
|
-
"Lime",
|
|
26
|
-
"Coconut",
|
|
27
|
-
"Fig",
|
|
28
|
-
"Papaya",
|
|
29
|
-
"Guava",
|
|
30
|
-
"Pomegranate",
|
|
31
|
-
"Dragonfruit",
|
|
32
|
-
"Starfruit",
|
|
33
|
-
"Passionfruit"
|
|
34
|
-
], i = o.map((e) => ({ name: e, id: e.toLocaleLowerCase() }));
|
|
35
|
-
describe("MultiSelect", () => {
|
|
36
|
-
it("should render successfully", () => {
|
|
37
|
-
const { baseElement: e } = t(
|
|
38
|
-
/* @__PURE__ */ r(
|
|
39
|
-
a,
|
|
40
|
-
{
|
|
41
|
-
label: "Label",
|
|
42
|
-
description: "Etikett",
|
|
43
|
-
items: i
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
);
|
|
47
|
-
expect(e).toBeTruthy();
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "./index-BPdc9gJ8.js";
|
|
3
|
+
import { r as n } from "./react.esm-sMU8Z7rL.js";
|
|
4
|
+
import { j as t } from "./index-KSgQWWiy.js";
|
|
5
|
+
import { LinkButton as a } from "./index75.js";
|
|
6
|
+
expect.extend(t.toHaveNoViolations);
|
|
7
|
+
describe("given a default link", () => {
|
|
8
|
+
let e, i;
|
|
9
|
+
beforeEach(() => {
|
|
10
|
+
e = n(/* @__PURE__ */ o(r, { onPress: i }));
|
|
11
|
+
}), it("should have no accessibility violations", async () => {
|
|
12
|
+
expect(await t.axe(e.container)).toHaveNoViolations();
|
|
48
13
|
});
|
|
49
14
|
});
|
|
15
|
+
const r = (e) => (
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
/* @__PURE__ */ o(a, { ...e, children: "Click" })
|
|
18
|
+
);
|
package/index51.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { r as i } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
+
import { Link as o } from "./index74.js";
|
|
4
|
+
describe("Link", () => {
|
|
5
|
+
it("should render successfully", () => {
|
|
6
|
+
const { baseElement: e } = i(/* @__PURE__ */ r(o, { children: "Link" }));
|
|
7
|
+
expect(e).toBeTruthy();
|
|
4
8
|
});
|
|
5
9
|
});
|
package/index52.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { r } from "./react.esm-
|
|
3
|
-
import "./
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
e = r(
|
|
11
|
-
/* @__PURE__ */ o(
|
|
12
|
-
a,
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { r as t } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
+
import { Layout as d } from "./index76.js";
|
|
4
|
+
describe("Sidebar", () => {
|
|
5
|
+
it("should render successfully", () => {
|
|
6
|
+
const { baseElement: e } = t(
|
|
7
|
+
/* @__PURE__ */ r(
|
|
8
|
+
d,
|
|
13
9
|
{
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
items: [],
|
|
11
|
+
title: "",
|
|
12
|
+
children: void 0,
|
|
13
|
+
headerChildren: void 0,
|
|
14
|
+
user: { name: "", title: "" },
|
|
15
|
+
app: {
|
|
16
|
+
name: "",
|
|
17
|
+
shortName: "",
|
|
18
|
+
color: void 0
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
)
|
|
18
22
|
);
|
|
19
|
-
}), it("should render successfully", () => {
|
|
20
23
|
expect(e).toBeTruthy();
|
|
21
|
-
}), it("should have no accessibility violations", async () => {
|
|
22
|
-
expect(await t.axe(await e.findByRole("img"))).toHaveNoViolations();
|
|
23
24
|
});
|
|
24
25
|
});
|
|
25
|
-
const a = (e) => /* @__PURE__ */ o(i, { ...e });
|
package/index53.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { r as s } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
+
import { InfoBanner as t } from "./index69.js";
|
|
4
|
+
describe("InfoBanner", () => {
|
|
5
|
+
it("should render successfully", () => {
|
|
6
|
+
const { baseElement: e } = s(
|
|
7
|
+
/* @__PURE__ */ r(
|
|
8
|
+
t,
|
|
9
|
+
{
|
|
10
|
+
type: "info",
|
|
11
|
+
title: "Title",
|
|
12
|
+
message: "Message"
|
|
13
|
+
}
|
|
14
|
+
)
|
|
15
|
+
);
|
|
16
|
+
expect(e).toBeTruthy();
|
|
13
17
|
});
|
|
14
18
|
});
|
|
15
|
-
const r = (e) => (
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
/* @__PURE__ */ o(a, { ...e, children: "Click" })
|
|
18
|
-
);
|
package/index54.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { r as i } from "./react.esm-
|
|
3
|
-
import {
|
|
4
|
-
describe("
|
|
2
|
+
import { r as i } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
+
import { Grid as t } from "./index45.js";
|
|
4
|
+
describe("Grid", () => {
|
|
5
5
|
it("should render successfully", () => {
|
|
6
|
-
const { baseElement: e } = i(
|
|
6
|
+
const { baseElement: e } = i(
|
|
7
|
+
/* @__PURE__ */ r(t, { children: /* @__PURE__ */ r("div", { children: "Item" }) })
|
|
8
|
+
);
|
|
7
9
|
expect(e).toBeTruthy();
|
|
8
10
|
});
|
|
9
11
|
});
|