@midas-ds/components 1.1.0 → 1.3.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/CHANGELOG.md +63 -1
- package/accordion/AccordionItem.d.ts +2 -2
- package/index.cjs +138 -0
- package/index.css +1 -0
- package/index.d.ts +0 -2
- package/index.js +27094 -105
- package/package.json +22 -4
- package/table/Table.d.ts +3 -4
- package/textfield/TextField.d.ts +15 -4
- package/theme.cjs +1 -0
- package/theme.js +20 -0
- package/tokens-BskyMDHv.cjs +1 -0
- package/Breadcrumbs.css +0 -1
- package/Button-DL6nqUco.js +0 -182
- package/Button.css +0 -1
- package/ButtonGroup.css +0 -1
- package/Card.css +0 -1
- package/Checkbox-q0dugR2t.js +0 -402
- package/Checkbox.css +0 -1
- package/Collection-KMFfVuzU.js +0 -510
- package/ComboBox.css +0 -1
- package/DatePicker.css +0 -1
- package/Dialog-D6Bqrpn-.js +0 -1952
- package/Disclosure-dAZYXyTH.js +0 -225
- package/Disclosure.css +0 -1
- package/DragAndDrop-B0T3WgjL.js +0 -40
- package/Dropdown.css +0 -1
- package/FileUpload.css +0 -1
- package/Flex.css +0 -1
- package/Flex.module-CpoxBzQX.js +0 -37
- package/FocusScope-B7CkxXNC.js +0 -513
- package/Form-BWBjJC6v.js +0 -238
- package/Grid.css +0 -1
- package/Grid.module-Ia0e9Dix.js +0 -36
- package/Group-D7_8007y.js +0 -42
- package/Heading-RCRHv6hd.js +0 -15
- package/Hidden-CVlUgUJM.js +0 -37
- package/InfoBanner.css +0 -1
- package/Layout.css +0 -1
- package/Link-BnQvB-hH.js +0 -75
- package/Link.css +0 -1
- package/LinkButton.css +0 -1
- package/ListBox-DBBiqvcR.js +0 -474
- package/ListKeyboardDelegate-gCXy-Xnn.js +0 -172
- package/Logo.css +0 -1
- package/Modal.css +0 -1
- package/MultiSelect.css +0 -1
- package/PressResponder-B4g56kDz.js +0 -31
- package/RSPContexts-BW2SEIqe.js +0 -11
- package/Radio.css +0 -1
- package/SearchField.css +0 -1
- package/Select.css +0 -1
- package/SelectionManager-BfXUE1qg.js +0 -1031
- package/Separator-BBX9m2O2.js +0 -49
- package/Spinner.css +0 -1
- package/Table.css +0 -1
- package/Tabs.css +0 -1
- package/Tag-DWt0koFj.js +0 -728
- package/Tag.css +0 -1
- package/Text-BCF0xvqL.js +0 -15
- package/TextArea.css +0 -1
- package/TextField-CX4eOQf6.js +0 -225
- package/TextField.css +0 -1
- package/TextField.module-DdICj682.js +0 -143
- package/Toast.css +0 -1
- package/VisuallyHidden-Dhr5caPC.js +0 -39
- package/chevron-down-Cd1bkzXT.js +0 -13
- package/chevron-right-DBMc9VMi.js +0 -23
- package/clsx-OuTLNxxd.js +0 -16
- package/context-BpJLnOuu.js +0 -80
- package/createLucideIcon-DeWljiyi.js +0 -79
- package/index-B-jHjTDC.js +0 -120
- package/index-BPdc9gJ8.js +0 -3122
- package/index-KSgQWWiy.js +0 -26984
- package/index10.js +0 -4
- package/index11.js +0 -5
- package/index12.js +0 -4
- package/index13.js +0 -4
- package/index14.js +0 -4
- package/index15.js +0 -6
- package/index16.js +0 -6
- package/index17.js +0 -6
- package/index18.js +0 -4
- package/index19.js +0 -6
- package/index2.js +0 -8
- package/index20.js +0 -6
- package/index21.js +0 -4
- package/index22.js +0 -5
- package/index23.js +0 -5
- package/index24.js +0 -5
- package/index25.js +0 -6
- package/index26.js +0 -6
- package/index27.js +0 -6
- package/index28.js +0 -4
- package/index29.js +0 -6
- package/index3.js +0 -6
- package/index30.js +0 -21
- package/index31.js +0 -22
- package/index32.js +0 -14
- package/index33.js +0 -11
- package/index34.js +0 -31
- package/index35.js +0 -8
- package/index36.js +0 -9
- package/index37.js +0 -19
- package/index38.js +0 -9
- package/index39.js +0 -9
- package/index4.js +0 -4
- package/index40.js +0 -23
- package/index41.js +0 -63
- package/index42.js +0 -53
- package/index43.js +0 -18
- package/index44.js +0 -27
- package/index45.js +0 -18
- package/index46.js +0 -21
- package/index47.js +0 -49
- package/index48.js +0 -5
- package/index49.js +0 -25
- package/index5.js +0 -5
- package/index50.js +0 -18
- package/index51.js +0 -9
- package/index52.js +0 -25
- package/index53.js +0 -18
- package/index54.js +0 -11
- package/index55.js +0 -12
- package/index56.js +0 -15
- package/index57.js +0 -9
- package/index58.js +0 -9
- package/index59.js +0 -19
- package/index6.js +0 -4
- package/index60.js +0 -22
- package/index61.js +0 -61
- package/index62.js +0 -15
- package/index63.js +0 -11
- package/index64.js +0 -53
- package/index65.js +0 -85
- package/index66.js +0 -74
- package/index67.js +0 -24
- package/index68.js +0 -69
- package/index69.js +0 -80
- package/index7.js +0 -9
- package/index70.js +0 -140
- package/index71.js +0 -70
- package/index72.js +0 -42
- package/index73.js +0 -82
- package/index74.js +0 -71
- package/index75.js +0 -104
- package/index76.js +0 -275
- package/index77.js +0 -723
- package/index78.js +0 -489
- package/index79.js +0 -314
- package/index8.js +0 -4
- package/index80.js +0 -389
- package/index81.js +0 -252
- package/index82.js +0 -1364
- package/index83.js +0 -1009
- package/index84.js +0 -386
- package/index85.js +0 -2101
- package/index86.js +0 -2368
- package/index87.js +0 -6831
- package/index88.js +0 -17
- package/index89.js +0 -14
- package/index9.js +0 -5
- package/index90.js +0 -6
- package/index91.js +0 -9
- package/intlStrings-Cd44R5hT.js +0 -278
- package/react.esm-sMU8Z7rL.js +0 -11060
- package/triangle-alert-1OYl9KWz.js +0 -56
- package/useControlledState-Kv9K2AYu.js +0 -30
- package/useDescription-B7stiK3j.js +0 -32
- package/useEvent-Xk5kn5Ns.js +0 -21
- package/useField-DMzJIIN4.js +0 -67
- package/useFilter-Bt9dbV1U.js +0 -35
- package/useFocusRing-9PXyKy2A.js +0 -1297
- package/useFocusable-CcEBZe40.js +0 -59
- package/useGridSelectionCheckbox-DYgEnElE.js +0 -22
- package/useHasTabbableChild-D6DwR81L.js +0 -34
- package/useHighlightSelectionDescription-WYAbP4No.js +0 -552
- package/useLabels-9zaZ9oa0.js +0 -17
- package/useListState-BfTeKTk5.js +0 -119
- package/useLocalizedStringFormatter-BlCbn-hX.js +0 -96
- package/useSingleSelectListState-DPkaL0la.js +0 -34
- package/useUpdateEffect-Dtz-i14F.js +0 -12
- package/x-JK7i-TQC.js +0 -14
package/index50.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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();
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
const r = (e) => (
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
/* @__PURE__ */ o(a, { ...e, children: "Click" })
|
|
18
|
-
);
|
package/index51.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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();
|
|
8
|
-
});
|
|
9
|
-
});
|
package/index52.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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,
|
|
9
|
-
{
|
|
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
|
-
}
|
|
20
|
-
}
|
|
21
|
-
)
|
|
22
|
-
);
|
|
23
|
-
expect(e).toBeTruthy();
|
|
24
|
-
});
|
|
25
|
-
});
|
package/index53.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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();
|
|
17
|
-
});
|
|
18
|
-
});
|
package/index54.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { r as i } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
-
import { Grid as t } from "./index45.js";
|
|
4
|
-
describe("Grid", () => {
|
|
5
|
-
it("should render successfully", () => {
|
|
6
|
-
const { baseElement: e } = i(
|
|
7
|
-
/* @__PURE__ */ r(t, { children: /* @__PURE__ */ r("div", { children: "Item" }) })
|
|
8
|
-
);
|
|
9
|
-
expect(e).toBeTruthy();
|
|
10
|
-
});
|
|
11
|
-
});
|
package/index55.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { r as t } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
-
import { Flex as m } from "./index43.js";
|
|
4
|
-
import { FlexItem as o } from "./index44.js";
|
|
5
|
-
describe("Flex", () => {
|
|
6
|
-
it("should render successfully", () => {
|
|
7
|
-
const { baseElement: r } = t(
|
|
8
|
-
/* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(o, { children: "Item" }) })
|
|
9
|
-
);
|
|
10
|
-
expect(r).toBeTruthy();
|
|
11
|
-
});
|
|
12
|
-
});
|
package/index56.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { FileUpload as i } from "./index85.js";
|
|
3
|
-
import "./index-BPdc9gJ8.js";
|
|
4
|
-
import { j as t } from "./index-KSgQWWiy.js";
|
|
5
|
-
import { r as a } from "./react.esm-sMU8Z7rL.js";
|
|
6
|
-
expect.extend(t.toHaveNoViolations);
|
|
7
|
-
describe("given default fileupload", () => {
|
|
8
|
-
let e;
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
e = a(/* @__PURE__ */ o(r, { label: "Etikett" }));
|
|
11
|
-
}), it("should have no accessibility violations", async () => {
|
|
12
|
-
expect(await t.axe(e.container)).toHaveNoViolations();
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
const r = (e) => /* @__PURE__ */ o(i, { ...e });
|
package/index57.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { r as o } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
-
import { Dropdown as s } from "./index73.js";
|
|
4
|
-
describe("Dropdown", () => {
|
|
5
|
-
it("should render successfully", () => {
|
|
6
|
-
const { baseElement: r } = o(/* @__PURE__ */ e(s, {}));
|
|
7
|
-
expect(r).toBeTruthy();
|
|
8
|
-
});
|
|
9
|
-
});
|
package/index58.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { r as t } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
-
import { DatePicker as o } from "./index87.js";
|
|
4
|
-
describe("DatePicker", () => {
|
|
5
|
-
it("should render successfully", () => {
|
|
6
|
-
const { baseElement: e } = t(/* @__PURE__ */ r(o, { label: "Välj ett datum" }));
|
|
7
|
-
expect(e).toBeTruthy();
|
|
8
|
-
});
|
|
9
|
-
});
|
package/index59.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { r } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
-
import { ComboBox as t, ComboBoxItem as i } from "./index82.js";
|
|
4
|
-
describe("Combobox", () => {
|
|
5
|
-
it("should render successfully", () => {
|
|
6
|
-
const { baseElement: o } = r(
|
|
7
|
-
/* @__PURE__ */ e(
|
|
8
|
-
t,
|
|
9
|
-
{
|
|
10
|
-
description: "Beskrivning",
|
|
11
|
-
label: "Etikett",
|
|
12
|
-
placeholder: "One item...",
|
|
13
|
-
children: /* @__PURE__ */ e(i, { children: "Item A" })
|
|
14
|
-
}
|
|
15
|
-
)
|
|
16
|
-
);
|
|
17
|
-
expect(o).toBeTruthy();
|
|
18
|
-
});
|
|
19
|
-
});
|
package/index6.js
DELETED
package/index60.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { r as a } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
-
import "./index-BPdc9gJ8.js";
|
|
4
|
-
import { C as t } from "./Checkbox-q0dugR2t.js";
|
|
5
|
-
import { j as i } from "./index-KSgQWWiy.js";
|
|
6
|
-
expect.extend(i.toHaveNoViolations);
|
|
7
|
-
describe("given a default Checkbox", () => {
|
|
8
|
-
let e;
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
e = a(/* @__PURE__ */ o(r, {}));
|
|
11
|
-
}), it("should have no accessibility violations", async () => {
|
|
12
|
-
expect(await i.axe(e.container)).toHaveNoViolations();
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
const r = (e) => /* @__PURE__ */ o(
|
|
16
|
-
t,
|
|
17
|
-
{
|
|
18
|
-
"aria-label": "basic checkbox",
|
|
19
|
-
...e,
|
|
20
|
-
children: "Click"
|
|
21
|
-
}
|
|
22
|
-
);
|
package/index61.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import "./index-BPdc9gJ8.js";
|
|
3
|
-
import { r as o } from "./react.esm-sMU8Z7rL.js";
|
|
4
|
-
import { j as t } from "./index-KSgQWWiy.js";
|
|
5
|
-
import { Card as n } from "./index68.js";
|
|
6
|
-
expect.extend(t.toHaveNoViolations);
|
|
7
|
-
const a = { children: "Läs mer", href: "#" };
|
|
8
|
-
describe("given a default card", () => {
|
|
9
|
-
let e;
|
|
10
|
-
beforeEach(() => {
|
|
11
|
-
e = o(
|
|
12
|
-
/* @__PURE__ */ i(
|
|
13
|
-
r,
|
|
14
|
-
{
|
|
15
|
-
title: "Rubrik",
|
|
16
|
-
content: "Lorem ipsum",
|
|
17
|
-
link: a
|
|
18
|
-
}
|
|
19
|
-
)
|
|
20
|
-
);
|
|
21
|
-
}), it("should have no accessibility violations", async () => {
|
|
22
|
-
expect(await t.axe(e.container)).toHaveNoViolations();
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
describe("given a card with background", () => {
|
|
26
|
-
let e;
|
|
27
|
-
beforeEach(() => {
|
|
28
|
-
e = o(
|
|
29
|
-
/* @__PURE__ */ i(
|
|
30
|
-
r,
|
|
31
|
-
{
|
|
32
|
-
title: "Rubrik",
|
|
33
|
-
content: "Lorem ipsum",
|
|
34
|
-
background: !0,
|
|
35
|
-
link: a
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
);
|
|
39
|
-
}), it("should have no accessibility violations", async () => {
|
|
40
|
-
expect(await t.axe(e.container)).toHaveNoViolations();
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
describe("given a card with image", () => {
|
|
44
|
-
let e;
|
|
45
|
-
beforeEach(() => {
|
|
46
|
-
e = o(
|
|
47
|
-
/* @__PURE__ */ i(
|
|
48
|
-
r,
|
|
49
|
-
{
|
|
50
|
-
title: "Rubrik",
|
|
51
|
-
content: "Lorem ipsum",
|
|
52
|
-
image: { source: "", description: "" },
|
|
53
|
-
link: a
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
);
|
|
57
|
-
}), it("should have no accessibility violations", async () => {
|
|
58
|
-
expect(await t.axe(e.container)).toHaveNoViolations();
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
const r = (e) => /* @__PURE__ */ i(n, { ...e });
|
package/index62.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import "./index-BPdc9gJ8.js";
|
|
3
|
-
import { r as i } from "./react.esm-sMU8Z7rL.js";
|
|
4
|
-
import { Button as r } from "./index66.js";
|
|
5
|
-
import { j as o } from "./index-KSgQWWiy.js";
|
|
6
|
-
expect.extend(o.toHaveNoViolations);
|
|
7
|
-
describe("given a default button", () => {
|
|
8
|
-
let e;
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
e = i(/* @__PURE__ */ t(a, { children: "Click me!" }));
|
|
11
|
-
}), it("should have no accessibility violations", async () => {
|
|
12
|
-
expect(await o.axe(e.container)).toHaveNoViolations();
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
const a = (e) => /* @__PURE__ */ t(r, { ...e });
|
package/index63.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { r as s } from "./react.esm-sMU8Z7rL.js";
|
|
3
|
-
import { Breadcrumbs as t } from "./index81.js";
|
|
4
|
-
describe("Breadcrumbs", () => {
|
|
5
|
-
it("should render successfully", () => {
|
|
6
|
-
const { baseElement: e } = s(
|
|
7
|
-
/* @__PURE__ */ r(t, { items: [{ title: "Länk", href: "#" }] })
|
|
8
|
-
);
|
|
9
|
-
expect(e).toBeTruthy();
|
|
10
|
-
});
|
|
11
|
-
});
|
package/index64.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import "./index-BPdc9gJ8.js";
|
|
3
|
-
import { j as t } from "./index-KSgQWWiy.js";
|
|
4
|
-
import { r as n } from "./react.esm-sMU8Z7rL.js";
|
|
5
|
-
import { Accordion as c } from "./index40.js";
|
|
6
|
-
import { AccordionItem as s } from "./index41.js";
|
|
7
|
-
expect.extend(t.toHaveNoViolations);
|
|
8
|
-
const l = ["One", "Two", "Three"];
|
|
9
|
-
describe("given a single Accordion", () => {
|
|
10
|
-
let e;
|
|
11
|
-
describe("with default orientation=vertical", () => {
|
|
12
|
-
beforeEach(() => {
|
|
13
|
-
e = n(
|
|
14
|
-
/* @__PURE__ */ o(
|
|
15
|
-
a,
|
|
16
|
-
{
|
|
17
|
-
variant: "uncontained",
|
|
18
|
-
type: "single"
|
|
19
|
-
}
|
|
20
|
-
)
|
|
21
|
-
);
|
|
22
|
-
}), it("should have no accessibility violations in default state", async () => {
|
|
23
|
-
expect(await t.axe(e.container)).toHaveNoViolations();
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
describe("given a multiple Accordion", () => {
|
|
28
|
-
let e;
|
|
29
|
-
beforeEach(() => {
|
|
30
|
-
e = n(
|
|
31
|
-
/* @__PURE__ */ o(
|
|
32
|
-
a,
|
|
33
|
-
{
|
|
34
|
-
variant: "uncontained",
|
|
35
|
-
type: "multiple"
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
);
|
|
39
|
-
}), it("should have no accessibility violations in default state", async () => {
|
|
40
|
-
expect(await t.axe(e.container)).toHaveNoViolations();
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
const a = (e) => /* @__PURE__ */ o(c, { ...e, children: l.map((i) => /* @__PURE__ */ r(
|
|
44
|
-
s,
|
|
45
|
-
{
|
|
46
|
-
title: "En öppningsbar panel " + i.toLocaleLowerCase(),
|
|
47
|
-
children: [
|
|
48
|
-
"Innehåll i öppningsbarpanel ",
|
|
49
|
-
i
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
i
|
|
53
|
-
)) });
|
package/index65.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { $ as y, I as $, a as k } from "./TextField-CX4eOQf6.js";
|
|
3
|
-
import { T as _ } from "./TextField.module-DdICj682.js";
|
|
4
|
-
import * as E from "react";
|
|
5
|
-
import { c as A } from "./clsx-OuTLNxxd.js";
|
|
6
|
-
import './TextArea.css';const R = '"../theme/tokens.css"', T = '"Inter", sans-serif', W = "#ffdfdf", F = "(max-width: 767px)", I = "#f2f2f2", N = "#e6e6e6", S = "#bfbfbf", V = "#000000", j = "#e62323", w = "#2e7ca5", B = "500", v = "400", D = "#1f1f1f", q = "0 0 0 2px #ffffff, 0 0 0 4px #000000", z = "_textArea_1tbo6_4", G = "_count_1tbo6_40", H = "_countExceeded_1tbo6_48", o = {
|
|
7
|
-
tokens: R,
|
|
8
|
-
display: T,
|
|
9
|
-
signalRed10: W,
|
|
10
|
-
smBreakpoint: F,
|
|
11
|
-
gray10: I,
|
|
12
|
-
gray20: N,
|
|
13
|
-
gray50: S,
|
|
14
|
-
black: V,
|
|
15
|
-
signalRed100: j,
|
|
16
|
-
blue100: w,
|
|
17
|
-
mediumWeight: B,
|
|
18
|
-
regularWeight: v,
|
|
19
|
-
inputText: D,
|
|
20
|
-
focus: q,
|
|
21
|
-
textArea: z,
|
|
22
|
-
count: G,
|
|
23
|
-
countExceeded: H
|
|
24
|
-
}, O = ({
|
|
25
|
-
label: u,
|
|
26
|
-
description: i,
|
|
27
|
-
rows: f,
|
|
28
|
-
maxCharacters: t,
|
|
29
|
-
errorMessage: d,
|
|
30
|
-
showCounter: g,
|
|
31
|
-
validate: r,
|
|
32
|
-
...p
|
|
33
|
-
}) => {
|
|
34
|
-
const [s, m] = E.useState(""), a = (e) => {
|
|
35
|
-
const c = e.target.value;
|
|
36
|
-
m(c);
|
|
37
|
-
}, x = () => t ? /* @__PURE__ */ l(
|
|
38
|
-
"span",
|
|
39
|
-
{
|
|
40
|
-
className: A(
|
|
41
|
-
o.count,
|
|
42
|
-
s.length > t && o.countExceeded
|
|
43
|
-
),
|
|
44
|
-
children: [
|
|
45
|
-
s.length,
|
|
46
|
-
" / ",
|
|
47
|
-
t
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
) : g ? /* @__PURE__ */ n("span", { className: o.count, children: s.length }) : null, b = (e) => {
|
|
51
|
-
const c = t && e.length > t ? `Du har angett ${e.length - t} tecken för mycket. Fältet är begränsat till ${t} tecken.` : null, h = r ? r(e) : null;
|
|
52
|
-
return c || h || !0;
|
|
53
|
-
};
|
|
54
|
-
return /* @__PURE__ */ n(
|
|
55
|
-
y,
|
|
56
|
-
{
|
|
57
|
-
className: _.inputField,
|
|
58
|
-
validate: b,
|
|
59
|
-
...p,
|
|
60
|
-
children: /* @__PURE__ */ l(
|
|
61
|
-
$,
|
|
62
|
-
{
|
|
63
|
-
label: u,
|
|
64
|
-
description: i,
|
|
65
|
-
errorMessage: d,
|
|
66
|
-
children: [
|
|
67
|
-
/* @__PURE__ */ n(x, {}),
|
|
68
|
-
/* @__PURE__ */ n(
|
|
69
|
-
k,
|
|
70
|
-
{
|
|
71
|
-
className: o.textArea,
|
|
72
|
-
rows: f,
|
|
73
|
-
onFocus: a,
|
|
74
|
-
onChange: a
|
|
75
|
-
}
|
|
76
|
-
)
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
export {
|
|
84
|
-
O as TextArea
|
|
85
|
-
};
|
package/index66.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { jsx as c, jsxs as f, Fragment as m } from "react/jsx-runtime";
|
|
2
|
-
import { $ as _ } from "./Button-DL6nqUco.js";
|
|
3
|
-
import { c as g } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
import './Button.css';const y = '"../theme/tokens.css"', u = "#143c50", b = "#25607f", h = "#4289ad", p = '"Inter", sans-serif', R = "1rem", k = "500", x = "#ffffff", w = "#bfbfbf", B = "#f2f2f2", v = "#e6e6e6", $ = "#000000", z = "undefined", S = "(max-width: 767px)", j = "0 0 0 2px #ffffff, 0 0 0 4px #000000", W = "#e62323", F = "#b31b1b", I = "#801313", N = "_button_1tedv_4", q = "_primary_1tedv_36", A = "_secondary_1tedv_42", D = "_tertiary_1tedv_66", E = "_iconBtn_1tedv_88", G = "_danger_1tedv_109", H = "_iconRight_1tedv_131", J = "_fullwidth_1tedv_135", K = "_small_1tedv_139", t = {
|
|
5
|
-
tokens: y,
|
|
6
|
-
blue150: u,
|
|
7
|
-
blue130: b,
|
|
8
|
-
blue90: h,
|
|
9
|
-
display: p,
|
|
10
|
-
desktopSize: R,
|
|
11
|
-
mediumWeight: k,
|
|
12
|
-
white: x,
|
|
13
|
-
gray50: w,
|
|
14
|
-
gray10: B,
|
|
15
|
-
gray20: v,
|
|
16
|
-
black: $,
|
|
17
|
-
medium: z,
|
|
18
|
-
smBreakpoint: S,
|
|
19
|
-
focus: j,
|
|
20
|
-
signalRed100: W,
|
|
21
|
-
signalRed130: F,
|
|
22
|
-
signalRed150: I,
|
|
23
|
-
button: N,
|
|
24
|
-
primary: q,
|
|
25
|
-
secondary: A,
|
|
26
|
-
tertiary: D,
|
|
27
|
-
iconBtn: E,
|
|
28
|
-
danger: G,
|
|
29
|
-
iconRight: H,
|
|
30
|
-
fullwidth: J,
|
|
31
|
-
small: K
|
|
32
|
-
}, P = ({
|
|
33
|
-
variant: e = "primary",
|
|
34
|
-
fullwidth: i,
|
|
35
|
-
className: r,
|
|
36
|
-
iconPlacement: d,
|
|
37
|
-
size: n,
|
|
38
|
-
icon: s,
|
|
39
|
-
iconSize: a,
|
|
40
|
-
...o
|
|
41
|
-
}) => {
|
|
42
|
-
const l = n === "small" ? 14 : a || 20;
|
|
43
|
-
return /* @__PURE__ */ c(
|
|
44
|
-
_,
|
|
45
|
-
{
|
|
46
|
-
className: g(
|
|
47
|
-
t.button,
|
|
48
|
-
e === "primary" && t.primary,
|
|
49
|
-
e === "secondary" && t.secondary,
|
|
50
|
-
e === "tertiary" && t.tertiary,
|
|
51
|
-
e === "danger" && t.danger,
|
|
52
|
-
e === "icon" && t.iconBtn,
|
|
53
|
-
i && t.fullwidth,
|
|
54
|
-
n === "small" && t.small,
|
|
55
|
-
d === "right" && t.iconRight,
|
|
56
|
-
r
|
|
57
|
-
),
|
|
58
|
-
...o,
|
|
59
|
-
children: /* @__PURE__ */ f(m, { children: [
|
|
60
|
-
s && /* @__PURE__ */ c(
|
|
61
|
-
s,
|
|
62
|
-
{
|
|
63
|
-
"aria-hidden": !0,
|
|
64
|
-
size: l
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
o.children
|
|
68
|
-
] })
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
export {
|
|
73
|
-
P as Button
|
|
74
|
-
};
|
package/index67.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as e } from "./clsx-OuTLNxxd.js";
|
|
3
|
-
import './ButtonGroup.css';const p = '"../theme/tokens.css"', a = "(max-width: 767px)", u = "_buttonGroup_5pd8y_4", c = {
|
|
4
|
-
tokens: p,
|
|
5
|
-
smBreakpoint: a,
|
|
6
|
-
buttonGroup: u
|
|
7
|
-
}, l = ({
|
|
8
|
-
children: o,
|
|
9
|
-
className: t,
|
|
10
|
-
"aria-label": s,
|
|
11
|
-
...r
|
|
12
|
-
}) => /* @__PURE__ */ n(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
role: "group",
|
|
16
|
-
"aria-label": s,
|
|
17
|
-
className: e(c.buttonGroup, t),
|
|
18
|
-
...r,
|
|
19
|
-
children: o
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
export {
|
|
23
|
-
l as ButtonGroup
|
|
24
|
-
};
|
package/index68.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { jsxs as o, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { Link as _ } from "./index74.js";
|
|
3
|
-
import { c as m } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
import { $ as B } from "./useFocusRing-9PXyKy2A.js";
|
|
5
|
-
import './Card.css';const g = '"../theme/tokens.css"', h = '"Inter", sans-serif', b = "#ffffff", u = "#e6e6e6", k = "#f2f2f2", p = "#1f1f1f", v = "#d5e5ed", x = "#000000", y = "500", j = "250ms", N = "_card_vbecj_4", T = "_content_vbecj_33", w = "_heading_vbecj_39", L = "_image_vbecj_47", W = "_background_vbecj_56", C = "_text_vbecj_60", t = {
|
|
6
|
-
tokens: g,
|
|
7
|
-
display: h,
|
|
8
|
-
white: b,
|
|
9
|
-
gray20: u,
|
|
10
|
-
gray10: k,
|
|
11
|
-
gray150: p,
|
|
12
|
-
blue20: v,
|
|
13
|
-
black: x,
|
|
14
|
-
mediumWeight: y,
|
|
15
|
-
fastTransition: j,
|
|
16
|
-
card: N,
|
|
17
|
-
content: T,
|
|
18
|
-
heading: w,
|
|
19
|
-
image: L,
|
|
20
|
-
background: W,
|
|
21
|
-
text: C
|
|
22
|
-
}, q = ({
|
|
23
|
-
image: e,
|
|
24
|
-
background: a,
|
|
25
|
-
title: r,
|
|
26
|
-
content: i,
|
|
27
|
-
link: d,
|
|
28
|
-
headingTag: l = "h1",
|
|
29
|
-
customImageComponent: c,
|
|
30
|
-
customLinkComponent: f,
|
|
31
|
-
...n
|
|
32
|
-
}) => /* @__PURE__ */ o(
|
|
33
|
-
"div",
|
|
34
|
-
{
|
|
35
|
-
className: m(
|
|
36
|
-
t.card,
|
|
37
|
-
a && t.background,
|
|
38
|
-
n.className
|
|
39
|
-
),
|
|
40
|
-
...n,
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ o("div", { className: t.content, children: [
|
|
43
|
-
c || (e == null ? void 0 : e.source) && /* @__PURE__ */ s(
|
|
44
|
-
"img",
|
|
45
|
-
{
|
|
46
|
-
src: e.source,
|
|
47
|
-
alt: e.description,
|
|
48
|
-
className: t.image
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ s(l, { className: t.heading, children: r }),
|
|
52
|
-
/* @__PURE__ */ s("p", { className: t.text, children: i })
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ s(
|
|
55
|
-
_,
|
|
56
|
-
{
|
|
57
|
-
...d,
|
|
58
|
-
standalone: !0,
|
|
59
|
-
stretched: !0,
|
|
60
|
-
as: f
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
export {
|
|
67
|
-
q as Card,
|
|
68
|
-
B as RouterProvider
|
|
69
|
-
};
|
package/index69.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { jsxs as e, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import * as m from "react";
|
|
3
|
-
import { c as _ } from "./clsx-OuTLNxxd.js";
|
|
4
|
-
import { Button as g } from "./index66.js";
|
|
5
|
-
import { X as h } from "./x-JK7i-TQC.js";
|
|
6
|
-
import { C as u, I as p, a as B, T as w } from "./triangle-alert-1OYl9KWz.js";
|
|
7
|
-
import './InfoBanner.css';const b = '"../theme/tokens.css"', x = '"Inter", sans-serif', N = "#d5f2d9", k = "#008d3c", v = "#eaf2f6", I = "#0066cc", R = "#fff8e1", C = "#f1c21b", G = "#ffdfdf", S = "#e62323", Y = "#000000", j = "600", y = "_infoBanner_cn873_4", z = "_success_cn873_12", A = "_info_cn873_4", T = "_important_cn873_22", W = "_warning_cn873_27", $ = "_content_cn873_36", M = "_heading_cn873_42", P = "_text_cn873_47", X = "_icon_cn873_52", q = "_dismissable_cn873_57", n = {
|
|
8
|
-
tokens: b,
|
|
9
|
-
display: x,
|
|
10
|
-
signalGreen10: N,
|
|
11
|
-
signalGreen100: k,
|
|
12
|
-
signalBlue10: v,
|
|
13
|
-
signalBlue100: I,
|
|
14
|
-
signalYellow10: R,
|
|
15
|
-
signalYellow100: C,
|
|
16
|
-
signalRed10: G,
|
|
17
|
-
signalRed100: S,
|
|
18
|
-
black: Y,
|
|
19
|
-
semiBoldWeight: j,
|
|
20
|
-
infoBanner: y,
|
|
21
|
-
success: z,
|
|
22
|
-
info: A,
|
|
23
|
-
important: T,
|
|
24
|
-
warning: W,
|
|
25
|
-
content: $,
|
|
26
|
-
heading: M,
|
|
27
|
-
text: P,
|
|
28
|
-
icon: X,
|
|
29
|
-
dismissable: q
|
|
30
|
-
}, D = {
|
|
31
|
-
success: u,
|
|
32
|
-
info: p,
|
|
33
|
-
important: B,
|
|
34
|
-
warning: w
|
|
35
|
-
}, L = ({
|
|
36
|
-
title: c,
|
|
37
|
-
message: a,
|
|
38
|
-
type: i,
|
|
39
|
-
children: t,
|
|
40
|
-
dismissable: l = !1,
|
|
41
|
-
...o
|
|
42
|
-
}) => {
|
|
43
|
-
const r = D[i], [d, f] = m.useState(!0);
|
|
44
|
-
return d ? /* @__PURE__ */ e(
|
|
45
|
-
"div",
|
|
46
|
-
{
|
|
47
|
-
className: _(n.infoBanner, n[i], o.className),
|
|
48
|
-
...o,
|
|
49
|
-
children: [
|
|
50
|
-
/* @__PURE__ */ s(
|
|
51
|
-
r,
|
|
52
|
-
{
|
|
53
|
-
size: 20,
|
|
54
|
-
"aria-hidden": !0,
|
|
55
|
-
className: n.icon
|
|
56
|
-
}
|
|
57
|
-
),
|
|
58
|
-
/* @__PURE__ */ e("div", { className: n.content, children: [
|
|
59
|
-
c && /* @__PURE__ */ s("strong", { className: n.heading, children: c }),
|
|
60
|
-
/* @__PURE__ */ e("div", { className: n.text, children: [
|
|
61
|
-
a,
|
|
62
|
-
t
|
|
63
|
-
] })
|
|
64
|
-
] }),
|
|
65
|
-
l && /* @__PURE__ */ s("div", { className: n.dismissable, children: /* @__PURE__ */ s(
|
|
66
|
-
g,
|
|
67
|
-
{
|
|
68
|
-
variant: "icon",
|
|
69
|
-
"aria-label": "Stäng",
|
|
70
|
-
onPress: () => f(!1),
|
|
71
|
-
children: /* @__PURE__ */ s(h, { size: 20 })
|
|
72
|
-
}
|
|
73
|
-
) })
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
) : null;
|
|
77
|
-
};
|
|
78
|
-
export {
|
|
79
|
-
L as InfoBanner
|
|
80
|
-
};
|