@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.
Files changed (82) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/accordion/index.js +1 -1
  3. package/assets/empty-state.css +1 -0
  4. package/assets/file-list.css +1 -1
  5. package/button/index.js +1 -1
  6. package/calendar/index.js +1 -1
  7. package/card/index.js +1 -1
  8. package/checkbox/index.js +1 -1
  9. package/chunks/{accordion-DCylOvk-.js → accordion-gXivv8Ra.js} +2 -2
  10. package/chunks/{button-Vq0ARno3.js → button-BZHl22O1.js} +15 -12
  11. package/chunks/{calendar-CdKnEG5o.js → calendar-uy8xBuNV.js} +5 -5
  12. package/chunks/{card-mIB1NewO.js → card-CFy9gV47.js} +2 -2
  13. package/chunks/{checkbox-BAYWLn77.js → checkbox-_8t0WxFw.js} +3 -3
  14. package/chunks/{clear-button-q2aTPqmU.js → clear-button-BBOWDvaE.js} +1 -1
  15. package/chunks/{color-scheme-switch-D--ppbpi.js → color-scheme-switch-CZGgC68M.js} +1 -1
  16. package/chunks/{combobox-DC8escnY.js → combobox-Ck-7IepP.js} +4 -4
  17. package/chunks/{date-field-B6STeIzX.js → date-field-DkypCMfi.js} +4 -4
  18. package/chunks/{date-picker-DCFHCDjr.js → date-picker-Cn9qhe2G.js} +7 -7
  19. package/chunks/empty-state-CnDZoO65.js +40 -0
  20. package/chunks/{field-error-C5ynuTRu.js → field-error-CUYIkJWj.js} +1 -1
  21. package/chunks/file-list-k2ZZ-OB2.js +167 -0
  22. package/chunks/heading-0P5rm7xK.js +31 -0
  23. package/chunks/{info-banner-DxN9h_6W.js → info-banner-CFmkzyL-.js} +1 -1
  24. package/chunks/{label-aX8yboSc.js → label-Biu5Hi7b.js} +2 -2
  25. package/chunks/{layout-CHum4Cpf.js → layout-BwW7Scqj.js} +1 -1
  26. package/chunks/{list-box-Cs65YWMd.js → list-box-Cyiu3Rq7.js} +1 -1
  27. package/chunks/{modal-RqzWc_NN.js → modal-DvTcNZNd.js} +2 -2
  28. package/chunks/{progress-bar-BHdz8PFO.js → progress-bar-BvueZ-dg.js} +1 -1
  29. package/chunks/{radio-D0PA15IV.js → radio-Li_ZoHYq.js} +3 -3
  30. package/chunks/{search-field-CfgBVzAV.js → search-field-BdS63CpD.js} +4 -4
  31. package/chunks/{select-C0o_SEd0.js → select-b6vie6hj.js} +6 -6
  32. package/chunks/{table-EjKTmTGr.js → table-Cvg_n39H.js} +1 -1
  33. package/chunks/{tag-BNARNuvq.js → tag-vxSxMsqS.js} +1 -1
  34. package/chunks/text-CtvUKU-v.js +28 -0
  35. package/chunks/{textfield-BWv4mP4v.js → textfield-i0dO0qgs.js} +4 -4
  36. package/chunks/{time-field-KpetgpDY.js → time-field-BG2BH5HH.js} +5 -5
  37. package/chunks/{toast-BO158amn.js → toast-CZHBaKdY.js} +1 -1
  38. package/clear-button/index.js +1 -1
  39. package/color-scheme-switch/index.js +1 -1
  40. package/combobox/index.js +1 -1
  41. package/date-field/index.js +1 -1
  42. package/date-picker/index.js +1 -1
  43. package/empty-state/EmptyState.d.ts +12 -0
  44. package/empty-state/empty-state-actions/EmptyStateActions.d.ts +3 -0
  45. package/empty-state/empty-state-actions/index.d.ts +1 -0
  46. package/empty-state/empty-state-heading/EmptyStateHeading.d.ts +3 -0
  47. package/empty-state/empty-state-heading/index.d.ts +1 -0
  48. package/empty-state/empty-state-text/EmptyStateText.d.ts +3 -0
  49. package/empty-state/empty-state-text/index.d.ts +1 -0
  50. package/empty-state/empty-state-visual/EmptyStateVisual.d.ts +3 -0
  51. package/empty-state/empty-state-visual/index.d.ts +1 -0
  52. package/empty-state/index.d.ts +5 -0
  53. package/empty-state/index.js +1 -0
  54. package/field-error/index.js +1 -1
  55. package/file-list/FileList.d.ts +4 -0
  56. package/file-list/FileListItem.d.ts +24 -8
  57. package/file-list/index.js +1 -1
  58. package/file-list/intl/translations.json.d.ts +4 -2
  59. package/heading/Heading.d.ts +1 -2
  60. package/heading/index.js +1 -1
  61. package/index.d.ts +1 -0
  62. package/index.js +40 -39
  63. package/info-banner/index.js +1 -1
  64. package/label/index.js +1 -1
  65. package/layout/index.js +1 -1
  66. package/list-box/index.js +1 -1
  67. package/modal/index.js +1 -1
  68. package/package.json +1 -1
  69. package/progress-bar/index.js +1 -1
  70. package/radio/index.js +1 -1
  71. package/search-field/index.js +1 -1
  72. package/select/index.js +1 -1
  73. package/table/index.js +1 -1
  74. package/tag/index.js +1 -1
  75. package/text/Text.d.ts +1 -2
  76. package/text/index.js +1 -1
  77. package/textfield/index.js +1 -1
  78. package/time-field/index.js +1 -1
  79. package/toast/index.js +1 -1
  80. package/chunks/file-list-BqPDm31w.js +0 -138
  81. package/chunks/heading-CIlMdywy.js +0 -30
  82. package/chunks/text-D7tnzTru.js +0 -27
@@ -0,0 +1,28 @@
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
+ import { forwardRef as t } from "react";
3
+ import { Text as n } from "react-aria-components";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import '../assets/text.css';var i = {
6
+ body: "_body_g096r_1",
7
+ "body-small": "_body-small_g096r_2",
8
+ description: "_description_g096r_3",
9
+ "description-small": "_description-small_g096r_4",
10
+ bold: "_bold_g096r_24",
11
+ italic: "_italic_g096r_28"
12
+ }, a = "span", o = t(({ className: t, size: o, isExpressive: s = !1, elementType: c = a, ...l }, u) => {
13
+ let d = {
14
+ className: e(l.slot === "description" ? o === "small" ? i["description-small"] : i.description : o === "small" ? i["body-small"] : i.body, {
15
+ [i.bold]: ["b", "strong"].includes(c),
16
+ [i.italic]: ["i", "em"].includes(c)
17
+ }, t),
18
+ elementType: c || a,
19
+ ...s && { "data-expressive": !0 },
20
+ ...l
21
+ };
22
+ return /* @__PURE__ */ r(n, {
23
+ ref: u,
24
+ ...d
25
+ });
26
+ });
27
+ o.displayName = "Text";
28
+ export { o as t };
@@ -1,12 +1,12 @@
1
1
  'use client';
2
2
  import { t as e } from "./TextField.module-DQfRPRIT.js";
3
- import { t } from "./text-D7tnzTru.js";
4
- import { t as n } from "./field-error-C5ynuTRu.js";
3
+ import { t } from "./text-CtvUKU-v.js";
4
+ import { t as n } from "./field-error-CUYIkJWj.js";
5
5
  import { t as r } from "./character-counter-IbkPoEcq.js";
6
- import { n as i, t as a } from "./label-aX8yboSc.js";
6
+ import { n as i, t as a } from "./label-Biu5Hi7b.js";
7
7
  import { t as o } from "./clsx-BtGY0yFD.js";
8
8
  import { t as s } from "./useLocalizedStringFormatter-DU97U9ZX.js";
9
- import { n as c } from "./button-Vq0ARno3.js";
9
+ import { n as c } from "./button-BZHl22O1.js";
10
10
  import { forwardRef as l, useState as u } from "react";
11
11
  import { clsx as d } from "clsx";
12
12
  import { Input as f, InputContext as p, TextArea as m, TextField as h, TextFieldContext as g, useContextProps as _ } from "react-aria-components";
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./clsx-BtGY0yFD.js";
2
- import { n as t, r as n } from "./date-field-B6STeIzX.js";
3
- import { t as r } from "./field-error-C5ynuTRu.js";
4
- import { n as i, t as a } from "./label-aX8yboSc.js";
5
- import { t as o } from "./text-D7tnzTru.js";
6
- import { t as s } from "./clear-button-q2aTPqmU.js";
2
+ import { n as t, r as n } from "./date-field-DkypCMfi.js";
3
+ import { t as r } from "./field-error-CUYIkJWj.js";
4
+ import { n as i, t as a } from "./label-Biu5Hi7b.js";
5
+ import { t as o } from "./text-CtvUKU-v.js";
6
+ import { t as s } from "./clear-button-BBOWDvaE.js";
7
7
  import { t as c } from "./useLocalizedStringFormatter-DU97U9ZX.js";
8
8
  import * as l from "react";
9
9
  import { TimeField as u, TimeFieldStateContext as d } from "react-aria-components";
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { n as e } from "./button-Vq0ARno3.js";
2
+ import { n as e } from "./button-BZHl22O1.js";
3
3
  import { t } from "./clsx-BtGY0yFD.js";
4
4
  import { t as n } from "./FeedbackStatusIcon-DX5ndhm3.js";
5
5
  import r from "react";
@@ -1 +1 @@
1
- export { t as ClearButton } from "../chunks/clear-button-q2aTPqmU.js";
1
+ export { t as ClearButton } from "../chunks/clear-button-BBOWDvaE.js";
@@ -1 +1 @@
1
- export { n as ColorSchemeSwitch, t as ColorSchemeSwitchMenu } from "../chunks/color-scheme-switch-D--ppbpi.js";
1
+ export { n as ColorSchemeSwitch, t as ColorSchemeSwitchMenu } from "../chunks/color-scheme-switch-CZGgC68M.js";
package/combobox/index.js CHANGED
@@ -1 +1 @@
1
- export { t as ComboBox } from "../chunks/combobox-DC8escnY.js";
1
+ export { t as ComboBox } from "../chunks/combobox-Ck-7IepP.js";
@@ -1 +1 @@
1
- export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-B6STeIzX.js";
1
+ export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-DkypCMfi.js";
@@ -1 +1 @@
1
- export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-DCFHCDjr.js";
1
+ export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-Cn9qhe2G.js";
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from 'react';
2
+ /**
3
+ * Text and calls to action for empty search results, blank pages etc.
4
+ */
5
+ export interface EmptyStateProps extends HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Center the content, or align it to the start.
8
+ * @default 'center'
9
+ */
10
+ align?: 'start' | 'center';
11
+ }
12
+ export declare const EmptyState: import('react').ForwardRefExoticComponent<EmptyStateProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type EmptyStateActionsProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const EmptyStateActions: import('react').ForwardRefExoticComponent<EmptyStateActionsProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './EmptyStateActions';
@@ -0,0 +1,3 @@
1
+ import { HeadingProps } from '../../heading';
2
+ export type EmptyStateHeadingProps = HeadingProps;
3
+ export declare const EmptyStateHeading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
@@ -0,0 +1 @@
1
+ export * from './EmptyStateHeading';
@@ -0,0 +1,3 @@
1
+ import { TextProps } from '../../text';
2
+ export type EmptyStateTextProps = TextProps;
3
+ export declare const EmptyStateText: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLElement>>;
@@ -0,0 +1 @@
1
+ export * from './EmptyStateText';
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type EmptyStateVisualProps = HTMLAttributes<HTMLDivElement>;
3
+ export declare const EmptyStateVisual: import('react').ForwardRefExoticComponent<EmptyStateVisualProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './EmptyStateVisual';
@@ -0,0 +1,5 @@
1
+ export * from './empty-state-actions';
2
+ export * from './empty-state-heading';
3
+ export * from './empty-state-text';
4
+ export * from './empty-state-visual';
5
+ export * from './EmptyState';
@@ -0,0 +1 @@
1
+ export { t as EmptyState, a as EmptyStateActions, i as EmptyStateHeading, r as EmptyStateText, n as EmptyStateVisual } from "../chunks/empty-state-CnDZoO65.js";
@@ -1 +1 @@
1
- export { t as FieldError } from "../chunks/field-error-C5ynuTRu.js";
1
+ export { t as FieldError } from "../chunks/field-error-CUYIkJWj.js";
@@ -1,3 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export type FileListProps = HTMLAttributes<HTMLUListElement>;
3
+ /**
4
+ * A list of files the user has picked or uploaded, one `FileListItem` per
5
+ * file. Give it an `aria-label` that says what the files are for.
6
+ */
3
7
  export declare const FileList: ({ className, children, ...props }: FileListProps) => import('react').JSX.Element;
@@ -1,27 +1,43 @@
1
1
  export interface FileListItemProps {
2
+ /** Shown in the row, and used in the buttons' accessible names. */
2
3
  fileName: string;
4
+ /** Shown after the file name, already formatted, e.g. `'1.2 MB'`. */
3
5
  fileSize?: string;
4
- /** @default 'idle' */
6
+ /**
7
+ * Where the file is in the upload. Decides what the row shows, and whether
8
+ * its button cancels or deletes.
9
+ * @default 'idle'
10
+ */
5
11
  status?: 'idle' | 'uploading' | 'success' | 'error';
6
12
  /** 0-100. Only meaningful when `status='uploading'`; omit for indeterminate. */
7
13
  progress?: number;
8
14
  /** Shown below the row when `status='error'`. */
9
15
  errorMessage?: string;
10
16
  /**
11
- * Called when the cancel button is pressed while `status='uploading'` —
12
- * this is where you'd abort the in-flight request (e.g.
13
- * `XMLHttpRequest.abort()` or `AbortController.abort()`). Falls back to
17
+ * Called when the cancel button is pressed while `status='uploading'`.
18
+ * This is where you'd abort the in-flight request, e.g. with
19
+ * `XMLHttpRequest.abort()` or `AbortController.abort()`. Falls back to
14
20
  * `onDelete` if omitted, so an in-progress upload isn't silently left
15
21
  * running in the background with no way to stop it.
16
22
  */
17
23
  onCancel?: () => void;
18
24
  /**
19
25
  * Called when the delete button is pressed for any status other than
20
- * `uploading` (use `onCancel` for that). `FileList` has no concept of
21
- * "uploaded" vs "local only" — if the file is already persisted
22
- * server-side by the time this fires, deleting it there too is your call.
26
+ * `uploading` (use `onCancel` for that). `FileList` doesn't know whether a
27
+ * file is uploaded or only local. If it's already stored server-side when
28
+ * this fires, deleting it there too is up to you.
23
29
  */
24
30
  onDelete?: () => void;
31
+ /**
32
+ * Shows a preview button next to the delete button. Hidden while
33
+ * `uploading`, when cancelling is the main action in the row. Shown when
34
+ * an upload failed, since the file is still on the user's device and they
35
+ * can check what they picked. Opening the preview, e.g. in a `Modal` or
36
+ * another component, is up to you.
37
+ */
38
+ onPreview?: () => void;
39
+ /** Class name for the row's `<li>`. */
25
40
  className?: string;
26
41
  }
27
- export declare const FileListItem: ({ fileName, fileSize, status, progress, errorMessage, onCancel, onDelete, className, }: FileListItemProps) => import('react').JSX.Element;
42
+ /** A row in a `FileList`, showing one file and its upload status. */
43
+ export declare const FileListItem: ({ fileName, fileSize, status, progress, errorMessage, onCancel, onDelete, onPreview, className, }: FileListItemProps) => import('react').JSX.Element;
@@ -1 +1 @@
1
- export { n as FileList, t as FileListItem } from "../chunks/file-list-BqPDm31w.js";
1
+ export { n as FileList, t as FileListItem } from "../chunks/file-list-k2ZZ-OB2.js";
@@ -4,14 +4,16 @@ declare const _default: {
4
4
  "cancelUpload": "Cancel",
5
5
  "uploading": "Uploading",
6
6
  "uploadComplete": "Upload complete",
7
- "uploadFailed": "Upload failed"
7
+ "uploadFailed": "Upload failed",
8
+ "previewFile": "Preview"
8
9
  },
9
10
  "sv": {
10
11
  "removeFile": "Ta bort",
11
12
  "cancelUpload": "Avbryt",
12
13
  "uploading": "Laddar upp",
13
14
  "uploadComplete": "Uppladdning klar",
14
- "uploadFailed": "Uppladdning misslyckades"
15
+ "uploadFailed": "Uppladdning misslyckades",
16
+ "previewFile": "Förhandsgranska"
15
17
  }
16
18
  }
17
19
  ;
@@ -1,5 +1,4 @@
1
1
  import { HeadingProps as AriaHeadingProps } from 'react-aria-components';
2
- import * as React from 'react';
3
2
  export interface HeadingProps extends AriaHeadingProps {
4
3
  /**
5
4
  * Override the semantic element of the component but keep the look of the level property
@@ -16,4 +15,4 @@ export interface HeadingProps extends AriaHeadingProps {
16
15
  */
17
16
  isExpressive?: boolean;
18
17
  }
19
- export declare const Heading: React.FC<HeadingProps>;
18
+ export declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
package/heading/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Heading } from "../chunks/heading-CIlMdywy.js";
1
+ export { t as Heading } from "../chunks/heading-0P5rm7xK.js";
package/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from './common/types';
13
13
  export * from './date-field';
14
14
  export * from './date-picker';
15
15
  export * from './drop-zone';
16
+ export * from './empty-state';
16
17
  export * from './field-error';
17
18
  export * from './file-list';
18
19
  export * from './file-trigger';
package/index.js CHANGED
@@ -1,55 +1,56 @@
1
1
  'use client';
2
2
  "use client";
3
- import { n as e, t } from "./chunks/accordion-DCylOvk-.js";
3
+ import { n as e, t } from "./chunks/accordion-gXivv8Ra.js";
4
4
  import { ButtonContext as n, Collection as r, Focusable as i, Form as a, I18nProvider as o, Pressable as s, TableLayout as c, Virtualizer as l, useLocale as u } from "./aria/index.js";
5
5
  import { n as d, t as f } from "./chunks/link-CyjmtEZP.js";
6
6
  import { t as p } from "./chunks/spinner-V6QnHHAH.js";
7
7
  import { t as m } from "./chunks/useLocalizedStringFormatter-DU97U9ZX.js";
8
- import { n as h, t as g } from "./chunks/button-Vq0ARno3.js";
9
- import { t as _ } from "./chunks/heading-CIlMdywy.js";
8
+ import { n as h, t as g } from "./chunks/button-BZHl22O1.js";
9
+ import { t as _ } from "./chunks/heading-0P5rm7xK.js";
10
10
  import { n as v, t as y } from "./chunks/badge-C5Sdu_uw.js";
11
11
  import { n as b, t as x } from "./chunks/breadcrumbs-BwYDyKWo.js";
12
- import { n as S, t as C } from "./chunks/calendar-CdKnEG5o.js";
13
- import { t as w } from "./chunks/label-aX8yboSc.js";
12
+ import { n as S, t as C } from "./chunks/calendar-uy8xBuNV.js";
13
+ import { t as w } from "./chunks/label-Biu5Hi7b.js";
14
14
  import { t as T } from "./chunks/popover-C7Ain5Qz.js";
15
- import { n as E, r as D, t as O } from "./chunks/modal-RqzWc_NN.js";
16
- import { t as k } from "./chunks/text-D7tnzTru.js";
17
- import { t as A } from "./chunks/field-error-C5ynuTRu.js";
18
- import { i as j, n as M, r as N, t as P } from "./chunks/checkbox-BAYWLn77.js";
19
- import { n as F, t as I } from "./chunks/select-C0o_SEd0.js";
20
- import { a as L, c as R, i as z, n as B, o as V, r as H, s as U, t as W } from "./chunks/list-box-Cs65YWMd.js";
21
- import { n as G, r as K, t as q } from "./chunks/tag-BNARNuvq.js";
22
- import { a as J, c as Y, i as X, l as Z, n as Q, o as $, r as ee, s as te, t as ne } from "./chunks/card-mIB1NewO.js";
15
+ import { n as E, r as D, t as O } from "./chunks/modal-DvTcNZNd.js";
16
+ import { t as k } from "./chunks/text-CtvUKU-v.js";
17
+ import { t as A } from "./chunks/field-error-CUYIkJWj.js";
18
+ import { i as j, n as M, r as N, t as P } from "./chunks/checkbox-_8t0WxFw.js";
19
+ import { n as F, t as I } from "./chunks/select-b6vie6hj.js";
20
+ import { a as L, c as R, i as z, n as B, o as V, r as H, s as U, t as W } from "./chunks/list-box-Cyiu3Rq7.js";
21
+ import { n as G, r as K, t as q } from "./chunks/tag-vxSxMsqS.js";
22
+ import { a as J, c as Y, i as X, l as Z, n as Q, o as $, r as ee, s as te, t as ne } from "./chunks/card-CFy9gV47.js";
23
23
  import { t as re } from "./chunks/character-counter-IbkPoEcq.js";
24
24
  import { t as ie } from "./chunks/icons-a0WawN46.js";
25
25
  import { n as ae, t as oe } from "./chunks/toggle-button-BVyG8F2K.js";
26
- import { n as se, t as ce } from "./chunks/color-scheme-switch-D--ppbpi.js";
26
+ import { n as se, t as ce } from "./chunks/color-scheme-switch-CZGgC68M.js";
27
27
  import { a as le, i as ue, n as de, o as fe, r as pe, t as me } from "./chunks/menu-7gP2Sovj.js";
28
- import { t as he } from "./chunks/combobox-DC8escnY.js";
29
- import { i as ge, n as _e, r as ve, t as ye } from "./chunks/date-field-B6STeIzX.js";
30
- import { n as be, t as xe } from "./chunks/date-picker-DCFHCDjr.js";
28
+ import { t as he } from "./chunks/combobox-Ck-7IepP.js";
29
+ import { i as ge, n as _e, r as ve, t as ye } from "./chunks/date-field-DkypCMfi.js";
30
+ import { n as be, t as xe } from "./chunks/date-picker-Cn9qhe2G.js";
31
31
  import { t as Se } from "./chunks/drop-zone-BL3Z-Sbj.js";
32
- import { n as Ce, t as we } from "./chunks/file-list-BqPDm31w.js";
33
- import { t as Te } from "./chunks/progress-bar-BHdz8PFO.js";
34
- import { t as Ee } from "./chunks/file-trigger-gOeeZzDP.js";
35
- import { n as De, t as Oe } from "./chunks/grid-CFn_pqQX.js";
36
- import { t as ke } from "./chunks/info-banner-DxN9h_6W.js";
37
- import { a as Ae, i as je, n as Me, r as Ne, t as Pe } from "./chunks/layout-CHum4Cpf.js";
38
- import { n as Fe, t as Ie } from "./chunks/tooltip-CR1uxtPd.js";
39
- import { n as Le, t as Re } from "./chunks/logo-CBGOnROk.js";
40
- import { t as ze } from "./chunks/clsx-BtGY0yFD.js";
41
- import { t as Be } from "./chunks/link-button-D6t-8zQQ.js";
42
- import { i as Ve, n as He, r as Ue, t as We } from "./chunks/radio-D0PA15IV.js";
43
- import { t as Ge } from "./chunks/search-field-CfgBVzAV.js";
44
- import { t as Ke } from "./chunks/skeleton-6y5HNJZp.js";
45
- import { t as qe } from "./chunks/stack-DKjRicm1.js";
46
- import { a as Je, i as Ye, n as Xe, o as Ze, r as Qe, t as $e } from "./chunks/table-EjKTmTGr.js";
47
- import { i as et, n as tt, r as nt, t as rt } from "./chunks/tabs-ZCpVhr_r.js";
48
- import { i as it, n as at, r as ot, t as st } from "./chunks/textfield-BWv4mP4v.js";
49
- import { t as ct } from "./chunks/time-field-KpetgpDY.js";
50
- import { a as lt, i as ut, n as dt, o as ft, r as pt, t as mt } from "./chunks/toast-BO158amn.js";
32
+ import { a as Ce, i as we, n as Te, r as Ee, t as De } from "./chunks/empty-state-CnDZoO65.js";
33
+ import { n as Oe, t as ke } from "./chunks/file-list-k2ZZ-OB2.js";
34
+ import { t as Ae } from "./chunks/progress-bar-BvueZ-dg.js";
35
+ import { t as je } from "./chunks/file-trigger-gOeeZzDP.js";
36
+ import { n as Me, t as Ne } from "./chunks/grid-CFn_pqQX.js";
37
+ import { t as Pe } from "./chunks/info-banner-CFmkzyL-.js";
38
+ import { a as Fe, i as Ie, n as Le, r as Re, t as ze } from "./chunks/layout-BwW7Scqj.js";
39
+ import { n as Be, t as Ve } from "./chunks/tooltip-CR1uxtPd.js";
40
+ import { n as He, t as Ue } from "./chunks/logo-CBGOnROk.js";
41
+ import { t as We } from "./chunks/clsx-BtGY0yFD.js";
42
+ import { t as Ge } from "./chunks/link-button-D6t-8zQQ.js";
43
+ import { i as Ke, n as qe, r as Je, t as Ye } from "./chunks/radio-Li_ZoHYq.js";
44
+ import { t as Xe } from "./chunks/search-field-BdS63CpD.js";
45
+ import { t as Ze } from "./chunks/skeleton-6y5HNJZp.js";
46
+ import { t as Qe } from "./chunks/stack-DKjRicm1.js";
47
+ import { a as $e, i as et, n as tt, o as nt, r as rt, t as it } from "./chunks/table-Cvg_n39H.js";
48
+ import { i as at, n as ot, r as st, t as ct } from "./chunks/tabs-ZCpVhr_r.js";
49
+ import { i as lt, n as ut, r as dt, t as ft } from "./chunks/textfield-i0dO0qgs.js";
50
+ import { t as pt } from "./chunks/time-field-BG2BH5HH.js";
51
+ import { a as mt, i as ht, n as gt, o as _t, r as vt, t as yt } from "./chunks/toast-CZHBaKdY.js";
51
52
  // src/version.ts
52
- var ht = {
53
+ var bt = {
53
54
  name: "@midas-ds/components",
54
55
  author: { name: "Migrationsverket" },
55
56
  keywords: [
@@ -61,7 +62,7 @@ var ht = {
61
62
  description: "Midas Components",
62
63
  homepage: "https://designsystem.migrationsverket.se/",
63
64
  license: "CC0-1.0",
64
- version: "17.34.1",
65
+ version: "17.36.0",
65
66
  module: "./index.js",
66
67
  type: "module",
67
68
  main: "./index.js",
@@ -94,4 +95,4 @@ var ht = {
94
95
  "react-stately": "3.50.0"
95
96
  }
96
97
  }.version;
97
- export { e as Accordion, t as AccordionItem, v as Badge, y as BadgeContainer, x as Breadcrumb, b as Breadcrumbs, h as Button, n as ButtonContext, g as ButtonGroup, S as Calendar, ee as Card, X as CardActionArea, J as CardActions, Q as CardBody, $ as CardContent, ne as CardHeader, te as CardImage, Y as CardLink, Z as CardTitle, $e as Cell, re as CharacterCounter, M as Checkbox, N as CheckboxButton, j as CheckboxField, P as CheckboxGroup, r as Collection, se as ColorSchemeSwitch, ce as ColorSchemeSwitchMenu, Xe as Column, he as ComboBox, ie as ContrastFilled, ge as DateField, _e as DateInput, ye as DateInputDivider, be as DatePicker, xe as DateRangePicker, ve as DateSegment, O as DialogTrigger, Se as DropZone, A as FieldError, Ce as FileList, we as FileListItem, Ee as FileTrigger, i as Focusable, a as Form, mt as GlobalToastRegion, De as Grid, Oe as GridItem, Ne as Header, _ as Heading, o as I18nProvider, ke as InfoBanner, ot as Input, w as Label, Pe as Layout, f as Link, Be as LinkButton, R as ListBox, U as ListBoxButton, W as ListBoxEmptyState, B as ListBoxHeader, V as ListBoxItem, H as ListBoxLoadMoreItem, L as ListBoxPopover, z as ListBoxSection, Re as Logo, Le as LogoContext, le as Menu, ue as MenuItem, pe as MenuPopover, de as MenuSection, fe as MenuTrigger, E as Modal, D as ModalOverlay, Me as Navbar, T as Popover, s as Pressable, Te as ProgressBar, He as Radio, Ue as RadioButton, Ve as RadioField, We as RadioGroup, C as RangeCalendar, d as RouterProvider, Qe as Row, Ge as SearchField, I as Select, F as SelectTrigger, me as Separator, je as Sidebar, Ae as SidebarLink, Ke as Skeleton, p as Spinner, qe as Stack, nt as Tab, rt as TabList, tt as TabPanel, Ye as Table, Je as TableBody, Ze as TableHeader, c as TableLayout, et as Tabs, K as Tag, q as TagGroup, G as TagList, k as Text, st as TextArea, at as TextField, it as TextFieldBase, ct as TimeField, dt as Toast, pt as ToastProvider, ut as ToastRegion, ae as ToggleButton, oe as ToggleButtonGroup, Ie as Tooltip, Fe as TooltipTrigger, ht as VERSION, l as Virtualizer, ze as clsx, lt as toastQueue, u as useLocale, m as useLocalizedStringFormatter, ft as useToastState };
98
+ export { e as Accordion, t as AccordionItem, v as Badge, y as BadgeContainer, x as Breadcrumb, b as Breadcrumbs, h as Button, n as ButtonContext, g as ButtonGroup, S as Calendar, ee as Card, X as CardActionArea, J as CardActions, Q as CardBody, $ as CardContent, ne as CardHeader, te as CardImage, Y as CardLink, Z as CardTitle, it as Cell, re as CharacterCounter, M as Checkbox, N as CheckboxButton, j as CheckboxField, P as CheckboxGroup, r as Collection, se as ColorSchemeSwitch, ce as ColorSchemeSwitchMenu, tt as Column, he as ComboBox, ie as ContrastFilled, ge as DateField, _e as DateInput, ye as DateInputDivider, be as DatePicker, xe as DateRangePicker, ve as DateSegment, O as DialogTrigger, Se as DropZone, De as EmptyState, Ce as EmptyStateActions, we as EmptyStateHeading, Ee as EmptyStateText, Te as EmptyStateVisual, A as FieldError, Oe as FileList, ke as FileListItem, je as FileTrigger, i as Focusable, a as Form, yt as GlobalToastRegion, Me as Grid, Ne as GridItem, Re as Header, _ as Heading, o as I18nProvider, Pe as InfoBanner, dt as Input, w as Label, ze as Layout, f as Link, Ge as LinkButton, R as ListBox, U as ListBoxButton, W as ListBoxEmptyState, B as ListBoxHeader, V as ListBoxItem, H as ListBoxLoadMoreItem, L as ListBoxPopover, z as ListBoxSection, Ue as Logo, He as LogoContext, le as Menu, ue as MenuItem, pe as MenuPopover, de as MenuSection, fe as MenuTrigger, E as Modal, D as ModalOverlay, Le as Navbar, T as Popover, s as Pressable, Ae as ProgressBar, qe as Radio, Je as RadioButton, Ke as RadioField, Ye as RadioGroup, C as RangeCalendar, d as RouterProvider, rt as Row, Xe as SearchField, I as Select, F as SelectTrigger, me as Separator, Ie as Sidebar, Fe as SidebarLink, Ze as Skeleton, p as Spinner, Qe as Stack, st as Tab, ct as TabList, ot as TabPanel, et as Table, $e as TableBody, nt as TableHeader, c as TableLayout, at as Tabs, K as Tag, q as TagGroup, G as TagList, k as Text, ft as TextArea, ut as TextField, lt as TextFieldBase, pt as TimeField, gt as Toast, vt as ToastProvider, ht as ToastRegion, ae as ToggleButton, oe as ToggleButtonGroup, Ve as Tooltip, Be as TooltipTrigger, bt as VERSION, l as Virtualizer, We as clsx, mt as toastQueue, u as useLocale, m as useLocalizedStringFormatter, _t as useToastState };
@@ -1 +1 @@
1
- export { t as InfoBanner } from "../chunks/info-banner-DxN9h_6W.js";
1
+ export { t as InfoBanner } from "../chunks/info-banner-CFmkzyL-.js";
package/label/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Label } from "../chunks/label-aX8yboSc.js";
1
+ export { t as Label } from "../chunks/label-Biu5Hi7b.js";
package/layout/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Header, t as Layout, n as Navbar, i as Sidebar, a as SidebarLink } from "../chunks/layout-CHum4Cpf.js";
1
+ export { r as Header, t as Layout, n as Navbar, i as Sidebar, a as SidebarLink } from "../chunks/layout-BwW7Scqj.js";
package/list-box/index.js CHANGED
@@ -1 +1 @@
1
- export { c as ListBox, s as ListBoxButton, t as ListBoxEmptyState, n as ListBoxHeader, o as ListBoxItem, r as ListBoxLoadMoreItem, a as ListBoxPopover, i as ListBoxSection } from "../chunks/list-box-Cs65YWMd.js";
1
+ export { c as ListBox, s as ListBoxButton, t as ListBoxEmptyState, n as ListBoxHeader, o as ListBoxItem, r as ListBoxLoadMoreItem, a as ListBoxPopover, i as ListBoxSection } from "../chunks/list-box-Cyiu3Rq7.js";
package/modal/index.js CHANGED
@@ -1 +1 @@
1
- export { t as DialogTrigger, n as Modal, r as ModalOverlay } from "../chunks/modal-RqzWc_NN.js";
1
+ export { t as DialogTrigger, n as Modal, r as ModalOverlay } from "../chunks/modal-DvTcNZNd.js";
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": "17.34.1",
17
+ "version": "17.36.0",
18
18
  "module": "./index.js",
19
19
  "type": "module",
20
20
  "main": "./index.js",
@@ -1 +1 @@
1
- export { t as ProgressBar } from "../chunks/progress-bar-BHdz8PFO.js";
1
+ export { t as ProgressBar } from "../chunks/progress-bar-BvueZ-dg.js";
package/radio/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Radio, r as RadioButton, i as RadioField, t as RadioGroup } from "../chunks/radio-D0PA15IV.js";
1
+ export { n as Radio, r as RadioButton, i as RadioField, t as RadioGroup } from "../chunks/radio-Li_ZoHYq.js";
@@ -1 +1 @@
1
- export { t as SearchField } from "../chunks/search-field-CfgBVzAV.js";
1
+ export { t as SearchField } from "../chunks/search-field-BdS63CpD.js";
package/select/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Select, n as SelectTrigger } from "../chunks/select-C0o_SEd0.js";
1
+ export { t as Select, n as SelectTrigger } from "../chunks/select-b6vie6hj.js";
package/table/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Cell, n as Column, r as Row, i as Table, a as TableBody, o as TableHeader } from "../chunks/table-EjKTmTGr.js";
1
+ export { t as Cell, n as Column, r as Row, i as Table, a as TableBody, o as TableHeader } from "../chunks/table-Cvg_n39H.js";
package/tag/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Tag, t as TagGroup, n as TagList } from "../chunks/tag-BNARNuvq.js";
1
+ export { r as Tag, t as TagGroup, n as TagList } from "../chunks/tag-vxSxMsqS.js";
package/text/Text.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { TextProps as AriaTextProps } from 'react-aria-components';
2
- import * as React from 'react';
3
2
  export type TextSize = 'small';
4
3
  export interface TextProps extends AriaTextProps {
5
4
  /**
@@ -12,4 +11,4 @@ export interface TextProps extends AriaTextProps {
12
11
  */
13
12
  isExpressive?: boolean;
14
13
  }
15
- export declare const Text: React.FC<TextProps>;
14
+ export declare const Text: import('react').ForwardRefExoticComponent<TextProps & import('react').RefAttributes<HTMLElement>>;
package/text/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Text } from "../chunks/text-D7tnzTru.js";
1
+ export { t as Text } from "../chunks/text-CtvUKU-v.js";
@@ -1 +1 @@
1
- export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-BWv4mP4v.js";
1
+ export { r as Input, t as TextArea, n as TextField, i as TextFieldBase } from "../chunks/textfield-i0dO0qgs.js";
@@ -1 +1 @@
1
- export { t as TimeField } from "../chunks/time-field-KpetgpDY.js";
1
+ export { t as TimeField } from "../chunks/time-field-BG2BH5HH.js";
package/toast/index.js CHANGED
@@ -1 +1 @@
1
- export { t as GlobalToastRegion, n as Toast, r as ToastProvider, i as ToastRegion, a as toastQueue, o as useToastState } from "../chunks/toast-BO158amn.js";
1
+ export { t as GlobalToastRegion, n as Toast, r as ToastProvider, i as ToastRegion, a as toastQueue, o as useToastState } from "../chunks/toast-CZHBaKdY.js";