@lanaco/lnc-react-ui 4.0.35 → 4.0.37

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 (286) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +11 -11
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +3 -3
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +2 -2
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +2 -2
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +3 -3
  13. package/dist/Badge.cjs +2 -2
  14. package/dist/Badge.js +3 -3
  15. package/dist/BannerSectionBasic.cjs +1 -1
  16. package/dist/BannerSectionBasic.js +1 -1
  17. package/dist/BannerSectionCarousel.cjs +2 -2
  18. package/dist/BannerSectionCarousel.js +63 -63
  19. package/dist/BannerSectionGrid.cjs +3 -3
  20. package/dist/BannerSectionGrid.js +43 -39
  21. package/dist/BannerSectionSimple.cjs +1 -1
  22. package/dist/BannerSectionSimple.js +1 -1
  23. package/dist/BannerSectionWithList.cjs +1 -1
  24. package/dist/BannerSectionWithList.js +2 -2
  25. package/dist/BannerSectionWithListImage.cjs +1 -1
  26. package/dist/BannerSectionWithListImage.js +1 -1
  27. package/dist/BlogsSectionDetailed.cjs +1 -1
  28. package/dist/BlogsSectionDetailed.js +3 -3
  29. package/dist/BlogsSectionLarge.cjs +1 -1
  30. package/dist/BlogsSectionLarge.js +2 -2
  31. package/dist/BlogsSectionSimple.cjs +1 -1
  32. package/dist/BlogsSectionSimple.js +3 -3
  33. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  34. package/dist/BlogsSectionSimpleCentered.js +2 -2
  35. package/dist/BlogsSectionWithFilters.cjs +11 -108
  36. package/dist/BlogsSectionWithFilters.js +59 -437
  37. package/dist/BrandHitsSection.cjs +1 -1
  38. package/dist/BrandHitsSection.js +2 -2
  39. package/dist/Breadcrumbs.cjs +3 -3
  40. package/dist/Breadcrumbs.js +12 -12
  41. package/dist/Button.cjs +1 -1
  42. package/dist/Button.js +4 -4
  43. package/dist/ButtonGroup.cjs +1 -1
  44. package/dist/ButtonGroup.js +3 -3
  45. package/dist/CalorieCalculatorSection.cjs +333 -0
  46. package/dist/CalorieCalculatorSection.js +851 -0
  47. package/dist/CheckBoxInput.cjs +1 -1
  48. package/dist/CheckBoxInput.js +3 -3
  49. package/dist/Chip.cjs +2 -2
  50. package/dist/Chip.js +3 -3
  51. package/dist/ColorInput.cjs +1 -1
  52. package/dist/ColorInput.js +4 -4
  53. package/dist/ConfirmationForm.cjs +2 -2
  54. package/dist/ConfirmationForm.js +3 -3
  55. package/dist/CustomLoanMapSection.cjs +1 -1
  56. package/dist/CustomLoanMapSection.js +2 -2
  57. package/dist/{CustomStyles-BMY2-z7P.js → CustomStyles-BwnfUVvi.js} +8 -8
  58. package/dist/{CustomStyles-zroEcINq.cjs → CustomStyles-DUDHRSkh.cjs} +2 -2
  59. package/dist/DataView.cjs +1 -1
  60. package/dist/DataView.js +1 -1
  61. package/dist/DateInput.cjs +4 -4
  62. package/dist/DateInput.js +76 -80
  63. package/dist/DecimalInput.cjs +3 -3
  64. package/dist/DecimalInput.js +4 -4
  65. package/dist/DecimalInputV2.cjs +2 -2
  66. package/dist/DecimalInputV2.js +3 -3
  67. package/dist/DetailedProductsSection.cjs +1 -1
  68. package/dist/DetailedProductsSection.js +4 -4
  69. package/dist/DetailsView.cjs +2 -2
  70. package/dist/DetailsView.js +3 -3
  71. package/dist/DoubleRangeSlider.cjs +1 -1
  72. package/dist/DoubleRangeSlider.js +3 -3
  73. package/dist/DragAndDropFile.cjs +6 -6
  74. package/dist/DragAndDropFile.js +4 -4
  75. package/dist/DragDropFiles.cjs +1 -1
  76. package/dist/DragDropFiles.js +3 -3
  77. package/dist/Drawer.cjs +1 -1
  78. package/dist/Drawer.js +12 -12
  79. package/dist/Dropdown.cjs +1 -1
  80. package/dist/Dropdown.js +5 -5
  81. package/dist/DropdownItem.cjs +1 -1
  82. package/dist/DropdownItem.js +10 -10
  83. package/dist/DropdownLookup.cjs +1 -1
  84. package/dist/DropdownLookup.js +5 -5
  85. package/dist/DropdownMenu.cjs +1 -1
  86. package/dist/DropdownMenu.js +6 -6
  87. package/dist/EditableTable.cjs +1 -1
  88. package/dist/EditableTable.js +3 -3
  89. package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
  90. package/dist/FieldOfInterestsMasonrySection.js +43 -42
  91. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  92. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +3 -3
  93. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +3 -3
  94. package/dist/FieldOfInterestsWithTagsCardsSection.js +3 -3
  95. package/dist/FileInput.cjs +2 -2
  96. package/dist/FileInput.js +3 -3
  97. package/dist/FlexBox.cjs +1 -1
  98. package/dist/FlexBox.js +1 -1
  99. package/dist/FlexGridItem.cjs +1 -1
  100. package/dist/FlexGridItem.js +2 -2
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +7 -7
  103. package/dist/FormView.cjs +2 -2
  104. package/dist/FormView.js +15 -15
  105. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  106. package/dist/GeneralWithTagsCardsSection.js +3 -3
  107. package/dist/GiftCardsSection.cjs +1 -1
  108. package/dist/GiftCardsSection.js +2 -2
  109. package/dist/Grid.cjs +1 -1
  110. package/dist/Grid.js +1 -1
  111. package/dist/GridItem.cjs +1 -1
  112. package/dist/GridItem.js +1 -1
  113. package/dist/Icon.cjs +2 -2
  114. package/dist/Icon.js +6 -6
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +3 -3
  117. package/dist/Kanban.cjs +7 -7
  118. package/dist/Kanban.js +37 -41
  119. package/dist/KanbanActionsToolbar.cjs +1 -1
  120. package/dist/KanbanActionsToolbar.js +2 -2
  121. package/dist/{KanbanCard-BDyFaKYd.js → KanbanCard-BDRSqfVD.js} +2 -2
  122. package/dist/{KanbanCard-CofqdTrO.cjs → KanbanCard-CLOKZFYP.cjs} +1 -1
  123. package/dist/KanbanCard.cjs +1 -1
  124. package/dist/KanbanCard.js +3 -3
  125. package/dist/KanbanFooter.cjs +1 -1
  126. package/dist/KanbanFooter.js +2 -2
  127. package/dist/KanbanHeader.cjs +2 -2
  128. package/dist/KanbanHeader.js +2 -2
  129. package/dist/KanbanView.cjs +1 -1
  130. package/dist/KanbanView.js +3 -3
  131. package/dist/Link.cjs +2 -2
  132. package/dist/Link.js +6 -6
  133. package/dist/LocationSearchSection.cjs +53 -0
  134. package/dist/LocationSearchSection.js +108 -0
  135. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  136. package/dist/MasonryGeneralCardsSection.js +3 -3
  137. package/dist/MenuItem.cjs +2 -2
  138. package/dist/MenuItem.js +3 -3
  139. package/dist/Modal.cjs +1 -1
  140. package/dist/Modal.js +6 -6
  141. package/dist/MultiSelectDropdown.cjs +1 -1
  142. package/dist/MultiSelectDropdown.js +3 -3
  143. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  144. package/dist/MultiSelectDropdownLookup.js +3 -3
  145. package/dist/NestedDropdownItem.cjs +1 -1
  146. package/dist/NestedDropdownItem.js +9 -9
  147. package/dist/NestedMenuItem.cjs +2 -2
  148. package/dist/NestedMenuItem.js +8 -8
  149. package/dist/Notification.cjs +1 -1
  150. package/dist/Notification.js +1 -1
  151. package/dist/NotificationContainer.cjs +1 -1
  152. package/dist/NotificationContainer.js +3 -3
  153. package/dist/NotificationMessage.cjs +1 -1
  154. package/dist/NotificationMessage.js +3 -3
  155. package/dist/NumberInput.cjs +2 -2
  156. package/dist/NumberInput.js +4 -4
  157. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  158. package/dist/OverlayGeneralCardsSection.js +3 -3
  159. package/dist/PageLayout.cjs +2 -2
  160. package/dist/PageLayout.js +2 -2
  161. package/dist/Pagination.cjs +2 -2
  162. package/dist/Pagination.js +2 -2
  163. package/dist/PasswordInput.cjs +2 -2
  164. package/dist/PasswordInput.js +4 -4
  165. package/dist/PopoverContent.cjs +1 -1
  166. package/dist/PopoverContent.js +5 -5
  167. package/dist/PopoverDescription.cjs +1 -1
  168. package/dist/PopoverDescription.js +1 -1
  169. package/dist/PopoverHeading.cjs +1 -1
  170. package/dist/PopoverHeading.js +1 -1
  171. package/dist/PopoverTrigger.cjs +1 -1
  172. package/dist/PopoverTrigger.js +1 -1
  173. package/dist/ProductsWithBannerSection.cjs +1 -1
  174. package/dist/ProductsWithBannerSection.js +3 -3
  175. package/dist/ProgressBar.cjs +1 -1
  176. package/dist/ProgressBar.js +8 -8
  177. package/dist/QuizSection.cjs +1 -1
  178. package/dist/QuizSection.js +2 -2
  179. package/dist/RadioGroup.cjs +1 -1
  180. package/dist/RadioGroup.js +2 -2
  181. package/dist/RadioInput.cjs +1 -1
  182. package/dist/RadioInput.js +3 -3
  183. package/dist/RangeSlider.cjs +2 -2
  184. package/dist/RangeSlider.js +3 -3
  185. package/dist/SalesCampaignsSection.cjs +423 -0
  186. package/dist/SalesCampaignsSection.js +967 -0
  187. package/dist/SearchBar.cjs +1 -1
  188. package/dist/SearchBar.js +6 -6
  189. package/dist/Separator.cjs +1 -1
  190. package/dist/Separator.js +3 -3
  191. package/dist/ShopCardsSection.cjs +1 -1
  192. package/dist/ShopCardsSection.js +2 -2
  193. package/dist/Sidebar.cjs +1 -1
  194. package/dist/Sidebar.js +3 -3
  195. package/dist/SimpleCategoriesSection.cjs +9 -9
  196. package/dist/SimpleCategoriesSection.js +48 -44
  197. package/dist/SimpleProductsSection.cjs +1 -1
  198. package/dist/SimpleProductsSection.js +3 -3
  199. package/dist/Spinner.cjs +1 -1
  200. package/dist/Spinner.js +12 -12
  201. package/dist/Surface.cjs +2 -2
  202. package/dist/Surface.js +3 -3
  203. package/dist/SwipeableDrawer.cjs +2 -2
  204. package/dist/SwipeableDrawer.js +3 -3
  205. package/dist/TabItem.cjs +1 -1
  206. package/dist/TabItem.js +11 -11
  207. package/dist/Table.cjs +7 -7
  208. package/dist/Table.js +4 -4
  209. package/dist/TableView.cjs +1 -1
  210. package/dist/TableView.js +2 -2
  211. package/dist/Tabs.cjs +2 -2
  212. package/dist/Tabs.js +2 -2
  213. package/dist/TextAreaInput.cjs +12 -12
  214. package/dist/TextAreaInput.js +124 -112
  215. package/dist/TextInput.cjs +2 -2
  216. package/dist/TextInput.js +4 -4
  217. package/dist/ThemeProvider.cjs +10 -10
  218. package/dist/ThemeProvider.js +189 -187
  219. package/dist/TimeInput.cjs +2 -2
  220. package/dist/TimeInput.js +4 -4
  221. package/dist/Toggle.cjs +15 -15
  222. package/dist/Toggle.js +40 -50
  223. package/dist/TreeMenu.cjs +1 -1
  224. package/dist/TreeMenu.js +1 -1
  225. package/dist/TreeMenuSeparator.cjs +1 -1
  226. package/dist/TreeMenuSeparator.js +3 -3
  227. package/dist/UploadedFile.cjs +2 -2
  228. package/dist/UploadedFile.js +16 -16
  229. package/dist/UrgentSaleProductsSection.cjs +1 -1
  230. package/dist/UrgentSaleProductsSection.js +2 -2
  231. package/dist/{defineProperty-DHvxLH8G.cjs → defineProperty-CqVRDJI8.cjs} +1 -1
  232. package/dist/{defineProperty-B5pLF6px.js → defineProperty-DF3p0mVo.js} +5 -5
  233. package/dist/emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs +1 -0
  234. package/dist/emotion-element-f0de968e.browser.esm-CkCiQliQ.js +877 -0
  235. package/dist/{emotion-is-prop-valid.esm-CMrshNb7.cjs → emotion-is-prop-valid.esm-BNsx9k19.cjs} +1 -1
  236. package/dist/{emotion-is-prop-valid.esm-DkbeH1Xy.js → emotion-is-prop-valid.esm-CbWxtx4i.js} +1 -1
  237. package/dist/emotion-react.browser.esm-1R69UXoj.cjs +1 -0
  238. package/dist/emotion-react.browser.esm-C6iWxXPG.js +95 -0
  239. package/dist/{emotion-styled.browser.esm-BiK8DcgW.js → emotion-styled.browser.esm-CjCaF13H.js} +55 -53
  240. package/dist/emotion-styled.browser.esm-Cle7tAM9.cjs +1 -0
  241. package/dist/floating-ui.dom-CFbLeFcw.cjs +1 -0
  242. package/dist/floating-ui.dom-vNhdy5RI.js +947 -0
  243. package/dist/{floating-ui.react.esm-C4vrBVJU.cjs → floating-ui.react.esm-7Yt4LHw6.cjs} +1 -1
  244. package/dist/{floating-ui.react.esm-72DKnou_.js → floating-ui.react.esm-umB-tMXa.js} +3 -3
  245. package/dist/{index--Kmch3aI.js → index-64mXPFBC.js} +6724 -6724
  246. package/dist/{index-CvebWhtp.js → index-BlxaTV-D.js} +1 -1
  247. package/dist/{index-CkPex_K5.js → index-CHkb_Sj6.js} +2 -2
  248. package/dist/index-CT6_7UFb.js +350 -0
  249. package/dist/index-Cb_AeN9A.cjs +4 -0
  250. package/dist/{index-CNBqQrtK.js → index-CkWvbrVT.js} +1 -1
  251. package/dist/{index-BUChtubz.js → index-D-c5IxDk.js} +1 -1
  252. package/dist/{index-DKztZfzw.js → index-D6g5ZqyJ.js} +2 -2
  253. package/dist/{index-BP5r5zGN.cjs → index-DZoWlChs.cjs} +1 -1
  254. package/dist/{index-B67WqHGh.cjs → index-Dit169OA.cjs} +1 -1
  255. package/dist/{index-BmobrEkT.cjs → index-Dj5wZCVs.cjs} +1 -1
  256. package/dist/{index-CTJZaJ_S.js → index-DxdBg_r_.js} +1 -1
  257. package/dist/index-EeoArxOx.cjs +174 -0
  258. package/dist/index-Q_i-aqsF.cjs +95 -0
  259. package/dist/{index-C5vAqIS6.cjs → index-vXmvgZ2Y.cjs} +1 -1
  260. package/dist/index-wy-PXQR9.js +47 -0
  261. package/dist/index.cjs +1 -1
  262. package/dist/index.js +96 -92
  263. package/dist/{motion-Oud-wpUz.cjs → motion-B_VPZaJq.cjs} +1 -1
  264. package/dist/{motion-ecIGZGwI.js → motion-Ckekul_K.js} +1 -1
  265. package/dist/objectWithoutPropertiesLoose-BLga_MQA.cjs +1 -0
  266. package/dist/{objectWithoutPropertiesLoose-DwEN6RBQ.js → objectWithoutPropertiesLoose-DhwSMsjf.js} +1 -1
  267. package/dist/{react-toastify.esm-CkXGwKXL.js → react-toastify.esm--2awuizG.js} +1 -1
  268. package/dist/{react-toastify.esm-Dqcb4SQT.cjs → react-toastify.esm-Dq1k28O7.cjs} +1 -1
  269. package/dist/{style-BGQ1B_dp.js → style-6tSw9aqK.js} +1 -1
  270. package/dist/{style-BEUISPP7.cjs → style-BR3tIhP1.cjs} +1 -1
  271. package/dist/usePopover.cjs +1 -1
  272. package/dist/usePopover.js +6 -6
  273. package/dist/{utils-jiuifwtJ.js → utils-DtRLzzTZ.js} +224 -73
  274. package/dist/utils-NZLCh-J5.cjs +51 -0
  275. package/package.json +5 -2
  276. package/vite.config.js +12 -1
  277. package/dist/emotion-element-5486c51c.browser.esm-Bb4VkP8U.js +0 -886
  278. package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +0 -1
  279. package/dist/emotion-react.browser.esm-CN-s34fZ.js +0 -94
  280. package/dist/emotion-react.browser.esm-D7h2t2Bz.cjs +0 -1
  281. package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +0 -1
  282. package/dist/floating-ui.dom-1F2mTXOe.cjs +0 -1
  283. package/dist/floating-ui.dom-BdUovkEr.js +0 -938
  284. package/dist/index-Ct1N7fF4.cjs +0 -174
  285. package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +0 -1
  286. package/dist/utils-scuIeOqU.cjs +0 -51
@@ -1,18 +1,18 @@
1
- import { jsx as W } from "react/jsx-runtime";
1
+ import { jsx as O } from "react/jsx-runtime";
2
2
  import { P as o } from "./index-S5Cd7WrG.js";
3
- import * as v from "react";
4
- import { useRef as Y, useCallback as A, forwardRef as D, useState as H, useEffect as $ } from "react";
5
- import { d as X } from "./index-CNBqQrtK.js";
6
- import { n as Z } from "./emotion-styled.browser.esm-BiK8DcgW.js";
7
- import { g as q, d as J, a as z, b as K, e as Q, h as ee } from "./utils-jiuifwtJ.js";
8
- import { _ as te, u as re } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
9
- import { _ as ne } from "./objectWithoutPropertiesLoose-DwEN6RBQ.js";
3
+ import * as x from "react";
4
+ import W, { forwardRef as Y, useState as F, useEffect as $, useCallback as q } from "react";
5
+ import { d as D } from "./index-CkWvbrVT.js";
6
+ import { n as X } from "./emotion-styled.browser.esm-CjCaF13H.js";
7
+ import { c as Z, d as J, b as C, a as K, e as Q, h as ee } from "./utils-DtRLzzTZ.js";
8
+ import { _ as te, u as re } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
+ import { _ as ne } from "./objectWithoutPropertiesLoose-DhwSMsjf.js";
10
10
  import { i as ae } from "./use-isomorphic-layout-effect.browser.esm-DERp5kr6.js";
11
- const oe = Z.div`
11
+ const oe = X.div`
12
12
  & textarea {
13
- ${(e) => q(e.theme, "Input", e.size, "enabled")}
13
+ ${(e) => Z(e.theme, "Input", e.size, "enabled")}
14
14
  min-height: ${(e) => J(e.theme, e.size)};
15
- background-color: ${(e) => z(
15
+ background-color: ${(e) => C(
16
16
  e.theme,
17
17
  "Input",
18
18
  e.color,
@@ -20,7 +20,7 @@ const oe = Z.div`
20
20
  "background"
21
21
  )};
22
22
  border: 1px solid
23
- ${(e) => z(
23
+ ${(e) => C(
24
24
  e.theme,
25
25
  "Input",
26
26
  e.focused === !0 ? "primary" : e.color,
@@ -28,14 +28,14 @@ const oe = Z.div`
28
28
  "border"
29
29
  )};
30
30
  border-radius: ${(e) => K(e.theme, "regular")};
31
- color: ${(e) => z(
31
+ color: ${(e) => C(
32
32
  e.theme,
33
33
  "Input",
34
34
  e.focused === !0 ? "primary" : e.color,
35
35
  "enabled",
36
36
  "text"
37
37
  )};
38
- caret-color: ${(e) => z(e.theme, "Input", e.color, "enabled", "caret")};
38
+ caret-color: ${(e) => C(e.theme, "Input", e.color, "enabled", "caret")};
39
39
  overflow: ${(e) => e.collapseOnBlur && e.focused === !1 ? "hidden" : "auto"};
40
40
  transition: height 0.2s ease-out;
41
41
  padding: 0.563rem 0.75rem;
@@ -44,7 +44,7 @@ const oe = Z.div`
44
44
  }
45
45
 
46
46
  & textarea::placeholder {
47
- color: ${(e) => z(
47
+ color: ${(e) => C(
48
48
  e.theme,
49
49
  "Input",
50
50
  e.color,
@@ -66,22 +66,22 @@ const oe = Z.div`
66
66
  }
67
67
  `;
68
68
  var ie = function(t) {
69
- var r = v.useRef(t);
69
+ var n = W.useRef(t);
70
70
  return ae(function() {
71
- r.current = t;
72
- }), r;
73
- }, B = function(t, r) {
71
+ n.current = t;
72
+ }), n;
73
+ }, k = function(t, n) {
74
74
  if (typeof t == "function") {
75
- t(r);
75
+ t(n);
76
76
  return;
77
77
  }
78
- t.current = r;
79
- }, de = function(t, r) {
80
- var n = Y();
81
- return A(function(a) {
82
- t.current = a, n.current && B(n.current, null), n.current = r, r && B(r, a);
83
- }, [r]);
84
- }, O = {
78
+ t.current = n;
79
+ }, de = function(t, n) {
80
+ var r = W.useRef();
81
+ return W.useCallback(function(a) {
82
+ t.current = a, r.current && k(r.current, null), r.current = n, n && k(n, a);
83
+ }, [n]);
84
+ }, M = {
85
85
  "min-height": "0",
86
86
  "max-height": "none",
87
87
  height: "0",
@@ -93,31 +93,31 @@ var ie = function(t) {
93
93
  right: "0",
94
94
  display: "block"
95
95
  }, ue = function(t) {
96
- Object.keys(O).forEach(function(r) {
97
- t.style.setProperty(r, O[r], "important");
96
+ Object.keys(M).forEach(function(n) {
97
+ t.style.setProperty(n, M[n], "important");
98
98
  });
99
- }, k = ue, d = null, M = function(t, r) {
100
- var n = t.scrollHeight;
101
- return r.sizingStyle.boxSizing === "border-box" ? n + r.borderSize : n - r.paddingSize;
99
+ }, V = ue, d = null, A = function(t, n) {
100
+ var r = t.scrollHeight;
101
+ return n.sizingStyle.boxSizing === "border-box" ? r + n.borderSize : r - n.paddingSize;
102
102
  };
103
- function se(e, t, r, n) {
104
- r === void 0 && (r = 1), n === void 0 && (n = 1 / 0), d || (d = document.createElement("textarea"), d.setAttribute("tabindex", "-1"), d.setAttribute("aria-hidden", "true"), k(d)), d.parentNode === null && document.body.appendChild(d);
105
- var a = e.paddingSize, f = e.borderSize, s = e.sizingStyle, S = s.boxSizing;
106
- Object.keys(s).forEach(function(g) {
107
- var m = g;
108
- d.style[m] = s[m];
109
- }), k(d), d.value = t;
110
- var i = M(d, e);
111
- d.value = t, i = M(d, e), d.value = "x";
112
- var u = d.scrollHeight - a, l = u * r;
113
- S === "border-box" && (l = l + a + f), i = Math.max(l, i);
114
- var c = u * n;
115
- return S === "border-box" && (c = c + a + f), i = Math.min(c, i), [i, u];
103
+ function se(e, t, n, r) {
104
+ n === void 0 && (n = 1), r === void 0 && (r = 1 / 0), d || (d = document.createElement("textarea"), d.setAttribute("tabindex", "-1"), d.setAttribute("aria-hidden", "true"), V(d)), d.parentNode === null && document.body.appendChild(d);
105
+ var a = e.paddingSize, m = e.borderSize, s = e.sizingStyle, S = s.boxSizing;
106
+ Object.keys(s).forEach(function(f) {
107
+ var b = f;
108
+ d.style[b] = s[b];
109
+ }), V(d), d.value = t;
110
+ var i = A(d, e);
111
+ d.value = t, i = A(d, e), d.value = "x";
112
+ var u = d.scrollHeight - a, l = u * n;
113
+ S === "border-box" && (l = l + a + m), i = Math.max(l, i);
114
+ var c = u * r;
115
+ return S === "border-box" && (c = c + a + m), i = Math.min(c, i), [i, u];
116
116
  }
117
- var V = function() {
118
- }, le = function(t, r) {
119
- return t.reduce(function(n, a) {
120
- return n[a] = r[a], n;
117
+ var _ = function() {
118
+ }, le = function(t, n) {
119
+ return t.reduce(function(r, a) {
120
+ return r[a] = n[a], r;
121
121
  }, {});
122
122
  }, ce = [
123
123
  "borderBottomWidth",
@@ -145,26 +145,26 @@ var V = function() {
145
145
  "wordBreak",
146
146
  "wordSpacing",
147
147
  "scrollbarGutter"
148
- ], he = !!document.documentElement.currentStyle, fe = function(t) {
149
- var r = window.getComputedStyle(t);
150
- if (r === null)
148
+ ], fe = !!document.documentElement.currentStyle, he = function(t) {
149
+ var n = window.getComputedStyle(t);
150
+ if (n === null)
151
151
  return null;
152
- var n = le(ce, r), a = n.boxSizing;
152
+ var r = le(ce, n), a = r.boxSizing;
153
153
  if (a === "")
154
154
  return null;
155
- he && a === "border-box" && (n.width = parseFloat(n.width) + parseFloat(n.borderRightWidth) + parseFloat(n.borderLeftWidth) + parseFloat(n.paddingRight) + parseFloat(n.paddingLeft) + "px");
156
- var f = parseFloat(n.paddingBottom) + parseFloat(n.paddingTop), s = parseFloat(n.borderBottomWidth) + parseFloat(n.borderTopWidth);
155
+ fe && a === "border-box" && (r.width = parseFloat(r.width) + parseFloat(r.borderRightWidth) + parseFloat(r.borderLeftWidth) + parseFloat(r.paddingRight) + parseFloat(r.paddingLeft) + "px");
156
+ var m = parseFloat(r.paddingBottom) + parseFloat(r.paddingTop), s = parseFloat(r.borderBottomWidth) + parseFloat(r.borderTopWidth);
157
157
  return {
158
- sizingStyle: n,
159
- paddingSize: f,
158
+ sizingStyle: r,
159
+ paddingSize: m,
160
160
  borderSize: s
161
161
  };
162
- }, ge = fe;
163
- function N(e, t, r) {
164
- var n = ie(r);
165
- v.useLayoutEffect(function() {
162
+ }, ge = he;
163
+ function B(e, t, n) {
164
+ var r = ie(n);
165
+ x.useLayoutEffect(function() {
166
166
  var a = function(s) {
167
- return n.current(s);
167
+ return r.current(s);
168
168
  };
169
169
  if (e)
170
170
  return e.addEventListener(t, a), function() {
@@ -172,34 +172,46 @@ function N(e, t, r) {
172
172
  };
173
173
  }, []);
174
174
  }
175
- var me = function(t) {
176
- N(window, "resize", t);
175
+ var me = function(t, n) {
176
+ B(document.body, "reset", function(r) {
177
+ t.current.form === r.target && n(r);
178
+ });
177
179
  }, be = function(t) {
178
- N(document.fonts, "loadingdone", t);
179
- }, pe = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], ve = function(t, r) {
180
- var n = t.cacheMeasurements, a = t.maxRows, f = t.minRows, s = t.onChange, S = s === void 0 ? V : s, i = t.onHeightChange, u = i === void 0 ? V : i, l = ne(t, pe), c = l.value !== void 0, g = v.useRef(null), m = de(g, r), C = v.useRef(0), R = v.useRef(), x = function() {
181
- var b = g.current, y = n && R.current ? R.current : ge(b);
180
+ B(window, "resize", t);
181
+ }, pe = function(t) {
182
+ B(document.fonts, "loadingdone", t);
183
+ }, ve = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], xe = function(t, n) {
184
+ var r = t.cacheMeasurements, a = t.maxRows, m = t.minRows, s = t.onChange, S = s === void 0 ? _ : s, i = t.onHeightChange, u = i === void 0 ? _ : i, l = ne(t, ve), c = l.value !== void 0, f = x.useRef(null), b = de(f, n), L = x.useRef(0), R = x.useRef(), v = function() {
185
+ var h = f.current, y = r && R.current ? R.current : ge(h);
182
186
  if (y) {
183
187
  R.current = y;
184
- var T = se(y, b.value || b.placeholder || "x", f, a), p = T[0], L = T[1];
185
- C.current !== p && (C.current = p, b.style.setProperty("height", p + "px", "important"), u(p, {
186
- rowHeight: L
188
+ var T = se(y, h.value || h.placeholder || "x", m, a), p = T[0], H = T[1];
189
+ L.current !== p && (L.current = p, h.style.setProperty("height", p + "px", "important"), u(p, {
190
+ rowHeight: H
187
191
  }));
188
192
  }
189
- }, I = function(b) {
190
- c || x(), S(b);
193
+ }, I = function(h) {
194
+ c || v(), S(h);
191
195
  };
192
- return v.useLayoutEffect(x), me(x), be(x), /* @__PURE__ */ v.createElement("textarea", te({}, l, {
196
+ return x.useLayoutEffect(v), me(f, function() {
197
+ if (!c) {
198
+ var w = f.current.value;
199
+ requestAnimationFrame(function() {
200
+ var h = f.current;
201
+ h && w !== h.value && v();
202
+ });
203
+ }
204
+ }), be(v), pe(v), /* @__PURE__ */ x.createElement("textarea", te({}, l, {
193
205
  onChange: I,
194
- ref: m
206
+ ref: b
195
207
  }));
196
- }, xe = /* @__PURE__ */ v.forwardRef(ve);
197
- const ye = D((e, t) => {
208
+ }, ye = /* @__PURE__ */ x.forwardRef(xe);
209
+ const Se = Y((e, t) => {
198
210
  const {
199
- disabled: r,
200
- readOnly: n,
211
+ disabled: n,
212
+ readOnly: r,
201
213
  value: a,
202
- defaultValue: f,
214
+ defaultValue: m,
203
215
  debounceTime: s = 0,
204
216
  type: S = "textarea",
205
217
  collapseOnBlur: i = !1,
@@ -207,67 +219,67 @@ const ye = D((e, t) => {
207
219
  maxRows: l,
208
220
  //----------------
209
221
  onChange: c,
210
- onBlur: g,
211
- onFocus: m,
222
+ onBlur: f,
223
+ onFocus: b,
212
224
  //----------------
213
- className: C = "",
225
+ className: L = "",
214
226
  style: R = {},
215
- size: x = "small",
227
+ size: v = "small",
216
228
  color: I = "primary",
217
- ...E
218
- } = e, [b, y] = H(a || f || ""), T = re(), [p, L] = H(!1), [_, j] = H(u), [P, w] = H(
229
+ ...w
230
+ } = e, [h, y] = F(a || m || ""), T = re(), [p, H] = F(!1), [N, j] = F(u), [P, z] = F(
219
231
  i ? u : l
220
232
  );
221
233
  $(() => {
222
234
  a != null && y(a);
223
235
  }, [a]), $(() => {
224
- j(u), i && p === !1 && w(u);
236
+ j(u), i && p === !1 && z(u);
225
237
  }, [u, l]), $(() => {
226
- w(i ? p === !0 ? l : u : l);
238
+ z(i ? p === !0 ? l : u : l);
227
239
  }, [i]);
228
- const U = A(
229
- X((h, F) => G(h, F), s),
240
+ const U = q(
241
+ D((g, E) => G(g, E), s),
230
242
  [c]
231
- ), G = (h, F) => {
232
- c && (c == null || c(h, F));
243
+ ), G = (g, E) => {
244
+ c && (c == null || c(g, E));
233
245
  };
234
- return /* @__PURE__ */ W(
246
+ return /* @__PURE__ */ O(
235
247
  oe,
236
248
  {
237
249
  style: R,
238
- className: C,
250
+ className: L,
239
251
  theme: T,
240
252
  color: I,
241
- size: x,
253
+ size: v,
242
254
  focused: p,
243
- disabled: r,
244
- readOnly: n,
255
+ disabled: n,
256
+ readOnly: r,
245
257
  collapseOnBlur: i,
246
- children: /* @__PURE__ */ W(
247
- xe,
258
+ children: /* @__PURE__ */ O(
259
+ ye,
248
260
  {
249
261
  ref: t,
250
- disabled: r,
251
- value: b,
252
- readOnly: n,
253
- minRows: _,
262
+ disabled: n,
263
+ value: h,
264
+ readOnly: r,
265
+ minRows: N,
254
266
  maxRows: P,
255
- onChange: (h) => {
256
- y(h.target.value), U(h, h.target.value);
267
+ onChange: (g) => {
268
+ y(g.target.value), U(g, g.target.value);
257
269
  },
258
- onFocus: (h) => {
259
- L(!0), i && w(l), m == null || m(h);
270
+ onFocus: (g) => {
271
+ H(!0), i && z(l), b == null || b(g);
260
272
  },
261
- onBlur: (h) => {
262
- L(!1), i && w(u), g == null || g(h);
273
+ onBlur: (g) => {
274
+ H(!1), i && z(u), f == null || f(g);
263
275
  },
264
- ...E
276
+ ...w
265
277
  }
266
278
  )
267
279
  }
268
280
  );
269
281
  });
270
- ye.propTypes = {
282
+ Se.propTypes = {
271
283
  id: o.string,
272
284
  defaultValue: o.string,
273
285
  value: o.string,
@@ -316,5 +328,5 @@ ye.propTypes = {
316
328
  ])
317
329
  };
318
330
  export {
319
- ye as default
331
+ Se as default
320
332
  };
@@ -1,4 +1,4 @@
1
- "use strict";const d=require("react/jsx-runtime"),t=require("./index-BPVoEhTF.cjs"),s=require("react"),B=require("./index-DaiUAQVF.cjs"),c=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./utils-scuIeOqU.cjs"),F=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),D=c.newStyled.div`
1
+ "use strict";const d=require("react/jsx-runtime"),t=require("./index-BPVoEhTF.cjs"),s=require("react"),_=require("./index-DaiUAQVF.cjs"),c=require("./emotion-styled.browser.esm-Cle7tAM9.cjs"),n=require("./utils-NZLCh-J5.cjs"),B=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),D=c.newStyled.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
 
@@ -42,4 +42,4 @@
42
42
  ${e=>n.getDisabledStateCss(e.theme)}
43
43
  background: none;
44
44
  }
45
- `,$=s.forwardRef((e,C)=>{const{disabled:b,readOnly:f,defaultValue:V,value:o,debounceTime:I=0,type:z="text",placeholder:O,tabIndex:R,prefix:p,suffix:g,onChange:l,onBlur:m,onFocus:y,className:w="",style:q={},size:x="small",color:a="primary",...v}=e,i=F.useTheme(),[j,T]=s.useState(o||V||""),[u,P]=s.useState(!1);s.useEffect(()=>{o!=null&&T(o)},[o]);const W=s.useCallback(B.debounce((r,h)=>k(r,h),I),[l]),k=(r,h)=>{l&&(l==null||l(r,h))},U=r=>{T(r.target.value),W(r,r.target.value)},N=r=>{P(!0),y==null||y(r)},_=r=>{P(!1),m==null||m(r)};return d.jsxs(D,{style:q,className:w,theme:i,color:a,size:x,focused:u,disabled:b,readOnly:f,children:[p&&d.jsx(S,{theme:i,color:a,focused:u,className:"lnc-input-prefix",children:p}),d.jsx(A,{ref:C,type:z,theme:i,color:a,size:x,placeholder:O,prefix:p,suffix:g,disabled:b,readOnly:f,focused:u,onFocus:N,onBlur:_,onChange:U,tabIndex:R,value:j,...v}),g&&d.jsx(E,{theme:i,color:a,focused:u,className:"lnc-input-suffix",children:g})]})});$.propTypes={id:t.PropTypes.string,defaultValue:t.PropTypes.string,value:t.PropTypes.string,disabled:t.PropTypes.bool,readOnly:t.PropTypes.bool,debounceTime:t.PropTypes.number,placeholder:t.PropTypes.string,type:t.PropTypes.oneOf(["text","email"]),tabIndex:t.PropTypes.number,prefix:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.element]),suffix:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.element]),onChange:t.PropTypes.func,onBlur:t.PropTypes.func,onFocus:t.PropTypes.func,className:t.PropTypes.string,style:t.PropTypes.object,size:t.PropTypes.oneOf(["small","medium","large"]),color:t.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=$;
45
+ `,$=s.forwardRef((e,C)=>{const{disabled:b,readOnly:f,defaultValue:V,value:o,debounceTime:I=0,type:z="text",placeholder:O,tabIndex:R,prefix:p,suffix:g,onChange:l,onBlur:m,onFocus:y,className:w="",style:q={},size:x="small",color:a="primary",...v}=e,i=B.useTheme(),[j,T]=s.useState(o||V||""),[u,P]=s.useState(!1);s.useEffect(()=>{o!=null&&T(o)},[o]);const W=s.useCallback(_.debounce((r,h)=>k(r,h),I),[l]),k=(r,h)=>{l&&(l==null||l(r,h))},U=r=>{T(r.target.value),W(r,r.target.value)},F=r=>{P(!0),y==null||y(r)},N=r=>{P(!1),m==null||m(r)};return d.jsxs(D,{style:q,className:w,theme:i,color:a,size:x,focused:u,disabled:b,readOnly:f,children:[p&&d.jsx(S,{theme:i,color:a,focused:u,className:"lnc-input-prefix",children:p}),d.jsx(A,{ref:C,type:z,theme:i,color:a,size:x,placeholder:O,prefix:p,suffix:g,disabled:b,readOnly:f,focused:u,onFocus:F,onBlur:N,onChange:U,tabIndex:R,value:j,...v}),g&&d.jsx(E,{theme:i,color:a,focused:u,className:"lnc-input-suffix",children:g})]})});$.propTypes={id:t.PropTypes.string,defaultValue:t.PropTypes.string,value:t.PropTypes.string,disabled:t.PropTypes.bool,readOnly:t.PropTypes.bool,debounceTime:t.PropTypes.number,placeholder:t.PropTypes.string,type:t.PropTypes.oneOf(["text","email"]),tabIndex:t.PropTypes.number,prefix:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.element]),suffix:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.element]),onChange:t.PropTypes.func,onBlur:t.PropTypes.func,onFocus:t.PropTypes.func,className:t.PropTypes.string,style:t.PropTypes.object,size:t.PropTypes.oneOf(["small","medium","large"]),color:t.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=$;
package/dist/TextInput.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsxs as W, jsx as b } from "react/jsx-runtime";
2
2
  import { P as t } from "./index-S5Cd7WrG.js";
3
3
  import { forwardRef as U, useState as C, useEffect as D, useCallback as E } from "react";
4
- import { d as q } from "./index-CNBqQrtK.js";
5
- import { n as u } from "./emotion-styled.browser.esm-BiK8DcgW.js";
6
- import { d as s, a, b as A, e as G, h as O, g as H } from "./utils-jiuifwtJ.js";
7
- import { u as J } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
4
+ import { d as q } from "./index-CkWvbrVT.js";
5
+ import { n as u } from "./emotion-styled.browser.esm-CjCaF13H.js";
6
+ import { d as s, b as a, a as A, e as G, h as O, c as H } from "./utils-DtRLzzTZ.js";
7
+ import { u as J } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
8
  const K = u.div`
9
9
  display: flex;
10
10
  align-items: center;