@midas-ds/components 17.26.0 → 17.27.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.
Files changed (166) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/accordion/AccordionItem.d.ts +1 -1
  3. package/accordion/AccordionItem.stories.d.ts +1 -1
  4. package/accordion/index.js +1 -1
  5. package/assets/calendar.css +1 -1
  6. package/assets/list-box.css +1 -1
  7. package/assets/select.css +1 -1
  8. package/badge/Badge.stories.d.ts +1 -1
  9. package/badge/index.js +1 -1
  10. package/breadcrumbs/Breadcrumb.d.ts +1 -1
  11. package/breadcrumbs/Breadcrumbs.d.ts +1 -1
  12. package/breadcrumbs/Breadcrumbs.stories.d.ts +4 -4
  13. package/breadcrumbs/index.js +1 -1
  14. package/button/index.js +1 -1
  15. package/calendar/Calendar.d.ts +9 -1
  16. package/calendar/Calendar.stories.d.ts +3 -2
  17. package/calendar/CalendarGrid.d.ts +1 -1
  18. package/calendar/CalendarHeader.d.ts +2 -2
  19. package/calendar/CalendarPicker.d.ts +18 -0
  20. package/calendar/RangeCalendar.d.ts +8 -1
  21. package/calendar/RangeCalendar.stories.d.ts +2 -1
  22. package/calendar/index.js +1 -1
  23. package/card/Card.d.ts +1 -1
  24. package/card/card-body/CardBody.d.ts +1 -1
  25. package/card/card-header/CardHeader.d.ts +1 -1
  26. package/card/index.js +1 -1
  27. package/checkbox/CheckboxField.d.ts +1 -1
  28. package/checkbox/CheckboxGroup.d.ts +1 -1
  29. package/checkbox/CheckboxGroup.stories.d.ts +2 -2
  30. package/checkbox/SelectAllCheckbox.d.ts +1 -1
  31. package/checkbox/index.js +1 -1
  32. package/chunks/{FeedbackStatusIcon-BS5VX-s6.js → FeedbackStatusIcon-DRI7WrSU.js} +7 -7
  33. package/chunks/{accordion-BxxPnJau.js → accordion-DIVTJU3O.js} +7 -7
  34. package/chunks/{badge-BplGU5BS.js → badge-BfK6XrlL.js} +1 -1
  35. package/chunks/{breadcrumbs-C-Z6UlQn.js → breadcrumbs-DV0ZJc62.js} +1 -1
  36. package/chunks/{button-Ch860h28.js → button-CenXTGXL.js} +2 -2
  37. package/chunks/calendar-BZPktkdE.js +111 -0
  38. package/chunks/{card-Bzc8kToe.js → card-zIYA-SQh.js} +3 -3
  39. package/chunks/{checkbox-ivInWvEp.js → checkbox-DcXA9GSd.js} +14 -14
  40. package/chunks/{clear-button-la4Fb9_w.js → clear-button-D3I1X3yG.js} +1 -1
  41. package/chunks/{clsx-B1NYyfch.js → clsx-Di52oYUU.js} +6 -4
  42. package/chunks/{color-scheme-switch-jgoxUu3x.js → color-scheme-switch-DVZjdwc9.js} +4 -4
  43. package/chunks/{combobox-DDO4fEtI.js → combobox-DIou4Z-d.js} +10 -10
  44. package/chunks/{date-field-DG5TYsTF.js → date-field-BF2f9bSf.js} +10 -10
  45. package/chunks/{date-picker-1W7OmCT0.js → date-picker-BomOO1LI.js} +18 -18
  46. package/chunks/{drop-zone-DvQLpgq6.js → drop-zone-DH3ZyHsr.js} +1 -1
  47. package/chunks/{field-error-pJiSw4PN.js → field-error-LtNtEKDp.js} +2 -2
  48. package/chunks/{file-list-DM1Vtkun.js → file-list-TmEuO1fJ.js} +2 -2
  49. package/chunks/{grid-DZB3GGDg.js → grid-Cn_8RSvj.js} +1 -1
  50. package/chunks/heading-BEl_z-5T.js +31 -0
  51. package/chunks/{info-banner-DnFNZ1_o.js → info-banner-osR4e6nB.js} +3 -3
  52. package/chunks/{label-CEYHiWSa.js → label-LWlgvAwz.js} +4 -4
  53. package/chunks/{layout-DVj8wSj3.js → layout-Db5um0f7.js} +23 -23
  54. package/chunks/{link-CQoSw1Pv.js → link-BAgs4RwY.js} +5 -5
  55. package/chunks/{link-button-BMFzCHH8.js → link-button-BuPMEGUj.js} +5 -5
  56. package/chunks/{list-box-VdBVTwZK.js → list-box-BN_MSiOD.js} +19 -18
  57. package/chunks/{logo-CDxNjDeI.js → logo-DyZ2pXt7.js} +1 -1
  58. package/chunks/{menu-CPCGm0MC.js → menu-aT2IR0tO.js} +1 -1
  59. package/chunks/{modal-C-xHt7Ds.js → modal-C-UsxdO0.js} +3 -3
  60. package/chunks/{popover-wAwxm_cM.js → popover-DGcogqbS.js} +1 -1
  61. package/chunks/{progress-bar-Cft_RPHz.js → progress-bar-7w_kWo2f.js} +2 -2
  62. package/chunks/{radio-W0YqY7lo.js → radio-C-MUMGu7.js} +9 -9
  63. package/chunks/{search-field-d7FV4Kuv.js → search-field-BvfOHvUI.js} +11 -11
  64. package/chunks/{select-LjjT_7hr.js → select-KQzDIamx.js} +34 -30
  65. package/chunks/{skeleton-DWmvym7R.js → skeleton-B_BPRPJy.js} +1 -1
  66. package/chunks/{spinner-DMR5G-6u.js → spinner-LdHPVms_.js} +1 -1
  67. package/chunks/{table-O7Ht2ilY.js → table-zT6eQ3ZZ.js} +2 -2
  68. package/chunks/{tabs-BFFTnO4i.js → tabs-Co09VWvC.js} +1 -1
  69. package/chunks/{tag-mzNjP8EX.js → tag-BIcqtf7b.js} +2 -2
  70. package/chunks/text-DwmZ-ew8.js +28 -0
  71. package/chunks/{textfield-BsijPPRD.js → textfield-CXqzzOtw.js} +12 -12
  72. package/chunks/{time-field-BlNUOjUJ.js → time-field-CmjGBQph.js} +11 -11
  73. package/chunks/{toast-Cz0JDIr1.js → toast-gJgjitZF.js} +3 -3
  74. package/chunks/{toggle-button-BgUQKcK-.js → toggle-button-CIvsOXQf.js} +1 -1
  75. package/chunks/{tooltip-D7LYQwj0.js → tooltip-BkesIUIF.js} +1 -1
  76. package/clear-button/index.js +1 -1
  77. package/color-scheme-switch/index.js +1 -1
  78. package/combobox/ComboBox.d.ts +1 -1
  79. package/combobox/ComboBox.stories.d.ts +3 -2
  80. package/combobox/index.js +1 -1
  81. package/common/FeedbackStatusIcon.d.ts +1 -1
  82. package/date-field/index.js +1 -1
  83. package/date-picker/DatePickerInputField.d.ts +1 -1
  84. package/date-picker/index.js +1 -1
  85. package/drop-zone/index.js +1 -1
  86. package/field-error/index.js +1 -1
  87. package/file-list/FileList.d.ts +1 -1
  88. package/file-list/FileList.stories.d.ts +3 -3
  89. package/file-list/FileListItem.d.ts +1 -1
  90. package/file-list/index.js +1 -1
  91. package/file-trigger/FileTrigger.d.ts +1 -1
  92. package/grid/index.js +1 -1
  93. package/heading/index.js +1 -1
  94. package/index.js +53 -53
  95. package/info-banner/index.js +1 -1
  96. package/label/InfoPopover.d.ts +1 -1
  97. package/label/index.js +1 -1
  98. package/layout/components/SidebarLink.d.ts +1 -1
  99. package/layout/index.js +1 -1
  100. package/link/Link.d.ts +1 -1
  101. package/link/index.js +1 -1
  102. package/link-button/LinkButton.d.ts +1 -1
  103. package/link-button/index.js +1 -1
  104. package/list-box/ListBox.d.ts +6 -1
  105. package/list-box/ListBox.stories.d.ts +4 -4
  106. package/list-box/ListBoxHeader.d.ts +1 -1
  107. package/list-box/ListBoxItem.d.ts +1 -1
  108. package/list-box/ListBoxSection.d.ts +1 -1
  109. package/list-box/index.js +1 -1
  110. package/list-box/list-box-empty-state/ListBoxEmptyState.d.ts +1 -1
  111. package/logo/Logo.d.ts +1 -1
  112. package/logo/index.js +1 -1
  113. package/menu/Menu.d.ts +1 -1
  114. package/menu/Menu.stories.d.ts +5 -4
  115. package/menu/MenuItem.d.ts +1 -1
  116. package/menu/MenuPopover.d.ts +1 -1
  117. package/menu/MenuSection.d.ts +1 -1
  118. package/menu/Separator.d.ts +1 -1
  119. package/menu/index.js +1 -1
  120. package/modal/index.js +1 -1
  121. package/package.json +6 -6
  122. package/popover/index.js +1 -1
  123. package/progress-bar/index.js +1 -1
  124. package/radio/Radio.d.ts +1 -1
  125. package/radio/Radio.stories.d.ts +6 -6
  126. package/radio/RadioButton.d.ts +1 -1
  127. package/radio/RadioField.d.ts +1 -1
  128. package/radio/RadioGroup.stories.d.ts +1 -1
  129. package/radio/index.js +1 -1
  130. package/search-field/SearchField.d.ts +1 -1
  131. package/search-field/SearchField.stories.d.ts +1 -1
  132. package/search-field/index.js +1 -1
  133. package/select/MultiSelectValue.d.ts +2 -1
  134. package/select/Select.d.ts +1 -1
  135. package/select/Select.stories.d.ts +2 -2
  136. package/select/SelectAll.d.ts +2 -1
  137. package/select/SelectTags.d.ts +1 -1
  138. package/select/SelectTrigger.d.ts +8 -2
  139. package/select/index.d.ts +1 -0
  140. package/select/index.js +2 -2
  141. package/skeleton/Skeleton.Form.stories.d.ts +1 -1
  142. package/skeleton/index.js +1 -1
  143. package/spinner/index.js +1 -1
  144. package/table/Table.d.ts +6 -6
  145. package/table/Table.stories.d.ts +7 -7
  146. package/table/index.js +1 -1
  147. package/tabs/TabList.d.ts +2 -1
  148. package/tabs/Tabs.stories.d.ts +1 -1
  149. package/tabs/index.js +1 -1
  150. package/tag/Tag.d.ts +1 -1
  151. package/tag/index.js +1 -1
  152. package/tag/tag-list/TagList.d.ts +1 -1
  153. package/text/index.js +1 -1
  154. package/textfield/PasswordToggle.d.ts +1 -1
  155. package/textfield/TextArea.stories.d.ts +9 -9
  156. package/textfield/index.js +1 -1
  157. package/time-field/index.js +1 -1
  158. package/toast/Toast.d.ts +3 -3
  159. package/toast/index.js +1 -1
  160. package/toggle-button/index.js +1 -1
  161. package/tooltip/Tooltip.d.ts +3 -2
  162. package/tooltip/Tooltip.stories.d.ts +1 -1
  163. package/tooltip/index.js +1 -1
  164. package/chunks/calendar-R7x0m8ch.js +0 -74
  165. package/chunks/heading-bnDePIbv.js +0 -28
  166. package/chunks/text-EUdAWwZz.js +0 -23
package/spinner/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/spinner-DMR5G-6u.js";
1
+ import { t as e } from "../chunks/spinner-LdHPVms_.js";
2
2
  export { e as Spinner };
package/table/Table.d.ts CHANGED
@@ -10,9 +10,9 @@ export interface TableProps extends AriaTableProps {
10
10
  */
11
11
  striped?: boolean;
12
12
  }
13
- export declare const Table: ({ size, striped, className, ...rest }: TableProps) => import("react/jsx-runtime").JSX.Element;
14
- export declare const TableHeader: <T extends object>({ columns, children, className, }: TableHeaderProps<T>) => import("react/jsx-runtime").JSX.Element;
15
- export declare const Row: <T extends object>({ id, columns, children, className, ...rest }: RowProps<T>) => import("react/jsx-runtime").JSX.Element;
16
- export declare const Column: ({ children, className, ...rest }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
17
- export declare const Cell: ({ className, ...rest }: CellProps) => import("react/jsx-runtime").JSX.Element;
18
- export declare const TableBody: <T extends object>({ className, ...rest }: TableBodyProps<T>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Table: ({ size, striped, className, ...rest }: TableProps) => import('react').JSX.Element;
14
+ export declare const TableHeader: <T extends object>({ columns, children, className, }: TableHeaderProps<T>) => import('react').JSX.Element;
15
+ export declare const Row: <T extends object>({ id, columns, children, className, ...rest }: RowProps<T>) => import('react').JSX.Element;
16
+ export declare const Column: ({ children, className, ...rest }: ColumnProps) => import('react').JSX.Element;
17
+ export declare const Cell: ({ className, ...rest }: CellProps) => import('react').JSX.Element;
18
+ export declare const TableBody: <T extends object>({ className, ...rest }: TableBodyProps<T>) => import('react').JSX.Element;
@@ -2,13 +2,13 @@ import { StoryObj } from '@storybook/react-vite';
2
2
  import { Table } from './Table';
3
3
  type Story = StoryObj<typeof Table>;
4
4
  declare const _default: {
5
- component: ({ size, striped, className, ...rest }: import('./Table').TableProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ size, striped, className, ...rest }: import('./Table').TableProps) => import('react').JSX.Element;
6
6
  subcomponents: {
7
- TableHeader: <T extends object>({ columns, children, className, }: import('react-aria-components').TableHeaderProps<T>) => import("react/jsx-runtime").JSX.Element;
8
- Column: ({ children, className, ...rest }: import('react-aria-components').ColumnProps) => import("react/jsx-runtime").JSX.Element;
9
- TableBody: <T extends object>({ className, ...rest }: import('react-aria-components').TableBodyProps<T>) => import("react/jsx-runtime").JSX.Element;
10
- Row: <T extends object>({ id, columns, children, className, ...rest }: import('react-aria-components').RowProps<T>) => import("react/jsx-runtime").JSX.Element;
11
- Cell: ({ className, ...rest }: import('react-aria-components').CellProps) => import("react/jsx-runtime").JSX.Element;
7
+ TableHeader: <T extends object>({ columns, children, className, }: import('react-aria-components').TableHeaderProps<T>) => import('react').JSX.Element;
8
+ Column: ({ children, className, ...rest }: import('react-aria-components').ColumnProps) => import('react').JSX.Element;
9
+ TableBody: <T extends object>({ className, ...rest }: import('react-aria-components').TableBodyProps<T>) => import('react').JSX.Element;
10
+ Row: <T extends object>({ id, columns, children, className, ...rest }: import('react-aria-components').RowProps<T>) => import('react').JSX.Element;
11
+ Cell: ({ className, ...rest }: import('react-aria-components').CellProps) => import('react').JSX.Element;
12
12
  };
13
13
  title: string;
14
14
  tags: string[];
@@ -28,7 +28,7 @@ declare const _default: {
28
28
  defaultValue: string;
29
29
  };
30
30
  };
31
- render: (args: import('./Table').TableProps) => import("react/jsx-runtime").JSX.Element;
31
+ render: (args: import('./Table').TableProps) => import('react').JSX.Element;
32
32
  };
33
33
  export default _default;
34
34
  export declare const Primary: Story;
package/table/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/table-O7Ht2ilY.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/table-zT6eQ3ZZ.js";
2
2
  export { a as Cell, n as Column, i as Row, t as Table, e as TableBody, r as TableHeader };
package/tabs/TabList.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import { TabListProps } from 'react-aria-components';
2
- export declare const TabList: <T extends object>({ className, ...props }: TabListProps<T>) => import("react/jsx-runtime").JSX.Element;
2
+ import * as React from 'react';
3
+ export declare const TabList: <T extends object>({ className, ...props }: TabListProps<T>) => React.JSX.Element;
3
4
  export type { TabListProps };
@@ -17,7 +17,7 @@ declare const _default: {
17
17
  variant: "uncontained";
18
18
  size: "large";
19
19
  };
20
- render: (args: import('./Tabs').TabsProps) => import("react/jsx-runtime").JSX.Element;
20
+ render: (args: import('./Tabs').TabsProps) => React.JSX.Element;
21
21
  };
22
22
  export default _default;
23
23
  export declare const Primary: Story;
package/tabs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "../chunks/tabs-BFFTnO4i.js";
1
+ import { i as e, n as t, r as n, t as r } from "../chunks/tabs-Co09VWvC.js";
2
2
  export { n as Tab, r as TabList, t as TabPanel, e as Tabs };
package/tag/Tag.d.ts CHANGED
@@ -19,4 +19,4 @@ export interface TagProps extends AriaTagProps {
19
19
  */
20
20
  type?: FeedbackStatus;
21
21
  }
22
- export declare const Tag: ({ className, color, dismissable, isDismissable, type, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const Tag: ({ className, color, dismissable, isDismissable, type, ...props }: TagProps) => import('react').JSX.Element;
package/tag/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "../chunks/tag-mzNjP8EX.js";
1
+ import { n as e, r as t, t as n } from "../chunks/tag-BIcqtf7b.js";
2
2
  export { t as Tag, n as TagGroup, e as TagList };
@@ -1,5 +1,5 @@
1
1
  import { TagListProps } from 'react-aria-components';
2
2
  import { ForwardedRef } from 'react';
3
3
  export type { TagListProps };
4
- declare const TagListInner: <T extends object>(props: TagListProps<T>, ref?: ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const TagListInner: <T extends object>(props: TagListProps<T>, ref?: ForwardedRef<HTMLDivElement>) => import('react').JSX.Element;
5
5
  export declare const TagList: <T>(props: TagListProps<T>, ref?: ForwardedRef<HTMLDivElement>) => ReturnType<typeof TagListInner>;
package/text/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/text-EUdAWwZz.js";
1
+ import { t as e } from "../chunks/text-DwmZ-ew8.js";
2
2
  export { e as Text };
@@ -2,5 +2,5 @@ interface PasswordToggleProps {
2
2
  showPassword: boolean;
3
3
  onToggle: () => void;
4
4
  }
5
- export declare const PasswordToggle: ({ showPassword, onToggle, }: PasswordToggleProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const PasswordToggle: ({ showPassword, onToggle, }: PasswordToggleProps) => import('react').JSX.Element;
6
6
  export {};
@@ -124,8 +124,8 @@ export declare const Disabled: {
124
124
  onChange?: ((value: string) => void) | undefined;
125
125
  onBeforeInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
126
126
  onInput?: import('react').FormEventHandler<HTMLInputElement> | undefined;
127
- onKeyDown?: (e: import('@react-types/shared').KeyboardEvent) => void;
128
- onKeyUp?: (e: import('@react-types/shared').KeyboardEvent) => void;
127
+ onKeyDown?: (e: import('react-aria-components').KeyboardEvent) => void;
128
+ onKeyUp?: (e: import('react-aria-components').KeyboardEvent) => void;
129
129
  onSelect?: import('react').ReactEventHandler<HTMLInputElement> | undefined;
130
130
  autoFocus?: boolean;
131
131
  onFocusChange?: (isFocused: boolean) => void;
@@ -139,15 +139,15 @@ export declare const Disabled: {
139
139
  isReadOnly?: boolean;
140
140
  errorMessage?: string | ((validation: import('react-aria-components').ValidationResult) => string);
141
141
  isInvalid?: boolean;
142
- description?: string;
143
142
  label?: string;
144
- autoComplete?: string;
145
- maxLength?: number;
146
- minLength?: number;
143
+ description?: string;
147
144
  validationBehavior?: "native" | "aria";
148
145
  isRequired?: boolean;
149
146
  validate?: ((value: string) => import('@react-types/shared').ValidationError | true | null | undefined) | undefined;
150
147
  errorPosition?: "top" | "bottom";
148
+ autoComplete?: string;
149
+ maxLength?: number;
150
+ minLength?: number;
151
151
  showCounter?: boolean;
152
152
  className?: import('react-aria-components').ClassNameOrFunction<import('react-aria-components').InputRenderProps>;
153
153
  color?: string | undefined;
@@ -294,8 +294,8 @@ export declare const Disabled: {
294
294
  onToggle?: import('react').ToggleEventHandler<HTMLTextAreaElement> | undefined;
295
295
  onBeforeToggle?: import('react').ToggleEventHandler<HTMLTextAreaElement> | undefined;
296
296
  rel?: string | undefined;
297
- onHoverStart?: (e: import('react-aria').HoverEvent) => void;
298
- onHoverEnd?: (e: import('react-aria').HoverEvent) => void;
297
+ onHoverStart?: (e: import('react-aria-components').HoverEvent) => void;
298
+ onHoverEnd?: (e: import('react-aria-components').HoverEvent) => void;
299
299
  onHoverChange?: (isHovering: boolean) => void;
300
300
  defaultChecked?: boolean | undefined;
301
301
  suppressContentEditableWarning?: boolean | undefined;
@@ -329,10 +329,10 @@ export declare const Disabled: {
329
329
  popoverTarget?: string | undefined;
330
330
  is?: string | undefined;
331
331
  exportparts?: string | undefined;
332
+ placeholder?: string | undefined;
332
333
  disabled?: boolean | undefined;
333
334
  cols?: number | undefined;
334
335
  dirName?: string | undefined;
335
- placeholder?: string | undefined;
336
336
  readOnly?: boolean | undefined;
337
337
  required?: boolean | undefined;
338
338
  wrap?: string | undefined;
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "../chunks/textfield-BsijPPRD.js";
1
+ import { i as e, n as t, r as n, t as r } from "../chunks/textfield-CXqzzOtw.js";
2
2
  export { n as Input, r as TextArea, t as TextField, e as TextFieldBase };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/time-field-BlNUOjUJ.js";
1
+ import { t as e } from "../chunks/time-field-CmjGBQph.js";
2
2
  export { e as TimeField };
package/toast/Toast.d.ts CHANGED
@@ -24,6 +24,6 @@ export interface ToastProviderProps extends AriaToastRegionProps {
24
24
  export { useToastState };
25
25
  export declare const toastQueue: ToastQueue<MidasToast>;
26
26
  export declare const GlobalToastRegion: (props: ToastProviderProps) => React.ReactPortal | null;
27
- export declare const ToastProvider: ({ children, ...props }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
28
- export declare function ToastRegion<T extends MidasToast>({ state, className, ...props }: ToastRegionProps<T>): import("react/jsx-runtime").JSX.Element;
29
- export declare function Toast<T extends MidasToast>({ state, className, ...props }: ToastProps<T>): import("react/jsx-runtime").JSX.Element;
27
+ export declare const ToastProvider: ({ children, ...props }: ToastProviderProps) => React.JSX.Element;
28
+ export declare function ToastRegion<T extends MidasToast>({ state, className, ...props }: ToastRegionProps<T>): React.JSX.Element;
29
+ export declare function Toast<T extends MidasToast>({ state, className, ...props }: ToastProps<T>): React.JSX.Element;
package/toast/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/toast-Cz0JDIr1.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/toast-gJgjitZF.js";
2
2
  export { a as GlobalToastRegion, n as Toast, i as ToastProvider, t as ToastRegion, e as toastQueue, r as useToastState };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/toggle-button-BgUQKcK-.js";
1
+ import { n as e, t } from "../chunks/toggle-button-CIvsOXQf.js";
2
2
  export { e as ToggleButton, t as ToggleButtonGroup };
@@ -1,4 +1,5 @@
1
1
  import { TooltipProps, TooltipTriggerComponentProps } from 'react-aria-components';
2
+ import * as React from 'react';
2
3
  export type { TooltipProps };
3
- export declare function Tooltip({ children, className, ...props }: TooltipProps): import("react/jsx-runtime").JSX.Element;
4
- export declare function TooltipTrigger({ delay, ...props }: TooltipTriggerComponentProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function Tooltip({ children, className, ...props }: TooltipProps): React.JSX.Element;
5
+ export declare function TooltipTrigger({ delay, ...props }: TooltipTriggerComponentProps): React.JSX.Element;
@@ -17,7 +17,7 @@ declare const _default: {
17
17
  args: {
18
18
  children: string;
19
19
  };
20
- render: (args: TooltipProps) => import("react/jsx-runtime").JSX.Element;
20
+ render: (args: TooltipProps) => import('react').JSX.Element;
21
21
  };
22
22
  export default _default;
23
23
  export declare const Primary: Story;
package/tooltip/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../chunks/tooltip-D7LYQwj0.js";
1
+ import { n as e, t } from "../chunks/tooltip-BkesIUIF.js";
2
2
  export { t as Tooltip, e as TooltipTrigger };
@@ -1,74 +0,0 @@
1
- import { n as e, t } from "./clsx-B1NYyfch.js";
2
- import { t as n } from "./createLucideIcon-BgluSHFG.js";
3
- import { t as r } from "./chevron-right-DwqboCdU.js";
4
- import { n as i } from "./button-Ch860h28.js";
5
- import { t as a } from "./heading-bnDePIbv.js";
6
- import { t as o } from "./field-error-pJiSw4PN.js";
7
- import * as s from "react";
8
- import { Calendar as c, CalendarCell as l, CalendarGrid as u, RangeCalendar as d, RangeCalendarContext as f } from "react-aria-components";
9
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
10
- import '../assets/calendar.css';var h = n("chevron-left", [["path", {
11
- d: "m15 18-6-6 6-6",
12
- key: "1wnfg3"
13
- }]]), g = {
14
- container: "_container_19aea_1",
15
- calendar: "_calendar_19aea_6",
16
- day: "_day_19aea_28",
17
- header: "_header_19aea_90",
18
- range: "_range_19aea_162"
19
- }, _ = ({ weekdayStyle: e = "short", isReadOnly: n }) => {
20
- let r = !!s.useContext(f);
21
- return /* @__PURE__ */ p(u, {
22
- weekdayStyle: e,
23
- children: (e) => /* @__PURE__ */ p(l, {
24
- date: e,
25
- className: t(g.day, r && g.range),
26
- "data-readonly": n || void 0
27
- })
28
- });
29
- }, v = ({ isDisabled: e, isReadOnly: t }) => /* @__PURE__ */ m("header", {
30
- className: g.header,
31
- children: [
32
- /* @__PURE__ */ p(i, {
33
- slot: "previous",
34
- size: "medium",
35
- "data-readonly": t || void 0,
36
- children: /* @__PURE__ */ p(h, { size: 20 })
37
- }),
38
- /* @__PURE__ */ p(a, {
39
- level: 3,
40
- elementType: "h2",
41
- "data-disabled": e || void 0
42
- }),
43
- /* @__PURE__ */ p(i, {
44
- slot: "next",
45
- size: "medium",
46
- "data-readonly": t || void 0,
47
- children: /* @__PURE__ */ p(r, { size: 20 })
48
- })
49
- ]
50
- }), y = ({ className: t, errorMessage: n, ...r }) => /* @__PURE__ */ m("div", {
51
- className: g.container,
52
- children: [/* @__PURE__ */ m(c, {
53
- className: e(g.calendar, t),
54
- "data-readonly": r.isReadOnly || void 0,
55
- ...r,
56
- children: [/* @__PURE__ */ p(v, { ...r }), /* @__PURE__ */ p(_, { ...r })]
57
- }), /* @__PURE__ */ p(o, {
58
- isInvalid: r.isInvalid,
59
- children: n
60
- })]
61
- }), b = ({ className: t, errorMessage: n, ...r }) => /* @__PURE__ */ m("div", {
62
- className: g.container,
63
- children: [/* @__PURE__ */ m(d, {
64
- className: e(g.calendar, t),
65
- "data-readonly": r.isReadOnly || void 0,
66
- ...r,
67
- children: [/* @__PURE__ */ p(v, { ...r }), /* @__PURE__ */ p(_, { ...r })]
68
- }), /* @__PURE__ */ p(o, {
69
- isInvalid: r.isInvalid,
70
- children: n
71
- })]
72
- });
73
- //#endregion
74
- export { y as n, b as t };
@@ -1,28 +0,0 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
2
- import "react";
3
- import { Heading as t } from "react-aria-components";
4
- import { jsx as n } from "react/jsx-runtime";
5
- import '../assets/heading.css';var r = {
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
- }, i = ({ children: i, className: a, enableMargins: o = !1, isExpressive: s = !1, level: c = 3, elementType: l, ...u }) => /* @__PURE__ */ n(t, {
13
- level: l && parseInt(l.split("h")[1]) || c,
14
- className: e([
15
- r.h1,
16
- r.h2,
17
- r.h3,
18
- r.h4,
19
- r.h5,
20
- r.h6
21
- ][c - 1], a),
22
- ...s && { "data-expressive": !0 },
23
- ...o && { "data-margin": !0 },
24
- ...u,
25
- children: i
26
- });
27
- //#endregion
28
- export { i as t };
@@ -1,23 +0,0 @@
1
- import { t as e } from "./clsx-B1NYyfch.js";
2
- import "react";
3
- import { Text as t } from "react-aria-components";
4
- import { jsx as n } from "react/jsx-runtime";
5
- import '../assets/text.css';var r = {
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
- }, i = "span", a = ({ children: a, className: o, size: s, isExpressive: c = !1, elementType: l = i, ...u }) => /* @__PURE__ */ n(t, {
13
- className: e(u.slot === "description" ? s === "small" ? r["description-small"] : r.description : s === "small" ? r["body-small"] : r.body, {
14
- [r.bold]: ["b", "strong"].includes(l),
15
- [r.italic]: ["i", "em"].includes(l)
16
- }, o),
17
- elementType: l || i,
18
- ...c && { "data-expressive": !0 },
19
- ...u,
20
- children: a
21
- });
22
- //#endregion
23
- export { a as t };