@dmsi/wedgekit-react 0.0.25 → 0.0.27

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 (217) hide show
  1. package/dist/{chunk-KDEPZ6I7.js → chunk-2S2Z3L56.js} +5 -1
  2. package/dist/{chunk-TU55CHXU.js → chunk-4JLU7TAC.js} +3 -1
  3. package/dist/{chunk-Z2LOGSGE.js → chunk-4N2PED4P.js} +15 -3
  4. package/dist/{chunk-U42SKNR6.js → chunk-57WRM337.js} +68 -30
  5. package/dist/{chunk-ZFGGZXB6.js → chunk-AY7ELVQY.js} +5 -2
  6. package/dist/{chunk-I2UVVKQI.js → chunk-CHTO7PW4.js} +3 -2
  7. package/dist/{chunk-WIDBAFBU.js → chunk-FWPJ73IK.js} +3 -1
  8. package/dist/{chunk-5TLFMKSR.js → chunk-INYI65WW.js} +15 -5
  9. package/dist/{chunk-TJ44JJCB.js → chunk-J6LETUNM.js} +5 -2
  10. package/dist/{chunk-T6HZARR7.js → chunk-MZJS2ZAU.js} +6 -3
  11. package/dist/{chunk-ZCBSLV7U.js → chunk-O4M2GISS.js} +5 -2
  12. package/dist/{chunk-OUTEIXV4.js → chunk-OUSNH76S.js} +11 -3
  13. package/dist/{chunk-YDREJNAS.js → chunk-PDDZ5PMY.js} +18 -4
  14. package/dist/{chunk-4RD5ZF2V.js → chunk-QBIEU25R.js} +10 -4
  15. package/dist/chunk-QUPHLL7D.js +61 -0
  16. package/dist/{chunk-OISE6NMA.js → chunk-QV2EFOYF.js} +17 -6
  17. package/dist/{chunk-YZQNTOIF.js → chunk-QZGUMB7T.js} +10 -5
  18. package/dist/{chunk-S7R37IUP.js → chunk-S5K22XTH.js} +5 -2
  19. package/dist/{chunk-GCPJH5R6.js → chunk-S5KPS4IQ.js} +22 -7
  20. package/dist/{chunk-VELXLFMJ.js → chunk-SAMX4YGM.js} +4 -1
  21. package/dist/{chunk-TWP6YSFO.js → chunk-SKHSGGO3.js} +14 -6
  22. package/dist/chunk-TVDFTRGL.js +57 -0
  23. package/dist/{chunk-N32PXOA5.js → chunk-UT7XCBZF.js} +9 -4
  24. package/dist/{chunk-L4UM372R.js → chunk-VC3R5EUH.js} +3 -0
  25. package/dist/{chunk-UIQ733QP.js → chunk-VG4EPHJA.js} +7 -3
  26. package/dist/components/Breadcrumbs.cjs +29 -9
  27. package/dist/components/Breadcrumbs.js +29 -9
  28. package/dist/components/Button.cjs +6 -3
  29. package/dist/components/Button.js +1 -1
  30. package/dist/components/CalendarRange.cjs +11 -3
  31. package/dist/components/CalendarRange.js +1 -1
  32. package/dist/components/Caption.cjs +53 -9
  33. package/dist/components/Caption.js +53 -9
  34. package/dist/components/Checkbox.cjs +15 -6
  35. package/dist/components/Checkbox.js +2 -2
  36. package/dist/components/ContentTab.cjs +20 -7
  37. package/dist/components/ContentTab.js +2 -2
  38. package/dist/components/ContentTabs.cjs +32 -18
  39. package/dist/components/ContentTabs.js +14 -13
  40. package/dist/components/DMSiLogo.cjs +22 -4
  41. package/dist/components/DMSiLogo.js +9 -5
  42. package/dist/components/DataGrid.cjs +374 -243
  43. package/dist/components/DataGrid.js +283 -226
  44. package/dist/components/DataGridCell.cjs +79 -21
  45. package/dist/components/DataGridCell.js +7 -7
  46. package/dist/components/DataTable.cjs +197 -139
  47. package/dist/components/DataTable.js +197 -139
  48. package/dist/components/DateInput.cjs +36 -10
  49. package/dist/components/DateInput.js +7 -3
  50. package/dist/components/DateRangeInput.cjs +36 -10
  51. package/dist/components/DateRangeInput.js +7 -3
  52. package/dist/components/DebugJson.cjs +21 -13
  53. package/dist/components/DebugJson.js +21 -13
  54. package/dist/components/Display.cjs +5 -2
  55. package/dist/components/Display.js +1 -1
  56. package/dist/components/EditingContext.cjs +4 -1
  57. package/dist/components/EditingContext.js +4 -1
  58. package/dist/components/FilterGroup.cjs +102 -32
  59. package/dist/components/FilterGroup.js +41 -17
  60. package/dist/components/FullViewportBox.cjs +10 -2
  61. package/dist/components/FullViewportBox.js +10 -2
  62. package/dist/components/Grid.cjs +3 -1
  63. package/dist/components/Grid.js +3 -1
  64. package/dist/components/Heading.cjs +5 -2
  65. package/dist/components/Heading.js +1 -1
  66. package/dist/components/HorizontalDivider.cjs +2 -2
  67. package/dist/components/HorizontalDivider.js +2 -2
  68. package/dist/components/Input.cjs +21 -7
  69. package/dist/components/Input.js +2 -2
  70. package/dist/components/InputGroup.cjs +13 -6
  71. package/dist/components/InputGroup.js +9 -5
  72. package/dist/components/Label.cjs +5 -2
  73. package/dist/components/Label.js +1 -1
  74. package/dist/components/List.cjs +3 -2
  75. package/dist/components/List.js +3 -2
  76. package/dist/components/LogoAgilityTopBar.cjs +22 -4
  77. package/dist/components/LogoAgilityTopBar.js +9 -5
  78. package/dist/components/LogoDMSiTopBar.cjs +22 -4
  79. package/dist/components/LogoDMSiTopBar.js +1 -1
  80. package/dist/components/LogoMillworkTopBar.cjs +22 -4
  81. package/dist/components/LogoMillworkTopBar.js +9 -5
  82. package/dist/components/MainBar.cjs +2 -0
  83. package/dist/components/MainBar.js +2 -0
  84. package/dist/components/Menu.cjs +3 -0
  85. package/dist/components/Menu.js +1 -1
  86. package/dist/components/MenuOption.cjs +28 -7
  87. package/dist/components/MenuOption.js +3 -3
  88. package/dist/components/MobileDataGrid.cjs +101 -46
  89. package/dist/components/MobileDataGrid.js +23 -11
  90. package/dist/components/Modal.cjs +96 -51
  91. package/dist/components/Modal.js +19 -7
  92. package/dist/components/ModalButtons.cjs +43 -26
  93. package/dist/components/ModalButtons.js +2 -2
  94. package/dist/components/ModalContent.cjs +3 -1
  95. package/dist/components/ModalContent.js +1 -1
  96. package/dist/components/ModalHeader.cjs +40 -25
  97. package/dist/components/ModalHeader.js +3 -3
  98. package/dist/components/ModalScrim.cjs +3 -1
  99. package/dist/components/ModalScrim.js +1 -1
  100. package/dist/components/NavigationTab.cjs +9 -3
  101. package/dist/components/NavigationTab.js +2 -2
  102. package/dist/components/NavigationTabs.cjs +15 -7
  103. package/dist/components/NavigationTabs.js +8 -6
  104. package/dist/components/NestedMenu.cjs +28 -7
  105. package/dist/components/NestedMenu.js +3 -3
  106. package/dist/components/Notification.cjs +84 -38
  107. package/dist/components/Notification.js +8 -4
  108. package/dist/components/OptionPill.cjs +24 -6
  109. package/dist/components/OptionPill.js +3 -3
  110. package/dist/components/Paragraph.cjs +7 -3
  111. package/dist/components/Paragraph.js +1 -1
  112. package/dist/components/Password.cjs +33 -11
  113. package/dist/components/Password.js +14 -6
  114. package/dist/components/ProjectBar.cjs +3 -1
  115. package/dist/components/ProjectBar.js +3 -1
  116. package/dist/components/Radio.cjs +13 -7
  117. package/dist/components/Radio.js +7 -5
  118. package/dist/components/Search.cjs +34 -12
  119. package/dist/components/Search.js +3 -3
  120. package/dist/components/Select.cjs +25 -7
  121. package/dist/components/Select.js +3 -3
  122. package/dist/components/SideMenu.cjs +6 -1
  123. package/dist/components/SideMenu.js +6 -1
  124. package/dist/components/SideMenuGroup.cjs +96 -49
  125. package/dist/components/SideMenuGroup.js +31 -19
  126. package/dist/components/SideMenuItem.cjs +99 -43
  127. package/dist/components/SideMenuItem.js +32 -12
  128. package/dist/components/Stack.cjs +91 -30
  129. package/dist/components/Stack.js +1 -1
  130. package/dist/components/StatusPill.cjs +13 -6
  131. package/dist/components/StatusPill.js +9 -5
  132. package/dist/components/Stepper.cjs +35 -17
  133. package/dist/components/Stepper.js +11 -10
  134. package/dist/components/Subheader.cjs +5 -2
  135. package/dist/components/Subheader.js +1 -1
  136. package/dist/components/Surface.cjs +5 -2
  137. package/dist/components/Surface.js +5 -2
  138. package/dist/components/Swatch.cjs +1544 -1308
  139. package/dist/components/Swatch.js +1469 -1275
  140. package/dist/components/Textarea.cjs +5 -2
  141. package/dist/components/Textarea.js +5 -2
  142. package/dist/components/Theme.cjs +3 -2
  143. package/dist/components/Theme.js +1 -1
  144. package/dist/components/Time.cjs +98 -40
  145. package/dist/components/Time.js +18 -6
  146. package/dist/components/Toast.cjs +38 -15
  147. package/dist/components/Toast.js +23 -10
  148. package/dist/components/Tooltip.cjs +5 -4
  149. package/dist/components/Tooltip.js +1 -1
  150. package/dist/components/TopBar.cjs +16 -8
  151. package/dist/components/TopBar.js +12 -5
  152. package/package.json +1 -1
  153. package/src/components/Breadcrumbs.tsx +24 -15
  154. package/src/components/Button.tsx +7 -3
  155. package/src/components/CalendarRange.tsx +9 -0
  156. package/src/components/Caption.tsx +36 -6
  157. package/src/components/Checkbox.tsx +7 -2
  158. package/src/components/ContentTab.tsx +13 -3
  159. package/src/components/ContentTabs.tsx +11 -8
  160. package/src/components/DMSiLogo.tsx +2 -1
  161. package/src/components/DataGrid.tsx +85 -23
  162. package/src/components/DataGridCell.tsx +15 -2
  163. package/src/components/DataTable.tsx +64 -14
  164. package/src/components/DateInput.tsx +5 -1
  165. package/src/components/DateRangeInput.tsx +5 -1
  166. package/src/components/DebugJson.tsx +7 -3
  167. package/src/components/Display.tsx +3 -0
  168. package/src/components/EditingContext.tsx +8 -6
  169. package/src/components/FilterGroup.tsx +23 -3
  170. package/src/components/FullViewportBox.tsx +6 -1
  171. package/src/components/Grid.tsx +3 -0
  172. package/src/components/Heading.tsx +3 -0
  173. package/src/components/HorizontalDivider.tsx +4 -2
  174. package/src/components/Input.tsx +19 -10
  175. package/src/components/InputGroup.tsx +8 -4
  176. package/src/components/Label.tsx +3 -0
  177. package/src/components/Link.tsx +1 -0
  178. package/src/components/List.tsx +7 -1
  179. package/src/components/LogoAgilityTopBar.tsx +2 -1
  180. package/src/components/LogoDMSiTopBar.tsx +2 -1
  181. package/src/components/LogoMillworkTopBar.tsx +2 -1
  182. package/src/components/MainBar.tsx +3 -0
  183. package/src/components/Menu.tsx +3 -0
  184. package/src/components/MenuOption.tsx +72 -58
  185. package/src/components/MobileDataGrid.tsx +15 -4
  186. package/src/components/Modal.tsx +10 -1
  187. package/src/components/ModalButtons.tsx +12 -1
  188. package/src/components/ModalContent.tsx +3 -0
  189. package/src/components/ModalHeader.tsx +16 -6
  190. package/src/components/ModalScrim.tsx +3 -0
  191. package/src/components/NavigationTab.tsx +6 -3
  192. package/src/components/NavigationTabs.tsx +5 -2
  193. package/src/components/Notification.tsx +4 -0
  194. package/src/components/OptionPill.tsx +9 -1
  195. package/src/components/Paragraph.tsx +3 -0
  196. package/src/components/Password.tsx +9 -3
  197. package/src/components/ProjectBar.tsx +3 -0
  198. package/src/components/Radio.tsx +3 -2
  199. package/src/components/Search.tsx +56 -41
  200. package/src/components/Select.tsx +6 -1
  201. package/src/components/SideMenu.tsx +7 -1
  202. package/src/components/SideMenuGroup.tsx +13 -2
  203. package/src/components/SideMenuItem.tsx +15 -2
  204. package/src/components/Stack.tsx +8 -3
  205. package/src/components/StatusPill.tsx +4 -2
  206. package/src/components/Stepper.tsx +5 -5
  207. package/src/components/Subheader.tsx +3 -0
  208. package/src/components/Surface.tsx +3 -0
  209. package/src/components/Swatch.tsx +415 -140
  210. package/src/components/Textarea.tsx +6 -3
  211. package/src/components/Theme.tsx +3 -1
  212. package/src/components/Time.tsx +21 -5
  213. package/src/components/Toast.tsx +29 -14
  214. package/src/components/Tooltip.tsx +46 -32
  215. package/src/components/TopBar.tsx +7 -3
  216. package/dist/chunk-DBYSGYST.js +0 -47
  217. package/dist/chunk-UK3WG7HQ.js +0 -48
@@ -208,38 +208,70 @@ var useFlexClassNames = ({ items, justify, grow }) => (0, import_clsx2.default)(
208
208
  justify === "between" && "justify-between",
209
209
  justify === "around" && "justify-around"
210
210
  );
211
- var Stack = ({
212
- children,
213
- items,
214
- justify,
215
- grow,
216
- padding,
217
- paddingX,
218
- horizontal,
219
- horizontalMobile,
220
- elevation = 0,
221
- rounded,
222
- centered,
223
- width,
224
- maxWidth,
225
- minWidth,
226
- height,
227
- maxHeight,
228
- borderColor,
229
- backgroundColor,
230
- sizing = "none",
231
- overflowY = "inherit",
232
- overflowX = "inherit",
233
- flexShrink,
234
- flexGrow,
235
- position,
236
- top,
237
- left
238
- }) => {
211
+ var Stack = (_a) => {
212
+ var _b = _a, {
213
+ children,
214
+ items,
215
+ justify,
216
+ grow,
217
+ padding,
218
+ paddingX,
219
+ horizontal,
220
+ horizontalMobile,
221
+ elevation = 0,
222
+ rounded,
223
+ centered,
224
+ width,
225
+ maxWidth,
226
+ minWidth,
227
+ height,
228
+ maxHeight,
229
+ borderColor,
230
+ backgroundColor,
231
+ sizing = "none",
232
+ overflowY = "inherit",
233
+ overflowX = "inherit",
234
+ flexShrink,
235
+ flexGrow,
236
+ position,
237
+ top,
238
+ left,
239
+ id
240
+ } = _b, props = __objRest(_b, [
241
+ "children",
242
+ "items",
243
+ "justify",
244
+ "grow",
245
+ "padding",
246
+ "paddingX",
247
+ "horizontal",
248
+ "horizontalMobile",
249
+ "elevation",
250
+ "rounded",
251
+ "centered",
252
+ "width",
253
+ "maxWidth",
254
+ "minWidth",
255
+ "height",
256
+ "maxHeight",
257
+ "borderColor",
258
+ "backgroundColor",
259
+ "sizing",
260
+ "overflowY",
261
+ "overflowX",
262
+ "flexShrink",
263
+ "flexGrow",
264
+ "position",
265
+ "top",
266
+ "left",
267
+ "id"
268
+ ]);
239
269
  const flexClassNames = useFlexClassNames({ items, justify, grow });
240
270
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
241
271
  "div",
242
- {
272
+ __spreadProps(__spreadValues({
273
+ id
274
+ }, props), {
243
275
  style: {
244
276
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
245
277
  maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
@@ -287,7 +319,7 @@ var Stack = ({
287
319
  rounded && "rounded"
288
320
  ),
289
321
  children
290
- }
322
+ })
291
323
  );
292
324
  };
293
325
 
@@ -303,7 +335,8 @@ var Paragraph = (_a) => {
303
335
  tall,
304
336
  addOverflow,
305
337
  children,
306
- as = "p"
338
+ as = "p",
339
+ id
307
340
  } = _b, props = __objRest(_b, [
308
341
  "className",
309
342
  "color",
@@ -312,12 +345,15 @@ var Paragraph = (_a) => {
312
345
  "tall",
313
346
  "addOverflow",
314
347
  "children",
315
- "as"
348
+ "as",
349
+ "id"
316
350
  ]);
317
351
  const Element = as;
318
352
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
319
353
  Element,
320
- __spreadProps(__spreadValues({}, props), {
354
+ __spreadProps(__spreadValues({
355
+ id
356
+ }, props), {
321
357
  className: (0, import_clsx3.default)(
322
358
  typography.paragraph,
323
359
  className,
@@ -340,6 +376,7 @@ Paragraph.displayName = "Paragraph";
340
376
  // src/components/SideMenuItem.tsx
341
377
  var import_jsx_runtime3 = require("react/jsx-runtime");
342
378
  var SideMenuItem = ({
379
+ id,
343
380
  label,
344
381
  leftIcon,
345
382
  rightIcon,
@@ -363,6 +400,7 @@ var SideMenuItem = ({
363
400
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
364
401
  "a",
365
402
  {
403
+ id,
366
404
  href,
367
405
  className: (0, import_clsx4.default)(
368
406
  "group flex w-full rounded border-2 cursor-pointer",
@@ -377,16 +415,34 @@ var SideMenuItem = ({
377
415
  enabledDisabledStyles
378
416
  ),
379
417
  onClick,
380
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Stack, { horizontal: true, items: "center", sizing: "component", children: [
381
- groupIndentLevel === 2 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pl-6" }),
382
- groupIndentLevel === 3 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pl-13" }),
383
- groupIndentLevel === 4 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pl-20" }),
384
- groupIndentLevel === 5 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pl-27" }),
385
- leftIcon && leftIcon,
386
- !leftIcon && groupIndentLevel && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "w-6 h-6" }),
387
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Paragraph, { as: "span", padded: true, className: "mr-auto !leading-6", children: label }),
388
- rightIcon && rightIcon
389
- ] })
418
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
419
+ Stack,
420
+ {
421
+ id: id ? `${id}-stack` : void 0,
422
+ horizontal: true,
423
+ items: "center",
424
+ sizing: "component",
425
+ children: [
426
+ groupIndentLevel === 2 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pl-6" }),
427
+ groupIndentLevel === 3 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pl-13" }),
428
+ groupIndentLevel === 4 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pl-20" }),
429
+ groupIndentLevel === 5 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pl-27" }),
430
+ leftIcon && leftIcon,
431
+ !leftIcon && groupIndentLevel && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "w-6 h-6" }),
432
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
433
+ Paragraph,
434
+ {
435
+ id: id ? `${id}-label` : void 0,
436
+ as: "span",
437
+ padded: true,
438
+ className: "mr-auto !leading-6",
439
+ children: label
440
+ }
441
+ ),
442
+ rightIcon && rightIcon
443
+ ]
444
+ }
445
+ )
390
446
  }
391
447
  );
392
448
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Stack
3
- } from "../chunk-U42SKNR6.js";
3
+ } from "../chunk-57WRM337.js";
4
4
  import {
5
5
  Paragraph
6
- } from "../chunk-UIQ733QP.js";
6
+ } from "../chunk-VG4EPHJA.js";
7
7
  import {
8
8
  baseTransition,
9
9
  componentPaddingMinus2pxBorder
@@ -14,6 +14,7 @@ import "../chunk-ORMEWXMH.js";
14
14
  import clsx from "clsx";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
16
16
  var SideMenuItem = ({
17
+ id,
17
18
  label,
18
19
  leftIcon,
19
20
  rightIcon,
@@ -37,6 +38,7 @@ var SideMenuItem = ({
37
38
  return /* @__PURE__ */ jsx(
38
39
  "a",
39
40
  {
41
+ id,
40
42
  href,
41
43
  className: clsx(
42
44
  "group flex w-full rounded border-2 cursor-pointer",
@@ -51,16 +53,34 @@ var SideMenuItem = ({
51
53
  enabledDisabledStyles
52
54
  ),
53
55
  onClick,
54
- children: /* @__PURE__ */ jsxs(Stack, { horizontal: true, items: "center", sizing: "component", children: [
55
- groupIndentLevel === 2 && /* @__PURE__ */ jsx("div", { className: "pl-6" }),
56
- groupIndentLevel === 3 && /* @__PURE__ */ jsx("div", { className: "pl-13" }),
57
- groupIndentLevel === 4 && /* @__PURE__ */ jsx("div", { className: "pl-20" }),
58
- groupIndentLevel === 5 && /* @__PURE__ */ jsx("div", { className: "pl-27" }),
59
- leftIcon && leftIcon,
60
- !leftIcon && groupIndentLevel && /* @__PURE__ */ jsx("div", { className: "w-6 h-6" }),
61
- /* @__PURE__ */ jsx(Paragraph, { as: "span", padded: true, className: "mr-auto !leading-6", children: label }),
62
- rightIcon && rightIcon
63
- ] })
56
+ children: /* @__PURE__ */ jsxs(
57
+ Stack,
58
+ {
59
+ id: id ? `${id}-stack` : void 0,
60
+ horizontal: true,
61
+ items: "center",
62
+ sizing: "component",
63
+ children: [
64
+ groupIndentLevel === 2 && /* @__PURE__ */ jsx("div", { className: "pl-6" }),
65
+ groupIndentLevel === 3 && /* @__PURE__ */ jsx("div", { className: "pl-13" }),
66
+ groupIndentLevel === 4 && /* @__PURE__ */ jsx("div", { className: "pl-20" }),
67
+ groupIndentLevel === 5 && /* @__PURE__ */ jsx("div", { className: "pl-27" }),
68
+ leftIcon && leftIcon,
69
+ !leftIcon && groupIndentLevel && /* @__PURE__ */ jsx("div", { className: "w-6 h-6" }),
70
+ /* @__PURE__ */ jsx(
71
+ Paragraph,
72
+ {
73
+ id: id ? `${id}-label` : void 0,
74
+ as: "span",
75
+ padded: true,
76
+ className: "mr-auto !leading-6",
77
+ children: label
78
+ }
79
+ ),
80
+ rightIcon && rightIcon
81
+ ]
82
+ }
83
+ )
64
84
  }
65
85
  );
66
86
  };
@@ -1,10 +1,39 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
9
  var __getProtoOf = Object.getPrototypeOf;
7
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
8
37
  var __export = (target, all) => {
9
38
  for (var name in all)
10
39
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -50,38 +79,70 @@ var useFlexClassNames = ({ items, justify, grow }) => (0, import_clsx.default)(
50
79
  justify === "between" && "justify-between",
51
80
  justify === "around" && "justify-around"
52
81
  );
53
- var Stack = ({
54
- children,
55
- items,
56
- justify,
57
- grow,
58
- padding,
59
- paddingX,
60
- horizontal,
61
- horizontalMobile,
62
- elevation = 0,
63
- rounded,
64
- centered,
65
- width,
66
- maxWidth,
67
- minWidth,
68
- height,
69
- maxHeight,
70
- borderColor,
71
- backgroundColor,
72
- sizing = "none",
73
- overflowY = "inherit",
74
- overflowX = "inherit",
75
- flexShrink,
76
- flexGrow,
77
- position,
78
- top,
79
- left
80
- }) => {
82
+ var Stack = (_a) => {
83
+ var _b = _a, {
84
+ children,
85
+ items,
86
+ justify,
87
+ grow,
88
+ padding,
89
+ paddingX,
90
+ horizontal,
91
+ horizontalMobile,
92
+ elevation = 0,
93
+ rounded,
94
+ centered,
95
+ width,
96
+ maxWidth,
97
+ minWidth,
98
+ height,
99
+ maxHeight,
100
+ borderColor,
101
+ backgroundColor,
102
+ sizing = "none",
103
+ overflowY = "inherit",
104
+ overflowX = "inherit",
105
+ flexShrink,
106
+ flexGrow,
107
+ position,
108
+ top,
109
+ left,
110
+ id
111
+ } = _b, props = __objRest(_b, [
112
+ "children",
113
+ "items",
114
+ "justify",
115
+ "grow",
116
+ "padding",
117
+ "paddingX",
118
+ "horizontal",
119
+ "horizontalMobile",
120
+ "elevation",
121
+ "rounded",
122
+ "centered",
123
+ "width",
124
+ "maxWidth",
125
+ "minWidth",
126
+ "height",
127
+ "maxHeight",
128
+ "borderColor",
129
+ "backgroundColor",
130
+ "sizing",
131
+ "overflowY",
132
+ "overflowX",
133
+ "flexShrink",
134
+ "flexGrow",
135
+ "position",
136
+ "top",
137
+ "left",
138
+ "id"
139
+ ]);
81
140
  const flexClassNames = useFlexClassNames({ items, justify, grow });
82
141
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
83
142
  "div",
84
- {
143
+ __spreadProps(__spreadValues({
144
+ id
145
+ }, props), {
85
146
  style: {
86
147
  height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
87
148
  maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
@@ -129,7 +190,7 @@ var Stack = ({
129
190
  rounded && "rounded"
130
191
  ),
131
192
  children
132
- }
193
+ })
133
194
  );
134
195
  };
135
196
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Stack
3
- } from "../chunk-U42SKNR6.js";
3
+ } from "../chunk-57WRM337.js";
4
4
  import "../chunk-ORMEWXMH.js";
5
5
  export {
6
6
  Stack
@@ -200,18 +200,21 @@ var Label = (_a) => {
200
200
  padded,
201
201
  className,
202
202
  color,
203
- align
203
+ align,
204
+ id
204
205
  } = _b, props = __objRest(_b, [
205
206
  "as",
206
207
  "padded",
207
208
  "className",
208
209
  "color",
209
- "align"
210
+ "align",
211
+ "id"
210
212
  ]);
211
213
  const Element = as;
212
214
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
213
215
  Element,
214
216
  __spreadProps(__spreadValues({
217
+ id,
215
218
  className: (0, import_clsx2.default)(
216
219
  typography.label,
217
220
  align === "left" && "text-left",
@@ -236,11 +239,13 @@ var StatusPill = (_a) => {
236
239
  var _b = _a, {
237
240
  children,
238
241
  state = "in-progress",
239
- intent = "neutral"
242
+ intent = "neutral",
243
+ id
240
244
  } = _b, props = __objRest(_b, [
241
245
  "children",
242
246
  "state",
243
- "intent"
247
+ "intent",
248
+ "id"
244
249
  ]);
245
250
  const textColor = (0, import_clsx3.default)(
246
251
  state === "completed" && ["neutral", "critical"].includes(intent) ? "text-text-on-action-primary-normal" : "text-neutral-500"
@@ -257,7 +262,9 @@ var StatusPill = (_a) => {
257
262
  });
258
263
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
259
264
  "div",
260
- __spreadProps(__spreadValues({}, props), {
265
+ __spreadProps(__spreadValues({
266
+ id
267
+ }, props), {
261
268
  className: (0, import_clsx3.default)(
262
269
  "rounded flex items-center",
263
270
  textColor,
@@ -265,7 +272,7 @@ var StatusPill = (_a) => {
265
272
  paddingXUsingLayoutGroupGap,
266
273
  componentPaddingYUsingComponentGap
267
274
  ),
268
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Label, { children })
275
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Label, { id: id ? `${id}-label` : void 0, children })
269
276
  })
270
277
  );
271
278
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Label
3
- } from "../chunk-S7R37IUP.js";
3
+ } from "../chunk-S5K22XTH.js";
4
4
  import {
5
5
  componentPaddingYUsingComponentGap,
6
6
  paddingXUsingLayoutGroupGap
@@ -18,11 +18,13 @@ var StatusPill = (_a) => {
18
18
  var _b = _a, {
19
19
  children,
20
20
  state = "in-progress",
21
- intent = "neutral"
21
+ intent = "neutral",
22
+ id
22
23
  } = _b, props = __objRest(_b, [
23
24
  "children",
24
25
  "state",
25
- "intent"
26
+ "intent",
27
+ "id"
26
28
  ]);
27
29
  const textColor = clsx(
28
30
  state === "completed" && ["neutral", "critical"].includes(intent) ? "text-text-on-action-primary-normal" : "text-neutral-500"
@@ -39,7 +41,9 @@ var StatusPill = (_a) => {
39
41
  });
40
42
  return /* @__PURE__ */ jsx(
41
43
  "div",
42
- __spreadProps(__spreadValues({}, props), {
44
+ __spreadProps(__spreadValues({
45
+ id
46
+ }, props), {
43
47
  className: clsx(
44
48
  "rounded flex items-center",
45
49
  textColor,
@@ -47,7 +51,7 @@ var StatusPill = (_a) => {
47
51
  paddingXUsingLayoutGroupGap,
48
52
  componentPaddingYUsingComponentGap
49
53
  ),
50
- children: /* @__PURE__ */ jsx(Label, { children })
54
+ children: /* @__PURE__ */ jsx(Label, { id: id ? `${id}-label` : void 0, children })
51
55
  })
52
56
  );
53
57
  };