@hortiview/shared-components 0.0.11176 → 0.0.11587

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 (190) hide show
  1. package/README.md +58 -8
  2. package/dist/BigLoadingSpinner-iegTbDcD.js +16 -0
  3. package/dist/GenericCard-6J558OgP.js +350 -0
  4. package/dist/ListAreaService-DOwtdRa4.js +109 -0
  5. package/dist/_MapCache-B75yWNNd.js +376 -0
  6. package/dist/_baseIsEqual-D0Dsajdb.js +317 -0
  7. package/dist/_getTag-BCf9b56Z.js +81 -0
  8. package/dist/animationframe-EMBh6XeO.js +54 -0
  9. package/dist/assets/HashTabView.css +1 -1
  10. package/dist/assets/Select.css +1 -0
  11. package/dist/component-DsB0poTj.js +571 -0
  12. package/dist/component-neHBNHRu.js +114 -0
  13. package/dist/components/AlertBanner/AlertBanner.d.ts +0 -1
  14. package/dist/components/AlertBanner/AlertBanner.js +15 -15
  15. package/dist/components/AlertBanner/AlertBanner.test.js +11 -9
  16. package/dist/components/BaseView/BaseView.d.ts +1 -1
  17. package/dist/components/BaseView/BaseView.js +27 -28
  18. package/dist/components/BaseView/BaseView.test.js +25 -25
  19. package/dist/components/BasicHeading/BasicHeading.d.ts +1 -0
  20. package/dist/components/BasicHeading/BasicHeading.js +17 -17
  21. package/dist/components/BasicHeading/BasicHeading.test.js +10 -10
  22. package/dist/components/BlockView/BlockView.d.ts +1 -0
  23. package/dist/components/BlockView/BlockView.js +24 -25
  24. package/dist/components/BlockView/BlockView.test.js +2 -2
  25. package/dist/components/ChipCard/ChipCard.js +1765 -15
  26. package/dist/components/ChipCard/ChipCard.test.js +2 -2
  27. package/dist/components/ContextMenu/ContextMenu.d.ts +3 -2
  28. package/dist/components/ContextMenu/ContextMenu.js +28 -28
  29. package/dist/components/ContextMenu/ContextMenu.test.js +2 -2
  30. package/dist/components/DeleteModal/DeleteModal.d.ts +0 -1
  31. package/dist/components/DeleteModal/DeleteModal.js +53 -51
  32. package/dist/components/DeleteModal/DeleteModal.test.js +2 -2
  33. package/dist/components/Disclaimer/Disclaimer.js +12 -11
  34. package/dist/components/Disclaimer/Disclaimer.test.js +2 -2
  35. package/dist/components/EmptyView/EmptyView.d.ts +1 -0
  36. package/dist/components/EmptyView/EmptyView.js +258 -19
  37. package/dist/components/EmptyView/EmptyView.test.js +2 -2
  38. package/dist/components/Filter/Filter.d.ts +1 -0
  39. package/dist/components/Filter/Filter.js +81 -77
  40. package/dist/components/Filter/Filter.test.js +2 -2
  41. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.d.ts +1 -0
  42. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.js +13 -11
  43. package/dist/components/FormComponents/FormCheckBox/FormCheckBox.test.js +2 -2
  44. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.d.ts +3 -2
  45. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.js +5975 -6389
  46. package/dist/components/FormComponents/FormDatePicker/FormDatePicker.test.js +2 -2
  47. package/dist/components/FormComponents/FormNumber/CustomTextField.d.ts +2 -1
  48. package/dist/components/FormComponents/FormNumber/CustomTextField.js +13 -14
  49. package/dist/components/FormComponents/FormNumber/FormNumber.d.ts +2 -1
  50. package/dist/components/FormComponents/FormNumber/FormNumber.js +2 -2
  51. package/dist/components/FormComponents/FormNumber/FormNumber.test.js +4 -4
  52. package/dist/components/FormComponents/FormRadio/FormRadio.d.ts +1 -0
  53. package/dist/components/FormComponents/FormRadio/FormRadio.js +4 -4
  54. package/dist/components/FormComponents/FormRadio/FormRadio.test.js +2 -2
  55. package/dist/components/FormComponents/FormSelect/FormSelect.d.ts +4 -7
  56. package/dist/components/FormComponents/FormSelect/FormSelect.js +100 -110
  57. package/dist/components/FormComponents/FormSelect/FormSelect.test.js +3 -3
  58. package/dist/components/FormComponents/FormSelect/SelectTooltipText.d.ts +1 -0
  59. package/dist/components/FormComponents/FormSelect/SelectTooltipText.js +6 -5
  60. package/dist/components/FormComponents/FormSlider/FormSlider.d.ts +1 -0
  61. package/dist/components/FormComponents/FormSlider/FormSlider.js +1155 -27
  62. package/dist/components/FormComponents/FormSlider/FormSlider.test.js +2 -2
  63. package/dist/components/FormComponents/FormText/FormText.d.ts +2 -1
  64. package/dist/components/FormComponents/FormText/FormText.js +28 -28
  65. package/dist/components/FormComponents/FormText/FormText.test.js +13 -13
  66. package/dist/components/FormComponents/FormToggle/FormToggle.d.ts +2 -1
  67. package/dist/components/FormComponents/FormToggle/FormToggle.js +17 -15
  68. package/dist/components/FormComponents/FormToggle/FormToggle.test.js +2 -2
  69. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.d.ts +2 -1
  70. package/dist/components/FormattedNumberDisplay/FormattedNumberDisplay.js +1 -1
  71. package/dist/components/GenericTable/GenericTable.d.ts +1 -0
  72. package/dist/components/GenericTable/GenericTable.js +10487 -76
  73. package/dist/components/GenericTable/GenericTable.test.js +2 -2
  74. package/dist/components/GenericTable/GenericTableService.d.ts +1 -0
  75. package/dist/components/GenericTable/GenericTableService.js +41 -41
  76. package/dist/components/GenericTable/Mobile/GenericCard.d.ts +1 -1
  77. package/dist/components/GenericTable/Mobile/GenericCard.js +4 -3
  78. package/dist/components/GenericTable/Mobile/GenericCard.test.js +3 -3
  79. package/dist/components/GenericTable/Mobile/GenericCardList.d.ts +1 -1
  80. package/dist/components/GenericTable/Mobile/GenericCardList.js +10 -8
  81. package/dist/components/GenericTable/Mobile/GenericCardList.test.js +2 -2
  82. package/dist/components/HashTabView/HashTabView.d.ts +6 -1
  83. package/dist/components/HashTabView/HashTabView.js +1805 -72
  84. package/dist/components/HashTabView/HashTabView.test.js +2 -2
  85. package/dist/components/HeaderFilter/HeaderFilter.d.ts +3 -2
  86. package/dist/components/HeaderFilter/HeaderFilter.js +14 -14
  87. package/dist/components/HeaderFilter/HeaderFilter.test.js +2 -2
  88. package/dist/components/HealthCheckFailed/HealthCheckFailed.js +19 -17
  89. package/dist/components/HealthCheckFailed/HealthCheckFailed.test.js +2 -2
  90. package/dist/components/Iconify/Iconify.d.ts +2 -3
  91. package/dist/components/Iconify/Iconify.js +44 -45
  92. package/dist/components/Iconify/Iconify.test.js +2 -2
  93. package/dist/components/InfoGroup/InfoGroup.d.ts +4 -3
  94. package/dist/components/InfoGroup/InfoGroup.js +30 -29
  95. package/dist/components/InfoGroup/InfoGroup.test.js +2 -2
  96. package/dist/components/ListArea/ListArea.d.ts +1 -1
  97. package/dist/components/ListArea/ListArea.js +29 -27
  98. package/dist/components/ListArea/ListArea.test.js +5 -5
  99. package/dist/components/ListArea/ListAreaService.d.ts +9 -8
  100. package/dist/components/ListArea/ListAreaService.js +7 -5
  101. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.js +2 -2
  102. package/dist/components/LoadingSpinner/Big/BigLoadingSpinner.test.js +3 -3
  103. package/dist/components/LoadingSpinner/Default/LoadingSpinner.js +506 -38
  104. package/dist/components/LoadingSpinner/Default/LoadingSpinner.test.js +2 -2
  105. package/dist/components/Modal/Modal.d.ts +2 -1
  106. package/dist/components/Modal/Modal.js +926 -10
  107. package/dist/components/ModulePadding/ModulePadding.d.ts +7 -0
  108. package/dist/components/ModulePadding/ModulePadding.js +28 -0
  109. package/dist/components/ModulePadding/ModulePadding.test.d.ts +1 -0
  110. package/dist/components/ModulePadding/ModulePadding.test.js +22 -0
  111. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +0 -1
  112. package/dist/components/OverflowTooltip/OverflowTooltip.js +13 -14
  113. package/dist/components/OverflowTooltip/OverflowTooltip.test.js +4 -4
  114. package/dist/components/Scrollbar/Scrollbar.js +5 -6
  115. package/dist/components/Scrollbar/scrollbar.test.js +2 -2
  116. package/dist/components/SearchBar/SearchBar.js +11 -11
  117. package/dist/components/SearchBar/SearchBar.test.js +2 -2
  118. package/dist/components/Select/Select.d.ts +14 -0
  119. package/dist/components/Select/Select.js +34 -0
  120. package/dist/components/Select/Select.test.d.ts +1 -0
  121. package/dist/components/Select/Select.test.js +28 -0
  122. package/dist/components/VerticalDivider/VerticalDivider.js +4 -5
  123. package/dist/components/VerticalDivider/VerticalDivider.test.js +2 -2
  124. package/dist/floating-ui.dom-CeD8zknG.js +978 -0
  125. package/dist/get-7ACccM2X.js +114 -0
  126. package/dist/{get-BiqanC9_.js → get-DFv1gXfq.js} +1 -1
  127. package/dist/hooks/useBreakpoints.test.js +2 -2
  128. package/dist/hooks/useHelperText.d.ts +1 -0
  129. package/dist/hooks/useHelperText.js +1 -1
  130. package/dist/identity-DLWZln-X.js +1763 -0
  131. package/dist/{index-DzM8o582.js → index-CrcXCSzI.js} +1940 -1796
  132. package/dist/index.es-0lQcz8m1.js +444 -0
  133. package/dist/index.es-25EARqhH.js +2027 -0
  134. package/dist/index.es-3043KTnb.js +1066 -0
  135. package/dist/index.es-41ztjcFT.js +724 -0
  136. package/dist/index.es-6TJ1S8Jr.js +954 -0
  137. package/dist/index.es-8GOVkuo-.js +374 -0
  138. package/dist/index.es-B-_jXDuz.js +216 -0
  139. package/dist/index.es-BWgXLqXn.js +102 -0
  140. package/dist/index.es-BtjV0oNv.js +360 -0
  141. package/dist/index.es-BvrQnJ3j.js +509 -0
  142. package/dist/index.es-CF_xy2ns.js +674 -0
  143. package/dist/index.es-CL_Heu1n.js +54 -0
  144. package/dist/index.es-CiqbARoC.js +306 -0
  145. package/dist/index.es-D-CKRzIB.js +63 -0
  146. package/dist/index.es-D6N-XWHe.js +56 -0
  147. package/dist/index.es-DKDgy7Kt.js +45 -0
  148. package/dist/index.es-DntoATwO.js +159 -0
  149. package/dist/index.es-UHKFl8Da.js +7075 -0
  150. package/dist/index.es-d5xhUpJZ.js +3242 -0
  151. package/dist/index.es-da0cf7oE.js +569 -0
  152. package/dist/index.es-h2lMdt7G.js +107 -0
  153. package/dist/index.es-zr101OF5.js +4853 -0
  154. package/dist/{isArray-2zMxXFEr.js → isArray-DN9s620O.js} +3 -3
  155. package/dist/{isArray-C_5XvIlE.js → isArray-Dub1wGJM.js} +1 -1
  156. package/dist/isEmpty-B4GG2s-V.js +31 -0
  157. package/dist/isPlainObject-C273y67K.js +40 -0
  158. package/dist/isString-BW9UHONv.js +21 -0
  159. package/dist/keyboard-Bpt0aBqQ.js +107 -0
  160. package/dist/main.d.ts +3 -0
  161. package/dist/main.js +58 -54
  162. package/dist/orderBy-Bd48bw88.js +316 -0
  163. package/dist/{react-number-format.es-BD3_OvMU.js → react-number-format.es-BK1EpVXq.js} +151 -151
  164. package/dist/react-tooltip.min-DSY6KDqS.js +431 -0
  165. package/dist/{react.esm-FR1-H8iU.js → react.esm-DNwojocF.js} +5289 -4990
  166. package/dist/services/BlockService.d.ts +1 -0
  167. package/dist/services/NumberService.d.ts +1 -0
  168. package/dist/services/UtilService.d.ts +1 -0
  169. package/dist/services/UtilService.js +2 -2
  170. package/dist/services/services.test.js +1 -1
  171. package/dist/toString-CrgB_7Pe.js +54 -0
  172. package/dist/tslib.es6-BDCynO9F.js +162 -0
  173. package/dist/types/GenericTable.d.ts +2 -2
  174. package/dist/types/HashTab.d.ts +0 -1
  175. package/dist/types/ListElement.d.ts +0 -1
  176. package/dist/types/internal/ReactRouterTypes.d.ts +0 -1
  177. package/dist/uniqueId-NU3-C36A.js +18 -0
  178. package/dist/util-DA21pZXj.js +78 -0
  179. package/dist/{vi.CjhMlMwf-DWv7vrn7.js → vi.CjhMlMwf-BCJNwXvu.js} +1 -1
  180. package/package.json +15 -15
  181. package/dist/BigLoadingSpinner-C3wTbTD0.js +0 -17
  182. package/dist/GenericCard-B8x1DMa8.js +0 -81
  183. package/dist/ListAreaService-CRX4eEUJ.js +0 -108
  184. package/dist/_Map-Dtlps7IZ.js +0 -113
  185. package/dist/_overArg-_0pUmCsX.js +0 -14
  186. package/dist/get-P-5PYZOE.js +0 -426
  187. package/dist/isEmpty-BimaZd5G.js +0 -225
  188. package/dist/isString-BOHPtrlm.js +0 -44
  189. package/dist/orderBy-BVQIswlJ.js +0 -765
  190. package/dist/react-tooltip.min-c2wVkjF2.js +0 -1354
@@ -0,0 +1,54 @@
1
+ import { _ as c, c as b, P as e } from "./identity-DLWZln-X.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
+ };
@@ -0,0 +1,306 @@
1
+ import { _ as S, c as W, P as n } from "./identity-DLWZln-X.js";
2
+ import u, { forwardRef as D, useRef as on, useImperativeHandle as ln, useCallback as T } from "react";
3
+ import { R as an } from "./index.es-DKDgy7Kt.js";
4
+ import { I as R } from "./index.es-3043KTnb.js";
5
+ import { a as E, d as r, b as rn } from "./index.es-da0cf7oE.js";
6
+ const dn = {
7
+ /**
8
+ * @deprecated _Use `themeColor='secondary'` instead._
9
+ *
10
+ * Preview feature, this may change. Apply alternative button color scheme (defined by the individual theme).
11
+ *
12
+ * Defaults to **undefined**.
13
+ */
14
+ altColor: r(n.bool, "Button", 'Use `themeColor="secondary"` instead.'),
15
+ /**
16
+ * One of 'xsmall', 'small', 'medium', 'large' and 'xlarge' will change the size of the button. Defaults according to your theme.
17
+ *
18
+ * Defaults to **'themeDefault'**.
19
+ */
20
+ buttonSize: n.oneOf(["xsmall", "small", "medium", "large", "xlarge", "themeDefault"]),
21
+ /**
22
+ * Content to be rendered inside the button. Can be used instead `label` of to provide more flexibility. Accepts any valid markup. _Warning, if Label is set, it will be used instead of child content._
23
+ *
24
+ * Defaults to **null**.
25
+ */
26
+ children: n.node,
27
+ /**
28
+ * The css class name to be passed through to the component markup.
29
+ *
30
+ * Defaults to **undefined**.
31
+ */
32
+ className: n.string,
33
+ /**
34
+ * @deprecated _forwardRef has been implemented for Button._
35
+ *
36
+ * Reference to the DOM button. This enables a greater level of integration.
37
+ *
38
+ * Defaults to **undefined**.
39
+ */
40
+ customRef: r(n.oneOfType([
41
+ n.func,
42
+ // eslint-disable-next-line react/forbid-prop-types
43
+ n.shape({
44
+ current: n.any
45
+ })
46
+ ]), "Button", "forwardRef has been implemented for Button."),
47
+ /**
48
+ * @deprecated _Use `variant='danger'` instead._
49
+ *
50
+ * Apply danger style to the button.
51
+ *
52
+ * Defaults to **undefined**.
53
+ */
54
+ danger: r(n.bool, "Button", 'Use `variant="danger"` instead.'),
55
+ /**
56
+ * Prevent the user from interacting with the component.
57
+ *
58
+ * Defaults to **false**.
59
+ */
60
+ disabled: n.bool,
61
+ /**
62
+ * Sets elevation of the button. Default will be the theme default.
63
+ *
64
+ * Defaults to **'default'**.
65
+ */
66
+ elevation: n.oneOf(["default", "elevated", "flat"]),
67
+ /**
68
+ * @deprecated _Use `variant='filled'` instead._
69
+ *
70
+ * Apply a filled-in style. Previously called `primary`.
71
+ *
72
+ * Defaults to **undefined**.
73
+ */
74
+ filled: r(n.bool, "Button", 'Use `variant="filled"` instead.'),
75
+ /**
76
+ * Applies a full-width style where the textfield will fill it's container.
77
+ *
78
+ * Defaults to **false**.
79
+ */
80
+ fullWidth: n.bool,
81
+ /**
82
+ * The button will render as an anchor tag. If the tag prop is set, that prop will take precedence.
83
+ *
84
+ * Defaults to **null**.
85
+ */
86
+ href: n.string,
87
+ /**
88
+ * The displayed text. Expects a valid string. If label and children are both set, label will take priority.
89
+ *
90
+ * Defaults to **null**.
91
+ */
92
+ label: n.string,
93
+ /**
94
+ * Adds the given Icon to the left of the button text. May not be used with `trailingIcon` - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control,
95
+ *
96
+ * Defaults to **undefined**.
97
+ */
98
+ leadingIcon: n.oneOfType([n.string, n.func, n.node]),
99
+ /**
100
+ * The primary interaction event for button.
101
+ *
102
+ * Defaults to **null**.
103
+ */
104
+ onClick: n.func,
105
+ /**
106
+ * @deprecated _Use `variant='outlined'`._
107
+ *
108
+ * Apply outlined style to the button. Previously called `secondary`.
109
+ *
110
+ * Defaults to **undefined**.
111
+ */
112
+ outlined: r(n.bool, "Button", 'Use `variant="outlined"`.'),
113
+ /**
114
+ * @deprecated _Use `variant='filled'` instead._
115
+ *
116
+ * Apply primary style to the Button.
117
+ *
118
+ * Defaults to **undefined**.
119
+ */
120
+ primary: r(n.bool, "Button", 'Use `variant="filled"` instead.'),
121
+ /**
122
+ * @deprecated _Use `'variant=outlined'` instead._
123
+ *
124
+ * Apply secondary style to the Button.
125
+ *
126
+ * Defaults to **undefined**.
127
+ */
128
+ secondary: r(n.bool, "Button", 'Use `"variant=outlined"` instead.'),
129
+ /**
130
+ * By default a button or anchor tag will be rendered, this allows another tag/component to be used instead. A block type element/component is suggested.
131
+ *
132
+ * Defaults to **null**.
133
+ */
134
+ tag: n.oneOfType([n.string, n.elementType, n.instanceOf(u.Component)]),
135
+ /**
136
+ * @deprecated _Use `variant='embedded'` instead._
137
+ *
138
+ * Apply tertiary style to the Button.
139
+ *
140
+ * Defaults to **undefined**.
141
+ */
142
+ tertiary: r(n.bool, "Button", 'Use `variant="embedded"` instead.'),
143
+ /**
144
+ * @deprecated _Use `variant='text'` instead._
145
+ *
146
+ * Apply unfilled, un-outlined style to the Button. Previously called `tertiary`.
147
+ *
148
+ * Defaults to **undefined**.
149
+ */
150
+ text: r(n.bool, "Button", 'Use `variant="text"` instead.'),
151
+ /**
152
+ * Sets the theme color for the button. Most commonly used when the control is placed on a darker surface.
153
+ *
154
+ * Defaults to **'primary'**.
155
+ */
156
+ themeColor: rn(n.oneOf(["primary", "secondary", "danger", "success", "on-unknown-black", "on-unknown-white", "on-primary", "on-secondary", "on-success", "on-danger"]), ["onUnknownBlack", "onUnknownWhite"], "Button", "Please use one of 'primary','secondary','danger','success','on-unknown-black','on-unknown-white','on-primary','on-secondary','on-success','on-danger'."),
157
+ /**
158
+ * Adds the given Icon to the right of the button text. May not be used with `leadingIcon` - if `leadingIcon` and `trailingIcon` are both set, `leadingIcon` will take priority. Expects the name of a valid Material.io icon, however an icon component may be passed in instead for more control.
159
+ *
160
+ * Defaults to **undefined**.
161
+ */
162
+ trailingIcon: n.oneOfType([n.string, n.func, n.node]),
163
+ /**
164
+ * This applies the html button type (button, submit, reset) or the anchor media type when used with the href property.
165
+ *
166
+ * Defaults to **'button'**.
167
+ */
168
+ type: n.oneOf(["button", "submit", "reset"]),
169
+ /**
170
+ * @deprecated _Use `elevation='flat' instead._
171
+ *
172
+ * Remove elevation.
173
+ *
174
+ * Defaults to **undefined**.
175
+ */
176
+ unelevated: r(n.bool, "Button", 'Use `elevation="flat" instead.'),
177
+ /**
178
+ * Applies the selected style to the button. `rounded-small` and `rounded-micro` are only available on select themes.
179
+ *
180
+ * Defaults to **'filled'**.
181
+ */
182
+ variant: n.oneOf(["filled", "outlined", "danger", "text", "success", "rounded-small", "rounded-micro"])
183
+ }, un = {
184
+ altColor: void 0,
185
+ buttonSize: "themeDefault",
186
+ children: null,
187
+ className: void 0,
188
+ customRef: void 0,
189
+ danger: void 0,
190
+ disabled: !1,
191
+ elevation: "default",
192
+ filled: void 0,
193
+ fullWidth: !1,
194
+ href: null,
195
+ label: null,
196
+ leadingIcon: void 0,
197
+ outlined: void 0,
198
+ primary: void 0,
199
+ secondary: void 0,
200
+ tag: null,
201
+ tertiary: void 0,
202
+ text: void 0,
203
+ themeColor: "primary",
204
+ trailingIcon: void 0,
205
+ type: "button",
206
+ unelevated: void 0,
207
+ variant: "filled"
208
+ }, sn = {
209
+ /**
210
+ * Children to be rendered. Expects multiple Element Buttons
211
+ *
212
+ * Defaults to **null**.
213
+ */
214
+ children: n.node,
215
+ /**
216
+ * How much spacing between buttons. Dense is 8p, standard is 16px and airy is 24px.
217
+ *
218
+ * Defaults to **'standard'**.
219
+ */
220
+ variant: n.oneOf(["dense", "standard", "airy"])
221
+ }, cn = {
222
+ children: null,
223
+ variant: "standard"
224
+ }, O = /* @__PURE__ */ D((_, h) => {
225
+ const {
226
+ altColor: k,
227
+ buttonSize: x,
228
+ children: p,
229
+ className: w,
230
+ customRef: G,
231
+ disabled: z,
232
+ elevation: N,
233
+ primary: F,
234
+ secondary: H,
235
+ tertiary: L,
236
+ text: $,
237
+ danger: j,
238
+ filled: q,
239
+ fullWidth: A,
240
+ href: P,
241
+ label: J,
242
+ leadingIcon: i,
243
+ onClick: K,
244
+ outlined: M,
245
+ tag: Q,
246
+ themeColor: e,
247
+ trailingIcon: c,
248
+ type: V,
249
+ unelevated: t,
250
+ variant: d,
251
+ ...X
252
+ } = _, v = on(G || null);
253
+ ln(h, () => v.current, []);
254
+ const Y = J || p, Z = Q || (P ? "a" : "button"), l = d === "outlined" || M || H, U = d === "rounded-small" || d === "rounded-micro", a = d === "text" || $ || L, m = d === "danger" || j || e === "danger", b = d === "success" || e === "success", o = !l && !a && (d === "filled" || q || F), f = k || e === "secondary", s = e === "primary", nn = c && !i, y = e === "onUnknownBlack" || e === "on-unknown-black", g = e === "onUnknownWhite" || e === "on-unknown-white", B = e === "onPrimary" || e === "on-primary", I = e === "onSecondary" || e === "on-secondary", tn = T(() => typeof i == "string" ? /* @__PURE__ */ u.createElement(R, {
255
+ tabIndex: 0,
256
+ role: "button",
257
+ className: "mdc-button__icon lmnt-button__icon--leading",
258
+ icon: i
259
+ }) : typeof i == "function" ? i({
260
+ className: "mdc-button__icon lmnt-button__icon--leading"
261
+ }) : E(i, "mdc-button__icon lmnt-button__icon--leading"), [i]), en = T(() => typeof c == "string" ? /* @__PURE__ */ u.createElement(R, {
262
+ tabIndex: 0,
263
+ role: "button",
264
+ className: "mdc-button__icon lmnt-button__icon--trailing",
265
+ icon: c
266
+ }) : typeof c == "function" ? c({
267
+ className: "mdc-button__icon lmnt-button__icon--trailing"
268
+ }) : E(c, "mdc-button__icon lmnt-button__icon--trailing"), [c]);
269
+ return /* @__PURE__ */ u.createElement(an, {
270
+ componentRef: v
271
+ }, /* @__PURE__ */ u.createElement(Z, S({
272
+ ref: v,
273
+ href: P,
274
+ onClick: K,
275
+ type: V,
276
+ disabled: z,
277
+ className: W("lmnt", "mdc-button", "lmnt-button", "mdc-button--touch", o && t && s && "lmnt-button--filled-primary", o && m && "lmnt-button--filled-danger", o && b && "lmnt-button--filled-success", o && t && f && "lmnt-button--filled-secondary", o && !t && s && ["lmnt-button--filled-primary", "mdc-button--raised"], o && !t && f && ["lmnt-button--filled-secondary", "mdc-button--raised"], o && !t && e === "on-primary" && ["lmnt-button--filled-on-primary", "mdc-button--raised"], o && !t && e === "on-secondary" && ["lmnt-button--filled-on-secondary", "mdc-button--raised"], o && !t && e === "on-success" && ["lmnt-button--filled-on-success", "mdc-button--raised"], o && !t && e === "on-danger" && ["lmnt-button--filled-on-danger", "mdc-button--raised"], o && !t && y && ["lmnt-button--filled-on-unknown-black", "mdc-button--raised"], o && !t && g && ["lmnt-button--filled-on-unknown-white", "mdc-button--raised"], l && s && ["lmnt-button--outlined-primary", "mdc-button--outlined"], o && !t && B && ["lmnt-button--filled-on-primary", "mdc-button--raised"], l && f && ["lmnt-button--outlined-secondary", "mdc-button--outlined"], l && B && "lmnt-button--outlined-on-primary mdc-button--outlined", l && I && "lmnt-button--outlined-on-secondary mdc-button--outlined", l && g && "lmnt-button--outlined-on-unknown-white mdc-button--outlined", l && y && "lmnt-button--outlined-on-unknown-black mdc-button--outlined", a && B && "lmnt-button--text-on-primary mdc-button__text", a && I && "lmnt-button--text-on-secondary mdc-button__text", a && g && "lmnt-button--text-on-unknown-white mdc-button__text", a && y && "lmnt-button--text-on-unknown-black mdc-button__text", U && g && "lmnt-button--text-on-unknown-white mdc-button__text", U && y && "lmnt-button--text-on-unknown-black mdc-button__text", a && s && "lmnt-button--text-primary", a && f && "lmnt-button--text-secondary", a && m && "lmnt-button--text-danger", a && b && "lmnt-button--text-success", m && t && f && "lmnt-button--danger-secondary", m && !t && f && ["lmnt-button--danger-secondary", "mdc-button--raised"], m && t && s && "lmnt-button--danger-primary", m && !t && s && ["lmnt-button--danger-primary", "mdc-button--raised"], m && l && ["lmnt-button--danger-primary", "mdc-button--outlined"], b && t && s && "lmnt-button--success-primary", b && !t && s && ["lmnt-button--success-primary", "mdc-button--raised"], b && l && ["lmnt-button--success-primary", "mdc-button--outlined"], b && l && ["lmnt-button--success-primary", "mdc-button--outlined"], A && "lmnt-button--full-width", t && !a && "mdc-button--unelevated", N === "flat" && "lmnt-button--flat", N === "elevated" && "lmnt-button--elevated", `lmnt-button--${x}`, d === "rounded-small" && "lmnt-button--rounded lmnt-button--rounded-small mdc-button__text lmnt-button--text-primary", d === "rounded-micro" && "lmnt-button--rounded lmnt-button--rounded-micro mdc-button__text lmnt-button--text-primary", w, "mdc-touch-target-wrapper")
278
+ }, X), /* @__PURE__ */ u.createElement("span", {
279
+ className: "mdc-button__ripple"
280
+ }), i && tn(), /* @__PURE__ */ u.createElement("span", {
281
+ className: "mdc-button__label"
282
+ }, Y), nn && en(), /* @__PURE__ */ u.createElement("span", {
283
+ className: "mdc-button__touch"
284
+ })));
285
+ });
286
+ O.displayName = "Button";
287
+ O.propTypes = dn;
288
+ O.defaultProps = un;
289
+ const C = /* @__PURE__ */ D((_, h) => {
290
+ const {
291
+ children: k,
292
+ className: x,
293
+ variant: p,
294
+ ...w
295
+ } = _;
296
+ return /* @__PURE__ */ u.createElement("div", S({
297
+ ref: h,
298
+ className: W("lmnt", "lmnt-button-group", p === "dense" && "lmnt-button-group--dense", p === "standard" && "lmnt-button-group--standard", p === "airy" && "lmnt-button-group--airy", x)
299
+ }, w), k);
300
+ });
301
+ C.displayName = "ButtonGroup";
302
+ C.propTypes = sn;
303
+ C.defaultProps = cn;
304
+ export {
305
+ O as B
306
+ };
@@ -0,0 +1,63 @@
1
+ import { _ as u, c as P, P as a } from "./identity-DLWZln-X.js";
2
+ import f, { forwardRef as y, useMemo as v, useRef as T, useImperativeHandle as N } from "react";
3
+ const R = {
4
+ /**
5
+ * Content to be rendered inside the padding component. Accepts any valid markup.
6
+ *
7
+ * Defaults to **null**.
8
+ */
9
+ children: a.node.isRequired,
10
+ /**
11
+ * The css class name to be passed through to the component markup.
12
+ *
13
+ * Defaults to **undefined**.
14
+ */
15
+ className: a.string,
16
+ /**
17
+ * Adds a custom padding style to the child content. Must be a valid CSS padding declaration. i.e. 38px 30px
18
+ *
19
+ * Defaults to **null**.
20
+ */
21
+ customPadding: a.string,
22
+ /**
23
+ * By default a div will be rendered, this allow another tag to be used instead. A block type component is suggested.
24
+ *
25
+ * Defaults to **'div'**.
26
+ */
27
+ tag: a.oneOfType([a.string, a.elementType]),
28
+ /**
29
+ * Applies the specified padding amount. `dense` is 8px, `standard` is 16px, and `airy` is 24px. If `customPadding` is used, this will be ignored.
30
+ *
31
+ * Defaults to **'standard'**.
32
+ */
33
+ variant: a.oneOf(["dense", "standard", "airy"])
34
+ }, _ = {
35
+ children: null,
36
+ className: void 0,
37
+ customPadding: null,
38
+ tag: "div",
39
+ variant: "standard"
40
+ }, n = /* @__PURE__ */ y((t, r) => {
41
+ const {
42
+ tag: i,
43
+ variant: e,
44
+ children: l,
45
+ className: o,
46
+ customPadding: d,
47
+ style: s,
48
+ ...c
49
+ } = t, m = v(() => ({
50
+ ...s,
51
+ padding: d
52
+ }), [s, d]), p = i || "div", g = T();
53
+ return N(r, () => g.current, []), /* @__PURE__ */ f.createElement(p, u({
54
+ className: P("lmnt", "lmnt-padding", e === "dense" && "lmnt-padding--dense", e === "standard" && "lmnt-padding--standard", e === "airy" && "lmnt-padding--airy", o),
55
+ style: m
56
+ }, c), l);
57
+ });
58
+ n.displayName = "Padding";
59
+ n.propTypes = R;
60
+ n.defaultProps = _;
61
+ export {
62
+ n as P
63
+ };
@@ -0,0 +1,56 @@
1
+ import d, { forwardRef as y, useState as P, useRef as b, useImperativeHandle as v, useEffect as R } from "react";
2
+ import T from "react-dom";
3
+ import { e as _ } from "./index.es-da0cf7oE.js";
4
+ import { P as o } from "./identity-DLWZln-X.js";
5
+ const g = {
6
+ /**
7
+ * Content to be rendered inside the portal.
8
+ *
9
+ * Defaults to **null**.
10
+ */
11
+ children: o.node,
12
+ /**
13
+ * Disables the portal to rendering children in the natural flow of the DOM.
14
+ *
15
+ * Defaults to **false**.
16
+ */
17
+ disabled: o.bool,
18
+ /**
19
+ * The DOM element the children will render in. If a string is sent it should be a valid DOM query selector. If one is not sent, Portal will default to `document.body`.
20
+ *
21
+ * Defaults to **'document.body'**.
22
+ */
23
+ portalContainer: o.oneOfType([o.string, o.node])
24
+ }, h = {
25
+ children: null,
26
+ disabled: !1,
27
+ portalContainer: "document.body"
28
+ }, t = /* @__PURE__ */ y((i, m) => {
29
+ var r;
30
+ const [s, n] = P((r = document) === null || r === void 0 ? void 0 : r.body), {
31
+ children: c,
32
+ container: e,
33
+ disabled: p
34
+ } = i, u = b();
35
+ return v(m, () => u.current, []), R(() => {
36
+ var a;
37
+ const l = (a = document) === null || a === void 0 ? void 0 : a.body;
38
+ if (typeof e == "string")
39
+ if (e === "document.body")
40
+ n(l);
41
+ else {
42
+ const f = _(e);
43
+ n(f || l);
44
+ }
45
+ else
46
+ n(e || l);
47
+ }, [e]), // eslint-disable-next-line react/jsx-no-useless-fragment
48
+ /* @__PURE__ */ d.createElement(d.Fragment, null, p || !s ? c : /* @__PURE__ */ T.createPortal(c, s));
49
+ });
50
+ t.displayName = "Portal";
51
+ t.propTypes = g;
52
+ t.defaultProps = h;
53
+ var O = /* @__PURE__ */ d.memo(t);
54
+ export {
55
+ O as P
56
+ };
@@ -0,0 +1,45 @@
1
+ import { forwardRef as f, useRef as i, useImperativeHandle as s, useEffect as l } from "react";
2
+ import { P as r } from "./identity-DLWZln-X.js";
3
+ import { M as R } from "./component-DsB0poTj.js";
4
+ const a = {
5
+ /**
6
+ * Content to be rendered inside the component.
7
+ *
8
+ * Defaults to **null**.
9
+ */
10
+ children: r.node,
11
+ /**
12
+ * A reference to the component to apply the ripple to.
13
+ *
14
+ * Defaults to **undefined**.
15
+ */
16
+ componentRef: r.object,
17
+ /**
18
+ * Allows the ripple to extend beyond the component boundaries.
19
+ *
20
+ * Defaults to **undefined**.
21
+ */
22
+ unbounded: r.bool
23
+ }, m = {
24
+ children: null,
25
+ componentRef: void 0,
26
+ unbounded: void 0
27
+ }, o = /* @__PURE__ */ f((u, c) => {
28
+ const {
29
+ componentRef: n,
30
+ unbounded: p,
31
+ children: d
32
+ } = u, e = i();
33
+ return s(c, () => e.current, []), l(() => {
34
+ const t = n.current;
35
+ return t && (e.current = R.attachTo(n.current), p && (e.current.unbounded = !0)), () => {
36
+ t && e.current.destroy();
37
+ };
38
+ }, [n, p]), d;
39
+ });
40
+ o.displayName = "Ripple";
41
+ o.propTypes = a;
42
+ o.defaultProps = m;
43
+ export {
44
+ o as R
45
+ };
@@ -0,0 +1,159 @@
1
+ import { _ as g, c as h, P as r } from "./identity-DLWZln-X.js";
2
+ import v, { forwardRef as x, useRef as w, useImperativeHandle as A } from "react";
3
+ import { d as P } from "./index.es-da0cf7oE.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
+ };