@midas-ds/components 16.5.2 → 16.5.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 +27 -0
- package/assets/DateField.css +1 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Select2.css +1 -1
- package/assets/TextField.css +1 -1
- package/assets/default.css +1 -1
- package/chunks/DateField-CuNWL_ao.js +91 -0
- package/chunks/{DateRangePicker-DQB5TrfF.js → DateRangePicker-jqrHTmLu.js} +45 -45
- package/chunks/{SearchField-C493CTGJ.js → SearchField-Cd05nl-B.js} +1 -1
- package/chunks/{Select-D9db38XE.js → Select-BpSIhRl_.js} +50 -50
- package/chunks/{Select-CaSZY6w_.js → Select-CRUskZeu.js} +127 -127
- package/chunks/{TextArea-kEpt5DKm.js → TextArea-VkipFRQc.js} +1 -1
- package/chunks/TextField.module-B3n8v1vH.js +13 -0
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/grid/Grid.stories.d.ts +4 -6
- package/index.js +6 -6
- package/legacy-select/index.js +1 -1
- package/package.json +2 -2
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/textfield/index.js +1 -1
- package/chunks/DateField-CodiOrfY.js +0 -91
- package/chunks/TextField.module-DZslrEPC.js +0 -13
package/index.js
CHANGED
|
@@ -10,9 +10,9 @@ import { C as R } from "./chunks/Checkbox-BTAfwDxU.js";
|
|
|
10
10
|
import { C as F } from "./chunks/CheckboxGroup-C5NpRdqR.js";
|
|
11
11
|
import { C as v } from "./chunks/ColorSchemeSwitch-CaqrCGTA.js";
|
|
12
12
|
import { C as h, a as H, b as y } from "./chunks/ComboBox-BrpJ6b7d.js";
|
|
13
|
-
import { D as N } from "./chunks/DateField-
|
|
13
|
+
import { D as N } from "./chunks/DateField-CuNWL_ao.js";
|
|
14
14
|
import { a as E, b as Q, D as Z } from "./chunks/DateInputDivider-CkTB5q5k.js";
|
|
15
|
-
import { D as q, a as J } from "./chunks/DateRangePicker-
|
|
15
|
+
import { D as q, a as J } from "./chunks/DateRangePicker-jqrHTmLu.js";
|
|
16
16
|
import { F as O } from "./chunks/FieldError-Bra5aRT3.js";
|
|
17
17
|
import { D as V, F as W } from "./chunks/FileUpload-h1PxqQmb.js";
|
|
18
18
|
import { G as Y } from "./chunks/Grid-B-WgMwON.js";
|
|
@@ -28,16 +28,16 @@ import { M as Bo } from "./chunks/Dialog-DRpxD3Gh.js";
|
|
|
28
28
|
import { P as So } from "./chunks/Popover-BcEtFiU1.js";
|
|
29
29
|
import { P as Io } from "./chunks/ProgressBar-KQdaaME2.js";
|
|
30
30
|
import { R as Po, a as Ro } from "./chunks/Radio-Clk616ep.js";
|
|
31
|
-
import { S as Fo } from "./chunks/SearchField-
|
|
32
|
-
import { S as vo } from "./chunks/Select-
|
|
33
|
-
import { S as ho } from "./chunks/Select-
|
|
31
|
+
import { S as Fo } from "./chunks/SearchField-Cd05nl-B.js";
|
|
32
|
+
import { S as vo } from "./chunks/Select-BpSIhRl_.js";
|
|
33
|
+
import { S as ho } from "./chunks/Select-CRUskZeu.js";
|
|
34
34
|
import { S as yo } from "./chunks/Skeleton-DqIHQLQl.js";
|
|
35
35
|
import { S as No } from "./chunks/Spinner-tvJ7rPiT.js";
|
|
36
36
|
import { b as Eo, C as Qo, R as Zo, T as jo, c as qo, a as Jo } from "./chunks/Table-BgsgXhC_.js";
|
|
37
37
|
import { a as Oo, c as Uo, b as Vo, T as Wo } from "./chunks/TabList-D2XV5ixe.js";
|
|
38
38
|
import { T as Yo, a as _o } from "./chunks/Tag-CZrQBEgv.js";
|
|
39
39
|
import { T as oa } from "./chunks/Text-TWzJxnto.js";
|
|
40
|
-
import { I as ra, b as ea, a as ta, T as sa } from "./chunks/TextArea-
|
|
40
|
+
import { I as ra, b as ea, a as ta, T as sa } from "./chunks/TextArea-VkipFRQc.js";
|
|
41
41
|
import { G as xa, b as ma, T as ia, a as fa, t as na } from "./chunks/Toast-BehM7JJP.js";
|
|
42
42
|
import { T as Ta, a as la } from "./chunks/ToggleButtonGroup-CXKTrLbb.js";
|
|
43
43
|
import { T as Ca, a as ga } from "./chunks/Tooltip-m032jGgF.js";
|
package/legacy-select/index.js
CHANGED
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"description": "Midas Components",
|
|
15
15
|
"homepage": "https://designsystem.migrationsverket.se/",
|
|
16
16
|
"license": "CC0-1.0",
|
|
17
|
-
"version": "16.5.
|
|
17
|
+
"version": "16.5.4",
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "./index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"./*": "./*/index.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@midas-ds/theme": "3.
|
|
44
|
+
"@midas-ds/theme": "3.10.0",
|
|
45
45
|
"react-aria-components": "1.14.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/search-field/index.js
CHANGED
package/select/index.js
CHANGED
package/textfield/index.js
CHANGED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import * as x from "react";
|
|
3
|
-
import { DateField as h, DateFieldStateContext as D } from "react-aria-components";
|
|
4
|
-
import { c as d } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { a as g, D as B } from "./DateInputDivider-CkTB5q5k.js";
|
|
6
|
-
import { F } from "./FieldError-Bra5aRT3.js";
|
|
7
|
-
import { a as C, L as b } from "./Label-xWKvOuML.js";
|
|
8
|
-
import { T as w } from "./Text-TWzJxnto.js";
|
|
9
|
-
import { C as y } from "./ClearButton-Dtkd_M_7.js";
|
|
10
|
-
import { FocusScope as L, useFocusManager as S } from "@react-aria/focus";
|
|
11
|
-
import { u as v } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
12
|
-
import '../assets/DateField.css';const N = { clear: "Clear date" }, V = { clear: "Rensa datum" }, j = {
|
|
13
|
-
en: N,
|
|
14
|
-
sv: V
|
|
15
|
-
}, T = "_dateField_1ywx9_1", E = "_inputField_1ywx9_7", I = "_medium_1ywx9_38", M = "_clearButton_1ywx9_47", s = {
|
|
16
|
-
dateField: T,
|
|
17
|
-
inputField: E,
|
|
18
|
-
medium: I,
|
|
19
|
-
clearButton: M
|
|
20
|
-
}, P = ({
|
|
21
|
-
isClearable: i,
|
|
22
|
-
size: t,
|
|
23
|
-
isDisabled: o,
|
|
24
|
-
isReadOnly: r
|
|
25
|
-
}) => {
|
|
26
|
-
const l = v(j), a = x.useContext(D), n = S(), m = () => {
|
|
27
|
-
a?.setValue(null), n?.focusFirst();
|
|
28
|
-
};
|
|
29
|
-
return i && a?.value != null && !r ? /* @__PURE__ */ e(
|
|
30
|
-
y,
|
|
31
|
-
{
|
|
32
|
-
onPress: m,
|
|
33
|
-
size: t,
|
|
34
|
-
isDisabled: o,
|
|
35
|
-
"aria-label": l.format("clear"),
|
|
36
|
-
className: d(s.clearButton, {
|
|
37
|
-
[s.medium]: t === "medium"
|
|
38
|
-
})
|
|
39
|
-
}
|
|
40
|
-
) : null;
|
|
41
|
-
}, Q = ({
|
|
42
|
-
className: i,
|
|
43
|
-
description: t,
|
|
44
|
-
errorMessage: o,
|
|
45
|
-
errorPosition: r = "top",
|
|
46
|
-
label: l,
|
|
47
|
-
size: a = "large",
|
|
48
|
-
popover: n,
|
|
49
|
-
isClearable: m = !1,
|
|
50
|
-
isReadOnly: c,
|
|
51
|
-
isDisabled: u,
|
|
52
|
-
...f
|
|
53
|
-
}) => /* @__PURE__ */ p(
|
|
54
|
-
h,
|
|
55
|
-
{
|
|
56
|
-
...f,
|
|
57
|
-
isReadOnly: c,
|
|
58
|
-
isDisabled: u,
|
|
59
|
-
className: d(s.dateField, i),
|
|
60
|
-
children: [
|
|
61
|
-
/* @__PURE__ */ e(C, { popover: n, children: l && /* @__PURE__ */ e(b, { children: l }) }),
|
|
62
|
-
t && /* @__PURE__ */ e(w, { slot: "description", children: t }),
|
|
63
|
-
r === "top" && /* @__PURE__ */ e(F, { children: o }),
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
"div",
|
|
66
|
-
{
|
|
67
|
-
className: d(s.inputField, {
|
|
68
|
-
[s.medium]: a === "medium"
|
|
69
|
-
}),
|
|
70
|
-
"data-testid": "date-field_input-field",
|
|
71
|
-
children: /* @__PURE__ */ p(L, { children: [
|
|
72
|
-
/* @__PURE__ */ e(g, { children: (_) => /* @__PURE__ */ e(B, { segment: _ }) }),
|
|
73
|
-
/* @__PURE__ */ e(
|
|
74
|
-
P,
|
|
75
|
-
{
|
|
76
|
-
isClearable: m,
|
|
77
|
-
size: a,
|
|
78
|
-
isDisabled: u,
|
|
79
|
-
isReadOnly: c
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
] })
|
|
83
|
-
}
|
|
84
|
-
),
|
|
85
|
-
r === "bottom" && /* @__PURE__ */ e(F, { children: o })
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
export {
|
|
90
|
-
Q as D
|
|
91
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import '../assets/TextField.css';const t = "_textField_tqy18_1", o = "_bottomError_tqy18_20", s = "_textArea_tqy18_29", _ = "_input_tqy18_30", r = "_wrap_tqy18_87", e = "_medium_tqy18_92", n = "_passwordText_tqy18_120", a = "_passwordButton_tqy18_167", p = {
|
|
2
|
-
textField: t,
|
|
3
|
-
bottomError: o,
|
|
4
|
-
textArea: s,
|
|
5
|
-
input: _,
|
|
6
|
-
wrap: r,
|
|
7
|
-
medium: e,
|
|
8
|
-
passwordText: n,
|
|
9
|
-
passwordButton: a
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
p as s
|
|
13
|
-
};
|