@midas-ds/components 16.5.2 → 16.5.3

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.
@@ -1,4 +1,4 @@
1
- import { S as c } from "../chunks/Select-CaSZY6w_.js";
1
+ import { S as c } from "../chunks/Select-CRUskZeu.js";
2
2
  export {
3
3
  c as LegacySelect
4
4
  };
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.2",
17
+ "version": "16.5.3",
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.9.6",
44
+ "@midas-ds/theme": "3.10.0",
45
45
  "react-aria-components": "1.14.0"
46
46
  }
47
47
  }
@@ -1,4 +1,4 @@
1
- import { S as a } from "../chunks/SearchField-C493CTGJ.js";
1
+ import { S as a } from "../chunks/SearchField-Cd05nl-B.js";
2
2
  export {
3
3
  a as SearchField
4
4
  };
package/select/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as r } from "../chunks/Select-D9db38XE.js";
1
+ import { S as r } from "../chunks/Select-Bc7Qj5UC.js";
2
2
  export {
3
3
  r as Select
4
4
  };
@@ -1,4 +1,4 @@
1
- import { I as s, b as t, a as x, T } from "../chunks/TextArea-kEpt5DKm.js";
1
+ import { I as s, b as t, a as x, T } from "../chunks/TextArea-VkipFRQc.js";
2
2
  export {
3
3
  s as Input,
4
4
  t as TextArea,
@@ -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
- };