@hortiview/shared-components 2.8.6 → 2.8.8

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 (133) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AlertBanner-DlgFtlZm.js → AlertBanner-D-NTP_6i.js} +3 -3
  3. package/dist/{BigLoadingSpinner-B_HFhx2F.js → BigLoadingSpinner-CCxsMWnc.js} +1 -1
  4. package/dist/{GenericCard-Cv8qaFLu.js → GenericCard-DOKyENNm.js} +3 -3
  5. package/dist/{ListAreaService-D9HRsvH0.js → ListAreaService-CI-s1Xx5.js} +5 -5
  6. package/dist/{OfflineView-Bw-sbsym.js → OfflineView-DHtzNLwt.js} +3 -3
  7. package/dist/_Map-BmafU0dj.js +113 -0
  8. package/dist/assets/FormSelect.css +1 -1
  9. package/dist/components/AlertBanner/AlertBanner.js +4 -4
  10. package/dist/components/AlertBanner/AlertBanner.test.js +1 -1
  11. package/dist/components/AlertBanner/LinkBanner.js +3 -3
  12. package/dist/components/BaseView/BaseView.js +2 -2
  13. package/dist/components/BasicHeading/BasicHeading.js +2 -2
  14. package/dist/components/BasicHeading/BasicHeading.test.js +1 -1
  15. package/dist/components/BlockView/BlockView.js +1 -1
  16. package/dist/components/ChipCard/ChipCard.js +499 -390
  17. package/dist/components/ContextMenu/ContextMenu.js +4 -4
  18. package/dist/components/DeleteModal/DeleteModal.js +5 -5
  19. package/dist/components/DetailContentWrapper/DetailContentWrapper.js +1 -1
  20. package/dist/components/Disclaimer/Disclaimer.js +3 -3
  21. package/dist/components/EmptyView/EmptyView.js +161 -125
  22. package/dist/components/Filter/Filter.js +11 -11
  23. package/dist/components/Filter/Filter.test.js +51 -35
  24. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +1 -1
  25. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +10 -10
  26. package/dist/components/FormComponents/FormNumber/CustomTextField.js +3 -3
  27. package/dist/components/FormComponents/FormRadio/FormRadio.js +1 -1
  28. package/dist/components/FormComponents/FormSelect/FormSelect.js +53 -53
  29. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +2 -2
  30. package/dist/components/FormComponents/FormSlider/FormSlider.js +540 -535
  31. package/dist/components/FormComponents/FormText/FormText.js +2 -2
  32. package/dist/components/FormComponents/FormToggle/FormToggle.js +4 -4
  33. package/dist/components/GenericTable/GenericTable.js +8246 -7153
  34. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -4
  35. package/dist/components/GenericTable/Mobile/GenericCard.test.js +1 -1
  36. package/dist/components/GenericTable/Mobile/GenericCardList.js +4 -4
  37. package/dist/components/HashTabView/HashTabView.js +552 -541
  38. package/dist/components/HeaderFilter/HeaderFilter.js +1 -1
  39. package/dist/components/Iconify/Iconify.js +2 -2
  40. package/dist/components/InfoCard/InfoCard.js +4 -4
  41. package/dist/components/InfoGroup/InfoGroup.js +3 -3
  42. package/dist/components/ListArea/ListArea.js +16 -16
  43. package/dist/components/ListArea/ListArea.test.js +20 -20
  44. package/dist/components/ListArea/ListAreaService.js +6 -6
  45. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  46. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +1 -1
  47. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +164 -178
  48. package/dist/components/Modal/Modal.js +305 -312
  49. package/dist/components/ModulePadding/ModulePadding.js +8 -8
  50. package/dist/components/OfflineView/OfflineView.js +4 -4
  51. package/dist/components/OfflineView/OfflineView.test.js +1 -1
  52. package/dist/components/OnboardingBanner/OnboardingBanner.js +13 -13
  53. package/dist/components/OverflowTooltip/OverflowTooltip.js +1 -1
  54. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +1 -1
  55. package/dist/components/SearchBar/SearchBar.js +2 -2
  56. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  57. package/dist/components/Select/Select.js +2 -2
  58. package/dist/components/Stepper/Stepper.js +1 -1
  59. package/dist/components/Stepper/components/StepperButton.js +1 -1
  60. package/dist/components/Stepper/components/StepperHeader.js +2 -2
  61. package/dist/components/Stepper/components/StepperIndicator.js +1 -1
  62. package/dist/defineProperty-CmuOyxyf.js +318 -0
  63. package/dist/es.string.iterator-DrqCBub-.js +581 -0
  64. package/dist/find-B-dm7n_F.js +88 -0
  65. package/dist/{get-CqneoueQ.js → get-DuK51wnj.js} +1 -1
  66. package/dist/get-u1nFMLdT.js +377 -0
  67. package/dist/hooks/useHelperText.js +1 -1
  68. package/dist/identity-BIZAN_pL.js +213 -0
  69. package/dist/includes-Bt-Stz_B.js +110 -0
  70. package/dist/index-Cpb-8cAN.js +2465 -0
  71. package/dist/index.es-0QJC9VS2.js +325 -0
  72. package/dist/{index.es-CyjMwj5g.js → index.es-45NOgWlB.js} +93 -101
  73. package/dist/index.es-B6ZgiW2s.js +3790 -0
  74. package/dist/{index.es-1zrFd4Te.js → index.es-BGordhUK.js} +352 -323
  75. package/dist/index.es-BRtk0Q33.js +42 -0
  76. package/dist/index.es-BXj90wb_.js +402 -0
  77. package/dist/index.es-Bg8hxXM8.js +912 -0
  78. package/dist/index.es-Bgjh6euR.js +292 -0
  79. package/dist/index.es-Bo1Rhtyb.js +80 -0
  80. package/dist/{index.es-BaX-8joZ.js → index.es-CK4oZMKs.js} +3329 -3232
  81. package/dist/{index.es-nQ0lMwpE.js → index.es-CKdJX75f.js} +74 -78
  82. package/dist/index.es-CmF6xAUJ.js +48 -0
  83. package/dist/{index.es-p4O33fMu.js → index.es-Cq04gn3U.js} +321 -305
  84. package/dist/{index.es-Cdu6tjUC.js → index.es-D1IpdMde.js} +87 -95
  85. package/dist/index.es-DDYCugj-.js +166 -0
  86. package/dist/{index.es-jFaPNuBO.js → index.es-DENZVv7_.js} +427 -444
  87. package/dist/{index.es-Dnrk7XL6.js → index.es-DObVvepK.js} +158 -166
  88. package/dist/index.es-DeF-y7fd.js +122 -0
  89. package/dist/{index.es-ks_RnHLh.js → index.es-Dfju71Pi.js} +27 -37
  90. package/dist/index.es-DqSY-ePE.js +4923 -0
  91. package/dist/index.es-DwzB1d7_.js +1061 -0
  92. package/dist/index.es-IXyb5F6n.js +457 -0
  93. package/dist/index.es-t7hFwQSs.js +67 -0
  94. package/dist/isArray-DN9s620O.js +83 -0
  95. package/dist/{isArray-CSaAxHlq.js → isArray-Dub1wGJM.js} +1 -1
  96. package/dist/{isEmpty-SkzPhavO.js → isEmpty-CxD71Jv8.js} +4 -5
  97. package/dist/{isString-CZsZiWgW.js → isString-BNaBRq3S.js} +2 -2
  98. package/dist/isTypedArray-Dw_IY7Zq.js +212 -0
  99. package/dist/keyboard-B-WUULl-.js +173 -0
  100. package/dist/main.js +2 -2
  101. package/dist/map-Dbvlv_6y.js +707 -0
  102. package/dist/omit-uTAyrUTm.js +645 -0
  103. package/dist/orderBy-BXxEvUw6.js +571 -0
  104. package/dist/parse-int-qVAoFbOL.js +75 -0
  105. package/dist/services/UtilService.js +7 -7
  106. package/dist/slicedToArray-BWk2gTCn.js +436 -0
  107. package/dist/{toString-BFJes2_D.js → toString-CrgB_7Pe.js} +1 -1
  108. package/dist/{uniqueId-DrPMzA-E.js → uniqueId-NU3-C36A.js} +1 -1
  109. package/package.json +3 -3
  110. package/dist/_baseIsEqual-Df2URKWm.js +0 -240
  111. package/dist/_getAllKeys-BQWmkEw5.js +0 -86
  112. package/dist/_getTag-BkGSRa18.js +0 -79
  113. package/dist/_setToString-B6E13pDg.js +0 -580
  114. package/dist/get-DQr2KQKm.js +0 -113
  115. package/dist/index-D5m--65X.js +0 -1491
  116. package/dist/index.es-8MVlRCi4.js +0 -1066
  117. package/dist/index.es-BbaCXS9-.js +0 -45
  118. package/dist/index.es-BikIx4uw.js +0 -3242
  119. package/dist/index.es-CDMu_yu0.js +0 -954
  120. package/dist/index.es-ChSlnpSq.js +0 -309
  121. package/dist/index.es-D66OkZJH.js +0 -4853
  122. package/dist/index.es-DFFyENnI.js +0 -63
  123. package/dist/index.es-DTMwaJ6B.js +0 -56
  124. package/dist/index.es-DgTJmbgD.js +0 -268
  125. package/dist/index.es-DmsyeHLO.js +0 -306
  126. package/dist/index.es-Dw1eih7R.js +0 -159
  127. package/dist/index.es-eKuwB1ll.js +0 -54
  128. package/dist/index.es-qxTN-Bb2.js +0 -107
  129. package/dist/index.es-xnSvM9b9.js +0 -444
  130. package/dist/isArray-DDZrq40X.js +0 -456
  131. package/dist/keyboard-Bpt0aBqQ.js +0 -107
  132. package/dist/omit-BN3qeeaj.js +0 -364
  133. package/dist/orderBy-D4LvP9Az.js +0 -316
@@ -1,159 +0,0 @@
1
- import { _ as g, c as h, P as r } from "./index-D5m--65X.js";
2
- import v, { forwardRef as x, useRef as w, useImperativeHandle as A } from "react";
3
- import { d as P } from "./index.es-ChSlnpSq.js";
4
- const b = {
5
- /**
6
- * Children to be rendered. Expects multiple components of a similar type.
7
- *
8
- * Defaults to **null**.
9
- */
10
- children: r.node,
11
- /**
12
- * The grouping direction.
13
- *
14
- * Defaults to **'horizontal'**.
15
- */
16
- direction: r.oneOf(["horizontal", "vertical", "horizontal-reverse", "vertical-reverse"]),
17
- /**
18
- * Sets the Group width to be 100%.
19
- *
20
- * Defaults to **false**.
21
- */
22
- fullWidth: r.bool,
23
- /**
24
- * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
25
- *
26
- * Defaults to **'standard'**.
27
- */
28
- gap: r.oneOf(["dense", "standard", "airy", "none"]),
29
- /**
30
- * @deprecated _Renamed for improved clarity. See `gap`._
31
- *
32
- * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
33
- *
34
- * Defaults to **undefined**.
35
- */
36
- padding: P(r.oneOf(["dense", "standard", "airy", "none"]), "Group", "Renamed for improved clarity. See `gap`."),
37
- /**
38
- * Alignment along the primary axis. 'For `horizontal` grouping this means the x-axis positioning, for `vertical`, this means the y-axis positioning.Equivalent to flexbox 'justify-content.
39
- *
40
- * Defaults to **'start'**.
41
- */
42
- primaryAlign: r.oneOf(["start", "end", "center", "space-evenly", "space-between", "space-around"]),
43
- /**
44
- * Alignment along the secondary axis. For horizontal grouping this means the y-axis positioning, for vertical, this means the x-axis positioning.Equivalent to flexbox 'align-items.
45
- *
46
- * Defaults to **'baseline'**.
47
- */
48
- secondaryAlign: r.oneOf(["start", "end", "center", "stretch", "baseline"])
49
- }, G = {
50
- children: null,
51
- direction: "horizontal",
52
- fullWidth: !1,
53
- gap: "standard",
54
- padding: void 0,
55
- primaryAlign: "start",
56
- secondaryAlign: "baseline"
57
- }, z = (e) => {
58
- switch (e) {
59
- case "end":
60
- return "flex-end";
61
- case "start":
62
- return "flex-start";
63
- case "center":
64
- return "center";
65
- case "stretch":
66
- return "stretch";
67
- case "baseline":
68
- default:
69
- return "baseline";
70
- }
71
- }, O = (e) => {
72
- switch (e) {
73
- case "end":
74
- return "flex-end";
75
- case "center":
76
- return "center";
77
- case "space-evenly":
78
- return "space-evenly";
79
- case "space-between":
80
- return "space-between";
81
- case "space-around":
82
- return "space-around";
83
- case "start":
84
- default:
85
- return "flex-start";
86
- }
87
- }, R = (e) => {
88
- switch (e) {
89
- case "dense":
90
- return "8px";
91
- case "airy":
92
- return "24px";
93
- case "standard":
94
- return "16px";
95
- case "none":
96
- default:
97
- return "0px";
98
- }
99
- }, _ = (e) => {
100
- switch (e) {
101
- case "horizontal":
102
- return "row";
103
- case "vertical":
104
- return "column";
105
- case "horizontal-reverse":
106
- return "row-reverse";
107
- case "vertical-reverse":
108
- return "column-reverse";
109
- default:
110
- return "row";
111
- }
112
- }, n = /* @__PURE__ */ x((e, s) => {
113
- const {
114
- children: c,
115
- className: o,
116
- direction: l,
117
- fullWidth: i,
118
- gap: d,
119
- padding: p,
120
- primaryAlign: u,
121
- secondaryAlign: f,
122
- style: m,
123
- variant: D,
124
- ...y
125
- } = e;
126
- let t = {
127
- display: "flex",
128
- flexDirection: _(l),
129
- justifyContent: O(u),
130
- alignItems: z(f),
131
- gap: R(p || d)
132
- };
133
- i && (t = {
134
- ...t,
135
- width: "100%"
136
- }), t = {
137
- ...t,
138
- ...m
139
- };
140
- const a = w();
141
- return A(s, () => a.current, []), /* @__PURE__ */ v.createElement("div", g({
142
- ref: a,
143
- className: h(
144
- "lmnt",
145
- "lmnt-group",
146
- // variant === 'dense' && 'lmnt-button-group--dense',
147
- // variant === 'standard' && 'lmnt-button-group--standard',
148
- // variant === 'airy' && 'lmnt-button-group--airy',
149
- o
150
- ),
151
- style: t
152
- }, y), c);
153
- });
154
- n.displayName = "Group";
155
- n.propTypes = b;
156
- n.defaultProps = G;
157
- export {
158
- n as G
159
- };
@@ -1,54 +0,0 @@
1
- import { _ as c, c as b, P as e } from "./index-D5m--65X.js";
2
- import u, { forwardRef as m, useRef as f, useImperativeHandle as h } from "react";
3
- const I = {
4
- /**
5
- * Content to be rendered inside the FormField. Accepts any valid markup.
6
- *
7
- * Defaults to **null**.
8
- */
9
- children: e.node.isRequired,
10
- /**
11
- * The css class name to be passed through to the component markup.
12
- *
13
- * Defaults to **undefined**.
14
- */
15
- className: e.string,
16
- /**
17
- * Applies disabled styling.
18
- *
19
- * Defaults to **false**.
20
- */
21
- disabled: e.bool,
22
- /**
23
- * Visibly disable the label, though it will still be available to screen readers.
24
- *
25
- * Defaults to **false**.
26
- */
27
- hideLabel: e.bool
28
- }, L = {
29
- children: null,
30
- className: void 0,
31
- disabled: !1,
32
- hideLabel: !1
33
- }, a = /* @__PURE__ */ m((r, t) => {
34
- const {
35
- children: n,
36
- className: d,
37
- disabled: o,
38
- hideLabel: i,
39
- targetId: l,
40
- ...p
41
- } = r, s = f();
42
- return h(t, () => s.current, []), /* @__PURE__ */ u.createElement("label", c({
43
- ref: s,
44
- className: b("lmnt-input-label", i && "sr-only", o && "lmnt-theme-on-surface-disabled", d),
45
- htmlFor: l,
46
- "aria-labelledby": l
47
- }, p), n);
48
- });
49
- a.displayName = "InputLabel";
50
- a.propTypes = I;
51
- a.defaultProps = L;
52
- export {
53
- a as I
54
- };
@@ -1,107 +0,0 @@
1
- import { c as N, _ as O, P as e } from "./index-D5m--65X.js";
2
- import n, { forwardRef as _, useRef as h, useImperativeHandle as x, useMemo as o } from "react";
3
- import { c as R } from "./index.es-ChSlnpSq.js";
4
- const W = {
5
- /**
6
- * Content to be rendered inside the elevation.
7
- *
8
- * Defaults to **null**.
9
- */
10
- children: e.node,
11
- /**
12
- * Adds a custom padding style to the child content. Must be a valid CSS padding declaration. i.e. 38px 30px
13
- *
14
- * Defaults to **null**.
15
- */
16
- customPadding: e.string,
17
- /**
18
- * Sets the distance of the elevation. Value must be between 0-24.
19
- *
20
- * Defaults to **0**.
21
- */
22
- elevation: e.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]),
23
- /**
24
- * Avoids adding an extra element to the DOM and applies proper classes directly to the child element.
25
- *
26
- * Defaults to **null**.
27
- */
28
- noWrap: e.bool,
29
- /**
30
- * The elevation element will have a visible border.
31
- *
32
- * Defaults to **false**.
33
- */
34
- outlined: e.bool,
35
- /**
36
- * Adds a universal padding around the child content. `dense` is 8px, `standard` is 16px, and `airy` is 24px. If `customPadding` is used, this will be ignored.
37
- *
38
- * Defaults to **undefined**.
39
- */
40
- padding: e.oneOf(["standard", "dense", "airy"]),
41
- /**
42
- * The elevation element will have a border radius of 8px.
43
- *
44
- * Defaults to **false**.
45
- */
46
- rounded: e.bool,
47
- /**
48
- * HTML tag to render the contents in.
49
- *
50
- * Defaults to **'div'**.
51
- */
52
- tag: e.oneOfType([e.string, e.elementType, e.instanceOf(n.Component)]),
53
- /**
54
- * Adds animation when elevation is changed.
55
- *
56
- * Defaults to **null**.
57
- */
58
- transition: e.bool
59
- }, $ = {
60
- children: null,
61
- customPadding: null,
62
- elevation: 0,
63
- noWrap: null,
64
- outlined: !1,
65
- padding: void 0,
66
- rounded: !1,
67
- tag: "div",
68
- transition: null
69
- }, a = /* @__PURE__ */ _((y, P) => {
70
- const {
71
- children: l,
72
- className: d,
73
- customPadding: s,
74
- elevation: i,
75
- noWrap: E,
76
- padding: t,
77
- rounded: r,
78
- tag: m,
79
- outlined: p,
80
- style: c,
81
- transition: u,
82
- ...f
83
- } = y, v = h();
84
- x(P, () => v.current, []);
85
- const g = o(() => N("lmnt", `mdc-elevation--z${i}`, t === "standard" && "lmnt-elevation--padding-standard", t === "dense" && "lmnt-elevation--padding-dense", t === "airy" && "lmnt-elevation--padding-airy", u && "mdc-elevation-transition", r && "lmnt-elevation--rounded", p && "lmnt-elevation--outlined", d), [i, t, u, r, p, d]), T = o(() => ({
86
- ...c,
87
- padding: s
88
- }), [c, s]), b = o(() => m, [m]);
89
- return (
90
- // eslint-disable-next-line react/jsx-no-useless-fragment
91
- /* @__PURE__ */ n.createElement(n.Fragment, null, E ? R(l, {
92
- className: g,
93
- ...f
94
- }) : /* @__PURE__ */ n.createElement(b, O({
95
- ref: v,
96
- className: g,
97
- style: T
98
- }, f), l))
99
- );
100
- });
101
- a.displayName = "Elevation";
102
- a.propTypes = W;
103
- a.defaultProps = $;
104
- var D = /* @__PURE__ */ n.memo(a);
105
- export {
106
- D as E
107
- };