@midas-ds/components 17.34.1 → 17.36.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 +34 -0
- package/accordion/index.js +1 -1
- package/assets/empty-state.css +1 -0
- package/assets/file-list.css +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +1 -1
- package/card/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{accordion-DCylOvk-.js → accordion-gXivv8Ra.js} +2 -2
- package/chunks/{button-Vq0ARno3.js → button-BZHl22O1.js} +15 -12
- package/chunks/{calendar-CdKnEG5o.js → calendar-uy8xBuNV.js} +5 -5
- package/chunks/{card-mIB1NewO.js → card-CFy9gV47.js} +2 -2
- package/chunks/{checkbox-BAYWLn77.js → checkbox-_8t0WxFw.js} +3 -3
- package/chunks/{clear-button-q2aTPqmU.js → clear-button-BBOWDvaE.js} +1 -1
- package/chunks/{color-scheme-switch-D--ppbpi.js → color-scheme-switch-CZGgC68M.js} +1 -1
- package/chunks/{combobox-DC8escnY.js → combobox-Ck-7IepP.js} +4 -4
- package/chunks/{date-field-B6STeIzX.js → date-field-DkypCMfi.js} +4 -4
- package/chunks/{date-picker-DCFHCDjr.js → date-picker-Cn9qhe2G.js} +7 -7
- package/chunks/empty-state-CnDZoO65.js +40 -0
- package/chunks/{field-error-C5ynuTRu.js → field-error-CUYIkJWj.js} +1 -1
- package/chunks/file-list-k2ZZ-OB2.js +167 -0
- package/chunks/heading-0P5rm7xK.js +31 -0
- package/chunks/{info-banner-DxN9h_6W.js → info-banner-CFmkzyL-.js} +1 -1
- package/chunks/{label-aX8yboSc.js → label-Biu5Hi7b.js} +2 -2
- package/chunks/{layout-CHum4Cpf.js → layout-BwW7Scqj.js} +1 -1
- package/chunks/{list-box-Cs65YWMd.js → list-box-Cyiu3Rq7.js} +1 -1
- package/chunks/{modal-RqzWc_NN.js → modal-DvTcNZNd.js} +2 -2
- package/chunks/{progress-bar-BHdz8PFO.js → progress-bar-BvueZ-dg.js} +1 -1
- package/chunks/{radio-D0PA15IV.js → radio-Li_ZoHYq.js} +3 -3
- package/chunks/{search-field-CfgBVzAV.js → search-field-BdS63CpD.js} +4 -4
- package/chunks/{select-C0o_SEd0.js → select-b6vie6hj.js} +6 -6
- package/chunks/{table-EjKTmTGr.js → table-Cvg_n39H.js} +1 -1
- package/chunks/{tag-BNARNuvq.js → tag-vxSxMsqS.js} +1 -1
- package/chunks/text-CtvUKU-v.js +28 -0
- package/chunks/{textfield-BWv4mP4v.js → textfield-i0dO0qgs.js} +4 -4
- package/chunks/{time-field-KpetgpDY.js → time-field-BG2BH5HH.js} +5 -5
- package/chunks/{toast-BO158amn.js → toast-CZHBaKdY.js} +1 -1
- package/clear-button/index.js +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/empty-state/EmptyState.d.ts +12 -0
- package/empty-state/empty-state-actions/EmptyStateActions.d.ts +3 -0
- package/empty-state/empty-state-actions/index.d.ts +1 -0
- package/empty-state/empty-state-heading/EmptyStateHeading.d.ts +3 -0
- package/empty-state/empty-state-heading/index.d.ts +1 -0
- package/empty-state/empty-state-text/EmptyStateText.d.ts +3 -0
- package/empty-state/empty-state-text/index.d.ts +1 -0
- package/empty-state/empty-state-visual/EmptyStateVisual.d.ts +3 -0
- package/empty-state/empty-state-visual/index.d.ts +1 -0
- package/empty-state/index.d.ts +5 -0
- package/empty-state/index.js +1 -0
- package/field-error/index.js +1 -1
- package/file-list/FileList.d.ts +4 -0
- package/file-list/FileListItem.d.ts +24 -8
- package/file-list/index.js +1 -1
- package/file-list/intl/translations.json.d.ts +4 -2
- package/heading/Heading.d.ts +1 -2
- package/heading/index.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +40 -39
- package/info-banner/index.js +1 -1
- package/label/index.js +1 -1
- package/layout/index.js +1 -1
- package/list-box/index.js +1 -1
- package/modal/index.js +1 -1
- package/package.json +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/table/index.js +1 -1
- package/tag/index.js +1 -1
- package/text/Text.d.ts +1 -2
- package/text/index.js +1 -1
- package/textfield/index.js +1 -1
- package/time-field/index.js +1 -1
- package/toast/index.js +1 -1
- package/chunks/file-list-BqPDm31w.js +0 -138
- package/chunks/heading-CIlMdywy.js +0 -30
- package/chunks/text-D7tnzTru.js +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
## 17.36.0 (2026-11-18)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **components,file-list:** allow preview for failed uploads ([9eefa45ed7b](https://github.com/migrationsverket/midas/commit/9eefa45ed7b))
|
|
6
|
+
- **components,file-list:** add an optional preview button ([cdce6cff9e3](https://github.com/migrationsverket/midas/commit/cdce6cff9e3))
|
|
7
|
+
|
|
8
|
+
### 🏭 Refactoring
|
|
9
|
+
|
|
10
|
+
- **components,file-list:** move preview focus handling into the row ([7a53427809e](https://github.com/migrationsverket/midas/commit/7a53427809e))
|
|
11
|
+
|
|
12
|
+
### 📖 Documentation changes
|
|
13
|
+
|
|
14
|
+
- **components,file-list:** describe all FileListItem props ([8d4a432c5c0](https://github.com/migrationsverket/midas/commit/8d4a432c5c0))
|
|
15
|
+
|
|
16
|
+
### 🔧 Maintenance
|
|
17
|
+
|
|
18
|
+
- **components,file-list:** hide the modal preview story ([bb6cfe9063b](https://github.com/migrationsverket/midas/commit/bb6cfe9063b))
|
|
19
|
+
|
|
20
|
+
### 🧪 Tests updated
|
|
21
|
+
|
|
22
|
+
- update visual regression screenshots ([0ce17025cfb](https://github.com/migrationsverket/midas/commit/0ce17025cfb))
|
|
23
|
+
|
|
24
|
+
## 17.35.0 (2026-11-17)
|
|
25
|
+
|
|
26
|
+
### 🚀 Features
|
|
27
|
+
|
|
28
|
+
- **components,empty-state:** new component EmptyState ([b25edcf1703](https://github.com/migrationsverket/midas/commit/b25edcf1703))
|
|
29
|
+
- **components,text,heading:** forward refs ([27348f56bcc](https://github.com/migrationsverket/midas/commit/27348f56bcc))
|
|
30
|
+
|
|
31
|
+
### 🩹 Fixes
|
|
32
|
+
|
|
33
|
+
- **components,button:** call handlers from RAC context once ([7f625ea237c](https://github.com/migrationsverket/midas/commit/7f625ea237c))
|
|
34
|
+
|
|
1
35
|
## 17.34.1 (2026-11-16)
|
|
2
36
|
|
|
3
37
|
### 🩹 Fixes
|
package/accordion/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as Accordion, t as AccordionItem } from "../chunks/accordion-
|
|
1
|
+
export { n as Accordion, t as AccordionItem } from "../chunks/accordion-gXivv8Ra.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._emptyStateActions_17oo8_1{margin-block-start:var(--midas-space-small)}._emptyStateHeading_1wq5i_1,._emptyStateText_itela_1{flex-basis:100%;margin-block:0}._emptyStateVisual_dhkzu_1{margin-block-end:var(--midas-space-small)}._emptyStateVisual_dhkzu_1,._emptyStateVisual_dhkzu_1>svg{height:var(--midas-base-120);width:var(--midas-base-120)}._emptyState_1b7ad_1{font-family:var(--midas-typography-font-family);align-items:center;gap:var(--midas-space-small);max-inline-size:38rem;padding-block:var(--midas-space-xlarge);flex-flow:wrap;display:flex}._emptyState_1b7ad_1[data-align=center]{text-align:center;justify-content:center;margin-inline:auto}
|
package/assets/file-list.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._fileList_2pw69_1{gap:var(--midas-space-small);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}._fileListItem_2pw69_18{--file-list-success-duration:2s;flex-direction:column;display:flex}._row_2pw69_25{background-color:var(--midas-layer-01-base);box-sizing:border-box;font-family:var(--midas-typography-font-family);height:var(--midas-size-control);transition:box-shadow var(--midas-transition-duration-fast) var(--midas-transition-timing-ease-out);align-items:center;padding-inline-start:var(--midas-space-medium);display:flex}._fileListItem_2pw69_18[data-status=error] ._row_2pw69_25{box-shadow:var(--midas-state-invalid)}._iconSlot_2pw69_46{height:var(--midas-size-icon-sm);opacity:0;transition:margin-inline-end var(--midas-transition-duration-normal) var(--midas-transition-timing-ease-out), opacity var(--midas-transition-duration-normal) var(--midas-transition-timing-ease-out), width var(--midas-transition-duration-normal) var(--midas-transition-timing-ease-out);flex-shrink:0;width:0;margin-inline-end:0;position:relative}._fileListItem_2pw69_18[data-status=uploading] ._iconSlot_2pw69_46,._fileListItem_2pw69_18[data-status=success] ._iconSlot_2pw69_46{opacity:1;width:var(--midas-size-icon-sm);margin-inline-end:var(--midas-space-small)}._progressIcon_2pw69_70{position:absolute;inset:0}._ring_2pw69_82{border:2px solid var(--midas-icon-success);box-sizing:border-box;opacity:0;border-radius:50%;position:absolute;inset:0}._fileListItem_2pw69_18[data-status=success] ._ring_2pw69_82{animation:_successRing_2pw69_1 var(--file-list-success-duration) var(--midas-transition-timing-ease-out) forwards}._checkmark_2pw69_106{height:var(--midas-size-icon-sm);opacity:0;width:var(--midas-size-icon-sm);margin:auto;position:absolute;inset:0;transform:scale(.4)}._fileListItem_2pw69_18[data-status=success] ._checkmark_2pw69_106{animation:_successCheckmark_2pw69_1 var(--file-list-success-duration) var(--midas-transition-timing-ease-out) forwards}._successIcon_2pw69_121{color:var(--midas-icon-success)}@keyframes _successRing_2pw69_1{0%,30%{opacity:1}55%,to{opacity:0}}@keyframes _successCheckmark_2pw69_1{0%,30%{opacity:0;transform:scale(.4)}55%{opacity:1;transform:scale(.65)}65%,to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){._row_2pw69_25,._iconSlot_2pw69_46,._ring_2pw69_82,._checkmark_2pw69_106,._errorReveal_2pw69_163{transition-duration:1ms!important;animation-duration:1ms!important}}._fileInfo_2pw69_169{align-items:baseline;gap:var(--midas-space-small);flex:1;min-width:0;display:flex}._fileName_2pw69_177{color:var(--midas-text-primary);font-size:var(--midas-typography-font-size-30);font-weight:var(--midas-typography-weight-medium);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._fileSize_2pw69_186{color:var(--midas-text-secondary);font-size:var(--midas-typography-font-size-30);flex-shrink:0}._previewButton_2pw69_192,._deleteButton_2pw69_193{color:var(--midas-icon-primary);flex-shrink:0;margin-inline-start:var(--midas-space-small)}._errorReveal_2pw69_163{max-height:0;transition:max-height var(--midas-transition-duration-normal) var(--midas-transition-timing-ease-out);overflow:clip}._fileListItem_2pw69_18[data-status=error] ._errorReveal_2pw69_163{max-height:6.25rem}
|
package/button/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as Button, t as ButtonGroup } from "../chunks/button-
|
|
1
|
+
export { n as Button, t as ButtonGroup } from "../chunks/button-BZHl22O1.js";
|
package/calendar/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as Calendar, t as RangeCalendar } from "../chunks/calendar-
|
|
1
|
+
export { n as Calendar, t as RangeCalendar } from "../chunks/calendar-uy8xBuNV.js";
|
package/card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as Card, i as CardActionArea, a as CardActions, n as CardBody, o as CardContent, t as CardHeader, s as CardImage, c as CardLink, l as CardTitle } from "../chunks/card-
|
|
1
|
+
export { r as Card, i as CardActionArea, a as CardActions, n as CardBody, o as CardContent, t as CardHeader, s as CardImage, c as CardLink, l as CardTitle } from "../chunks/card-CFy9gV47.js";
|
package/checkbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as Checkbox, r as CheckboxButton, i as CheckboxField, t as CheckboxGroup } from "../chunks/checkbox-
|
|
1
|
+
export { n as Checkbox, r as CheckboxButton, i as CheckboxField, t as CheckboxGroup } from "../chunks/checkbox-_8t0WxFw.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
3
|
-
import { n as t } from "./button-
|
|
4
|
-
import { t as n } from "./heading-
|
|
3
|
+
import { n as t } from "./button-BZHl22O1.js";
|
|
4
|
+
import { t as n } from "./heading-0P5rm7xK.js";
|
|
5
5
|
import { t as r } from "./FeedbackStatusIcon-DX5ndhm3.js";
|
|
6
6
|
import { createContext as i, useContext as a, useEffect as o } from "react";
|
|
7
7
|
import { Disclosure as s, DisclosureGroup as c, DisclosurePanel as l, composeRenderProps as u } from "react-aria-components";
|
|
@@ -9,18 +9,21 @@ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
|
9
9
|
import '../assets/button2.css';// src/button/Button.tsx
|
|
10
10
|
var d = i((i, d) => {
|
|
11
11
|
let [f, p] = s(i, d, e), { className: m, fullwidth: h, icon: g, iconPlacement: _, iconSize: v, isPending: y, size: b = "large", variant: x = "primary", ...S } = f;
|
|
12
|
-
return /* @__PURE__ */ l(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
return /* @__PURE__ */ l(e.Provider, {
|
|
13
|
+
value: null,
|
|
14
|
+
children: /* @__PURE__ */ l(a, {
|
|
15
|
+
className: t(r.button, x === "primary" && r.primary, x === "secondary" && r.secondary, x === "tertiary" && r.tertiary, x === "danger" && r.danger, x === "icon" && r.iconBtn, h && r.fullwidth, b === "medium" && r.medium, _ === "right" && r.iconRight, m),
|
|
16
|
+
ref: p,
|
|
17
|
+
...S,
|
|
18
|
+
children: o(f.children, (e) => /* @__PURE__ */ u(c, { children: [
|
|
19
|
+
g && !y && /* @__PURE__ */ l(g, {
|
|
20
|
+
"aria-hidden": !0,
|
|
21
|
+
size: v ?? 20
|
|
22
|
+
}),
|
|
23
|
+
y && /* @__PURE__ */ l(n, { small: !0 }),
|
|
24
|
+
e
|
|
25
|
+
] }))
|
|
26
|
+
})
|
|
24
27
|
});
|
|
25
28
|
});
|
|
26
29
|
d.displayName = "Button";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
-
import { n as t } from "./button-
|
|
3
|
-
import { t as n } from "./heading-
|
|
4
|
-
import { n as r } from "./select-
|
|
5
|
-
import { a as i, c as a, o } from "./list-box-
|
|
6
|
-
import { t as s } from "./field-error-
|
|
2
|
+
import { n as t } from "./button-BZHl22O1.js";
|
|
3
|
+
import { t as n } from "./heading-0P5rm7xK.js";
|
|
4
|
+
import { n as r } from "./select-b6vie6hj.js";
|
|
5
|
+
import { a as i, c as a, o } from "./list-box-Cyiu3Rq7.js";
|
|
6
|
+
import { t as s } from "./field-error-CUYIkJWj.js";
|
|
7
7
|
import * as c from "react";
|
|
8
8
|
import { clsx as l } from "clsx";
|
|
9
9
|
import { Calendar as u, CalendarCell as d, CalendarGrid as f, CalendarMonthPicker as p, CalendarYearPicker as m, RangeCalendar as h, RangeCalendarContext as g, Select as _ } from "react-aria-components";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
-
import { t } from "./heading-
|
|
3
|
-
import { t as n } from "./text-
|
|
2
|
+
import { t } from "./heading-0P5rm7xK.js";
|
|
3
|
+
import { t as n } from "./text-CtvUKU-v.js";
|
|
4
4
|
import * as r from "react";
|
|
5
5
|
import { Button as i, Link as a } from "react-aria-components";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./field-error-
|
|
3
|
-
import { t } from "./text-
|
|
2
|
+
import { t as e } from "./field-error-CUYIkJWj.js";
|
|
3
|
+
import { t } from "./text-CtvUKU-v.js";
|
|
4
4
|
import { t as n } from "./clsx-BtGY0yFD.js";
|
|
5
5
|
import { t as r } from "./splitDataAttributes-ChyO_Kvc.js";
|
|
6
|
-
import { n as i, t as a } from "./label-
|
|
6
|
+
import { n as i, t as a } from "./label-Biu5Hi7b.js";
|
|
7
7
|
import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
8
8
|
import * as s from "react";
|
|
9
9
|
import { forwardRef as c, useContext as l } from "react";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { t as e } from "./icons-a0WawN46.js";
|
|
3
3
|
import { n as t, t as n } from "./toggle-button-BVyG8F2K.js";
|
|
4
4
|
import { t as r } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
5
|
-
import { n as i } from "./button-
|
|
5
|
+
import { n as i } from "./button-BZHl22O1.js";
|
|
6
6
|
import { a, o, r as s } from "./menu-7gP2Sovj.js";
|
|
7
7
|
import { t as c } from "./clsx-BtGY0yFD.js";
|
|
8
8
|
import * as l from "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
3
|
-
import { n as t, t as n } from "./label-
|
|
4
|
-
import { t as r } from "./text-
|
|
5
|
-
import { t as i } from "./field-error-
|
|
6
|
-
import { a, c as o, t as s } from "./list-box-
|
|
3
|
+
import { n as t, t as n } from "./label-Biu5Hi7b.js";
|
|
4
|
+
import { t as r } from "./text-CtvUKU-v.js";
|
|
5
|
+
import { t as i } from "./field-error-CUYIkJWj.js";
|
|
6
|
+
import { a, c as o, t as s } from "./list-box-Cyiu3Rq7.js";
|
|
7
7
|
import { t as c } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
8
8
|
import { useRef as l } from "react";
|
|
9
9
|
import { Button as u, ComboBox as d, Input as f } from "react-aria-components";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
-
import { t } from "./field-error-
|
|
3
|
-
import { n, t as r } from "./label-
|
|
4
|
-
import { t as i } from "./text-
|
|
5
|
-
import { t as a } from "./clear-button-
|
|
2
|
+
import { t } from "./field-error-CUYIkJWj.js";
|
|
3
|
+
import { n, t as r } from "./label-Biu5Hi7b.js";
|
|
4
|
+
import { t as i } from "./text-CtvUKU-v.js";
|
|
5
|
+
import { t as a } from "./clear-button-BBOWDvaE.js";
|
|
6
6
|
import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
7
7
|
import * as s from "react";
|
|
8
8
|
import { DateField as c, DateFieldStateContext as l, DateInput as u, DateSegment as d } from "react-aria-components";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { t as e } from "./clear-button-
|
|
2
|
+
import { t as e } from "./clear-button-BBOWDvaE.js";
|
|
3
3
|
import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
4
|
-
import { a as n, n as r, r as i, t as a } from "./date-field-
|
|
5
|
-
import { n as o } from "./button-
|
|
6
|
-
import { n as s, t as c } from "./calendar-
|
|
7
|
-
import { t as l } from "./field-error-
|
|
8
|
-
import { n as u, t as d } from "./label-
|
|
9
|
-
import { t as f } from "./text-
|
|
4
|
+
import { a as n, n as r, r as i, t as a } from "./date-field-DkypCMfi.js";
|
|
5
|
+
import { n as o } from "./button-BZHl22O1.js";
|
|
6
|
+
import { n as s, t as c } from "./calendar-uy8xBuNV.js";
|
|
7
|
+
import { t as l } from "./field-error-CUYIkJWj.js";
|
|
8
|
+
import { n as u, t as d } from "./label-Biu5Hi7b.js";
|
|
9
|
+
import { t as f } from "./text-CtvUKU-v.js";
|
|
10
10
|
import * as p from "react";
|
|
11
11
|
import { clsx as m } from "clsx";
|
|
12
12
|
import { DatePicker as h, DatePickerStateContext as g, DateRangePicker as _, DateRangePickerStateContext as v, Group as y, Popover as b } from "react-aria-components";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
3
|
+
import { t } from "./heading-0P5rm7xK.js";
|
|
4
|
+
import { t as n } from "./text-CtvUKU-v.js";
|
|
5
|
+
import { forwardRef as r } from "react";
|
|
6
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
+
import '../assets/empty-state.css';var a = { emptyStateActions: "_emptyStateActions_17oo8_1" }, o = r(({ className: t, ...n }, r) => /* @__PURE__ */ i("div", {
|
|
8
|
+
...n,
|
|
9
|
+
ref: r,
|
|
10
|
+
className: e(a.emptyStateActions, t)
|
|
11
|
+
}));
|
|
12
|
+
o.displayName = "EmptyStateActions";
|
|
13
|
+
var s = { emptyStateHeading: "_emptyStateHeading_1wq5i_1" }, c = r(({ className: n, level: r = 2, ...a }, o) => /* @__PURE__ */ i(t, {
|
|
14
|
+
className: e(s.emptyStateHeading, n),
|
|
15
|
+
level: r,
|
|
16
|
+
ref: o,
|
|
17
|
+
...a
|
|
18
|
+
}));
|
|
19
|
+
c.displayName = "EmptyStateHeading";
|
|
20
|
+
var l = { emptyStateText: "_emptyStateText_itela_1" }, u = r(({ className: t, elementType: r = "p", ...a }, o) => /* @__PURE__ */ i(n, {
|
|
21
|
+
className: e(l.emptyStateText, t),
|
|
22
|
+
elementType: r,
|
|
23
|
+
ref: o,
|
|
24
|
+
...a
|
|
25
|
+
}));
|
|
26
|
+
u.displayName = "EmptyStateText";
|
|
27
|
+
var d = { emptyStateVisual: "_emptyStateVisual_dhkzu_1" }, f = r(({ className: t, ...n }, r) => /* @__PURE__ */ i("div", {
|
|
28
|
+
...n,
|
|
29
|
+
ref: r,
|
|
30
|
+
className: e(d.emptyStateVisual, t)
|
|
31
|
+
}));
|
|
32
|
+
f.displayName = "EmptyStateVisual";
|
|
33
|
+
var p = { emptyState: "_emptyState_1b7ad_1" }, m = r(({ align: t = "center", className: n, ...r }, a) => /* @__PURE__ */ i("div", {
|
|
34
|
+
...r,
|
|
35
|
+
ref: a,
|
|
36
|
+
className: e(p.emptyState, n),
|
|
37
|
+
"data-align": t
|
|
38
|
+
}));
|
|
39
|
+
m.displayName = "EmptyState";
|
|
40
|
+
export { o as a, c as i, f as n, u as r, m as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
-
import { t } from "./text-
|
|
2
|
+
import { t } from "./text-CtvUKU-v.js";
|
|
3
3
|
import { forwardRef as n, useContext as r } from "react";
|
|
4
4
|
import { FieldError as i, FieldErrorContext as a } from "react-aria-components";
|
|
5
5
|
import { jsx as o } from "react/jsx-runtime";
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
3
|
+
import { n as t } from "./button-BZHl22O1.js";
|
|
4
|
+
import { t as n } from "./progress-bar-BvueZ-dg.js";
|
|
5
|
+
import { t as r } from "./FeedbackStatusIcon-DX5ndhm3.js";
|
|
6
|
+
import { t as i } from "./field-error-CUYIkJWj.js";
|
|
7
|
+
import { t as a } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
8
|
+
import { useEffect as o, useId as s, useLayoutEffect as c, useRef as l } from "react";
|
|
9
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
+
import { Eye as p, Trash2 as m, X as h } from "lucide-react";
|
|
11
|
+
import { FocusScope as g, VisuallyHidden as _, useFocusManager as v } from "react-aria";
|
|
12
|
+
import '../assets/file-list.css';var y = {
|
|
13
|
+
fileList: "_fileList_2pw69_1",
|
|
14
|
+
fileListItem: "_fileListItem_2pw69_18",
|
|
15
|
+
row: "_row_2pw69_25",
|
|
16
|
+
iconSlot: "_iconSlot_2pw69_46",
|
|
17
|
+
progressIcon: "_progressIcon_2pw69_70",
|
|
18
|
+
ring: "_ring_2pw69_82",
|
|
19
|
+
successRing: "_successRing_2pw69_1",
|
|
20
|
+
checkmark: "_checkmark_2pw69_106",
|
|
21
|
+
successCheckmark: "_successCheckmark_2pw69_1",
|
|
22
|
+
successIcon: "_successIcon_2pw69_121",
|
|
23
|
+
errorReveal: "_errorReveal_2pw69_163",
|
|
24
|
+
fileInfo: "_fileInfo_2pw69_169",
|
|
25
|
+
fileName: "_fileName_2pw69_177",
|
|
26
|
+
fileSize: "_fileSize_2pw69_186",
|
|
27
|
+
previewButton: "_previewButton_2pw69_192",
|
|
28
|
+
deleteButton: "_deleteButton_2pw69_193"
|
|
29
|
+
}, b = ({ className: t, children: n, ...r }) => {
|
|
30
|
+
let i = l(null);
|
|
31
|
+
return /* @__PURE__ */ d(g, { children: /* @__PURE__ */ f("ul", {
|
|
32
|
+
...r,
|
|
33
|
+
ref: i,
|
|
34
|
+
tabIndex: -1,
|
|
35
|
+
className: e(y.fileList, t),
|
|
36
|
+
children: [/* @__PURE__ */ d(x, { containerRef: i }), n]
|
|
37
|
+
}) });
|
|
38
|
+
}, x = ({ containerRef: e }) => {
|
|
39
|
+
let t = v(), n = l(t);
|
|
40
|
+
return o(() => {
|
|
41
|
+
n.current = t;
|
|
42
|
+
}), o(() => {
|
|
43
|
+
let t = e.current;
|
|
44
|
+
if (!t) return;
|
|
45
|
+
let r = new MutationObserver((e) => {
|
|
46
|
+
e.some((e) => e.removedNodes.length > 0) && document.activeElement === document.body && (n.current?.focusFirst({ tabbable: !0 }) || t.focus());
|
|
47
|
+
});
|
|
48
|
+
return r.observe(t, { childList: !0 }), () => r.disconnect();
|
|
49
|
+
}, [e]), null;
|
|
50
|
+
}, S = {
|
|
51
|
+
en: {
|
|
52
|
+
removeFile: "Remove",
|
|
53
|
+
cancelUpload: "Cancel",
|
|
54
|
+
uploading: "Uploading",
|
|
55
|
+
uploadComplete: "Upload complete",
|
|
56
|
+
uploadFailed: "Upload failed",
|
|
57
|
+
previewFile: "Preview"
|
|
58
|
+
},
|
|
59
|
+
sv: {
|
|
60
|
+
removeFile: "Ta bort",
|
|
61
|
+
cancelUpload: "Avbryt",
|
|
62
|
+
uploading: "Laddar upp",
|
|
63
|
+
uploadComplete: "Uppladdning klar",
|
|
64
|
+
uploadFailed: "Uppladdning misslyckades",
|
|
65
|
+
previewFile: "Förhandsgranska"
|
|
66
|
+
}
|
|
67
|
+
}, C = ({ fileName: o, fileSize: g, status: v = "idle", progress: b, errorMessage: x, onCancel: C, onDelete: T, onPreview: E, className: D }) => {
|
|
68
|
+
let O = a(S), k = v === "uploading", A = v === "success", j = v === "error", M = j && !!x, N = s(), P = s(), F = A ? O.format("uploadComplete") : j ? O.format("uploadFailed") : void 0, I = [F && P, M && N].filter(Boolean).join(" ") || void 0, L = k ? C ?? T : T, R = !!E && !k, z = l(null), B = l(!1);
|
|
69
|
+
return c(() => {
|
|
70
|
+
B.current && (B.current = !1, z.current?.focus());
|
|
71
|
+
}, [R]), /* @__PURE__ */ f("li", {
|
|
72
|
+
className: e(y.fileListItem, D),
|
|
73
|
+
"data-status": v,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ f("div", {
|
|
76
|
+
className: y.row,
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ f("span", {
|
|
79
|
+
className: y.iconSlot,
|
|
80
|
+
children: [
|
|
81
|
+
k && /* @__PURE__ */ d(n, {
|
|
82
|
+
shape: "circular",
|
|
83
|
+
small: !0,
|
|
84
|
+
value: b,
|
|
85
|
+
isIndeterminate: b === void 0,
|
|
86
|
+
"aria-label": `${O.format("uploading")} ${o}`,
|
|
87
|
+
className: y.progressIcon
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ d("span", {
|
|
90
|
+
className: y.ring,
|
|
91
|
+
"aria-hidden": !0
|
|
92
|
+
}),
|
|
93
|
+
A && /* @__PURE__ */ d(r, {
|
|
94
|
+
status: "success",
|
|
95
|
+
"aria-hidden": !0,
|
|
96
|
+
size: 16,
|
|
97
|
+
className: e(y.checkmark, y.successIcon)
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
}),
|
|
101
|
+
F && /* @__PURE__ */ d(_, {
|
|
102
|
+
id: P,
|
|
103
|
+
children: F
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ f("span", {
|
|
106
|
+
className: y.fileInfo,
|
|
107
|
+
children: [/* @__PURE__ */ d("span", {
|
|
108
|
+
className: y.fileName,
|
|
109
|
+
children: o
|
|
110
|
+
}), g && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(_, { children: ", " }), /* @__PURE__ */ d("span", {
|
|
111
|
+
className: y.fileSize,
|
|
112
|
+
children: g
|
|
113
|
+
})] })]
|
|
114
|
+
}),
|
|
115
|
+
R && /* @__PURE__ */ d(w, {
|
|
116
|
+
hadFocusRef: B,
|
|
117
|
+
variant: "icon",
|
|
118
|
+
onPress: E,
|
|
119
|
+
"aria-label": `${O.format("previewFile")} ${o}`,
|
|
120
|
+
"aria-describedby": I,
|
|
121
|
+
className: y.previewButton,
|
|
122
|
+
children: /* @__PURE__ */ d(p, {
|
|
123
|
+
size: 20,
|
|
124
|
+
"aria-hidden": !0
|
|
125
|
+
})
|
|
126
|
+
}),
|
|
127
|
+
L && /* @__PURE__ */ d(t, {
|
|
128
|
+
ref: z,
|
|
129
|
+
variant: "icon",
|
|
130
|
+
onPress: L,
|
|
131
|
+
"aria-label": `${O.format(k ? "cancelUpload" : "removeFile")} ${o}`,
|
|
132
|
+
"aria-describedby": I,
|
|
133
|
+
className: y.deleteButton,
|
|
134
|
+
children: d(k ? h : m, {
|
|
135
|
+
size: 20,
|
|
136
|
+
"aria-hidden": !0
|
|
137
|
+
})
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ d("div", {
|
|
142
|
+
id: N,
|
|
143
|
+
className: y.errorReveal,
|
|
144
|
+
children: x && /* @__PURE__ */ d(i, {
|
|
145
|
+
isInvalid: !0,
|
|
146
|
+
children: x
|
|
147
|
+
})
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ f(_, {
|
|
150
|
+
role: "status",
|
|
151
|
+
children: [A && `${O.format("uploadComplete")}: ${o}`, M && `${o}: ${x}`]
|
|
152
|
+
})
|
|
153
|
+
]
|
|
154
|
+
});
|
|
155
|
+
}, w = ({ hadFocusRef: e, ...n }) => {
|
|
156
|
+
let r = l(null);
|
|
157
|
+
return c(() => {
|
|
158
|
+
let t = r.current;
|
|
159
|
+
return () => {
|
|
160
|
+
t && document.activeElement === t && (e.current = !0);
|
|
161
|
+
};
|
|
162
|
+
}, [e]), /* @__PURE__ */ d(t, {
|
|
163
|
+
...n,
|
|
164
|
+
ref: r
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
export { b as n, C as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { Heading as n } from "react-aria-components";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import '../assets/heading.css';var i = {
|
|
6
|
+
h1: "_h1_13alg_1",
|
|
7
|
+
h2: "_h2_13alg_2",
|
|
8
|
+
h3: "_h3_13alg_3",
|
|
9
|
+
h4: "_h4_13alg_4",
|
|
10
|
+
h5: "_h5_13alg_5",
|
|
11
|
+
h6: "_h6_13alg_6"
|
|
12
|
+
}, a = t(({ className: t, enableMargins: a = !1, isExpressive: o = !1, level: s = 3, elementType: c, ...l }, u) => {
|
|
13
|
+
let d = c && parseInt(c.split("h")[1]);
|
|
14
|
+
return /* @__PURE__ */ r(n, {
|
|
15
|
+
ref: u,
|
|
16
|
+
level: d || s,
|
|
17
|
+
className: e([
|
|
18
|
+
i.h1,
|
|
19
|
+
i.h2,
|
|
20
|
+
i.h3,
|
|
21
|
+
i.h4,
|
|
22
|
+
i.h5,
|
|
23
|
+
i.h6
|
|
24
|
+
][s - 1], t),
|
|
25
|
+
...o && { "data-expressive": !0 },
|
|
26
|
+
...a && { "data-margin": !0 },
|
|
27
|
+
...l
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
a.displayName = "Heading";
|
|
31
|
+
export { a as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
-
import { n as t } from "./button-
|
|
2
|
+
import { n as t } from "./button-BZHl22O1.js";
|
|
3
3
|
import { t as n } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
4
4
|
import { t as r } from "./FeedbackStatusIcon-DX5ndhm3.js";
|
|
5
5
|
import "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
2
|
import { t } from "./popover-C7Ain5Qz.js";
|
|
3
|
-
import { n } from "./button-
|
|
4
|
-
import { t as r } from "./modal-
|
|
3
|
+
import { n } from "./button-BZHl22O1.js";
|
|
4
|
+
import { t as r } from "./modal-DvTcNZNd.js";
|
|
5
5
|
import { t as i } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
6
6
|
import * as a from "react";
|
|
7
7
|
import o, { useContext as s } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./grid-CFn_pqQX.js";
|
|
3
3
|
import { t } from "./clsx-BtGY0yFD.js";
|
|
4
|
-
import { n } from "./button-
|
|
4
|
+
import { n } from "./button-BZHl22O1.js";
|
|
5
5
|
import { n as r, t as i } from "./tooltip-CR1uxtPd.js";
|
|
6
6
|
import { n as a, t as o } from "./badge-C5Sdu_uw.js";
|
|
7
7
|
import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./clsx-BtGY0yFD.js";
|
|
|
2
2
|
import { Virtualizer as t } from "../aria/index.js";
|
|
3
3
|
import { t as n } from "./spinner-V6QnHHAH.js";
|
|
4
4
|
import { t as r } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
5
|
-
import { t as i } from "./text-
|
|
5
|
+
import { t as i } from "./text-CtvUKU-v.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { Header as a, ListBox as o, ListBoxItem as s, ListBoxLoadMoreItem as c, ListBoxSection as l, ListLayout as u, Popover as d, composeRenderProps as f } from "react-aria-components";
|
|
8
8
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./button-
|
|
2
|
-
import { t } from "./heading-
|
|
1
|
+
import { n as e } from "./button-BZHl22O1.js";
|
|
2
|
+
import { t } from "./heading-0P5rm7xK.js";
|
|
3
3
|
import { t as n } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
4
4
|
import { t as r } from "./clsx-BtGY0yFD.js";
|
|
5
5
|
import { forwardRef as i, useCallback as a, useRef as o } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
2
|
import { t } from "./splitDataAttributes-ChyO_Kvc.js";
|
|
3
|
-
import { n, t as r } from "./label-
|
|
4
|
-
import { t as i } from "./text-
|
|
5
|
-
import { t as a } from "./field-error-
|
|
3
|
+
import { n, t as r } from "./label-Biu5Hi7b.js";
|
|
4
|
+
import { t as i } from "./text-CtvUKU-v.js";
|
|
5
|
+
import { t as a } from "./field-error-CUYIkJWj.js";
|
|
6
6
|
import { Group as o, RadioButton as s, RadioField as c, RadioGroup as l, composeRenderProps as u } from "react-aria-components";
|
|
7
7
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
8
|
import '../assets/radio.css';// src/radio/RadioField.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./TextField.module-DQfRPRIT.js";
|
|
3
|
-
import { n as t } from "./button-
|
|
3
|
+
import { n as t } from "./button-BZHl22O1.js";
|
|
4
4
|
import { t as n } from "./clsx-BtGY0yFD.js";
|
|
5
|
-
import { t as r } from "./field-error-
|
|
6
|
-
import { t as i } from "./text-
|
|
7
|
-
import { n as a, t as o } from "./label-
|
|
5
|
+
import { t as r } from "./field-error-CUYIkJWj.js";
|
|
6
|
+
import { t as i } from "./text-CtvUKU-v.js";
|
|
7
|
+
import { n as a, t as o } from "./label-Biu5Hi7b.js";
|
|
8
8
|
import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
9
9
|
import { FormContext as c, Input as l, SearchField as u, useSlottedContext as d } from "react-aria-components";
|
|
10
10
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as e, t } from "./label-
|
|
1
|
+
import { n as e, t } from "./label-Biu5Hi7b.js";
|
|
2
2
|
import { t as n } from "./clsx-BtGY0yFD.js";
|
|
3
|
-
import { t as r } from "./text-
|
|
4
|
-
import { t as i } from "./field-error-
|
|
5
|
-
import { n as a } from "./checkbox-
|
|
3
|
+
import { t as r } from "./text-CtvUKU-v.js";
|
|
4
|
+
import { t as i } from "./field-error-CUYIkJWj.js";
|
|
5
|
+
import { n as a } from "./checkbox-_8t0WxFw.js";
|
|
6
6
|
import { t as o } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
7
|
-
import { c as s } from "./list-box-
|
|
7
|
+
import { c as s } from "./list-box-Cyiu3Rq7.js";
|
|
8
8
|
import { t as c } from "./popover-C7Ain5Qz.js";
|
|
9
|
-
import { n as l, r as u, t as d } from "./tag-
|
|
9
|
+
import { n as l, r as u, t as d } from "./tag-vxSxMsqS.js";
|
|
10
10
|
import f, { useContext as p } from "react";
|
|
11
11
|
import m from "clsx";
|
|
12
12
|
import { Button as h, Select as g, SelectStateContext as _, SelectValue as v } from "react-aria-components";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Collection as e } from "../aria/index.js";
|
|
3
|
-
import { n as t } from "./checkbox-
|
|
3
|
+
import { n as t } from "./checkbox-_8t0WxFw.js";
|
|
4
4
|
import { t as n } from "./clsx-BtGY0yFD.js";
|
|
5
5
|
import { Button as r, Cell as i, Column as a, Row as o, Table as s, TableBody as c, TableHeader as l, useTableOptions as u } from "react-aria-components";
|
|
6
6
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
-
import { n as t } from "./button-
|
|
2
|
+
import { n as t } from "./button-BZHl22O1.js";
|
|
3
3
|
import { Children as n, forwardRef as r, isValidElement as i } from "react";
|
|
4
4
|
import { Tag as a, TagGroup as o, TagGroupContext as s, TagList as c, TagListContext as l, composeRenderProps as u, useContextProps as d } from "react-aria-components";
|
|
5
5
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|