@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
package/dist/Modal.js ADDED
@@ -0,0 +1,372 @@
1
+ import { jsx as t, Fragment as w, jsxs as S } from "react/jsx-runtime";
2
+ import U, { useRef as W, useState as X, useImperativeHandle as V } from "react";
3
+ import { P as o } from "./index-Ds9PUTwb.js";
4
+ import { n as O } from "./emotion-styled.browser.esm-BZSYYThs.js";
5
+ import q from "./Icon.js";
6
+ import { b as L } from "./utils-DEke8iwo.js";
7
+ import { r as J } from "./index-CZJEA84h.js";
8
+ import { m as z } from "./motion-CtkUpWEn.js";
9
+ import { u as K } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
10
+ import { A as D } from "./index-BLQWNy78.js";
11
+ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FULL" ? `calc(100dvh - ${h} - ${u})` : `calc(100dvh - ${h} - ${u} - ${a})` : r ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${a})` : n ? e == "FULL" ? `calc(100dvh - ${u})` : `calc(100dvh - ${u} - ${a})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${a})`, Y = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${a})`, Z = (e, r, n) => e == "FULL" ? "0" : `${r ? "0" : "16px"} 0 ${n ? "0" : "16px"} 0`, P = O(z.div)`
12
+ position: ${(e) => e.scrollOverlay == !0 ? "absolute" : "fixed"};
13
+ top: 0;
14
+ left: 0;
15
+ width: 100%;
16
+ height: 100%;
17
+ background: ${(e) => e.scrollOverlay === !0 ? "transparent" : e.overlayColor};
18
+ z-index: ${(e) => e.zIndex};
19
+ display: flex;
20
+ `, ee = O(z.div)`
21
+ position: relative;
22
+ width: 50%;
23
+ background-color: white;
24
+ ${(e) => e.scrollOverlay == !1 ? "position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" : "height: fit-content; margin-right: auto; margin-left: auto;"}
25
+ background-color: ${(e) => L(e.theme, "Modal", "default", "enabled", "bg")};
26
+ z-index: ${(e) => e.zIndex};
27
+ width: ${(e) => ne[e.size.toUpperCase()]};
28
+ max-width: ${(e) => Y(e.size.toUpperCase())};
29
+ box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
30
+ 0px 10px 10px -5px rgba(0, 0, 0, 0.04);
31
+ border-radius: ${(e) => e.size.toUpperCase() != "FULL" ? "16px" : "0"};
32
+ display: flex;
33
+ flex-direction: column;
34
+ gap: 0.5rem;
35
+
36
+ & .lnc-modal-header {
37
+ max-height: ${h};
38
+ overflow: hidden;
39
+ padding: ${a} ${a} 0 ${a};
40
+ }
41
+ & .lnc-modal-header > h1,
42
+ h2,
43
+ h3 {
44
+ margin: 0;
45
+ }
46
+ & .lnc-modal-footer {
47
+ max-height: ${u};
48
+ overflow: hidden;
49
+ padding-top: 1rem;
50
+ }
51
+ ${(e) => e.size.toUpperCase() == "FULL" && "height: 100dvh"};
52
+
53
+ & .lnc-modal-content {
54
+ display: flex;
55
+ flex-direction: column;
56
+ justify-content: space-between;
57
+ scrollbar-width: thin;
58
+ ${(e) => e.scrollOverlay == !1 && `max-height: ${Q(
59
+ e.size.toUpperCase(),
60
+ e.header,
61
+ e.footer
62
+ )};`}
63
+ overflow: auto;
64
+ margin: ${(e) => Z(e.size, e.header, e.footer)};
65
+ padding: 0 ${a} 0 ${a};
66
+ }
67
+ `, oe = O.div`
68
+ position: absolute;
69
+ cursor: pointer;
70
+ top: 1.375rem;
71
+ right: 1.375rem;
72
+ color: ${(e) => L(
73
+ e.theme,
74
+ "Modal",
75
+ "primary",
76
+ "enabled",
77
+ "cancelButton"
78
+ )};
79
+ height: 1.5rem;
80
+ width: 1.5rem;
81
+ display: flex;
82
+ justify-content: center;
83
+ align-items: center;
84
+ border-radius: 4px;
85
+ & i {
86
+ font-size: 1.125rem;
87
+ }
88
+
89
+ &:hover {
90
+ background-color: ${(e) => L(
91
+ e.theme,
92
+ "Modal",
93
+ "primary",
94
+ "hover",
95
+ "cancelBtnBg",
96
+ "cancelBtnBgOpacity"
97
+ )};
98
+ }
99
+ &:focus {
100
+ background-color: ${(e) => L(
101
+ e.theme,
102
+ "Modal",
103
+ "primary",
104
+ "focus",
105
+ "cancelBtnBg",
106
+ "cancelBtnBgOpacity"
107
+ )};
108
+ }
109
+ `, te = O(z.div)`
110
+ display: ${(e) => e.scrollOverlay === !0 ? "block" : "none"};
111
+ position: fixed;
112
+ top: 0;
113
+ left: 0;
114
+ height: 100%;
115
+ width: 100%;
116
+ background-color: ${(e) => e.overlayColor};
117
+ z-index: 3;
118
+ `, re = U.forwardRef((e, r) => {
119
+ const {
120
+ portalElement: n = document.body,
121
+ isOpen: c = !1,
122
+ header: d,
123
+ footer: l,
124
+ scrollOverlay: i = !1,
125
+ overlay: s = !0,
126
+ overlayColor: m = "rgba(0, 0, 0, 0.3)",
127
+ showCloseButton: p = !0,
128
+ onOpen: g = () => {
129
+ },
130
+ onClose: x = () => {
131
+ },
132
+ zIndex: C = 1e3,
133
+ size: y = "fluid",
134
+ clickOutsideToClose: $ = !0,
135
+ className: v = "",
136
+ style: _ = {},
137
+ overlayProps: M,
138
+ overlayAnimation: k = {
139
+ animate: { opacity: 1 },
140
+ exit: { opacity: 0 },
141
+ initial: {
142
+ opacity: 0
143
+ },
144
+ transition: { type: "spring", duration: 0.6 }
145
+ },
146
+ modalAnimation: F = {
147
+ animate: { opacity: 1 },
148
+ exit: { opacity: 0 },
149
+ initial: {
150
+ opacity: 0
151
+ },
152
+ transition: { type: "spring", duration: 0.6 }
153
+ },
154
+ children: B,
155
+ rest: T
156
+ } = e, I = W(), [N, R] = X(c);
157
+ let E = { theme: K(), size: y, zIndex: C, className: v, style: _ };
158
+ const j = (f) => {
159
+ f.target === f.currentTarget && $ && b(f);
160
+ };
161
+ V(r, () => ({
162
+ open() {
163
+ G();
164
+ },
165
+ close() {
166
+ b();
167
+ },
168
+ isOpen() {
169
+ return N;
170
+ }
171
+ }));
172
+ const G = (f) => {
173
+ R(!0), g(f);
174
+ }, b = (f) => {
175
+ R(!1), x(f);
176
+ };
177
+ return /* @__PURE__ */ t(w, { children: N && /* @__PURE__ */ t(w, { children: n ? /* @__PURE__ */ t(w, { children: J.createPortal(
178
+ /* @__PURE__ */ t(
179
+ A,
180
+ {
181
+ ref: I,
182
+ overlay: s,
183
+ scrollOverlay: i,
184
+ onClickOutsideModal: j,
185
+ overlayColor: m,
186
+ overlayProps: M,
187
+ overlayAnimation: k,
188
+ modalAnimation: F,
189
+ themeProps: E,
190
+ showCloseButton: p,
191
+ close: b,
192
+ header: d,
193
+ footer: l,
194
+ isOpen: c,
195
+ ...T,
196
+ children: B
197
+ }
198
+ ),
199
+ n
200
+ ) }) : /* @__PURE__ */ t(
201
+ A,
202
+ {
203
+ ref: I,
204
+ overlay: s,
205
+ scrollOverlay: i,
206
+ onClickOutsideModal: j,
207
+ overlayColor: m,
208
+ overlayProps: M,
209
+ overlayAnimation: k,
210
+ modalAnimation: F,
211
+ themeProps: E,
212
+ showCloseButton: p,
213
+ close: b,
214
+ header: d,
215
+ footer: l,
216
+ isOpen: c,
217
+ ...T,
218
+ children: B
219
+ }
220
+ ) }) });
221
+ }), A = U.forwardRef(
222
+ ({
223
+ overlay: e,
224
+ scrollOverlay: r,
225
+ onClickOutsideModal: n,
226
+ overlayColor: c,
227
+ overlayProps: d,
228
+ overlayAnimation: l,
229
+ modalAnimation: i,
230
+ themeProps: s,
231
+ showCloseButton: m,
232
+ header: p,
233
+ footer: g,
234
+ close: x,
235
+ isOpen: C,
236
+ children: y,
237
+ ...$
238
+ }, v) => /* @__PURE__ */ t(D, { children: e ? /* @__PURE__ */ S(w, { children: [
239
+ /* @__PURE__ */ t(
240
+ te,
241
+ {
242
+ scrollOverlay: r,
243
+ onClick: n,
244
+ overlayColor: c,
245
+ ...d,
246
+ ...l
247
+ }
248
+ ),
249
+ /* @__PURE__ */ t(
250
+ P,
251
+ {
252
+ ...s,
253
+ onClick: n,
254
+ scrollOverlay: r,
255
+ overlayColor: c,
256
+ isOpen: C,
257
+ ...d,
258
+ ...l,
259
+ children: /* @__PURE__ */ t(
260
+ H,
261
+ {
262
+ ref: v,
263
+ themeProps: s,
264
+ scrollOverlay: r,
265
+ modalAnimation: i,
266
+ showCloseButton: m,
267
+ close: x,
268
+ header: p,
269
+ footer: g,
270
+ ...$,
271
+ children: y
272
+ }
273
+ )
274
+ }
275
+ )
276
+ ] }) : /* @__PURE__ */ t(
277
+ H,
278
+ {
279
+ ref: v,
280
+ themeProps: s,
281
+ modalAnimation: i,
282
+ showCloseButton: m,
283
+ close: x,
284
+ header: p,
285
+ footer: g,
286
+ ...$,
287
+ children: y
288
+ }
289
+ ) })
290
+ ), H = U.forwardRef(
291
+ ({
292
+ themeProps: e,
293
+ scrollOverlay: r,
294
+ modalAnimation: n,
295
+ showCloseButton: c,
296
+ close: d,
297
+ header: l,
298
+ footer: i,
299
+ children: s,
300
+ ...m
301
+ }, p) => /* @__PURE__ */ t(D, { children: /* @__PURE__ */ S(
302
+ ee,
303
+ {
304
+ ref: p,
305
+ ...e,
306
+ ...n,
307
+ header: l,
308
+ footer: i,
309
+ scrollOverlay: r,
310
+ ...m,
311
+ className: `modal-lnc-container ${e == null ? void 0 : e.className}`,
312
+ children: [
313
+ c && /* @__PURE__ */ t(
314
+ oe,
315
+ {
316
+ ...e,
317
+ className: "modal-lnc-times",
318
+ onClick: d,
319
+ children: /* @__PURE__ */ t(q, { icon: "times" })
320
+ }
321
+ ),
322
+ l && /* @__PURE__ */ t("div", { className: "lnc-modal-header", children: l }),
323
+ /* @__PURE__ */ t("div", { className: "lnc-modal-content", children: s }),
324
+ i && /* @__PURE__ */ t("div", { className: "lnc-modal-footer", children: i })
325
+ ]
326
+ }
327
+ ) })
328
+ );
329
+ re.propTypes = {
330
+ /**
331
+ * If the value is given modal will use createPortal to be rendered in portalElement
332
+ */
333
+ portalElement: o.any,
334
+ /**
335
+ * Is modal open by default
336
+ */
337
+ isOpen: o.bool,
338
+ header: o.oneOfType([o.string, o.element]),
339
+ footer: o.oneOfType([o.string, o.element]),
340
+ showCloseButton: o.bool,
341
+ overlay: o.bool,
342
+ /**
343
+ * when scrollOverlay=false whole modal contetn will be shown inside viewport and modal content will be scrollable,
344
+ * when scrollOverlay=true modal content won't be scrollable it will be fully shown inside overlay which will be scrollable
345
+ * to use this prop `overlay` must be set to `true`
346
+ * Make sure when setting `scrollOverlay={true} that the parent element has `position: relative`;
347
+ */
348
+ scrollOverlay: o.bool,
349
+ onOpen: o.func,
350
+ onClose: o.func,
351
+ zIndex: o.number,
352
+ clickOutsideToClose: o.bool,
353
+ overlayColor: o.string,
354
+ overlayAnimation: o.object,
355
+ modalAnimation: o.object,
356
+ className: o.string,
357
+ style: o.object,
358
+ size: o.oneOf(["fluid", "xs", "s", "m", "l", "xl", "full"]),
359
+ overlayProps: o.any
360
+ };
361
+ const ne = {
362
+ FLUID: "max-content",
363
+ XS: "320px",
364
+ S: "412px",
365
+ M: "672px",
366
+ L: "1112px",
367
+ XL: "1376px",
368
+ FULL: "100vw"
369
+ };
370
+ export {
371
+ re as default
372
+ };
@@ -0,0 +1 @@
1
+ "use strict";const g=require("react/jsx-runtime"),e=require("./index-DXnSjbfJ.cjs"),s=require("react"),O=require("./CustomStyles-CqlCjTgU.cjs"),h=require("./index-BjdOz5Ok.cjs"),M=require("./Dropdown.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),r=s.forwardRef((n,t)=>{const{styles:p,debounceTime:l=180,isSearchable:u=!0,isClearable:y=!0,onInputChange:o,size:i="small",color:c="primary",className:a="",style:T={},...P}=n,b=S.useTheme(),m=s.useCallback(h.debounce((d,f)=>{o==null||o(d,f)},l));return g.jsx(M.default,{isMulti:!0,ref:t,styles:p||O.customStyles,size:i,color:c,theme:b,isSearchable:u,isClearable:y,onInputChange:m,className:a,style:T,...P})});r.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.string,inputId:e.PropTypes.string,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onKeyDown:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=r;
@@ -0,0 +1,261 @@
1
+ import { jsx as O } from "react/jsx-runtime";
2
+ import { P as e } from "./index-Ds9PUTwb.js";
3
+ import y, { useCallback as h } from "react";
4
+ import { a as M } from "./CustomStyles-nfD3J1mi.js";
5
+ import { d as S } from "./index-D5vEbKUT.js";
6
+ import C from "./Dropdown.js";
7
+ import { u as I } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
8
+ const w = y.forwardRef((l, t) => {
9
+ const {
10
+ // options,
11
+ styles: n,
12
+ debounceTime: s = 180,
13
+ // name,
14
+ // hideSelectedOptions,
15
+ // id,
16
+ // inputId,
17
+ // value,
18
+ // readOnly,
19
+ // tabIndex,
20
+ isSearchable: u = !0,
21
+ isClearable: a = !0,
22
+ // isLoading,
23
+ // isRtl,
24
+ // isDisabled,
25
+ // closeMenuOnSelect,
26
+ // closeMenuOnScroll,
27
+ // escapeClearsValue,
28
+ // filterOption,
29
+ // formatGroupLabel,
30
+ // formatOptionLabel,
31
+ // getOptionLabel,
32
+ // getOptionValue,
33
+ // isOptionDisabled,
34
+ // isOptionSelected,
35
+ // loadingMessage,
36
+ // minMenuHeight,
37
+ // maxMenuHeight,
38
+ // menuPlacement,
39
+ // menuPosition,
40
+ // menuShouldBlockScroll,
41
+ // menuShouldScrollIntoView,
42
+ // openMenuOnFocus,
43
+ // openMenuOnClick,
44
+ // autoFocus,
45
+ // placeholder,
46
+ // noOptionsMessage,
47
+ // menuIsOpen,
48
+ // components,
49
+ // defaultValue,
50
+ // defaultInputValue,
51
+ // defaultMenuIsOpen,
52
+ // delimiter,
53
+ // onChange,
54
+ onInputChange: o,
55
+ // onMenuOpen,
56
+ // onMenuClose,
57
+ // onBlur,
58
+ // onFocus,
59
+ // onKeyDown,
60
+ size: r = "small",
61
+ color: i = "primary",
62
+ className: c = "",
63
+ style: m = {},
64
+ // children,
65
+ ...p
66
+ } = l, b = I(), f = h(
67
+ S((d, g) => {
68
+ o == null || o(d, g);
69
+ }, s)
70
+ );
71
+ return /* @__PURE__ */ O(
72
+ C,
73
+ {
74
+ isMulti: !0,
75
+ ref: t,
76
+ styles: n || M,
77
+ size: r,
78
+ color: i,
79
+ theme: b,
80
+ isSearchable: u,
81
+ isClearable: a,
82
+ onInputChange: f,
83
+ className: c,
84
+ style: m,
85
+ ...p
86
+ }
87
+ );
88
+ });
89
+ w.propTypes = {
90
+ options: e.array,
91
+ styles: e.object,
92
+ debounceTime: e.number,
93
+ name: e.string,
94
+ value: e.any,
95
+ /**
96
+ * Sets the tabIndex attribute on the input
97
+ */
98
+ tabIndex: e.number,
99
+ /**
100
+ * Whether to enable search functionality
101
+ */
102
+ isSearchable: e.bool,
103
+ isClearable: e.bool,
104
+ /**
105
+ * Is the select in a state of loading (async)
106
+ */
107
+ isLoading: e.bool,
108
+ /**
109
+ * Is the select direction right-to-left
110
+ */
111
+ isRtl: e.bool,
112
+ isDisabled: e.bool,
113
+ readOnly: e.bool,
114
+ /**
115
+ * Close the select menu when the user selects an option
116
+ */
117
+ closeMenuOnSelect: e.bool,
118
+ /**
119
+ * If true, close the select menu when the user scrolls the document/body.
120
+ * If a function, takes a standard javascript ScrollEvent you return a boolean:
121
+ * true => The menu closes
122
+ * false => The menu stays open
123
+ * This is useful when you have a scrollable modal and want to portal the menu out, but want to avoid graphical issues.
124
+ */
125
+ closeMenuOnScroll: e.oneOfType([e.bool, e.func]),
126
+ /**
127
+ * Clear all values when the user presses escape AND the menu is closed
128
+ */
129
+ escapeClearsValue: e.bool,
130
+ /**
131
+ * Custom method to filter whether an option should be displayed in the menu. Type: `null` or `() => boolean`
132
+ */
133
+ filterOption: e.func,
134
+ /**
135
+ * Formats group labels in the menu as React components
136
+ */
137
+ formatGroupLabel: e.func,
138
+ /**
139
+ * Formats option labels in the menu and control as React components
140
+ */
141
+ formatOptionLabel: e.func,
142
+ /**
143
+ * Resolves option data to a string to be displayed as the label by components
144
+ * Note: Failure to resolve to a string type can interfere with filtering and screen reader support.
145
+ */
146
+ getOptionLabel: e.func,
147
+ /**
148
+ * Resolves option data to a string to compare options and specify value attributes
149
+ */
150
+ getOptionValue: e.func,
151
+ /**
152
+ * Hide the selected option from the menu
153
+ */
154
+ hideSelectedOptions: e.bool,
155
+ /**
156
+ * The id to set on the SelectContainer component
157
+ */
158
+ id: e.string,
159
+ /**
160
+ * The id of the search input
161
+ */
162
+ inputId: e.string,
163
+ /**
164
+ * Override the built-in logic to detect whether an option is disabled. `(...) => boolean`
165
+ */
166
+ isOptionDisabled: e.func,
167
+ /**
168
+ * Override the built-in logic to detect whether an option is selected. `(...) => boolean`
169
+ */
170
+ isOptionSelected: e.func,
171
+ /**
172
+ * Async: Text to display when loading options `(...) => ...`
173
+ */
174
+ loadingMessage: e.func,
175
+ /**
176
+ * Minimum height of the menu before flipping
177
+ */
178
+ minMenuHeight: e.number,
179
+ /**
180
+ * Maximum height of the menu before flipping
181
+ */
182
+ maxMenuHeight: e.number,
183
+ /**
184
+ * Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
185
+ */
186
+ menuPlacement: e.oneOf(["bottom", "auto", "top"]),
187
+ /**
188
+ *The CSS position value of the menu, when "fixed" extra layout management is required.
189
+ */
190
+ menuPosition: e.oneOf(["absolute", "fixed"]),
191
+ /**
192
+ * Whether to block scroll events when the menu is open
193
+ */
194
+ menuShouldBlockScroll: e.bool,
195
+ /**
196
+ * Whether the menu should be scrolled into view when it opens
197
+ */
198
+ menuShouldScrollIntoView: e.bool,
199
+ /**
200
+ * Allows control of whether the menu is opened when the Select is focused
201
+ */
202
+ openMenuOnFocus: e.bool,
203
+ /**
204
+ * Allows control of whether the menu is opened when the Select is clicked
205
+ */
206
+ openMenuOnClick: e.bool,
207
+ //----
208
+ autoFocus: e.bool,
209
+ placeholder: e.any,
210
+ noOptionsMessage: e.string,
211
+ menuIsOpen: e.bool,
212
+ /**
213
+ * This complex object includes all the compositional components that are used in react-select. If you wish to overwrite a component, pass in an object with the appropriate namespace.
214
+ * If you only wish to restyle a component, we recommend using the styles prop instead.
215
+ */
216
+ components: e.object,
217
+ /**
218
+ * initial value of the control
219
+ */
220
+ defaultValue: e.string,
221
+ /**
222
+ * initial value of the search input
223
+ */
224
+ defaultInputValue: e.string,
225
+ /**
226
+ * initial open value of the menu
227
+ */
228
+ defaultMenuIsOpen: e.bool,
229
+ /**
230
+ * Delimiter used to join multiple values into a single HTML Input value
231
+ */
232
+ delimiter: e.string,
233
+ //---------------------------------------------------------------
234
+ onChange: e.func,
235
+ /**
236
+ * control the value of the search input (changing this will update the available options)
237
+ */
238
+ onInputChange: e.func,
239
+ onMenuOpen: e.func,
240
+ onMenuClose: e.func,
241
+ onFocus: e.func,
242
+ onBlur: e.func,
243
+ onKeyDown: e.func,
244
+ //---------------------------------------------------------------
245
+ className: e.string,
246
+ style: e.object,
247
+ color: e.oneOf([
248
+ "primary",
249
+ "secondary",
250
+ "success",
251
+ "warning",
252
+ "danger",
253
+ "information",
254
+ "neutral",
255
+ "gray"
256
+ ]),
257
+ size: e.oneOf(["small", "medium", "large"])
258
+ };
259
+ export {
260
+ w as default
261
+ };
@@ -0,0 +1 @@
1
+ "use strict";const O=require("react/jsx-runtime"),e=require("./index-DXnSjbfJ.cjs"),s=require("react"),g=require("./CustomStyles-CqlCjTgU.cjs"),h=require("./index-BjdOz5Ok.cjs"),M=require("./DropdownLookup.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),r=s.forwardRef((n,t)=>{const{styles:p,debounceTime:l=180,isSearchable:u=!0,isClearable:y=!0,onInputChange:o,size:i="small",color:c="primary",className:a="",style:T={},...P}=n,b=S.useTheme(),m=s.useCallback(h.debounce((f,d)=>{o==null||o(f,d)},l));return O.jsx(M,{isMulti:!0,ref:t,styles:p||g.customStyles,size:i,color:c,theme:b,isSearchable:u,isClearable:y,onInputChange:m,className:a,style:T,...P})});r.propTypes={defaultOptions:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.array]),cacheOptions:e.PropTypes.any,loadOptions:e.PropTypes.func,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.string,inputId:e.PropTypes.string,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onKeyDown:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=r;