@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,8 +1,7 @@
1
- import { jsx as E } from "react/jsx-runtime";
2
- import { forwardRef as T, Children as d, isValidElement as S, cloneElement as y } from "react";
3
- import { P as L } from "./index-CblbdqjE.js";
1
+ import { jsx as x } from "react/jsx-runtime";
2
+ import { forwardRef as S, Children as d, isValidElement as E, cloneElement as h } from "react";
4
3
  import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
4
+ import { u as L } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
6
5
  const N = C.section`
7
6
  display: flex;
8
7
  flex: auto;
@@ -28,16 +27,16 @@ const N = C.section`
28
27
  flex: 0 0 15rem;
29
28
  height: 100%;
30
29
  }
31
- `, p = T((i, h) => {
32
- const { children: l, isChild: m, __TYPE__: w = "PageLayout", ...n } = i, P = Y(), g = d.toArray(l).some(
30
+ `, T = S((i, _) => {
31
+ const { children: l, isChild: p, ...n } = i, m = L(), g = d.toArray(l).some(
33
32
  (e) => {
34
33
  var t;
35
34
  return e.props.__TYPE__ || ((t = e == null ? void 0 : e.type) == null ? void 0 : t.displayName) == "Sidebar";
36
35
  }
37
- ), b = (e) => {
36
+ ), P = (e) => {
38
37
  let t, a, s;
39
38
  if (d.forEach(e, (r, o) => {
40
- var f, u, _;
39
+ var f, u, y;
41
40
  if (r.props.__TYPE__ == "Sidebar" || ((f = r == null ? void 0 : r.type) == null ? void 0 : f.displayName) === "Sidebar") {
42
41
  if (a)
43
42
  throw "Found multiple ocurrences of Sidebar component on the same level in the component tree.";
@@ -46,7 +45,7 @@ const N = C.section`
46
45
  if (t)
47
46
  throw "Found multiple ocurrences of PageLayout component on the same level in the component tree.";
48
47
  t = o + 1;
49
- } else if (r.props.__TYPE__ == "Content" || ((_ = r == null ? void 0 : r.type) == null ? void 0 : _.displayName) === "Content") {
48
+ } else if (r.props.__TYPE__ == "Content" || ((y = r == null ? void 0 : r.type) == null ? void 0 : y.displayName) === "Content") {
50
49
  if (s)
51
50
  throw "Found multiple ocurrences of Content component on the same level in the component tree.";
52
51
  s = o + 1;
@@ -55,38 +54,31 @@ const N = C.section`
55
54
  return a < t ? "left" : "right";
56
55
  if (s && a)
57
56
  return a < s ? "left" : "right";
58
- }, x = d.map(l, (e) => {
57
+ }, b = d.map(l, (e) => {
59
58
  var t, a;
60
- if (S(e)) {
59
+ if (E(e)) {
61
60
  if (e.props.__TYPE__ == "Sidebar" || ((t = e.type) == null ? void 0 : t.displayName) === "Sidebar")
62
- return y(e, {
63
- placement: b(l)
61
+ return h(e, {
62
+ placement: P(l)
64
63
  });
65
64
  if (e.props.__TYPE__ == "PageLayout" || ((a = e.type) == null ? void 0 : a.displayName) === "PageLayout")
66
- return y(e, { isChild: !0 });
65
+ return h(e, { isChild: !0 });
67
66
  }
68
67
  return e;
69
68
  });
70
- return /* @__PURE__ */ E(
69
+ return /* @__PURE__ */ x(
71
70
  N,
72
71
  {
73
- isChild: m,
72
+ isChild: p,
74
73
  hasSidebar: g,
75
- theme: P,
76
- ref: h,
74
+ theme: m,
75
+ ref: _,
77
76
  ...n,
78
- children: x
77
+ children: b
79
78
  }
80
79
  );
81
80
  });
82
- p.propTypes = {
83
- /**
84
- * Do not override this property.
85
- * Should only be used as indicator for type if you are passing custom component.
86
- */
87
- __TYPE__: L.string
88
- };
89
- p.displayName = "PageLayout";
81
+ T.displayName = "PageLayout";
90
82
  export {
91
- p as default
83
+ T as default
92
84
  };
@@ -1,12 +1,12 @@
1
- "use strict";const o=require("react/jsx-runtime"),E=require("react"),t=require("./index-BpbMKBf_.cjs"),P=require("./Button.cjs"),b=require("./IconButton.cjs"),_=require("./ButtonGroup.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),w=require("./useUpdateEffect-BtMgpgIV.cjs"),U=C.styled.div`
1
+ "use strict";const n=require("react/jsx-runtime"),_=require("react"),h=require("./Button.cjs"),g=require("./IconButton.cjs"),A=require("./ButtonGroup.cjs"),q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),L=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=require("./useUpdateEffect-BtMgpgIV.cjs"),U=q.styled.div`
2
2
  display: inline-flex;
3
3
  flex-wrap: wrap;
4
4
  width: 100%;
5
5
  gap: 0.375rem;
6
6
  justify-content: ${u=>u.horizontalAlignment};
7
- `,$=C.styled.div`
7
+ `,G=q.styled.div`
8
8
  & > .button-group-pagination-lnc {
9
9
  width: 100%;
10
10
  justify-content: ${u=>u.horizontalAlignment};
11
11
  }
12
- `,O=u=>{const{icons:c={},borderRadius:d="regular",currentPage:f=1,buttonType:q="outline",currentPageButtonType:B="tinted",withFirstLast:m=!0,withButtonGroup:N=!0,disabledNext:v=!1,disabledPrevious:k=!1,disabledFirst:z=!1,disabledLast:F=!1,disabled:i=!1,totalNumberOfPages:g=1,pagesOffset:y=0,horizontalAlignment:T="left",onPageChange:L=()=>{},className:h="",style:x={},color:R="primary",size:S="small"}=u,l={theme:G.useTheme(),size:S,color:R,btnType:q},[s,a]=E.useState(f);w.useUpdateEffect(()=>{a(f)},[f]),w.useUpdateEffect(()=>{L(s)},[s]);const p=(r,e)=>{e=="next"&&s<g?a(s+1):e=="previous"&&s>1?a(s-1):e=="last"&&s!=g?a(g):e=="first"&&s!=1?a(1):isNaN(+e)||a(e)},A=()=>{let r=[];for(let e=s-y>0?s-y:1;e<s&&e>0;e++)r.push(o.jsx(P,{...l,borderRadius:d,onClick:n=>p(n,e),btnType:"basic",text:e.toString(),disabled:i},e));r.push(o.jsx(P,{...l,borderRadius:d,btnType:B,text:s.toString(),disabled:i},s));for(let e=s+1;e<=s+y&&e<=g;e++)r.push(o.jsx(P,{...l,borderRadius:d,onClick:n=>p(n,e),btnType:"basic",text:e.toString(),disabled:i},e));return r},j=(r=null)=>{var e={};return r&&(e.borderRadius=r),o.jsxs(o.Fragment,{children:[m&&o.jsx(b,{...l,icon:c.doubleLeft||"angle-double-left",disabled:z||i,onClick:n=>p(n,"first"),...e}),o.jsx(b,{...l,icon:c.left||"angle-left",disabled:k||i,onClick:n=>p(n,"previous"),...e}),A(),o.jsx(b,{...l,icon:c.right||"angle-right",disabled:v||i,onClick:n=>p(n,"next"),...e}),m&&o.jsx(b,{...l,icon:c.doubleRight||"angle-double-right",disabled:F||i,onClick:n=>p(n,"last"),...e})]})};return N?o.jsx($,{horizontalAlignment:T,children:o.jsx(_,{className:"button-group-pagination-lnc "+h,style:x,borderRadius:d,children:j()})}):o.jsx(U,{horizontalAlignment:T,className:h,style:x,children:j(d)})};O.propTypes={icons:t.PropTypes.shape({left:t.PropTypes.element,right:t.PropTypes.element,doubleLeft:t.PropTypes.element,doubleRight:t.PropTypes.element}),disabled:t.PropTypes.bool,borderRadius:t.PropTypes.oneOf(["slight","regular","edged","curved","none"]),buttonType:t.PropTypes.oneOf(["filled","tinted","outline","basic"]),currentPageButtonType:t.PropTypes.oneOf(["filled","tinted","outline","basic"]),withFirstLast:t.PropTypes.bool,withButtonGroup:t.PropTypes.bool,currentPage:t.PropTypes.number,totalNumberOfPages:t.PropTypes.number,pagesOffset:t.PropTypes.number,disabledNext:t.PropTypes.bool,disabledPrevious:t.PropTypes.bool,disabledFirst:t.PropTypes.bool,disabledLast:t.PropTypes.bool,horizontalAlignment:t.PropTypes.oneOf(["left","center","right"]),onPageChange: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","warning","danger","information","neutral","gray"])};module.exports=O;
12
+ `,O=u=>{const{icons:d={},borderRadius:c="regular",currentPage:b=1,buttonType:w="outline",currentPageButtonType:k="tinted",withFirstLast:x=!0,withButtonGroup:B=!0,disabledNext:T=!1,disabledPrevious:v=!1,disabledFirst:N=!1,disabledLast:S=!1,disabled:o=!1,totalNumberOfPages:f=1,pagesOffset:p=0,horizontalAlignment:m="left",onPageChange:z=()=>{},className:j="",style:y={},color:E="primary",size:F="small"}=u,r={theme:L.useTheme(),size:F,color:E,btnType:w},[t,l]=_.useState(b);C.useUpdateEffect(()=>{l(b)},[b]),C.useUpdateEffect(()=>{z(t)},[t]);const a=(i,e)=>{e=="next"&&t<f?l(t+1):e=="previous"&&t>1?l(t-1):e=="last"&&t!=f?l(f):e=="first"&&t!=1?l(1):isNaN(+e)||l(e)},R=()=>{let i=[];for(let e=t-p>0?t-p:1;e<t&&e>0;e++)i.push(n.jsx(h,{...r,borderRadius:c,onClick:s=>a(s,e),btnType:"basic",text:e.toString(),disabled:o},e));i.push(n.jsx(h,{...r,borderRadius:c,btnType:k,text:t.toString(),disabled:o},t));for(let e=t+1;e<=t+p&&e<=f;e++)i.push(n.jsx(h,{...r,borderRadius:c,onClick:s=>a(s,e),btnType:"basic",text:e.toString(),disabled:o},e));return i},P=(i=null)=>{var e={};return i&&(e.borderRadius=i),n.jsxs(n.Fragment,{children:[x&&n.jsx(g,{...r,icon:d.doubleLeft||"angle-double-left",disabled:N||o,onClick:s=>a(s,"first"),...e}),n.jsx(g,{...r,icon:d.left||"angle-left",disabled:v||o,onClick:s=>a(s,"previous"),...e}),R(),n.jsx(g,{...r,icon:d.right||"angle-right",disabled:T||o,onClick:s=>a(s,"next"),...e}),x&&n.jsx(g,{...r,icon:d.doubleRight||"angle-double-right",disabled:S||o,onClick:s=>a(s,"last"),...e})]})};return B?n.jsx(G,{horizontalAlignment:m,children:n.jsx(A,{className:"button-group-pagination-lnc "+j,style:y,borderRadius:c,children:P()})}):n.jsx(U,{horizontalAlignment:m,className:j,style:y,children:P(c)})};module.exports=O;
@@ -1,248 +1,165 @@
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-CblbdqjE.js";
4
- import h from "./Button.js";
5
- import b from "./IconButton.js";
6
- import U from "./ButtonGroup.js";
7
- import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
- import { u as q } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
- import { u as O } from "./useUpdateEffect-CuYWz7EA.js";
10
- const D = w.div`
1
+ import { jsx as i, jsxs as G, Fragment as O } from "react/jsx-runtime";
2
+ import { useState as R } from "react";
3
+ import b from "./Button.js";
4
+ import g from "./IconButton.js";
5
+ import E from "./ButtonGroup.js";
6
+ import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
+ import { u as U } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ import { u as k } from "./useUpdateEffect-CuYWz7EA.js";
9
+ const q = B.div`
11
10
  display: inline-flex;
12
11
  flex-wrap: wrap;
13
12
  width: 100%;
14
13
  gap: 0.375rem;
15
- justify-content: ${(d) => d.horizontalAlignment};
16
- `, H = w.div`
14
+ justify-content: ${(u) => u.horizontalAlignment};
15
+ `, D = B.div`
17
16
  & > .button-group-pagination-lnc {
18
17
  width: 100%;
19
- justify-content: ${(d) => d.horizontalAlignment};
18
+ justify-content: ${(u) => u.horizontalAlignment};
20
19
  }
21
- `, I = (d) => {
20
+ `, Y = (u) => {
22
21
  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",
22
+ icons: f = {},
23
+ borderRadius: d = "regular",
24
+ currentPage: p = 1,
25
+ buttonType: T = "outline",
26
+ currentPageButtonType: v = "tinted",
27
+ withFirstLast: h = !0,
28
+ withButtonGroup: w = !0,
29
+ disabledNext: N = !1,
30
+ disabledPrevious: j = !1,
31
+ disabledFirst: z = !1,
32
+ disabledLast: S = !1,
33
+ disabled: r = !1,
34
+ totalNumberOfPages: c = 1,
35
+ pagesOffset: m = 0,
36
+ horizontalAlignment: y = "left",
38
37
  //------------------
39
- onPageChange: F = () => {
38
+ onPageChange: A = () => {
40
39
  },
41
40
  //------------------
42
41
  className: x = "",
43
- style: C = {},
44
- color: A = "primary",
45
- size: R = "small"
46
- } = d, s = { theme: q(), size: R, color: A, btnType: B }, [n, a] = E(m);
47
- O(() => {
48
- a(m);
49
- }, [m]), O(() => {
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
- }, S = () => {
55
- let r = [];
56
- for (let e = n - p > 0 ? n - p : 1; e < n && e > 0; e++)
57
- r.push(
42
+ style: P = {},
43
+ color: F = "primary",
44
+ size: L = "small"
45
+ } = u, s = { theme: U(), size: L, color: F, btnType: T }, [e, a] = R(p);
46
+ k(() => {
47
+ a(p);
48
+ }, [p]), k(() => {
49
+ A(e);
50
+ }, [e]);
51
+ const l = (o, t) => {
52
+ t == "next" && e < c ? a(e + 1) : t == "previous" && e > 1 ? a(e - 1) : t == "last" && e != c ? a(c) : t == "first" && e != 1 ? a(1) : isNaN(+t) || a(t);
53
+ }, $ = () => {
54
+ let o = [];
55
+ for (let t = e - m > 0 ? e - m : 1; t < e && t > 0; t++)
56
+ o.push(
58
57
  /* @__PURE__ */ i(
59
- h,
58
+ b,
60
59
  {
61
60
  ...s,
62
- borderRadius: f,
63
- onClick: (o) => u(o, e),
61
+ borderRadius: d,
62
+ onClick: (n) => l(n, t),
64
63
  btnType: "basic",
65
- text: e.toString(),
66
- disabled: l
64
+ text: t.toString(),
65
+ disabled: r
67
66
  },
68
- e
67
+ t
69
68
  )
70
69
  );
71
- r.push(
70
+ o.push(
72
71
  /* @__PURE__ */ i(
73
- h,
72
+ b,
74
73
  {
75
74
  ...s,
76
- borderRadius: f,
77
- btnType: N,
78
- text: n.toString(),
79
- disabled: l
75
+ borderRadius: d,
76
+ btnType: v,
77
+ text: e.toString(),
78
+ disabled: r
80
79
  },
81
- n
80
+ e
82
81
  )
83
82
  );
84
- for (let e = n + 1; e <= n + p && e <= g; e++)
85
- r.push(
83
+ for (let t = e + 1; t <= e + m && t <= c; t++)
84
+ o.push(
86
85
  /* @__PURE__ */ i(
87
- h,
86
+ b,
88
87
  {
89
88
  ...s,
90
- borderRadius: f,
91
- onClick: (o) => u(o, e),
89
+ borderRadius: d,
90
+ onClick: (n) => l(n, t),
92
91
  btnType: "basic",
93
- text: e.toString(),
94
- disabled: l
92
+ text: t.toString(),
93
+ disabled: r
95
94
  },
96
- e
95
+ t
97
96
  )
98
97
  );
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,
98
+ return o;
99
+ }, C = (o = null) => {
100
+ var t = {};
101
+ return o && (t.borderRadius = o), /* @__PURE__ */ G(O, { children: [
102
+ h && /* @__PURE__ */ i(
103
+ g,
105
104
  {
106
105
  ...s,
107
- icon: c.doubleLeft || "angle-double-left",
108
- disabled: L || l,
109
- onClick: (o) => u(o, "first"),
110
- ...e
106
+ icon: f.doubleLeft || "angle-double-left",
107
+ disabled: z || r,
108
+ onClick: (n) => l(n, "first"),
109
+ ...t
111
110
  }
112
111
  ),
113
112
  /* @__PURE__ */ i(
114
- b,
113
+ g,
115
114
  {
116
115
  ...s,
117
- icon: c.left || "angle-left",
118
- disabled: z || l,
119
- onClick: (o) => u(o, "previous"),
120
- ...e
116
+ icon: f.left || "angle-left",
117
+ disabled: j || r,
118
+ onClick: (n) => l(n, "previous"),
119
+ ...t
121
120
  }
122
121
  ),
123
- S(),
122
+ $(),
124
123
  /* @__PURE__ */ i(
125
- b,
124
+ g,
126
125
  {
127
126
  ...s,
128
- icon: c.right || "angle-right",
129
- disabled: k || l,
130
- onClick: (o) => u(o, "next"),
131
- ...e
127
+ icon: f.right || "angle-right",
128
+ disabled: N || r,
129
+ onClick: (n) => l(n, "next"),
130
+ ...t
132
131
  }
133
132
  ),
134
- y && /* @__PURE__ */ i(
135
- b,
133
+ h && /* @__PURE__ */ i(
134
+ g,
136
135
  {
137
136
  ...s,
138
- icon: c.doubleRight || "angle-double-right",
139
- disabled: j || l,
140
- onClick: (o) => u(o, "last"),
141
- ...e
137
+ icon: f.doubleRight || "angle-double-right",
138
+ disabled: S || r,
139
+ onClick: (n) => l(n, "last"),
140
+ ...t
142
141
  }
143
142
  )
144
143
  ] });
145
144
  };
146
- return v ? /* @__PURE__ */ i(H, { horizontalAlignment: P, children: /* @__PURE__ */ i(
147
- U,
145
+ return w ? /* @__PURE__ */ i(D, { horizontalAlignment: y, children: /* @__PURE__ */ i(
146
+ E,
148
147
  {
149
148
  className: "button-group-pagination-lnc " + x,
150
- style: C,
151
- borderRadius: f,
152
- children: T()
149
+ style: P,
150
+ borderRadius: d,
151
+ children: C()
153
152
  }
154
153
  ) }) : /* @__PURE__ */ i(
155
- D,
154
+ q,
156
155
  {
157
- horizontalAlignment: P,
156
+ horizontalAlignment: y,
158
157
  className: x,
159
- style: C,
160
- children: T(f)
158
+ style: P,
159
+ children: C(d)
161
160
  }
162
161
  );
163
162
  };
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
163
  export {
247
- I as default
164
+ Y as default
248
165
  };
@@ -1,24 +1,24 @@
1
- "use strict";const u=require("react/jsx-runtime"),a=require("react"),r=require("./index-BpbMKBf_.cjs"),L=require("./index-Cp66dWMi.cjs"),D=require("./Icon.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-RnrgDDZP.cjs"),A=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),G=h.styled.div`
1
+ "use strict";const c=require("react/jsx-runtime"),a=require("react"),p=require("./index-Cp66dWMi.cjs"),B=require("./Icon.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-RnrgDDZP.cjs"),D=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),P=h.styled.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
 
5
- min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
6
- max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
7
- background-color: ${e=>o.getColorRgbaValue(e.theme,"Input",e.color,"enabled","background")};
5
+ min-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
6
+ max-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
7
+ background-color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","background")};
8
8
  border: 1px solid
9
- ${e=>o.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,e.disabled===!0?"disabled":"enabled","border")};
10
- border-radius: ${e=>o.getBorderRadiusValueWithUnits(e.theme,"regular")};
9
+ ${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,e.disabled===!0?"disabled":"enabled","border")};
10
+ border-radius: ${e=>l.getBorderRadiusValueWithUnits(e.theme,"regular")};
11
11
 
12
- ${e=>e.focused&&e.readOnly!==!0?o.getOutlineCss(e.theme):""}
13
- /* ${e=>e.disabled===!0?o.getDisabledStateCss(e.theme):""} */
14
- ${e=>e.disabled===!0&&`background-color: ${o.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
15
- color: ${n=>o.getColorRgbaValue(n.theme,"Input",n.color,"disabled","text")};`}
12
+ ${e=>e.focused&&e.readOnly!==!0?l.getOutlineCss(e.theme):""}
13
+ /* ${e=>e.disabled===!0?l.getDisabledStateCss(e.theme):""} */
14
+ ${e=>e.disabled===!0&&`background-color: ${l.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
15
+ color: ${o=>l.getColorRgbaValue(o.theme,"Input",o.color,"disabled","text")};`}
16
16
  `,$=h.styled.span`
17
17
  padding: 0 12px;
18
- color: ${e=>o.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","prefix")};
19
- `,H=h.styled($)``,J=h.styled($)`
18
+ color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","prefix")};
19
+ `,A=h.styled($)``,G=h.styled($)`
20
20
  cursor: pointer;
21
- `,K=h.styled.input`
21
+ `,H=h.styled.input`
22
22
  background: none;
23
23
  border: none;
24
24
  outline: none;
@@ -26,16 +26,16 @@
26
26
  padding-bottom: 0.625rem;
27
27
  width: 100%;
28
28
 
29
- ${e=>o.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
30
- min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
31
- max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
32
- color: ${e=>o.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","text")};
33
- caret-color: ${e=>o.getColorRgbaValue(e.theme,"Input",e.color,"enabled","caret")};
29
+ ${e=>l.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
30
+ min-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
31
+ max-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
32
+ color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","text")};
33
+ caret-color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","caret")};
34
34
  padding-right: ${e=>e.suffix?"0":"0.75rem"};
35
35
  padding-left: ${e=>e.prefix?"0":"0.75rem"};
36
36
 
37
37
  &::placeholder {
38
- color: ${e=>o.getColorRgbaValue(e.theme,"Input",e.color,"enabled","placeholder")};
38
+ color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","placeholder")};
39
39
  }
40
40
 
41
41
  &:read-only {
@@ -43,9 +43,9 @@
43
43
  }
44
44
 
45
45
  &:disabled {
46
- /* ${e=>o.getDisabledStateCss(e.theme)} */
47
- ${e=>`background-color: ${o.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
48
- color: ${n=>o.getColorRgbaValue(n.theme,"Input",n.color,"disabled","text")};`}
46
+ /* ${e=>l.getDisabledStateCss(e.theme)} */
47
+ ${e=>`background-color: ${l.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
48
+ color: ${o=>l.getColorRgbaValue(o.theme,"Input",o.color,"disabled","text")};`}
49
49
  background: none;
50
50
  }
51
- `,V=a.forwardRef((e,n)=>{const{wrapperRef:k,disabled:C,readOnly:T,debounceTime:R=0,placeholder:z,prefix:y,suffix:f,value:c,defaultValue:v,onChange:d,onBlur:p,onFocus:x,className:O="",style:j={},size:I="small",color:i="primary",...q}=e,l=a.useRef(),g=A.useTheme(),[w,P]=a.useState(c||v||"");a.useEffect(()=>{c!=null&&P(c)},[c]);const[m,W]=a.useState(!0),[b,S]=a.useState(!1);a.useEffect(()=>{var s;const t=((s=l==null?void 0:l.current)==null?void 0:s.value)||"";l.current.selectionStart=t!=null&&t.length?t.length:0,l.current.selectionEnd=t!=null&&t.length?t.length:0},[m]),a.useEffect(()=>{n!=null&&(n.current=l.current)},[n,l]);const E=a.useCallback(L.debounce((t,s)=>U(t,s),R),[d]),U=(t,s)=>{d&&(d==null||d(t,s))},F=t=>{P(t.target.value),E(t,t.target.value)},N=()=>{W(!m),l.current.focus()},_=t=>{S(!0),x==null||x(t)},B=t=>{S(!1),p==null||p(t)};return u.jsxs(G,{ref:k,style:j,className:O,theme:g,color:i,size:I,focused:b,disabled:C,readOnly:T,children:[y&&u.jsx($,{theme:g,color:i,focused:b,className:"lnc-input-prefix",children:y}),u.jsx(K,{ref:l,type:m?"password":"text",theme:g,color:i,size:I,placeholder:z,prefix:y,suffix:f,disabled:C,readOnly:T,focused:b,onFocus:_,onBlur:B,onChange:F,value:w,...q}),u.jsx(J,{theme:g,color:i,focused:b,onClick:N,children:u.jsx(D,{icon:m?"eye-slash":"eye"})}),f&&u.jsx(H,{theme:g,color:i,focused:b,className:"lnc-input-suffix",children:f})]})});V.propTypes={id:r.PropTypes.any,value:r.PropTypes.string,defaultValue:r.PropTypes.string,disabled:r.PropTypes.bool,readOnly:r.PropTypes.bool,debounceTime:r.PropTypes.number,placeholder:r.PropTypes.string,tabIndex:r.PropTypes.number,onChange:r.PropTypes.func,onBlur:r.PropTypes.func,onFocus:r.PropTypes.func,className:r.PropTypes.string,style:r.PropTypes.object,size:r.PropTypes.oneOf(["small","medium","large"]),color:r.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=V;
51
+ `,J=a.forwardRef((e,o)=>{const{wrapperRef:R,disabled:C,readOnly:S,debounceTime:z=0,placeholder:v,prefix:m,suffix:f,value:d,defaultValue:j,onChange:u,onBlur:x,onFocus:y,className:q="",style:w={},size:k="small",color:s="primary",...O}=e,n=a.useRef(),i=D.useTheme(),[W,I]=a.useState(d||j||"");a.useEffect(()=>{d!=null&&I(d)},[d]);const[b,E]=a.useState(!0),[g,V]=a.useState(!1);a.useEffect(()=>{var r;const t=((r=n==null?void 0:n.current)==null?void 0:r.value)||"";n.current.selectionStart=t!=null&&t.length?t.length:0,n.current.selectionEnd=t!=null&&t.length?t.length:0},[b]),a.useEffect(()=>{o!=null&&(o.current=n.current)},[o,n]);const U=a.useCallback(p.debounce((t,r)=>_(t,r),z),[u]),_=(t,r)=>{u&&(u==null||u(t,r))},F=t=>{I(t.target.value),U(t,t.target.value)},L=()=>{E(!b),n.current.focus()},N=t=>{V(!0),y==null||y(t)},T=t=>{V(!1),x==null||x(t)};return c.jsxs(P,{ref:R,style:w,className:q,theme:i,color:s,size:k,focused:g,disabled:C,readOnly:S,children:[m&&c.jsx($,{theme:i,color:s,focused:g,className:"lnc-input-prefix",children:m}),c.jsx(H,{ref:n,type:b?"password":"text",theme:i,color:s,size:k,placeholder:v,prefix:m,suffix:f,disabled:C,readOnly:S,focused:g,onFocus:N,onBlur:T,onChange:F,value:W,...O}),c.jsx(G,{theme:i,color:s,focused:g,onClick:L,children:c.jsx(B,{icon:b?"eye-slash":"eye"})}),f&&c.jsx(A,{theme:i,color:s,focused:g,className:"lnc-input-suffix",children:f})]})});module.exports=J;