@ultraviolet/ui 3.0.0-beta.23 → 3.0.0-beta.25

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 (290) hide show
  1. package/README.md +1 -6
  2. package/dist/components/ActionBar/index.cjs +7 -3
  3. package/dist/components/ActionBar/index.d.ts +3 -2
  4. package/dist/components/ActionBar/index.js +7 -3
  5. package/dist/components/ActionBar/styles.css.cjs +0 -1
  6. package/dist/components/ActionBar/styles.css.js +0 -1
  7. package/dist/components/Alert/index.cjs +3 -2
  8. package/dist/components/Alert/index.d.ts +3 -2
  9. package/dist/components/Alert/index.js +3 -2
  10. package/dist/components/Avatar/index.cjs +4 -2
  11. package/dist/components/Avatar/index.d.ts +1 -1
  12. package/dist/components/Avatar/index.js +4 -2
  13. package/dist/components/Avatar/styles.css.cjs +1 -0
  14. package/dist/components/Avatar/styles.css.js +1 -0
  15. package/dist/components/Avatar/types.d.ts +2 -1
  16. package/dist/components/Badge/index.cjs +3 -2
  17. package/dist/components/Badge/index.d.ts +3 -2
  18. package/dist/components/Badge/index.js +3 -2
  19. package/dist/components/Banner/index.cjs +3 -2
  20. package/dist/components/Banner/index.d.ts +3 -2
  21. package/dist/components/Banner/index.js +3 -2
  22. package/dist/components/BarChart/index.cjs +4 -2
  23. package/dist/components/BarChart/index.d.ts +3 -2
  24. package/dist/components/BarChart/index.js +4 -2
  25. package/dist/components/BarStack/index.cjs +3 -2
  26. package/dist/components/BarStack/index.d.ts +3 -2
  27. package/dist/components/BarStack/index.js +3 -2
  28. package/dist/components/Breadcrumbs/index.cjs +3 -2
  29. package/dist/components/Breadcrumbs/index.d.ts +2 -1
  30. package/dist/components/Breadcrumbs/index.js +3 -2
  31. package/dist/components/Bullet/index.cjs +3 -2
  32. package/dist/components/Bullet/index.d.ts +3 -2
  33. package/dist/components/Bullet/index.js +3 -2
  34. package/dist/components/Button/index.cjs +1 -1
  35. package/dist/components/Button/index.js +1 -1
  36. package/dist/components/Card/index.cjs +4 -3
  37. package/dist/components/Card/index.d.ts +2 -1
  38. package/dist/components/Card/index.js +4 -3
  39. package/dist/components/Carousel/index.cjs +8 -4
  40. package/dist/components/Carousel/index.d.ts +4 -3
  41. package/dist/components/Carousel/index.js +8 -4
  42. package/dist/components/Checkbox/index.cjs +3 -2
  43. package/dist/components/Checkbox/index.d.ts +1 -1
  44. package/dist/components/Checkbox/index.js +3 -2
  45. package/dist/components/CheckboxGroup/index.cjs +6 -4
  46. package/dist/components/CheckboxGroup/index.d.ts +4 -4
  47. package/dist/components/CheckboxGroup/index.js +6 -4
  48. package/dist/components/Chip/index.cjs +3 -2
  49. package/dist/components/Chip/index.d.ts +3 -2
  50. package/dist/components/Chip/index.js +3 -2
  51. package/dist/components/CopyButton/index.cjs +3 -2
  52. package/dist/components/CopyButton/index.d.ts +3 -1
  53. package/dist/components/CopyButton/index.js +3 -2
  54. package/dist/components/DateInput/index.cjs +3 -2
  55. package/dist/components/DateInput/index.d.ts +3 -2
  56. package/dist/components/DateInput/index.js +3 -2
  57. package/dist/components/Dialog/components/Button.cjs +3 -2
  58. package/dist/components/Dialog/components/Button.d.ts +2 -2
  59. package/dist/components/Dialog/components/Button.js +3 -2
  60. package/dist/components/Dialog/components/CancelButton.cjs +3 -2
  61. package/dist/components/Dialog/components/CancelButton.d.ts +3 -2
  62. package/dist/components/Dialog/components/CancelButton.js +3 -2
  63. package/dist/components/Dialog/components/Stack.cjs +3 -2
  64. package/dist/components/Dialog/components/Stack.d.ts +3 -2
  65. package/dist/components/Dialog/components/Stack.js +3 -2
  66. package/dist/components/Dialog/components/Text.cjs +3 -2
  67. package/dist/components/Dialog/components/Text.d.ts +3 -1
  68. package/dist/components/Dialog/components/Text.js +3 -2
  69. package/dist/components/Dialog/index.cjs +3 -2
  70. package/dist/components/Dialog/index.d.ts +11 -8
  71. package/dist/components/Dialog/index.js +3 -2
  72. package/dist/components/Drawer/index.cjs +3 -2
  73. package/dist/components/Drawer/index.d.ts +3 -3
  74. package/dist/components/Drawer/index.js +3 -2
  75. package/dist/components/EmptyState/index.cjs +4 -3
  76. package/dist/components/EmptyState/index.d.ts +3 -2
  77. package/dist/components/EmptyState/index.js +4 -3
  78. package/dist/components/Expandable/index.cjs +15 -8
  79. package/dist/components/Expandable/index.d.ts +4 -3
  80. package/dist/components/Expandable/index.js +15 -8
  81. package/dist/components/ExpandableCard/components/Title.cjs +3 -2
  82. package/dist/components/ExpandableCard/components/Title.d.ts +2 -2
  83. package/dist/components/ExpandableCard/components/Title.js +3 -2
  84. package/dist/components/ExpandableCard/index.cjs +3 -2
  85. package/dist/components/ExpandableCard/index.d.ts +3 -2
  86. package/dist/components/ExpandableCard/index.js +3 -2
  87. package/dist/components/GlobalAlert/GlobalAlertLink.cjs +3 -2
  88. package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +1 -1
  89. package/dist/components/GlobalAlert/GlobalAlertLink.js +3 -2
  90. package/dist/components/GlobalAlert/index.cjs +3 -2
  91. package/dist/components/GlobalAlert/index.d.ts +4 -3
  92. package/dist/components/GlobalAlert/index.js +3 -2
  93. package/dist/components/InfiniteScroll/index.cjs +4 -2
  94. package/dist/components/InfiniteScroll/index.d.ts +3 -2
  95. package/dist/components/InfiniteScroll/index.js +4 -2
  96. package/dist/components/Key/index.cjs +9 -49
  97. package/dist/components/Key/index.d.ts +3 -1
  98. package/dist/components/Key/index.js +10 -48
  99. package/dist/components/Key/styles.css.cjs +6 -0
  100. package/dist/components/Key/styles.css.d.ts +29 -0
  101. package/dist/components/Key/styles.css.js +6 -0
  102. package/dist/components/Label/index.cjs +8 -6
  103. package/dist/components/Label/index.d.ts +3 -2
  104. package/dist/components/Label/index.js +8 -6
  105. package/dist/components/LineChart/CustomLegend.cjs +40 -54
  106. package/dist/components/LineChart/CustomLegend.js +41 -55
  107. package/dist/components/LineChart/index.cjs +3 -1
  108. package/dist/components/LineChart/index.d.ts +3 -2
  109. package/dist/components/LineChart/index.js +3 -1
  110. package/dist/components/LineChart/styles.css.cjs +16 -6
  111. package/dist/components/LineChart/styles.css.d.ts +5 -0
  112. package/dist/components/LineChart/styles.css.js +16 -6
  113. package/dist/components/Link/index.cjs +3 -2
  114. package/dist/components/Link/index.d.ts +2 -1
  115. package/dist/components/Link/index.js +3 -2
  116. package/dist/components/List/Cell.cjs +2 -2
  117. package/dist/components/List/Cell.js +2 -2
  118. package/dist/components/List/index.cjs +3 -2
  119. package/dist/components/List/index.d.ts +4 -3
  120. package/dist/components/List/index.js +3 -2
  121. package/dist/components/Loader/index.cjs +5 -3
  122. package/dist/components/Loader/index.d.ts +3 -1
  123. package/dist/components/Loader/index.js +5 -3
  124. package/dist/components/Menu/MenuContent.cjs +3 -2
  125. package/dist/components/Menu/MenuContent.d.ts +1 -1
  126. package/dist/components/Menu/MenuContent.js +3 -2
  127. package/dist/components/Menu/components/Group.cjs +3 -2
  128. package/dist/components/Menu/components/Group.d.ts +3 -2
  129. package/dist/components/Menu/components/Group.js +3 -2
  130. package/dist/components/Menu/components/Item.cjs +4 -3
  131. package/dist/components/Menu/components/Item.d.ts +2 -1
  132. package/dist/components/Menu/components/Item.js +4 -3
  133. package/dist/components/Menu/index.d.ts +4 -2
  134. package/dist/components/Menu/types.d.ts +1 -1
  135. package/dist/components/Meter/index.cjs +2 -1
  136. package/dist/components/Meter/index.d.ts +3 -1
  137. package/dist/components/Meter/index.js +2 -1
  138. package/dist/components/Modal/ModalContent.cjs +3 -2
  139. package/dist/components/Modal/ModalContent.d.ts +3 -2
  140. package/dist/components/Modal/ModalContent.js +3 -2
  141. package/dist/components/Modal/components/Dialog.cjs +9 -5
  142. package/dist/components/Modal/components/Dialog.d.ts +1 -1
  143. package/dist/components/Modal/components/Dialog.js +9 -5
  144. package/dist/components/Modal/index.cjs +3 -2
  145. package/dist/components/Modal/index.d.ts +3 -2
  146. package/dist/components/Modal/index.js +3 -2
  147. package/dist/components/Modal/types.d.ts +2 -1
  148. package/dist/components/Notice/index.cjs +3 -2
  149. package/dist/components/Notice/index.d.ts +3 -2
  150. package/dist/components/Notice/index.js +3 -2
  151. package/dist/components/Notification/index.cjs +2 -1
  152. package/dist/components/Notification/index.d.ts +3 -2
  153. package/dist/components/Notification/index.js +2 -1
  154. package/dist/components/NumberInput/index.cjs +3 -2
  155. package/dist/components/NumberInput/index.d.ts +1 -1
  156. package/dist/components/NumberInput/index.js +3 -2
  157. package/dist/components/Pagination/index.cjs +3 -2
  158. package/dist/components/Pagination/index.d.ts +3 -1
  159. package/dist/components/Pagination/index.js +3 -2
  160. package/dist/components/PasswordCheck/index.cjs +3 -2
  161. package/dist/components/PasswordCheck/index.d.ts +3 -1
  162. package/dist/components/PasswordCheck/index.js +3 -2
  163. package/dist/components/PieChart/index.cjs +8 -4
  164. package/dist/components/PieChart/index.d.ts +3 -2
  165. package/dist/components/PieChart/index.js +8 -4
  166. package/dist/components/Popover/index.cjs +3 -2
  167. package/dist/components/Popover/index.d.ts +1 -1
  168. package/dist/components/Popover/index.js +3 -2
  169. package/dist/components/ProgressBar/index.cjs +3 -2
  170. package/dist/components/ProgressBar/index.d.ts +3 -2
  171. package/dist/components/ProgressBar/index.js +3 -2
  172. package/dist/components/Radio/index.cjs +3 -1
  173. package/dist/components/Radio/index.d.ts +1 -1
  174. package/dist/components/Radio/index.js +3 -1
  175. package/dist/components/RadioGroup/index.cjs +3 -2
  176. package/dist/components/RadioGroup/index.d.ts +1 -1
  177. package/dist/components/RadioGroup/index.js +3 -2
  178. package/dist/components/SearchInput/index.cjs +3 -2
  179. package/dist/components/SearchInput/index.js +3 -2
  180. package/dist/components/SelectInput/components/selectBar.css.cjs +0 -2
  181. package/dist/components/SelectInput/components/selectBar.css.js +0 -2
  182. package/dist/components/SelectableCard/index.cjs +10 -6
  183. package/dist/components/SelectableCard/index.d.ts +2 -1
  184. package/dist/components/SelectableCard/index.js +10 -6
  185. package/dist/components/SelectableCardGroup/index.cjs +4 -21
  186. package/dist/components/SelectableCardGroup/index.d.ts +1 -1
  187. package/dist/components/SelectableCardGroup/index.js +4 -19
  188. package/dist/components/SelectableCardGroup/styles.css.cjs +5 -0
  189. package/dist/components/SelectableCardGroup/styles.css.d.ts +1 -0
  190. package/dist/components/SelectableCardGroup/styles.css.js +5 -0
  191. package/dist/components/SelectableCardOptionGroup/components/Image.cjs +2 -20
  192. package/dist/components/SelectableCardOptionGroup/components/Image.js +2 -18
  193. package/dist/components/SelectableCardOptionGroup/components/Option.cjs +13 -74
  194. package/dist/components/SelectableCardOptionGroup/components/Option.d.ts +1 -1
  195. package/dist/components/SelectableCardOptionGroup/components/Option.js +8 -67
  196. package/dist/components/SelectableCardOptionGroup/index.cjs +5 -22
  197. package/dist/components/SelectableCardOptionGroup/index.d.ts +3 -3
  198. package/dist/components/SelectableCardOptionGroup/index.js +5 -20
  199. package/dist/components/SelectableCardOptionGroup/styles.css.cjs +21 -0
  200. package/dist/components/SelectableCardOptionGroup/styles.css.d.ts +8 -0
  201. package/dist/components/SelectableCardOptionGroup/styles.css.js +21 -0
  202. package/dist/components/Separator/index.cjs +3 -2
  203. package/dist/components/Separator/index.d.ts +3 -2
  204. package/dist/components/Separator/index.js +3 -2
  205. package/dist/components/Slider/index.cjs +2 -1
  206. package/dist/components/Slider/index.d.ts +1 -1
  207. package/dist/components/Slider/index.js +2 -1
  208. package/dist/components/Slider/types.d.ts +1 -1
  209. package/dist/components/Snippet/index.cjs +3 -2
  210. package/dist/components/Snippet/index.d.ts +3 -2
  211. package/dist/components/Snippet/index.js +3 -2
  212. package/dist/components/Stack/index.cjs +10 -6
  213. package/dist/components/Stack/index.d.ts +1 -1
  214. package/dist/components/Stack/index.js +10 -6
  215. package/dist/components/Status/index.cjs +3 -2
  216. package/dist/components/Status/index.d.ts +3 -1
  217. package/dist/components/Status/index.js +3 -2
  218. package/dist/components/StepList/index.cjs +2 -1
  219. package/dist/components/StepList/index.d.ts +3 -2
  220. package/dist/components/StepList/index.js +2 -1
  221. package/dist/components/Stepper/Step.cjs +2 -1
  222. package/dist/components/Stepper/Step.d.ts +3 -2
  223. package/dist/components/Stepper/Step.js +2 -1
  224. package/dist/components/Stepper/index.cjs +3 -2
  225. package/dist/components/Stepper/index.d.ts +5 -3
  226. package/dist/components/Stepper/index.js +3 -2
  227. package/dist/components/SwitchButton/Option.cjs +3 -2
  228. package/dist/components/SwitchButton/Option.d.ts +3 -2
  229. package/dist/components/SwitchButton/Option.js +3 -2
  230. package/dist/components/SwitchButton/index.cjs +3 -2
  231. package/dist/components/SwitchButton/index.d.ts +5 -3
  232. package/dist/components/SwitchButton/index.js +3 -2
  233. package/dist/components/Table/Cell.cjs +10 -6
  234. package/dist/components/Table/Cell.d.ts +3 -2
  235. package/dist/components/Table/Cell.js +10 -6
  236. package/dist/components/Table/Row.cjs +2 -1
  237. package/dist/components/Table/Row.d.ts +3 -2
  238. package/dist/components/Table/Row.js +2 -1
  239. package/dist/components/Table/index.cjs +3 -2
  240. package/dist/components/Table/index.d.ts +7 -3
  241. package/dist/components/Table/index.js +3 -2
  242. package/dist/components/Tabs/Tab.d.ts +2 -1
  243. package/dist/components/Tabs/index.d.ts +2 -0
  244. package/dist/components/TagInput/index.cjs +3 -2
  245. package/dist/components/TagInput/index.d.ts +3 -2
  246. package/dist/components/TagInput/index.js +3 -2
  247. package/dist/components/TagList/index.cjs +8 -6
  248. package/dist/components/TagList/index.d.ts +3 -2
  249. package/dist/components/TagList/index.js +8 -6
  250. package/dist/components/Text/style.css.cjs +0 -1
  251. package/dist/components/Text/style.css.js +0 -1
  252. package/dist/components/Text/variables.css.cjs +1 -0
  253. package/dist/components/Text/variables.css.js +1 -0
  254. package/dist/components/TextArea/index.cjs +8 -4
  255. package/dist/components/TextArea/index.d.ts +2 -1
  256. package/dist/components/TextArea/index.js +8 -4
  257. package/dist/components/TextInput/index.cjs +3 -2
  258. package/dist/components/TextInput/index.d.ts +1 -1
  259. package/dist/components/TextInput/index.js +3 -2
  260. package/dist/components/TimeInput/index.cjs +2 -1
  261. package/dist/components/TimeInput/index.d.ts +3 -2
  262. package/dist/components/TimeInput/index.js +2 -1
  263. package/dist/components/Toaster/components/Button.d.ts +1 -1
  264. package/dist/components/Toaster/index.cjs +3 -2
  265. package/dist/components/Toaster/index.d.ts +4 -3
  266. package/dist/components/Toaster/index.js +3 -2
  267. package/dist/components/Toaster/styles.css.d.ts +1 -0
  268. package/dist/components/Toggle/index.cjs +3 -2
  269. package/dist/components/Toggle/index.d.ts +1 -1
  270. package/dist/components/Toggle/index.js +3 -2
  271. package/dist/components/ToggleGroup/index.cjs +6 -4
  272. package/dist/components/ToggleGroup/index.d.ts +4 -4
  273. package/dist/components/ToggleGroup/index.js +6 -4
  274. package/dist/components/UnitInput/index.cjs +3 -2
  275. package/dist/components/UnitInput/index.d.ts +2 -2
  276. package/dist/components/UnitInput/index.js +3 -2
  277. package/dist/components/VerificationCode/index.cjs +3 -2
  278. package/dist/components/VerificationCode/index.d.ts +3 -2
  279. package/dist/components/VerificationCode/index.js +3 -2
  280. package/dist/index.cjs +5 -0
  281. package/dist/index.d.ts +1 -1
  282. package/dist/index.js +5 -0
  283. package/dist/ui.css +1 -1
  284. package/dist/utils/animationVanillaExtract.css.cjs +11 -0
  285. package/dist/utils/animationVanillaExtract.css.d.ts +1 -0
  286. package/dist/utils/animationVanillaExtract.css.js +11 -0
  287. package/dist/utils/index.d.ts +1 -1
  288. package/package.json +3 -3
  289. package/dist/components/Toaster/components/Button.cjs +0 -15
  290. package/dist/components/Toaster/components/Button.js +0 -12
@@ -10,11 +10,12 @@ const Group = ({
10
10
  label,
11
11
  children,
12
12
  labelDescription,
13
- emptyState
13
+ emptyState,
14
+ style
14
15
  }) => {
15
16
  const isChildrenEmpty = react.Children.count(children) === 0;
16
17
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles_css.menuGroup, children: /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { alignItems: "center", direction: "row", gap: 1, children: [
18
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles_css.menuGroup, style, children: /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { alignItems: "center", direction: "row", gap: 1, children: [
18
19
  /* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "captionStrong", children: label }),
19
20
  labelDescription || null
20
21
  ] }) }),
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  type GroupProps = {
3
3
  label: string;
4
4
  children: ReactNode;
@@ -7,6 +7,7 @@ type GroupProps = {
7
7
  * Empty state will be shown when there are no children
8
8
  */
9
9
  emptyState?: ReactNode;
10
+ style?: CSSProperties;
10
11
  };
11
- export declare const Group: ({ label, children, labelDescription, emptyState, }: GroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
+ export declare const Group: ({ label, children, labelDescription, emptyState, style, }: GroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
13
  export {};
@@ -8,11 +8,12 @@ const Group = ({
8
8
  label,
9
9
  children,
10
10
  labelDescription,
11
- emptyState
11
+ emptyState,
12
+ style
12
13
  }) => {
13
14
  const isChildrenEmpty = Children.count(children) === 0;
14
15
  return /* @__PURE__ */ jsxs(Fragment, { children: [
15
- /* @__PURE__ */ jsx("span", { className: menuGroup, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", gap: 1, children: [
16
+ /* @__PURE__ */ jsx("span", { className: menuGroup, style, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", gap: 1, children: [
16
17
  /* @__PURE__ */ jsx(Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "captionStrong", children: label }),
17
18
  labelDescription || null
18
19
  ] }) }),
@@ -21,7 +21,8 @@ const Item = react.forwardRef(({
21
21
  active,
22
22
  className,
23
23
  searchText,
24
- "data-testid": dataTestId
24
+ "data-testid": dataTestId,
25
+ style
25
26
  }, ref) => {
26
27
  const {
27
28
  hideOnClickItem,
@@ -66,7 +67,7 @@ const Item = react.forwardRef(({
66
67
  if (href && !disabled) {
67
68
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.menuItemContainer({
68
69
  borderless
69
- }), "data-search-text": searchText, children: /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxRuntime.jsx("a", { className: `${className ? `${className} ` : ""}${styles_css.menuItem({
70
+ }), "data-search-text": searchText, style, children: /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxRuntime.jsx("a", { className: `${className ? `${className} ` : ""}${styles_css.menuItem({
70
71
  borderless: true,
71
72
  disabled,
72
73
  sentiment
@@ -78,7 +79,7 @@ const Item = react.forwardRef(({
78
79
  }
79
80
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.menuItemContainer({
80
81
  borderless
81
- }), "data-search-text": searchText, children: /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxRuntime.jsx("button", { className: `${className ? `${className} ` : ""}${styles_css.menuItem({
82
+ }), "data-search-text": searchText, style, children: /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: tooltip, children: /* @__PURE__ */ jsxRuntime.jsx("button", { className: `${className ? `${className} ` : ""}${styles_css.menuItem({
82
83
  borderless,
83
84
  disabled,
84
85
  sentiment
@@ -1,4 +1,4 @@
1
- import type { MouseEventHandler, ReactNode } from 'react';
1
+ import type { CSSProperties, MouseEventHandler, ReactNode } from 'react';
2
2
  type MenuItemSentiment = 'neutral' | 'primary' | 'danger';
3
3
  type ItemProps = {
4
4
  href?: HTMLAnchorElement['href'];
@@ -17,6 +17,7 @@ type ItemProps = {
17
17
  * If you children is complex and you want to specify the search text use this prop.
18
18
  */
19
19
  searchText?: string;
20
+ style?: CSSProperties;
20
21
  };
21
22
  declare const Item: import("react").ForwardRefExoticComponent<ItemProps & import("react").RefAttributes<HTMLElement>>;
22
23
  export default Item;
@@ -20,7 +20,8 @@ const Item = forwardRef(({
20
20
  active,
21
21
  className,
22
22
  searchText,
23
- "data-testid": dataTestId
23
+ "data-testid": dataTestId,
24
+ style
24
25
  }, ref) => {
25
26
  const {
26
27
  hideOnClickItem,
@@ -65,7 +66,7 @@ const Item = forwardRef(({
65
66
  if (href && !disabled) {
66
67
  return /* @__PURE__ */ jsx("div", { className: menuItemContainer({
67
68
  borderless
68
- }), "data-search-text": searchText, children: /* @__PURE__ */ jsx(Tooltip, { text: tooltip, children: /* @__PURE__ */ jsx("a", { className: `${className ? `${className} ` : ""}${menuItem({
69
+ }), "data-search-text": searchText, style, children: /* @__PURE__ */ jsx(Tooltip, { text: tooltip, children: /* @__PURE__ */ jsx("a", { className: `${className ? `${className} ` : ""}${menuItem({
69
70
  borderless: true,
70
71
  disabled,
71
72
  sentiment
@@ -77,7 +78,7 @@ const Item = forwardRef(({
77
78
  }
78
79
  return /* @__PURE__ */ jsx("div", { className: menuItemContainer({
79
80
  borderless
80
- }), "data-search-text": searchText, children: /* @__PURE__ */ jsx(Tooltip, { text: tooltip, children: /* @__PURE__ */ jsx("button", { className: `${className ? `${className} ` : ""}${menuItem({
81
+ }), "data-search-text": searchText, style, children: /* @__PURE__ */ jsx(Tooltip, { text: tooltip, children: /* @__PURE__ */ jsx("button", { className: `${className ? `${className} ` : ""}${menuItem({
81
82
  borderless,
82
83
  disabled,
83
84
  sentiment
@@ -53,12 +53,13 @@ export declare const Menu: import("react").ForwardRefExoticComponent<{
53
53
  portalTarget?: HTMLElement;
54
54
  dynamicDomRendering?: boolean;
55
55
  style?: import("react").CSSProperties;
56
- } & import("react").RefAttributes<HTMLDivElement>, "align" | "dynamicDomRendering"> & import("react").RefAttributes<HTMLButtonElement>> & {
57
- Group: ({ label, children, labelDescription, emptyState, }: {
56
+ } & import("react").RefAttributes<HTMLDivElement>, "style" | "align" | "dynamicDomRendering"> & import("react").RefAttributes<HTMLButtonElement>> & {
57
+ Group: ({ label, children, labelDescription, emptyState, style, }: {
58
58
  label: string;
59
59
  children: import("react").ReactNode;
60
60
  labelDescription?: import("react").ReactNode;
61
61
  emptyState?: import("react").ReactNode;
62
+ style?: import("react").CSSProperties;
62
63
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
63
64
  Item: import("react").ForwardRefExoticComponent<{
64
65
  href?: HTMLAnchorElement["href"];
@@ -74,5 +75,6 @@ export declare const Menu: import("react").ForwardRefExoticComponent<{
74
75
  active?: boolean;
75
76
  'data-testid'?: string;
76
77
  searchText?: string;
78
+ style?: import("react").CSSProperties;
77
79
  } & import("react").RefAttributes<HTMLElement>>;
78
80
  };
@@ -44,5 +44,5 @@ export type MenuProps = {
44
44
  * When set to true, the menu does not shrink (height) to avoid overflow on the page
45
45
  */
46
46
  noShrink?: boolean;
47
- } & Pick<ComponentProps<typeof Popup>, 'dynamicDomRendering' | 'align'>;
47
+ } & Pick<ComponentProps<typeof Popup>, 'dynamicDomRendering' | 'align' | 'style'>;
48
48
  export {};
@@ -11,13 +11,14 @@ const Meter = ({
11
11
  value,
12
12
  className,
13
13
  "data-testid": dataTestId,
14
+ style,
14
15
  id
15
16
  }) => {
16
17
  const toValue = (value + 1) / strength.length * 100;
17
18
  const width = `${toValue}%`;
18
19
  const backgroundColor = strength[value]?.color ?? strength[0].color;
19
20
  const text = strength[value]?.text ?? strength[0].text;
20
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { "aria-labelledby": "meter-label", "aria-live": "polite", "aria-valuemax": strength.length ?? 0, "aria-valuemin": 0, "aria-valuenow": value, className, "data-testid": dataTestId, id, role: "meter", title, children: [
21
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { "aria-labelledby": "meter-label", "aria-live": "polite", "aria-valuemax": strength.length ?? 0, "aria-valuemin": 0, "aria-valuenow": value, className, "data-testid": dataTestId, id, role: "meter", style, title, children: [
21
22
  /* @__PURE__ */ jsxRuntime.jsxs(index.Text, { as: "p", id: "meter-label", variant: "bodySmallStrong", children: [
22
23
  title,
23
24
  /* @__PURE__ */ jsxRuntime.jsx(index.Text, { as: "span", className: styles_css.strengthMeter, style: dynamic.assignInlineVars({
@@ -1,3 +1,4 @@
1
+ import type { CSSProperties } from 'react';
1
2
  type Strength = {
2
3
  /**
3
4
  * Color to display
@@ -18,9 +19,10 @@ type PasswordStrengthMeterProps = {
18
19
  className?: string;
19
20
  'data-testid'?: string;
20
21
  id?: string;
22
+ style?: CSSProperties;
21
23
  };
22
24
  /**
23
25
  * Show strength of a password based on different criteria.
24
26
  */
25
- export declare const Meter: ({ strength, title, value, className, "data-testid": dataTestId, id, }: PasswordStrengthMeterProps) => import("@emotion/react/jsx-runtime").JSX.Element;
27
+ export declare const Meter: ({ strength, title, value, className, "data-testid": dataTestId, style, id, }: PasswordStrengthMeterProps) => import("@emotion/react/jsx-runtime").JSX.Element;
26
28
  export {};
@@ -9,13 +9,14 @@ const Meter = ({
9
9
  value,
10
10
  className,
11
11
  "data-testid": dataTestId,
12
+ style,
12
13
  id
13
14
  }) => {
14
15
  const toValue = (value + 1) / strength.length * 100;
15
16
  const width = `${toValue}%`;
16
17
  const backgroundColor = strength[value]?.color ?? strength[0].color;
17
18
  const text = strength[value]?.text ?? strength[0].text;
18
- return /* @__PURE__ */ jsxs("div", { "aria-labelledby": "meter-label", "aria-live": "polite", "aria-valuemax": strength.length ?? 0, "aria-valuemin": 0, "aria-valuenow": value, className, "data-testid": dataTestId, id, role: "meter", title, children: [
19
+ return /* @__PURE__ */ jsxs("div", { "aria-labelledby": "meter-label", "aria-live": "polite", "aria-valuemax": strength.length ?? 0, "aria-valuemin": 0, "aria-valuenow": value, className, "data-testid": dataTestId, id, role: "meter", style, title, children: [
19
20
  /* @__PURE__ */ jsxs(Text, { as: "p", id: "meter-label", variant: "bodySmallStrong", children: [
20
21
  title,
21
22
  /* @__PURE__ */ jsx(Text, { as: "span", className: strengthMeter, style: assignInlineVars({
@@ -24,8 +24,9 @@ const ModalContent = ({
24
24
  handleOpen,
25
25
  handleToggle,
26
26
  finalId,
27
- image
28
- }) => visible || open ? /* @__PURE__ */ jsxRuntime.jsx(Dialog.Dialog, { ariaLabel, backdropClassName, className, "data-testid": dataTestId, hideOnClickOutside, hideOnEsc, id: finalId, image, onClose: handleClose, open: visible || open, placement, preventBodyScroll, size: finalSize, children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
27
+ image,
28
+ style
29
+ }) => visible || open ? /* @__PURE__ */ jsxRuntime.jsx(Dialog.Dialog, { ariaLabel, backdropClassName, className, "data-testid": dataTestId, hideOnClickOutside, hideOnEsc, id: finalId, image, onClose: handleClose, open: visible || open, placement, preventBodyScroll, size: finalSize, style, children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
29
30
  typeof children === "function" ? children({
30
31
  close: handleClose,
31
32
  modalId: finalId,
@@ -1,4 +1,4 @@
1
- import type { ComponentProps } from 'react';
1
+ import type { ComponentProps, CSSProperties } from 'react';
2
2
  import type { Modal } from '.';
3
3
  import type { ModalPlacement, ModalSize } from './types';
4
4
  type ModalContentProps = ComponentProps<typeof Modal> & {
@@ -12,6 +12,7 @@ type ModalContentProps = ComponentProps<typeof Modal> & {
12
12
  handleClose: () => void;
13
13
  dataTestId?: string;
14
14
  image?: string;
15
+ style?: CSSProperties;
15
16
  };
16
- export declare const ModalContent: ({ visible, open, placement, finalSize, ariaLabel, hideOnClickOutside, hideOnEsc, preventBodyScroll, handleClose, className, backdropClassName, dataTestId, isClosable, children, handleOpen, handleToggle, finalId, image, }: ModalContentProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
17
+ export declare const ModalContent: ({ visible, open, placement, finalSize, ariaLabel, hideOnClickOutside, hideOnEsc, preventBodyScroll, handleClose, className, backdropClassName, dataTestId, isClosable, children, handleOpen, handleToggle, finalId, image, style, }: ModalContentProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
17
18
  export {};
@@ -22,8 +22,9 @@ const ModalContent = ({
22
22
  handleOpen,
23
23
  handleToggle,
24
24
  finalId,
25
- image
26
- }) => visible || open ? /* @__PURE__ */ jsx(Dialog, { ariaLabel, backdropClassName, className, "data-testid": dataTestId, hideOnClickOutside, hideOnEsc, id: finalId, image, onClose: handleClose, open: visible || open, placement, preventBodyScroll, size: finalSize, children: /* @__PURE__ */ jsxs(Fragment, { children: [
25
+ image,
26
+ style
27
+ }) => visible || open ? /* @__PURE__ */ jsx(Dialog, { ariaLabel, backdropClassName, className, "data-testid": dataTestId, hideOnClickOutside, hideOnEsc, id: finalId, image, onClose: handleClose, open: visible || open, placement, preventBodyScroll, size: finalSize, style, children: /* @__PURE__ */ jsxs(Fragment, { children: [
27
28
  typeof children === "function" ? children({
28
29
  close: handleClose,
29
30
  modalId: finalId,
@@ -25,7 +25,8 @@ const Dialog = ({
25
25
  preventBodyScroll,
26
26
  hideOnEsc,
27
27
  backdropClassName,
28
- image
28
+ image,
29
+ style
29
30
  }) => {
30
31
  const [isVisible, setIsVisible] = react.useState(false);
31
32
  const containerRef = react.useRef(document.createElement("div"));
@@ -133,10 +134,13 @@ const Dialog = ({
133
134
  placement,
134
135
  positivePosition: position > 0,
135
136
  size
136
- })}`, "data-size": size, "data-testid": dataTestId, id, onCancel: stopCancel, onClose: stopCancel, onKeyDown: handleFocusTrap, onKeyUp: handleKeyUp, open: true, ref: dialogRef, style: dynamic.assignInlineVars({
137
- [styles_css.topModal]: `-${top}px`,
138
- [styles_css.positionModal]: `${position * 50}px`
139
- }), tabIndex: 0, children: image ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
137
+ })}`, "data-size": size, "data-testid": dataTestId, id, onCancel: stopCancel, onClose: stopCancel, onKeyDown: handleFocusTrap, onKeyUp: handleKeyUp, open: true, ref: dialogRef, style: {
138
+ ...dynamic.assignInlineVars({
139
+ [styles_css.topModal]: `-${top}px`,
140
+ [styles_css.positionModal]: `${position * 50}px`
141
+ }),
142
+ ...style
143
+ }, tabIndex: 0, children: image ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
140
144
  /* @__PURE__ */ jsxRuntime.jsx(index.Stack, { alignItems: "end", className: styles_css.modalImageContainer, justifyContent: "center", children: /* @__PURE__ */ jsxRuntime.jsx("img", { alt: "illustration", className: styles_css.modalImage, src: image }) }),
141
145
  /* @__PURE__ */ jsxRuntime.jsx(index.Stack, { className: styles_css.modalContent, gap: 5, children })
142
146
  ] }) : children }) }), containerRef.current);
@@ -1,2 +1,2 @@
1
1
  import type { DialogProps } from '../types';
2
- export declare const Dialog: ({ children, placement, onClose, hideOnClickOutside, size, id, ariaLabel, className, "data-testid": dataTestId, preventBodyScroll, hideOnEsc, backdropClassName, image, }: DialogProps) => import("react").ReactPortal;
2
+ export declare const Dialog: ({ children, placement, onClose, hideOnClickOutside, size, id, ariaLabel, className, "data-testid": dataTestId, preventBodyScroll, hideOnEsc, backdropClassName, image, style, }: DialogProps) => import("react").ReactPortal;
@@ -23,7 +23,8 @@ const Dialog = ({
23
23
  preventBodyScroll,
24
24
  hideOnEsc,
25
25
  backdropClassName,
26
- image
26
+ image,
27
+ style
27
28
  }) => {
28
29
  const [isVisible, setIsVisible] = useState(false);
29
30
  const containerRef = useRef(document.createElement("div"));
@@ -131,10 +132,13 @@ const Dialog = ({
131
132
  placement,
132
133
  positivePosition: position > 0,
133
134
  size
134
- })}`, "data-size": size, "data-testid": dataTestId, id, onCancel: stopCancel, onClose: stopCancel, onKeyDown: handleFocusTrap, onKeyUp: handleKeyUp, open: true, ref: dialogRef, style: assignInlineVars({
135
- [topModal]: `-${top}px`,
136
- [positionModal]: `${position * 50}px`
137
- }), tabIndex: 0, children: image ? /* @__PURE__ */ jsxs(Fragment, { children: [
135
+ })}`, "data-size": size, "data-testid": dataTestId, id, onCancel: stopCancel, onClose: stopCancel, onKeyDown: handleFocusTrap, onKeyUp: handleKeyUp, open: true, ref: dialogRef, style: {
136
+ ...assignInlineVars({
137
+ [topModal]: `-${top}px`,
138
+ [positionModal]: `${position * 50}px`
139
+ }),
140
+ ...style
141
+ }, tabIndex: 0, children: image ? /* @__PURE__ */ jsxs(Fragment, { children: [
138
142
  /* @__PURE__ */ jsx(Stack, { alignItems: "end", className: modalImageContainer, justifyContent: "center", children: /* @__PURE__ */ jsx("img", { alt: "illustration", className: modalImage, src: image }) }),
139
143
  /* @__PURE__ */ jsx(Stack, { className: modalContent, gap: 5, children })
140
144
  ] }) : children }) }), containerRef.current);
@@ -23,7 +23,8 @@ const Modal = ({
23
23
  className,
24
24
  "data-testid": dataTestId,
25
25
  backdropClassName,
26
- image
26
+ image,
27
+ style
27
28
  }) => {
28
29
  const [visible, setVisible] = react.useState(false);
29
30
  const controlId = react.useId();
@@ -51,7 +52,7 @@ const Modal = ({
51
52
  const context = react.useContext(ModalProvider.ModalContext);
52
53
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
53
54
  disclosure ? /* @__PURE__ */ jsxRuntime.jsx(Disclosure.Disclosure, { disclosure, handleClose, handleOpen, id: finalId, ref: disclosureRef, toggle: handleToggle, visible }) : null,
54
- !context ? /* @__PURE__ */ jsxRuntime.jsx(ModalProvider.ModalProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(ModalContent.ModalContent, { ariaLabel, backdropClassName, className, dataTestId, finalId, finalSize: size, handleClose, handleOpen, handleToggle, hideOnClickOutside, hideOnEsc, image, isClosable, open, placement, preventBodyScroll, visible, children }) }) : /* @__PURE__ */ jsxRuntime.jsx(ModalContent.ModalContent, { ariaLabel, backdropClassName, className, dataTestId, finalId, finalSize: size, handleClose, handleOpen, handleToggle, hideOnClickOutside, hideOnEsc, image, isClosable, open, placement, preventBodyScroll, visible, children })
55
+ !context ? /* @__PURE__ */ jsxRuntime.jsx(ModalProvider.ModalProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(ModalContent.ModalContent, { ariaLabel, backdropClassName, className, dataTestId, finalId, finalSize: size, handleClose, handleOpen, handleToggle, hideOnClickOutside, hideOnEsc, image, isClosable, open, placement, preventBodyScroll, style, visible, children }) }) : /* @__PURE__ */ jsxRuntime.jsx(ModalContent.ModalContent, { ariaLabel, backdropClassName, className, dataTestId, finalId, finalSize: size, handleClose, handleOpen, handleToggle, hideOnClickOutside, hideOnEsc, image, isClosable, open, placement, preventBodyScroll, style, visible, children })
55
56
  ] });
56
57
  };
57
58
  exports.Modal = Modal;
@@ -1,4 +1,4 @@
1
- import type { ReactElement, ReactNode } from 'react';
1
+ import type { CSSProperties, ReactElement, ReactNode } from 'react';
2
2
  import type { ModalPlacement, ModalSize, ModalState } from './types';
3
3
  export type ModalProps = {
4
4
  id?: string;
@@ -21,9 +21,10 @@ export type ModalProps = {
21
21
  * Add an image a the top of the modal.
22
22
  */
23
23
  image?: string;
24
+ style?: CSSProperties;
24
25
  };
25
26
  /**
26
27
  * Modal is a component that allows you to display content on top of other content.
27
28
  * It is often used to display a dialog with additional information or to ask for a confirmation.
28
29
  */
29
- export declare const Modal: ({ ariaLabel, id, children, disclosure, hideOnClickOutside, hideOnEsc, isClosable, onClose, onBeforeClose, open, placement, preventBodyScroll, size, className, "data-testid": dataTestId, backdropClassName, image, }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
30
+ export declare const Modal: ({ ariaLabel, id, children, disclosure, hideOnClickOutside, hideOnEsc, isClosable, onClose, onBeforeClose, open, placement, preventBodyScroll, size, className, "data-testid": dataTestId, backdropClassName, image, style, }: ModalProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -21,7 +21,8 @@ const Modal = ({
21
21
  className,
22
22
  "data-testid": dataTestId,
23
23
  backdropClassName,
24
- image
24
+ image,
25
+ style
25
26
  }) => {
26
27
  const [visible, setVisible] = useState(false);
27
28
  const controlId = useId();
@@ -49,7 +50,7 @@ const Modal = ({
49
50
  const context = useContext(ModalContext);
50
51
  return /* @__PURE__ */ jsxs(Fragment, { children: [
51
52
  disclosure ? /* @__PURE__ */ jsx(Disclosure, { disclosure, handleClose, handleOpen, id: finalId, ref: disclosureRef, toggle: handleToggle, visible }) : null,
52
- !context ? /* @__PURE__ */ jsx(ModalProvider, { children: /* @__PURE__ */ jsx(ModalContent, { ariaLabel, backdropClassName, className, dataTestId, finalId, finalSize: size, handleClose, handleOpen, handleToggle, hideOnClickOutside, hideOnEsc, image, isClosable, open, placement, preventBodyScroll, visible, children }) }) : /* @__PURE__ */ jsx(ModalContent, { ariaLabel, backdropClassName, className, dataTestId, finalId, finalSize: size, handleClose, handleOpen, handleToggle, hideOnClickOutside, hideOnEsc, image, isClosable, open, placement, preventBodyScroll, visible, children })
53
+ !context ? /* @__PURE__ */ jsx(ModalProvider, { children: /* @__PURE__ */ jsx(ModalContent, { ariaLabel, backdropClassName, className, dataTestId, finalId, finalSize: size, handleClose, handleOpen, handleToggle, hideOnClickOutside, hideOnEsc, image, isClosable, open, placement, preventBodyScroll, style, visible, children }) }) : /* @__PURE__ */ jsx(ModalContent, { ariaLabel, backdropClassName, className, dataTestId, finalId, finalSize: size, handleClose, handleOpen, handleToggle, hideOnClickOutside, hideOnEsc, image, isClosable, open, placement, preventBodyScroll, style, visible, children })
53
54
  ] });
54
55
  };
55
56
  export {
@@ -1,4 +1,4 @@
1
- import type { ReactElement, ReactNode, RefObject } from 'react';
1
+ import type { CSSProperties, ReactElement, ReactNode, RefObject } from 'react';
2
2
  export type ModalSize = 'large' | 'medium' | 'small' | 'xsmall' | 'xxsmall';
3
3
  export type ModalPlacement = 'bottom' | 'bottom-left' | 'bottom-right' | 'center' | 'top' | 'top-left' | 'top-right' | 'right' | 'left';
4
4
  export type ModalState = {
@@ -32,4 +32,5 @@ export type DialogProps = {
32
32
  'data-testid'?: string;
33
33
  children: ReactNode;
34
34
  image?: string;
35
+ style?: CSSProperties;
35
36
  };
@@ -8,8 +8,9 @@ const styles_css = require("./styles.css.cjs");
8
8
  const Notice = ({
9
9
  children,
10
10
  className,
11
- "data-testid": dataTestId
12
- }) => /* @__PURE__ */ jsxRuntime.jsxs(index.Text, { as: "span", className: `${className ? `${className} ` : ""}${styles_css.notice}`, "data-testid": dataTestId, prominence: "weak", sentiment: "neutral", variant: "caption", children: [
11
+ "data-testid": dataTestId,
12
+ style
13
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(index.Text, { as: "span", className: `${className ? `${className} ` : ""}${styles_css.notice}`, "data-testid": dataTestId, prominence: "weak", sentiment: "neutral", style, variant: "caption", children: [
13
14
  /* @__PURE__ */ jsxRuntime.jsx(Icon.InformationOutlineIcon, { prominence: "weak", sentiment: "neutral", size: "small" }),
14
15
  children
15
16
  ] });
@@ -1,11 +1,12 @@
1
- import type { ReactNode } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  type NoticeProps = {
3
3
  children: ReactNode;
4
4
  className?: string;
5
5
  'data-testid'?: string;
6
+ style?: CSSProperties;
6
7
  };
7
8
  /**
8
9
  * A Notice is used to display a short message to the user.
9
10
  */
10
- export declare const Notice: ({ children, className, "data-testid": dataTestId, }: NoticeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const Notice: ({ children, className, "data-testid": dataTestId, style, }: NoticeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
12
  export {};
@@ -6,8 +6,9 @@ import { notice } from "./styles.css.js";
6
6
  const Notice = ({
7
7
  children,
8
8
  className,
9
- "data-testid": dataTestId
10
- }) => /* @__PURE__ */ jsxs(Text, { as: "span", className: `${className ? `${className} ` : ""}${notice}`, "data-testid": dataTestId, prominence: "weak", sentiment: "neutral", variant: "caption", children: [
9
+ "data-testid": dataTestId,
10
+ style
11
+ }) => /* @__PURE__ */ jsxs(Text, { as: "span", className: `${className ? `${className} ` : ""}${notice}`, "data-testid": dataTestId, prominence: "weak", sentiment: "neutral", style, variant: "caption", children: [
11
12
  /* @__PURE__ */ jsx(InformationOutlineIcon, { prominence: "weak", sentiment: "neutral", size: "small" }),
12
13
  children
13
14
  ] });
@@ -28,7 +28,8 @@ const NotificationContainer = ({
28
28
  position = "top-right",
29
29
  "data-testid": dataTestId,
30
30
  className,
31
+ style,
31
32
  containerId = "notification"
32
- }) => /* @__PURE__ */ jsxRuntime.jsx(reactToastify.ToastContainer, { autoClose, className: `${className ? `${className} ` : ""}${styles_css.notification}`, containerId, "data-testid": dataTestId, draggable: false, hideProgressBar: true, icon: false, limit, newestOnTop, position, transition: reactToastify.Slide });
33
+ }) => /* @__PURE__ */ jsxRuntime.jsx(reactToastify.ToastContainer, { autoClose, className: `${className ? `${className} ` : ""}${styles_css.notification}`, containerId, "data-testid": dataTestId, draggable: false, hideProgressBar: true, icon: false, limit, newestOnTop, position, style, transition: reactToastify.Slide });
33
34
  exports.NotificationContainer = NotificationContainer;
34
35
  exports.notification = notification;
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { CSSProperties, ReactNode } from 'react';
2
2
  import type { Theme as ThemeToastify, ToastOptions, TypeOptions } from 'react-toastify';
3
3
  type CloseButtonProps = {
4
4
  closeToast: (event: React.MouseEvent<HTMLElement>) => void;
@@ -31,6 +31,7 @@ type NotificationContainerProps = {
31
31
  * Give a personalized containerId in case there are multiple notifications with different styled to display
32
32
  */
33
33
  containerId?: string;
34
+ style?: CSSProperties;
34
35
  };
35
- export declare const NotificationContainer: ({ newestOnTop, limit, autoClose, position, "data-testid": dataTestId, className, containerId, }: NotificationContainerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
36
+ export declare const NotificationContainer: ({ newestOnTop, limit, autoClose, position, "data-testid": dataTestId, className, style, containerId, }: NotificationContainerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
36
37
  export {};
@@ -26,8 +26,9 @@ const NotificationContainer = ({
26
26
  position = "top-right",
27
27
  "data-testid": dataTestId,
28
28
  className,
29
+ style,
29
30
  containerId = "notification"
30
- }) => /* @__PURE__ */ jsx(ToastContainer, { autoClose, className: `${className ? `${className} ` : ""}${notification$1}`, containerId, "data-testid": dataTestId, draggable: false, hideProgressBar: true, icon: false, limit, newestOnTop, position, transition: Slide });
31
+ }) => /* @__PURE__ */ jsx(ToastContainer, { autoClose, className: `${className ? `${className} ` : ""}${notification$1}`, containerId, "data-testid": dataTestId, draggable: false, hideProgressBar: true, icon: false, limit, newestOnTop, position, style, transition: Slide });
31
32
  export {
32
33
  NotificationContainer,
33
34
  notification
@@ -37,7 +37,8 @@ const NumberInput = react.forwardRef(({
37
37
  "data-testid": dataTestId,
38
38
  required,
39
39
  autoFocus,
40
- readOnly
40
+ readOnly,
41
+ style
41
42
  }, ref) => {
42
43
  const localRef = react.useRef(null);
43
44
  react.useImperativeHandle(ref, () => localRef.current);
@@ -128,7 +129,7 @@ const NumberInput = react.forwardRef(({
128
129
  }, onChange: onChange ? (event) => {
129
130
  const newNumber = Number.parseFloat(event.target.value);
130
131
  onChange(Number.isNaN(newNumber) ? null : newNumber);
131
- } : void 0, onFocus, placeholder, readOnly, ref: localRef, required, step, type: "number", value: inputValue }),
132
+ } : void 0, onFocus, placeholder, readOnly, ref: localRef, required, step, style, type: "number", value: inputValue }),
132
133
  unit ? /* @__PURE__ */ jsxRuntime.jsx(index$5.Text, { as: "span", className: styles_css.unit({
133
134
  disabled,
134
135
  readOnly,
@@ -30,5 +30,5 @@ export declare const NumberInput: import("react").ForwardRefExoticComponent<{
30
30
  onChange?: (newValue: number | null) => void;
31
31
  min?: number;
32
32
  max?: number;
33
- } & Pick<InputHTMLAttributes<HTMLInputElement>, "disabled" | "id" | "name" | "aria-label" | "onFocus" | "onBlur" | "autoFocus" | "step" | "placeholder" | "readOnly" | "required"> & import("react").RefAttributes<HTMLInputElement>>;
33
+ } & Pick<InputHTMLAttributes<HTMLInputElement>, "style" | "disabled" | "id" | "name" | "aria-label" | "onFocus" | "onBlur" | "autoFocus" | "step" | "placeholder" | "readOnly" | "required"> & import("react").RefAttributes<HTMLInputElement>>;
34
34
  export {};
@@ -35,7 +35,8 @@ const NumberInput = forwardRef(({
35
35
  "data-testid": dataTestId,
36
36
  required,
37
37
  autoFocus,
38
- readOnly
38
+ readOnly,
39
+ style
39
40
  }, ref) => {
40
41
  const localRef = useRef(null);
41
42
  useImperativeHandle(ref, () => localRef.current);
@@ -126,7 +127,7 @@ const NumberInput = forwardRef(({
126
127
  }, onChange: onChange ? (event) => {
127
128
  const newNumber = Number.parseFloat(event.target.value);
128
129
  onChange(Number.isNaN(newNumber) ? null : newNumber);
129
- } : void 0, onFocus, placeholder, readOnly, ref: localRef, required, step, type: "number", value: inputValue }),
130
+ } : void 0, onFocus, placeholder, readOnly, ref: localRef, required, step, style, type: "number", value: inputValue }),
130
131
  unit$1 ? /* @__PURE__ */ jsx(Text, { as: "span", className: unit({
131
132
  disabled,
132
133
  readOnly,
@@ -18,7 +18,8 @@ const Pagination = ({
18
18
  perPageText,
19
19
  numberOfItemsText,
20
20
  numberOfItems,
21
- "data-testid": dataTestId
21
+ "data-testid": dataTestId,
22
+ style
22
23
  }) => {
23
24
  const [perPageComputed, setPerPage] = react.useState(perPage ?? 10);
24
25
  react.useEffect(() => {
@@ -34,7 +35,7 @@ const Pagination = ({
34
35
  setPerPage(perPage);
35
36
  }
36
37
  }, [perPage]);
37
- return /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { direction: "row", justifyContent: "space-between", children: [
38
+ return /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { direction: "row", justifyContent: "space-between", style, children: [
38
39
  perPage ? /* @__PURE__ */ jsxRuntime.jsx(PerPage.PerPage, { numberOfItems, numberOfItemsText, onChangePerPage, page, perPage: perPageComputed, perPageText, setPerPage }) : null,
39
40
  /* @__PURE__ */ jsxRuntime.jsx(PaginationButtons.PaginationButtons, { className, "data-testid": dataTestId, disabled, onChange, page, pageCount, pageTabCount, perPage: !!perPage })
40
41
  ] });
@@ -1,3 +1,4 @@
1
+ import type { CSSProperties } from 'react';
1
2
  type PaginationProps = {
2
3
  /**
3
4
  Event function called when changing the page
@@ -20,6 +21,7 @@ type PaginationProps = {
20
21
  */
21
22
  disabled?: boolean;
22
23
  className?: string;
24
+ style?: CSSProperties;
23
25
  'data-testid'?: string;
24
26
  } & ({
25
27
  /**
@@ -53,5 +55,5 @@ type PaginationProps = {
53
55
  * Pagination is a component to navigate between pages, it is composed of 2 buttons to go to the previous and next page,
54
56
  * and a list of buttons to go to a specific page.
55
57
  */
56
- export declare const Pagination: ({ disabled, page, pageCount, onChange, pageTabCount, className, perPage, onChangePerPage, perPageText, numberOfItemsText, numberOfItems, "data-testid": dataTestId, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
58
+ export declare const Pagination: ({ disabled, page, pageCount, onChange, pageTabCount, className, perPage, onChangePerPage, perPageText, numberOfItemsText, numberOfItems, "data-testid": dataTestId, style, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
57
59
  export {};
@@ -16,7 +16,8 @@ const Pagination = ({
16
16
  perPageText,
17
17
  numberOfItemsText,
18
18
  numberOfItems,
19
- "data-testid": dataTestId
19
+ "data-testid": dataTestId,
20
+ style
20
21
  }) => {
21
22
  const [perPageComputed, setPerPage] = useState(perPage ?? 10);
22
23
  useEffect(() => {
@@ -32,7 +33,7 @@ const Pagination = ({
32
33
  setPerPage(perPage);
33
34
  }
34
35
  }, [perPage]);
35
- return /* @__PURE__ */ jsxs(Stack, { direction: "row", justifyContent: "space-between", children: [
36
+ return /* @__PURE__ */ jsxs(Stack, { direction: "row", justifyContent: "space-between", style, children: [
36
37
  perPage ? /* @__PURE__ */ jsx(PerPage, { numberOfItems, numberOfItemsText, onChangePerPage, page, perPage: perPageComputed, perPageText, setPerPage }) : null,
37
38
  /* @__PURE__ */ jsx(PaginationButtons, { className, "data-testid": dataTestId, disabled, onChange, page, pageCount, pageTabCount, perPage: !!perPage })
38
39
  ] });
@@ -9,8 +9,9 @@ const styles_css = require("./styles.css.cjs");
9
9
  const PasswordCheck = ({
10
10
  rules,
11
11
  className,
12
- "data-testid": dataTestId
13
- }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${className ? `${className} ` : ""}${styles_css.passwordCheckContainer}`, "data-testid": dataTestId, children: rules.map((rule) => /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { alignItems: "center", direction: "row", gap: 1, children: [
12
+ "data-testid": dataTestId,
13
+ style
14
+ }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${className ? `${className} ` : ""}${styles_css.passwordCheckContainer}`, "data-testid": dataTestId, style, children: rules.map((rule) => /* @__PURE__ */ jsxRuntime.jsxs(index.Stack, { alignItems: "center", direction: "row", gap: 1, children: [
14
15
  rule.valid ? /* @__PURE__ */ jsxRuntime.jsx(Icon.CheckCircleOutlineIcon, { prominence: "weak", sentiment: "success", size: "large" }) : /* @__PURE__ */ jsxRuntime.jsx(Icon.CloseCircleOutlineIcon, { prominence: "weak", sentiment: "neutral", size: "large" }),
15
16
  /* @__PURE__ */ jsxRuntime.jsx(index$1.Text, { as: "p", variant: "bodySmall", children: rule.text })
16
17
  ] }, rule.name)) });
@@ -1,3 +1,4 @@
1
+ import type { CSSProperties } from 'react';
1
2
  type Rule = {
2
3
  name: string;
3
4
  text: string;
@@ -11,10 +12,11 @@ type PasswordCheckProps = {
11
12
  rules: Rule[];
12
13
  className?: string;
13
14
  'data-testid'?: string;
15
+ style?: CSSProperties;
14
16
  };
15
17
  /**
16
18
  * PasswordCheck is a component that display a list of password rules with a check or a cross depending on the validity
17
19
  * of the rule.
18
20
  */
19
- export declare const PasswordCheck: ({ rules, className, "data-testid": dataTestId, }: PasswordCheckProps) => import("@emotion/react/jsx-runtime").JSX.Element;
21
+ export declare const PasswordCheck: ({ rules, className, "data-testid": dataTestId, style, }: PasswordCheckProps) => import("@emotion/react/jsx-runtime").JSX.Element;
20
22
  export {};