@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
@@ -1,18 +1,17 @@
1
- import { jsxs as q, jsx as m } from "react/jsx-runtime";
2
- import { forwardRef as A, useRef as G, useState as p, useEffect as I, useCallback as H } from "react";
3
- import { P as n } from "./index-CblbdqjE.js";
4
- import { d as J } from "./index-Dt62UGku.js";
5
- import K from "./Icon.js";
1
+ import { jsxs as D, jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as q, useRef as A, useState as x, useEffect as k, useCallback as G } from "react";
3
+ import { d as H } from "./index-Dt62UGku.js";
4
+ import J from "./Icon.js";
6
5
  import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
- import { d as f, b as r, a as M, e as Q, h as w, c as X } from "./utils-DtEfC-TX.js";
8
- import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
- const Z = h.div`
6
+ import { d as g, b as o, a as K, e as M, h as O, c as Q } from "./utils-DtEfC-TX.js";
7
+ import { u as X } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
+ const Y = h.div`
10
9
  display: flex;
11
10
  align-items: center;
12
11
 
13
- min-height: ${(e) => f(e.theme, e.size)};
14
- max-height: ${(e) => f(e.theme, e.size)};
15
- background-color: ${(e) => r(
12
+ min-height: ${(e) => g(e.theme, e.size)};
13
+ max-height: ${(e) => g(e.theme, e.size)};
14
+ background-color: ${(e) => o(
16
15
  e.theme,
17
16
  "Input",
18
17
  e.color,
@@ -20,18 +19,18 @@ const Z = h.div`
20
19
  "background"
21
20
  )};
22
21
  border: 1px solid
23
- ${(e) => r(
22
+ ${(e) => o(
24
23
  e.theme,
25
24
  "Input",
26
25
  e.focused === !0 ? "primary" : e.color,
27
26
  e.disabled === !0 ? "disabled" : "enabled",
28
27
  "border"
29
28
  )};
30
- border-radius: ${(e) => M(e.theme, "regular")};
29
+ border-radius: ${(e) => K(e.theme, "regular")};
31
30
 
32
- ${(e) => e.focused && e.readOnly !== !0 ? Q(e.theme) : ""}
33
- /* ${(e) => e.disabled === !0 ? w(e.theme) : ""} */
34
- ${(e) => e.disabled === !0 && `background-color: ${r(
31
+ ${(e) => e.focused && e.readOnly !== !0 ? M(e.theme) : ""}
32
+ /* ${(e) => e.disabled === !0 ? O(e.theme) : ""} */
33
+ ${(e) => e.disabled === !0 && `background-color: ${o(
35
34
  e.theme,
36
35
  "Input",
37
36
  e.color,
@@ -39,25 +38,25 @@ const Z = h.div`
39
38
  "background",
40
39
  "backgroundOpacity"
41
40
  )};
42
- color: ${(o) => r(
43
- o.theme,
41
+ color: ${(n) => o(
42
+ n.theme,
44
43
  "Input",
45
- o.color,
44
+ n.color,
46
45
  "disabled",
47
46
  "text"
48
47
  )};`}
49
- `, k = h.span`
48
+ `, I = h.span`
50
49
  padding: 0 12px;
51
- color: ${(e) => r(
50
+ color: ${(e) => o(
52
51
  e.theme,
53
52
  "Input",
54
53
  e.focused === !0 ? "primary" : e.color,
55
54
  "enabled",
56
55
  "prefix"
57
56
  )};
58
- `, _ = h(k)``, ee = h(k)`
57
+ `, Z = h(I)``, _ = h(I)`
59
58
  cursor: pointer;
60
- `, te = h.input`
59
+ `, ee = h.input`
61
60
  background: none;
62
61
  border: none;
63
62
  outline: none;
@@ -65,22 +64,22 @@ const Z = h.div`
65
64
  padding-bottom: 0.625rem;
66
65
  width: 100%;
67
66
 
68
- ${(e) => X(e.theme, "Input", e.size, "enabled")}
69
- min-height: ${(e) => f(e.theme, e.size)};
70
- max-height: ${(e) => f(e.theme, e.size)};
71
- color: ${(e) => r(
67
+ ${(e) => Q(e.theme, "Input", e.size, "enabled")}
68
+ min-height: ${(e) => g(e.theme, e.size)};
69
+ max-height: ${(e) => g(e.theme, e.size)};
70
+ color: ${(e) => o(
72
71
  e.theme,
73
72
  "Input",
74
73
  e.focused === !0 ? "primary" : e.color,
75
74
  "enabled",
76
75
  "text"
77
76
  )};
78
- caret-color: ${(e) => r(e.theme, "Input", e.color, "enabled", "caret")};
77
+ caret-color: ${(e) => o(e.theme, "Input", e.color, "enabled", "caret")};
79
78
  padding-right: ${(e) => e.suffix ? "0" : "0.75rem"};
80
79
  padding-left: ${(e) => e.prefix ? "0" : "0.75rem"};
81
80
 
82
81
  &::placeholder {
83
- color: ${(e) => r(
82
+ color: ${(e) => o(
84
83
  e.theme,
85
84
  "Input",
86
85
  e.color,
@@ -94,8 +93,8 @@ const Z = h.div`
94
93
  }
95
94
 
96
95
  &:disabled {
97
- /* ${(e) => w(e.theme)} */
98
- ${(e) => `background-color: ${r(
96
+ /* ${(e) => O(e.theme)} */
97
+ ${(e) => `background-color: ${o(
99
98
  e.theme,
100
99
  "Input",
101
100
  e.color,
@@ -103,158 +102,130 @@ const Z = h.div`
103
102
  "background",
104
103
  "backgroundOpacity"
105
104
  )};
106
- color: ${(o) => r(
107
- o.theme,
105
+ color: ${(n) => o(
106
+ n.theme,
108
107
  "Input",
109
- o.color,
108
+ n.color,
110
109
  "disabled",
111
110
  "text"
112
111
  )};`}
113
112
  background: none;
114
113
  }
115
- `, ne = A((e, o) => {
114
+ `, se = q((e, n) => {
116
115
  const {
117
- wrapperRef: T,
116
+ wrapperRef: w,
118
117
  disabled: C,
119
118
  readOnly: S,
120
- debounceTime: V = 0,
121
- placeholder: B,
122
- prefix: b,
123
- suffix: y,
124
- value: d,
125
- defaultValue: F,
119
+ debounceTime: R = 0,
120
+ placeholder: V,
121
+ prefix: f,
122
+ suffix: b,
123
+ value: r,
124
+ defaultValue: B,
126
125
  //----------------
127
- onChange: c,
126
+ onChange: d,
128
127
  onBlur: $,
129
- onFocus: x,
128
+ onFocus: y,
130
129
  //----------------
131
- className: N = "",
132
- style: P = {},
133
- size: v = "small",
134
- color: s = "primary",
135
- ...R
136
- } = e, a = G(), u = Y(), [j, O] = p(d || F || "");
137
- I(() => {
138
- d != null && O(d);
139
- }, [d]);
140
- const [g, L] = p(!0), [i, z] = p(!1);
141
- I(() => {
142
- var l;
143
- const t = ((l = a == null ? void 0 : a.current) == null ? void 0 : l.value) || "";
144
- a.current.selectionStart = t != null && t.length ? t.length : 0, a.current.selectionEnd = t != null && t.length ? t.length : 0;
145
- }, [g]), I(() => {
146
- o != null && (o.current = a.current);
147
- }, [o, a]);
148
- const W = H(
149
- J((t, l) => E(t, l), V),
150
- [c]
151
- ), E = (t, l) => {
152
- c && (c == null || c(t, l));
153
- }, U = (t) => {
154
- O(t.target.value), W(t, t.target.value);
155
- }, D = () => {
156
- L(!g), a.current.focus();
130
+ className: F = "",
131
+ style: L = {},
132
+ size: p = "small",
133
+ color: c = "primary",
134
+ ...N
135
+ } = e, l = A(), u = X(), [T, v] = x(r || B || "");
136
+ k(() => {
137
+ r != null && v(r);
138
+ }, [r]);
139
+ const [m, W] = x(!0), [s, z] = x(!1);
140
+ k(() => {
141
+ var a;
142
+ const t = ((a = l == null ? void 0 : l.current) == null ? void 0 : a.value) || "";
143
+ l.current.selectionStart = t != null && t.length ? t.length : 0, l.current.selectionEnd = t != null && t.length ? t.length : 0;
144
+ }, [m]), k(() => {
145
+ n != null && (n.current = l.current);
146
+ }, [n, l]);
147
+ const j = G(
148
+ H((t, a) => E(t, a), R),
149
+ [d]
150
+ ), E = (t, a) => {
151
+ d && (d == null || d(t, a));
152
+ }, P = (t) => {
153
+ v(t.target.value), j(t, t.target.value);
154
+ }, U = () => {
155
+ W(!m), l.current.focus();
157
156
  };
158
- return /* @__PURE__ */ q(
159
- Z,
157
+ return /* @__PURE__ */ D(
158
+ Y,
160
159
  {
161
- ref: T,
162
- style: P,
163
- className: N,
160
+ ref: w,
161
+ style: L,
162
+ className: F,
164
163
  theme: u,
165
- color: s,
166
- size: v,
167
- focused: i,
164
+ color: c,
165
+ size: p,
166
+ focused: s,
168
167
  disabled: C,
169
168
  readOnly: S,
170
169
  children: [
171
- b && /* @__PURE__ */ m(
172
- k,
170
+ f && /* @__PURE__ */ i(
171
+ I,
173
172
  {
174
173
  theme: u,
175
- color: s,
176
- focused: i,
174
+ color: c,
175
+ focused: s,
177
176
  className: "lnc-input-prefix",
178
- children: b
177
+ children: f
179
178
  }
180
179
  ),
181
- /* @__PURE__ */ m(
182
- te,
180
+ /* @__PURE__ */ i(
181
+ ee,
183
182
  {
184
- ref: a,
185
- type: g ? "password" : "text",
183
+ ref: l,
184
+ type: m ? "password" : "text",
186
185
  theme: u,
187
- color: s,
188
- size: v,
189
- placeholder: B,
190
- prefix: b,
191
- suffix: y,
186
+ color: c,
187
+ size: p,
188
+ placeholder: V,
189
+ prefix: f,
190
+ suffix: b,
192
191
  disabled: C,
193
192
  readOnly: S,
194
- focused: i,
193
+ focused: s,
195
194
  onFocus: (t) => {
196
- z(!0), x == null || x(t);
195
+ z(!0), y == null || y(t);
197
196
  },
198
197
  onBlur: (t) => {
199
198
  z(!1), $ == null || $(t);
200
199
  },
201
- onChange: U,
202
- value: j,
203
- ...R
200
+ onChange: P,
201
+ value: T,
202
+ ...N
204
203
  }
205
204
  ),
206
- /* @__PURE__ */ m(
207
- ee,
205
+ /* @__PURE__ */ i(
206
+ _,
208
207
  {
209
208
  theme: u,
210
- color: s,
211
- focused: i,
212
- onClick: D,
213
- children: /* @__PURE__ */ m(K, { icon: g ? "eye-slash" : "eye" })
209
+ color: c,
210
+ focused: s,
211
+ onClick: U,
212
+ children: /* @__PURE__ */ i(J, { icon: m ? "eye-slash" : "eye" })
214
213
  }
215
214
  ),
216
- y && /* @__PURE__ */ m(
217
- _,
215
+ b && /* @__PURE__ */ i(
216
+ Z,
218
217
  {
219
218
  theme: u,
220
- color: s,
221
- focused: i,
219
+ color: c,
220
+ focused: s,
222
221
  className: "lnc-input-suffix",
223
- children: y
222
+ children: b
224
223
  }
225
224
  )
226
225
  ]
227
226
  }
228
227
  );
229
228
  });
230
- ne.propTypes = {
231
- id: n.any,
232
- value: n.string,
233
- defaultValue: n.string,
234
- disabled: n.bool,
235
- readOnly: n.bool,
236
- debounceTime: n.number,
237
- placeholder: n.string,
238
- tabIndex: n.number,
239
- //----------------
240
- onChange: n.func,
241
- onBlur: n.func,
242
- onFocus: n.func,
243
- //----------------
244
- className: n.string,
245
- style: n.object,
246
- size: n.oneOf(["small", "medium", "large"]),
247
- color: n.oneOf([
248
- "primary",
249
- "secondary",
250
- "success",
251
- "danger",
252
- "warning",
253
- "information",
254
- "neutral",
255
- "gray"
256
- ])
257
- };
258
229
  export {
259
- ne as default
230
+ se as default
260
231
  };
package/dist/Popover.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const s=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),i=require("./PopoverContext.cjs"),u=require("./usePopover.cjs");function o({children:t,modal:r=!1,...p}){const n=u({modal:r,...p});return s.jsx(i.Provider,{value:n,children:t})}o.propTypes={initialOpen:e.PropTypes.bool,placement:e.PropTypes.oneOf(["center","top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]),modal:e.PropTypes.bool,offsetValue:e.PropTypes.number,open:e.PropTypes.bool,onOpenChange:e.PropTypes.func};module.exports=o;
1
+ "use strict";const s=require("react/jsx-runtime"),n=require("./PopoverContext.cjs"),u=require("./usePopover.cjs");function i({children:e,modal:o=!1,...r}){const t=u({modal:o,...r});return s.jsx(n.Provider,{value:t,children:e})}module.exports=i;
package/dist/Popover.js CHANGED
@@ -1,35 +1,10 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { P as o } from "./index-CblbdqjE.js";
3
- import a from "./PopoverContext.js";
4
- import f from "./usePopover.js";
5
- function m({ children: t, modal: e = !1, ...r }) {
6
- const p = f({ modal: e, ...r });
7
- return /* @__PURE__ */ n(a.Provider, { value: p, children: t });
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import f from "./PopoverContext.js";
3
+ import m from "./usePopover.js";
4
+ function s({ children: o, modal: r = !1, ...e }) {
5
+ const t = m({ modal: r, ...e });
6
+ return /* @__PURE__ */ p(f.Provider, { value: t, children: o });
8
7
  }
9
- m.propTypes = {
10
- initialOpen: o.bool,
11
- placement: o.oneOf([
12
- "center",
13
- "top",
14
- "right",
15
- "bottom",
16
- "left",
17
- "top-start",
18
- "top-end",
19
- "right-start",
20
- "right-end",
21
- "bottom-start",
22
- "bottom-end",
23
- "left-start",
24
- "left-end"
25
- ]),
26
- modal: o.bool,
27
- offsetValue: o.number,
28
- /** For controlled usage of Popover */
29
- open: o.bool,
30
- /** For controlled usage of Popover */
31
- onOpenChange: o.func
32
- };
33
8
  export {
34
- m as default
9
+ s as default
35
10
  };
@@ -1,10 +1,10 @@
1
- "use strict";const n=require("react/jsx-runtime"),c=require("react"),s=require("./floating-ui.react.esm-CiYofNnh.cjs"),i=require("./index-BpbMKBf_.cjs"),x=require("./PopoverContext.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./utils-RnrgDDZP.cjs"),y=require("./motion-B_VPZaJq.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),P=h.styled(y.motion.div)`
1
+ "use strict";const n=require("react/jsx-runtime"),l=require("react"),i=require("./floating-ui.react.esm-CiYofNnh.cjs"),g=require("./PopoverContext.cjs"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),s=require("./utils-RnrgDDZP.cjs"),x=require("./motion-B_VPZaJq.cjs"),h=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=p.styled(x.motion.div)`
2
2
  font-family: ${e=>{var t,r;return(r=(t=e.theme)==null?void 0:t.typography)==null?void 0:r.fontFamily}};
3
3
  animation: fadeIn 0.4s;
4
- box-shadow: ${e=>a.getComponentPropValue(e.theme,"Popover",e.color,"enabled","boxShadow")};
5
- border-radius: ${e=>a.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
4
+ box-shadow: ${e=>s.getComponentPropValue(e.theme,"Popover",e.color,"enabled","boxShadow")};
5
+ border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
6
6
  border-top: 1px solid rgba(0, 0, 0, 0.04);
7
7
  box-sizing: border-box;
8
8
  padding: 0.25rem;
9
- background-color: ${e=>a.getColorRgbaValue(e.theme,"Popover","default","enabled","bg")};
10
- `,v=()=>{const e=c.useContext(x);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},d=c.forwardRef(function({borderRadius:t="regular",className:r="",zIndex:u,style:m={},...l},p){const o=v(),b=s.useMergeRefs([o.floating,p]),g=f.useTheme();return n.jsx(s.FloatingPortal,{children:o.open&&n.jsx(s.FloatingFocusManager,{context:o.context,modal:o.modal,children:n.jsx("div",{ref:b,style:{position:o.strategy,top:o.y??0,left:o.x??0,width:"max-content",zIndex:u},className:"lnc-ui-floating-manager","aria-labelledby":o.labelId,"aria-describedby":o.descriptionId,...o.getFloatingProps(l),children:n.jsx(P,{theme:g,borderRadius:t,className:"lnc-ui-popover-content "+r,style:m,children:l.children})})})})});d.propTypes={className:i.PropTypes.string,style:i.PropTypes.object,zIndex:i.PropTypes.number};module.exports=d;
9
+ background-color: ${e=>s.getColorRgbaValue(e.theme,"Popover","default","enabled","bg")};
10
+ `,y=()=>{const e=l.useContext(g);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},v=l.forwardRef(function({borderRadius:t="regular",className:r="",zIndex:c,style:d={},...a},u){const o=y(),m=i.useMergeRefs([o.floating,u]),b=h.useTheme();return n.jsx(i.FloatingPortal,{children:o.open&&n.jsx(i.FloatingFocusManager,{context:o.context,modal:o.modal,children:n.jsx("div",{ref:m,style:{position:o.strategy,top:o.y??0,left:o.x??0,width:"max-content",zIndex:c},className:"lnc-ui-floating-manager","aria-labelledby":o.labelId,"aria-describedby":o.descriptionId,...o.getFloatingProps(a),children:n.jsx(f,{theme:b,borderRadius:t,className:"lnc-ui-popover-content "+r,style:d,children:a.children})})})})});module.exports=v;
@@ -1,38 +1,37 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as c, useContext as b } from "react";
3
- import { a as f, F as u, b as g } from "./floating-ui.react.esm-CfpRzwmn.js";
4
- import { P as n } from "./index-CblbdqjE.js";
5
- import h from "./PopoverContext.js";
6
- import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
7
- import { g as y, a as P, b as v } from "./utils-DtEfC-TX.js";
8
- import { m as w } from "./motion-Ckekul_K.js";
9
- import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
10
- const F = x(w.div)`
2
+ import { forwardRef as c, useContext as p } from "react";
3
+ import { a as f, F as u, b } from "./floating-ui.react.esm-CfpRzwmn.js";
4
+ import g from "./PopoverContext.js";
5
+ import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
+ import { g as x, a as v, b as y } from "./utils-DtEfC-TX.js";
7
+ import { m as P } from "./motion-Ckekul_K.js";
8
+ import { u as w } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
+ const C = h(P.div)`
11
10
  font-family: ${(o) => {
12
11
  var t, r;
13
12
  return (r = (t = o.theme) == null ? void 0 : t.typography) == null ? void 0 : r.fontFamily;
14
13
  }};
15
14
  animation: fadeIn 0.4s;
16
- box-shadow: ${(o) => y(
15
+ box-shadow: ${(o) => x(
17
16
  o.theme,
18
17
  "Popover",
19
18
  o.color,
20
19
  "enabled",
21
20
  "boxShadow"
22
21
  )};
23
- border-radius: ${(o) => P(o.theme, o.borderRadius)};
22
+ border-radius: ${(o) => v(o.theme, o.borderRadius)};
24
23
  border-top: 1px solid rgba(0, 0, 0, 0.04);
25
24
  box-sizing: border-box;
26
25
  padding: 0.25rem;
27
- background-color: ${(o) => v(o.theme, "Popover", "default", "enabled", "bg")};
28
- `, R = () => {
29
- const o = b(h);
26
+ background-color: ${(o) => y(o.theme, "Popover", "default", "enabled", "bg")};
27
+ `, F = () => {
28
+ const o = p(g);
30
29
  if (o == null)
31
30
  throw new Error("Popover components must be wrapped in <Popover />");
32
31
  return o;
33
- }, I = c(function({ borderRadius: t = "regular", className: r = "", zIndex: i, style: l = {}, ...s }, m) {
34
- const e = R(), d = f([e.floating, m]), p = C();
35
- return /* @__PURE__ */ a(u, { children: e.open && /* @__PURE__ */ a(g, { context: e.context, modal: e.modal, children: /* @__PURE__ */ a(
32
+ }, k = c(function({ borderRadius: t = "regular", className: r = "", zIndex: i, style: s = {}, ...n }, l) {
33
+ const e = F(), d = f([e.floating, l]), m = w();
34
+ return /* @__PURE__ */ a(u, { children: e.open && /* @__PURE__ */ a(b, { context: e.context, modal: e.modal, children: /* @__PURE__ */ a(
36
35
  "div",
37
36
  {
38
37
  ref: d,
@@ -46,25 +45,20 @@ const F = x(w.div)`
46
45
  className: "lnc-ui-floating-manager",
47
46
  "aria-labelledby": e.labelId,
48
47
  "aria-describedby": e.descriptionId,
49
- ...e.getFloatingProps(s),
48
+ ...e.getFloatingProps(n),
50
49
  children: /* @__PURE__ */ a(
51
- F,
50
+ C,
52
51
  {
53
- theme: p,
52
+ theme: m,
54
53
  borderRadius: t,
55
54
  className: "lnc-ui-popover-content " + r,
56
- style: l,
57
- children: s.children
55
+ style: s,
56
+ children: n.children
58
57
  }
59
58
  )
60
59
  }
61
60
  ) }) });
62
61
  });
63
- I.propTypes = {
64
- className: n.string,
65
- style: n.object,
66
- zIndex: n.number
67
- };
68
62
  export {
69
- I as default
63
+ k as default
70
64
  };
@@ -1 +1 @@
1
- "use strict";const u=require("react/jsx-runtime"),o=require("react"),f=require("./floating-ui.react.esm-CiYofNnh.cjs"),l=require("./index-BpbMKBf_.cjs"),P=require("./PopoverContext.cjs"),d=()=>{const r=o.useContext(P);if(r==null)throw new Error("Popover components must be wrapped in <Popover />");return r},c=o.forwardRef(function({children:e,asChild:p,...n},i){const t=d(),a=e.ref,s=f.useMergeRefs([t.reference,i,a]);return p&&o.isValidElement(e)?o.cloneElement(e,t.getReferenceProps({ref:s,...n,...e.props,"data-state":t.open?"open":"closed"})):u.jsx("div",{ref:s,"data-state":t.open?"open":"closed",style:{width:"max-content"},...t.getReferenceProps(n),children:e})});c.propTypes={asChild:l.PropTypes.bool};module.exports=c;
1
+ "use strict";const i=require("react/jsx-runtime"),o=require("react"),u=require("./floating-ui.react.esm-CiYofNnh.cjs"),f=require("./PopoverContext.cjs"),g=()=>{const r=o.useContext(f);if(r==null)throw new Error("Popover components must be wrapped in <Popover />");return r},P=o.forwardRef(function({children:e,asChild:c,...n},p){const t=g(),a=e.ref,s=u.useMergeRefs([t.reference,p,a]);return c&&o.isValidElement(e)?o.cloneElement(e,t.getReferenceProps({ref:s,...n,...e.props,"data-state":t.open?"open":"closed"})):i.jsx("div",{ref:s,"data-state":t.open?"open":"closed",style:{width:"max-content"},...t.getReferenceProps(n),children:e})});module.exports=P;
@@ -1,16 +1,15 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import { forwardRef as m, isValidElement as c, cloneElement as i, useContext as u } from "react";
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as c, isValidElement as m, cloneElement as i, useContext as u } from "react";
3
3
  import { a as P } from "./floating-ui.react.esm-CfpRzwmn.js";
4
- import { P as l } from "./index-CblbdqjE.js";
5
4
  import d from "./PopoverContext.js";
6
5
  const g = () => {
7
6
  const t = u(d);
8
7
  if (t == null)
9
8
  throw new Error("Popover components must be wrapped in <Popover />");
10
9
  return t;
11
- }, v = m(function({ children: e, asChild: s, ...r }, p) {
12
- const o = g(), a = e.ref, n = P([o.reference, p, a]);
13
- return s && c(e) ? i(
10
+ }, R = c(function({ children: e, asChild: s, ...r }, p) {
11
+ const o = g(), f = e.ref, n = P([o.reference, p, f]);
12
+ return s && m(e) ? i(
14
13
  e,
15
14
  o.getReferenceProps({
16
15
  ref: n,
@@ -18,7 +17,7 @@ const g = () => {
18
17
  ...e.props,
19
18
  "data-state": o.open ? "open" : "closed"
20
19
  })
21
- ) : /* @__PURE__ */ f(
20
+ ) : /* @__PURE__ */ a(
22
21
  "div",
23
22
  {
24
23
  ref: n,
@@ -29,10 +28,6 @@ const g = () => {
29
28
  }
30
29
  );
31
30
  });
32
- v.propTypes = {
33
- /** Allows the user to pass any element as the anchor */
34
- asChild: l.bool
35
- };
36
31
  export {
37
- v as default
32
+ R as default
38
33
  };
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),d=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),f=require("./style-CkcozOY6.cjs"),c=require("./utils-RnrgDDZP.cjs"),L=require("./index-uwl7BjRF.cjs"),i=require("./style-BAcV7F53.cjs"),W=g.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),d=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./consts-goSZX3xP.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),f=require("./style-B4kAj6YU.cjs"),c=require("./utils-RnrgDDZP.cjs"),L=require("./index-uwl7BjRF.cjs"),i=require("./style-BAcV7F53.cjs"),W=g.styled.div`
2
2
  width: 100%;
3
3
  height: 22.5rem;
4
4
  min-height: 22.5rem;
@@ -3,7 +3,7 @@ import { forwardRef as W, useRef as N, Suspense as U, memo as G, useMemo as M }
3
3
  import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
4
  import { M as R } from "./consts-BuFChS64.js";
5
5
  import { u as _ } from "./useDetectMobile-Bkvj0VMa.js";
6
- import { R as j } from "./style-Cmlod7oq.js";
6
+ import { R as j } from "./style-neMbLWE6.js";
7
7
  import { m as B, l as I, k as C } from "./utils-DtEfC-TX.js";
8
8
  import { P as L } from "./index-B22BZVBG.js";
9
9
  import { b as s, a as i, S as u, c as b } from "./style-BwQ4djFC.js";
@@ -1,15 +1,15 @@
1
- "use strict";const a=require("react/jsx-runtime"),i=require("react"),r=require("./index-BpbMKBf_.cjs"),l=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-RnrgDDZP.cjs"),P=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),f=l.styled.div`
1
+ "use strict";const l=require("react/jsx-runtime"),n=require("react"),i=require("./emotion-styled.browser.esm-BtEseadx.cjs"),r=require("./utils-RnrgDDZP.cjs"),p=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=i.styled.div`
2
2
  width: 100%;
3
3
  position: relative;
4
- background-color: ${e=>o.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","unfilled")};
4
+ background-color: ${e=>r.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","unfilled")};
5
5
  height: ${e=>e.theme.components.Progress.default.enabled.sizes[e.size]};
6
6
  border-radius: 5px;
7
7
  animation: progres 4s infinite linear;
8
- `,x=l.styled.div`
8
+ `,f=i.styled.div`
9
9
  position: relative;
10
10
  height: 100%;
11
11
  width: ${e=>e.progressPercentage+"%"};
12
- background-color: ${e=>o.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","background")};
12
+ background-color: ${e=>r.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","background")};
13
13
  position: absolute;
14
14
  border-radius: ${e=>e.progressPercentage==100?"5px":"5px 0px 0px 5px"};
15
15
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
@@ -20,11 +20,11 @@
20
20
  top: 50%;
21
21
  transform: translate(50%, -50%);
22
22
  }
23
- `,T=l.styled.label`
24
- ${e=>o.getComponentTypographyCss(e.theme,"Progress",e.size,"enabled")};
23
+ `,P=i.styled.label`
24
+ ${e=>r.getComponentTypographyCss(e.theme,"Progress",e.size,"enabled")};
25
25
  position: absolute;
26
26
  top: 50%;
27
27
  left: 50%;
28
28
  transform: translate(-50%, -50%);
29
- color: ${e=>o.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","text")};
30
- `,d=i.forwardRef((e,w)=>{const{id:$="",showLabel:c=!1,progressPercentage:t=0,className:m="",style:u={},onChange:C=()=>{},size:g="small",color:b="primary",progressBarEndComponent:s,...y}=e,n=P.useTheme(),h=()=>{var p;if(i.isValidElement(s))return i.cloneElement(s,{className:`progress-icon ${(p=s==null?void 0:s.props)==null?void 0:p.className}`})};return a.jsxs(f,{style:u,className:"lnc-ui-progress "+m,theme:n,size:g,showLabel:c,progressPercentage:t,...y,children:[a.jsx(x,{progressPercentage:t,theme:n,color:b,children:s!==null&&h()}),c&&a.jsxs(T,{theme:n,size:g,children:[t,"%"]})]})});d.propTypes={id:r.PropTypes.any,showLabel:r.PropTypes.bool,progressPercentage: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","disabled","information","neutral","gray"]),progressBarEndComponent:r.PropTypes.any};module.exports=d;
29
+ color: ${e=>r.getColorRgbaValue(e.theme,"Progress",e.color,"enabled","text")};
30
+ `,y=n.forwardRef((e,$)=>{const{showLabel:a=!1,progressPercentage:o=0,className:d="",style:u={},size:c="small",color:m="primary",progressBarEndComponent:s,...b}=e,t=p.useTheme(),h=()=>{var g;if(n.isValidElement(s))return n.cloneElement(s,{className:`progress-icon ${(g=s==null?void 0:s.props)==null?void 0:g.className}`})};return l.jsxs(x,{style:u,className:"lnc-ui-progress "+d,theme:t,size:c,showLabel:a,progressPercentage:o,...b,children:[l.jsx(f,{progressPercentage:o,theme:t,color:m,children:s!==null&&h()}),a&&l.jsxs(P,{theme:t,size:c,children:[o,"%"]})]})});module.exports=y;