@lanaco/lnc-react-ui 3.11.35 → 4.0.2

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 (218) hide show
  1. package/README.md +0 -3
  2. package/dist/Accordion.cjs +6 -0
  3. package/dist/Accordion.js +65 -0
  4. package/dist/AccordionDetails.cjs +7 -0
  5. package/dist/AccordionDetails.js +32 -0
  6. package/dist/AccordionSummary.cjs +12 -0
  7. package/dist/AccordionSummary.js +78 -0
  8. package/dist/ActionsToolbar.cjs +19 -0
  9. package/dist/ActionsToolbar.js +225 -0
  10. package/dist/Alert.cjs +40 -0
  11. package/dist/Alert.js +138 -0
  12. package/dist/Avatar.cjs +16 -0
  13. package/dist/Avatar.js +114 -0
  14. package/dist/Badge.cjs +17 -0
  15. package/dist/Badge.js +70 -0
  16. package/dist/Breadcrumbs.cjs +8 -0
  17. package/dist/Breadcrumbs.js +131 -0
  18. package/dist/Button.cjs +127 -0
  19. package/dist/Button.js +542 -0
  20. package/dist/ButtonGroup.cjs +44 -0
  21. package/dist/ButtonGroup.js +112 -0
  22. package/dist/CheckBoxInput.cjs +118 -0
  23. package/dist/CheckBoxInput.js +348 -0
  24. package/dist/Chip.cjs +27 -0
  25. package/dist/Chip.js +189 -0
  26. package/dist/ColorInput.cjs +60 -0
  27. package/dist/ColorInput.js +256 -0
  28. package/dist/ConfirmationForm.cjs +22 -0
  29. package/dist/ConfirmationForm.js +169 -0
  30. package/dist/Content.cjs +1 -0
  31. package/dist/Content.js +18 -0
  32. package/dist/CustomStyles-CqlCjTgU.cjs +8 -0
  33. package/dist/CustomStyles-nfD3J1mi.js +2881 -0
  34. package/dist/DataView.cjs +1 -0
  35. package/dist/DataView.js +62 -0
  36. package/dist/DateInput.cjs +296 -0
  37. package/dist/DateInput.js +7042 -0
  38. package/dist/DecimalInput.cjs +54 -0
  39. package/dist/DecimalInput.js +697 -0
  40. package/dist/DetailsView.cjs +18 -0
  41. package/dist/DetailsView.js +243 -0
  42. package/dist/DoubleRangeSlider.cjs +114 -0
  43. package/dist/DoubleRangeSlider.js +289 -0
  44. package/dist/DragAndDropFile.cjs +31 -0
  45. package/dist/DragAndDropFile.js +2331 -0
  46. package/dist/DragDropFiles.cjs +14 -0
  47. package/dist/DragDropFiles.js +175 -0
  48. package/dist/Drawer.cjs +6 -0
  49. package/dist/Drawer.js +206 -0
  50. package/dist/Dropdown.cjs +1 -0
  51. package/dist/Dropdown.js +266 -0
  52. package/dist/DropdownItem.cjs +36 -0
  53. package/dist/DropdownItem.js +241 -0
  54. package/dist/DropdownLookup.cjs +1 -0
  55. package/dist/DropdownLookup.js +325 -0
  56. package/dist/DropdownMenu-B6qr13ik.cjs +19 -0
  57. package/dist/DropdownMenu-DZi3TJ8Q.js +1547 -0
  58. package/dist/DropdownMenu.cjs +1 -0
  59. package/dist/DropdownMenu.js +12 -0
  60. package/dist/EditableTable.cjs +21 -0
  61. package/dist/EditableTable.js +462 -0
  62. package/dist/FileInput.cjs +47 -0
  63. package/dist/FileInput.js +206 -0
  64. package/dist/FlexBox.cjs +9 -0
  65. package/dist/FlexBox.js +97 -0
  66. package/dist/FlexGrid.cjs +1 -0
  67. package/dist/FlexGrid.js +78 -0
  68. package/dist/FlexGridItem.cjs +7 -0
  69. package/dist/FlexGridItem.js +97 -0
  70. package/dist/Footer.cjs +1 -0
  71. package/dist/Footer.js +18 -0
  72. package/dist/FormField.cjs +11 -0
  73. package/dist/FormField.js +65 -0
  74. package/dist/FormView.cjs +13 -0
  75. package/dist/FormView.js +354 -0
  76. package/dist/Grid.cjs +13 -0
  77. package/dist/Grid.js +62 -0
  78. package/dist/GridItem.cjs +15 -0
  79. package/dist/GridItem.js +72 -0
  80. package/dist/Header.cjs +1 -0
  81. package/dist/Header.js +18 -0
  82. package/dist/Icon.cjs +8 -0
  83. package/dist/Icon.js +59 -0
  84. package/dist/IconButton.cjs +122 -0
  85. package/dist/IconButton.js +481 -0
  86. package/dist/Kanban.cjs +85 -0
  87. package/dist/Kanban.js +4793 -0
  88. package/dist/KanbanActionsToolbar.cjs +19 -0
  89. package/dist/KanbanActionsToolbar.js +152 -0
  90. package/dist/KanbanCard-ConTmu3w.cjs +30 -0
  91. package/dist/KanbanCard-D9OhU8C6.js +175 -0
  92. package/dist/KanbanCard.cjs +1 -0
  93. package/dist/KanbanCard.js +12 -0
  94. package/dist/KanbanFooter.cjs +5 -0
  95. package/dist/KanbanFooter.js +84 -0
  96. package/dist/KanbanHeader.cjs +15 -0
  97. package/dist/KanbanHeader.js +127 -0
  98. package/dist/KanbanView.cjs +8 -0
  99. package/dist/KanbanView.js +255 -0
  100. package/dist/Link.cjs +15 -0
  101. package/dist/Link.js +62 -0
  102. package/dist/MenuItem.cjs +36 -0
  103. package/dist/MenuItem.js +230 -0
  104. package/dist/Modal.cjs +84 -0
  105. package/dist/Modal.js +372 -0
  106. package/dist/MultiSelectDropdown.cjs +1 -0
  107. package/dist/MultiSelectDropdown.js +261 -0
  108. package/dist/MultiSelectDropdownLookup.cjs +1 -0
  109. package/dist/MultiSelectDropdownLookup.js +274 -0
  110. package/dist/NestedDropdownItem.cjs +6 -0
  111. package/dist/NestedDropdownItem.js +102 -0
  112. package/dist/NestedMenuItem.cjs +6 -0
  113. package/dist/NestedMenuItem.js +115 -0
  114. package/dist/Notification.cjs +83 -0
  115. package/dist/Notification.js +1079 -0
  116. package/dist/NumberInput.cjs +45 -0
  117. package/dist/NumberInput.js +241 -0
  118. package/dist/PageLayout.cjs +26 -0
  119. package/dist/PageLayout.js +92 -0
  120. package/dist/PasswordInput.cjs +47 -0
  121. package/dist/PasswordInput.js +230 -0
  122. package/dist/ProgressBar.cjs +22 -0
  123. package/dist/ProgressBar.js +92 -0
  124. package/dist/RadioGroup.cjs +7 -0
  125. package/dist/RadioGroup.js +104 -0
  126. package/dist/RadioInput.cjs +117 -0
  127. package/dist/RadioInput.js +362 -0
  128. package/dist/RangeSlider.cjs +72 -0
  129. package/dist/RangeSlider.js +253 -0
  130. package/dist/SearchBar.cjs +100 -0
  131. package/dist/SearchBar.js +994 -0
  132. package/dist/Separator.cjs +6 -0
  133. package/dist/Separator.js +37 -0
  134. package/dist/Sidebar.cjs +39 -0
  135. package/dist/Sidebar.js +123 -0
  136. package/dist/Spinner.cjs +38 -0
  137. package/dist/Spinner.js +114 -0
  138. package/dist/Surface.cjs +7 -0
  139. package/dist/Surface.js +60 -0
  140. package/dist/SwipeableDrawer.cjs +33 -0
  141. package/dist/SwipeableDrawer.js +213 -0
  142. package/dist/Table.cjs +170 -0
  143. package/dist/Table.js +1408 -0
  144. package/dist/TableView-Cj5_fbSR.js +481 -0
  145. package/dist/TableView-D8ex512p.cjs +19 -0
  146. package/dist/TableView.cjs +1 -0
  147. package/dist/TableView.js +11 -0
  148. package/dist/Tabs.cjs +7 -0
  149. package/dist/Tabs.js +72 -0
  150. package/dist/TextAreaInput.cjs +33 -0
  151. package/dist/TextAreaInput.js +320 -0
  152. package/dist/TextInput.cjs +45 -0
  153. package/dist/TextInput.js +227 -0
  154. package/dist/ThemeProvider.cjs +113 -0
  155. package/dist/ThemeProvider.js +1340 -0
  156. package/dist/TimeInput.cjs +31 -0
  157. package/dist/TimeInput.js +133 -0
  158. package/dist/Toggle.cjs +151 -0
  159. package/dist/Toggle.js +421 -0
  160. package/dist/TreeMenu.cjs +15 -0
  161. package/dist/TreeMenu.js +108 -0
  162. package/dist/TreeMenuSeparator.cjs +6 -0
  163. package/dist/TreeMenuSeparator.js +40 -0
  164. package/dist/UploadedFile.cjs +39 -0
  165. package/dist/UploadedFile.js +192 -0
  166. package/dist/defineProperty-BHpTtkhC.js +110 -0
  167. package/dist/defineProperty-DHvxLH8G.cjs +1 -0
  168. package/dist/emotion-element-5486c51c.browser.esm-CSejtOeT.js +886 -0
  169. package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +1 -0
  170. package/dist/emotion-is-prop-valid.esm-BzFBwmJz.js +10 -0
  171. package/dist/emotion-is-prop-valid.esm-CMrshNb7.cjs +1 -0
  172. package/dist/emotion-react.browser.esm-DQBL7Wls.cjs +1 -0
  173. package/dist/emotion-react.browser.esm-OWM-uG8Q.js +94 -0
  174. package/dist/emotion-styled.browser.esm-BZSYYThs.js +210 -0
  175. package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +1 -0
  176. package/dist/floating-ui.dom-1F2mTXOe.cjs +1 -0
  177. package/dist/floating-ui.dom-BdUovkEr.js +938 -0
  178. package/dist/hoist-non-react-statics.cjs-B8r9S_ak.cjs +15 -0
  179. package/dist/hoist-non-react-statics.cjs-Drf1aBlk.js +235 -0
  180. package/dist/index-BLQWNy78.js +109 -0
  181. package/dist/index-BP5r5zGN.cjs +1 -0
  182. package/dist/index-B_da1uvD.js +451 -0
  183. package/dist/index-BjdOz5Ok.cjs +1 -0
  184. package/dist/index-BklgDeu4.js +42 -0
  185. package/dist/index-C29T0m2a.cjs +174 -0
  186. package/dist/index-CZJEA84h.js +19069 -0
  187. package/dist/index-Cdkz-XH-.js +127 -0
  188. package/dist/index-D5vEbKUT.js +81 -0
  189. package/dist/index-DXnSjbfJ.cjs +20 -0
  190. package/dist/index-Ds9PUTwb.js +667 -0
  191. package/dist/index-Dzkd2i4n.cjs +1 -0
  192. package/dist/index-IO9v6o0I.cjs +5 -0
  193. package/dist/index-P-naJISQ.cjs +1 -0
  194. package/dist/index.cjs +26 -0
  195. package/dist/index.js +378 -0
  196. package/dist/motion-CtkUpWEn.js +3785 -0
  197. package/dist/motion-Oud-wpUz.cjs +1 -0
  198. package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +1 -0
  199. package/dist/objectWithoutPropertiesLoose-DwEN6RBQ.js +12 -0
  200. package/dist/setPrototypeOf-4aSEnBDm.cjs +1 -0
  201. package/dist/setPrototypeOf-a891FLQJ.js +13 -0
  202. package/dist/style.css +5 -0
  203. package/dist/tslib.es6-ZNVz5r_T.js +90 -0
  204. package/dist/tslib.es6-fPwcSa2V.cjs +1 -0
  205. package/dist/use-isomorphic-layout-effect.browser.esm-CkGv31zs.cjs +1 -0
  206. package/dist/use-isomorphic-layout-effect.browser.esm-DERp5kr6.js +5 -0
  207. package/dist/useUpdateEffect-BtMgpgIV.cjs +1 -0
  208. package/dist/useUpdateEffect-CuYWz7EA.js +15 -0
  209. package/dist/utils-DEke8iwo.js +10196 -0
  210. package/dist/utils-hdRGTsQ7.cjs +13 -0
  211. package/eslint.config.js +38 -0
  212. package/package.json +137 -58
  213. package/vite.config.js +135 -0
  214. package/jest.config.js +0 -7
  215. package/lib/index.esm.js +0 -84028
  216. package/lib/index.js +0 -84165
  217. package/rc1 +0 -0
  218. package/test/jest/__mocks__/styleMock.js +0 -1
@@ -0,0 +1,354 @@
1
+ import { jsxs as c, jsx as r, Fragment as g } from "react/jsx-runtime";
2
+ import W from "react";
3
+ import { P as e } from "./index-Ds9PUTwb.js";
4
+ import { n as y } from "./emotion-styled.browser.esm-BZSYYThs.js";
5
+ import M from "./FlexGrid.js";
6
+ import Y from "./FlexGridItem.js";
7
+ import b from "./Button.js";
8
+ import x from "./IconButton.js";
9
+ import U from "./TextInput.js";
10
+ import q from "./CheckBoxInput.js";
11
+ import H from "./RadioGroup.js";
12
+ import J from "./NumberInput.js";
13
+ import K from "./DecimalInput.js";
14
+ import L from "./PasswordInput.js";
15
+ import Q from "./TextAreaInput.js";
16
+ import X from "./TimeInput.js";
17
+ import Z from "./ColorInput.js";
18
+ import z from "./FileInput.js";
19
+ import ee from "./RangeSlider.js";
20
+ import { d as re, c as te, b as oe } from "./utils-DEke8iwo.js";
21
+ import ae from "./FormField.js";
22
+ import { u as ne } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
23
+ const ie = y.div`
24
+ display: flex;
25
+ justify-content: space-between;
26
+ `, le = y.form`
27
+ display: flex;
28
+ flex-direction: column;
29
+ gap: 1rem;
30
+ box-shadow: ${(d) => re(
31
+ d.theme,
32
+ "Popover",
33
+ d.color,
34
+ "enabled",
35
+ "boxShadow"
36
+ )};
37
+ border-radius: ${(d) => te(d.theme, d.borderRadius)};
38
+ border-top: 1px solid rgba(0, 0, 0, 0.04);
39
+ padding: 12px;
40
+ background-color: ${(d) => oe(d.theme, "Popover", "default", "enabled", "bg")};
41
+ `, de = (d, a, l, n, i, o) => {
42
+ var m;
43
+ switch (d || "") {
44
+ case "text":
45
+ return /* @__PURE__ */ r(
46
+ U,
47
+ {
48
+ name: l,
49
+ color: i,
50
+ size: o,
51
+ ...a,
52
+ defaultValue: n
53
+ }
54
+ );
55
+ case "checkbox":
56
+ return /* @__PURE__ */ r(
57
+ q,
58
+ {
59
+ color: i,
60
+ size: o,
61
+ name: l,
62
+ ...a
63
+ }
64
+ );
65
+ case "radioGroup":
66
+ return /* @__PURE__ */ r(
67
+ H,
68
+ {
69
+ color: i,
70
+ size: o,
71
+ value: n,
72
+ radioProps: a.radioProps,
73
+ name: l,
74
+ items: [
75
+ ...(m = a.items) == null ? void 0 : m.map((s) => ({ value: s.value, label: s.label }))
76
+ ]
77
+ }
78
+ );
79
+ case "number":
80
+ return /* @__PURE__ */ r(
81
+ J,
82
+ {
83
+ color: i,
84
+ size: o,
85
+ name: l,
86
+ ...a,
87
+ defaultValue: n
88
+ }
89
+ );
90
+ case "decimal":
91
+ return /* @__PURE__ */ r(
92
+ K,
93
+ {
94
+ name: l,
95
+ color: i,
96
+ size: o,
97
+ ...a,
98
+ defaultValue: n
99
+ }
100
+ );
101
+ case "file":
102
+ return /* @__PURE__ */ r(
103
+ z,
104
+ {
105
+ name: l,
106
+ color: i,
107
+ size: o,
108
+ ...a,
109
+ defaultValue: n
110
+ }
111
+ );
112
+ case "password":
113
+ return /* @__PURE__ */ r(
114
+ L,
115
+ {
116
+ name: l,
117
+ color: i,
118
+ ...a,
119
+ defaultValue: n
120
+ }
121
+ );
122
+ case "textArea":
123
+ return /* @__PURE__ */ r(
124
+ Q,
125
+ {
126
+ name: l,
127
+ color: i,
128
+ size: o,
129
+ ...a,
130
+ defaultValue: n
131
+ }
132
+ );
133
+ case "time":
134
+ return /* @__PURE__ */ r(
135
+ X,
136
+ {
137
+ name: l,
138
+ color: i,
139
+ size: o,
140
+ ...a,
141
+ defaultValue: n
142
+ }
143
+ );
144
+ case "color":
145
+ return /* @__PURE__ */ r(
146
+ Z,
147
+ {
148
+ name: l,
149
+ color: i,
150
+ size: o,
151
+ ...a,
152
+ defaultValue: n
153
+ }
154
+ );
155
+ case "range":
156
+ return /* @__PURE__ */ r(
157
+ ee,
158
+ {
159
+ name: l,
160
+ color: i,
161
+ size: o,
162
+ ...a,
163
+ defaultValue: n
164
+ }
165
+ );
166
+ default:
167
+ return n;
168
+ }
169
+ }, h = W.forwardRef((d, a) => {
170
+ const {
171
+ __TYPE__: l = "FORM_VIEW",
172
+ goToPreviousView: n,
173
+ id: i,
174
+ data: o,
175
+ fields: m = [],
176
+ errors: s = {},
177
+ flexGridProps: T,
178
+ goBackText: k = "Go back",
179
+ backActive: v = !0,
180
+ nextActive: I = !0,
181
+ previousActive: V = !0,
182
+ editActive: se,
183
+ disableGoBack: w = !1,
184
+ disableNext: _ = !1,
185
+ disablePrevious: B = !1,
186
+ disableEdit: ce,
187
+ disableDiscard: C = !1,
188
+ disableSave: A = !1,
189
+ discardText: F = "Discard",
190
+ saveText: G = "Save",
191
+ //------------------
192
+ goToNext: R = () => {
193
+ },
194
+ goToPrevious: S = () => {
195
+ },
196
+ onEdit: me = () => {
197
+ },
198
+ goBack: N = () => {
199
+ },
200
+ onSubmit: E = () => {
201
+ },
202
+ onDiscard: P = () => {
203
+ },
204
+ //------------------
205
+ className: ue = "",
206
+ style: fe = {},
207
+ color: f = "primary",
208
+ size: p = "small",
209
+ children: j,
210
+ ...D
211
+ } = d, O = ne(), $ = (t, u) => {
212
+ n && n(), N(t, u);
213
+ };
214
+ return /* @__PURE__ */ c(
215
+ le,
216
+ {
217
+ ref: a,
218
+ theme: O,
219
+ color: f,
220
+ borderRadius: "regular",
221
+ ...D,
222
+ children: [
223
+ v && /* @__PURE__ */ r(
224
+ b,
225
+ {
226
+ leadingIcon: "arrow-circle-left",
227
+ text: k,
228
+ btnType: "outline",
229
+ style: { width: "fit-content" },
230
+ onClick: (t) => $(t, o),
231
+ disabled: w,
232
+ type: "button"
233
+ },
234
+ 0
235
+ ),
236
+ /* @__PURE__ */ r(g, { children: j || /* @__PURE__ */ r(M, { spacing: 10, ...T, children: m.map((t, u) => /* @__PURE__ */ r(Y, { ...t, children: /* @__PURE__ */ r(
237
+ ae,
238
+ {
239
+ label: t.label,
240
+ text: s[t.accessor],
241
+ color: s[t.accessor] ? "danger" : f,
242
+ size: p,
243
+ children: t.type == "custom" ? t.element : de(
244
+ t.type,
245
+ t.inputProps,
246
+ t.accessor,
247
+ o[t.accessor],
248
+ s[t.accessor] ? "danger" : f,
249
+ p
250
+ )
251
+ },
252
+ u
253
+ ) }, u)) }) }),
254
+ /* @__PURE__ */ c(ie, { children: [
255
+ /* @__PURE__ */ c("div", { children: [
256
+ I && /* @__PURE__ */ c(g, { children: [
257
+ /* @__PURE__ */ r(
258
+ x,
259
+ {
260
+ btnType: "outline",
261
+ icon: "angle-left",
262
+ disabled: B,
263
+ onClick: (t) => S(o, t),
264
+ type: "button"
265
+ }
266
+ ),
267
+ "  "
268
+ ] }),
269
+ V && /* @__PURE__ */ r(
270
+ x,
271
+ {
272
+ btnType: "outline",
273
+ icon: "angle-right",
274
+ disabled: _,
275
+ onClick: (t) => R(o, t),
276
+ type: "button"
277
+ }
278
+ )
279
+ ] }),
280
+ /* @__PURE__ */ c("div", { children: [
281
+ /* @__PURE__ */ r(
282
+ b,
283
+ {
284
+ leadingIcon: "eraser",
285
+ btnType: "outline",
286
+ color: "warning",
287
+ text: F,
288
+ disabled: C,
289
+ onClick: P,
290
+ type: "button"
291
+ }
292
+ ),
293
+ "  ",
294
+ /* @__PURE__ */ r(
295
+ b,
296
+ {
297
+ leadingIcon: "floppy-disk",
298
+ btnType: "tinted",
299
+ color: "success",
300
+ text: G,
301
+ disabled: A,
302
+ onClick: E
303
+ }
304
+ )
305
+ ] })
306
+ ] })
307
+ ]
308
+ },
309
+ i
310
+ );
311
+ });
312
+ h.propTypes = {
313
+ __TYPE__: e.string,
314
+ goBackText: e.string,
315
+ fields: e.array,
316
+ data: e.object,
317
+ errors: e.object,
318
+ backActive: e.bool,
319
+ nextActive: e.bool,
320
+ disableGoBack: e.bool,
321
+ disableNext: e.bool,
322
+ disablePrevious: e.bool,
323
+ previousActive: e.bool,
324
+ editActive: e.bool,
325
+ flexGridProps: e.any,
326
+ disableDiscard: e.bool,
327
+ disableSave: e.bool,
328
+ discardText: e.string,
329
+ saveText: e.string,
330
+ //-----------------------------------------------------------
331
+ goToNext: e.func,
332
+ goToPrevious: e.func,
333
+ onEdit: e.func,
334
+ goBack: e.func,
335
+ onSubmit: e.func,
336
+ //------------------------------------------------------------
337
+ className: e.string,
338
+ style: e.object,
339
+ color: e.oneOf([
340
+ "primary",
341
+ "secondary",
342
+ "success",
343
+ "warning",
344
+ "danger",
345
+ "information",
346
+ "neutral",
347
+ "gray"
348
+ ]),
349
+ size: e.oneOf(["small", "medium", "large"])
350
+ };
351
+ h.displayName = "FORM_VIEW";
352
+ export {
353
+ h as default
354
+ };
package/dist/Grid.cjs ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";const w=require("react/jsx-runtime"),j=require("react"),t=require("./index-DXnSjbfJ.cjs"),G=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),I=G.newStyled.div`
2
+ display: ${e=>e.inline?"inline-grid":"grid"};
3
+ row-gap: ${e=>e.rowGap?e.rowGap:e.gap?e.gap:0};
4
+ column-gap: ${e=>e.columnGap?e.columnGap:e.gap?e.gap:0};
5
+ ${e=>e.gridTemplate&&`grid-template: ${e.gridTemplate};`}
6
+ ${e=>e.templateRows&&`grid-template-rows: ${e.templateRows};`}
7
+ ${e=>e.templateColumns&&`grid-template-columns: ${e.templateColumns};`}
8
+ ${e=>e.justifyItems&&`justify-items: ${e.justifyItems};`}
9
+ ${e=>e.alignItems&&`align-items: ${e.alignItems};`}
10
+ ${e=>e.justifyContent&&`justify-content: ${e.justifyContent};`}
11
+ ${e=>e.templateAreas&&`grid-template-areas: ${e.templateAreas};`}
12
+
13
+ `,s=j.forwardRef((e,n)=>{const{inline:a=!1,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u,children:d,className:f="",style:T={},...$}=e;var P={inline:a,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u};return w.jsx(I,{ref:n,...P,className:f,style:T,...$,children:d})});s.defaultProps={inline:!1,style:{},className:""};s.propTypes={inline:t.PropTypes.bool,template:t.PropTypes.string,templateColumns:t.PropTypes.string,templateRows:t.PropTypes.string,gap:t.PropTypes.string,rowGap:t.PropTypes.string,columnGap:t.PropTypes.string,justifyItems:t.PropTypes.oneOf(["start","end","center","stretch"]),alignItems:t.PropTypes.oneOf(["start","end","center","stretch"]),placeItems:t.PropTypes.oneOf(["start","end","center","stretch"]),justifyContent:t.PropTypes.oneOf(["start","end","center","stretch","space-between","space-evenly"]),templateAreas:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=s;
package/dist/Grid.js ADDED
@@ -0,0 +1,62 @@
1
+ import { jsx as G } from "react/jsx-runtime";
2
+ import I from "react";
3
+ import { P as e } from "./index-Ds9PUTwb.js";
4
+ import { n as C } from "./emotion-styled.browser.esm-BZSYYThs.js";
5
+ const R = C.div`
6
+ display: ${(t) => t.inline ? "inline-grid" : "grid"};
7
+ row-gap: ${(t) => t.rowGap ? t.rowGap : t.gap ? t.gap : 0};
8
+ column-gap: ${(t) => t.columnGap ? t.columnGap : t.gap ? t.gap : 0};
9
+ ${(t) => t.gridTemplate && `grid-template: ${t.gridTemplate};`}
10
+ ${(t) => t.templateRows && `grid-template-rows: ${t.templateRows};`}
11
+ ${(t) => t.templateColumns && `grid-template-columns: ${t.templateColumns};`}
12
+ ${(t) => t.justifyItems && `justify-items: ${t.justifyItems};`}
13
+ ${(t) => t.alignItems && `align-items: ${t.alignItems};`}
14
+ ${(t) => t.justifyContent && `justify-content: ${t.justifyContent};`}
15
+ ${(t) => t.templateAreas && `grid-template-areas: ${t.templateAreas};`}
16
+
17
+ `, a = I.forwardRef((t, s) => {
18
+ const {
19
+ inline: n = !1,
20
+ template: l,
21
+ templateColumns: i,
22
+ templateRows: m,
23
+ gap: r,
24
+ rowGap: o,
25
+ columnGap: g,
26
+ justifyItems: c,
27
+ alignItems: p,
28
+ justifyContent: f,
29
+ templateAreas: d,
30
+ children: u,
31
+ className: y = "",
32
+ style: $ = {},
33
+ ...w
34
+ } = t;
35
+ var j = { inline: n, template: l, templateColumns: i, templateRows: m, gap: r, rowGap: o, columnGap: g, justifyItems: c, alignItems: p, justifyContent: f, templateAreas: d };
36
+ return /* @__PURE__ */ G(R, { ref: s, ...j, className: y, style: $, ...w, children: u });
37
+ });
38
+ a.defaultProps = {
39
+ inline: !1,
40
+ style: {},
41
+ className: ""
42
+ };
43
+ a.propTypes = {
44
+ inline: e.bool,
45
+ template: e.string,
46
+ templateColumns: e.string,
47
+ templateRows: e.string,
48
+ gap: e.string,
49
+ rowGap: e.string,
50
+ columnGap: e.string,
51
+ justifyItems: e.oneOf(["start", "end", "center", "stretch"]),
52
+ alignItems: e.oneOf(["start", "end", "center", "stretch"]),
53
+ placeItems: e.oneOf(["start", "end", "center", "stretch"]),
54
+ justifyContent: e.oneOf(["start", "end", "center", "stretch", "space-between", "space-evenly"]),
55
+ templateAreas: e.string,
56
+ //-------------
57
+ style: e.object,
58
+ className: e.string
59
+ };
60
+ export {
61
+ a as default
62
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";const f=require("react/jsx-runtime"),p=require("react"),t=require("./index-DXnSjbfJ.cjs"),T=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),P=T.newStyled.div`
2
+ display: ${e=>e.inline?"inline-grid":"grid"};
3
+ row-gap: ${e=>e.rowGap?e.rowGap:e.gap?e.gap:0};
4
+ column-gap: ${e=>e.columnGap?e.columnGap:e.gap?e.gap:0};
5
+ ${e=>e.gridTemplate&&`grid-template: ${e.gridTemplate};`}
6
+ ${e=>e.templateRows&&`grid-template-rows: ${e.templateRows};`}
7
+ ${e=>e.templateColumns&&`grid-template-columns: ${e.templateColumns};`}
8
+ ${e=>e.justifySelf&&`justify-self: ${e.justifySelf};`}
9
+ ${e=>e.alignSelf&&`align-self: ${e.alignSelf};`}
10
+ ${e=>e.area&&`grid-area: ${e.area};`}
11
+ ${e=>e.colStart&&`grid-column-start: ${e.colStart};`}
12
+ ${e=>(e.colEnd||e.colSpan)&&`grid-column-end: span ${e.colEnd||e.colSpan};`}
13
+ ${e=>e.rowStart&&`grid-row-start: ${e.rowStart};`}
14
+ ${e=>(e.rowEnd||e.rowSpan)&&`grid-row-end: span ${e.rowEnd||e.rowSpan};`}
15
+ `,r=p.forwardRef((e,a)=>{const{colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:S,className:g="",style:u={},children:w,...y}=e;var $={colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:S};return f.jsx(P,{ref:a,...$,className:g,style:u,...y,children:w})});r.propTypes={colStart:t.PropTypes.number,colEnd:t.PropTypes.number,rowStart:t.PropTypes.number,rowEnd:t.PropTypes.number,colSpan:t.PropTypes.number,rowSpan:t.PropTypes.number,justifySelf:t.PropTypes.oneOf(["start","end","center","stretch"]),alignSelf:t.PropTypes.oneOf(["start","end","center","stretch"]),area:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=r;
@@ -0,0 +1,72 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import y from "react";
3
+ import { P as t } from "./index-Ds9PUTwb.js";
4
+ import { n as E } from "./emotion-styled.browser.esm-BZSYYThs.js";
5
+ const b = E.div`
6
+ display: ${(e) => e.inline ? "inline-grid" : "grid"};
7
+ row-gap: ${(e) => e.rowGap ? e.rowGap : e.gap ? e.gap : 0};
8
+ column-gap: ${(e) => e.columnGap ? e.columnGap : e.gap ? e.gap : 0};
9
+ ${(e) => e.gridTemplate && `grid-template: ${e.gridTemplate};`}
10
+ ${(e) => e.templateRows && `grid-template-rows: ${e.templateRows};`}
11
+ ${(e) => e.templateColumns && `grid-template-columns: ${e.templateColumns};`}
12
+ ${(e) => e.justifySelf && `justify-self: ${e.justifySelf};`}
13
+ ${(e) => e.alignSelf && `align-self: ${e.alignSelf};`}
14
+ ${(e) => e.area && `grid-area: ${e.area};`}
15
+ ${(e) => e.colStart && `grid-column-start: ${e.colStart};`}
16
+ ${(e) => (e.colEnd || e.colSpan) && `grid-column-end: span ${e.colEnd || e.colSpan};`}
17
+ ${(e) => e.rowStart && `grid-row-start: ${e.rowStart};`}
18
+ ${(e) => (e.rowEnd || e.rowSpan) && `grid-row-end: span ${e.rowEnd || e.rowSpan};`}
19
+ `, j = y.forwardRef((e, a) => {
20
+ const {
21
+ colStart: r,
22
+ colEnd: n,
23
+ rowStart: l,
24
+ rowEnd: o,
25
+ colSpan: i,
26
+ rowSpan: m,
27
+ justifySelf: d,
28
+ alignSelf: c,
29
+ area: g,
30
+ className: S = "",
31
+ style: f = {},
32
+ children: $,
33
+ ...u
34
+ } = e;
35
+ var w = { colStart: r, colEnd: n, rowStart: l, rowEnd: o, colSpan: i, rowSpan: m, justifySelf: d, alignSelf: c, area: g };
36
+ return /* @__PURE__ */ s(b, { ref: a, ...w, className: S, style: f, ...u, children: $ });
37
+ });
38
+ j.propTypes = {
39
+ /**
40
+ * start the element at the columnStart column position
41
+ */
42
+ colStart: t.number,
43
+ /**
44
+ * end the element at the columnEnd column position
45
+ */
46
+ colEnd: t.number,
47
+ /**
48
+ * start the element at the rowStart row position
49
+ */
50
+ rowStart: t.number,
51
+ /**
52
+ * end the element at the rowStart row position
53
+ */
54
+ rowEnd: t.number,
55
+ /**
56
+ * span specific amount of columns
57
+ */
58
+ colSpan: t.number,
59
+ /**
60
+ * span specific amount of rows
61
+ */
62
+ rowSpan: t.number,
63
+ justifySelf: t.oneOf(["start", "end", "center", "stretch"]),
64
+ alignSelf: t.oneOf(["start", "end", "center", "stretch"]),
65
+ area: t.string,
66
+ //-------------
67
+ style: t.object,
68
+ className: t.string
69
+ };
70
+ export {
71
+ j as default
72
+ };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("react/jsx-runtime"),o=require("react"),a=require("./index-DXnSjbfJ.cjs"),e=o.forwardRef((r,s)=>{const{children:t,__TYPE__:c="Header",...n}=r;return i.jsx("header",{ref:s,...n,children:t})});e.propTypes={__TYPE__:a.PropTypes.string};e.displayName="Header";module.exports=e;
package/dist/Header.js ADDED
@@ -0,0 +1,18 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import s from "react";
3
+ import { P as _ } from "./index-Ds9PUTwb.js";
4
+ const r = s.forwardRef((e, a) => {
5
+ const { children: o, __TYPE__: d = "Header", ...t } = e;
6
+ return /* @__PURE__ */ p("header", { ref: a, ...t, children: o });
7
+ });
8
+ r.propTypes = {
9
+ /**
10
+ * Do not override this property.
11
+ * Should only be used as indicator for type if you are passing custom component.
12
+ */
13
+ __TYPE__: _.string
14
+ };
15
+ r.displayName = "Header";
16
+ export {
17
+ r as default
18
+ };
package/dist/Icon.cjs ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";const n=require("react/jsx-runtime"),z=require("react");;/* empty css */const s=require("./index-DXnSjbfJ.cjs"),P=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-hdRGTsQ7.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),I=P.newStyled.span`
2
+ box-sizing: border-box;
3
+ ${e=>e.sizeInUnits&&e.sizeInUnits!=""?`font-size: ${e.sizeInUnits}`:o.getComponentTypographyCss(e.theme,"Icon",e.size,"enabled")};
4
+ ${e=>e.color&&`color: ${o.getColorRgbaValue(e.theme,"Icon",e.color,"enabled","icon")}`};
5
+ display: inline-flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ `,t=z.forwardRef((e,r)=>{const{id:h="",icon:i="",iconStyle:c="solid",tooltip:l="",sizeInUnits:a="",size:y="small",color:m,className:u="",style:d={},...p}=e,g={theme:b.useTheme(),size:y,color:m,sizeInUnits:a},f=()=>{var T=c==="solid"?"fas":"far";return`${T} fa-${i} fa-fw`};return n.jsx(I,{ref:r,...g,tooltip:l,className:u,style:d,...p,children:n.jsx("i",{"data-control":!!e["data-control"],className:f()})})});t.propTypes={id:s.PropTypes.string,icon:s.PropTypes.string,iconStyle:s.PropTypes.oneOf(["solid","regular"]),tooltip:s.PropTypes.string,className:s.PropTypes.string,style:s.PropTypes.object,size:s.PropTypes.oneOf(["small","medium","large"]),sizeInUnits:s.PropTypes.string,color:s.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=t;
package/dist/Icon.js ADDED
@@ -0,0 +1,59 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import z from "react";
3
+ /* empty css */
4
+ import { P as o } from "./index-Ds9PUTwb.js";
5
+ import { n as p } from "./emotion-styled.browser.esm-BZSYYThs.js";
6
+ import { a as I, b } from "./utils-DEke8iwo.js";
7
+ import { u as h } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
8
+ const $ = p.span`
9
+ box-sizing: border-box;
10
+ ${(e) => e.sizeInUnits && e.sizeInUnits != "" ? `font-size: ${e.sizeInUnits}` : I(e.theme, "Icon", e.size, "enabled")};
11
+ ${(e) => e.color && `color: ${b(e.theme, "Icon", e.color, "enabled", "icon")}`};
12
+ display: inline-flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ `, x = z.forwardRef((e, n) => {
16
+ const {
17
+ id: U = "",
18
+ icon: s = "",
19
+ iconStyle: i = "solid",
20
+ tooltip: r = "",
21
+ sizeInUnits: a = "",
22
+ size: l = "small",
23
+ color: c,
24
+ className: m = "",
25
+ style: f = {},
26
+ ...d
27
+ } = e, g = { theme: h(), size: l, color: c, sizeInUnits: a }, y = () => {
28
+ var u = i === "solid" ? "fas" : "far";
29
+ return `${u} fa-${s} fa-fw`;
30
+ };
31
+ return /* @__PURE__ */ t($, { ref: n, ...g, tooltip: r, className: m, style: f, ...d, children: /* @__PURE__ */ t("i", { "data-control": !!e["data-control"], className: y() }) });
32
+ });
33
+ x.propTypes = {
34
+ id: o.string,
35
+ icon: o.string,
36
+ iconStyle: o.oneOf(["solid", "regular"]),
37
+ tooltip: o.string,
38
+ //----------------
39
+ className: o.string,
40
+ style: o.object,
41
+ size: o.oneOf(["small", "medium", "large"]),
42
+ /**
43
+ Size in one of the css units (px, rem, em, ... ), sizeInUnits overrides size property
44
+ */
45
+ sizeInUnits: o.string,
46
+ color: o.oneOf([
47
+ "primary",
48
+ "secondary",
49
+ "success",
50
+ "danger",
51
+ "warning",
52
+ "information",
53
+ "neutral",
54
+ "gray"
55
+ ])
56
+ };
57
+ export {
58
+ x as default
59
+ };