@lanaco/lnc-react-ui 4.0.199 → 4.0.201

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 (270) 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/BannerSectionCarousel.cjs +4 -4
  16. package/dist/BannerSectionCarousel.js +51 -542
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +1 -1
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +12 -14
  21. package/dist/BlogExploreSection.cjs +1 -1
  22. package/dist/BlogExploreSection.js +1 -1
  23. package/dist/BlogListSection.cjs +1 -1
  24. package/dist/BlogListSection.js +1 -1
  25. package/dist/BlogsSectionDetailed.cjs +1 -1
  26. package/dist/BlogsSectionDetailed.js +1 -1
  27. package/dist/BlogsSectionSimple.cjs +1 -1
  28. package/dist/BlogsSectionSimple.js +1 -1
  29. package/dist/BlogsSectionWithFilters.cjs +1 -1
  30. package/dist/BlogsSectionWithFilters.js +2 -2
  31. package/dist/Breadcrumbs.cjs +5 -5
  32. package/dist/Breadcrumbs.js +57 -87
  33. package/dist/Button.cjs +11 -11
  34. package/dist/Button.js +126 -173
  35. package/dist/ButtonGroup.cjs +8 -8
  36. package/dist/ButtonGroup.js +37 -49
  37. package/dist/CalorieCalculatorSection.cjs +8 -8
  38. package/dist/CalorieCalculatorSection.js +90 -97
  39. package/dist/CheckBoxInput.cjs +1 -1
  40. package/dist/CheckBoxInput.js +2 -5
  41. package/dist/Chip.cjs +14 -14
  42. package/dist/Chip.js +73 -111
  43. package/dist/ConfirmationForm.cjs +6 -6
  44. package/dist/ConfirmationForm.js +67 -109
  45. package/dist/ContactSection.cjs +1 -0
  46. package/dist/ContactSection.js +1 -0
  47. package/dist/Content.cjs +1 -1
  48. package/dist/Content.js +7 -15
  49. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  50. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  51. package/dist/DataView.cjs +1 -1
  52. package/dist/DataView.js +30 -50
  53. package/dist/DateInput.cjs +4 -4
  54. package/dist/DateInput.js +1347 -1383
  55. package/dist/DecimalInput.cjs +6 -6
  56. package/dist/DecimalInput.js +210 -263
  57. package/dist/DecimalInputV2.cjs +23 -23
  58. package/dist/DecimalInputV2.js +119 -176
  59. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  60. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  61. package/dist/DetailedProductsSection.cjs +1 -1
  62. package/dist/DetailedProductsSection.js +2 -2
  63. package/dist/DetailsView.cjs +9 -9
  64. package/dist/DetailsView.js +111 -162
  65. package/dist/DoubleRangeSlider.cjs +22 -22
  66. package/dist/DoubleRangeSlider.js +70 -95
  67. package/dist/DragAndDropFile.cjs +10 -10
  68. package/dist/DragAndDropFile.js +347 -402
  69. package/dist/DragDropFiles.cjs +4 -4
  70. package/dist/DragDropFiles.js +70 -124
  71. package/dist/Drawer.cjs +5 -5
  72. package/dist/Drawer.js +97 -135
  73. package/dist/Dropdown.cjs +1 -1
  74. package/dist/Dropdown.js +44 -213
  75. package/dist/DropdownItem.cjs +14 -14
  76. package/dist/DropdownItem.js +106 -142
  77. package/dist/DropdownLookup.cjs +1 -1
  78. package/dist/DropdownLookup.js +61 -242
  79. package/dist/DropdownMenu.cjs +4 -4
  80. package/dist/DropdownMenu.js +87 -149
  81. package/dist/EditableTable.cjs +10 -10
  82. package/dist/EditableTable.js +165 -331
  83. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  84. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  85. package/dist/FaqSection.cjs +3 -3
  86. package/dist/FaqSection.js +119 -153
  87. package/dist/FileInput.cjs +7 -7
  88. package/dist/FileInput.js +66 -94
  89. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  90. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  91. package/dist/FlexBox.cjs +6 -6
  92. package/dist/FlexBox.js +28 -63
  93. package/dist/FlexGrid.cjs +1 -1
  94. package/dist/FlexGrid.js +27 -67
  95. package/dist/FlexGridItem.cjs +6 -6
  96. package/dist/FlexGridItem.js +34 -62
  97. package/dist/Footer.cjs +1 -1
  98. package/dist/Footer.js +7 -15
  99. package/dist/FormField.cjs +7 -7
  100. package/dist/FormField.js +22 -47
  101. package/dist/FormView.cjs +6 -6
  102. package/dist/FormView.js +148 -195
  103. package/dist/GiftCardsSection.cjs +1 -1
  104. package/dist/GiftCardsSection.js +1 -1
  105. package/dist/Grid.cjs +2 -2
  106. package/dist/Grid.js +40 -65
  107. package/dist/GridItem.cjs +2 -2
  108. package/dist/GridItem.js +47 -80
  109. package/dist/Header.cjs +1 -1
  110. package/dist/Header.js +7 -15
  111. package/dist/HelpBannerSection.cjs +3 -3
  112. package/dist/HelpBannerSection.js +9 -15
  113. package/dist/Icon.cjs +4 -4
  114. package/dist/Icon.js +29 -55
  115. package/dist/IconButton.cjs +9 -9
  116. package/dist/IconButton.js +89 -127
  117. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  118. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  119. package/dist/Kanban.cjs +7 -7
  120. package/dist/Kanban.js +2033 -2098
  121. package/dist/KanbanActionsToolbar.cjs +4 -5
  122. package/dist/KanbanActionsToolbar.js +61 -96
  123. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  124. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  125. package/dist/KanbanCard.cjs +1 -1
  126. package/dist/KanbanCard.js +2 -3
  127. package/dist/KanbanFooter.cjs +3 -3
  128. package/dist/KanbanFooter.js +37 -55
  129. package/dist/KanbanHeader.cjs +4 -4
  130. package/dist/KanbanHeader.js +49 -81
  131. package/dist/KanbanView.cjs +2 -2
  132. package/dist/KanbanView.js +106 -173
  133. package/dist/Link.cjs +7 -7
  134. package/dist/Link.js +20 -37
  135. package/dist/LocationSearchSection.cjs +1 -1
  136. package/dist/LocationSearchSection.js +1 -1
  137. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  138. package/dist/MasonryGeneralCardsSection.js +1 -1
  139. package/dist/MenuItem.cjs +13 -13
  140. package/dist/MenuItem.js +101 -139
  141. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  142. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  143. package/dist/Modal.cjs +18 -19
  144. package/dist/Modal.js +131 -166
  145. package/dist/MultiSelectDropdown.cjs +1 -1
  146. package/dist/MultiSelectDropdown.js +25 -196
  147. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  148. package/dist/MultiSelectDropdownLookup.js +27 -209
  149. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  150. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  151. package/dist/NestedDropdownItem.cjs +3 -3
  152. package/dist/NestedDropdownItem.js +45 -67
  153. package/dist/NestedMenuItem.cjs +5 -5
  154. package/dist/NestedMenuItem.js +51 -78
  155. package/dist/NotificationContainer.cjs +10 -10
  156. package/dist/NotificationContainer.js +46 -79
  157. package/dist/NotificationMessage.cjs +2 -2
  158. package/dist/NotificationMessage.js +47 -64
  159. package/dist/NumberInput.cjs +23 -23
  160. package/dist/NumberInput.js +89 -149
  161. package/dist/PageLayout.cjs +2 -2
  162. package/dist/PageLayout.js +20 -28
  163. package/dist/Pagination.cjs +3 -3
  164. package/dist/Pagination.js +102 -185
  165. package/dist/PartnerBrandsSection.cjs +62 -0
  166. package/dist/PartnerBrandsSection.js +154 -0
  167. package/dist/PartnerStatsSection.cjs +100 -0
  168. package/dist/PartnerStatsSection.js +124 -0
  169. package/dist/PasswordInput.cjs +23 -23
  170. package/dist/PasswordInput.js +108 -137
  171. package/dist/Popover.cjs +1 -1
  172. package/dist/Popover.js +7 -32
  173. package/dist/PopoverContent.cjs +5 -5
  174. package/dist/PopoverContent.js +22 -28
  175. package/dist/PopoverTrigger.cjs +1 -1
  176. package/dist/PopoverTrigger.js +7 -12
  177. package/dist/ProductsWithBannerSection.cjs +1 -1
  178. package/dist/ProductsWithBannerSection.js +1 -1
  179. package/dist/ProgressBar.cjs +8 -8
  180. package/dist/ProgressBar.js +32 -59
  181. package/dist/RadioGroup.cjs +3 -3
  182. package/dist/RadioGroup.js +41 -72
  183. package/dist/RadioInput.cjs +28 -28
  184. package/dist/RadioInput.js +78 -123
  185. package/dist/RangeSlider.cjs +19 -19
  186. package/dist/RangeSlider.js +92 -119
  187. package/dist/ReviewsSection.cjs +13 -13
  188. package/dist/ReviewsSection.js +81 -101
  189. package/dist/SalesCampaignsSection.cjs +38 -28
  190. package/dist/SalesCampaignsSection.js +297 -325
  191. package/dist/SearchBar.cjs +10 -10
  192. package/dist/SearchBar.js +168 -188
  193. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  194. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  195. package/dist/SearchSection.cjs +1 -1
  196. package/dist/SearchSection.js +2 -3
  197. package/dist/Separator.cjs +3 -3
  198. package/dist/Separator.js +14 -19
  199. package/dist/Sidebar.cjs +4 -5
  200. package/dist/Sidebar.js +33 -56
  201. package/dist/SimpleCategoriesSection.cjs +2 -2
  202. package/dist/SimpleCategoriesSection.js +2 -2
  203. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  204. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  205. package/dist/Spinner.cjs +18 -18
  206. package/dist/Spinner.js +37 -54
  207. package/dist/StatsSection.cjs +6 -6
  208. package/dist/StatsSection.js +15 -25
  209. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  210. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  211. package/dist/Surface.cjs +4 -4
  212. package/dist/Surface.js +19 -34
  213. package/dist/SwipeableDrawer.cjs +8 -8
  214. package/dist/SwipeableDrawer.js +84 -136
  215. package/dist/TabItem.cjs +11 -11
  216. package/dist/TabItem.js +83 -118
  217. package/dist/Table.cjs +65 -65
  218. package/dist/Table.js +786 -1167
  219. package/dist/TableView.cjs +2 -2
  220. package/dist/TableView.js +113 -197
  221. package/dist/Tabs.cjs +4 -4
  222. package/dist/Tabs.js +41 -60
  223. package/dist/TextAreaInput.cjs +14 -14
  224. package/dist/TextAreaInput.js +131 -181
  225. package/dist/TextInput.cjs +23 -23
  226. package/dist/TextInput.js +78 -126
  227. package/dist/ThemeProvider.cjs +5 -5
  228. package/dist/ThemeProvider.js +35 -39
  229. package/dist/TimeInput.cjs +7 -7
  230. package/dist/TimeInput.js +46 -72
  231. package/dist/Toggle.cjs +20 -20
  232. package/dist/Toggle.js +78 -109
  233. package/dist/ToggleSection.cjs +5 -5
  234. package/dist/ToggleSection.js +48 -55
  235. package/dist/TreeMenu.cjs +5 -5
  236. package/dist/TreeMenu.js +43 -67
  237. package/dist/TreeMenuSeparator.cjs +3 -3
  238. package/dist/TreeMenuSeparator.js +12 -20
  239. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  240. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  241. package/dist/UploadedFile.cjs +11 -11
  242. package/dist/UploadedFile.js +73 -99
  243. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  244. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  245. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  246. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  247. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  248. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  249. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  250. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  251. package/dist/index-BdKi2ogu.js +39 -0
  252. package/dist/index-BppfjY8h.js +497 -0
  253. package/dist/index-CRk3vcd4.cjs +95 -0
  254. package/dist/index-CX2A-q39.cjs +4 -0
  255. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  256. package/dist/index-DeS-oqJB.cjs +1 -0
  257. package/dist/index.cjs +1 -1
  258. package/dist/index.js +25 -21
  259. package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
  260. package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
  261. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  262. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  263. package/package.json +4 -2
  264. package/vite.config.js +8 -0
  265. package/dist/KanbanCard-68kSAXL6.js +0 -175
  266. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  267. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  268. package/dist/index-Be-_NM9Q.cjs +0 -4
  269. package/dist/index-C0LcDEqa.js +0 -47
  270. package/dist/index-CSNxZFTX.cjs +0 -95
package/dist/TextInput.js CHANGED
@@ -1,16 +1,15 @@
1
1
  import { jsxs as U, jsx as x } from "react/jsx-runtime";
2
- import { P as t } from "./index-CblbdqjE.js";
3
- import { forwardRef as D, useRef as E, useState as V, useEffect as q, useCallback as A } from "react";
4
- import { d as G } from "./index-Dt62UGku.js";
5
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { d as s, b as a, a as H, e as J, h as T, c as K } from "./utils-DtEfC-TX.js";
7
- import { u as L } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const M = m.div`
2
+ import { forwardRef as D, useRef as E, useState as V, useEffect as P, useCallback as q } from "react";
3
+ import { d as A } from "./index-Dt62UGku.js";
4
+ import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { d as i, b as a, a as G, e as H, h as S, c as J } from "./utils-DtEfC-TX.js";
6
+ import { u as K } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ const L = s.div`
9
8
  display: flex;
10
9
  align-items: center;
11
10
 
12
- min-height: ${(e) => s(e.theme, e.size)};
13
- max-height: ${(e) => s(e.theme, e.size)};
11
+ min-height: ${(e) => i(e.theme, e.size)};
12
+ max-height: ${(e) => i(e.theme, e.size)};
14
13
  background-color: ${(e) => a(
15
14
  e.theme,
16
15
  "Input",
@@ -26,10 +25,10 @@ const M = m.div`
26
25
  e.disabled === !0 ? "disabled" : "enabled",
27
26
  "border"
28
27
  )};
29
- border-radius: ${(e) => H(e.theme, "regular")};
28
+ border-radius: ${(e) => G(e.theme, "regular")};
30
29
 
31
- ${(e) => e.focused && e.readOnly !== !0 ? J(e.theme) : ""}
32
- /* ${(e) => e.disabled === !0 ? T(e.theme) : ""} */
30
+ ${(e) => e.focused && e.readOnly !== !0 ? H(e.theme) : ""}
31
+ /* ${(e) => e.disabled === !0 ? S(e.theme) : ""} */
33
32
  ${(e) => e.disabled === !0 ? `background-color: ${a(
34
33
  e.theme,
35
34
  "Input",
@@ -38,14 +37,14 @@ const M = m.div`
38
37
  "background",
39
38
  "backgroundOpacity"
40
39
  )};
41
- color: ${(l) => a(
42
- l.theme,
40
+ color: ${(n) => a(
41
+ n.theme,
43
42
  "Input",
44
- l.color,
43
+ n.color,
45
44
  "disabled",
46
45
  "text"
47
46
  )};` : ""}
48
- `, z = m.span`
47
+ `, z = s.span`
49
48
  padding: 0 12px;
50
49
  color: ${(e) => a(
51
50
  e.theme,
@@ -54,7 +53,7 @@ const M = m.div`
54
53
  "enabled",
55
54
  "prefix"
56
55
  )};
57
- `, Q = m(z)``, X = m.input`
56
+ `, M = s(z)``, Q = s.input`
58
57
  background: none;
59
58
  border: none;
60
59
  outline: none;
@@ -62,9 +61,9 @@ const M = m.div`
62
61
  padding-bottom: 0.625rem;
63
62
  width: 100%;
64
63
 
65
- ${(e) => K(e.theme, "Input", e.size, "enabled")}
66
- min-height: ${(e) => s(e.theme, e.size)};
67
- max-height: ${(e) => s(e.theme, e.size)};
64
+ ${(e) => J(e.theme, "Input", e.size, "enabled")}
65
+ min-height: ${(e) => i(e.theme, e.size)};
66
+ max-height: ${(e) => i(e.theme, e.size)};
68
67
  color: ${(e) => a(
69
68
  e.theme,
70
69
  "Input",
@@ -91,7 +90,7 @@ const M = m.div`
91
90
  }
92
91
 
93
92
  &:disabled {
94
- /* ${(e) => T(e.theme)} */
93
+ /* ${(e) => S(e.theme)} */
95
94
  ${(e) => `background-color: ${a(
96
95
  e.theme,
97
96
  "Input",
@@ -100,102 +99,102 @@ const M = m.div`
100
99
  "background",
101
100
  "backgroundOpacity"
102
101
  )};
103
- color: ${(l) => a(
104
- l.theme,
102
+ color: ${(n) => a(
103
+ n.theme,
105
104
  "Input",
106
- l.color,
105
+ n.color,
107
106
  "disabled",
108
107
  "text"
109
108
  )};`}
110
109
  background: none;
111
110
  }
112
- `, Y = D((e, l) => {
111
+ `, de = D((e, n) => {
113
112
  const {
114
113
  disabled: $,
115
- readOnly: p,
114
+ readOnly: y,
116
115
  defaultValue: I,
117
- value: r,
118
- debounceTime: S = 0,
119
- type: v = "text",
116
+ value: l,
117
+ debounceTime: v = 0,
118
+ type: O = "text",
120
119
  placeholder: R,
121
- tabIndex: B,
122
- prefix: f,
120
+ tabIndex: T,
121
+ prefix: m,
123
122
  suffix: h,
124
123
  //----------------
125
- onChange: o,
124
+ onChange: d,
126
125
  onBlur: b,
127
- onFocus: g,
126
+ onFocus: f,
128
127
  //----------------
129
- className: F = "",
130
- style: N = {},
131
- size: O = "small",
132
- color: d = "primary",
133
- ...j
134
- } = e, u = L(), i = E(r || I || ""), [w, k] = V(r || I || ""), [c, C] = V(!1);
135
- q(() => {
136
- r != null && (i.current = r, k(i.current));
137
- }, [r]);
138
- const P = A(
139
- G((n, y) => W(n, y), S),
140
- [o]
141
- ), W = (n, y) => {
142
- o && (o == null || o(n, y));
128
+ className: B = "",
129
+ style: F = {},
130
+ size: k = "small",
131
+ color: o = "primary",
132
+ ...N
133
+ } = e, r = K(), u = E(l || I || ""), [W, C] = V(l || I || ""), [c, p] = V(!1);
134
+ P(() => {
135
+ l != null && (u.current = l, C(u.current));
136
+ }, [l]);
137
+ const j = q(
138
+ A((t, g) => w(t, g), v),
139
+ [d]
140
+ ), w = (t, g) => {
141
+ d && (d == null || d(t, g));
143
142
  };
144
143
  return /* @__PURE__ */ U(
145
- M,
144
+ L,
146
145
  {
147
- style: N,
148
- className: F,
149
- theme: u,
150
- color: d,
151
- size: O,
146
+ style: F,
147
+ className: B,
148
+ theme: r,
149
+ color: o,
150
+ size: k,
152
151
  focused: c,
153
152
  disabled: $,
154
- readOnly: p,
153
+ readOnly: y,
155
154
  children: [
156
- f && /* @__PURE__ */ x(
155
+ m && /* @__PURE__ */ x(
157
156
  z,
158
157
  {
159
- theme: u,
160
- color: d,
158
+ theme: r,
159
+ color: o,
161
160
  focused: c,
162
161
  className: "lnc-input-prefix",
163
- children: f
162
+ children: m
164
163
  }
165
164
  ),
166
165
  /* @__PURE__ */ x(
167
- X,
166
+ Q,
168
167
  {
169
- ref: l,
170
- type: v,
171
- theme: u,
172
- color: d,
173
- size: O,
168
+ ref: n,
169
+ type: O,
170
+ theme: r,
171
+ color: o,
172
+ size: k,
174
173
  placeholder: R,
175
- prefix: f,
174
+ prefix: m,
176
175
  suffix: h,
177
176
  disabled: $,
178
- readOnly: p,
177
+ readOnly: y,
179
178
  focused: c,
180
- onFocus: (n) => {
181
- C(!0), g == null || g(n);
179
+ onFocus: (t) => {
180
+ p(!0), f == null || f(t);
182
181
  },
183
- onBlur: (n) => {
184
- C(!1), b == null || b(n);
182
+ onBlur: (t) => {
183
+ p(!1), b == null || b(t);
185
184
  },
186
- onChange: (n) => {
187
- i.current = n.target.value, k(i.current), P(n, n.target.value);
185
+ onChange: (t) => {
186
+ u.current = t.target.value, C(u.current), j(t, t.target.value);
188
187
  },
189
- tabIndex: B,
190
- value: w,
191
- ...j
188
+ tabIndex: T,
189
+ value: W,
190
+ ...N
192
191
  }
193
192
  ),
194
193
  h && /* @__PURE__ */ x(
195
- Q,
194
+ M,
196
195
  {
197
- theme: u,
198
- color: d,
196
+ theme: r,
197
+ color: o,
199
198
  focused: c,
200
199
  className: "lnc-input-suffix",
201
200
  children: h
@@ -205,53 +204,6 @@ const M = m.div`
205
204
  }
206
205
  );
207
206
  });
208
- Y.propTypes = {
209
- id: t.any,
210
- defaultValue: t.string,
211
- value: t.string,
212
- disabled: t.bool,
213
- readOnly: t.bool,
214
- /**
215
- * Time in miliseconds before onChange event fires after it has been triggered.
216
- */
217
- debounceTime: t.number,
218
- placeholder: t.string,
219
- type: t.oneOf(["text", "email"]),
220
- tabIndex: t.number,
221
- /**
222
- * Reserved space before input. Intented to be used with plain text or `Icon` component.
223
- */
224
- prefix: t.oneOfType([t.string, t.element]),
225
- /**
226
- * Reserved space after input. Intented to be used with plain text or `Icon` component.
227
- */
228
- suffix: t.oneOfType([t.string, t.element]),
229
- /**
230
- * `(event, value) => void`
231
- */
232
- onChange: t.func,
233
- /**
234
- * `(event) => void`
235
- */
236
- onBlur: t.func,
237
- /**
238
- * `(event) => void`
239
- */
240
- onFocus: t.func,
241
- className: t.string,
242
- style: t.object,
243
- size: t.oneOf(["small", "medium", "large"]),
244
- color: t.oneOf([
245
- "primary",
246
- "secondary",
247
- "success",
248
- "danger",
249
- "warning",
250
- "information",
251
- "neutral",
252
- "gray"
253
- ])
254
- };
255
207
  export {
256
- Y as default
208
+ de as default
257
209
  };
@@ -1,13 +1,13 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),s=require("react"),t=require("./utils-RnrgDDZP.cjs"),d=require("./index-BpbMKBf_.cjs"),m=require("./styled-components.browser.esm-CvykQBGY.cjs"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=e=>{const r=e.palette.disabled.color,o=e.palette[r][e.palette.disabled.background],a=e.palette.opacity[e.palette.disabled.opacity];return t.hexToRgba(o,a??"100%")},h=e=>{const r=e.palette.disabled.color;return e.palette[r][e.palette.disabled.text]},x=m.$e`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),s=require("react"),t=require("./utils-RnrgDDZP.cjs"),c=require("./styled-components.browser.esm-CvykQBGY.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),b=e=>{const a=e.palette.disabled.color,o=e.palette[a][e.palette.disabled.background],r=e.palette.opacity[e.palette.disabled.opacity];return t.hexToRgba(o,r??"100%")},m=e=>{const a=e.palette.disabled.color;return e.palette[a][e.palette.disabled.text]},p=c.$e`
2
2
  * {
3
3
  --size-small: ${e=>t.getSizeValueWithUnits(e.theme,"small")};
4
4
  --size-medium: ${e=>t.getSizeValueWithUnits(e.theme,"medium")};
5
5
  --size-large: ${e=>t.getSizeValueWithUnits(e.theme,"large")};
6
- --disabled-text: ${e=>h(e.theme)};
7
- --disabled-bg: ${e=>f(e.theme)};
6
+ --disabled-text: ${e=>m(e.theme)};
7
+ --disabled-bg: ${e=>b(e.theme)};
8
8
 
9
9
  box-sizing: border-box;
10
- font-family: ${e=>{var r,o;return(o=(r=e.theme)==null?void 0:r.typography)==null?void 0:o.fontFamily}};
10
+ font-family: ${e=>{var a,o;return(o=(a=e.theme)==null?void 0:a.typography)==null?void 0:o.fontFamily}};
11
11
  -webkit-tap-highlight-color: transparent;
12
12
 
13
13
  & i {
@@ -35,4 +35,4 @@
35
35
  background-color: ${e=>t.getColorRgbaValue(e.theme,"Background","default","enabled","background")};
36
36
  color: ${e=>t.getColorRgbaValue(e.theme,"Text","default","enabled","text")};
37
37
  }
38
- `,c=s.createContext(),C=()=>s.useContext(c),g=({theme:e="Lanaco Light",children:r})=>{const[o,a]=s.useState(()=>{var l;return typeof e=="string"?(l=t.themes)==null?void 0:l.find(n=>n.name==e):e});s.useEffect(()=>{var l;a(typeof e=="string"?(l=t.themes)==null?void 0:l.find(n=>n.name==e):e)},[e]);const u=l=>{var n;a(typeof e=="string"?(n=t.themes)==null?void 0:n.find(b=>b.name==e):e)};return i.jsx(c.Provider,{value:{theme:o,switchTheme:u},children:i.jsxs(p.ThemeProvider,{theme:o,children:[i.jsx(x,{theme:o}),r]})})};g.propTypes={theme:d.PropTypes.oneOfType([d.PropTypes.string,d.PropTypes.object])};exports.default=g;exports.useTheme=C;
38
+ `,u=s.createContext(),f=()=>s.useContext(u),h=({theme:e="Lanaco Light",children:a})=>{const[o,r]=s.useState(()=>{var l;return typeof e=="string"?(l=t.themes)==null?void 0:l.find(n=>n.name==e):e});s.useEffect(()=>{var l;r(typeof e=="string"?(l=t.themes)==null?void 0:l.find(n=>n.name==e):e)},[e]);const d=()=>{var l;r(typeof e=="string"?(l=t.themes)==null?void 0:l.find(n=>n.name==e):e)};return i.jsx(u.Provider,{value:{theme:o,switchTheme:d},children:i.jsxs(g.ThemeProvider,{theme:o,children:[i.jsx(p,{theme:o}),a]})})};exports.default=h;exports.useTheme=f;
@@ -1,21 +1,20 @@
1
- import { jsx as b, jsxs as u } from "react/jsx-runtime";
2
- import { createContext as g, useContext as f, useState as h, useEffect as x } from "react";
3
- import { n as $, d, b as a, o as s } from "./utils-DtEfC-TX.js";
4
- import { P as i } from "./index-CblbdqjE.js";
5
- import { $ as y } from "./styled-components.browser.esm-D-n22PJk.js";
6
- import { b as T } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
1
+ import { jsx as c, jsxs as m } from "react/jsx-runtime";
2
+ import { createContext as u, useContext as g, useState as p, useEffect as f } from "react";
3
+ import { n as x, d, b as r, o as i } from "./utils-DtEfC-TX.js";
4
+ import { $ as h } from "./styled-components.browser.esm-D-n22PJk.js";
5
+ import { b as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
6
  const k = (e) => {
8
- const o = e.palette.disabled.color, t = e.palette[o][e.palette.disabled.background], r = e.palette.opacity[e.palette.disabled.opacity];
9
- return $(t, r ?? "100%");
10
- }, C = (e) => {
7
+ const o = e.palette.disabled.color, t = e.palette[o][e.palette.disabled.background], l = e.palette.opacity[e.palette.disabled.opacity];
8
+ return x(t, l ?? "100%");
9
+ }, y = (e) => {
11
10
  const o = e.palette.disabled.color;
12
11
  return e.palette[o][e.palette.disabled.text];
13
- }, v = y`
12
+ }, C = h`
14
13
  * {
15
14
  --size-small: ${(e) => d(e.theme, "small")};
16
15
  --size-medium: ${(e) => d(e.theme, "medium")};
17
16
  --size-large: ${(e) => d(e.theme, "large")};
18
- --disabled-text: ${(e) => C(e.theme)};
17
+ --disabled-text: ${(e) => y(e.theme)};
19
18
  --disabled-bg: ${(e) => k(e.theme)};
20
19
 
21
20
  box-sizing: border-box;
@@ -31,14 +30,14 @@ const k = (e) => {
31
30
 
32
31
  & .lnc-doc {
33
32
  & th {
34
- background-color: ${(e) => a(
33
+ background-color: ${(e) => r(
35
34
  e.theme,
36
35
  "Background",
37
36
  "default",
38
37
  "enabled",
39
38
  "background"
40
39
  )} !important;
41
- color: ${(e) => a(
40
+ color: ${(e) => r(
42
41
  e.theme,
43
42
  "Text",
44
43
  "default",
@@ -47,14 +46,14 @@ const k = (e) => {
47
46
  )} !important;
48
47
  }
49
48
  & td {
50
- background-color: ${(e) => a(
49
+ background-color: ${(e) => r(
51
50
  e.theme,
52
51
  "Background",
53
52
  "default",
54
53
  "enabled",
55
54
  "background"
56
55
  )} !important;
57
- color: ${(e) => a(
56
+ color: ${(e) => r(
58
57
  e.theme,
59
58
  "Text",
60
59
  "default",
@@ -65,14 +64,14 @@ const k = (e) => {
65
64
  }
66
65
 
67
66
  & .sbdocs {
68
- background-color: ${(e) => a(
67
+ background-color: ${(e) => r(
69
68
  e.theme,
70
69
  "Background",
71
70
  "default",
72
71
  "enabled",
73
72
  "background"
74
73
  )} !important;
75
- color: ${(e) => a(
74
+ color: ${(e) => r(
76
75
  e.theme,
77
76
  "Text",
78
77
  "default",
@@ -83,43 +82,40 @@ const k = (e) => {
83
82
  }
84
83
  body {
85
84
  position: relative;
86
- background-color: ${(e) => a(
85
+ background-color: ${(e) => r(
87
86
  e.theme,
88
87
  "Background",
89
88
  "default",
90
89
  "enabled",
91
90
  "background"
92
91
  )};
93
- color: ${(e) => a(e.theme, "Text", "default", "enabled", "text")};
92
+ color: ${(e) => r(e.theme, "Text", "default", "enabled", "text")};
94
93
  }
95
- `, m = g(), H = () => f(m), z = ({ theme: e = "Lanaco Light", children: o }) => {
96
- const [t, r] = h(() => {
97
- var n;
98
- return typeof e == "string" ? (n = s) == null ? void 0 : n.find((l) => l.name == e) : e;
94
+ `, b = u(), w = () => g(b), F = ({ theme: e = "Lanaco Light", children: o }) => {
95
+ const [t, l] = p(() => {
96
+ var a;
97
+ return typeof e == "string" ? (a = i) == null ? void 0 : a.find((n) => n.name == e) : e;
99
98
  });
100
- x(() => {
101
- var n;
102
- r(typeof e == "string" ? (n = s) == null ? void 0 : n.find((l) => l.name == e) : e);
99
+ f(() => {
100
+ var a;
101
+ l(typeof e == "string" ? (a = i) == null ? void 0 : a.find((n) => n.name == e) : e);
103
102
  }, [e]);
104
- const c = (n) => {
105
- var l;
106
- r(typeof e == "string" ? (l = s) == null ? void 0 : l.find((p) => p.name == e) : e);
103
+ const s = () => {
104
+ var a;
105
+ l(typeof e == "string" ? (a = i) == null ? void 0 : a.find((n) => n.name == e) : e);
107
106
  };
108
- return /* @__PURE__ */ b(
109
- m.Provider,
107
+ return /* @__PURE__ */ c(
108
+ b.Provider,
110
109
  {
111
- value: { theme: t, switchTheme: c },
112
- children: /* @__PURE__ */ u(T, { theme: t, children: [
113
- /* @__PURE__ */ b(v, { theme: t }),
110
+ value: { theme: t, switchTheme: s },
111
+ children: /* @__PURE__ */ m($, { theme: t, children: [
112
+ /* @__PURE__ */ c(C, { theme: t }),
114
113
  o
115
114
  ] })
116
115
  }
117
116
  );
118
117
  };
119
- z.propTypes = {
120
- theme: i.oneOfType([i.string, i.object])
121
- };
122
118
  export {
123
- z as default,
124
- H as useTheme
119
+ F as default,
120
+ w as useTheme
125
121
  };
@@ -1,8 +1,8 @@
1
- "use strict";const u=require("react/jsx-runtime"),d=require("react"),R=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./index-BpbMKBf_.cjs"),O=require("./index-Cp66dWMi.cjs"),t=require("./utils-RnrgDDZP.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=({theme:e,size:n})=>{var s=t.getSizeValueWithUnits(e,n);return`
2
- min-height: ${s};
3
- max-height: ${s};
4
- `},v=R.styled.input`
5
- ${e=>q(e)}
1
+ "use strict";const i=require("react/jsx-runtime"),d=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./index-Cp66dWMi.cjs"),t=require("./utils-RnrgDDZP.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=({theme:e,size:a})=>{var l=t.getSizeValueWithUnits(e,a);return`
2
+ min-height: ${l};
3
+ max-height: ${l};
4
+ `},O=f.styled.input`
5
+ ${e=>v(e)}
6
6
  ${e=>t.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
7
7
  padding: 0.625rem 0.75rem 0.62rem 0.75rem;
8
8
  line-height: inherit;
@@ -20,7 +20,7 @@
20
20
  &:disabled {
21
21
  /* ${e=>t.getDisabledStateCss(e.theme)}; */
22
22
  ${e=>`background-color: ${t.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
23
- color: ${n=>t.getColorRgbaValue(n.theme,"Input",n.color,"disabled","text")};`}
23
+ color: ${a=>t.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
24
24
  cursor: default;
25
25
  }
26
26
  &:focus:enabled {
@@ -30,4 +30,4 @@
30
30
  border: 1px solid
31
31
  ${e=>t.getColorRgbaValue(e.theme,"Input","primary",e.disabled===!0?"disabled":"enabled","border")};
32
32
  }
33
- `,b=d.forwardRef((e,n)=>{const{disabled:s,readOnly:g,defaultValue:m,value:a,debounceTime:p=0,onChange:l,className:y="",style:h={},size:T="small",color:C="primary",...$}=e,x=k.useTheme(),[f,c]=d.useState(a||m||"");d.useEffect(()=>{a!=null&&c(a)},[a]);const V=d.useCallback(O.debounce((o,i)=>I(o,i),p),[l]),I=(o,i)=>{l&&(l==null||l(o,i))},P=o=>{c(o.target.value),V(o,o.target.value)};return u.jsx(u.Fragment,{children:u.jsx(v,{type:"time",ref:n,onChange:P,disabled:s,readOnly:g,theme:x,color:C,size:T,className:y,style:h,value:f,...$})})});b.propTypes={id:r.PropTypes.any,defaultValue:r.PropTypes.string,value:r.PropTypes.string,disabled:r.PropTypes.bool,readOnly:r.PropTypes.bool,debounceTime:r.PropTypes.number,tabIndex:r.PropTypes.number,onChange: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=b;
33
+ `,S=d.forwardRef((e,a)=>{const{disabled:l,readOnly:b,defaultValue:c,value:o,debounceTime:g=0,onChange:n,className:m="",style:h={},size:C="small",color:$="primary",...y}=e,x=q.useTheme(),[V,s]=d.useState(o||c||"");d.useEffect(()=>{o!=null&&s(o)},[o]);const I=d.useCallback(k.debounce((r,u)=>R(r,u),g),[n]),R=(r,u)=>{n&&(n==null||n(r,u))},p=r=>{s(r.target.value),I(r,r.target.value)};return i.jsx(i.Fragment,{children:i.jsx(O,{type:"time",ref:a,onChange:p,disabled:l,readOnly:b,theme:x,color:$,size:C,className:m,style:h,value:V,...y})})});module.exports=S;