@midas-ds/components 16.8.6 → 17.0.1
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 +16 -0
- package/accordion/Accordion.d.ts +0 -4
- package/accordion/AccordionContext.d.ts +2 -2
- package/accordion/index.d.ts +0 -1
- package/assets/DateRangePicker.css +1 -1
- package/assets/Text.css +1 -1
- package/breadcrumbs/Breadcrumbs.d.ts +0 -6
- package/breadcrumbs/index.js +1 -1
- package/calendar/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/Breadcrumb-CHldDcyz.js +37 -0
- package/chunks/{CheckboxGroup-DSXCj_ho.js → CheckboxGroup-DooCBqUG.js} +2 -2
- package/chunks/ComboBox-XaJDIr5h.js +101 -0
- package/chunks/{DateField-zdUv4ooW.js → DateField-6CclHfL2.js} +2 -2
- package/chunks/{DateRangePicker-D6lnN0ox.js → DateRangePicker-BoL-sn9u.js} +54 -54
- package/chunks/{FieldError-C_3uLAGY.js → FieldError-BMTrvSof.js} +1 -1
- package/chunks/ListBoxHeader-CL9bFH22.js +63 -0
- package/chunks/ListBoxPopover-DOmhA5xx.js +20 -0
- package/chunks/{Radio-Bp-JwJid.js → Radio-CAIyBgBp.js} +2 -2
- package/chunks/{RangeCalendar-h9wkh43W.js → RangeCalendar-DIMxoHhy.js} +1 -1
- package/chunks/{SearchField-Dcs9LjKo.js → SearchField-aUMEFhOO.js} +1 -1
- package/chunks/{Select-w2o-VyrP.js → Select-CzmgPK8V.js} +2 -2
- package/chunks/Text-BuXvuoqM.js +36 -0
- package/chunks/{TextArea-Bb7H-w23.js → TextArea-B3Z4fA1e.js} +2 -2
- package/combobox/ComboBox.d.ts +1 -11
- package/combobox/index.d.ts +1 -1
- package/combobox/index.js +2 -4
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/field-error/index.js +1 -1
- package/index.d.ts +0 -1
- package/index.js +125 -129
- package/list-box/ListBoxSection.d.ts +3 -11
- package/list-box/index.d.ts +0 -1
- package/list-box/index.js +8 -8
- package/menu/Menu.d.ts +0 -7
- package/package.json +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/text/Text.d.ts +0 -8
- package/text/Text.stories.d.ts +0 -2
- package/text/index.js +1 -1
- package/textfield/TextArea.stories.d.ts +4 -4
- package/textfield/index.js +1 -1
- package/tooltip/Tooltip.d.ts +1 -5
- package/tooltip/Tooltip.stories.d.ts +2 -2
- package/tooltip/index.d.ts +0 -1
- package/assets/Select2.css +0 -1
- package/chunks/Breadcrumb-W7qQSxd-.js +0 -70
- package/chunks/ComboBox-B7T13rzp.js +0 -109
- package/chunks/ListBoxLoadMoreItem-ufPaJaNS.js +0 -41
- package/chunks/ListBoxSection-C4y3K7T5.js +0 -49
- package/chunks/Select-BYz3DdXs.js +0 -576
- package/chunks/Text-Bxww8mmL.js +0 -39
- package/legacy-select/HiddenMultiSelect.d.ts +0 -48
- package/legacy-select/LegacySelect.stories.d.ts +0 -27
- package/legacy-select/MultiSelectValueTag.d.ts +0 -11
- package/legacy-select/Select.d.ts +0 -8
- package/legacy-select/SelectFieldError.d.ts +0 -8
- package/legacy-select/SelectListBox.d.ts +0 -8
- package/legacy-select/SelectTrigger.d.ts +0 -10
- package/legacy-select/index.d.ts +0 -2
- package/legacy-select/index.js +0 -4
- package/legacy-select/intl/translations.json.d.ts +0 -17
- package/legacy-select/types.d.ts +0 -179
- package/legacy-select/useMultiSelect.d.ts +0 -5
- package/legacy-select/useMultiSelectListState.d.ts +0 -3
- package/legacy-select/useMultiSelectState.d.ts +0 -3
- package/list-box/types.d.ts +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 17.0.1 (2026-02-16)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **components,datepicker:** fix calendar icon btn placement in firefox ([1107d2aeea](https://github.com/migrationsverket/midas/commit/1107d2aeea))
|
|
6
|
+
|
|
7
|
+
# 17.0.0 (2026-02-16)
|
|
8
|
+
|
|
9
|
+
### 🚀 Features
|
|
10
|
+
|
|
11
|
+
- **components, select, combobox:** extend type for sections ([1c964f7b40](https://github.com/migrationsverket/midas/commit/1c964f7b40))
|
|
12
|
+
|
|
13
|
+
### 📖 Documentation changes
|
|
14
|
+
|
|
15
|
+
- release notes for v17.0.0 ([18f6b788a5](https://github.com/migrationsverket/midas/commit/18f6b788a5))
|
|
16
|
+
|
|
1
17
|
## 16.8.6 (2026-02-16)
|
|
2
18
|
|
|
3
19
|
### 🧱 Updated Dependencies
|
package/accordion/Accordion.d.ts
CHANGED
|
@@ -10,10 +10,6 @@ export interface AccordionProps extends DisclosureGroupProps {
|
|
|
10
10
|
**/
|
|
11
11
|
size?: Size;
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated since v 16.4.1 please use AccordionProps instead
|
|
15
|
-
*/
|
|
16
|
-
export type MidasAccordion = AccordionProps;
|
|
17
13
|
/**
|
|
18
14
|
* Accordions help reduce visual clutter on a page by organizing content into collapsible sections.
|
|
19
15
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type AccordionContextValue = Pick<
|
|
1
|
+
import { AccordionProps } from './Accordion';
|
|
2
|
+
export type AccordionContextValue = Pick<AccordionProps, 'isContained' | 'size'>;
|
|
3
3
|
export declare const AccordionContext: import('react').Context<AccordionContextValue | undefined>;
|
package/accordion/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._datePicker_11j8a_1{font-family:var(--midas-typography-font-family);display:flex;flex-direction:column;align-items:flex-start}._inputField_11j8a_8{box-sizing:border-box;width:100%;height:var(--midas-size-150);align-items:center;background-color:var(--midas-field-01-base);border-bottom:1px solid var(--midas-border-color-primary);padding-left:1rem;display:flex;justify-content:flex-start;gap:1rem}@media(forced-colors:active){._inputField_11j8a_8{border:1px solid var(--midas-border-color-primary)}}._inputField_11j8a_8._medium_11j8a_24{height:var(--midas-size-130)}._inputField_11j8a_8[data-disabled]{cursor:not-allowed;border-color:var(--midas-border-color-disabled)}._inputField_11j8a_8:focus-visible,._inputField_11j8a_8[data-focus-visible]{outline:none}._inputField_11j8a_8[data-invalid]{border:none;box-shadow:var(--midas-state-invalid)}@media(forced-colors:active){._inputField_11j8a_8[data-invalid]{border:1px solid var(--midas-border-color-primary)}}._inputField_11j8a_8._readOnly_11j8a_47{background-color:transparent;border-color:var(--midas-border-color-subtle)}._inputField_11j8a_8 ._buttonGroup_11j8a_52{display:flex;margin-left:auto;height:100%}._inputField_11j8a_8 ._iconButton_11j8a_58{height:100%;aspect-ratio:1;border:none;padding:0}._inputField_11j8a_8 ._iconButton_11j8a_58[data-disabled]{background-color:transparent}._inputField_11j8a_8 ._iconButton_11j8a_58:focus-visible,._inputField_11j8a_8 ._iconButton_11j8a_58[data-focus-visible]{outline:none;box-shadow:var(--midas-state-focus-inset)}@media(forced-colors:active){._inputField_11j8a_8 ._iconButton_11j8a_58:focus-visible,._inputField_11j8a_8 ._iconButton_11j8a_58[data-focus-visible]{outline:3px solid highlight;outline-offset:2px}}._dialog_11j8a_81{box-shadow:0 3px 5px #0003}
|
package/assets/Text.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._body_1ecyu_1,._body-small_1ecyu_2,._description_1ecyu_3,._description-small_1ecyu_4{color:var(--midas-text-primary)}._body_1ecyu_1{font:var(--midas-typography-body)}._body_1ecyu_1[data-expressive]{line-height:var(--midas-typography-line-height-50)}._body-small_1ecyu_2{font:var(--midas-typography-body-small)}._description-small_1ecyu_4{font:var(--midas-typography-description-small)}._bold_1ecyu_24{font-weight:700}._italic_1ecyu_28{font-style:italic}._description_1ecyu_3{font:var(--midas-typography-description);margin-bottom:var(--midas-spacing-30)}._description_1ecyu_3>[data-disabled],[data-disabled] ._description_1ecyu_3{color:var(--midas-text-disabled)}@media(forced-colors:active){._description_1ecyu_3>[data-disabled],[data-disabled] ._description_1ecyu_3{color:GrayText}}._description_1ecyu_3>[data-readonly],[data-readonly] ._description_1ecyu_3{color:var(--midas-text-read-only)}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import { BreadcrumbsProps as AriaBreadcrumbsProps } from 'react-aria-components';
|
|
2
|
-
/** @deprecated since v16.6.3 Use the compound `<Breadcrumbs>` + `<Breadcrumb>` API instead. */
|
|
3
|
-
export interface BreadcrumbItem {
|
|
4
|
-
href: string;
|
|
5
|
-
title: string;
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
}
|
|
8
2
|
export type BreadcrumbsProps<T> = AriaBreadcrumbsProps<T>;
|
|
9
3
|
export declare const Breadcrumbs: <T extends object>({ className, ...rest }: BreadcrumbsProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/breadcrumbs/index.js
CHANGED
package/calendar/index.js
CHANGED
package/checkbox/index.js
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as s, jsxs as m, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { Breadcrumbs as u, Breadcrumb as p } from "react-aria-components";
|
|
3
|
+
import { c as e } from "./clsx-AexbMWKp.js";
|
|
4
|
+
import '../assets/Breadcrumb.css';const d = "_container_zw1qy_1", l = "_separator_zw1qy_20", o = {
|
|
5
|
+
container: d,
|
|
6
|
+
separator: l
|
|
7
|
+
}, f = ({
|
|
8
|
+
className: a,
|
|
9
|
+
...r
|
|
10
|
+
}) => /* @__PURE__ */ s(
|
|
11
|
+
u,
|
|
12
|
+
{
|
|
13
|
+
className: e(o.container, a),
|
|
14
|
+
...r
|
|
15
|
+
}
|
|
16
|
+
), x = ({
|
|
17
|
+
className: a,
|
|
18
|
+
children: r,
|
|
19
|
+
...c
|
|
20
|
+
}) => /* @__PURE__ */ s(
|
|
21
|
+
p,
|
|
22
|
+
{
|
|
23
|
+
className: e(a),
|
|
24
|
+
...c,
|
|
25
|
+
children: (t) => {
|
|
26
|
+
const n = !t.isCurrent;
|
|
27
|
+
return /* @__PURE__ */ m(i, { children: [
|
|
28
|
+
typeof r == "function" ? r(t) : r,
|
|
29
|
+
n ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: o.separator, children: "/" }) : null
|
|
30
|
+
] });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
export {
|
|
35
|
+
x as B,
|
|
36
|
+
f as a
|
|
37
|
+
};
|
|
@@ -2,11 +2,11 @@ import { jsx as o, jsxs as h } from "react/jsx-runtime";
|
|
|
2
2
|
import { useCheckboxGroup as C } from "react-aria";
|
|
3
3
|
import { useCheckboxGroupState as v } from "react-stately";
|
|
4
4
|
import { a as k, L as S } from "./Label-6GZmmff9.js";
|
|
5
|
-
import { T as y } from "./Text-
|
|
5
|
+
import { T as y } from "./Text-BuXvuoqM.js";
|
|
6
6
|
import * as r from "react";
|
|
7
7
|
import { C as d, s as u, a as g } from "./Checkbox-CRLj7_Ox.js";
|
|
8
8
|
import { FieldErrorContext as A } from "react-aria-components";
|
|
9
|
-
import { F as P } from "./FieldError-
|
|
9
|
+
import { F as P } from "./FieldError-BMTrvSof.js";
|
|
10
10
|
import { u as V } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
11
11
|
const F = (e, { value: t }) => {
|
|
12
12
|
const a = r.Children.toArray(e).filter(
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import y from "react";
|
|
4
|
+
import { ComboBox as F, Input as w, Button as v } from "react-aria-components";
|
|
5
|
+
import { c as s } from "./clsx-AexbMWKp.js";
|
|
6
|
+
import { a as R, L as N } from "./Label-6GZmmff9.js";
|
|
7
|
+
import { T as u } from "./Text-BuXvuoqM.js";
|
|
8
|
+
import { F as p } from "./FieldError-BMTrvSof.js";
|
|
9
|
+
import { L as S } from "./ListBox-D5BBeZWL.js";
|
|
10
|
+
import { L as B } from "./ListBoxPopover-DOmhA5xx.js";
|
|
11
|
+
import { C } from "./chevron-down-BBFYYzZq.js";
|
|
12
|
+
import { u as g } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
13
|
+
import '../assets/ComboBox.css';const E = "_combobox_1m9te_1", T = "_inputField_1m9te_6", j = "_medium_1m9te_27", I = "_wrap_1m9te_79", O = "_button_1m9te_85", U = "_icon_1m9te_121", z = "_emptyState_1m9te_127", o = {
|
|
14
|
+
combobox: E,
|
|
15
|
+
inputField: T,
|
|
16
|
+
medium: j,
|
|
17
|
+
wrap: I,
|
|
18
|
+
button: O,
|
|
19
|
+
icon: U,
|
|
20
|
+
emptyState: z
|
|
21
|
+
}, D = { showList: "Show list", noResultsFound: "No results found" }, M = { showList: "Visa lista", noResultsFound: "Inga träffar" }, V = {
|
|
22
|
+
en: D,
|
|
23
|
+
sv: M
|
|
24
|
+
};
|
|
25
|
+
function X({
|
|
26
|
+
label: r,
|
|
27
|
+
description: i,
|
|
28
|
+
errorMessage: a,
|
|
29
|
+
children: f,
|
|
30
|
+
items: _,
|
|
31
|
+
className: h,
|
|
32
|
+
errorPosition: n = "top",
|
|
33
|
+
size: m = "large",
|
|
34
|
+
popover: b,
|
|
35
|
+
...e
|
|
36
|
+
}) {
|
|
37
|
+
const d = y.useRef(null), c = g(V), x = (L) => {
|
|
38
|
+
L.currentTarget.value && d.current?.select();
|
|
39
|
+
};
|
|
40
|
+
return /* @__PURE__ */ l(
|
|
41
|
+
F,
|
|
42
|
+
{
|
|
43
|
+
className: s(o.combobox, h),
|
|
44
|
+
...e,
|
|
45
|
+
"data-readonly": e.isReadOnly || void 0,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ t(R, { popover: b, children: r && /* @__PURE__ */ t(N, { children: r }) }),
|
|
48
|
+
i && /* @__PURE__ */ t(u, { slot: "description", children: i }),
|
|
49
|
+
n === "top" && /* @__PURE__ */ t(p, { "data-testid": "fieldError", children: a }),
|
|
50
|
+
/* @__PURE__ */ l("div", { className: o.wrap, children: [
|
|
51
|
+
/* @__PURE__ */ t(
|
|
52
|
+
w,
|
|
53
|
+
{
|
|
54
|
+
className: s(o.inputField, {
|
|
55
|
+
[o.medium]: m === "medium"
|
|
56
|
+
}),
|
|
57
|
+
"data-readonly": e.isReadOnly || void 0,
|
|
58
|
+
onMouseUp: x,
|
|
59
|
+
ref: d
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ t(
|
|
63
|
+
v,
|
|
64
|
+
{
|
|
65
|
+
className: s(o.button, {
|
|
66
|
+
[o.medium]: m === "medium"
|
|
67
|
+
}),
|
|
68
|
+
"aria-label": c.format("showList"),
|
|
69
|
+
children: /* @__PURE__ */ t(
|
|
70
|
+
"div",
|
|
71
|
+
{
|
|
72
|
+
className: o.icon,
|
|
73
|
+
"aria-hidden": "true",
|
|
74
|
+
children: /* @__PURE__ */ t(
|
|
75
|
+
C,
|
|
76
|
+
{
|
|
77
|
+
size: 20,
|
|
78
|
+
"aria-hidden": !0
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }),
|
|
86
|
+
n === "bottom" && /* @__PURE__ */ t(p, { "data-testid": "fieldError", children: a }),
|
|
87
|
+
/* @__PURE__ */ t(B, { offset: 4, children: /* @__PURE__ */ t(
|
|
88
|
+
S,
|
|
89
|
+
{
|
|
90
|
+
items: _,
|
|
91
|
+
renderEmptyState: () => /* @__PURE__ */ t(u, { className: o.emptyState, children: c.format("noResultsFound") }),
|
|
92
|
+
children: f
|
|
93
|
+
}
|
|
94
|
+
) })
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
X as C
|
|
101
|
+
};
|
|
@@ -3,9 +3,9 @@ import * as x from "react";
|
|
|
3
3
|
import { DateField as g, DateFieldStateContext as h } from "react-aria-components";
|
|
4
4
|
import { c as d } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import { D, b as B } from "./DateInputDivider-DwopMIb9.js";
|
|
6
|
-
import { F } from "./FieldError-
|
|
6
|
+
import { F } from "./FieldError-BMTrvSof.js";
|
|
7
7
|
import { a as C, L as b } from "./Label-6GZmmff9.js";
|
|
8
|
-
import { T as L } from "./Text-
|
|
8
|
+
import { T as L } from "./Text-BuXvuoqM.js";
|
|
9
9
|
import { C as S } from "./ClearButton-DPm_d7SL.js";
|
|
10
10
|
import { FocusScope as v, useFocusManager as N } from "@react-aria/focus";
|
|
11
11
|
import { u as V } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as e, jsxs as h } from "react/jsx-runtime";
|
|
3
|
-
import { Group as x, DatePickerStateContext as F, DateRangePickerStateContext as
|
|
3
|
+
import { Group as x, DatePickerStateContext as F, DateRangePickerStateContext as j, Popover as B, Dialog as M, DatePicker as S, DateRangePicker as N } from "react-aria-components";
|
|
4
4
|
import { a as k } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { C as
|
|
6
|
-
import { D as _, b as f, a as
|
|
7
|
-
import { F as P } from "./FieldError-
|
|
5
|
+
import { C as R, R as G } from "./RangeCalendar-DIMxoHhy.js";
|
|
6
|
+
import { D as _, b as f, a as L } from "./DateInputDivider-DwopMIb9.js";
|
|
7
|
+
import { F as P } from "./FieldError-BMTrvSof.js";
|
|
8
8
|
import { a as y, L as v } from "./Label-6GZmmff9.js";
|
|
9
|
-
import { T as D } from "./Text-
|
|
9
|
+
import { T as D } from "./Text-BuXvuoqM.js";
|
|
10
10
|
import * as g from "react";
|
|
11
|
-
import { C as
|
|
12
|
-
import { FocusScope as
|
|
11
|
+
import { C as I } from "./ClearButton-DPm_d7SL.js";
|
|
12
|
+
import { FocusScope as V, useFocusManager as w } from "@react-aria/focus";
|
|
13
13
|
import { B as O } from "./Button-CaLOUTDO.js";
|
|
14
14
|
import { c as T } from "./createLucideIcon-CP-mMPfa.js";
|
|
15
15
|
import { u as $ } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
@@ -27,7 +27,7 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
27
27
|
], W = T("calendar-days", E), q = { clear: "Clear date" }, A = { clear: "Rensa datum" }, H = {
|
|
28
28
|
en: q,
|
|
29
29
|
sv: A
|
|
30
|
-
}, J = "
|
|
30
|
+
}, J = "_datePicker_11j8a_1", K = "_inputField_11j8a_8", Q = "_medium_11j8a_24", U = "_readOnly_11j8a_47", X = "_buttonGroup_11j8a_52", Y = "_iconButton_11j8a_58", Z = "_dialog_11j8a_81", o = {
|
|
31
31
|
datePicker: J,
|
|
32
32
|
inputField: K,
|
|
33
33
|
medium: Q,
|
|
@@ -41,18 +41,18 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
41
41
|
isReadOnly: i,
|
|
42
42
|
size: a
|
|
43
43
|
}) => {
|
|
44
|
-
const
|
|
44
|
+
const r = g.useContext(F), s = g.useContext(j), u = $(H), l = w(), n = s ?? r, p = z(n) ? !!n.value.start && n.value.end : !!n?.value;
|
|
45
45
|
return t && p && !i ? /* @__PURE__ */ e(
|
|
46
|
-
|
|
46
|
+
I,
|
|
47
47
|
{
|
|
48
48
|
onPress: () => {
|
|
49
|
-
|
|
49
|
+
n?.setValue(null), l?.focusFirst();
|
|
50
50
|
},
|
|
51
51
|
size: a,
|
|
52
52
|
isDisabled: c,
|
|
53
53
|
"aria-label": u.format("clear"),
|
|
54
|
-
className: k(
|
|
55
|
-
[
|
|
54
|
+
className: k(o.iconButton, {
|
|
55
|
+
[o.medium]: a === "medium"
|
|
56
56
|
})
|
|
57
57
|
}
|
|
58
58
|
) : null;
|
|
@@ -61,37 +61,37 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
61
61
|
isDisabled: c,
|
|
62
62
|
isInvalid: i,
|
|
63
63
|
isReadOnly: a,
|
|
64
|
-
size:
|
|
64
|
+
size: r = "large",
|
|
65
65
|
isClearable: s = !1
|
|
66
66
|
}) => /* @__PURE__ */ e(
|
|
67
67
|
x,
|
|
68
68
|
{
|
|
69
|
-
className: k(
|
|
70
|
-
[
|
|
71
|
-
[
|
|
69
|
+
className: k(o.inputField, {
|
|
70
|
+
[o.medium]: r === "medium",
|
|
71
|
+
[o.readOnly]: a
|
|
72
72
|
}),
|
|
73
|
-
children: /* @__PURE__ */ h(
|
|
73
|
+
children: /* @__PURE__ */ h(V, { children: [
|
|
74
74
|
t,
|
|
75
|
-
/* @__PURE__ */ h("div", { className:
|
|
75
|
+
/* @__PURE__ */ h("div", { className: o.buttonGroup, children: [
|
|
76
76
|
/* @__PURE__ */ e(
|
|
77
77
|
ee,
|
|
78
78
|
{
|
|
79
79
|
isClearable: s,
|
|
80
80
|
isDisabled: c,
|
|
81
81
|
isReadOnly: a,
|
|
82
|
-
size:
|
|
82
|
+
size: r
|
|
83
83
|
}
|
|
84
84
|
),
|
|
85
85
|
/* @__PURE__ */ e(
|
|
86
86
|
O,
|
|
87
87
|
{
|
|
88
88
|
variant: "icon",
|
|
89
|
-
className: k(
|
|
90
|
-
[
|
|
91
|
-
[
|
|
89
|
+
className: k(o.iconButton, {
|
|
90
|
+
[o.medium]: r === "medium",
|
|
91
|
+
[o.readOnly]: a
|
|
92
92
|
}),
|
|
93
93
|
"data-invalid": i || void 0,
|
|
94
|
-
size:
|
|
94
|
+
size: r,
|
|
95
95
|
children: /* @__PURE__ */ e(
|
|
96
96
|
W,
|
|
97
97
|
{
|
|
@@ -106,42 +106,42 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
106
106
|
}
|
|
107
107
|
), b = ({
|
|
108
108
|
children: t
|
|
109
|
-
}) => /* @__PURE__ */ e(
|
|
109
|
+
}) => /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(M, { className: o.dialog, children: t }) }), he = ({
|
|
110
110
|
className: t,
|
|
111
111
|
description: c,
|
|
112
112
|
errorMessage: i,
|
|
113
113
|
errorPosition: a = "top",
|
|
114
|
-
label:
|
|
114
|
+
label: r,
|
|
115
115
|
popover: s,
|
|
116
116
|
isClearable: u = !1,
|
|
117
|
-
isReadOnly:
|
|
118
|
-
isDisabled:
|
|
117
|
+
isReadOnly: l,
|
|
118
|
+
isDisabled: n,
|
|
119
119
|
size: p,
|
|
120
|
-
...
|
|
120
|
+
...d
|
|
121
121
|
}) => /* @__PURE__ */ h(
|
|
122
|
-
|
|
122
|
+
S,
|
|
123
123
|
{
|
|
124
|
-
className: k(
|
|
125
|
-
isReadOnly:
|
|
126
|
-
isDisabled:
|
|
127
|
-
...
|
|
124
|
+
className: k(o.datePicker, t),
|
|
125
|
+
isReadOnly: l,
|
|
126
|
+
isDisabled: n,
|
|
127
|
+
...d,
|
|
128
128
|
children: [
|
|
129
|
-
/* @__PURE__ */ e(y, { popover: s, children:
|
|
129
|
+
/* @__PURE__ */ e(y, { popover: s, children: r && /* @__PURE__ */ e(v, { children: r }) }),
|
|
130
130
|
c && /* @__PURE__ */ e(D, { slot: "description", children: c }),
|
|
131
131
|
a === "top" && /* @__PURE__ */ e(P, { children: i }),
|
|
132
132
|
/* @__PURE__ */ e(
|
|
133
133
|
C,
|
|
134
134
|
{
|
|
135
135
|
isClearable: u,
|
|
136
|
-
isReadOnly:
|
|
137
|
-
isDisabled:
|
|
136
|
+
isReadOnly: l,
|
|
137
|
+
isDisabled: n,
|
|
138
138
|
size: p,
|
|
139
|
-
...
|
|
139
|
+
...d,
|
|
140
140
|
children: /* @__PURE__ */ e(_, { children: (m) => /* @__PURE__ */ e(f, { segment: m }) })
|
|
141
141
|
}
|
|
142
142
|
),
|
|
143
143
|
a === "bottom" && /* @__PURE__ */ e(P, { children: i }),
|
|
144
|
-
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
|
|
144
|
+
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(R, {}) })
|
|
145
145
|
]
|
|
146
146
|
}
|
|
147
147
|
), ke = ({
|
|
@@ -149,41 +149,41 @@ import '../assets/DateRangePicker.css';const E = [
|
|
|
149
149
|
description: c,
|
|
150
150
|
errorMessage: i,
|
|
151
151
|
errorPosition: a = "top",
|
|
152
|
-
label:
|
|
152
|
+
label: r,
|
|
153
153
|
popover: s,
|
|
154
154
|
isClearable: u = !1,
|
|
155
|
-
isReadOnly:
|
|
156
|
-
isDisabled:
|
|
155
|
+
isReadOnly: l,
|
|
156
|
+
isDisabled: n,
|
|
157
157
|
size: p,
|
|
158
|
-
...
|
|
158
|
+
...d
|
|
159
159
|
}) => /* @__PURE__ */ h(
|
|
160
|
-
|
|
160
|
+
N,
|
|
161
161
|
{
|
|
162
|
-
className: k(
|
|
163
|
-
isReadOnly:
|
|
164
|
-
isDisabled:
|
|
165
|
-
...
|
|
162
|
+
className: k(o.datePicker, t),
|
|
163
|
+
isReadOnly: l,
|
|
164
|
+
isDisabled: n,
|
|
165
|
+
...d,
|
|
166
166
|
children: [
|
|
167
|
-
/* @__PURE__ */ e(y, { popover: s, children:
|
|
167
|
+
/* @__PURE__ */ e(y, { popover: s, children: r && /* @__PURE__ */ e(v, { children: r }) }),
|
|
168
168
|
c && /* @__PURE__ */ e(D, { slot: "description", children: c }),
|
|
169
169
|
a === "top" && /* @__PURE__ */ e(P, { children: i }),
|
|
170
170
|
/* @__PURE__ */ h(
|
|
171
171
|
C,
|
|
172
172
|
{
|
|
173
173
|
isClearable: u,
|
|
174
|
-
isReadOnly:
|
|
175
|
-
isDisabled:
|
|
174
|
+
isReadOnly: l,
|
|
175
|
+
isDisabled: n,
|
|
176
176
|
size: p,
|
|
177
|
-
...
|
|
177
|
+
...d,
|
|
178
178
|
children: [
|
|
179
179
|
/* @__PURE__ */ e(_, { slot: "start", children: (m) => /* @__PURE__ */ e(f, { segment: m }) }),
|
|
180
|
-
/* @__PURE__ */ e(
|
|
180
|
+
/* @__PURE__ */ e(L, {}),
|
|
181
181
|
/* @__PURE__ */ e(_, { slot: "end", children: (m) => /* @__PURE__ */ e(f, { segment: m }) })
|
|
182
182
|
]
|
|
183
183
|
}
|
|
184
184
|
),
|
|
185
185
|
a === "bottom" && /* @__PURE__ */ e(P, { children: i }),
|
|
186
|
-
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
|
|
186
|
+
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(G, {}) })
|
|
187
187
|
]
|
|
188
188
|
}
|
|
189
189
|
);
|
|
@@ -2,7 +2,7 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as n, useContext as f } from "react";
|
|
3
3
|
import { FieldErrorContext as c, FieldError as d } from "react-aria-components";
|
|
4
4
|
import { c as a } from "./clsx-AexbMWKp.js";
|
|
5
|
-
import { T as m } from "./Text-
|
|
5
|
+
import { T as m } from "./Text-BuXvuoqM.js";
|
|
6
6
|
import '../assets/FieldError.css';const E = "_fieldError_u3cks_1", u = {
|
|
7
7
|
fieldError: E
|
|
8
8
|
}, x = n(
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as o, jsxs as m, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as i } from "./clsx-AexbMWKp.js";
|
|
3
|
+
import { s as e } from "./ListBox-D5BBeZWL.js";
|
|
4
|
+
import { ListBoxItem as x, ListBoxSection as d, ListBoxLoadMoreItem as l, Header as L } from "react-aria-components";
|
|
5
|
+
import { S as B } from "./Spinner-CfKMn18u.js";
|
|
6
|
+
import { u as p } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
7
|
+
const v = ({ className: t, children: s, ...a }) => /* @__PURE__ */ o(
|
|
8
|
+
"button",
|
|
9
|
+
{
|
|
10
|
+
type: "button",
|
|
11
|
+
className: i(e.listBoxItem, e.listBoxButton, t),
|
|
12
|
+
...a,
|
|
13
|
+
children: s
|
|
14
|
+
}
|
|
15
|
+
), H = ({
|
|
16
|
+
children: t,
|
|
17
|
+
className: s,
|
|
18
|
+
textValue: a,
|
|
19
|
+
...n
|
|
20
|
+
}) => /* @__PURE__ */ o(
|
|
21
|
+
x,
|
|
22
|
+
{
|
|
23
|
+
className: i(e.listBoxItem, s),
|
|
24
|
+
textValue: a || (typeof t == "string" ? t : void 0),
|
|
25
|
+
...n,
|
|
26
|
+
children: (r) => /* @__PURE__ */ o("div", { className: e.textContent, children: typeof t == "function" ? t(r) : t })
|
|
27
|
+
}
|
|
28
|
+
), $ = (t) => /* @__PURE__ */ o(d, { ...t }), u = { "loading...": "Loading..." }, f = { "loading...": "Laddar..." }, g = {
|
|
29
|
+
en: u,
|
|
30
|
+
sv: f
|
|
31
|
+
}, h = ({
|
|
32
|
+
className: t,
|
|
33
|
+
children: s,
|
|
34
|
+
isLoading: a,
|
|
35
|
+
...n
|
|
36
|
+
}) => {
|
|
37
|
+
const r = p(g);
|
|
38
|
+
return /* @__PURE__ */ o(
|
|
39
|
+
l,
|
|
40
|
+
{
|
|
41
|
+
className: i(e.listBoxLoadMoreItem, t),
|
|
42
|
+
isLoading: a,
|
|
43
|
+
...n,
|
|
44
|
+
children: s || /* @__PURE__ */ m(c, { children: [
|
|
45
|
+
/* @__PURE__ */ o(B, { small: !0 }),
|
|
46
|
+
/* @__PURE__ */ o("span", { "aria-hidden": !0, children: r.format("loading...") })
|
|
47
|
+
] })
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}, j = ({ className: t, ...s }) => /* @__PURE__ */ o(
|
|
51
|
+
L,
|
|
52
|
+
{
|
|
53
|
+
className: i(e.listBoxSectionHeading, t),
|
|
54
|
+
...s
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
export {
|
|
58
|
+
v as L,
|
|
59
|
+
j as a,
|
|
60
|
+
H as b,
|
|
61
|
+
h as c,
|
|
62
|
+
$ as d
|
|
63
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as m } from "./clsx-AexbMWKp.js";
|
|
3
|
+
import { Popover as e } from "react-aria-components";
|
|
4
|
+
import { s as p } from "./ListBox-D5BBeZWL.js";
|
|
5
|
+
const c = ({
|
|
6
|
+
className: o,
|
|
7
|
+
children: r,
|
|
8
|
+
...s
|
|
9
|
+
}) => /* @__PURE__ */ t(
|
|
10
|
+
e,
|
|
11
|
+
{
|
|
12
|
+
className: m(o, p.listBoxPopover),
|
|
13
|
+
offset: 0,
|
|
14
|
+
...s,
|
|
15
|
+
children: r
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
export {
|
|
19
|
+
c as L
|
|
20
|
+
};
|
|
@@ -3,8 +3,8 @@ import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
|
3
3
|
import { Radio as u, RadioGroup as _, Group as f } from "react-aria-components";
|
|
4
4
|
import { c as p } from "./clsx-AexbMWKp.js";
|
|
5
5
|
import { a as G, L as R } from "./Label-6GZmmff9.js";
|
|
6
|
-
import { T as h } from "./Text-
|
|
7
|
-
import { F as t } from "./FieldError-
|
|
6
|
+
import { T as h } from "./Text-BuXvuoqM.js";
|
|
7
|
+
import { F as t } from "./FieldError-BMTrvSof.js";
|
|
8
8
|
import '../assets/Radio.css';const x = "_radioGroup_1ls9z_1", w = "_wrap_1ls9z_12", z = "_radio_1ls9z_1", s = {
|
|
9
9
|
radioGroup: x,
|
|
10
10
|
wrap: w,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { RangeCalendarContext as h, CalendarGrid as C, CalendarCell as g, Calendar as v, RangeCalendar as _ } from "react-aria-components";
|
|
3
3
|
import { c as p, a as l } from "./clsx-AexbMWKp.js";
|
|
4
|
-
import { F as c } from "./FieldError-
|
|
4
|
+
import { F as c } from "./FieldError-BMTrvSof.js";
|
|
5
5
|
import * as y from "react";
|
|
6
6
|
import { B as i } from "./Button-CaLOUTDO.js";
|
|
7
7
|
import { H as f } from "./Heading-D8tNNJkt.js";
|
|
@@ -7,7 +7,7 @@ import { c as l } from "./clsx-AexbMWKp.js";
|
|
|
7
7
|
import * as x from "react";
|
|
8
8
|
import { useSearchFieldState as j } from "react-stately";
|
|
9
9
|
import { useSearchField as p } from "react-aria";
|
|
10
|
-
import { F as _ } from "./FieldError-
|
|
10
|
+
import { F as _ } from "./FieldError-BMTrvSof.js";
|
|
11
11
|
import { c as B } from "./createLucideIcon-CP-mMPfa.js";
|
|
12
12
|
import { u as D } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|
|
13
13
|
import '../assets/SearchField.css';const E = [
|
|
@@ -3,8 +3,8 @@ import { SelectStateContext as d, SelectValue as _, Button as h, TagList as j, S
|
|
|
3
3
|
import { FocusScope as C } from "@react-aria/focus";
|
|
4
4
|
import { a as N, L as x } from "./Label-6GZmmff9.js";
|
|
5
5
|
import { a as b, c as T } from "./clsx-AexbMWKp.js";
|
|
6
|
-
import { T as y } from "./Text-
|
|
7
|
-
import { F as g } from "./FieldError-
|
|
6
|
+
import { T as y } from "./Text-BuXvuoqM.js";
|
|
7
|
+
import { F as g } from "./FieldError-BMTrvSof.js";
|
|
8
8
|
import p, { useContext as f } from "react";
|
|
9
9
|
import { C as B } from "./Checkbox-CRLj7_Ox.js";
|
|
10
10
|
import { u as m } from "./useLocalizedStringFormatter-BHvsRxDk.js";
|