@ultraviolet/ui 3.0.0-beta.24 → 3.0.0-beta.26

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 (277) hide show
  1. package/dist/components/ActionBar/index.cjs +7 -3
  2. package/dist/components/ActionBar/index.d.ts +3 -2
  3. package/dist/components/ActionBar/index.js +7 -3
  4. package/dist/components/ActionBar/styles.css.cjs +1 -0
  5. package/dist/components/ActionBar/styles.css.js +1 -0
  6. package/dist/components/Alert/index.cjs +3 -2
  7. package/dist/components/Alert/index.d.ts +3 -2
  8. package/dist/components/Alert/index.js +3 -2
  9. package/dist/components/Alert/styles.css.cjs +0 -1
  10. package/dist/components/Alert/styles.css.js +0 -1
  11. package/dist/components/Avatar/index.cjs +4 -2
  12. package/dist/components/Avatar/index.d.ts +1 -1
  13. package/dist/components/Avatar/index.js +4 -2
  14. package/dist/components/Avatar/types.d.ts +2 -1
  15. package/dist/components/Badge/index.cjs +3 -2
  16. package/dist/components/Badge/index.d.ts +3 -2
  17. package/dist/components/Badge/index.js +3 -2
  18. package/dist/components/Banner/index.cjs +3 -2
  19. package/dist/components/Banner/index.d.ts +3 -2
  20. package/dist/components/Banner/index.js +3 -2
  21. package/dist/components/BarChart/index.cjs +4 -2
  22. package/dist/components/BarChart/index.d.ts +3 -2
  23. package/dist/components/BarChart/index.js +4 -2
  24. package/dist/components/BarStack/index.cjs +3 -2
  25. package/dist/components/BarStack/index.d.ts +3 -2
  26. package/dist/components/BarStack/index.js +3 -2
  27. package/dist/components/Breadcrumbs/index.cjs +3 -2
  28. package/dist/components/Breadcrumbs/index.d.ts +2 -1
  29. package/dist/components/Breadcrumbs/index.js +3 -2
  30. package/dist/components/Bullet/index.cjs +3 -2
  31. package/dist/components/Bullet/index.d.ts +3 -2
  32. package/dist/components/Bullet/index.js +3 -2
  33. package/dist/components/Button/index.cjs +1 -1
  34. package/dist/components/Button/index.js +1 -1
  35. package/dist/components/Card/index.cjs +4 -3
  36. package/dist/components/Card/index.d.ts +2 -1
  37. package/dist/components/Card/index.js +4 -3
  38. package/dist/components/Carousel/index.cjs +8 -4
  39. package/dist/components/Carousel/index.d.ts +4 -3
  40. package/dist/components/Carousel/index.js +8 -4
  41. package/dist/components/Checkbox/index.cjs +3 -2
  42. package/dist/components/Checkbox/index.d.ts +1 -1
  43. package/dist/components/Checkbox/index.js +3 -2
  44. package/dist/components/CheckboxGroup/index.cjs +6 -4
  45. package/dist/components/CheckboxGroup/index.d.ts +4 -4
  46. package/dist/components/CheckboxGroup/index.js +6 -4
  47. package/dist/components/Chip/index.cjs +3 -2
  48. package/dist/components/Chip/index.d.ts +3 -2
  49. package/dist/components/Chip/index.js +3 -2
  50. package/dist/components/CopyButton/index.cjs +3 -2
  51. package/dist/components/CopyButton/index.d.ts +3 -1
  52. package/dist/components/CopyButton/index.js +3 -2
  53. package/dist/components/DateInput/index.cjs +3 -2
  54. package/dist/components/DateInput/index.d.ts +3 -2
  55. package/dist/components/DateInput/index.js +3 -2
  56. package/dist/components/Dialog/components/Button.cjs +3 -2
  57. package/dist/components/Dialog/components/Button.d.ts +2 -2
  58. package/dist/components/Dialog/components/Button.js +3 -2
  59. package/dist/components/Dialog/components/CancelButton.cjs +3 -2
  60. package/dist/components/Dialog/components/CancelButton.d.ts +3 -2
  61. package/dist/components/Dialog/components/CancelButton.js +3 -2
  62. package/dist/components/Dialog/components/Stack.cjs +3 -2
  63. package/dist/components/Dialog/components/Stack.d.ts +3 -2
  64. package/dist/components/Dialog/components/Stack.js +3 -2
  65. package/dist/components/Dialog/components/Text.cjs +3 -2
  66. package/dist/components/Dialog/components/Text.d.ts +3 -1
  67. package/dist/components/Dialog/components/Text.js +3 -2
  68. package/dist/components/Dialog/index.cjs +3 -2
  69. package/dist/components/Dialog/index.d.ts +11 -8
  70. package/dist/components/Dialog/index.js +3 -2
  71. package/dist/components/Drawer/index.cjs +3 -2
  72. package/dist/components/Drawer/index.d.ts +3 -3
  73. package/dist/components/Drawer/index.js +3 -2
  74. package/dist/components/EmptyState/index.cjs +4 -3
  75. package/dist/components/EmptyState/index.d.ts +3 -2
  76. package/dist/components/EmptyState/index.js +4 -3
  77. package/dist/components/Expandable/index.cjs +15 -8
  78. package/dist/components/Expandable/index.d.ts +4 -3
  79. package/dist/components/Expandable/index.js +15 -8
  80. package/dist/components/ExpandableCard/components/Title.cjs +3 -2
  81. package/dist/components/ExpandableCard/components/Title.d.ts +2 -2
  82. package/dist/components/ExpandableCard/components/Title.js +3 -2
  83. package/dist/components/ExpandableCard/index.cjs +3 -2
  84. package/dist/components/ExpandableCard/index.d.ts +3 -2
  85. package/dist/components/ExpandableCard/index.js +3 -2
  86. package/dist/components/GlobalAlert/GlobalAlertLink.cjs +3 -2
  87. package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +1 -1
  88. package/dist/components/GlobalAlert/GlobalAlertLink.js +3 -2
  89. package/dist/components/GlobalAlert/index.cjs +3 -2
  90. package/dist/components/GlobalAlert/index.d.ts +4 -3
  91. package/dist/components/GlobalAlert/index.js +3 -2
  92. package/dist/components/InfiniteScroll/index.cjs +4 -2
  93. package/dist/components/InfiniteScroll/index.d.ts +3 -2
  94. package/dist/components/InfiniteScroll/index.js +4 -2
  95. package/dist/components/Key/index.cjs +3 -2
  96. package/dist/components/Key/index.d.ts +3 -1
  97. package/dist/components/Key/index.js +3 -2
  98. package/dist/components/Label/index.cjs +8 -6
  99. package/dist/components/Label/index.d.ts +3 -2
  100. package/dist/components/Label/index.js +8 -6
  101. package/dist/components/LineChart/index.cjs +3 -1
  102. package/dist/components/LineChart/index.d.ts +3 -2
  103. package/dist/components/LineChart/index.js +3 -1
  104. package/dist/components/Link/index.cjs +3 -2
  105. package/dist/components/Link/index.d.ts +2 -1
  106. package/dist/components/Link/index.js +3 -2
  107. package/dist/components/List/Cell.cjs +2 -2
  108. package/dist/components/List/Cell.js +2 -2
  109. package/dist/components/List/index.cjs +3 -2
  110. package/dist/components/List/index.d.ts +4 -3
  111. package/dist/components/List/index.js +3 -2
  112. package/dist/components/Loader/index.cjs +5 -3
  113. package/dist/components/Loader/index.d.ts +3 -1
  114. package/dist/components/Loader/index.js +5 -3
  115. package/dist/components/Menu/MenuContent.cjs +3 -2
  116. package/dist/components/Menu/MenuContent.d.ts +1 -1
  117. package/dist/components/Menu/MenuContent.js +3 -2
  118. package/dist/components/Menu/components/Group.cjs +3 -2
  119. package/dist/components/Menu/components/Group.d.ts +3 -2
  120. package/dist/components/Menu/components/Group.js +3 -2
  121. package/dist/components/Menu/components/Item.cjs +4 -3
  122. package/dist/components/Menu/components/Item.d.ts +2 -1
  123. package/dist/components/Menu/components/Item.js +4 -3
  124. package/dist/components/Menu/index.d.ts +4 -2
  125. package/dist/components/Menu/types.d.ts +1 -1
  126. package/dist/components/Meter/index.cjs +2 -1
  127. package/dist/components/Meter/index.d.ts +3 -1
  128. package/dist/components/Meter/index.js +2 -1
  129. package/dist/components/Modal/ModalContent.cjs +3 -2
  130. package/dist/components/Modal/ModalContent.d.ts +3 -2
  131. package/dist/components/Modal/ModalContent.js +3 -2
  132. package/dist/components/Modal/components/Dialog.cjs +9 -5
  133. package/dist/components/Modal/components/Dialog.d.ts +1 -1
  134. package/dist/components/Modal/components/Dialog.js +9 -5
  135. package/dist/components/Modal/index.cjs +3 -2
  136. package/dist/components/Modal/index.d.ts +3 -2
  137. package/dist/components/Modal/index.js +3 -2
  138. package/dist/components/Modal/types.d.ts +2 -1
  139. package/dist/components/Notice/index.cjs +3 -2
  140. package/dist/components/Notice/index.d.ts +3 -2
  141. package/dist/components/Notice/index.js +3 -2
  142. package/dist/components/Notification/index.cjs +2 -1
  143. package/dist/components/Notification/index.d.ts +3 -2
  144. package/dist/components/Notification/index.js +2 -1
  145. package/dist/components/NumberInput/index.cjs +3 -2
  146. package/dist/components/NumberInput/index.d.ts +1 -1
  147. package/dist/components/NumberInput/index.js +3 -2
  148. package/dist/components/Pagination/index.cjs +3 -2
  149. package/dist/components/Pagination/index.d.ts +3 -1
  150. package/dist/components/Pagination/index.js +3 -2
  151. package/dist/components/PasswordCheck/index.cjs +3 -2
  152. package/dist/components/PasswordCheck/index.d.ts +3 -1
  153. package/dist/components/PasswordCheck/index.js +3 -2
  154. package/dist/components/PieChart/index.cjs +8 -4
  155. package/dist/components/PieChart/index.d.ts +3 -2
  156. package/dist/components/PieChart/index.js +8 -4
  157. package/dist/components/Popover/index.cjs +3 -2
  158. package/dist/components/Popover/index.d.ts +1 -1
  159. package/dist/components/Popover/index.js +3 -2
  160. package/dist/components/Popup/index.cjs +8 -0
  161. package/dist/components/Popup/index.js +8 -0
  162. package/dist/components/Popup/styles.css.cjs +0 -1
  163. package/dist/components/Popup/styles.css.js +0 -1
  164. package/dist/components/Popup/variables.css.cjs +1 -0
  165. package/dist/components/Popup/variables.css.js +1 -0
  166. package/dist/components/ProgressBar/index.cjs +3 -2
  167. package/dist/components/ProgressBar/index.d.ts +3 -2
  168. package/dist/components/ProgressBar/index.js +3 -2
  169. package/dist/components/Radio/index.cjs +3 -1
  170. package/dist/components/Radio/index.d.ts +1 -1
  171. package/dist/components/Radio/index.js +3 -1
  172. package/dist/components/RadioGroup/index.cjs +3 -2
  173. package/dist/components/RadioGroup/index.d.ts +1 -1
  174. package/dist/components/RadioGroup/index.js +3 -2
  175. package/dist/components/SearchInput/index.cjs +3 -2
  176. package/dist/components/SearchInput/index.js +3 -2
  177. package/dist/components/SelectInput/components/selectBar.css.cjs +0 -2
  178. package/dist/components/SelectInput/components/selectBar.css.js +0 -2
  179. package/dist/components/SelectableCard/index.cjs +10 -6
  180. package/dist/components/SelectableCard/index.d.ts +2 -1
  181. package/dist/components/SelectableCard/index.js +10 -6
  182. package/dist/components/SelectableCardGroup/index.cjs +2 -1
  183. package/dist/components/SelectableCardGroup/index.d.ts +1 -1
  184. package/dist/components/SelectableCardGroup/index.js +2 -1
  185. package/dist/components/SelectableCardOptionGroup/components/Image.cjs +2 -20
  186. package/dist/components/SelectableCardOptionGroup/components/Image.js +2 -18
  187. package/dist/components/SelectableCardOptionGroup/components/Option.cjs +13 -74
  188. package/dist/components/SelectableCardOptionGroup/components/Option.d.ts +1 -1
  189. package/dist/components/SelectableCardOptionGroup/components/Option.js +8 -67
  190. package/dist/components/SelectableCardOptionGroup/index.cjs +3 -2
  191. package/dist/components/SelectableCardOptionGroup/index.d.ts +3 -3
  192. package/dist/components/SelectableCardOptionGroup/index.js +3 -2
  193. package/dist/components/SelectableCardOptionGroup/styles.css.cjs +16 -0
  194. package/dist/components/SelectableCardOptionGroup/styles.css.d.ts +7 -0
  195. package/dist/components/SelectableCardOptionGroup/styles.css.js +16 -0
  196. package/dist/components/Separator/index.cjs +3 -2
  197. package/dist/components/Separator/index.d.ts +3 -2
  198. package/dist/components/Separator/index.js +3 -2
  199. package/dist/components/Slider/index.cjs +2 -1
  200. package/dist/components/Slider/index.d.ts +1 -1
  201. package/dist/components/Slider/index.js +2 -1
  202. package/dist/components/Slider/types.d.ts +1 -1
  203. package/dist/components/Snippet/index.cjs +3 -2
  204. package/dist/components/Snippet/index.d.ts +3 -2
  205. package/dist/components/Snippet/index.js +3 -2
  206. package/dist/components/Stack/index.cjs +10 -6
  207. package/dist/components/Stack/index.d.ts +1 -1
  208. package/dist/components/Stack/index.js +10 -6
  209. package/dist/components/Status/index.cjs +3 -2
  210. package/dist/components/Status/index.d.ts +3 -1
  211. package/dist/components/Status/index.js +3 -2
  212. package/dist/components/StepList/index.cjs +2 -1
  213. package/dist/components/StepList/index.d.ts +3 -2
  214. package/dist/components/StepList/index.js +2 -1
  215. package/dist/components/Stepper/Step.cjs +2 -1
  216. package/dist/components/Stepper/Step.d.ts +3 -2
  217. package/dist/components/Stepper/Step.js +2 -1
  218. package/dist/components/Stepper/index.cjs +3 -2
  219. package/dist/components/Stepper/index.d.ts +5 -3
  220. package/dist/components/Stepper/index.js +3 -2
  221. package/dist/components/SwitchButton/Option.cjs +3 -2
  222. package/dist/components/SwitchButton/Option.d.ts +3 -2
  223. package/dist/components/SwitchButton/Option.js +3 -2
  224. package/dist/components/SwitchButton/index.cjs +3 -2
  225. package/dist/components/SwitchButton/index.d.ts +5 -3
  226. package/dist/components/SwitchButton/index.js +3 -2
  227. package/dist/components/Table/Cell.cjs +10 -6
  228. package/dist/components/Table/Cell.d.ts +3 -2
  229. package/dist/components/Table/Cell.js +10 -6
  230. package/dist/components/Table/Row.cjs +2 -1
  231. package/dist/components/Table/Row.d.ts +3 -2
  232. package/dist/components/Table/Row.js +2 -1
  233. package/dist/components/Table/index.cjs +3 -2
  234. package/dist/components/Table/index.d.ts +7 -3
  235. package/dist/components/Table/index.js +3 -2
  236. package/dist/components/Tabs/Tab.d.ts +2 -1
  237. package/dist/components/Tabs/index.d.ts +2 -0
  238. package/dist/components/TagInput/index.cjs +3 -2
  239. package/dist/components/TagInput/index.d.ts +3 -2
  240. package/dist/components/TagInput/index.js +3 -2
  241. package/dist/components/TagList/index.cjs +8 -6
  242. package/dist/components/TagList/index.d.ts +3 -2
  243. package/dist/components/TagList/index.js +8 -6
  244. package/dist/components/Text/style.css.cjs +0 -1
  245. package/dist/components/Text/style.css.js +0 -1
  246. package/dist/components/Text/variables.css.cjs +1 -0
  247. package/dist/components/Text/variables.css.js +1 -0
  248. package/dist/components/TextArea/index.cjs +8 -4
  249. package/dist/components/TextArea/index.d.ts +2 -1
  250. package/dist/components/TextArea/index.js +8 -4
  251. package/dist/components/TextInput/index.cjs +3 -2
  252. package/dist/components/TextInput/index.d.ts +1 -1
  253. package/dist/components/TextInput/index.js +3 -2
  254. package/dist/components/TimeInput/index.cjs +2 -1
  255. package/dist/components/TimeInput/index.d.ts +3 -2
  256. package/dist/components/TimeInput/index.js +2 -1
  257. package/dist/components/Toaster/components/Button.d.ts +1 -1
  258. package/dist/components/Toaster/index.cjs +3 -2
  259. package/dist/components/Toaster/index.d.ts +4 -3
  260. package/dist/components/Toaster/index.js +3 -2
  261. package/dist/components/Toaster/styles.css.d.ts +1 -0
  262. package/dist/components/Toggle/index.cjs +3 -2
  263. package/dist/components/Toggle/index.d.ts +1 -1
  264. package/dist/components/Toggle/index.js +3 -2
  265. package/dist/components/ToggleGroup/index.cjs +6 -4
  266. package/dist/components/ToggleGroup/index.d.ts +4 -4
  267. package/dist/components/ToggleGroup/index.js +6 -4
  268. package/dist/components/UnitInput/index.cjs +3 -2
  269. package/dist/components/UnitInput/index.d.ts +2 -2
  270. package/dist/components/UnitInput/index.js +3 -2
  271. package/dist/components/VerificationCode/index.cjs +3 -2
  272. package/dist/components/VerificationCode/index.d.ts +3 -2
  273. package/dist/components/VerificationCode/index.js +3 -2
  274. package/dist/ui.css +1 -1
  275. package/package.json +3 -2
  276. package/dist/components/Toaster/components/Button.cjs +0 -15
  277. package/dist/components/Toaster/components/Button.js +0 -12
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  import type { TableProviderProps } from './TableContext';
3
3
  import type { ColumnProps } from './types';
4
4
  export declare const BaseTable: import("react").ForwardRefExoticComponent<Omit<TableProviderProps, "columns" | "loading" | "bordered" | "autoCollapse" | "selectable" | "expandButton" | "stripped"> & {
@@ -16,6 +16,7 @@ export declare const BaseTable: import("react").ForwardRefExoticComponent<Omit<T
16
16
  autoCollapse?: boolean;
17
17
  expandButton?: boolean;
18
18
  columns: ColumnProps[];
19
+ style?: CSSProperties;
19
20
  } & import("react").RefAttributes<HTMLTableElement>>;
20
21
  /**
21
22
  * Table is a component that displays data in a tabular format.
@@ -35,19 +36,21 @@ export declare const Table: import("react").ForwardRefExoticComponent<Omit<Table
35
36
  autoCollapse?: boolean;
36
37
  expandButton?: boolean;
37
38
  columns: ColumnProps[];
39
+ style?: CSSProperties;
38
40
  } & import("react").RefAttributes<HTMLTableElement>> & {
39
41
  Body: ({ children }: {
40
42
  children: ReactNode;
41
43
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
42
- Cell: ({ children, className, colSpan, rowSpan, sentiment, align, }: {
44
+ Cell: ({ children, className, colSpan, rowSpan, sentiment, align, style, }: {
43
45
  children?: ReactNode;
44
46
  className?: string;
45
47
  colSpan?: number;
46
48
  rowSpan?: number;
47
49
  sentiment?: import("../../theme").Color;
48
50
  align?: "left" | "right" | "center";
51
+ style?: CSSProperties;
49
52
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
50
- Row: ({ children, className, id, selectDisabled, highlightAnimation, expandable, expanded, "data-testid": dataTestid, }: {
53
+ Row: ({ children, className, id, selectDisabled, highlightAnimation, expandable, expanded, style, "data-testid": dataTestid, }: {
51
54
  children: ReactNode;
52
55
  expandable?: ReactNode;
53
56
  className?: string;
@@ -56,6 +59,7 @@ export declare const Table: import("react").ForwardRefExoticComponent<Omit<Table
56
59
  selectDisabled?: boolean | string;
57
60
  highlightAnimation?: boolean;
58
61
  expanded?: boolean;
62
+ style?: CSSProperties;
59
63
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
60
64
  SelectBar: <T>({ children, data, idKey, className, }: {
61
65
  className?: string;
@@ -37,8 +37,9 @@ const BaseTable = forwardRef(({
37
37
  bordered = false,
38
38
  stripped = false,
39
39
  autoCollapse = false,
40
- onSelectedChange
41
- }, ref) => /* @__PURE__ */ jsx(TableProvider, { autoCollapse, bordered, columns, expandButton: expandable, onSelectedChange, selectable, stripped, children: /* @__PURE__ */ jsx(TableContainer, { children: /* @__PURE__ */ jsxs("table", { className: `${table}${stripped ? ` ${tableStripped}` : ""}${bordered ? ` ${tableBordered}` : ""}`, ref, children: [
40
+ onSelectedChange,
41
+ style
42
+ }, ref) => /* @__PURE__ */ jsx(TableProvider, { autoCollapse, bordered, columns, expandButton: expandable, onSelectedChange, selectable, stripped, children: /* @__PURE__ */ jsx(TableContainer, { children: /* @__PURE__ */ jsxs("table", { className: `${table}${stripped ? ` ${tableStripped}` : ""}${bordered ? ` ${tableBordered}` : ""}`, ref, style, children: [
42
43
  /* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(HeaderRow, { hasSelectAllColumn: selectable, children: columns.map((column, index) => /* @__PURE__ */ jsx(HeaderCell, { align: column.align, info: column.info, isOrdered: column.isOrdered, maxWidth: column.maxWidth, minWidth: column.minWidth, onOrder: column.onOrder, orderDirection: column.orderDirection, width: column.width, children: column.label }, `header-column-${index}`)) }) }),
43
44
  loading ? /* @__PURE__ */ jsx(Body, { children: /* @__PURE__ */ jsx(SkeletonRows, { cols: columns.length, rows: 5, selectable }) }) : children
44
45
  ] }) }) }));
@@ -1,4 +1,4 @@
1
- import type { ComponentProps, ElementType, KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';
1
+ import type { ComponentProps, CSSProperties, ElementType, KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';
2
2
  type TabProps<T extends ElementType = 'button'> = {
3
3
  as?: T;
4
4
  badge?: ReactNode;
@@ -11,6 +11,7 @@ type TabProps<T extends ElementType = 'button'> = {
11
11
  subtitle?: string;
12
12
  tooltip?: string;
13
13
  value?: string | number;
14
+ style?: CSSProperties;
14
15
  } & Omit<ComponentProps<T>, 'as' | 'badge' | 'children' | 'className' | 'counter' | 'disabled' | 'value' | 'tooltip' | 'role'>;
15
16
  export declare const Tab: import("react").ForwardRefExoticComponent<Omit<TabProps<ElementType>, "ref"> & import("react").RefAttributes<HTMLElement>>;
16
17
  export {};
@@ -23,6 +23,7 @@ export declare const Tabs: {
23
23
  subtitle?: string;
24
24
  tooltip?: string;
25
25
  value?: string | number;
26
+ style?: import("react").CSSProperties;
26
27
  } & Omit<any, "tooltip" | "disabled" | "as" | "className" | "children" | "role" | "value" | "badge" | "counter">, "ref"> & import("react").RefAttributes<HTMLElement>>;
27
28
  Menu: import("react").ForwardRefExoticComponent<{
28
29
  children: ReactNode;
@@ -46,6 +47,7 @@ export declare const Tabs: {
46
47
  active?: boolean;
47
48
  'data-testid'?: string;
48
49
  searchText?: string;
50
+ style?: import("react").CSSProperties;
49
51
  } & import("react").RefAttributes<HTMLElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
50
52
  };
51
53
  export {};
@@ -42,7 +42,8 @@ const TagInput = ({
42
42
  helper,
43
43
  readOnly = false,
44
44
  tooltip,
45
- clearable = false
45
+ clearable = false,
46
+ style
46
47
  }) => {
47
48
  const [tagInputState, setTagInput] = react.useState(convertTagArrayToTagStateArray(value));
48
49
  const [input, setInput] = react.useState("");
@@ -148,7 +149,7 @@ const TagInput = ({
148
149
  e.stopPropagation();
149
150
  deleteTag(tag.index);
150
151
  } : void 0, sentiment: "neutral", children: tag.label }, tag.index)),
151
- !disabled ? /* @__PURE__ */ jsxRuntime.jsx("input", { "aria-label": ariaLabel, className: styles_css.tagInput, "data-size": size, id: localId, name, onBlur: addTag, onChange: onInputChange, onKeyDown: handleInputKeydown, placeholder: tagInputState.length === 0 ? placeholder : "", readOnly, ref: inputRef, type: "text", value: input }) : null
152
+ !disabled ? /* @__PURE__ */ jsxRuntime.jsx("input", { "aria-label": ariaLabel, className: styles_css.tagInput, "data-size": size, id: localId, name, onBlur: addTag, onChange: onInputChange, onKeyDown: handleInputKeydown, placeholder: tagInputState.length === 0 ? placeholder : "", readOnly, ref: inputRef, style, type: "text", value: input }) : null
152
153
  ] }),
153
154
  computedClearable || success || error ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles_css.tagInputStateContainer, children: [
154
155
  computedClearable ? /* @__PURE__ */ jsxRuntime.jsx(index$4.Button, { "aria-label": "clear value", disabled, onClick: clearAll, sentiment: "neutral", size: "xsmall", variant: "ghost", children: /* @__PURE__ */ jsxRuntime.jsx(Icon.CloseIcon, {}) }) : null,
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  import type { TAGINPUT_SIZE_PADDING } from './styles.css';
3
3
  type TagInputSize = keyof typeof TAGINPUT_SIZE_PADDING;
4
4
  type TagInputProp = (string | {
@@ -28,9 +28,10 @@ type TagInputProps = {
28
28
  readOnly?: boolean;
29
29
  tooltip?: string;
30
30
  clearable?: boolean;
31
+ style?: CSSProperties;
31
32
  };
32
33
  /**
33
34
  * TagInput is a component that allows users to input tags.
34
35
  */
35
- export declare const TagInput: ({ disabled, id, name, onChange, placeholder, value, className, "data-testid": dataTestId, "aria-label": ariaLabel, label, labelDescription, required, size, error, success, helper, readOnly, tooltip, clearable, }: TagInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
36
+ export declare const TagInput: ({ disabled, id, name, onChange, placeholder, value, className, "data-testid": dataTestId, "aria-label": ariaLabel, label, labelDescription, required, size, error, success, helper, readOnly, tooltip, clearable, style, }: TagInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
36
37
  export {};
@@ -40,7 +40,8 @@ const TagInput = ({
40
40
  helper,
41
41
  readOnly = false,
42
42
  tooltip,
43
- clearable = false
43
+ clearable = false,
44
+ style
44
45
  }) => {
45
46
  const [tagInputState, setTagInput] = useState(convertTagArrayToTagStateArray(value));
46
47
  const [input, setInput] = useState("");
@@ -146,7 +147,7 @@ const TagInput = ({
146
147
  e.stopPropagation();
147
148
  deleteTag(tag.index);
148
149
  } : void 0, sentiment: "neutral", children: tag.label }, tag.index)),
149
- !disabled ? /* @__PURE__ */ jsx("input", { "aria-label": ariaLabel, className: tagInput, "data-size": size, id: localId, name, onBlur: addTag, onChange: onInputChange, onKeyDown: handleInputKeydown, placeholder: tagInputState.length === 0 ? placeholder : "", readOnly, ref: inputRef, type: "text", value: input }) : null
150
+ !disabled ? /* @__PURE__ */ jsx("input", { "aria-label": ariaLabel, className: tagInput, "data-size": size, id: localId, name, onBlur: addTag, onChange: onInputChange, onKeyDown: handleInputKeydown, placeholder: tagInputState.length === 0 ? placeholder : "", readOnly, ref: inputRef, style, type: "text", value: input }) : null
150
151
  ] }),
151
152
  computedClearable || success || error ? /* @__PURE__ */ jsxs("div", { className: tagInputStateContainer, children: [
152
153
  computedClearable ? /* @__PURE__ */ jsx(Button, { "aria-label": "clear value", disabled, onClick: clearAll, sentiment: "neutral", size: "xsmall", variant: "ghost", children: /* @__PURE__ */ jsx(CloseIcon, {}) }) : null,
@@ -23,7 +23,8 @@ const TagList = ({
23
23
  copyText,
24
24
  copiedText,
25
25
  className,
26
- "data-testid": dataTestId
26
+ "data-testid": dataTestId,
27
+ style
27
28
  }) => {
28
29
  const containerRef = react.useRef(null);
29
30
  const measureRef = react.useRef(null);
@@ -35,10 +36,10 @@ const TagList = ({
35
36
  const [hiddenTags, setHiddenTags] = react.useState([]);
36
37
  const memoizedResult = react.useMemo(() => {
37
38
  let tmpThreshold2 = threshold;
38
- if (tags.length > 0 && tags.slice(0, tmpThreshold2).reduce((acc, tag) => acc + getTagLabel(tag), "").length > maxLength) {
39
+ while (tmpThreshold2 > 1 && tags.length > 0 && tags.slice(0, tmpThreshold2).reduce((acc, tag) => acc + getTagLabel(tag), "").length > maxLength) {
39
40
  tmpThreshold2 -= 1;
40
41
  }
41
- const potentiallyVisibleTagsLength = tags.length > tmpThreshold2 || false ? tmpThreshold2 : tags.length;
42
+ const potentiallyVisibleTagsLength = Math.max(1, tags.length > tmpThreshold2 || false ? tmpThreshold2 : tags.length);
42
43
  const potentiallyVisibleTags2 = tags.slice(0, potentiallyVisibleTagsLength);
43
44
  const surelyHiddenTags2 = tags.slice(potentiallyVisibleTagsLength);
44
45
  return {
@@ -127,11 +128,12 @@ const TagList = ({
127
128
  `${getTagLabel(tag)}-${index2}`
128
129
  ) : /* @__PURE__ */ jsxRuntime.jsx(index$1.Tag, { className: isEllipsis ? "ellipsed" : "", copiable, copiedText, copyText, children: getTagLabel(tag) }, `${getTagLabel(tag)}-${index2}`);
129
130
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${className ? `${className} ` : ""}${styles_css.tagListContainer}`, "data-testid": dataTestId, style: {
130
- visibility: isReady ? "visible" : "hidden"
131
+ visibility: isReady ? "visible" : "hidden",
132
+ ...style
131
133
  }, children: [
132
134
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${styles_css.tagContainer({
133
135
  multiline
134
- })} ${visibleTags.length === 1 && hiddenTags.length === 0 || popoverTriggerWidth ? styles_css.ellipsisContainer : ""}`, ref: containerRef, style: dynamic.assignInlineVars({
136
+ })} ${visibleTags.length === 1 && hiddenTags.length === 0 || popoverTriggerWidth ? styles_css.ellipsisContainer : ""}`, "data-testid": `${dataTestId ?? "taglist"}-container`, ref: containerRef, style: dynamic.assignInlineVars({
135
137
  [styles_css.popoverTriggerWidthVar]: `${popoverTriggerWidth || 0}px`
136
138
  }), children: visibleTags.map((tag, index2) => renderTag(
137
139
  tag,
@@ -145,7 +147,7 @@ const TagList = ({
145
147
  whiteSpace: "nowrap"
146
148
  }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.tagContainer({
147
149
  multiline
148
- }), children: potentiallyVisibleTags.map((tag, index2) => renderTag(tag, index2)) }) }),
150
+ }), "data-testid": `${dataTestId ?? "taglist"}-measure-container`, children: potentiallyVisibleTags.map((tag, index2) => renderTag(tag, index2)) }) }),
149
151
  hiddenTags.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(index.Popover, { content: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.tagContainer({
150
152
  multiline: true
151
153
  }), children: hiddenTags.map((tag, index2) => renderTag(tag, index2)) }), maxHeight: popoverMaxHeight, onClose: () => setIsPopoverVisible(false), placement: popoverPlacement, size: "small", title: popoverTitle, visible: isPopoverVisible, children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles_css.tagsWrapper, "data-testid": `${dataTestId ?? "taglist"}-open`, onClick: () => setIsPopoverVisible(true), onKeyDown: (event) => {
@@ -1,4 +1,4 @@
1
- import type { ComponentProps, ReactNode } from 'react';
1
+ import type { ComponentProps, CSSProperties, ReactNode } from 'react';
2
2
  import { Popover } from '../Popover';
3
3
  import { Tag } from '../Tag';
4
4
  export type TagType = string | {
@@ -35,9 +35,10 @@ type TagListProps = {
35
35
  popoverMaxHeight?: ComponentProps<typeof Popover>['maxHeight'];
36
36
  className?: string;
37
37
  'data-testid'?: string;
38
+ style?: CSSProperties;
38
39
  } & Pick<ComponentProps<typeof Tag>, 'copiable' | 'copyText' | 'copiedText'>;
39
40
  /**
40
41
  * This component is used to display a list of tags with a threshold and a popover when there are too many tags.
41
42
  */
42
- export declare const TagList: ({ maxLength, tags, threshold, multiline, popoverTitle, popoverPlacement, popoverMaxHeight, copiable, copyText, copiedText, className, "data-testid": dataTestId, }: TagListProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
43
+ export declare const TagList: ({ maxLength, tags, threshold, multiline, popoverTitle, popoverPlacement, popoverMaxHeight, copiable, copyText, copiedText, className, "data-testid": dataTestId, style, }: TagListProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
43
44
  export {};
@@ -21,7 +21,8 @@ const TagList = ({
21
21
  copyText,
22
22
  copiedText,
23
23
  className,
24
- "data-testid": dataTestId
24
+ "data-testid": dataTestId,
25
+ style
25
26
  }) => {
26
27
  const containerRef = useRef(null);
27
28
  const measureRef = useRef(null);
@@ -33,10 +34,10 @@ const TagList = ({
33
34
  const [hiddenTags, setHiddenTags] = useState([]);
34
35
  const memoizedResult = useMemo(() => {
35
36
  let tmpThreshold2 = threshold;
36
- if (tags.length > 0 && tags.slice(0, tmpThreshold2).reduce((acc, tag) => acc + getTagLabel(tag), "").length > maxLength) {
37
+ while (tmpThreshold2 > 1 && tags.length > 0 && tags.slice(0, tmpThreshold2).reduce((acc, tag) => acc + getTagLabel(tag), "").length > maxLength) {
37
38
  tmpThreshold2 -= 1;
38
39
  }
39
- const potentiallyVisibleTagsLength = tags.length > tmpThreshold2 || false ? tmpThreshold2 : tags.length;
40
+ const potentiallyVisibleTagsLength = Math.max(1, tags.length > tmpThreshold2 || false ? tmpThreshold2 : tags.length);
40
41
  const potentiallyVisibleTags2 = tags.slice(0, potentiallyVisibleTagsLength);
41
42
  const surelyHiddenTags2 = tags.slice(potentiallyVisibleTagsLength);
42
43
  return {
@@ -125,11 +126,12 @@ const TagList = ({
125
126
  `${getTagLabel(tag)}-${index}`
126
127
  ) : /* @__PURE__ */ jsx(Tag, { className: isEllipsis ? "ellipsed" : "", copiable, copiedText, copyText, children: getTagLabel(tag) }, `${getTagLabel(tag)}-${index}`);
127
128
  return /* @__PURE__ */ jsxs("div", { className: `${className ? `${className} ` : ""}${tagListContainer}`, "data-testid": dataTestId, style: {
128
- visibility: isReady ? "visible" : "hidden"
129
+ visibility: isReady ? "visible" : "hidden",
130
+ ...style
129
131
  }, children: [
130
132
  /* @__PURE__ */ jsx("div", { className: `${tagContainer({
131
133
  multiline
132
- })} ${visibleTags.length === 1 && hiddenTags.length === 0 || popoverTriggerWidth ? ellipsisContainer : ""}`, ref: containerRef, style: assignInlineVars({
134
+ })} ${visibleTags.length === 1 && hiddenTags.length === 0 || popoverTriggerWidth ? ellipsisContainer : ""}`, "data-testid": `${dataTestId ?? "taglist"}-container`, ref: containerRef, style: assignInlineVars({
133
135
  [popoverTriggerWidthVar]: `${popoverTriggerWidth || 0}px`
134
136
  }), children: visibleTags.map((tag, index) => renderTag(
135
137
  tag,
@@ -143,7 +145,7 @@ const TagList = ({
143
145
  whiteSpace: "nowrap"
144
146
  }, children: /* @__PURE__ */ jsx("div", { className: tagContainer({
145
147
  multiline
146
- }), children: potentiallyVisibleTags.map((tag, index) => renderTag(tag, index)) }) }),
148
+ }), "data-testid": `${dataTestId ?? "taglist"}-measure-container`, children: potentiallyVisibleTags.map((tag, index) => renderTag(tag, index)) }) }),
147
149
  hiddenTags.length > 0 && /* @__PURE__ */ jsx(Popover, { content: /* @__PURE__ */ jsx("div", { className: tagContainer({
148
150
  multiline: true
149
151
  }), children: hiddenTags.map((tag, index) => renderTag(tag, index)) }), maxHeight: popoverMaxHeight, onClose: () => setIsPopoverVisible(false), placement: popoverPlacement, size: "small", title: popoverTitle, visible: isPopoverVisible, children: /* @__PURE__ */ jsxs("span", { className: tagsWrapper, "data-testid": `${dataTestId ?? "taglist"}-open`, onClick: () => setIsPopoverVisible(true), onKeyDown: (event) => {
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- ;/* empty css */
4
3
  ;/* empty css */
5
4
  const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
6
5
  var text = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_m4c9ow0", variantClassNames: { strikeThrough: { true: "uv_m4c9ow1", false: "uv_m4c9ow2" }, italic: { true: "uv_m4c9ow3", false: "uv_m4c9ow4" }, underline: { true: "uv_m4c9ow5", false: "uv_m4c9ow6" }, oneLine: { true: "uv_m4c9ow7", false: "uv_m4c9ow8" }, sentiment: { primary: "uv_m4c9ow9", secondary: "uv_m4c9owa", neutral: "uv_m4c9owb", success: "uv_m4c9owc", danger: "uv_m4c9owd", warning: "uv_m4c9owe", info: "uv_m4c9owf", black: "uv_m4c9owg", white: "uv_m4c9owh" }, prominence: { "default": "uv_m4c9owi", strong: "uv_m4c9owj", stronger: "uv_m4c9owk", weak: "uv_m4c9owl" }, variant: { body: "uv_m4c9owm", bodySmall: "uv_m4c9own", bodySmallStrong: "uv_m4c9owo", bodySmallStronger: "uv_m4c9owp", bodyStrong: "uv_m4c9owq", bodyStronger: "uv_m4c9owr", caption: "uv_m4c9ows", captionSmall: "uv_m4c9owt", captionSmallStrong: "uv_m4c9owu", captionSmallStronger: "uv_m4c9owv", captionStrong: "uv_m4c9oww", captionStronger: "uv_m4c9owx", code: "uv_m4c9owy", codeStrong: "uv_m4c9owz", codeStronger: "uv_m4c9ow10", heading: "uv_m4c9ow11", headingLarge: "uv_m4c9ow12", headingLargeStrong: "uv_m4c9ow13", headingLargeStronger: "uv_m4c9ow14", headingSmall: "uv_m4c9ow15", headingSmallStrong: "uv_m4c9ow16", headingSmallStronger: "uv_m4c9ow17", headingStrong: "uv_m4c9ow18", headingStronger: "uv_m4c9ow19" }, disabled: { true: "uv_m4c9ow1a", false: "uv_m4c9ow1b" } }, defaultVariants: { strikeThrough: false, italic: false, underline: false, oneLine: false, sentiment: void 0, prominence: "default", variant: "body", disabled: false }, compoundVariants: [[{ sentiment: "primary", prominence: "default", disabled: false }, "uv_m4c9ow1c"], [{ sentiment: "primary", prominence: "strong", disabled: false }, "uv_m4c9ow1d"], [{ sentiment: "primary", prominence: "stronger", disabled: false }, "uv_m4c9ow1e"], [{ sentiment: "primary", prominence: "weak", disabled: false }, "uv_m4c9ow1f"], [{ sentiment: "secondary", prominence: "default", disabled: false }, "uv_m4c9ow1g"], [{ sentiment: "secondary", prominence: "strong", disabled: false }, "uv_m4c9ow1h"], [{ sentiment: "secondary", prominence: "stronger", disabled: false }, "uv_m4c9ow1i"], [{ sentiment: "secondary", prominence: "weak", disabled: false }, "uv_m4c9ow1j"], [{ sentiment: "danger", prominence: "default", disabled: false }, "uv_m4c9ow1k"], [{ sentiment: "danger", prominence: "strong", disabled: false }, "uv_m4c9ow1l"], [{ sentiment: "danger", prominence: "stronger", disabled: false }, "uv_m4c9ow1m"], [{ sentiment: "danger", prominence: "weak", disabled: false }, "uv_m4c9ow1n"], [{ sentiment: "info", prominence: "default", disabled: false }, "uv_m4c9ow1o"], [{ sentiment: "info", prominence: "strong", disabled: false }, "uv_m4c9ow1p"], [{ sentiment: "info", prominence: "stronger", disabled: false }, "uv_m4c9ow1q"], [{ sentiment: "info", prominence: "weak", disabled: false }, "uv_m4c9ow1r"], [{ sentiment: "success", prominence: "default", disabled: false }, "uv_m4c9ow1s"], [{ sentiment: "success", prominence: "strong", disabled: false }, "uv_m4c9ow1t"], [{ sentiment: "success", prominence: "stronger", disabled: false }, "uv_m4c9ow1u"], [{ sentiment: "success", prominence: "weak", disabled: false }, "uv_m4c9ow1v"], [{ sentiment: "warning", prominence: "default", disabled: false }, "uv_m4c9ow1w"], [{ sentiment: "warning", prominence: "strong", disabled: false }, "uv_m4c9ow1x"], [{ sentiment: "warning", prominence: "stronger", disabled: false }, "uv_m4c9ow1y"], [{ sentiment: "warning", prominence: "weak", disabled: false }, "uv_m4c9ow1z"], [{ sentiment: "neutral", prominence: "default", disabled: false }, "uv_m4c9ow20"], [{ sentiment: "neutral", prominence: "strong", disabled: false }, "uv_m4c9ow21"], [{ sentiment: "neutral", prominence: "stronger", disabled: false }, "uv_m4c9ow22"], [{ sentiment: "neutral", prominence: "weak", disabled: false }, "uv_m4c9ow23"], [{ sentiment: "black", prominence: "default", disabled: false }, "uv_m4c9ow24"], [{ sentiment: "black", prominence: "strong", disabled: false }, "uv_m4c9ow25"], [{ sentiment: "black", prominence: "stronger", disabled: false }, "uv_m4c9ow26"], [{ sentiment: "black", prominence: "weak", disabled: false }, "uv_m4c9ow27"], [{ sentiment: "white", prominence: "default", disabled: false }, "uv_m4c9ow28"], [{ sentiment: "white", prominence: "strong", disabled: false }, "uv_m4c9ow29"], [{ sentiment: "white", prominence: "stronger", disabled: false }, "uv_m4c9ow2a"], [{ sentiment: "white", prominence: "weak", disabled: false }, "uv_m4c9ow2b"], [{ sentiment: "primary", prominence: "default", disabled: true }, "uv_m4c9ow2c"], [{ sentiment: "primary", prominence: "strong", disabled: true }, "uv_m4c9ow2d"], [{ sentiment: "primary", prominence: "stronger", disabled: true }, "uv_m4c9ow2e"], [{ sentiment: "primary", prominence: "weak", disabled: true }, "uv_m4c9ow2f"], [{ sentiment: "secondary", prominence: "default", disabled: true }, "uv_m4c9ow2g"], [{ sentiment: "secondary", prominence: "strong", disabled: true }, "uv_m4c9ow2h"], [{ sentiment: "secondary", prominence: "stronger", disabled: true }, "uv_m4c9ow2i"], [{ sentiment: "secondary", prominence: "weak", disabled: true }, "uv_m4c9ow2j"], [{ sentiment: "danger", prominence: "default", disabled: true }, "uv_m4c9ow2k"], [{ sentiment: "danger", prominence: "strong", disabled: true }, "uv_m4c9ow2l"], [{ sentiment: "danger", prominence: "stronger", disabled: true }, "uv_m4c9ow2m"], [{ sentiment: "danger", prominence: "weak", disabled: true }, "uv_m4c9ow2n"], [{ sentiment: "info", prominence: "default", disabled: true }, "uv_m4c9ow2o"], [{ sentiment: "info", prominence: "strong", disabled: true }, "uv_m4c9ow2p"], [{ sentiment: "info", prominence: "stronger", disabled: true }, "uv_m4c9ow2q"], [{ sentiment: "info", prominence: "weak", disabled: true }, "uv_m4c9ow2r"], [{ sentiment: "success", prominence: "default", disabled: true }, "uv_m4c9ow2s"], [{ sentiment: "success", prominence: "strong", disabled: true }, "uv_m4c9ow2t"], [{ sentiment: "success", prominence: "stronger", disabled: true }, "uv_m4c9ow2u"], [{ sentiment: "success", prominence: "weak", disabled: true }, "uv_m4c9ow2v"], [{ sentiment: "warning", prominence: "default", disabled: true }, "uv_m4c9ow2w"], [{ sentiment: "warning", prominence: "strong", disabled: true }, "uv_m4c9ow2x"], [{ sentiment: "warning", prominence: "stronger", disabled: true }, "uv_m4c9ow2y"], [{ sentiment: "warning", prominence: "weak", disabled: true }, "uv_m4c9ow2z"], [{ sentiment: "neutral", prominence: "default", disabled: true }, "uv_m4c9ow30"], [{ sentiment: "neutral", prominence: "strong", disabled: true }, "uv_m4c9ow31"], [{ sentiment: "neutral", prominence: "stronger", disabled: true }, "uv_m4c9ow32"], [{ sentiment: "neutral", prominence: "weak", disabled: true }, "uv_m4c9ow33"], [{ sentiment: "black", prominence: "default", disabled: true }, "uv_m4c9ow34"], [{ sentiment: "black", prominence: "strong", disabled: true }, "uv_m4c9ow35"], [{ sentiment: "black", prominence: "stronger", disabled: true }, "uv_m4c9ow36"], [{ sentiment: "black", prominence: "weak", disabled: true }, "uv_m4c9ow37"], [{ sentiment: "white", prominence: "default", disabled: true }, "uv_m4c9ow38"], [{ sentiment: "white", prominence: "strong", disabled: true }, "uv_m4c9ow39"], [{ sentiment: "white", prominence: "stronger", disabled: true }, "uv_m4c9ow3a"], [{ sentiment: "white", prominence: "weak", disabled: true }, "uv_m4c9ow3b"], [{ prominence: "default", disabled: false }, "uv_m4c9ow3c"], [{ prominence: "strong", disabled: false }, "uv_m4c9ow3d"], [{ prominence: "stronger", disabled: false }, "uv_m4c9ow3e"], [{ prominence: "weak", disabled: false }, "uv_m4c9ow3f"]] });
@@ -1,4 +1,3 @@
1
- /* empty css */
2
1
  /* empty css */
3
2
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
4
3
  var text = createRuntimeFn({ defaultClassName: "uv_m4c9ow0", variantClassNames: { strikeThrough: { true: "uv_m4c9ow1", false: "uv_m4c9ow2" }, italic: { true: "uv_m4c9ow3", false: "uv_m4c9ow4" }, underline: { true: "uv_m4c9ow5", false: "uv_m4c9ow6" }, oneLine: { true: "uv_m4c9ow7", false: "uv_m4c9ow8" }, sentiment: { primary: "uv_m4c9ow9", secondary: "uv_m4c9owa", neutral: "uv_m4c9owb", success: "uv_m4c9owc", danger: "uv_m4c9owd", warning: "uv_m4c9owe", info: "uv_m4c9owf", black: "uv_m4c9owg", white: "uv_m4c9owh" }, prominence: { "default": "uv_m4c9owi", strong: "uv_m4c9owj", stronger: "uv_m4c9owk", weak: "uv_m4c9owl" }, variant: { body: "uv_m4c9owm", bodySmall: "uv_m4c9own", bodySmallStrong: "uv_m4c9owo", bodySmallStronger: "uv_m4c9owp", bodyStrong: "uv_m4c9owq", bodyStronger: "uv_m4c9owr", caption: "uv_m4c9ows", captionSmall: "uv_m4c9owt", captionSmallStrong: "uv_m4c9owu", captionSmallStronger: "uv_m4c9owv", captionStrong: "uv_m4c9oww", captionStronger: "uv_m4c9owx", code: "uv_m4c9owy", codeStrong: "uv_m4c9owz", codeStronger: "uv_m4c9ow10", heading: "uv_m4c9ow11", headingLarge: "uv_m4c9ow12", headingLargeStrong: "uv_m4c9ow13", headingLargeStronger: "uv_m4c9ow14", headingSmall: "uv_m4c9ow15", headingSmallStrong: "uv_m4c9ow16", headingSmallStronger: "uv_m4c9ow17", headingStrong: "uv_m4c9ow18", headingStronger: "uv_m4c9ow19" }, disabled: { true: "uv_m4c9ow1a", false: "uv_m4c9ow1b" } }, defaultVariants: { strikeThrough: false, italic: false, underline: false, oneLine: false, sentiment: void 0, prominence: "default", variant: "body", disabled: false }, compoundVariants: [[{ sentiment: "primary", prominence: "default", disabled: false }, "uv_m4c9ow1c"], [{ sentiment: "primary", prominence: "strong", disabled: false }, "uv_m4c9ow1d"], [{ sentiment: "primary", prominence: "stronger", disabled: false }, "uv_m4c9ow1e"], [{ sentiment: "primary", prominence: "weak", disabled: false }, "uv_m4c9ow1f"], [{ sentiment: "secondary", prominence: "default", disabled: false }, "uv_m4c9ow1g"], [{ sentiment: "secondary", prominence: "strong", disabled: false }, "uv_m4c9ow1h"], [{ sentiment: "secondary", prominence: "stronger", disabled: false }, "uv_m4c9ow1i"], [{ sentiment: "secondary", prominence: "weak", disabled: false }, "uv_m4c9ow1j"], [{ sentiment: "danger", prominence: "default", disabled: false }, "uv_m4c9ow1k"], [{ sentiment: "danger", prominence: "strong", disabled: false }, "uv_m4c9ow1l"], [{ sentiment: "danger", prominence: "stronger", disabled: false }, "uv_m4c9ow1m"], [{ sentiment: "danger", prominence: "weak", disabled: false }, "uv_m4c9ow1n"], [{ sentiment: "info", prominence: "default", disabled: false }, "uv_m4c9ow1o"], [{ sentiment: "info", prominence: "strong", disabled: false }, "uv_m4c9ow1p"], [{ sentiment: "info", prominence: "stronger", disabled: false }, "uv_m4c9ow1q"], [{ sentiment: "info", prominence: "weak", disabled: false }, "uv_m4c9ow1r"], [{ sentiment: "success", prominence: "default", disabled: false }, "uv_m4c9ow1s"], [{ sentiment: "success", prominence: "strong", disabled: false }, "uv_m4c9ow1t"], [{ sentiment: "success", prominence: "stronger", disabled: false }, "uv_m4c9ow1u"], [{ sentiment: "success", prominence: "weak", disabled: false }, "uv_m4c9ow1v"], [{ sentiment: "warning", prominence: "default", disabled: false }, "uv_m4c9ow1w"], [{ sentiment: "warning", prominence: "strong", disabled: false }, "uv_m4c9ow1x"], [{ sentiment: "warning", prominence: "stronger", disabled: false }, "uv_m4c9ow1y"], [{ sentiment: "warning", prominence: "weak", disabled: false }, "uv_m4c9ow1z"], [{ sentiment: "neutral", prominence: "default", disabled: false }, "uv_m4c9ow20"], [{ sentiment: "neutral", prominence: "strong", disabled: false }, "uv_m4c9ow21"], [{ sentiment: "neutral", prominence: "stronger", disabled: false }, "uv_m4c9ow22"], [{ sentiment: "neutral", prominence: "weak", disabled: false }, "uv_m4c9ow23"], [{ sentiment: "black", prominence: "default", disabled: false }, "uv_m4c9ow24"], [{ sentiment: "black", prominence: "strong", disabled: false }, "uv_m4c9ow25"], [{ sentiment: "black", prominence: "stronger", disabled: false }, "uv_m4c9ow26"], [{ sentiment: "black", prominence: "weak", disabled: false }, "uv_m4c9ow27"], [{ sentiment: "white", prominence: "default", disabled: false }, "uv_m4c9ow28"], [{ sentiment: "white", prominence: "strong", disabled: false }, "uv_m4c9ow29"], [{ sentiment: "white", prominence: "stronger", disabled: false }, "uv_m4c9ow2a"], [{ sentiment: "white", prominence: "weak", disabled: false }, "uv_m4c9ow2b"], [{ sentiment: "primary", prominence: "default", disabled: true }, "uv_m4c9ow2c"], [{ sentiment: "primary", prominence: "strong", disabled: true }, "uv_m4c9ow2d"], [{ sentiment: "primary", prominence: "stronger", disabled: true }, "uv_m4c9ow2e"], [{ sentiment: "primary", prominence: "weak", disabled: true }, "uv_m4c9ow2f"], [{ sentiment: "secondary", prominence: "default", disabled: true }, "uv_m4c9ow2g"], [{ sentiment: "secondary", prominence: "strong", disabled: true }, "uv_m4c9ow2h"], [{ sentiment: "secondary", prominence: "stronger", disabled: true }, "uv_m4c9ow2i"], [{ sentiment: "secondary", prominence: "weak", disabled: true }, "uv_m4c9ow2j"], [{ sentiment: "danger", prominence: "default", disabled: true }, "uv_m4c9ow2k"], [{ sentiment: "danger", prominence: "strong", disabled: true }, "uv_m4c9ow2l"], [{ sentiment: "danger", prominence: "stronger", disabled: true }, "uv_m4c9ow2m"], [{ sentiment: "danger", prominence: "weak", disabled: true }, "uv_m4c9ow2n"], [{ sentiment: "info", prominence: "default", disabled: true }, "uv_m4c9ow2o"], [{ sentiment: "info", prominence: "strong", disabled: true }, "uv_m4c9ow2p"], [{ sentiment: "info", prominence: "stronger", disabled: true }, "uv_m4c9ow2q"], [{ sentiment: "info", prominence: "weak", disabled: true }, "uv_m4c9ow2r"], [{ sentiment: "success", prominence: "default", disabled: true }, "uv_m4c9ow2s"], [{ sentiment: "success", prominence: "strong", disabled: true }, "uv_m4c9ow2t"], [{ sentiment: "success", prominence: "stronger", disabled: true }, "uv_m4c9ow2u"], [{ sentiment: "success", prominence: "weak", disabled: true }, "uv_m4c9ow2v"], [{ sentiment: "warning", prominence: "default", disabled: true }, "uv_m4c9ow2w"], [{ sentiment: "warning", prominence: "strong", disabled: true }, "uv_m4c9ow2x"], [{ sentiment: "warning", prominence: "stronger", disabled: true }, "uv_m4c9ow2y"], [{ sentiment: "warning", prominence: "weak", disabled: true }, "uv_m4c9ow2z"], [{ sentiment: "neutral", prominence: "default", disabled: true }, "uv_m4c9ow30"], [{ sentiment: "neutral", prominence: "strong", disabled: true }, "uv_m4c9ow31"], [{ sentiment: "neutral", prominence: "stronger", disabled: true }, "uv_m4c9ow32"], [{ sentiment: "neutral", prominence: "weak", disabled: true }, "uv_m4c9ow33"], [{ sentiment: "black", prominence: "default", disabled: true }, "uv_m4c9ow34"], [{ sentiment: "black", prominence: "strong", disabled: true }, "uv_m4c9ow35"], [{ sentiment: "black", prominence: "stronger", disabled: true }, "uv_m4c9ow36"], [{ sentiment: "black", prominence: "weak", disabled: true }, "uv_m4c9ow37"], [{ sentiment: "white", prominence: "default", disabled: true }, "uv_m4c9ow38"], [{ sentiment: "white", prominence: "strong", disabled: true }, "uv_m4c9ow39"], [{ sentiment: "white", prominence: "stronger", disabled: true }, "uv_m4c9ow3a"], [{ sentiment: "white", prominence: "weak", disabled: true }, "uv_m4c9ow3b"], [{ prominence: "default", disabled: false }, "uv_m4c9ow3c"], [{ prominence: "strong", disabled: false }, "uv_m4c9ow3d"], [{ prominence: "stronger", disabled: false }, "uv_m4c9ow3e"], [{ prominence: "weak", disabled: false }, "uv_m4c9ow3f"]] });
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ ;/* empty css */
3
4
  var placementText = "var(--uv_qabug40)";
4
5
  var whiteSpaceText = "var(--uv_qabug41)";
5
6
  exports.placementText = placementText;
@@ -1,3 +1,4 @@
1
+ /* empty css */
1
2
  var placementText = "var(--uv_qabug40)";
2
3
  var whiteSpaceText = "var(--uv_qabug41)";
3
4
  export {
@@ -42,7 +42,8 @@ const TextArea = react.forwardRef(({
42
42
  onKeyDown,
43
43
  clearable = false,
44
44
  labelDescription,
45
- "aria-label": ariaLabel
45
+ "aria-label": ariaLabel,
46
+ style
46
47
  }, ref) => {
47
48
  const localId = react.useId();
48
49
  const theme = themes.useTheme();
@@ -92,9 +93,12 @@ const TextArea = react.forwardRef(({
92
93
  success: !!success
93
94
  }), "data-testid": dataTestId, disabled, id: id ?? localId, maxLength, minLength, name, onBlur, onChange: (event) => {
94
95
  onChange(event.currentTarget.value);
95
- }, onFocus, onKeyDown, placeholder, readOnly: !!readOnly, ref: textAreaRef, rows: rows !== "auto" ? rows : 1, style: dynamic.assignInlineVars({
96
- [styles_css.paddingRightVar]: `calc(${theme.space[computedClearable && (!!success || !!error) ? "4" : "3"]} + ${computedClearable ? `${constants.SIZE_HEIGHT.xsmall}px` : "0px"} + ${!!success || !!error ? `${STATE_ICON_SIZE}px` : "0px"})`
97
- }), tabIndex, value }),
96
+ }, onFocus, onKeyDown, placeholder, readOnly: !!readOnly, ref: textAreaRef, rows: rows !== "auto" ? rows : 1, style: {
97
+ ...dynamic.assignInlineVars({
98
+ [styles_css.paddingRightVar]: `calc(${theme.space[computedClearable && (!!success || !!error) ? "4" : "3"]} + ${computedClearable ? `${constants.SIZE_HEIGHT.xsmall}px` : "0px"} + ${!!success || !!error ? `${STATE_ICON_SIZE}px` : "0px"})`
99
+ }),
100
+ ...style
101
+ }, tabIndex, value }),
98
102
  /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { alignItems: "center", className: styles_css.textAreaClearableContainer, direction: "row", gap: "1", children: [
99
103
  computedClearable ? /* @__PURE__ */ jsxRuntime.jsx(index$3.Button, { "aria-label": "clear value", onClick: () => {
100
104
  onChange("");
@@ -1,4 +1,4 @@
1
- import type { DOMAttributes, ReactNode } from 'react';
1
+ import type { CSSProperties, DOMAttributes, ReactNode } from 'react';
2
2
  type LabelProps = {
3
3
  label: string;
4
4
  'aria-label'?: never;
@@ -56,6 +56,7 @@ type TextAreaProps = {
56
56
  onKeyDown?: DOMAttributes<HTMLTextAreaElement>['onKeyDown'];
57
57
  clearable?: boolean;
58
58
  labelDescription?: ReactNode;
59
+ style?: CSSProperties;
59
60
  } & LabelProps;
60
61
  /**
61
62
  * This component offers an extended textarea HTML
@@ -40,7 +40,8 @@ const TextArea = forwardRef(({
40
40
  onKeyDown,
41
41
  clearable = false,
42
42
  labelDescription,
43
- "aria-label": ariaLabel
43
+ "aria-label": ariaLabel,
44
+ style
44
45
  }, ref) => {
45
46
  const localId = useId();
46
47
  const theme = useTheme();
@@ -90,9 +91,12 @@ const TextArea = forwardRef(({
90
91
  success: !!success
91
92
  }), "data-testid": dataTestId, disabled, id: id ?? localId, maxLength, minLength, name, onBlur, onChange: (event) => {
92
93
  onChange(event.currentTarget.value);
93
- }, onFocus, onKeyDown, placeholder, readOnly: !!readOnly, ref: textAreaRef, rows: rows !== "auto" ? rows : 1, style: assignInlineVars({
94
- [paddingRightVar]: `calc(${theme.space[computedClearable && (!!success || !!error) ? "4" : "3"]} + ${computedClearable ? `${SIZE_HEIGHT.xsmall}px` : "0px"} + ${!!success || !!error ? `${STATE_ICON_SIZE}px` : "0px"})`
95
- }), tabIndex, value }),
94
+ }, onFocus, onKeyDown, placeholder, readOnly: !!readOnly, ref: textAreaRef, rows: rows !== "auto" ? rows : 1, style: {
95
+ ...assignInlineVars({
96
+ [paddingRightVar]: `calc(${theme.space[computedClearable && (!!success || !!error) ? "4" : "3"]} + ${computedClearable ? `${SIZE_HEIGHT.xsmall}px` : "0px"} + ${!!success || !!error ? `${STATE_ICON_SIZE}px` : "0px"})`
97
+ }),
98
+ ...style
99
+ }, tabIndex, value }),
96
100
  /* @__PURE__ */ jsxs(Stack, { alignItems: "center", className: textAreaClearableContainer, direction: "row", gap: "1", children: [
97
101
  computedClearable ? /* @__PURE__ */ jsx(Button, { "aria-label": "clear value", onClick: () => {
98
102
  onChange("");
@@ -50,7 +50,8 @@ const TextInput = react.forwardRef(({
50
50
  role,
51
51
  "aria-live": ariaLive,
52
52
  "aria-atomic": ariaAtomic,
53
- defaultValue
53
+ defaultValue,
54
+ style
54
55
  }, ref) => {
55
56
  const localId = react.useId();
56
57
  const [hasFocus, setHasFocus] = react.useState(false);
@@ -85,7 +86,7 @@ const TextInput = react.forwardRef(({
85
86
  }, onChange: onChangeCallback, onFocus: (event) => {
86
87
  setHasFocus(true);
87
88
  onFocus?.(event);
88
- }, onKeyDown, onKeyUp, placeholder, readOnly, ref: inputRef, required, tabIndex, type: computedType, value }),
89
+ }, onKeyDown, onKeyUp, placeholder, readOnly, ref: inputRef, required, style, tabIndex, type: computedType, value }),
89
90
  success || error || loading || computedClearable ? /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { alignItems: "center", className: styles_css.stateStack, direction: "row", gap: 1, children: [
90
91
  computedClearable ? /* @__PURE__ */ jsxRuntime.jsx(index$4.Button, { "aria-label": "clear value", disabled: disabled || !computedValue, onClick: () => {
91
92
  if (inputRef?.current) {
@@ -26,4 +26,4 @@ export declare const TextInput: import("react").ForwardRefExoticComponent<{
26
26
  value?: string;
27
27
  defaultValue?: string;
28
28
  onChangeValue?: (value: string) => void;
29
- } & Pick<InputHTMLAttributes<HTMLInputElement>, "disabled" | "id" | "name" | "role" | "tabIndex" | "aria-atomic" | "aria-label" | "aria-labelledby" | "aria-live" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "autoComplete" | "autoFocus" | "placeholder" | "readOnly" | "required"> & import("react").RefAttributes<HTMLInputElement>>;
29
+ } & Pick<InputHTMLAttributes<HTMLInputElement>, "style" | "disabled" | "id" | "name" | "role" | "tabIndex" | "aria-atomic" | "aria-label" | "aria-labelledby" | "aria-live" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "autoComplete" | "autoFocus" | "placeholder" | "readOnly" | "required"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -48,7 +48,8 @@ const TextInput = forwardRef(({
48
48
  role,
49
49
  "aria-live": ariaLive,
50
50
  "aria-atomic": ariaAtomic,
51
- defaultValue
51
+ defaultValue,
52
+ style
52
53
  }, ref) => {
53
54
  const localId = useId();
54
55
  const [hasFocus, setHasFocus] = useState(false);
@@ -83,7 +84,7 @@ const TextInput = forwardRef(({
83
84
  }, onChange: onChangeCallback, onFocus: (event) => {
84
85
  setHasFocus(true);
85
86
  onFocus?.(event);
86
- }, onKeyDown, onKeyUp, placeholder, readOnly, ref: inputRef, required, tabIndex, type: computedType, value }),
87
+ }, onKeyDown, onKeyUp, placeholder, readOnly, ref: inputRef, required, style, tabIndex, type: computedType, value }),
87
88
  success || error || loading || computedClearable ? /* @__PURE__ */ jsxs(Stack, { alignItems: "center", className: stateStack, direction: "row", gap: 1, children: [
88
89
  computedClearable ? /* @__PURE__ */ jsx(Button, { "aria-label": "clear value", disabled: disabled || !computedValue, onClick: () => {
89
90
  if (inputRef?.current) {
@@ -29,6 +29,7 @@ const TimeInput = ({
29
29
  className,
30
30
  id,
31
31
  autoFocus,
32
+ style,
32
33
  "data-testid": dataTestId,
33
34
  placeholder = constants.DEFAULT_PLACEHOLDER,
34
35
  "aria-label": ariaLabel
@@ -169,7 +170,7 @@ const TimeInput = ({
169
170
  refMinutes.current?.focus();
170
171
  }
171
172
  };
172
- return /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { className, gap: 0.5, children: [
173
+ return /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { className, gap: 0.5, style, children: [
173
174
  label || labelDescription ? /* @__PURE__ */ jsxRuntime.jsx(index$1.Label, { htmlFor: id ?? localId, labelDescription, required, size, children: label }) : null,
174
175
  /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { alignItems: "center", "aria-label": ariaLabel, "aria-required": required, className: styles_css.timeinputWrapper({
175
176
  disabled,
@@ -1,4 +1,4 @@
1
- import type { FocusEvent, ReactNode } from 'react';
1
+ import type { CSSProperties, FocusEvent, ReactNode } from 'react';
2
2
  export type Time = {
3
3
  h: string;
4
4
  m: string;
@@ -27,6 +27,7 @@ type TimeInputProps = {
27
27
  * Automatically focus on the element on render. Autofocus is applied to the hour input
28
28
  */
29
29
  autoFocus?: boolean;
30
+ style?: CSSProperties;
30
31
  } & ({
31
32
  label?: string;
32
33
  'aria-label'?: never;
@@ -38,5 +39,5 @@ type TimeInputProps = {
38
39
  * A time input component that allows users to type a time in a 24 or 12-hour format.
39
40
  * @experimental This component is experimental and may be subject to breaking changes in the future.
40
41
  */
41
- export declare const TimeInput: ({ label, timeFormat, value, clearable, required, labelDescription, helper, size, disabled, readOnly, error, onChange, onBlur, onFocus, className, id, autoFocus, "data-testid": dataTestId, placeholder, "aria-label": ariaLabel, }: TimeInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
42
+ export declare const TimeInput: ({ label, timeFormat, value, clearable, required, labelDescription, helper, size, disabled, readOnly, error, onChange, onBlur, onFocus, className, id, autoFocus, style, "data-testid": dataTestId, placeholder, "aria-label": ariaLabel, }: TimeInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
42
43
  export {};
@@ -27,6 +27,7 @@ const TimeInput = ({
27
27
  className,
28
28
  id,
29
29
  autoFocus,
30
+ style,
30
31
  "data-testid": dataTestId,
31
32
  placeholder = DEFAULT_PLACEHOLDER,
32
33
  "aria-label": ariaLabel
@@ -167,7 +168,7 @@ const TimeInput = ({
167
168
  refMinutes.current?.focus();
168
169
  }
169
170
  };
170
- return /* @__PURE__ */ jsxs(Stack, { className, gap: 0.5, children: [
171
+ return /* @__PURE__ */ jsxs(Stack, { className, gap: 0.5, style, children: [
171
172
  label || labelDescription ? /* @__PURE__ */ jsx(Label, { htmlFor: id ?? localId, labelDescription, required, size, children: label }) : null,
172
173
  /* @__PURE__ */ jsxs(Stack, { alignItems: "center", "aria-label": ariaLabel, "aria-required": required, className: timeinputWrapper({
173
174
  disabled,
@@ -1,3 +1,3 @@
1
1
  import type { ComponentProps } from 'react';
2
2
  import { Button } from '../../Button';
3
- export declare const ToastButton: ({ variant, ...props }: ComponentProps<typeof Button>) => import("@emotion/react/jsx-runtime").JSX.Element;
3
+ export declare const ToastButton: ({ variant, className, ...props }: ComponentProps<typeof Button>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -40,7 +40,8 @@ const ToastContainer = ({
40
40
  "data-testid": dataTestId,
41
41
  className,
42
42
  autoClose,
43
- containerId = "toaster"
44
- }) => /* @__PURE__ */ jsxRuntime.jsx(reactToastify.ToastContainer, { autoClose: autoClose ?? AUTOCLOSE_DELAY, className: `${className ? `${className} ` : ""}${styles_css.toaster}`, containerId, "data-testid": dataTestId, draggable: false, hideProgressBar: true, icon: false, limit, newestOnTop, pauseOnFocusLoss: false, pauseOnHover: false, position, stacked: true, transition: reactToastify.Slide });
43
+ containerId = "toaster",
44
+ style
45
+ }) => /* @__PURE__ */ jsxRuntime.jsx(reactToastify.ToastContainer, { autoClose: autoClose ?? AUTOCLOSE_DELAY, className: `${className ? `${className} ` : ""}${styles_css.toaster}`, containerId, "data-testid": dataTestId, draggable: false, hideProgressBar: true, icon: false, limit, newestOnTop, pauseOnFocusLoss: false, pauseOnHover: false, position, stacked: true, style, transition: reactToastify.Slide });
45
46
  exports.ToastContainer = ToastContainer;
46
47
  exports.toast = toast;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  import type { ToastOptions } from 'react-toastify';
3
3
  import { Button } from '../Button';
4
4
  export declare const toast: {
@@ -30,6 +30,7 @@ type ToastContainerProps = {
30
30
  * Set a custom containerId to be able to define multiple ToastContainers
31
31
  */
32
32
  containerId?: string;
33
+ style?: CSSProperties;
33
34
  };
34
35
  /**
35
36
  * Display short information about an event that happen in the interface in a floating alert.
@@ -39,9 +40,9 @@ type ToastContainerProps = {
39
40
  * Toaster is separated in two parts, first the `ToastContainer` which is where the div of the toast will be rendered,
40
41
  * and second the `toast()` function which is used to display the toast.
41
42
  */
42
- export declare const ToastContainer: ({ newestOnTop, limit, position, "data-testid": dataTestId, className, autoClose, containerId, }: ToastContainerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
43
+ export declare const ToastContainer: ({ newestOnTop, limit, position, "data-testid": dataTestId, className, autoClose, containerId, style, }: ToastContainerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
43
44
  export declare const Toast: {
44
- Button: ({ variant, ...props }: import("react").ComponentProps<typeof Button>) => import("@emotion/react/jsx-runtime").JSX.Element;
45
+ Button: ({ variant, className, ...props }: import("react").ComponentProps<typeof Button>) => import("@emotion/react/jsx-runtime").JSX.Element;
45
46
  Link: ({ ...props }: import("react").ComponentProps<typeof import("..").Link>) => import("@emotion/react/jsx-runtime").JSX.Element;
46
47
  };
47
48
  export {};
@@ -38,8 +38,9 @@ const ToastContainer = ({
38
38
  "data-testid": dataTestId,
39
39
  className,
40
40
  autoClose,
41
- containerId = "toaster"
42
- }) => /* @__PURE__ */ jsx(ToastContainer$1, { autoClose: autoClose ?? AUTOCLOSE_DELAY, className: `${className ? `${className} ` : ""}${toaster}`, containerId, "data-testid": dataTestId, draggable: false, hideProgressBar: true, icon: false, limit, newestOnTop, pauseOnFocusLoss: false, pauseOnHover: false, position, stacked: true, transition: Slide });
41
+ containerId = "toaster",
42
+ style
43
+ }) => /* @__PURE__ */ jsx(ToastContainer$1, { autoClose: autoClose ?? AUTOCLOSE_DELAY, className: `${className ? `${className} ` : ""}${toaster}`, containerId, "data-testid": dataTestId, draggable: false, hideProgressBar: true, icon: false, limit, newestOnTop, pauseOnFocusLoss: false, pauseOnHover: false, position, stacked: true, style, transition: Slide });
43
44
  export {
44
45
  ToastContainer,
45
46
  toast
@@ -1,2 +1,3 @@
1
1
  export declare const toaster: string;
2
2
  export declare const closeButtonToaster: string;
3
+ export declare const toasterButton: string;
@@ -24,7 +24,8 @@ const Toggle = react.forwardRef(({
24
24
  "data-testid": dataTestId,
25
25
  value,
26
26
  error,
27
- "aria-label": ariaLabel
27
+ "aria-label": ariaLabel,
28
+ style
28
29
  }, ref) => {
29
30
  const uniqueId = react.useId();
30
31
  return /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxRuntime.jsxs("label", { "aria-disabled": disabled, className: `${className ? `${className} ` : ""}${styles_css.label({
@@ -43,7 +44,7 @@ const Toggle = react.forwardRef(({
43
44
  disabled,
44
45
  error: !!error,
45
46
  size
46
- }), children: /* @__PURE__ */ jsxRuntime.jsx("input", { "aria-invalid": !!error, "aria-label": ariaLabel, checked, className: styles_css.checkbox, disabled, id: id ?? uniqueId, name, onChange, ref, required, type: "checkbox", value }) })
47
+ }), children: /* @__PURE__ */ jsxRuntime.jsx("input", { "aria-invalid": !!error, "aria-label": ariaLabel, checked, className: styles_css.checkbox, disabled, id: id ?? uniqueId, name, onChange, ref, required, style, type: "checkbox", value }) })
47
48
  ] }) });
48
49
  });
49
50
  exports.Toggle = Toggle;
@@ -15,4 +15,4 @@ export declare const Toggle: import("react").ForwardRefExoticComponent<{
15
15
  required?: boolean;
16
16
  error?: boolean | string;
17
17
  'data-testid'?: string;
18
- } & Pick<InputHTMLAttributes<HTMLInputElement>, "value"> & import("react").RefAttributes<HTMLInputElement>>;
18
+ } & Pick<InputHTMLAttributes<HTMLInputElement>, "style" | "value"> & import("react").RefAttributes<HTMLInputElement>>;