@cloudoperators/juno-ui-components 2.37.0 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/build/index.js +71 -59
  2. package/build/src/components/AppShell/AppShell.component.d.ts +6 -6
  3. package/build/src/components/AppShell/AppShell.component.d.ts.map +1 -1
  4. package/build/src/components/Checkbox/Checkbox.component.d.ts +5 -5
  5. package/build/src/components/Checkbox/Checkbox.component.d.ts.map +1 -1
  6. package/build/src/components/CheckboxGroup/CheckboxGroup.component.d.ts +7 -8
  7. package/build/src/components/CheckboxGroup/CheckboxGroup.component.d.ts.map +1 -1
  8. package/build/src/components/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
  9. package/build/src/components/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
  10. package/build/src/components/ComboBox/ComboBox.component.d.ts +7 -8
  11. package/build/src/components/ComboBox/ComboBox.component.d.ts.map +1 -1
  12. package/build/src/components/ContentContainer/ContentContainer.component.d.ts +3 -3
  13. package/build/src/components/ContentContainer/ContentContainer.component.d.ts.map +1 -1
  14. package/build/src/components/ContentHeading/ContentHeading.component.d.ts +3 -3
  15. package/build/src/components/ContentHeading/ContentHeading.component.d.ts.map +1 -1
  16. package/build/src/components/DataGridToolbar/DataGridToolbar.component.d.ts +1 -1
  17. package/build/src/components/DataGridToolbar/DataGridToolbar.component.d.ts.map +1 -1
  18. package/build/src/components/DataGridToolbar/DataGridToolbar.stories.d.ts +5 -2
  19. package/build/src/components/DataGridToolbar/DataGridToolbar.stories.d.ts.map +1 -1
  20. package/build/src/components/DateTimePicker/DateTimePicker.component.d.ts +21 -40
  21. package/build/src/components/DateTimePicker/DateTimePicker.component.d.ts.map +1 -1
  22. package/build/src/components/FormHint/FormHint.component.d.ts +1 -1
  23. package/build/src/components/FormHint/FormHint.component.d.ts.map +1 -1
  24. package/build/src/components/Icon/Icon.component.d.ts +1 -1
  25. package/build/src/components/Icon/Icon.component.d.ts.map +1 -1
  26. package/build/src/components/JsonViewer/JsonViewer.component.d.ts +2 -0
  27. package/build/src/components/JsonViewer/JsonViewer.component.d.ts.map +1 -1
  28. package/build/src/components/MainTabs/MainTabs.component.d.ts +2 -6
  29. package/build/src/components/MainTabs/MainTabs.component.d.ts.map +1 -1
  30. package/build/src/components/MainTabs/MainTabs.stories.d.ts +5 -0
  31. package/build/src/components/MainTabs/MainTabs.stories.d.ts.map +1 -1
  32. package/build/src/components/Modal/Modal.component.d.ts +3 -4
  33. package/build/src/components/Modal/Modal.component.d.ts.map +1 -1
  34. package/build/src/components/Modal/Modal.stories.d.ts +5 -0
  35. package/build/src/components/Modal/Modal.stories.d.ts.map +1 -1
  36. package/build/src/components/ModalFooter/ModalFooter.component.d.ts +2 -2
  37. package/build/src/components/NativeSelect/NativeSelect.component.d.ts +3 -3
  38. package/build/src/components/NativeSelect/NativeSelect.component.d.ts.map +1 -1
  39. package/build/src/components/Navigation/Navigation.component.d.ts +7 -9
  40. package/build/src/components/Navigation/Navigation.component.d.ts.map +1 -1
  41. package/build/src/components/Navigation/Navigation.stories.d.ts +6 -4
  42. package/build/src/components/Navigation/Navigation.stories.d.ts.map +1 -1
  43. package/build/src/components/NavigationItem/NavigationItem.component.d.ts +2 -2
  44. package/build/src/components/NavigationItem/NavigationItem.component.d.ts.map +1 -1
  45. package/build/src/components/PageHeader/PageHeader.component.d.ts +5 -5
  46. package/build/src/components/PageHeader/PageHeader.component.d.ts.map +1 -1
  47. package/build/src/components/PageHeader/PageHeader.stories.d.ts.map +1 -1
  48. package/build/src/components/Pagination/Pagination.stories.d.ts.map +1 -1
  49. package/build/src/components/Panel/Panel.component.d.ts +2 -2
  50. package/build/src/components/Panel/Panel.component.d.ts.map +1 -1
  51. package/build/src/components/PanelBody/PanelBody.component.d.ts +2 -2
  52. package/build/src/components/PanelBody/PanelBody.component.d.ts.map +1 -1
  53. package/build/src/components/Pill/Pill.component.d.ts +2 -2
  54. package/build/src/components/Pill/Pill.component.d.ts.map +1 -1
  55. package/build/src/components/Pill/Pill.stories.d.ts +16 -1
  56. package/build/src/components/Pill/Pill.stories.d.ts.map +1 -1
  57. package/build/src/components/PopupMenu/PopupMenu.component.d.ts +8 -8
  58. package/build/src/components/PopupMenu/PopupMenu.component.d.ts.map +1 -1
  59. package/build/src/components/PopupMenu/PopupMenu.stories.d.ts.map +1 -1
  60. package/build/src/components/Radio/Radio.component.d.ts +5 -7
  61. package/build/src/components/Radio/Radio.component.d.ts.map +1 -1
  62. package/build/src/components/RadioGroup/RadioGroup.component.d.ts +6 -6
  63. package/build/src/components/RadioGroup/RadioGroup.component.d.ts.map +1 -1
  64. package/build/src/components/RadioGroup/RadioGroup.stories.d.ts +7 -0
  65. package/build/src/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
  66. package/build/src/components/SearchInput/SearchInput.component.d.ts +6 -6
  67. package/build/src/components/SearchInput/SearchInput.component.d.ts.map +1 -1
  68. package/build/src/components/SecretText/SecretText.component.d.ts +6 -8
  69. package/build/src/components/SecretText/SecretText.component.d.ts.map +1 -1
  70. package/build/src/components/Select/Select.component.d.ts +8 -8
  71. package/build/src/components/Select/Select.component.d.ts.map +1 -1
  72. package/build/src/components/SelectOption/SelectOption.stories.d.ts +8 -1
  73. package/build/src/components/SelectOption/SelectOption.stories.d.ts.map +1 -1
  74. package/build/src/components/SideNavigation/SideNavigation.component.d.ts +4 -6
  75. package/build/src/components/SideNavigation/SideNavigation.component.d.ts.map +1 -1
  76. package/build/src/components/SideNavigationItem/SideNavigationItem.component.d.ts +1 -1
  77. package/build/src/components/StyleProvider/StyleProvider.component.d.ts +2 -2
  78. package/build/src/components/StyleProvider/StyleProvider.component.d.ts.map +1 -1
  79. package/build/src/components/Switch/Switch.component.d.ts +4 -4
  80. package/build/src/components/Switch/Switch.component.d.ts.map +1 -1
  81. package/build/src/components/TabList/TabList.component.d.ts +1 -2
  82. package/build/src/components/TabList/TabList.component.d.ts.map +1 -1
  83. package/build/src/components/TabList/TabList.stories.d.ts +6 -1
  84. package/build/src/components/TabList/TabList.stories.d.ts.map +1 -1
  85. package/build/src/components/TabNavigation/TabNavigation.component.d.ts +4 -6
  86. package/build/src/components/TabNavigation/TabNavigation.component.d.ts.map +1 -1
  87. package/build/src/components/TabNavigationItem/TabNavigationItem.component.d.ts +1 -1
  88. package/build/src/components/Tabs/Tabs.component.d.ts +2 -6
  89. package/build/src/components/Tabs/Tabs.component.d.ts.map +1 -1
  90. package/build/src/components/Tabs/Tabs.stories.d.ts +5 -0
  91. package/build/src/components/Tabs/Tabs.stories.d.ts.map +1 -1
  92. package/build/src/components/TextInput/TextInput.component.d.ts +6 -6
  93. package/build/src/components/TextInput/TextInput.component.d.ts.map +1 -1
  94. package/build/src/components/Textarea/Textarea.component.d.ts +6 -6
  95. package/build/src/components/Textarea/Textarea.component.d.ts.map +1 -1
  96. package/build/src/components/ThemeToggle/ThemeToggle.component.d.ts +1 -1
  97. package/build/src/components/ThemeToggle/ThemeToggle.component.d.ts.map +1 -1
  98. package/build/src/components/Toast/Toast.component.d.ts +1 -1
  99. package/build/src/components/Toast/Toast.component.d.ts.map +1 -1
  100. package/build/src/components/TopNavigation/TopNavigation.component.d.ts +4 -6
  101. package/build/src/components/TopNavigation/TopNavigation.component.d.ts.map +1 -1
  102. package/build/src/components/TopNavigationItem/TopNavigationItem.component.d.ts +1 -1
  103. package/package.json +1 -1
package/build/index.js CHANGED
@@ -2169,7 +2169,7 @@ const Qd = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
2169
2169
  }
2170
2170
  );
2171
2171
  }
2172
- }, je = ye(function({ icon: n = null, color: e = "", size: r = 24, title: o = "", className: i = "", href: a = "", disabled: l = !1, onClick: c, ...A }, u) {
2172
+ }, je = ye(function({ icon: n, color: e = "", size: r = 24, title: o = "", className: i = "", href: a = "", disabled: l = !1, onClick: c, ...A }, u) {
2173
2173
  const d = Qd({
2174
2174
  icon: n || void 0,
2175
2175
  color: e,
@@ -2553,12 +2553,12 @@ const Qd = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
2553
2553
  }, zt = le.forwardRef(
2554
2554
  ({
2555
2555
  label: t,
2556
- title: n = null,
2556
+ title: n,
2557
2557
  variant: e,
2558
2558
  size: r = "default",
2559
- disabled: o = null,
2560
- href: i = null,
2561
- icon: a = null,
2559
+ disabled: o,
2560
+ href: i,
2561
+ icon: a,
2562
2562
  className: l = "",
2563
2563
  onClick: c,
2564
2564
  children: A,
@@ -2658,7 +2658,7 @@ const ha = ({ children: t, className: n = "", ...e }) => /* @__PURE__ */ s.jsx(J
2658
2658
  `, Rt = le.forwardRef(
2659
2659
  ({
2660
2660
  text: t = "",
2661
- htmlFor: n = void 0,
2661
+ htmlFor: n,
2662
2662
  required: e = !1,
2663
2663
  className: r = "",
2664
2664
  disabled: o = !1,
@@ -2765,7 +2765,13 @@ const mg = `
2765
2765
  valid: d = !1,
2766
2766
  ...p
2767
2767
  }) => {
2768
- const h = (B) => !(typeof B == "string" && B.trim().length === 0), y = () => "juno-checkboxgroup-" + lt(), w = c || y(), x = i || y(), [k, v] = X(g), [E, R] = X(!1), [S, K] = X(!1), $ = we(() => d || !!(m && m.length), [d, m]), O = we(() => a || !!(r && r.length), [a, r]);
2768
+ const h = (B) => !(typeof B == "string" && B.trim().length === 0), y = () => "juno-checkboxgroup-" + lt(), w = c || y(), x = i || y(), [k, v] = X(g), [E, R] = X(!1), [S, K] = X(!1), $ = we(
2769
+ () => d || !!(m && h(m)),
2770
+ [d, m]
2771
+ ), O = we(
2772
+ () => a || !!(r && h(r)),
2773
+ [a, r]
2774
+ );
2769
2775
  G(() => {
2770
2776
  g && v(g);
2771
2777
  }, [g]), G(() => {
@@ -2903,7 +2909,7 @@ const mg = `
2903
2909
  required: m = !1,
2904
2910
  successtext: d = "",
2905
2911
  valid: p = !1,
2906
- value: h,
2912
+ value: h = "",
2907
2913
  ...y
2908
2914
  }) => {
2909
2915
  const w = (ce) => !(typeof ce == "string" && ce.trim().length === 0), x = () => "juno-checkbox-" + lt(), k = qe(_s), {
@@ -8994,7 +9000,7 @@ const Mt = Object.assign(oA, { Reference: ph, Content: mh, Arrow: hh, Virtual: h
8994
9000
  children: t,
8995
9001
  disabled: n = !1,
8996
9002
  value: e = "",
8997
- label: r,
9003
+ label: r = "",
8998
9004
  className: o = "",
8999
9005
  ...i
9000
9006
  }) => {
@@ -11002,8 +11008,8 @@ const wb = `
11002
11008
  flexShrink: "0",
11003
11009
  flexBasis: "0"
11004
11010
  }, kb = (t) => !t || t < 1 || t > 12 ? El[0] : El[t], xE = ({
11005
- width: t = null,
11006
- cols: n = null,
11011
+ width: t,
11012
+ cols: n,
11007
11013
  auto: e = !1,
11008
11014
  className: r = "",
11009
11015
  children: o,
@@ -12423,7 +12429,7 @@ const BE = ({
12423
12429
  }, I1 = (t) => {
12424
12430
  t.current !== null && (clearTimeout(t.current), t.current = null);
12425
12431
  }, IE = ({
12426
- title: t = null,
12432
+ title: t,
12427
12433
  variant: n = "info",
12428
12434
  dismissible: e = !1,
12429
12435
  autoDismiss: r = !1,
@@ -13687,7 +13693,7 @@ const a2 = /* @__PURE__ */ ts(o2), i2 = `
13687
13693
  `, V2 = ({
13688
13694
  value: t = "",
13689
13695
  id: n = "",
13690
- name: e = void 0,
13696
+ name: e,
13691
13697
  placeholder: r = "",
13692
13698
  disabled: o = !1,
13693
13699
  readOnly: i = !1,
@@ -13700,11 +13706,11 @@ const a2 = /* @__PURE__ */ ts(o2), i2 = `
13700
13706
  helptext: m = "",
13701
13707
  successtext: d = "",
13702
13708
  errortext: p = "",
13703
- onChange: h = void 0,
13704
- onFocus: y = void 0,
13705
- onBlur: w = void 0,
13706
- type: x = void 0,
13707
- label: k = void 0,
13709
+ onChange: h,
13710
+ onFocus: y,
13711
+ onBlur: w,
13712
+ type: x,
13713
+ label: k,
13708
13714
  width: v = "full",
13709
13715
  wrapperClassName: E = "",
13710
13716
  ...R
@@ -14269,8 +14275,8 @@ const a2 = /* @__PURE__ */ ts(o2), i2 = `
14269
14275
  pillValue: r = "",
14270
14276
  pillValueLabel: o = "",
14271
14277
  closeable: i = !1,
14272
- onClick: a = void 0,
14273
- onClose: l = void 0,
14278
+ onClick: a,
14279
+ onClose: l,
14274
14280
  className: c = "",
14275
14281
  ...A
14276
14282
  }) => {
@@ -14281,10 +14287,10 @@ const a2 = /* @__PURE__ */ ts(o2), i2 = `
14281
14287
  };
14282
14288
  return /* @__PURE__ */ s.jsxs("div", { className: `juno-pill ${ow(!!a)} ${c}`, ...A, children: [
14283
14289
  !r && !o ? /* @__PURE__ */ s.jsx("span", { className: `${Jl(!1)}`, children: "set pillValue or pillValueLabel" }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
14284
- (e || n) && /* @__PURE__ */ s.jsx("span", { className: `pill-key ${aw(!!a)}`, onClick: (m) => g(m), children: e || n }),
14285
- /* @__PURE__ */ s.jsx("span", { className: `pill-value ${Jl(!!a)}`, onClick: (m) => g(m), children: o || r })
14290
+ (e || n) && /* @__PURE__ */ s.jsx("span", { className: `pill-key ${aw(!!a)}`, onClick: g, children: e || n }),
14291
+ /* @__PURE__ */ s.jsx("span", { className: `pill-value ${Jl(!!a)}`, onClick: g, children: o || r })
14286
14292
  ] }),
14287
- i && /* @__PURE__ */ s.jsx(je, { icon: "close", size: 18, onClick: (m) => u(m) })
14293
+ i && /* @__PURE__ */ s.jsx(je, { icon: "close", size: 18, onClick: u })
14288
14294
  ] });
14289
14295
  }, iw = `
14290
14296
  hover:jn-text-theme-accent
@@ -14349,13 +14355,13 @@ const a2 = /* @__PURE__ */ ts(o2), i2 = `
14349
14355
  );
14350
14356
  return t;
14351
14357
  }, Sn = ({
14352
- children: t = null,
14358
+ children: t,
14353
14359
  className: n = "",
14354
14360
  disabled: e = !1,
14355
14361
  icon: r = "moreVert",
14356
14362
  menuSize: o = "normal",
14357
- onClose: i = void 0,
14358
- onOpen: a = void 0,
14363
+ onClose: i,
14364
+ onOpen: a,
14359
14365
  ...l
14360
14366
  }) => {
14361
14367
  const [c, A] = X(!1), u = de(c);
@@ -14386,7 +14392,7 @@ const a2 = /* @__PURE__ */ ts(o2), i2 = `
14386
14392
  }, Va = ({
14387
14393
  as: t = "button",
14388
14394
  disabled: n = !1,
14389
- children: e = null,
14395
+ children: e,
14390
14396
  className: r = "",
14391
14397
  ...o
14392
14398
  }) => /* @__PURE__ */ s.jsx(
@@ -14398,7 +14404,7 @@ const a2 = /* @__PURE__ */ ts(o2), i2 = `
14398
14404
  ...o,
14399
14405
  children: e
14400
14406
  }
14401
- ), BA = ({ children: t = null, className: n = "", ...e }) => {
14407
+ ), BA = ({ children: t, className: n = "", ...e }) => {
14402
14408
  const { menuSize: r } = vA();
14403
14409
  return /* @__PURE__ */ s.jsx(
14404
14410
  rn.Items,
@@ -14410,11 +14416,11 @@ const a2 = /* @__PURE__ */ ts(o2), i2 = `
14410
14416
  );
14411
14417
  }, bw = ({
14412
14418
  as: t = "div",
14413
- children: n = null,
14419
+ children: n,
14414
14420
  className: e = "",
14415
14421
  disabled: r = !1,
14416
14422
  href: o,
14417
- icon: i = null,
14423
+ icon: i,
14418
14424
  label: a = "",
14419
14425
  rel: l,
14420
14426
  target: c,
@@ -14435,8 +14441,8 @@ const a2 = /* @__PURE__ */ ts(o2), i2 = `
14435
14441
  ] })
14436
14442
  }
14437
14443
  );
14438
- }, ww = ({ children: t = null, className: n = "", ...e }) => /* @__PURE__ */ s.jsx("section", { className: `juno-popupmenu-section ${fw} ${n}`, ...e, children: t }), Cw = ({
14439
- children: t = null,
14444
+ }, ww = ({ children: t, className: n = "", ...e }) => /* @__PURE__ */ s.jsx("section", { className: `juno-popupmenu-section ${fw} ${n}`, ...e, children: t }), Cw = ({
14445
+ children: t,
14440
14446
  label: n = "",
14441
14447
  className: e = "",
14442
14448
  ...r
@@ -14484,7 +14490,13 @@ const xw = `
14484
14490
  valid: d = !1,
14485
14491
  ...p
14486
14492
  }) => {
14487
- const h = (B) => !(typeof B == "string" && B.trim().length === 0), y = () => "juno-radiogroup-" + lt(), w = c || y(), x = i || y(), [k, v] = X(g), [E, R] = X(!1), [S, K] = X(!1), $ = we(() => d || !!(m && m.length), [d, m]), O = we(() => a || !!(r && r.length), [a, r]);
14493
+ const h = (B) => !(typeof B == "string" && B.trim().length === 0), y = () => "juno-radiogroup-" + lt(), w = c || y(), x = i || y(), [k, v] = X(g), [E, R] = X(!1), [S, K] = X(!1), $ = we(
14494
+ () => d || !!(m && h(m)),
14495
+ [d, m]
14496
+ ), O = we(
14497
+ () => a || !!(r && h(r)),
14498
+ [a, r]
14499
+ );
14488
14500
  G(() => {
14489
14501
  R($);
14490
14502
  }, [$]), G(() => {
@@ -14603,16 +14615,16 @@ const xw = `
14603
14615
  disabled: e = !1,
14604
14616
  errortext: r = "",
14605
14617
  helptext: o = "",
14606
- id: i = void 0,
14618
+ id: i,
14607
14619
  invalid: a = !1,
14608
- label: l = void 0,
14609
- name: c = void 0,
14610
- onChange: A = void 0,
14611
- onClick: u = void 0,
14620
+ label: l,
14621
+ name: c,
14622
+ onChange: A,
14623
+ onClick: u,
14612
14624
  required: g = !1,
14613
14625
  successtext: m = "",
14614
14626
  valid: d = !1,
14615
- value: p = void 0,
14627
+ value: p = "",
14616
14628
  ...h
14617
14629
  }) => {
14618
14630
  const y = (_) => !(typeof _ == "string" && _.trim().length === 0), w = () => "juno-radio-" + lt(), x = qe(IA), {
@@ -14787,10 +14799,10 @@ const xw = `
14787
14799
  helptext: m = "",
14788
14800
  successtext: d = "",
14789
14801
  errortext: p = "",
14790
- onChange: h = void 0,
14791
- onFocus: y = void 0,
14792
- onBlur: w = void 0,
14793
- label: x = void 0,
14802
+ onChange: h,
14803
+ onFocus: y,
14804
+ onBlur: w,
14805
+ label: x,
14794
14806
  width: k = "full",
14795
14807
  wrapperClassName: v = "",
14796
14808
  ...E
@@ -14932,18 +14944,18 @@ const xw = `
14932
14944
  disabled: l = !1,
14933
14945
  disablePaste: c = !1,
14934
14946
  disableToggle: A = !1,
14935
- errortext: u = void 0,
14936
- helptext: g = void 0,
14947
+ errortext: u,
14948
+ helptext: g,
14937
14949
  id: m = "",
14938
- onBlur: d = void 0,
14939
- onChange: p = void 0,
14940
- onClear: h = void 0,
14941
- onCopy: y = void 0,
14942
- onFocus: w = void 0,
14943
- onHide: x = void 0,
14944
- onPaste: k = void 0,
14945
- onReveal: v = void 0,
14946
- onToggle: E = void 0,
14950
+ onBlur: d,
14951
+ onChange: p,
14952
+ onClear: h,
14953
+ onCopy: y,
14954
+ onFocus: w,
14955
+ onHide: x,
14956
+ onPaste: k,
14957
+ onReveal: v,
14958
+ onToggle: E,
14947
14959
  label: R,
14948
14960
  name: S,
14949
14961
  paste: K = !0,
@@ -14951,7 +14963,7 @@ const xw = `
14951
14963
  readOnly: O = !1,
14952
14964
  required: D = !1,
14953
14965
  reveal: Y = !1,
14954
- successtext: B = void 0,
14966
+ successtext: B,
14955
14967
  toggle: U = !0,
14956
14968
  valid: M = !1,
14957
14969
  invalid: L,
@@ -15392,7 +15404,7 @@ const kA = Pe(void 0), xi = ({
15392
15404
  }, hC = (t, n, e) => er(t) ? /* @__PURE__ */ s.jsx(Ge, { text: t, variant: "error", className: aa }) : er(n) ? /* @__PURE__ */ s.jsx(Ge, { text: n, variant: "success", className: aa }) : er(e) ? /* @__PURE__ */ s.jsx(Ge, { text: e, className: aa }) : null, KE = ({
15393
15405
  name: t = "",
15394
15406
  id: n = "",
15395
- label: e = void 0,
15407
+ label: e,
15396
15408
  required: r = !1,
15397
15409
  size: o = "default",
15398
15410
  on: i = !1,
@@ -15403,8 +15415,8 @@ const kA = Pe(void 0), xi = ({
15403
15415
  errortext: u = "",
15404
15416
  successtext: g = "",
15405
15417
  className: m = "",
15406
- onChange: d = void 0,
15407
- onClick: p = void 0,
15418
+ onChange: d,
15419
+ onClick: p,
15408
15420
  wrapperClassName: h = "",
15409
15421
  ...y
15410
15422
  }) => {
@@ -16673,7 +16685,7 @@ const dy = ({
16673
16685
  href: i = "",
16674
16686
  icon: a,
16675
16687
  label: l = "",
16676
- onClick: c = void 0,
16688
+ onClick: c,
16677
16689
  value: A = "",
16678
16690
  ...u
16679
16691
  }) => /* @__PURE__ */ s.jsx(
@@ -1,19 +1,19 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  /**
3
3
  * Body of the app. Treat this like the body tag of an html page.
4
4
  */
5
5
  export declare const AppShell: React.FC<AppShellProps>;
6
6
  export interface AppShellProps extends React.HTMLAttributes<HTMLElement> {
7
7
  /** The main content of the app. */
8
- children?: React.ReactNode;
8
+ children?: ReactNode;
9
9
  /** Pass either the `<PageHeader>` component or if you don't need to add any content to the page header pass a string to be used as the app name in the standard page header. */
10
- pageHeader?: React.ReactNode;
10
+ pageHeader?: ReactNode;
11
11
  /** Optional. If specified pass a `<PageFooter>` component. If undefined will use default PageFooter */
12
- pageFooter?: React.ReactNode;
12
+ pageFooter?: ReactNode;
13
13
  /** Optional. If specified expects a `<TopNavigation>` component. If undefined no top navigation is rendered. */
14
- topNavigation?: React.ReactNode;
14
+ topNavigation?: ReactNode;
15
15
  /** Optional. If specified expects a `<SideNavigation>` component. If undefined no side navigation is rendered. */
16
- sideNavigation?: React.ReactNode;
16
+ sideNavigation?: ReactNode;
17
17
  /** Optional: Defaults to false. Set embedded to true if app is to be rendered embedded in another app/page.
18
18
  * In this case only the content area and children are rendered, a TopNavigation if passed, but no header/footer or remaining layout components */
19
19
  embedded?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.component.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShell/AppShell.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuD5C,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,mCAAmC;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,gLAAgL;IAChL,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,uGAAuG;IACvG,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC5B,gHAAgH;IAChH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC/B,kHAAkH;IAClH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAChC;sJACkJ;IAClJ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2YAA2Y;IAC3Y,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"AppShell.component.d.ts","sourceRoot":"","sources":["../../../../src/components/AppShell/AppShell.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASxC;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuD5C,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtE,mCAAmC;IACnC,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,gLAAgL;IAChL,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,uGAAuG;IACvG,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,gHAAgH;IAChH,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,kHAAkH;IAClH,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B;sJACkJ;IAClJ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2YAA2Y;IAC3Y,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  export declare const Checkbox: React.FC<CheckboxProps>;
3
3
  export interface CheckboxProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  /** Whether the Checkbox is checked */
@@ -8,9 +8,9 @@ export interface CheckboxProps extends React.HTMLAttributes<HTMLDivElement> {
8
8
  /** Whether the Checkbox is disabled */
9
9
  disabled?: boolean;
10
10
  /** A text to render when the Checkbox has an error or could not be validated */
11
- errortext?: React.ReactNode | string;
11
+ errortext?: ReactNode;
12
12
  /** A helptext to render to explain meaning and significance of the Checkbox */
13
- helptext?: React.ReactNode | string;
13
+ helptext?: ReactNode;
14
14
  /** The id of the Radio. An id will be automatically generated if not passed. */
15
15
  id?: string;
16
16
  /** Whether the Checkbox is indeterminate. Applicable ONLY if the Checkbox represents multiple child Checkboxes with non--identical checked state. */
@@ -24,11 +24,11 @@ export interface CheckboxProps extends React.HTMLAttributes<HTMLDivElement> {
24
24
  /** handler to be executed when the Checkbox changes. */
25
25
  onChange?: React.ChangeEventHandler<HTMLInputElement>;
26
26
  /** handler to be executed when the Checkbox is clicked. */
27
- onClick?: React.MouseEventHandler<HTMLElement>;
27
+ onClick?: React.MouseEventHandler<HTMLInputElement>;
28
28
  /** Whether the Checkbox is required */
29
29
  required?: boolean;
30
30
  /** A text to render when the Checkbox was successfully validated */
31
- successtext?: React.ReactNode | string;
31
+ successtext?: ReactNode;
32
32
  /** Whether the Checkbox was successfully validated */
33
33
  valid?: boolean;
34
34
  /** The value of the Checkbox */
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0D,MAAM,OAAO,CAAA;AAwF9E,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+N5C,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gFAAgF;IAChF,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IACpC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IACnC,gFAAgF;IAChF,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,qJAAqJ;IACrJ,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wDAAwD;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACrD,2DAA2D;IAC3D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oEAAoE;IACpE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IACtC,sDAAsD;IACtD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
1
+ {"version":3,"file":"Checkbox.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAmD,SAAS,EAAE,MAAM,OAAO,CAAA;AAwFzF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+N5C,CAAA;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gFAAgF;IAChF,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,gFAAgF;IAChF,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,qJAAqJ;IACrJ,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wDAAwD;IACxD,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACrD,2DAA2D;IAC3D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IACnD,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oEAAoE;IACpE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,sDAAsD;IACtD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
@@ -1,26 +1,25 @@
1
- import { default as React } from 'react';
2
- type EventUpdateHandler = (_value: string | undefined) => void;
1
+ import { default as React, ReactNode } from 'react';
2
+ type EventUpdateHandler = (value: string) => void;
3
3
  export interface CheckboxGroupContextProps {
4
- selectedOptions?: CheckboxValue[];
4
+ selectedOptions?: string[];
5
5
  handleCheckboxChange?: EventUpdateHandler;
6
6
  name?: string;
7
7
  updateSelectedValue?: EventUpdateHandler;
8
8
  disabled?: boolean;
9
9
  }
10
10
  export declare const CheckboxGroupContext: React.Context<CheckboxGroupContextProps | undefined>;
11
- export type CheckboxValue = string | undefined;
12
11
  export declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
13
12
  export interface CheckboxGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
14
13
  /** The Checkbox children of the CheckboxGroup */
15
- children?: React.ReactNode;
14
+ children?: ReactNode;
16
15
  /** Pass a custom className */
17
16
  className?: string;
18
17
  /** Whether all Checkboxes in the group are disabled */
19
18
  disabled?: boolean;
20
19
  /** Text to display in case validation failed or there is an error. Will set the whole group to invalid when passed. */
21
- errortext?: string;
20
+ errortext?: ReactNode;
22
21
  /** A text to render to further explain meaning and significance of the group */
23
- helptext?: string;
22
+ helptext?: ReactNode;
24
23
  /** The id of the group. If not passed, a unique id will be created and used for the group as a whole. */
25
24
  id?: string;
26
25
  invalid?: boolean;
@@ -35,7 +34,7 @@ export interface CheckboxGroupProps extends Omit<React.HTMLAttributes<HTMLDivEle
35
34
  /** Array of values of individual selected options in the group */
36
35
  selected?: string[];
37
36
  /** Text to display in case validation is successful. When passed, will set the whole group to valid. */
38
- successtext?: string;
37
+ successtext?: ReactNode;
39
38
  /** Whether the CheckboxGroup was successfully validated */
40
39
  valid?: boolean;
41
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.component.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckboxGroup/CheckboxGroup.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6D,MAAM,OAAO,CAAA;AAqCjF,KAAK,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;AAE9D,MAAM,WAAW,yBAAyB;IACxC,eAAe,CAAC,EAAE,aAAa,EAAE,CAAA;IACjC,oBAAoB,CAAC,EAAE,kBAAkB,CAAA;IACzC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mBAAmB,CAAC,EAAE,kBAAkB,CAAA;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,oBAAoB,sDAAkE,CAAA;AAEnG,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,CAAA;AAE9C,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyHtD,CAAA;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAChG,iDAAiD;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uHAAuH;IACvH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,yGAAyG;IACzG,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0IAA0I;IAC1I,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,wGAAwG;IACxG,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB"}
1
+ {"version":3,"file":"CheckboxGroup.component.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckboxGroup/CheckboxGroup.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsD,SAAS,EAAE,MAAM,OAAO,CAAA;AAsC5F,KAAK,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CA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};
27
+ onChange: {
28
+ table: {
29
+ type: {
30
+ summary: string;
31
+ };
32
+ };
33
+ };
27
34
  };
28
35
  };
29
36
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckboxGroup/CheckboxGroup.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIlC,wBAyBC;AAED,UAAU,aAAa;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAOD,eAAO,MAAM,OAAO;;gCANqB,aAAa;;;;;;;;CAgBrD,CAAA;AAED,eAAO,MAAM,QAAQ;;gCAlBoB,aAAa;;;;;;;;;CA6BrD,CAAA;AAED,eAAO,MAAM,mBAAmB;;gCA/BS,aAAa;;;;;;;;CA0CrD,CAAA;AAED,eAAO,MAAM,SAAS;;gCA5CmB,aAAa;;;;;;;;;;CAwDrD,CAAA;AAED,eAAO,MAAM,QAAQ;;gCA1DoB,aAAa;;;;;;;;;;;CAuErD,CAAA;AAED,eAAO,MAAM,QAAQ;;gCAzEoB,aAAa;;;;;;;;;;CAqFrD,CAAA;AAED,eAAO,MAAM,kBAAkB;;gCAvFU,aAAa;;;;;;;;;;;CAoGrD,CAAA;AAED,eAAO,MAAM,YAAY;;gCAtGgB,aAAa;;;;;;;;;;;CAmHrD,CAAA;AAED,eAAO,MAAM,kBAAkB;;gCArHU,aAAa;;;;;;;;;;;CAsIrD,CAAA;AAED,eAAO,MAAM,eAAe;;gCAxIa,aAAa;;;;;;;;;;;CAqJrD,CAAA;AAED,eAAO,MAAM,oBAAoB;;gCAvJQ,aAAa;;;;;;;;;;;CAoKrD,CAAA;AAED,eAAO,MAAM,aAAa;;gCAtKe,aAAa;;;;;;;;;;;CAmLrD,CAAA"}
1
+ {"version":3,"file":"CheckboxGroup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckboxGroup/CheckboxGroup.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,SAAS,MAAM,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIlC,wBA8BC;AAED,UAAU,aAAa;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAOD,eAAO,MAAM,OAAO;;gCANqB,aAAa;;;;;;;;CAgBrD,CAAA;AAED,eAAO,MAAM,QAAQ;;gCAlBoB,aAAa;;;;;;;;;CA6BrD,CAAA;AAED,eAAO,MAAM,mBAAmB;;gCA/BS,aAAa;;;;;;;;CA0CrD,CAAA;AAED,eAAO,MAAM,SAAS;;gCA5CmB,aAAa;;;;;;;;;;CAwDrD,CAAA;AAED,eAAO,MAAM,QAAQ;;gCA1DoB,aAAa;;;;;;;;;;;CAuErD,CAAA;AAED,eAAO,MAAM,QAAQ;;gCAzEoB,aAAa;;;;;;;;;;CAqFrD,CAAA;AAED,eAAO,MAAM,kBAAkB;;gCAvFU,aAAa;;;;;;;;;;;CAoGrD,CAAA;AAED,eAAO,MAAM,YAAY;;gCAtGgB,aAAa;;;;;;;;;;;CAmHrD,CAAA;AAED,eAAO,MAAM,kBAAkB;;gCArHU,aAAa;;;;;;;;;;;CAsIrD,CAAA;AAED,eAAO,MAAM,eAAe;;gCAxIa,aAAa;;;;;;;;;;;CAqJrD,CAAA;AAED,eAAO,MAAM,oBAAoB;;gCAvJQ,aAAa;;;;;;;;;;;CAoKrD,CAAA;AAED,eAAO,MAAM,aAAa;;gCAtKe,aAAa;;;;;;;;;;;CAmLrD,CAAA"}
@@ -1,5 +1,5 @@
1
- import { default as React } from 'react';
2
- type AddOptionValueAndLabelFunction = (value: string, label: string | undefined, children: React.ReactNode) => void;
1
+ import { default as React, ReactNode } from 'react';
2
+ type AddOptionValueAndLabelFunction = (value: string, label: string, children: ReactNode) => void;
3
3
  export type ComboBoxContextType = {
4
4
  selectedValue?: string;
5
5
  truncateOptions: boolean;
@@ -8,12 +8,11 @@ export type ComboBoxContextType = {
8
8
  export declare const ComboBoxContext: React.Context<ComboBoxContextType | undefined>;
9
9
  export declare const ComboBox: React.FC<ComboBoxProps>;
10
10
  export type ComboBoxWidth = "full" | "auto";
11
- type OnChangeHandler = (value: string) => void;
12
11
  export interface ComboBoxProps extends Omit<React.HTMLAttributes<HTMLElement>, "onChange" | "onInput" | "children"> {
13
12
  /** The aria-label of the ComboBox. Defaults to the label if label was passed. */
14
13
  ariaLabel?: string;
15
14
  /** The children to Render. Use `ComboBox.Option` elements. */
16
- children?: React.ReactNode;
15
+ children?: ReactNode;
17
16
  /** A custom className. Will be passed to the internal text input element of the ComboBox */
18
17
  className?: string;
19
18
  /** Pass a defaultValue to use as an uncontrolled Component that will handle its state internally */
@@ -23,9 +22,9 @@ export interface ComboBoxProps extends Omit<React.HTMLAttributes<HTMLElement>, "
23
22
  /** Whether the ComboBox has an error. Note this refers to an internal error like failing to load options etc., to indicate failed validation use `invalid` instead. */
24
23
  error?: boolean;
25
24
  /** An errortext to display when the ComboBox failed validation or an internal error occurred. */
26
- errortext?: React.ReactNode;
25
+ errortext?: ReactNode;
27
26
  /** A helptext to render to explain meaning and significance of the ComboBox */
28
- helptext?: React.ReactNode;
27
+ helptext?: ReactNode;
29
28
  /** The Id of the ComboBox. Will be assigned to the text input part of the ComboBox. If not passed, an id will be auto-generated. */
30
29
  id?: string;
31
30
  /** Whether the ComboBox failed validation */
@@ -41,7 +40,7 @@ export interface ComboBoxProps extends Omit<React.HTMLAttributes<HTMLElement>, "
41
40
  /** A handler to execute when the ComboBox looses focus */
42
41
  onBlur?: React.FocusEventHandler<HTMLInputElement>;
43
42
  /** A handler to execute when the ComboBox' selected value changes */
44
- onChange?: OnChangeHandler;
43
+ onChange?: (value: string) => void;
45
44
  /** A handler to execute when the ComboBox input receives focus */
46
45
  onFocus?: React.FocusEventHandler<HTMLInputElement>;
47
46
  /** Handler to execute when the ComboBox text input value changes */
@@ -51,7 +50,7 @@ export interface ComboBoxProps extends Omit<React.HTMLAttributes<HTMLElement>, "
51
50
  /** Whether the ComboBox is required */
52
51
  required?: boolean;
53
52
  /** A text to display in case the ComboBox was successfully validated. Will set the ComboBox to `valid` when passed. */
54
- successtext?: React.ReactNode;
53
+ successtext?: ReactNode;
55
54
  /** Whether the option labels should be truncated in case they are longer/wider than the available space in an option or not. Default is FALSE. */
56
55
  truncateOptions?: boolean;
57
56
  /** Whether the ComboBox was successfully validated */
@@ -1 +1 @@
1
- {"version":3,"file":"ComboBox.component.d.ts","sourceRoot":"","sources":["../../../../src/components/ComboBox/ComboBox.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA6D,MAAM,OAAO,CAAA;AA8HjF,KAAK,8BAA8B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAA;AAEnH,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,sBAAsB,EAAE,8BAA8B,CAAA;CACvD,CAAA;AAED,eAAO,MAAM,eAAe,gDAA4D,CAAA;AASxF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwS5C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAA;AAG3C,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAC9C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IACjH,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC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ACf,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sUAAsU;IACtU,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,sEAAsE;IACtE,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,mLAAmL;IACnL,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
1
+ {"version":3,"file":"ComboBox.component.d.ts","sourceRoot":"","sources":["../../../../src/components/ComboBox/ComboBox.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAsD,SAAS,EAAE,MAAM,OAAO,CAAA;AA8H5F,KAAK,8BAA8B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,KAAK,IAAI,CAAA;AAEjG,MAAM,MAAM,mBAAmB,GAAG;IAChC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,OAAO,CAAA;IACxB,sBAAsB,EAAE,8BAA8B,CAAA;CACvD,CAAA;AAED,eAAO,MAAM,eAAe,gDAA4D,CAAA;AASxF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwS5C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAA;AAC3C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IACjH,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oGAAoG;IACpG,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uKAAuK;IACvK,KAAK,CAAC,EAAE,OAAO,CAAA;I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1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  export interface ContentContainerProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  /**
4
4
  * Additional CSS classes for custom styling.
@@ -7,7 +7,7 @@ export interface ContentContainerProps extends React.HTMLAttributes<HTMLDivEleme
7
7
  /**
8
8
  * Custom content to render within the container.
9
9
  */
10
- children?: React.ReactNode;
10
+ children?: ReactNode;
11
11
  }
12
12
  /**
13
13
  * ContentContainer serves as a wrapper for app content.
@@ -19,6 +19,6 @@ export declare const ContentContainer: React.FC<ContentContainerProps>;
19
19
  export interface ContentContainerProps extends React.HTMLAttributes<HTMLDivElement> {
20
20
  /** Add custom class name */
21
21
  className?: string;
22
- children?: React.ReactNode;
22
+ children?: ReactNode;
23
23
  }
24
24
  //# sourceMappingURL=ContentContainer.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentContainer.component.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentContainer/ContentContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAM5D,CAAA;AAED,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B"}
1
+ {"version":3,"file":"ContentContainer.component.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentContainer/ContentContainer.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWxC,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAM5D,CAAA;AAED,MAAM,WAAW,qBAAsB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACjF,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB"}
@@ -1,10 +1,10 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  export interface ContentHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
3
  /**
4
4
  * Custom content to render within the container heading.
5
5
  * Takes precedence over the heading prop.
6
6
  */
7
- children?: React.ReactNode;
7
+ children?: ReactNode;
8
8
  /**
9
9
  * Text for the heading. Used if children is not provided.
10
10
  * Children prop takes precedence.
@@ -23,7 +23,7 @@ export interface ContentHeadingProps extends React.HTMLAttributes<HTMLHeadingEle
23
23
  export declare const ContentHeading: React.FC<ContentHeadingProps>;
24
24
  export interface ContentHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
25
25
  /** Optionally render children. If children are present, heading will be ignored */
26
- children?: React.ReactNode;
26
+ children?: ReactNode;
27
27
  /** Text to use as a title */
28
28
  heading?: string;
29
29
  /** Add custom class name */
@@ -1 +1 @@
1
- {"version":3,"file":"ContentHeading.component.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentHeading/ContentHeading.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IACnF;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMxD,CAAA;AAED,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IACnF,mFAAmF;IACnF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"ContentHeading.component.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentHeading/ContentHeading.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASxC,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IACnF;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAMxD,CAAA;AAED,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IACnF,mFAAmF;IACnF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -3,7 +3,7 @@ import { default as React } from 'react';
3
3
  export declare const DataGridToolbar: React.FC<DataGridToolbarProps>;
4
4
  export interface DataGridToolbarProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  /** Pass an optional SearchInput component */
6
- search?: JSX.Element;
6
+ search?: React.ReactElement;
7
7
  /** Children to render in the DataGridToolbar */
8
8
  children?: React.ReactNode;
9
9
  /** Add a classname */
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridToolbar.component.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGridToolbar/DataGridToolbar.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,mOAAmO;AACnO,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAO1D,CAAA;AAED,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAChF,6CAA6C;IAC7C,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACpB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
1
+ {"version":3,"file":"DataGridToolbar.component.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGridToolbar/DataGridToolbar.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AAezB,mOAAmO;AACnO,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAO1D,CAAA;AAED,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAChF,6CAA6C;IAC7C,MAAM,CAAC,EAAE,KAAK,CAAC,YAAY,CAAA;IAC3B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
@@ -13,8 +13,11 @@ declare const _default: {
13
13
  };
14
14
  };
15
15
  search: {
16
- control: {
17
- type: string;
16
+ control: boolean;
17
+ table: {
18
+ type: {
19
+ summary: string;
20
+ };
18
21
  };
19
22
  };
20
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataGridToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGridToolbar/DataGridToolbar.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAmB,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;AAE/D,wBAcC;AAQD,eAAO,MAAM,OAAO;mBANI,oBAAoB;;;;;;;;;CAkB3C,CAAA"}
1
+ {"version":3,"file":"DataGridToolbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGridToolbar/DataGridToolbar.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAmB,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;;AAE/D,wBAiBC;AAQD,eAAO,MAAM,OAAO;mBANI,oBAAoB;;;;;;;;;CAkB3C,CAAA"}