@lanaco/lnc-react-ui 4.0.2 → 4.0.5

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 (233) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +55 -50
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +15 -15
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +11 -11
  7. package/dist/ActionsToolbar.cjs +2 -2
  8. package/dist/ActionsToolbar.js +16 -16
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +23 -23
  11. package/dist/Avatar.cjs +2 -2
  12. package/dist/Avatar.js +18 -21
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +21 -14
  15. package/dist/Breadcrumbs.cjs +1 -1
  16. package/dist/Breadcrumbs.js +28 -28
  17. package/dist/Button.cjs +2 -2
  18. package/dist/Button.js +21 -22
  19. package/dist/ButtonGroup.cjs +1 -1
  20. package/dist/ButtonGroup.js +10 -6
  21. package/dist/CheckBoxInput.cjs +1 -1
  22. package/dist/CheckBoxInput.js +6 -6
  23. package/dist/Chip.cjs +1 -1
  24. package/dist/Chip.js +9 -9
  25. package/dist/ColorInput.cjs +1 -1
  26. package/dist/ColorInput.js +20 -20
  27. package/dist/ConfirmationForm.cjs +1 -1
  28. package/dist/ConfirmationForm.js +58 -58
  29. package/dist/Content.cjs +1 -1
  30. package/dist/Content.js +8 -8
  31. package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
  32. package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
  33. package/dist/DataView.cjs +1 -1
  34. package/dist/DataView.js +35 -35
  35. package/dist/DateInput.cjs +4 -4
  36. package/dist/DateInput.js +491 -491
  37. package/dist/DecimalInput.cjs +1 -1
  38. package/dist/DecimalInput.js +43 -43
  39. package/dist/DetailsView.cjs +4 -4
  40. package/dist/DetailsView.js +40 -40
  41. package/dist/DoubleRangeSlider.cjs +1 -1
  42. package/dist/DoubleRangeSlider.js +33 -33
  43. package/dist/DragAndDropFile.cjs +1 -1
  44. package/dist/DragAndDropFile.js +165 -165
  45. package/dist/DragDropFiles.cjs +1 -1
  46. package/dist/DragDropFiles.js +31 -31
  47. package/dist/Drawer.cjs +1 -1
  48. package/dist/Drawer.js +47 -47
  49. package/dist/Dropdown.cjs +1 -1
  50. package/dist/Dropdown.js +39 -39
  51. package/dist/DropdownItem.cjs +1 -1
  52. package/dist/DropdownItem.js +23 -23
  53. package/dist/DropdownLookup.cjs +1 -1
  54. package/dist/DropdownLookup.js +36 -36
  55. package/dist/DropdownMenu.cjs +7 -1
  56. package/dist/DropdownMenu.js +192 -10
  57. package/dist/EditableTable.cjs +1 -1
  58. package/dist/EditableTable.js +4 -4
  59. package/dist/FileInput.cjs +1 -1
  60. package/dist/FileInput.js +24 -24
  61. package/dist/FlexBox.cjs +1 -1
  62. package/dist/FlexBox.js +14 -14
  63. package/dist/FlexGrid.cjs +1 -1
  64. package/dist/FlexGrid.js +30 -30
  65. package/dist/FlexGridItem.cjs +1 -1
  66. package/dist/FlexGridItem.js +16 -16
  67. package/dist/Footer.cjs +1 -1
  68. package/dist/Footer.js +5 -5
  69. package/dist/FormField.cjs +1 -1
  70. package/dist/FormField.js +8 -9
  71. package/dist/FormView.cjs +1 -1
  72. package/dist/FormView.js +31 -31
  73. package/dist/Grid.cjs +2 -3
  74. package/dist/Grid.js +38 -10
  75. package/dist/GridItem.cjs +2 -2
  76. package/dist/GridItem.js +29 -9
  77. package/dist/Header.cjs +1 -1
  78. package/dist/Header.js +7 -7
  79. package/dist/Icon.cjs +2 -2
  80. package/dist/Icon.js +35 -13
  81. package/dist/IconButton.cjs +1 -1
  82. package/dist/IconButton.js +51 -52
  83. package/dist/Kanban.cjs +12 -12
  84. package/dist/Kanban.js +891 -879
  85. package/dist/KanbanActionsToolbar.cjs +2 -2
  86. package/dist/KanbanActionsToolbar.js +28 -28
  87. package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
  88. package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
  89. package/dist/KanbanCard.cjs +1 -1
  90. package/dist/KanbanCard.js +5 -5
  91. package/dist/KanbanFooter.cjs +1 -1
  92. package/dist/KanbanFooter.js +40 -40
  93. package/dist/KanbanHeader.cjs +2 -2
  94. package/dist/KanbanHeader.js +46 -46
  95. package/dist/KanbanView.cjs +1 -1
  96. package/dist/KanbanView.js +27 -27
  97. package/dist/Link.cjs +1 -1
  98. package/dist/Link.js +9 -9
  99. package/dist/MenuItem.cjs +1 -1
  100. package/dist/MenuItem.js +39 -39
  101. package/dist/Modal.cjs +1 -1
  102. package/dist/Modal.js +42 -42
  103. package/dist/MultiSelectDropdown.cjs +1 -1
  104. package/dist/MultiSelectDropdown.js +6 -6
  105. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  106. package/dist/MultiSelectDropdownLookup.js +6 -6
  107. package/dist/NestedDropdownItem.cjs +1 -1
  108. package/dist/NestedDropdownItem.js +40 -40
  109. package/dist/NestedMenuItem.cjs +1 -1
  110. package/dist/NestedMenuItem.js +45 -45
  111. package/dist/Notification.cjs +1 -83
  112. package/dist/Notification.js +3 -1077
  113. package/dist/NotificationContainer.cjs +37 -0
  114. package/dist/NotificationContainer.js +162 -0
  115. package/dist/NotificationMessage.cjs +47 -0
  116. package/dist/NotificationMessage.js +133 -0
  117. package/dist/NumberInput.cjs +1 -1
  118. package/dist/NumberInput.js +17 -17
  119. package/dist/PageLayout.cjs +1 -1
  120. package/dist/PageLayout.js +32 -32
  121. package/dist/Pagination.cjs +12 -0
  122. package/dist/Pagination.js +248 -0
  123. package/dist/PasswordInput.cjs +1 -1
  124. package/dist/PasswordInput.js +33 -33
  125. package/dist/Popover.cjs +1 -0
  126. package/dist/Popover.js +36 -0
  127. package/dist/PopoverClose.cjs +1 -0
  128. package/dist/PopoverClose.js +15 -0
  129. package/dist/PopoverContent.cjs +10 -0
  130. package/dist/PopoverContent.js +68 -0
  131. package/dist/PopoverContext.cjs +1 -0
  132. package/dist/PopoverContext.js +5 -0
  133. package/dist/PopoverDescription.cjs +1 -0
  134. package/dist/PopoverDescription.js +16 -0
  135. package/dist/PopoverHeading.cjs +1 -0
  136. package/dist/PopoverHeading.js +16 -0
  137. package/dist/PopoverTrigger.cjs +1 -0
  138. package/dist/PopoverTrigger.js +38 -0
  139. package/dist/ProgressBar.cjs +1 -1
  140. package/dist/ProgressBar.js +35 -24
  141. package/dist/RadioGroup.cjs +1 -1
  142. package/dist/RadioGroup.js +13 -13
  143. package/dist/RadioInput.cjs +1 -1
  144. package/dist/RadioInput.js +10 -10
  145. package/dist/RangeSlider.cjs +1 -1
  146. package/dist/RangeSlider.js +27 -27
  147. package/dist/SearchBar.cjs +1 -1
  148. package/dist/SearchBar.js +77 -77
  149. package/dist/Separator.cjs +1 -1
  150. package/dist/Separator.js +9 -9
  151. package/dist/Sidebar.cjs +1 -1
  152. package/dist/Sidebar.js +13 -13
  153. package/dist/Spinner.cjs +1 -1
  154. package/dist/Spinner.js +25 -20
  155. package/dist/Surface.cjs +2 -2
  156. package/dist/Surface.js +14 -15
  157. package/dist/SwipeableDrawer.cjs +1 -1
  158. package/dist/SwipeableDrawer.js +18 -18
  159. package/dist/TabItem.cjs +26 -0
  160. package/dist/TabItem.js +210 -0
  161. package/dist/Table.cjs +20 -20
  162. package/dist/Table.js +13 -12
  163. package/dist/TableView.cjs +8 -1
  164. package/dist/TableView.js +238 -9
  165. package/dist/Tabs.cjs +1 -1
  166. package/dist/Tabs.js +33 -27
  167. package/dist/TextAreaInput.cjs +1 -1
  168. package/dist/TextAreaInput.js +35 -35
  169. package/dist/TextInput.cjs +1 -1
  170. package/dist/TextInput.js +24 -24
  171. package/dist/ThemeProvider.cjs +1 -1
  172. package/dist/ThemeProvider.js +85 -85
  173. package/dist/TimeInput.cjs +1 -1
  174. package/dist/TimeInput.js +13 -13
  175. package/dist/Toggle.cjs +1 -1
  176. package/dist/Toggle.js +4 -5
  177. package/dist/TreeMenu.cjs +1 -1
  178. package/dist/TreeMenu.js +57 -57
  179. package/dist/TreeMenuSeparator.cjs +3 -3
  180. package/dist/TreeMenuSeparator.js +11 -11
  181. package/dist/UploadedFile.cjs +1 -1
  182. package/dist/UploadedFile.js +29 -29
  183. package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
  184. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  185. package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
  186. package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
  187. package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
  188. package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
  189. package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
  190. package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
  191. package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
  192. package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
  193. package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
  194. package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
  195. package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
  196. package/dist/index-BIlhCoy2.cjs +20 -0
  197. package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
  198. package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
  199. package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
  200. package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
  201. package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
  202. package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
  203. package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
  204. package/dist/index-DAOBjHnD.cjs +1 -0
  205. package/dist/index-DBXXH_TD.cjs +1 -0
  206. package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
  207. package/dist/index-DaiUAQVF.cjs +1 -0
  208. package/dist/index.cjs +1 -26
  209. package/dist/index.js +180 -376
  210. package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
  211. package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
  212. package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
  213. package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
  214. package/dist/style.css +1 -5
  215. package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
  216. package/dist/usePopover.cjs +1 -0
  217. package/dist/usePopover.js +44 -0
  218. package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
  219. package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
  220. package/package.json +17 -5
  221. package/vite.config.js +16 -0
  222. package/custom-addons/ThemeSelector.js +0 -111
  223. package/custom-addons/register.js +0 -16
  224. package/custom-addons/theme-selector.css +0 -17
  225. package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
  226. package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
  227. package/dist/KanbanCard-ConTmu3w.cjs +0 -30
  228. package/dist/TableView-Cj5_fbSR.js +0 -481
  229. package/dist/TableView-D8ex512p.cjs +0 -19
  230. package/dist/index-BjdOz5Ok.cjs +0 -1
  231. package/dist/index-DXnSjbfJ.cjs +0 -20
  232. package/dist/index-Dzkd2i4n.cjs +0 -1
  233. package/dist/index-P-naJISQ.cjs +0 -1
@@ -0,0 +1,248 @@
1
+ import { jsx as i, jsxs as G, Fragment as $ } from "react/jsx-runtime";
2
+ import { useState as E } from "react";
3
+ import { P as t } from "./index-BYnWp42a.js";
4
+ import h from "./Button.js";
5
+ import b from "./IconButton.js";
6
+ import U from "./ButtonGroup.js";
7
+ import { n as O } from "./emotion-styled.browser.esm-BiK8DcgW.js";
8
+ import { u as q } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
9
+ import { u as w } from "./useUpdateEffect-CuYWz7EA.js";
10
+ const D = O.div`
11
+ display: inline-flex;
12
+ flex-wrap: wrap;
13
+ width: 100%;
14
+ gap: 0.375rem;
15
+ justify-content: ${(d) => d.horizontalAlignment};
16
+ `, H = O.div`
17
+ & > .button-group-pagination-lnc {
18
+ width: 100%;
19
+ justify-content: ${(d) => d.horizontalAlignment};
20
+ }
21
+ `, I = (d) => {
22
+ const {
23
+ icons: c = {},
24
+ borderRadius: f = "regular",
25
+ currentPage: m = 1,
26
+ buttonType: B = "outline",
27
+ currentPageButtonType: N = "tinted",
28
+ withFirstLast: y = !0,
29
+ withButtonGroup: v = !0,
30
+ disabledNext: k = !1,
31
+ disabledPrevious: z = !1,
32
+ disabledFirst: L = !1,
33
+ disabledLast: j = !1,
34
+ disabled: l = !1,
35
+ totalNumberOfPages: g = 1,
36
+ pagesOffset: p = 0,
37
+ horizontalAlignment: P = "left",
38
+ //------------------
39
+ onPageChange: F = () => {
40
+ },
41
+ //------------------
42
+ className: x = "",
43
+ style: C = {},
44
+ color: S = "primary",
45
+ size: A = "small"
46
+ } = d, s = { theme: q(), size: A, color: S, btnType: B }, [n, a] = E(m);
47
+ w(() => {
48
+ a(m);
49
+ }, [m]), w(() => {
50
+ F(n);
51
+ }, [n]);
52
+ const u = (r, e) => {
53
+ e == "next" && n < g ? a(n + 1) : e == "previous" && n > 1 ? a(n - 1) : e == "last" && n != g ? a(g) : e == "first" && n != 1 ? a(1) : isNaN(+e) || a(e);
54
+ }, R = () => {
55
+ let r = [];
56
+ for (let e = n - p > 0 ? n - p : 1; e < n && e > 0; e++)
57
+ r.push(
58
+ /* @__PURE__ */ i(
59
+ h,
60
+ {
61
+ ...s,
62
+ borderRadius: f,
63
+ onClick: (o) => u(o, e),
64
+ btnType: "basic",
65
+ text: e.toString(),
66
+ disabled: l
67
+ },
68
+ e
69
+ )
70
+ );
71
+ r.push(
72
+ /* @__PURE__ */ i(
73
+ h,
74
+ {
75
+ ...s,
76
+ borderRadius: f,
77
+ btnType: N,
78
+ text: n.toString(),
79
+ disabled: l
80
+ },
81
+ n
82
+ )
83
+ );
84
+ for (let e = n + 1; e <= n + p && e <= g; e++)
85
+ r.push(
86
+ /* @__PURE__ */ i(
87
+ h,
88
+ {
89
+ ...s,
90
+ borderRadius: f,
91
+ onClick: (o) => u(o, e),
92
+ btnType: "basic",
93
+ text: e.toString(),
94
+ disabled: l
95
+ },
96
+ e
97
+ )
98
+ );
99
+ return r;
100
+ }, T = (r = null) => {
101
+ var e = {};
102
+ return r && (e.borderRadius = r), /* @__PURE__ */ G($, { children: [
103
+ y && /* @__PURE__ */ i(
104
+ b,
105
+ {
106
+ ...s,
107
+ icon: c.doubleLeft || "angle-double-left",
108
+ disabled: L || l,
109
+ onClick: (o) => u(o, "first"),
110
+ ...e
111
+ }
112
+ ),
113
+ /* @__PURE__ */ i(
114
+ b,
115
+ {
116
+ ...s,
117
+ icon: c.left || "angle-left",
118
+ disabled: z || l,
119
+ onClick: (o) => u(o, "previous"),
120
+ ...e
121
+ }
122
+ ),
123
+ R(),
124
+ /* @__PURE__ */ i(
125
+ b,
126
+ {
127
+ ...s,
128
+ icon: c.right || "angle-right",
129
+ disabled: k || l,
130
+ onClick: (o) => u(o, "next"),
131
+ ...e
132
+ }
133
+ ),
134
+ y && /* @__PURE__ */ i(
135
+ b,
136
+ {
137
+ ...s,
138
+ icon: c.doubleRight || "angle-double-right",
139
+ disabled: j || l,
140
+ onClick: (o) => u(o, "last"),
141
+ ...e
142
+ }
143
+ )
144
+ ] });
145
+ };
146
+ return v ? /* @__PURE__ */ i(H, { horizontalAlignment: P, children: /* @__PURE__ */ i(
147
+ U,
148
+ {
149
+ className: "button-group-pagination-lnc " + x,
150
+ style: C,
151
+ borderRadius: f,
152
+ children: T()
153
+ }
154
+ ) }) : /* @__PURE__ */ i(
155
+ D,
156
+ {
157
+ horizontalAlignment: P,
158
+ className: x,
159
+ style: C,
160
+ children: T(f)
161
+ }
162
+ );
163
+ };
164
+ I.propTypes = {
165
+ icons: t.shape({
166
+ left: t.element,
167
+ right: t.element,
168
+ doubleLeft: t.element,
169
+ doubleRight: t.element
170
+ }),
171
+ /**
172
+ * Applies to the movement buttons and to the page number buttons
173
+ */
174
+ disabled: t.bool,
175
+ borderRadius: t.oneOf([
176
+ "slight",
177
+ "regular",
178
+ "edged",
179
+ "curved",
180
+ "none"
181
+ ]),
182
+ /**
183
+ * Sets the button `type`
184
+ */
185
+ buttonType: t.oneOf(["filled", "tinted", "outline", "basic"]),
186
+ /**
187
+ * Set button `type` of the current page button
188
+ */
189
+ currentPageButtonType: t.oneOf([
190
+ "filled",
191
+ "tinted",
192
+ "outline",
193
+ "basic"
194
+ ]),
195
+ /**
196
+ * Show the First and Last buttons
197
+ */
198
+ withFirstLast: t.bool,
199
+ /**
200
+ * Wrap the buttons in a `ButtonGroup` component
201
+ */
202
+ withButtonGroup: t.bool,
203
+ /**
204
+ * Active page number
205
+ */
206
+ currentPage: t.number,
207
+ totalNumberOfPages: t.number,
208
+ /**
209
+ * how many page numbers will be shown to the right/left of the current page
210
+ */
211
+ pagesOffset: t.number,
212
+ /**
213
+ * Applies to the Next button
214
+ */
215
+ disabledNext: t.bool,
216
+ /**
217
+ * Applies to the Previous button
218
+ */
219
+ disabledPrevious: t.bool,
220
+ /**
221
+ * Applies to the First button
222
+ */
223
+ disabledFirst: t.bool,
224
+ /**
225
+ * Applies to the Last button
226
+ */
227
+ disabledLast: t.bool,
228
+ horizontalAlignment: t.oneOf(["left", "center", "right"]),
229
+ //-------------------------------
230
+ onPageChange: t.func,
231
+ //-------------------------------
232
+ className: t.string,
233
+ style: t.object,
234
+ size: t.oneOf(["small", "medium", "large"]),
235
+ color: t.oneOf([
236
+ "primary",
237
+ "secondary",
238
+ "success",
239
+ "warning",
240
+ "danger",
241
+ "information",
242
+ "neutral",
243
+ "gray"
244
+ ])
245
+ };
246
+ export {
247
+ I as default
248
+ };
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("react/jsx-runtime"),s=require("react"),n=require("./index-DXnSjbfJ.cjs"),L=require("./index-BjdOz5Ok.cjs"),D=require("./Icon.cjs"),h=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./utils-hdRGTsQ7.cjs"),A=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),G=h.newStyled.div`
1
+ "use strict";const a=require("react/jsx-runtime"),s=require("react"),n=require("./index-BIlhCoy2.cjs"),L=require("./index-DaiUAQVF.cjs"),D=require("./Icon.cjs"),h=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./utils-DTAPpJXU.cjs"),A=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),G=h.newStyled.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
 
@@ -1,12 +1,12 @@
1
- import { jsxs as D, jsx as u } from "react/jsx-runtime";
2
- import q, { useRef as A, useState as $, useEffect as I, useCallback as G } from "react";
3
- import { P as n } from "./index-Ds9PUTwb.js";
4
- import { d as H } from "./index-D5vEbKUT.js";
5
- import J from "./Icon.js";
6
- import { n as m } from "./emotion-styled.browser.esm-BZSYYThs.js";
7
- import { f as g, b as a, c as K, h as M, g as O, a as Q } from "./utils-DEke8iwo.js";
8
- import { u as X } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
9
- const Y = m.div`
1
+ import { jsxs as q, jsx as u } from "react/jsx-runtime";
2
+ import { forwardRef as A, useRef as G, useState as $, useEffect as I, useCallback as H } from "react";
3
+ import { P as n } from "./index-BYnWp42a.js";
4
+ import { d as J } from "./index-CNBqQrtK.js";
5
+ import K from "./Icon.js";
6
+ import { n as m } from "./emotion-styled.browser.esm-BiK8DcgW.js";
7
+ import { d as g, a, b as M, e as Q, h as O, g as X } from "./utils-C52T57HO.js";
8
+ import { u as Y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
9
+ const Z = m.div`
10
10
  display: flex;
11
11
  align-items: center;
12
12
 
@@ -27,9 +27,9 @@ const Y = m.div`
27
27
  e.disabled === !0 ? "disabled" : "enabled",
28
28
  "border"
29
29
  )};
30
- border-radius: ${(e) => K(e.theme, "regular")};
30
+ border-radius: ${(e) => M(e.theme, "regular")};
31
31
 
32
- ${(e) => e.focused && e.readOnly !== !0 ? M(e.theme) : ""}
32
+ ${(e) => e.focused && e.readOnly !== !0 ? Q(e.theme) : ""}
33
33
  ${(e) => e.disabled === !0 ? O(e.theme) : ""}
34
34
  `, C = m.span`
35
35
  padding: 0 12px;
@@ -40,7 +40,7 @@ const Y = m.div`
40
40
  "enabled",
41
41
  "prefix"
42
42
  )};
43
- `, Z = m(C)``, ee = m(C)`
43
+ `, _ = m(C)``, ee = m(C)`
44
44
  cursor: pointer;
45
45
  `, te = m.input`
46
46
  background: none;
@@ -50,7 +50,7 @@ const Y = m.div`
50
50
  padding-bottom: 0.625rem;
51
51
  width: 100%;
52
52
 
53
- ${(e) => Q(e.theme, "Input", e.size, "enabled")}
53
+ ${(e) => X(e.theme, "Input", e.size, "enabled")}
54
54
  min-height: ${(e) => g(e.theme, e.size)};
55
55
  max-height: ${(e) => g(e.theme, e.size)};
56
56
  color: ${(e) => a(
@@ -82,28 +82,28 @@ const Y = m.div`
82
82
  ${(e) => O(e.theme)}
83
83
  background: none;
84
84
  }
85
- `, ne = q.forwardRef((e, h) => {
85
+ `, ne = A((e, h) => {
86
86
  const {
87
87
  wrapperRef: T,
88
88
  disabled: S,
89
89
  readOnly: k,
90
- debounceTime: R = 180,
91
- placeholder: V,
90
+ debounceTime: V = 180,
91
+ placeholder: B,
92
92
  prefix: b,
93
93
  suffix: y,
94
94
  value: l,
95
- defaultValue: B,
95
+ defaultValue: F,
96
96
  //----------------
97
97
  onChange: s,
98
98
  onBlur: p,
99
99
  onFocus: x,
100
100
  //----------------
101
- className: F = "",
102
- style: N = {},
101
+ className: N = "",
102
+ style: P = {},
103
103
  size: v = "small",
104
104
  color: d = "primary",
105
- ...P
106
- } = e, r = A(), c = X(), [j, z] = $(l || B || "");
105
+ ...R
106
+ } = e, r = G(), c = Y(), [j, z] = $(l || F || "");
107
107
  I(() => {
108
108
  l != null && z(l);
109
109
  }, [l]);
@@ -115,22 +115,22 @@ const Y = m.div`
115
115
  }, [f]), I(() => {
116
116
  h != null && (h.current = r.current);
117
117
  }, [h, r]);
118
- const W = G(
119
- H((t, o) => E(t, o), R),
118
+ const W = H(
119
+ J((t, o) => E(t, o), V),
120
120
  [s]
121
121
  ), E = (t, o) => {
122
122
  s && (s == null || s(t, o));
123
123
  }, U = (t) => {
124
124
  z(t.target.value), W(t, t.target.value);
125
- }, _ = () => {
125
+ }, D = () => {
126
126
  L(!f), r.current.focus();
127
127
  };
128
- return /* @__PURE__ */ D(
129
- Y,
128
+ return /* @__PURE__ */ q(
129
+ Z,
130
130
  {
131
131
  ref: T,
132
- style: N,
133
- className: F,
132
+ style: P,
133
+ className: N,
134
134
  theme: c,
135
135
  color: d,
136
136
  size: v,
@@ -156,7 +156,7 @@ const Y = m.div`
156
156
  theme: c,
157
157
  color: d,
158
158
  size: v,
159
- placeholder: V,
159
+ placeholder: B,
160
160
  prefix: b,
161
161
  suffix: y,
162
162
  disabled: S,
@@ -170,7 +170,7 @@ const Y = m.div`
170
170
  },
171
171
  onChange: U,
172
172
  value: j,
173
- ...P
173
+ ...R
174
174
  }
175
175
  ),
176
176
  /* @__PURE__ */ u(
@@ -179,12 +179,12 @@ const Y = m.div`
179
179
  theme: c,
180
180
  color: d,
181
181
  focused: i,
182
- onClick: _,
183
- children: /* @__PURE__ */ u(J, { icon: f ? "eye-slash" : "eye" })
182
+ onClick: D,
183
+ children: /* @__PURE__ */ u(K, { icon: f ? "eye-slash" : "eye" })
184
184
  }
185
185
  ),
186
186
  y && /* @__PURE__ */ u(
187
- Z,
187
+ _,
188
188
  {
189
189
  theme: c,
190
190
  color: d,
@@ -0,0 +1 @@
1
+ "use strict";const s=require("react/jsx-runtime");require("react");const e=require("./index-BIlhCoy2.cjs"),i=require("./PopoverContext.cjs"),u=require("./usePopover.cjs");function o({children:t,modal:r=!1,...p}){const n=u({modal:r,...p});return s.jsx(i.Provider,{value:n,children:t})}o.propTypes={initialOpen:e.PropTypes.bool,placement:e.PropTypes.oneOf(["center","top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]),modal:e.PropTypes.bool,offsetValue:e.PropTypes.number,open:e.PropTypes.bool,onOpenChange:e.PropTypes.func};module.exports=o;
@@ -0,0 +1,36 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import "react";
3
+ import { P as o } from "./index-BYnWp42a.js";
4
+ import m from "./PopoverContext.js";
5
+ import a from "./usePopover.js";
6
+ function f({ children: t, modal: e = !1, ...r }) {
7
+ const p = a({ modal: e, ...r });
8
+ return /* @__PURE__ */ n(m.Provider, { value: p, children: t });
9
+ }
10
+ f.propTypes = {
11
+ initialOpen: o.bool,
12
+ placement: o.oneOf([
13
+ "center",
14
+ "top",
15
+ "right",
16
+ "bottom",
17
+ "left",
18
+ "top-start",
19
+ "top-end",
20
+ "right-start",
21
+ "right-end",
22
+ "bottom-start",
23
+ "bottom-end",
24
+ "left-start",
25
+ "left-end"
26
+ ]),
27
+ modal: o.bool,
28
+ offsetValue: o.number,
29
+ /** For controlled usage of Popover */
30
+ open: o.bool,
31
+ /** For controlled usage of Popover */
32
+ onOpenChange: o.func
33
+ };
34
+ export {
35
+ f as default
36
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("react/jsx-runtime"),c=require("react"),u=require("./PopoverContext.cjs"),p=()=>{const e=c.useContext(u);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},i=React.forwardRef(function({children:o,...t},r){const n=p();return s.jsx("div",{...t,ref:r,onClick:()=>n.setOpen(!1),children:o})});module.exports=i;
@@ -0,0 +1,15 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useContext as p } from "react";
3
+ import c from "./PopoverContext.js";
4
+ const f = () => {
5
+ const o = p(c);
6
+ if (o == null)
7
+ throw new Error("Popover components must be wrapped in <Popover />");
8
+ return o;
9
+ }, u = React.forwardRef(function({ children: e, ...t }, r) {
10
+ const n = f();
11
+ return /* @__PURE__ */ s("div", { ...t, ref: r, onClick: () => n.setOpen(!1), children: e });
12
+ });
13
+ export {
14
+ u as default
15
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";const n=require("react/jsx-runtime"),l=require("react"),s=require("./floating-ui.react.esm-C4vrBVJU.cjs"),a=require("./index-BIlhCoy2.cjs"),g=require("./PopoverContext.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),h=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),y=x.newStyled(motion.div)`
2
+ font-family: ${e=>{var t,r;return(r=(t=e.theme)==null?void 0:t.typography)==null?void 0:r.fontFamily}};
3
+ animation: fadeIn 0.4s;
4
+ box-shadow: ${e=>getComponentPropValue(e.theme,"Popover",e.color,"enabled","boxShadow")};
5
+ border-radius: ${e=>getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
6
+ border-top: 1px solid rgba(0, 0, 0, 0.04);
7
+ box-sizing: border-box;
8
+ padding: 0.25rem;
9
+ background-color: ${e=>getColorRgbaValue(e.theme,"Popover","default","enabled","bg")};
10
+ `,f=()=>{const e=l.useContext(g);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},c=l.forwardRef(function({borderRadius:t="regular",className:r="",zIndex:d,style:u={},...i},m){const o=f(),p=s.useMergeRefs([o.floating,m]),b=h.useTheme();return n.jsx(s.FloatingPortal,{children:o.open&&n.jsx(s.FloatingFocusManager,{context:o.context,modal:o.modal,children:n.jsx("div",{ref:p,style:{position:o.strategy,top:o.y??0,left:o.x??0,width:"max-content",zIndex:d},className:"lnc-ui-floating-manager","aria-labelledby":o.labelId,"aria-describedby":o.descriptionId,...o.getFloatingProps(i),children:n.jsx(y,{theme:b,borderRadius:t,className:"lnc-ui-popover-content "+r,style:u,children:i.children})})})})});c.propTypes={className:a.PropTypes.string,style:a.PropTypes.object,zIndex:a.PropTypes.number};module.exports=c;
@@ -0,0 +1,68 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as c, useContext as u } from "react";
3
+ import { a as b, F as f, b as g } from "./floating-ui.react.esm-72DKnou_.js";
4
+ import { P as a } from "./index-BYnWp42a.js";
5
+ import h from "./PopoverContext.js";
6
+ import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
7
+ import { u as y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
+ const P = x(motion.div)`
9
+ font-family: ${(e) => {
10
+ var t, r;
11
+ return (r = (t = e.theme) == null ? void 0 : t.typography) == null ? void 0 : r.fontFamily;
12
+ }};
13
+ animation: fadeIn 0.4s;
14
+ box-shadow: ${(e) => getComponentPropValue(
15
+ e.theme,
16
+ "Popover",
17
+ e.color,
18
+ "enabled",
19
+ "boxShadow"
20
+ )};
21
+ border-radius: ${(e) => getBorderRadiusValueWithUnits(e.theme, e.borderRadius)};
22
+ border-top: 1px solid rgba(0, 0, 0, 0.04);
23
+ box-sizing: border-box;
24
+ padding: 0.25rem;
25
+ background-color: ${(e) => getColorRgbaValue(e.theme, "Popover", "default", "enabled", "bg")};
26
+ `, v = () => {
27
+ const e = u(h);
28
+ if (e == null)
29
+ throw new Error("Popover components must be wrapped in <Popover />");
30
+ return e;
31
+ }, w = c(function({ borderRadius: t = "regular", className: r = "", zIndex: s, style: l = {}, ...i }, d) {
32
+ const o = v(), m = b([o.floating, d]), p = y();
33
+ return /* @__PURE__ */ n(f, { children: o.open && /* @__PURE__ */ n(g, { context: o.context, modal: o.modal, children: /* @__PURE__ */ n(
34
+ "div",
35
+ {
36
+ ref: m,
37
+ style: {
38
+ position: o.strategy,
39
+ top: o.y ?? 0,
40
+ left: o.x ?? 0,
41
+ width: "max-content",
42
+ zIndex: s
43
+ },
44
+ className: "lnc-ui-floating-manager",
45
+ "aria-labelledby": o.labelId,
46
+ "aria-describedby": o.descriptionId,
47
+ ...o.getFloatingProps(i),
48
+ children: /* @__PURE__ */ n(
49
+ P,
50
+ {
51
+ theme: p,
52
+ borderRadius: t,
53
+ className: "lnc-ui-popover-content " + r,
54
+ style: l,
55
+ children: i.children
56
+ }
57
+ )
58
+ }
59
+ ) }) });
60
+ });
61
+ w.propTypes = {
62
+ className: a.string,
63
+ style: a.object,
64
+ zIndex: a.number
65
+ };
66
+ export {
67
+ w as default
68
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react"),e=t.createContext(null);module.exports=e;
@@ -0,0 +1,5 @@
1
+ import { createContext as t } from "react";
2
+ const e = t(null);
3
+ export {
4
+ e as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("react/jsx-runtime"),u=require("./floating-ui.react.esm-C4vrBVJU.cjs"),r=require("react"),p=require("./PopoverContext.cjs"),a=()=>{const e=r.useContext(p);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},f=forwardRef(function({children:n,...s},c){const{setDescriptionId:o}=a(),t=u.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),i.jsx("p",{...s,ref:c,id:t,children:n})});module.exports=f;
@@ -0,0 +1,16 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { u as i } from "./floating-ui.react.esm-72DKnou_.js";
3
+ import { useLayoutEffect as u, useContext as c } from "react";
4
+ import f from "./PopoverContext.js";
5
+ const m = () => {
6
+ const o = c(f);
7
+ if (o == null)
8
+ throw new Error("Popover components must be wrapped in <Popover />");
9
+ return o;
10
+ }, x = forwardRef(function({ children: e, ...n }, p) {
11
+ const { setDescriptionId: t } = m(), r = i();
12
+ return u(() => (t(r), () => t(void 0)), [r, t]), /* @__PURE__ */ s("p", { ...n, ref: p, id: r, children: e });
13
+ });
14
+ export {
15
+ x as default
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";const c=require("react/jsx-runtime"),r=require("react"),i=require("./floating-ui.react.esm-C4vrBVJU.cjs"),a=require("./PopoverContext.cjs"),p=()=>{const e=useContext(a);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},d=r.forwardRef(function({children:n,...s},u){const{setLabelId:o}=p(),t=i.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),c.jsx("h2",{...s,ref:u,id:t,children:n})});module.exports=d;
@@ -0,0 +1,16 @@
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { forwardRef as u, useLayoutEffect as f } from "react";
3
+ import { u as i } from "./floating-ui.react.esm-72DKnou_.js";
4
+ import a from "./PopoverContext.js";
5
+ const m = () => {
6
+ const o = useContext(a);
7
+ if (o == null)
8
+ throw new Error("Popover components must be wrapped in <Popover />");
9
+ return o;
10
+ }, x = u(function({ children: r, ...n }, s) {
11
+ const { setLabelId: e } = m(), t = i();
12
+ return f(() => (e(t), () => e(void 0)), [t, e]), /* @__PURE__ */ p("h2", { ...n, ref: s, id: t, children: r });
13
+ });
14
+ export {
15
+ x as default
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("react/jsx-runtime"),r=require("react"),f=require("./floating-ui.react.esm-C4vrBVJU.cjs"),l=require("./index-BIlhCoy2.cjs"),P=require("./PopoverContext.cjs"),d=()=>{const o=useContext(P);if(o==null)throw new Error("Popover components must be wrapped in <Popover />");return o},c=r.forwardRef(function({children:e,asChild:p,...n},i){const t=d(),a=e.ref,s=f.useMergeRefs([t.reference,i,a]);return p&&r.isValidElement(e)?r.cloneElement(e,t.getReferenceProps({ref:s,...n,...e.props,"data-state":t.open?"open":"closed"})):u.jsx("div",{ref:s,"data-state":t.open?"open":"closed",style:{width:"max-content"},...t.getReferenceProps(n),children:e})});c.propTypes={asChild:l.PropTypes.bool};module.exports=c;
@@ -0,0 +1,38 @@
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { forwardRef as m, isValidElement as c, cloneElement as i } from "react";
3
+ import { a as u } from "./floating-ui.react.esm-72DKnou_.js";
4
+ import { P } from "./index-BYnWp42a.js";
5
+ import l from "./PopoverContext.js";
6
+ const d = () => {
7
+ const t = useContext(l);
8
+ if (t == null)
9
+ throw new Error("Popover components must be wrapped in <Popover />");
10
+ return t;
11
+ }, g = m(function({ children: e, asChild: s, ...r }, p) {
12
+ const o = d(), a = e.ref, n = u([o.reference, p, a]);
13
+ return s && c(e) ? i(
14
+ e,
15
+ o.getReferenceProps({
16
+ ref: n,
17
+ ...r,
18
+ ...e.props,
19
+ "data-state": o.open ? "open" : "closed"
20
+ })
21
+ ) : /* @__PURE__ */ f(
22
+ "div",
23
+ {
24
+ ref: n,
25
+ "data-state": o.open ? "open" : "closed",
26
+ style: { width: "max-content" },
27
+ ...o.getReferenceProps(r),
28
+ children: e
29
+ }
30
+ );
31
+ });
32
+ g.propTypes = {
33
+ /** Allows the user to pass any element as the anchor */
34
+ asChild: P.bool
35
+ };
36
+ export {
37
+ g as default
38
+ };
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),m=require("react"),r=require("./index-DXnSjbfJ.cjs"),n=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-hdRGTsQ7.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),h=n.newStyled.div`
1
+ "use strict";const t=require("react/jsx-runtime"),m=require("react"),r=require("./index-BIlhCoy2.cjs"),n=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),h=n.newStyled.div`
2
2
  width: 100%;
3
3
  position: relative;
4
4
  background-color: ${e=>s.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","unfilled")};