@lanaco/lnc-react-ui 4.0.199 → 4.0.200

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 (247) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +12 -14
  17. package/dist/BlogExploreSection.cjs +1 -1
  18. package/dist/BlogExploreSection.js +1 -1
  19. package/dist/BlogsSectionWithFilters.cjs +1 -1
  20. package/dist/BlogsSectionWithFilters.js +1 -1
  21. package/dist/Breadcrumbs.cjs +5 -5
  22. package/dist/Breadcrumbs.js +57 -87
  23. package/dist/Button.cjs +11 -11
  24. package/dist/Button.js +126 -173
  25. package/dist/ButtonGroup.cjs +8 -8
  26. package/dist/ButtonGroup.js +37 -49
  27. package/dist/CalorieCalculatorSection.cjs +8 -8
  28. package/dist/CalorieCalculatorSection.js +90 -97
  29. package/dist/CheckBoxInput.cjs +1 -1
  30. package/dist/CheckBoxInput.js +2 -5
  31. package/dist/Chip.cjs +14 -14
  32. package/dist/Chip.js +73 -111
  33. package/dist/ConfirmationForm.cjs +6 -6
  34. package/dist/ConfirmationForm.js +67 -109
  35. package/dist/ContactSection.cjs +1 -0
  36. package/dist/ContactSection.js +1 -0
  37. package/dist/Content.cjs +1 -1
  38. package/dist/Content.js +7 -15
  39. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  40. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  41. package/dist/DataView.cjs +1 -1
  42. package/dist/DataView.js +30 -50
  43. package/dist/DateInput.cjs +4 -4
  44. package/dist/DateInput.js +1347 -1383
  45. package/dist/DecimalInput.cjs +6 -6
  46. package/dist/DecimalInput.js +210 -263
  47. package/dist/DecimalInputV2.cjs +23 -23
  48. package/dist/DecimalInputV2.js +119 -176
  49. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  50. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +1 -1
  53. package/dist/DetailsView.cjs +9 -9
  54. package/dist/DetailsView.js +111 -162
  55. package/dist/DoubleRangeSlider.cjs +22 -22
  56. package/dist/DoubleRangeSlider.js +70 -95
  57. package/dist/DragAndDropFile.cjs +10 -10
  58. package/dist/DragAndDropFile.js +347 -402
  59. package/dist/DragDropFiles.cjs +4 -4
  60. package/dist/DragDropFiles.js +70 -124
  61. package/dist/Drawer.cjs +5 -5
  62. package/dist/Drawer.js +97 -135
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +44 -213
  65. package/dist/DropdownItem.cjs +14 -14
  66. package/dist/DropdownItem.js +106 -142
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +61 -242
  69. package/dist/DropdownMenu.cjs +4 -4
  70. package/dist/DropdownMenu.js +87 -149
  71. package/dist/EditableTable.cjs +10 -10
  72. package/dist/EditableTable.js +165 -331
  73. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  74. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  75. package/dist/FaqSection.cjs +3 -3
  76. package/dist/FaqSection.js +119 -153
  77. package/dist/FileInput.cjs +7 -7
  78. package/dist/FileInput.js +66 -94
  79. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  80. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  81. package/dist/FlexBox.cjs +6 -6
  82. package/dist/FlexBox.js +28 -63
  83. package/dist/FlexGrid.cjs +1 -1
  84. package/dist/FlexGrid.js +27 -67
  85. package/dist/FlexGridItem.cjs +6 -6
  86. package/dist/FlexGridItem.js +34 -62
  87. package/dist/Footer.cjs +1 -1
  88. package/dist/Footer.js +7 -15
  89. package/dist/FormField.cjs +7 -7
  90. package/dist/FormField.js +22 -47
  91. package/dist/FormView.cjs +6 -6
  92. package/dist/FormView.js +148 -195
  93. package/dist/Grid.cjs +2 -2
  94. package/dist/Grid.js +40 -65
  95. package/dist/GridItem.cjs +2 -2
  96. package/dist/GridItem.js +47 -80
  97. package/dist/Header.cjs +1 -1
  98. package/dist/Header.js +7 -15
  99. package/dist/HelpBannerSection.cjs +3 -3
  100. package/dist/HelpBannerSection.js +9 -15
  101. package/dist/Icon.cjs +4 -4
  102. package/dist/Icon.js +29 -55
  103. package/dist/IconButton.cjs +9 -9
  104. package/dist/IconButton.js +89 -127
  105. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  106. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  107. package/dist/Kanban.cjs +7 -7
  108. package/dist/Kanban.js +2033 -2098
  109. package/dist/KanbanActionsToolbar.cjs +4 -5
  110. package/dist/KanbanActionsToolbar.js +61 -96
  111. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  112. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  113. package/dist/KanbanCard.cjs +1 -1
  114. package/dist/KanbanCard.js +2 -3
  115. package/dist/KanbanFooter.cjs +3 -3
  116. package/dist/KanbanFooter.js +37 -55
  117. package/dist/KanbanHeader.cjs +4 -4
  118. package/dist/KanbanHeader.js +49 -81
  119. package/dist/KanbanView.cjs +2 -2
  120. package/dist/KanbanView.js +106 -173
  121. package/dist/Link.cjs +7 -7
  122. package/dist/Link.js +20 -37
  123. package/dist/LocationSearchSection.cjs +1 -1
  124. package/dist/LocationSearchSection.js +1 -1
  125. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  126. package/dist/MasonryGeneralCardsSection.js +1 -1
  127. package/dist/MenuItem.cjs +13 -13
  128. package/dist/MenuItem.js +101 -139
  129. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  130. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  131. package/dist/Modal.cjs +18 -19
  132. package/dist/Modal.js +131 -166
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +25 -196
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +27 -209
  137. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  138. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  139. package/dist/NestedDropdownItem.cjs +3 -3
  140. package/dist/NestedDropdownItem.js +45 -67
  141. package/dist/NestedMenuItem.cjs +5 -5
  142. package/dist/NestedMenuItem.js +51 -78
  143. package/dist/NotificationContainer.cjs +10 -10
  144. package/dist/NotificationContainer.js +46 -79
  145. package/dist/NotificationMessage.cjs +2 -2
  146. package/dist/NotificationMessage.js +47 -64
  147. package/dist/NumberInput.cjs +23 -23
  148. package/dist/NumberInput.js +89 -149
  149. package/dist/PageLayout.cjs +2 -2
  150. package/dist/PageLayout.js +20 -28
  151. package/dist/Pagination.cjs +3 -3
  152. package/dist/Pagination.js +102 -185
  153. package/dist/PasswordInput.cjs +23 -23
  154. package/dist/PasswordInput.js +108 -137
  155. package/dist/Popover.cjs +1 -1
  156. package/dist/Popover.js +7 -32
  157. package/dist/PopoverContent.cjs +5 -5
  158. package/dist/PopoverContent.js +22 -28
  159. package/dist/PopoverTrigger.cjs +1 -1
  160. package/dist/PopoverTrigger.js +7 -12
  161. package/dist/ProgressBar.cjs +8 -8
  162. package/dist/ProgressBar.js +32 -59
  163. package/dist/RadioGroup.cjs +3 -3
  164. package/dist/RadioGroup.js +41 -72
  165. package/dist/RadioInput.cjs +28 -28
  166. package/dist/RadioInput.js +78 -123
  167. package/dist/RangeSlider.cjs +19 -19
  168. package/dist/RangeSlider.js +92 -119
  169. package/dist/ReviewsSection.cjs +13 -13
  170. package/dist/ReviewsSection.js +81 -101
  171. package/dist/SalesCampaignsSection.cjs +19 -19
  172. package/dist/SalesCampaignsSection.js +283 -324
  173. package/dist/SearchBar.cjs +10 -10
  174. package/dist/SearchBar.js +168 -188
  175. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  176. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  177. package/dist/SearchSection.cjs +1 -1
  178. package/dist/SearchSection.js +2 -3
  179. package/dist/Separator.cjs +3 -3
  180. package/dist/Separator.js +14 -19
  181. package/dist/Sidebar.cjs +4 -5
  182. package/dist/Sidebar.js +33 -56
  183. package/dist/SimpleCategoriesSection.cjs +1 -1
  184. package/dist/SimpleCategoriesSection.js +1 -1
  185. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  186. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  187. package/dist/Spinner.cjs +18 -18
  188. package/dist/Spinner.js +37 -54
  189. package/dist/StatsSection.cjs +6 -6
  190. package/dist/StatsSection.js +15 -25
  191. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  192. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  193. package/dist/Surface.cjs +4 -4
  194. package/dist/Surface.js +19 -34
  195. package/dist/SwipeableDrawer.cjs +8 -8
  196. package/dist/SwipeableDrawer.js +84 -136
  197. package/dist/TabItem.cjs +11 -11
  198. package/dist/TabItem.js +83 -118
  199. package/dist/Table.cjs +65 -65
  200. package/dist/Table.js +786 -1167
  201. package/dist/TableView.cjs +2 -2
  202. package/dist/TableView.js +113 -197
  203. package/dist/Tabs.cjs +4 -4
  204. package/dist/Tabs.js +41 -60
  205. package/dist/TextAreaInput.cjs +14 -14
  206. package/dist/TextAreaInput.js +131 -181
  207. package/dist/TextInput.cjs +23 -23
  208. package/dist/TextInput.js +78 -126
  209. package/dist/ThemeProvider.cjs +5 -5
  210. package/dist/ThemeProvider.js +35 -39
  211. package/dist/TimeInput.cjs +7 -7
  212. package/dist/TimeInput.js +46 -72
  213. package/dist/Toggle.cjs +20 -20
  214. package/dist/Toggle.js +78 -109
  215. package/dist/ToggleSection.cjs +5 -5
  216. package/dist/ToggleSection.js +48 -55
  217. package/dist/TreeMenu.cjs +5 -5
  218. package/dist/TreeMenu.js +43 -67
  219. package/dist/TreeMenuSeparator.cjs +3 -3
  220. package/dist/TreeMenuSeparator.js +12 -20
  221. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  222. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  223. package/dist/UploadedFile.cjs +11 -11
  224. package/dist/UploadedFile.js +73 -99
  225. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  226. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  227. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  228. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  229. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  230. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  231. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  232. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  233. package/dist/index-BdKi2ogu.js +39 -0
  234. package/dist/index-CRk3vcd4.cjs +95 -0
  235. package/dist/index-CX2A-q39.cjs +4 -0
  236. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  237. package/dist/index.cjs +1 -1
  238. package/dist/index.js +2 -2
  239. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  240. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  241. package/package.json +1 -1
  242. package/dist/KanbanCard-68kSAXL6.js +0 -175
  243. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  244. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  245. package/dist/index-Be-_NM9Q.cjs +0 -4
  246. package/dist/index-C0LcDEqa.js +0 -47
  247. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,69 +1,68 @@
1
- import { jsx as de } from "react/jsx-runtime";
2
- import { P as e } from "./index-CblbdqjE.js";
3
- import * as Oe from "react";
4
- import { useRef as G, useState as a, useEffect as W, useCallback as j, forwardRef as J } from "react";
5
- import { _ as me, u as be } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
- import { _ as Se, b as s, h as ge, d as C, u as he, S as ve, a as ye } from "./CustomStyles-DtWxboEM.js";
7
- import { _ as _e } from "./defineProperty-DF3p0mVo.js";
1
+ import { jsx as le } from "react/jsx-runtime";
2
+ import * as ce from "react";
3
+ import { useRef as G, useState as a, useEffect as H, useCallback as E, forwardRef as J } from "react";
4
+ import { _ as ve, u as Oe } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
5
+ import { _ as Se, b as s, h as me, d as C, u as he, S as _e, a as ye } from "./CustomStyles-DtWxboEM.js";
6
+ import { _ as ge } from "./defineProperty-DF3p0mVo.js";
8
7
  import "./index-B1vKwsDE.js";
9
8
  import { d as Ie } from "./index-Dt62UGku.js";
10
9
  var Ce = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
11
- function Le(o) {
12
- var r = o.defaultOptions, t = r === void 0 ? !1 : r, i = o.cacheOptions, l = i === void 0 ? !1 : i, d = o.loadOptions;
13
- o.options;
14
- var p = o.isLoading, L = p === void 0 ? !1 : p, h = o.onInputChange, v = o.filterOption, M = v === void 0 ? null : v, y = Se(o, Ce), _ = y.inputValue, u = G(void 0), O = G(!1), m = a(Array.isArray(t) ? t : void 0), f = s(m, 2), K = f[0], R = f[1], Q = a(typeof _ < "u" ? _ : ""), $ = s(Q, 2), w = $[0], P = $[1], U = a(t === !0), E = s(U, 2), X = E[0], b = E[1], Y = a(void 0), F = s(Y, 2), V = F[0], A = F[1], Z = a([]), z = s(Z, 2), ee = z[0], T = z[1], te = a(!1), B = s(te, 2), ne = B[0], I = B[1], oe = a({}), H = s(oe, 2), S = H[0], N = H[1], ae = a(void 0), k = s(ae, 2), se = k[0], ue = k[1], re = a(void 0), q = s(re, 2), ie = q[0], le = q[1];
15
- l !== ie && (N({}), le(l)), t !== se && (R(Array.isArray(t) ? t : void 0), ue(t)), W(function() {
16
- return O.current = !0, function() {
17
- O.current = !1;
10
+ function Le(n) {
11
+ var o = n.defaultOptions, e = o === void 0 ? !1 : o, u = n.cacheOptions, i = u === void 0 ? !1 : u, l = n.loadOptions;
12
+ n.options;
13
+ var p = n.isLoading, L = p === void 0 ? !1 : p, h = n.onInputChange, _ = n.filterOption, A = _ === void 0 ? null : _, y = Se(n, Ce), g = y.inputValue, r = G(void 0), c = G(!1), v = a(Array.isArray(e) ? e : void 0), f = s(v, 2), K = f[0], R = f[1], Q = a(typeof g < "u" ? g : ""), j = s(Q, 2), T = j[0], P = j[1], U = a(e === !0), w = s(U, 2), X = w[0], O = w[1], Y = a(void 0), M = s(Y, 2), V = M[0], b = M[1], Z = a([]), q = s(Z, 2), k = q[0], D = q[1], ee = a(!1), z = s(ee, 2), te = z[0], I = z[1], ne = a({}), N = s(ne, 2), S = N[0], W = N[1], ae = a(void 0), B = s(ae, 2), se = B[0], re = B[1], oe = a(void 0), F = s(oe, 2), ue = F[0], ie = F[1];
14
+ i !== ue && (W({}), ie(i)), e !== se && (R(Array.isArray(e) ? e : void 0), re(e)), H(function() {
15
+ return c.current = !0, function() {
16
+ c.current = !1;
18
17
  };
19
18
  }, []);
20
- var x = j(function(g, c) {
21
- if (!d) return c();
22
- var n = d(g, c);
23
- n && typeof n.then == "function" && n.then(c, function() {
24
- return c();
19
+ var $ = E(function(m, d) {
20
+ if (!l) return d();
21
+ var t = l(m, d);
22
+ t && typeof t.then == "function" && t.then(d, function() {
23
+ return d();
25
24
  });
26
- }, [d]);
27
- W(function() {
28
- t === !0 && x(w, function(g) {
29
- O.current && (R(g || []), b(!!u.current));
25
+ }, [l]);
26
+ H(function() {
27
+ e === !0 && $(T, function(m) {
28
+ c.current && (R(m || []), O(!!r.current));
30
29
  });
31
30
  }, []);
32
- var pe = j(function(g, c) {
33
- var n = ge(g, c, h);
34
- if (!n) {
35
- u.current = void 0, P(""), A(""), T([]), b(!1), I(!1);
31
+ var pe = E(function(m, d) {
32
+ var t = me(m, d, h);
33
+ if (!t) {
34
+ r.current = void 0, P(""), b(""), D([]), O(!1), I(!1);
36
35
  return;
37
36
  }
38
- if (l && S[n])
39
- P(n), A(n), T(S[n]), b(!1), I(!1);
37
+ if (i && S[t])
38
+ P(t), b(t), D(S[t]), O(!1), I(!1);
40
39
  else {
41
- var ce = u.current = {};
42
- P(n), b(!0), I(!V), x(n, function(D) {
43
- O && ce === u.current && (u.current = void 0, b(!1), A(n), T(D || []), I(!1), N(D ? C(C({}, S), {}, _e({}, n, D)) : S));
40
+ var de = r.current = {};
41
+ P(t), O(!0), I(!V), $(t, function(x) {
42
+ c && de === r.current && (r.current = void 0, O(!1), b(t), D(x || []), I(!1), W(x ? C(C({}, S), {}, ge({}, t, x)) : S));
44
43
  });
45
44
  }
46
- }, [l, x, V, S, h]), fe = ne ? [] : w && V ? ee : K || [];
45
+ }, [i, $, V, S, h]), fe = te ? [] : T && V ? k : K || [];
47
46
  return C(C({}, y), {}, {
48
47
  options: fe,
49
48
  isLoading: X || L,
50
49
  onInputChange: pe,
51
- filterOption: M
50
+ filterOption: A
52
51
  });
53
52
  }
54
- var Me = /* @__PURE__ */ J(function(o, r) {
55
- var t = Le(o), i = he(t);
56
- return /* @__PURE__ */ Oe.createElement(ve, me({
57
- ref: r
58
- }, i));
59
- }), Pe = Me;
60
- const Ve = J((o, r) => {
53
+ var Ae = /* @__PURE__ */ J(function(n, o) {
54
+ var e = Le(n), u = he(e);
55
+ return /* @__PURE__ */ ce.createElement(_e, ve({
56
+ ref: o
57
+ }, u));
58
+ }), Pe = Ae;
59
+ const je = J((n, o) => {
61
60
  const {
62
61
  // defaultOptions,
63
62
  // cacheOptions,
64
63
  // loadOptions,
65
- styles: t,
66
- debounceTime: i = 0,
64
+ styles: e,
65
+ debounceTime: u = 0,
67
66
  // name,
68
67
  // hideSelectedOptions,
69
68
  // id,
@@ -71,8 +70,8 @@ const Ve = J((o, r) => {
71
70
  // value,
72
71
  // readOnly,
73
72
  // tabIndex,
74
- isSearchable: l = !0,
75
- isClearable: d = !0,
73
+ isSearchable: i = !0,
74
+ isClearable: l = !0,
76
75
  // isLoading,
77
76
  // isRtl,
78
77
  // isDisabled,
@@ -112,214 +111,34 @@ const Ve = J((o, r) => {
112
111
  // onFocus,
113
112
  size: L = "small",
114
113
  color: h = "primary",
115
- className: v = "",
116
- style: M = {},
114
+ className: _ = "",
115
+ style: A = {},
117
116
  // children,
118
117
  ...y
119
- } = o, _ = be(), u = j(
120
- Ie((m, f) => {
121
- p == null || p(m, f);
122
- }, i)
118
+ } = n, g = Oe(), r = E(
119
+ Ie((v, f) => {
120
+ p == null || p(v, f);
121
+ }, u)
123
122
  );
124
- return /* @__PURE__ */ de(
123
+ return /* @__PURE__ */ le(
125
124
  Pe,
126
125
  {
127
- ref: r,
128
- styles: t || ye,
126
+ ref: o,
127
+ styles: e || ye,
129
128
  size: L,
130
129
  color: h,
131
- theme: _,
132
- isSearchable: l,
133
- isClearable: d,
134
- onInputChange: (m, f) => {
135
- u(m, f);
130
+ theme: g,
131
+ isSearchable: i,
132
+ isClearable: l,
133
+ onInputChange: (v, f) => {
134
+ r(v, f);
136
135
  },
137
- className: v,
138
- style: M,
136
+ className: _,
137
+ style: A,
139
138
  ...y
140
139
  }
141
140
  );
142
141
  });
143
- Ve.propTypes = {
144
- /**
145
- * The default set of options to show before the user starts searching. When set to true, the results for loadOptions('') will be autoloaded.
146
- */
147
- defaultOptions: e.oneOfType([e.bool, e.array]),
148
- /**
149
- * If cacheOptions is truthy, then the loaded data will be cached. The cache will remain until cacheOptions changes value.
150
- */
151
- cacheOptions: e.any,
152
- /**
153
- * Function that returns a promise, which is the set of options to be used once the promise resolves.
154
- */
155
- loadOptions: e.func,
156
- styles: e.object,
157
- debounceTime: e.number,
158
- name: e.string,
159
- value: e.any,
160
- /**
161
- * Sets the tabIndex attribute on the input
162
- */
163
- tabIndex: e.number,
164
- /**
165
- * Whether to enable search functionality
166
- */
167
- isSearchable: e.bool,
168
- isClearable: e.bool,
169
- /**
170
- * Is the select in a state of loading (async)
171
- */
172
- isLoading: e.bool,
173
- /**
174
- * Is the select direction right-to-left
175
- */
176
- isRtl: e.bool,
177
- isDisabled: e.bool,
178
- readOnly: e.bool,
179
- /**
180
- * Close the select menu when the user selects an option
181
- */
182
- closeMenuOnSelect: e.bool,
183
- /**
184
- * If true, close the select menu when the user scrolls the document/body.
185
- * If a function, takes a standard javascript ScrollEvent you return a boolean:
186
- * true => The menu closes
187
- * false => The menu stays open
188
- * This is useful when you have a scrollable modal and want to portal the menu out, but want to avoid graphical issues.
189
- */
190
- closeMenuOnScroll: e.oneOfType([e.bool, e.func]),
191
- /**
192
- * Clear all values when the user presses escape AND the menu is closed
193
- */
194
- escapeClearsValue: e.bool,
195
- /**
196
- * Custom method to filter whether an option should be displayed in the menu. Type: `null` or `() => boolean`
197
- */
198
- filterOption: e.func,
199
- /**
200
- * Formats group labels in the menu as React components
201
- */
202
- formatGroupLabel: e.func,
203
- /**
204
- * Formats option labels in the menu and control as React components
205
- */
206
- formatOptionLabel: e.func,
207
- /**
208
- * Resolves option data to a string to be displayed as the label by components
209
- * Note: Failure to resolve to a string type can interfere with filtering and screen reader support.
210
- */
211
- getOptionLabel: e.func,
212
- /**
213
- * Resolves option data to a string to compare options and specify value attributes
214
- */
215
- getOptionValue: e.func,
216
- /**
217
- * Hide the selected option from the menu
218
- */
219
- hideSelectedOptions: e.bool,
220
- /**
221
- * The id to set on the SelectContainer component
222
- */
223
- id: e.any,
224
- /**
225
- * The id of the search input
226
- */
227
- inputid: e.any,
228
- /**
229
- * Override the built-in logic to detect whether an option is disabled. `(...) => boolean`
230
- */
231
- isOptionDisabled: e.func,
232
- /**
233
- * Override the built-in logic to detect whether an option is selected. `(...) => boolean`
234
- */
235
- isOptionSelected: e.func,
236
- /**
237
- * Async: Text to display when loading options `(...) => ...`
238
- */
239
- loadingMessage: e.func,
240
- /**
241
- * Minimum height of the menu before flipping
242
- */
243
- minMenuHeight: e.number,
244
- /**
245
- * Maximum height of the menu before flipping
246
- */
247
- maxMenuHeight: e.number,
248
- /**
249
- * Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
250
- */
251
- menuPlacement: e.oneOf(["bottom", "auto", "top"]),
252
- /**
253
- *The CSS position value of the menu, when "fixed" extra layout management is required.
254
- */
255
- menuPosition: e.oneOf(["absolute", "fixed"]),
256
- /**
257
- * Whether to block scroll events when the menu is open
258
- */
259
- menuShouldBlockScroll: e.bool,
260
- /**
261
- * Whether the menu should be scrolled into view when it opens
262
- */
263
- menuShouldScrollIntoView: e.bool,
264
- /**
265
- * Allows control of whether the menu is opened when the Select is focused
266
- */
267
- openMenuOnFocus: e.bool,
268
- /**
269
- * Allows control of whether the menu is opened when the Select is clicked
270
- */
271
- openMenuOnClick: e.bool,
272
- //----
273
- autoFocus: e.bool,
274
- placeholder: e.any,
275
- noOptionsMessage: e.string,
276
- menuIsOpen: e.bool,
277
- /**
278
- * 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.
279
- * If you only wish to restyle a component, we recommend using the styles prop instead.
280
- */
281
- components: e.object,
282
- /**
283
- * initial value of the control
284
- */
285
- defaultValue: e.string,
286
- /**
287
- * initial value of the search input
288
- */
289
- defaultInputValue: e.string,
290
- /**
291
- * initial open value of the menu
292
- */
293
- defaultMenuIsOpen: e.bool,
294
- /**
295
- * Delimiter used to join multiple values into a single HTML Input value
296
- */
297
- delimiter: e.string,
298
- //---------------------------------------------------------------
299
- onChange: e.func,
300
- /**
301
- * control the value of the search input (changing this will update the available options)
302
- */
303
- onInputChange: e.func,
304
- onMenuOpen: e.func,
305
- onMenuClose: e.func,
306
- onFocus: e.func,
307
- onBlur: e.func,
308
- //---------------------------------------------------------------
309
- className: e.string,
310
- style: e.object,
311
- color: e.oneOf([
312
- "primary",
313
- "secondary",
314
- "success",
315
- "warning",
316
- "danger",
317
- "information",
318
- "neutral",
319
- "gray"
320
- ]),
321
- size: e.oneOf(["small", "medium", "large"])
322
- };
323
142
  export {
324
- Ve as default
143
+ je as default
325
144
  };
@@ -1,7 +1,7 @@
1
- "use strict";const r=require("react/jsx-runtime"),t=require("react"),o=require("./index-BpbMKBf_.cjs"),I=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./Button.cjs"),K=require("./utils-RnrgDDZP.cjs"),L=require("./ThemeProvider.cjs"),U=require("./Popover.cjs"),Y=require("./PopoverTrigger.cjs"),$=require("./PopoverContent.cjs"),A=require("./motion-B_VPZaJq.cjs"),G=I.styled.div``,H=I.styled(A.motion.div)`
1
+ "use strict";const n=require("react/jsx-runtime"),o=require("react"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),z=require("./Button.cjs"),B=require("./utils-RnrgDDZP.cjs"),F=require("./ThemeProvider.cjs"),U=require("./Popover.cjs"),Y=require("./PopoverTrigger.cjs"),$=require("./PopoverContent.cjs"),K=require("./motion-B_VPZaJq.cjs"),L=C.styled.div``,A=C.styled(K.motion.div)`
2
2
  gap: 0.25rem;
3
3
  display: flex;
4
4
  flex-direction: column;
5
- ${n=>n.widthfitcontent==!1&&"min-width: 12.5rem"};
6
- background-color: ${n=>K.getColorRgbaValue(n.theme,"Dropdown",n.color,"enabled","background")};
7
- `,C=t.forwardRef((n,p)=>{const{control:i,offsetValue:S=9,placement:_,widthFitContent:b=!1,closeOnItemSelect:v=!0,zIndex:q,onFocus:m=()=>{},onBlur:f=()=>{},onClick:y=()=>{},onKeyDown:d=()=>{},onMouseEnter:T=()=>{},onMouseLeave:P=()=>{},onItemSelected:M=()=>{},animation:R={animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},transition:{type:"tween",duration:.15,opacity:{duration:.15,ease:"easeOut"},height:{duration:.15}}},className:h="",style:J={},color:s="primary",size:c="small",contentClassName:N="",popoverProps:Q,children:O,...j}=n;t.useRef();const D=t.useRef(),{theme:k}=L.useTheme(),g=t.useRef(),E=t.useRef(),[z,l]=t.useState(!1),w=(e,u,a)=>{M(e,u,a),v==!0&&l(!1)},F=t.Children.map(O,(e,u)=>{var a,x;return t.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((a=e==null?void 0:e.type)==null?void 0:a.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((x=e==null?void 0:e.type)==null?void 0:x.displayName)==="NESTED_ITEM")?u==0?(e.props.ref&&(E.current=p),t.cloneElement(e,{ref:p||E,color:e.props.color?e.props.color:s,size:c,onItemSelected:w,animation:R})):t.cloneElement(e,{color:e.props.color?e.props.color:s,size:c,onItemSelected:w}):e}),V=()=>typeof i=="string"||i instanceof String?r.jsx(B,{text:i,onClick:y,onMouseEnter:T,onMouseLeave:P,onBlur:f,onFocus:m,ref:g,onKeyDown:d,trailingIcon:"angle-down",color:s,size:c}):t.cloneElement(i,{color:s,size:c,ref:g,onClick:y,onMouseEnter:T,onMouseLeave:P,onBlur:f,onFocus:m,onKeyDown:d});return r.jsx(G,{ref:p,className:h,...j,children:r.jsxs(U,{open:z,onOpenChange:l,placement:_,offsetValue:S,children:[r.jsx(Y,{onClick:()=>l(e=>!e),children:V()}),r.jsx($,{zIndex:q,children:r.jsx(H,{ref:D,widthfitcontent:b,color:s,theme:k,className:N,children:F})})]})})});C.propTypes={control:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),offsetValue:o.PropTypes.number,placement:o.PropTypes.oneOf(["center","top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]),widthFitContent:o.PropTypes.bool,closeOnItemSelect:o.PropTypes.bool,zIndex:o.PropTypes.number,onBlur:o.PropTypes.func,onFocus:o.PropTypes.func,onClick:o.PropTypes.func,onKeyDown:o.PropTypes.func,onMouseEnter:o.PropTypes.func,onMouseLeave:o.PropTypes.func,onItemSelected:o.PropTypes.func,animation:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:o.PropTypes.oneOf(["small","medium","large"]),popoverProps:o.PropTypes.any};module.exports=C;
5
+ ${t=>t.widthfitcontent==!1&&"min-width: 12.5rem"};
6
+ background-color: ${t=>B.getColorRgbaValue(t.theme,"Dropdown",t.color,"enabled","background")};
7
+ `,G=o.forwardRef((t,s)=>{const{control:i,offsetValue:I=9,placement:S,widthFitContent:T=!1,closeOnItemSelect:q=!0,zIndex:R,onFocus:p=()=>{},onBlur:m=()=>{},onClick:f=()=>{},onKeyDown:d=()=>{},onMouseEnter:y=()=>{},onMouseLeave:E=()=>{},onItemSelected:v=()=>{},animation:M={animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},transition:{type:"tween",duration:.15,opacity:{duration:.15,ease:"easeOut"},height:{duration:.15}}},className:N="",color:r="primary",size:a="small",contentClassName:P="",children:j,...D}=t,h=o.useRef(),{theme:b}=F.useTheme(),g=o.useRef(),_=o.useRef(),[O,l]=o.useState(!1),x=(e,u,c)=>{v(e,u,c),q==!0&&l(!1)},k=o.Children.map(j,(e,u)=>{var c,w;return o.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((c=e==null?void 0:e.type)==null?void 0:c.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((w=e==null?void 0:e.type)==null?void 0:w.displayName)==="NESTED_ITEM")?u==0?(e.props.ref&&(_.current=s),o.cloneElement(e,{ref:s||_,color:e.props.color?e.props.color:r,size:a,onItemSelected:x,animation:M})):o.cloneElement(e,{color:e.props.color?e.props.color:r,size:a,onItemSelected:x}):e}),V=()=>typeof i=="string"||i instanceof String?n.jsx(z,{text:i,onClick:f,onMouseEnter:y,onMouseLeave:E,onBlur:m,onFocus:p,ref:g,onKeyDown:d,trailingIcon:"angle-down",color:r,size:a}):o.cloneElement(i,{color:r,size:a,ref:g,onClick:f,onMouseEnter:y,onMouseLeave:E,onBlur:m,onFocus:p,onKeyDown:d});return n.jsx(L,{ref:s,className:N,...D,children:n.jsxs(U,{open:O,onOpenChange:l,placement:S,offsetValue:I,children:[n.jsx(Y,{onClick:()=>l(e=>!e),children:V()}),n.jsx($,{zIndex:R,children:n.jsx(A,{ref:h,widthfitcontent:T,color:r,theme:b,className:P,children:k})})]})})});module.exports=G;
@@ -1,51 +1,50 @@
1
- import { jsx as r, jsxs as B } from "react/jsx-runtime";
2
- import { forwardRef as K, useRef as l, useState as L, Children as U, isValidElement as Y, cloneElement as f } from "react";
3
- import { P as o } from "./index-CblbdqjE.js";
4
- import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import $ from "./Button.js";
6
- import { b as q } from "./utils-DtEfC-TX.js";
7
- import { useTheme as A } from "./ThemeProvider.js";
8
- import G from "./Popover.js";
9
- import H from "./PopoverTrigger.js";
10
- import J from "./PopoverContent.js";
11
- import { m as Q } from "./motion-Ckekul_K.js";
12
- const W = T.div``, X = T(Q.div)`
1
+ import { jsx as n, jsxs as B } from "react/jsx-runtime";
2
+ import { forwardRef as F, useRef as l, useState as U, Children as Y, isValidElement as $, cloneElement as c } from "react";
3
+ import { s as S } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import K from "./Button.js";
5
+ import { b as L } from "./utils-DtEfC-TX.js";
6
+ import { useTheme as q } from "./ThemeProvider.js";
7
+ import A from "./Popover.js";
8
+ import G from "./PopoverTrigger.js";
9
+ import H from "./PopoverContent.js";
10
+ import { m as J } from "./motion-Ckekul_K.js";
11
+ const Q = S.div``, W = S(J.div)`
13
12
  gap: 0.25rem;
14
13
  display: flex;
15
14
  flex-direction: column;
16
- ${(t) => t.widthfitcontent == !1 && "min-width: 12.5rem"};
17
- background-color: ${(t) => q(
18
- t.theme,
15
+ ${(o) => o.widthfitcontent == !1 && "min-width: 12.5rem"};
16
+ background-color: ${(o) => L(
17
+ o.theme,
19
18
  "Dropdown",
20
- t.color,
19
+ o.color,
21
20
  "enabled",
22
21
  "background"
23
22
  )};
24
- `, Z = K((t, s) => {
23
+ `, me = F((o, r) => {
25
24
  const {
26
- control: a,
27
- offsetValue: _ = 9,
28
- placement: v,
29
- widthFitContent: M = !1,
30
- closeOnItemSelect: P = !0,
31
- zIndex: N,
25
+ control: s,
26
+ offsetValue: T = 9,
27
+ placement: M,
28
+ widthFitContent: N = !1,
29
+ closeOnItemSelect: v = !0,
30
+ zIndex: x,
32
31
  //----------------
33
- onFocus: u = () => {
32
+ onFocus: f = () => {
34
33
  },
35
- onBlur: d = () => {
34
+ onBlur: u = () => {
36
35
  },
37
- onClick: g = () => {
36
+ onClick: d = () => {
38
37
  },
39
- onKeyDown: y = () => {
38
+ onKeyDown: g = () => {
40
39
  },
41
- onMouseEnter: E = () => {
40
+ onMouseEnter: y = () => {
42
41
  },
43
- onMouseLeave: C = () => {
42
+ onMouseLeave: E = () => {
44
43
  },
45
- onItemSelected: O = () => {
44
+ onItemSelected: D = () => {
46
45
  },
47
46
  //----------------
48
- animation: h = {
47
+ animation: P = {
49
48
  animate: { opacity: 1, height: "auto" },
50
49
  exit: { opacity: 0, height: 0 },
51
50
  initial: { opacity: 0, height: 0 },
@@ -56,139 +55,78 @@ const W = T.div``, X = T(Q.div)`
56
55
  height: { duration: 0.15 }
57
56
  }
58
57
  },
59
- className: x = "",
60
- style: ee = {},
61
- color: n = "primary",
62
- size: i = "small",
63
- contentClassName: D = "",
64
- popoverProps: oe,
65
- children: R,
66
- ...k
67
- } = t;
68
- l();
69
- const z = l(), { theme: F } = A(), I = l(), w = l(), [V, m] = L(!1), b = (e, c, p) => {
70
- O(e, c, p), P == !0 && m(!1);
71
- }, j = U.map(R, (e, c) => {
72
- var p, S;
73
- return Y(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((S = e == null ? void 0 : e.type) == null ? void 0 : S.displayName) === "NESTED_ITEM") ? c == 0 ? (e.props.ref && (w.current = s), f(e, {
74
- ref: s || w,
58
+ className: R = "",
59
+ color: t = "primary",
60
+ size: a = "small",
61
+ contentClassName: b = "",
62
+ children: h,
63
+ ...O
64
+ } = o, k = l(), { theme: V } = q(), C = l(), I = l(), [j, p] = U(!1), _ = (e, m, i) => {
65
+ D(e, m, i), v == !0 && p(!1);
66
+ }, z = Y.map(h, (e, m) => {
67
+ var i, w;
68
+ return $(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((i = e == null ? void 0 : e.type) == null ? void 0 : i.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((w = e == null ? void 0 : e.type) == null ? void 0 : w.displayName) === "NESTED_ITEM") ? m == 0 ? (e.props.ref && (I.current = r), c(e, {
69
+ ref: r || I,
75
70
  //needed to focus on navigation
76
- color: e.props.color ? e.props.color : n,
77
- size: i,
78
- onItemSelected: b,
79
- animation: h
80
- })) : f(e, {
81
- color: e.props.color ? e.props.color : n,
82
- size: i,
83
- onItemSelected: b
71
+ color: e.props.color ? e.props.color : t,
72
+ size: a,
73
+ onItemSelected: _,
74
+ animation: P
75
+ })) : c(e, {
76
+ color: e.props.color ? e.props.color : t,
77
+ size: a,
78
+ onItemSelected: _
84
79
  }) : e;
85
80
  });
86
- return /* @__PURE__ */ r(W, { ref: s, className: x, ...k, children: /* @__PURE__ */ B(
87
- G,
81
+ return /* @__PURE__ */ n(Q, { ref: r, className: R, ...O, children: /* @__PURE__ */ B(
82
+ A,
88
83
  {
89
- open: V,
90
- onOpenChange: m,
91
- placement: v,
92
- offsetValue: _,
84
+ open: j,
85
+ onOpenChange: p,
86
+ placement: M,
87
+ offsetValue: T,
93
88
  children: [
94
- /* @__PURE__ */ r(H, { onClick: () => m((e) => !e), children: typeof a == "string" || a instanceof String ? /* @__PURE__ */ r(
95
- $,
89
+ /* @__PURE__ */ n(G, { onClick: () => p((e) => !e), children: typeof s == "string" || s instanceof String ? /* @__PURE__ */ n(
90
+ K,
96
91
  {
97
- text: a,
98
- onClick: g,
99
- onMouseEnter: E,
100
- onMouseLeave: C,
101
- onBlur: d,
102
- onFocus: u,
103
- ref: I,
104
- onKeyDown: y,
92
+ text: s,
93
+ onClick: d,
94
+ onMouseEnter: y,
95
+ onMouseLeave: E,
96
+ onBlur: u,
97
+ onFocus: f,
98
+ ref: C,
99
+ onKeyDown: g,
105
100
  trailingIcon: "angle-down",
106
- color: n,
107
- size: i
101
+ color: t,
102
+ size: a
108
103
  }
109
- ) : f(a, {
110
- color: n,
111
- size: i,
112
- ref: I,
113
- onClick: g,
114
- onMouseEnter: E,
115
- onMouseLeave: C,
116
- onBlur: d,
117
- onFocus: u,
118
- onKeyDown: y
104
+ ) : c(s, {
105
+ color: t,
106
+ size: a,
107
+ ref: C,
108
+ onClick: d,
109
+ onMouseEnter: y,
110
+ onMouseLeave: E,
111
+ onBlur: u,
112
+ onFocus: f,
113
+ onKeyDown: g
119
114
  }) }),
120
- /* @__PURE__ */ r(J, { zIndex: N, children: /* @__PURE__ */ r(
121
- X,
115
+ /* @__PURE__ */ n(H, { zIndex: x, children: /* @__PURE__ */ n(
116
+ W,
122
117
  {
123
- ref: z,
124
- widthfitcontent: M,
125
- color: n,
126
- theme: F,
127
- className: D,
128
- children: j
118
+ ref: k,
119
+ widthfitcontent: N,
120
+ color: t,
121
+ theme: V,
122
+ className: b,
123
+ children: z
129
124
  }
130
125
  ) })
131
126
  ]
132
127
  }
133
128
  ) });
134
129
  });
135
- Z.propTypes = {
136
- control: o.oneOfType([o.string, o.element]),
137
- /**
138
- * Menu offset from the control
139
- */
140
- offsetValue: o.number,
141
- placement: o.oneOf([
142
- "center",
143
- "top",
144
- "right",
145
- "bottom",
146
- "left",
147
- "top-start",
148
- "top-end",
149
- "right-start",
150
- "right-end",
151
- "bottom-start",
152
- "bottom-end",
153
- "left-start",
154
- "left-end"
155
- ]),
156
- /**
157
- * Adjust width of dropdown according to dropdown items content.
158
- */
159
- widthFitContent: o.bool,
160
- /**
161
- * Close menu when item is selected
162
- */
163
- closeOnItemSelect: o.bool,
164
- /**
165
- * zIndex of dropdown popup
166
- */
167
- zIndex: o.number,
168
- //---------------------------------------------------------------
169
- onBlur: o.func,
170
- onFocus: o.func,
171
- onClick: o.func,
172
- onKeyDown: o.func,
173
- onMouseEnter: o.func,
174
- onMouseLeave: o.func,
175
- onItemSelected: o.func,
176
- //---------------------------------------------------------------
177
- animation: o.object,
178
- className: o.string,
179
- color: o.oneOf([
180
- "primary",
181
- "secondary",
182
- "success",
183
- "warning",
184
- "danger",
185
- "information",
186
- "neutral",
187
- "gray"
188
- ]),
189
- size: o.oneOf(["small", "medium", "large"]),
190
- popoverProps: o.any
191
- };
192
130
  export {
193
- Z as default
131
+ me as default
194
132
  };