@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,13 +1,12 @@
1
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as N } from "react";
3
- import { P as i } from "./index-CblbdqjE.js";
4
- import { s as v } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
- import w from "./Icon.js";
6
- import { c as $, b as s, g as B } from "./utils-DtEfC-TX.js";
7
- import P from "./Avatar.js";
3
+ import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
4
+ import $ from "./Icon.js";
5
+ import { c as y, b as a, g as v } from "./utils-DtEfC-TX.js";
6
+ import B from "./Avatar.js";
8
7
  import { u as z } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
9
- const T = v.div`
10
- ${(t) => $(t.theme, "Notification", "small", "enabled")};
8
+ const C = w.div`
9
+ ${(i) => y(i.theme, "Notification", "small", "enabled")};
11
10
 
12
11
  word-wrap: break-word;
13
12
  box-sizing: border-box;
@@ -17,23 +16,23 @@ const T = v.div`
17
16
 
18
17
  & .notification-actions {
19
18
  align-items: center;
20
- ${(t) => t.sideButtons && "margin: -14px"};
21
- flex-direction: ${(t) => t.sideButtons ? "column" : "row"};
22
- ${(t) => t.sideButtons && "margin-left: auto"};
23
- ${(t) => t.inlineActions == !1 && t.sideButtons == !1 && "padding-top: 4px"};
24
- gap: ${(t) => t.sideButtons ? "0" : "1rem"};
19
+ ${(i) => i.sideButtons && "margin: -14px"};
20
+ flex-direction: ${(i) => i.sideButtons ? "column" : "row"};
21
+ ${(i) => i.sideButtons && "margin-left: auto"};
22
+ ${(i) => i.inlineActions == !1 && i.sideButtons == !1 && "padding-top: 4px"};
23
+ gap: ${(i) => i.sideButtons ? "0" : "1rem"};
25
24
  display: flex;
26
25
 
27
- color: ${(t) => s(
28
- t.theme,
26
+ color: ${(i) => a(
27
+ i.theme,
29
28
  "Notification",
30
- t.color,
29
+ i.color,
31
30
  "enabled",
32
31
  "action"
33
32
  )};
34
33
 
35
34
  & > button {
36
- ${(t) => t.sideButtons && "flex: 1; width: 100%;"}
35
+ ${(i) => i.sideButtons && "flex: 1; width: 100%;"}
37
36
  }
38
37
  }
39
38
  & .notification-main {
@@ -46,10 +45,10 @@ const T = v.div`
46
45
  display: flex;
47
46
  flex-direction: column;
48
47
  gap: 0.25rem;
49
- color: ${(t) => s(
50
- t.theme,
48
+ color: ${(i) => a(
49
+ i.theme,
51
50
  "Notification",
52
- t.color,
51
+ i.color,
53
52
  "enabled",
54
53
  "text"
55
54
  )};
@@ -61,72 +60,56 @@ const T = v.div`
61
60
  }
62
61
  }
63
62
  & .notification-title {
64
- font-weight: ${(t) => B(
65
- t.theme,
63
+ font-weight: ${(i) => v(
64
+ i.theme,
66
65
  "Notification",
67
- t.color,
66
+ i.color,
68
67
  "enabled",
69
68
  "fontWeightTitle"
70
69
  )};
71
- color: ${(t) => s(
72
- t.theme,
70
+ color: ${(i) => a(
71
+ i.theme,
73
72
  "Notification",
74
- t.color,
73
+ i.color,
75
74
  "enabled",
76
75
  "title"
77
76
  )};
78
77
  }
79
- `, j = N((t, c) => {
78
+ `, V = N((i, c) => {
80
79
  const {
81
- title: m,
82
- icon: l,
83
- className: f,
84
- style: d = {},
85
- size: p = "small",
80
+ title: r,
81
+ icon: s,
82
+ className: m,
83
+ style: f = {},
84
+ size: d = "small",
86
85
  avatar: g = !1,
87
- actions: r,
86
+ actions: l,
88
87
  inlineActions: e = !1,
89
- sideButtons: n = !1,
90
- iconProps: b,
88
+ sideButtons: o = !1,
89
+ iconProps: p,
91
90
  avatarProps: h,
92
91
  children: u,
93
92
  ...x
94
- } = t, y = {
93
+ } = i, b = {
95
94
  theme: z(),
96
- className: f,
97
- style: d,
98
- size: p,
95
+ className: m,
96
+ style: f,
97
+ size: d,
99
98
  inlineActions: e,
100
- sideButtons: n
99
+ sideButtons: o
101
100
  };
102
- return /* @__PURE__ */ a(T, { ref: c, ...y, ...x, children: [
103
- /* @__PURE__ */ a("div", { className: "notification-main", children: [
104
- g ? /* @__PURE__ */ o(P, { sizeInUnits: "2.75rem", ...h }) : l && /* @__PURE__ */ o(w, { className: "notification-icon", icon: l, ...b }),
105
- /* @__PURE__ */ a("div", { className: "notification-content", children: [
106
- /* @__PURE__ */ o("div", { className: "notification-title", children: m }),
101
+ return /* @__PURE__ */ n(C, { ref: c, ...b, ...x, children: [
102
+ /* @__PURE__ */ n("div", { className: "notification-main", children: [
103
+ g ? /* @__PURE__ */ t(B, { sizeInUnits: "2.75rem", ...h }) : s && /* @__PURE__ */ t($, { className: "notification-icon", icon: s, ...p }),
104
+ /* @__PURE__ */ n("div", { className: "notification-content", children: [
105
+ /* @__PURE__ */ t("div", { className: "notification-title", children: r }),
107
106
  u,
108
- !e && !n && /* @__PURE__ */ o("div", { className: "notification-actions", children: r })
107
+ !e && !o && /* @__PURE__ */ t("div", { className: "notification-actions", children: l })
109
108
  ] })
110
109
  ] }),
111
- (e || n) && /* @__PURE__ */ o("div", { className: "notification-actions", children: r })
110
+ (e || o) && /* @__PURE__ */ t("div", { className: "notification-actions", children: l })
112
111
  ] });
113
112
  });
114
- j.propTypes = {
115
- avatar: i.bool,
116
- title: i.string,
117
- /**
118
- * If `avatar={true}` icon won't be displayed
119
- */
120
- icon: i.string,
121
- actions: i.element,
122
- inlineActions: i.bool,
123
- sideButtons: i.bool,
124
- //-----------------------
125
- className: i.string,
126
- style: i.object,
127
- iconProps: i.any,
128
- avatarProps: i.any
129
- };
130
113
  export {
131
- j as default
114
+ V as default
132
115
  };
@@ -1,22 +1,22 @@
1
- "use strict";const g=require("react/jsx-runtime"),r=require("./index-BpbMKBf_.cjs"),n=require("react"),L=require("./index-Cp66dWMi.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-RnrgDDZP.cjs"),Q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Y=m.styled.div`
1
+ "use strict";const s=require("react/jsx-runtime"),o=require("react"),H=require("./index-Cp66dWMi.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-RnrgDDZP.cjs"),J=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),L=g.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: ${a=>o.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
16
- `,E=m.styled.span`
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: ${a=>l.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
16
+ `,q=g.styled.span`
17
17
  padding: 0 12px;
18
- color: ${e=>o.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","prefix")};
19
- `,Z=m.styled(E)``,v=m.styled.input`
18
+ color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","prefix")};
19
+ `,Q=g.styled(q)``,Y=g.styled.input`
20
20
  background: none;
21
21
  border: none;
22
22
  outline: none;
@@ -24,16 +24,16 @@
24
24
  padding-bottom: 0.625rem;
25
25
  width: 100%;
26
26
 
27
- ${e=>o.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
28
- min-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
29
- max-height: ${e=>o.getSizeValueWithUnits(e.theme,e.size)};
30
- color: ${e=>o.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","text")};
31
- caret-color: ${e=>o.getColorRgbaValue(e.theme,"Input",e.color,"enabled","caret")};
27
+ ${e=>l.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
28
+ min-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
29
+ max-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
30
+ color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","text")};
31
+ caret-color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","caret")};
32
32
  padding-right: ${e=>e.suffix?"0":"0.75rem"};
33
33
  padding-left: ${e=>e.prefix?"0":"0.75rem"};
34
34
 
35
35
  &::placeholder {
36
- color: ${e=>o.getColorRgbaValue(e.theme,"Input",e.color,"enabled","placeholder")};
36
+ color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","placeholder")};
37
37
  }
38
38
 
39
39
  &:read-only {
@@ -41,9 +41,9 @@
41
41
  }
42
42
 
43
43
  &:disabled {
44
- /* ${e=>o.getDisabledStateCss(e.theme)} */
45
- ${e=>`background-color: ${o.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
46
- color: ${a=>o.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
44
+ /* ${e=>l.getDisabledStateCss(e.theme)} */
45
+ ${e=>`background-color: ${l.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
46
+ color: ${a=>l.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
47
47
  background: none;
48
48
  }
49
- `,_=n.forwardRef((e,a)=>{const{disabled:P,readOnly:$,debounceTime:q=0,step:j=1,min:w=Number.MIN_SAFE_INTEGER,max:D=Number.MAX_SAFE_INTEGER,prefix:b,suffix:p,placeholder:F,value:l,defaultValue:V,onChange:s,onBlur:y,onFocus:h,onKeyDown:f,maxDecimalPlaces:C,className:W="",style:U={},size:I="small",color:i="primary",...A}=e,d=Q.useTheme(),c=n.useRef(l||V||""),[B,R]=n.useState(l||V||""),[T,k]=n.useState(!1);n.useEffect(()=>{l!=null&&(c.current=l,R(c.current))},[l]);const G=n.useCallback(L.debounce((t,u)=>M(t,u),q),[s]),M=(t,u)=>{s&&(s==null||s(t,u))},K=t=>{c.current=t.target.value,R(c.current),G(t,t.target.value)},X=t=>{k(!0),h==null||h(t)},H=t=>{k(!1),y==null||y(t)},J=t=>{var u,S,z,O,N;if(((S=(u=t==null?void 0:t.target)==null?void 0:u.value)==null?void 0:S.length)>0&&(t.key==="+"||t.key==="-")&&t.preventDefault(),((z=t==null?void 0:t.target)==null?void 0:z.value)===""&&(t.key==="+"||t.key==="-")&&(t.target.value=t.key),(O=t==null?void 0:t.target)!=null&&O.value.includes(".")&&C){const x=(N=t==null?void 0:t.target)==null?void 0:N.value.split(".")[1];(x==null?void 0:x.length)>=C&&t.preventDefault()}f==null||f(t)};return g.jsxs(Y,{style:U,className:W,theme:d,color:i,size:I,focused:T,disabled:P,readOnly:$,children:[b&&g.jsx(E,{theme:d,color:i,focused:T,className:"lnc-input-prefix",children:b}),g.jsx(v,{ref:a,type:"number",theme:d,color:i,size:I,placeholder:F,prefix:b,suffix:p,disabled:P,readOnly:$,step:j,min:w,max:D,value:B,onFocus:X,onBlur:H,onChange:K,onKeyDown:J,...A}),p&&g.jsx(Z,{theme:d,color:i,focused:T,className:"lnc-input-suffix",children:p})]})});_.propTypes={id:r.PropTypes.any,value:r.PropTypes.any,defaultValue:r.PropTypes.any,disabled:r.PropTypes.bool,readOnly:r.PropTypes.bool,debounceTime:r.PropTypes.number,step:r.PropTypes.number,min:r.PropTypes.number,max:r.PropTypes.number,prefix:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.element]),suffix:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.element]),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=_;
49
+ `,Z=o.forwardRef((e,a)=>{const{disabled:V,readOnly:C,debounceTime:D=0,step:O=1,min:W=Number.MIN_SAFE_INTEGER,max:j=Number.MAX_SAFE_INTEGER,prefix:b,suffix:m,placeholder:w,value:r,defaultValue:R,onChange:i,onBlur:h,onFocus:f,onKeyDown:y,maxDecimalPlaces:I,className:F="",style:T={},size:k="small",color:d="primary",...U}=e,n=J.useTheme(),c=o.useRef(r||R||""),[A,S]=o.useState(r||R||""),[x,z]=o.useState(!1);o.useEffect(()=>{r!=null&&(c.current=r,S(c.current))},[r]);const B=o.useCallback(H.debounce((t,u)=>G(t,u),D),[i]),G=(t,u)=>{i&&(i==null||i(t,u))},M=t=>{c.current=t.target.value,S(c.current),B(t,t.target.value)},P=t=>{z(!0),f==null||f(t)},K=t=>{z(!1),h==null||h(t)},X=t=>{var u,N,E,_,p;if(((N=(u=t==null?void 0:t.target)==null?void 0:u.value)==null?void 0:N.length)>0&&(t.key==="+"||t.key==="-")&&t.preventDefault(),((E=t==null?void 0:t.target)==null?void 0:E.value)===""&&(t.key==="+"||t.key==="-")&&(t.target.value=t.key),(_=t==null?void 0:t.target)!=null&&_.value.includes(".")&&I){const $=(p=t==null?void 0:t.target)==null?void 0:p.value.split(".")[1];($==null?void 0:$.length)>=I&&t.preventDefault()}y==null||y(t)};return s.jsxs(L,{style:T,className:F,theme:n,color:d,size:k,focused:x,disabled:V,readOnly:C,children:[b&&s.jsx(q,{theme:n,color:d,focused:x,className:"lnc-input-prefix",children:b}),s.jsx(Y,{ref:a,type:"number",theme:n,color:d,size:k,placeholder:w,prefix:b,suffix:m,disabled:V,readOnly:C,step:O,min:W,max:j,value:A,onFocus:P,onBlur:K,onChange:M,onKeyDown:X,...U}),m&&s.jsx(Q,{theme:n,color:d,focused:x,className:"lnc-input-suffix",children:m})]})});module.exports=Z;
@@ -1,17 +1,16 @@
1
- import { jsxs as q, jsx as $ } from "react/jsx-runtime";
2
- import { P as t } from "./index-CblbdqjE.js";
3
- import { forwardRef as H, useRef as J, useState as D, useEffect as L, useCallback as Q } from "react";
4
- import { d as Y } from "./index-Dt62UGku.js";
5
- import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
- import { d as s, b as l, a as Z, e as v, h as F, c as ee } from "./utils-DtEfC-TX.js";
7
- import { u as ae } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
8
- const te = m.div`
1
+ import { jsxs as X, jsx as x } from "react/jsx-runtime";
2
+ import { forwardRef as q, useRef as H, useState as O, useEffect as J, useCallback as L } from "react";
3
+ import { d as Q } from "./index-Dt62UGku.js";
4
+ import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { d as i, b as t, a as Y, e as Z, h as F, c as v } from "./utils-DtEfC-TX.js";
6
+ import { u as ee } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
7
+ const ae = 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)};
14
- background-color: ${(e) => l(
11
+ min-height: ${(e) => i(e.theme, e.size)};
12
+ max-height: ${(e) => i(e.theme, e.size)};
13
+ background-color: ${(e) => t(
15
14
  e.theme,
16
15
  "Input",
17
16
  e.color,
@@ -19,18 +18,18 @@ const te = m.div`
19
18
  "background"
20
19
  )};
21
20
  border: 1px solid
22
- ${(e) => l(
21
+ ${(e) => t(
23
22
  e.theme,
24
23
  "Input",
25
24
  e.focused === !0 ? "primary" : e.color,
26
25
  e.disabled === !0 ? "disabled" : "enabled",
27
26
  "border"
28
27
  )};
29
- border-radius: ${(e) => Z(e.theme, "regular")};
28
+ border-radius: ${(e) => Y(e.theme, "regular")};
30
29
 
31
- ${(e) => e.focused && e.readOnly !== !0 ? v(e.theme) : ""}
30
+ ${(e) => e.focused && e.readOnly !== !0 ? Z(e.theme) : ""}
32
31
  /* ${(e) => e.disabled === !0 ? F(e.theme) : ""} */
33
- ${(e) => e.disabled === !0 && `background-color: ${l(
32
+ ${(e) => e.disabled === !0 && `background-color: ${t(
34
33
  e.theme,
35
34
  "Input",
36
35
  e.color,
@@ -38,23 +37,23 @@ const te = m.div`
38
37
  "background",
39
38
  "backgroundOpacity"
40
39
  )};
41
- color: ${(r) => l(
42
- r.theme,
40
+ color: ${(l) => t(
41
+ l.theme,
43
42
  "Input",
44
- r.color,
43
+ l.color,
45
44
  "disabled",
46
45
  "text"
47
46
  )};`}
48
- `, w = m.span`
47
+ `, T = s.span`
49
48
  padding: 0 12px;
50
- color: ${(e) => l(
49
+ color: ${(e) => t(
51
50
  e.theme,
52
51
  "Input",
53
52
  e.focused === !0 ? "primary" : e.color,
54
53
  "enabled",
55
54
  "prefix"
56
55
  )};
57
- `, le = m(w)``, re = m.input`
56
+ `, te = s(T)``, le = s.input`
58
57
  background: none;
59
58
  border: none;
60
59
  outline: none;
@@ -62,22 +61,22 @@ const te = m.div`
62
61
  padding-bottom: 0.625rem;
63
62
  width: 100%;
64
63
 
65
- ${(e) => ee(e.theme, "Input", e.size, "enabled")}
66
- min-height: ${(e) => s(e.theme, e.size)};
67
- max-height: ${(e) => s(e.theme, e.size)};
68
- color: ${(e) => l(
64
+ ${(e) => v(e.theme, "Input", e.size, "enabled")}
65
+ min-height: ${(e) => i(e.theme, e.size)};
66
+ max-height: ${(e) => i(e.theme, e.size)};
67
+ color: ${(e) => t(
69
68
  e.theme,
70
69
  "Input",
71
70
  e.focused === !0 ? "primary" : e.color,
72
71
  "enabled",
73
72
  "text"
74
73
  )};
75
- caret-color: ${(e) => l(e.theme, "Input", e.color, "enabled", "caret")};
74
+ caret-color: ${(e) => t(e.theme, "Input", e.color, "enabled", "caret")};
76
75
  padding-right: ${(e) => e.suffix ? "0" : "0.75rem"};
77
76
  padding-left: ${(e) => e.prefix ? "0" : "0.75rem"};
78
77
 
79
78
  &::placeholder {
80
- color: ${(e) => l(
79
+ color: ${(e) => t(
81
80
  e.theme,
82
81
  "Input",
83
82
  e.color,
@@ -92,7 +91,7 @@ const te = m.div`
92
91
 
93
92
  &:disabled {
94
93
  /* ${(e) => F(e.theme)} */
95
- ${(e) => `background-color: ${l(
94
+ ${(e) => `background-color: ${t(
96
95
  e.theme,
97
96
  "Input",
98
97
  e.color,
@@ -100,115 +99,115 @@ const te = m.div`
100
99
  "background",
101
100
  "backgroundOpacity"
102
101
  )};
103
- color: ${(r) => l(
104
- r.theme,
102
+ color: ${(l) => t(
103
+ l.theme,
105
104
  "Input",
106
- r.color,
105
+ l.color,
107
106
  "disabled",
108
107
  "text"
109
108
  )};`}
110
109
  background: none;
111
110
  }
112
- `, ne = H((e, r) => {
111
+ `, fe = q((e, l) => {
113
112
  const {
114
113
  disabled: I,
115
114
  readOnly: k,
116
- debounceTime: B = 0,
117
- step: P = 1,
118
- min: _ = Number.MIN_SAFE_INTEGER,
119
- max: j = Number.MAX_SAFE_INTEGER,
120
- prefix: f,
115
+ debounceTime: w = 0,
116
+ step: _ = 1,
117
+ min: A = Number.MIN_SAFE_INTEGER,
118
+ max: B = Number.MAX_SAFE_INTEGER,
119
+ prefix: m,
121
120
  suffix: h,
122
- placeholder: A,
123
- value: n,
124
- defaultValue: C,
121
+ placeholder: W,
122
+ value: r,
123
+ defaultValue: p,
125
124
  //----------------
126
- onChange: u,
127
- onBlur: b,
128
- onFocus: g,
129
- onKeyDown: y,
130
- maxDecimalPlaces: O,
125
+ onChange: o,
126
+ onBlur: f,
127
+ onFocus: b,
128
+ onKeyDown: g,
129
+ maxDecimalPlaces: C,
131
130
  //----------------
132
- className: W = "",
131
+ className: j = "",
133
132
  style: G = {},
134
- size: N = "small",
133
+ size: S = "small",
135
134
  color: d = "primary",
136
135
  ...K
137
- } = e, i = ae(), c = J(n || C || ""), [M, S] = D(n || C || ""), [x, T] = D(!1);
138
- L(() => {
139
- n != null && (c.current = n, S(c.current));
140
- }, [n]);
141
- const U = Q(
142
- Y((a, o) => X(a, o), B),
143
- [u]
144
- ), X = (a, o) => {
145
- u && (u == null || u(a, o));
136
+ } = e, n = ee(), c = H(r || p || ""), [M, N] = O(r || p || ""), [y, V] = O(!1);
137
+ J(() => {
138
+ r != null && (c.current = r, N(c.current));
139
+ }, [r]);
140
+ const P = L(
141
+ Q((a, u) => U(a, u), w),
142
+ [o]
143
+ ), U = (a, u) => {
144
+ o && (o == null || o(a, u));
146
145
  };
147
- return /* @__PURE__ */ q(
148
- te,
146
+ return /* @__PURE__ */ X(
147
+ ae,
149
148
  {
150
149
  style: G,
151
- className: W,
152
- theme: i,
150
+ className: j,
151
+ theme: n,
153
152
  color: d,
154
- size: N,
155
- focused: x,
153
+ size: S,
154
+ focused: y,
156
155
  disabled: I,
157
156
  readOnly: k,
158
157
  children: [
159
- f && /* @__PURE__ */ $(
160
- w,
158
+ m && /* @__PURE__ */ x(
159
+ T,
161
160
  {
162
- theme: i,
161
+ theme: n,
163
162
  color: d,
164
- focused: x,
163
+ focused: y,
165
164
  className: "lnc-input-prefix",
166
- children: f
165
+ children: m
167
166
  }
168
167
  ),
169
- /* @__PURE__ */ $(
170
- re,
168
+ /* @__PURE__ */ x(
169
+ le,
171
170
  {
172
- ref: r,
171
+ ref: l,
173
172
  type: "number",
174
- theme: i,
173
+ theme: n,
175
174
  color: d,
176
- size: N,
177
- placeholder: A,
178
- prefix: f,
175
+ size: S,
176
+ placeholder: W,
177
+ prefix: m,
179
178
  suffix: h,
180
179
  disabled: I,
181
180
  readOnly: k,
182
- step: P,
183
- min: _,
184
- max: j,
181
+ step: _,
182
+ min: A,
183
+ max: B,
185
184
  value: M,
186
185
  onFocus: (a) => {
187
- T(!0), g == null || g(a);
186
+ V(!0), b == null || b(a);
188
187
  },
189
188
  onBlur: (a) => {
190
- T(!1), b == null || b(a);
189
+ V(!1), f == null || f(a);
191
190
  },
192
191
  onChange: (a) => {
193
- c.current = a.target.value, S(c.current), U(a, a.target.value);
192
+ c.current = a.target.value, N(c.current), P(a, a.target.value);
194
193
  },
195
194
  onKeyDown: (a) => {
196
- var o, V, z, E, R;
197
- if (((V = (o = a == null ? void 0 : a.target) == null ? void 0 : o.value) == null ? void 0 : V.length) > 0 && (a.key === "+" || a.key === "-") && a.preventDefault(), ((z = a == null ? void 0 : a.target) == null ? void 0 : z.value) === "" && (a.key === "+" || a.key === "-") && (a.target.value = a.key), (E = a == null ? void 0 : a.target) != null && E.value.includes(".") && O) {
198
- const p = (R = a == null ? void 0 : a.target) == null ? void 0 : R.value.split(".")[1];
199
- (p == null ? void 0 : p.length) >= O && a.preventDefault();
195
+ var u, z, E, R, D;
196
+ if (((z = (u = a == null ? void 0 : a.target) == null ? void 0 : u.value) == null ? void 0 : z.length) > 0 && (a.key === "+" || a.key === "-") && a.preventDefault(), ((E = a == null ? void 0 : a.target) == null ? void 0 : E.value) === "" && (a.key === "+" || a.key === "-") && (a.target.value = a.key), (R = a == null ? void 0 : a.target) != null && R.value.includes(".") && C) {
197
+ const $ = (D = a == null ? void 0 : a.target) == null ? void 0 : D.value.split(".")[1];
198
+ ($ == null ? void 0 : $.length) >= C && a.preventDefault();
200
199
  }
201
- y == null || y(a);
200
+ g == null || g(a);
202
201
  },
203
202
  ...K
204
203
  }
205
204
  ),
206
- h && /* @__PURE__ */ $(
207
- le,
205
+ h && /* @__PURE__ */ x(
206
+ te,
208
207
  {
209
- theme: i,
208
+ theme: n,
210
209
  color: d,
211
- focused: x,
210
+ focused: y,
212
211
  className: "lnc-input-suffix",
213
212
  children: h
214
213
  }
@@ -217,65 +216,6 @@ const te = m.div`
217
216
  }
218
217
  );
219
218
  });
220
- ne.propTypes = {
221
- id: t.any,
222
- value: t.any,
223
- defaultValue: t.any,
224
- disabled: t.bool,
225
- readOnly: t.bool,
226
- /**
227
- * Time in miliseconds before onChange event fires after it has been triggered.
228
- */
229
- debounceTime: t.number,
230
- /**
231
- * The amount that is added to the current value in the input if its incremented using the arrows/spinners.
232
- */
233
- step: t.number,
234
- /**
235
- * Minimum number value user can input.
236
- */
237
- min: t.number,
238
- /**
239
- * Maximum number value user can input.
240
- */
241
- max: t.number,
242
- /**
243
- * Reserved space before input. Intented to be used with plain text or `Icon` component.
244
- */
245
- prefix: t.oneOfType([t.string, t.element]),
246
- /**
247
- * Reserved space after input. Intented to be used with plain text or `Icon` component.
248
- */
249
- suffix: t.oneOfType([t.string, t.element]),
250
- placeholder: t.string,
251
- tabIndex: t.number,
252
- /**
253
- * `(event, value) => void`
254
- */
255
- onChange: t.func,
256
- /**
257
- * `(event) => void`
258
- */
259
- onBlur: t.func,
260
- /**
261
- * `(event) => void`
262
- */
263
- onFocus: t.func,
264
- //----------------
265
- className: t.string,
266
- style: t.object,
267
- size: t.oneOf(["small", "medium", "large"]),
268
- color: t.oneOf([
269
- "primary",
270
- "secondary",
271
- "success",
272
- "danger",
273
- "warning",
274
- "information",
275
- "neutral",
276
- "gray"
277
- ])
278
- };
279
219
  export {
280
- ne as default
220
+ fe as default
281
221
  };
@@ -1,4 +1,4 @@
1
- "use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./index-BpbMKBf_.cjs"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=S.styled.section`
1
+ "use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./emotion-styled.browser.esm-BtEseadx.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=E.styled.section`
2
2
  display: flex;
3
3
  flex: auto;
4
4
  flex-direction: ${s=>s.hasSidebar?"row":"column"};
@@ -23,4 +23,4 @@
23
23
  flex: 0 0 15rem;
24
24
  height: 100%;
25
25
  }
26
- `,u=a.forwardRef((s,f)=>{const{children:o,isChild:h,__TYPE__:c="PageLayout",...p}=s,P=T.useTheme(),g=a.Children.toArray(o).some(e=>{var t;return e.props.__TYPE__||((t=e==null?void 0:e.type)==null?void 0:t.displayName)=="Sidebar"}),m=e=>{let t,i,l;if(a.Children.forEach(e,(r,d)=>{var _,n,y;if(r.props.__TYPE__=="Sidebar"||((_=r==null?void 0:r.type)==null?void 0:_.displayName)==="Sidebar"){if(i)throw"Found multiple ocurrences of Sidebar component on the same level in the component tree.";i=d+1}else if(r.props.__TYPE__=="PageLayout"||((n=r==null?void 0:r.type)==null?void 0:n.displayName)==="PageLayout"){if(t)throw"Found multiple ocurrences of PageLayout component on the same level in the component tree.";t=d+1}else if(r.props.__TYPE__=="Content"||((y=r==null?void 0:r.type)==null?void 0:y.displayName)==="Content"){if(l)throw"Found multiple ocurrences of Content component on the same level in the component tree.";l=d+1}}),t&&i)return i<t?"left":"right";if(l&&i)return i<l?"left":"right"},b=a.Children.map(o,e=>{var t,i;if(a.isValidElement(e)){if(e.props.__TYPE__=="Sidebar"||((t=e.type)==null?void 0:t.displayName)==="Sidebar")return a.cloneElement(e,{placement:m(o)});if(e.props.__TYPE__=="PageLayout"||((i=e.type)==null?void 0:i.displayName)==="PageLayout")return a.cloneElement(e,{isChild:!0})}return e});return x.jsx(C,{isChild:h,hasSidebar:g,theme:P,ref:f,...p,children:b})});u.propTypes={__TYPE__:E.PropTypes.string};u.displayName="PageLayout";module.exports=u;
26
+ `,f=a.forwardRef((s,h)=>{const{children:o,isChild:y,...m}=s,p=S.useTheme(),b=a.Children.toArray(o).some(e=>{var t;return e.props.__TYPE__||((t=e==null?void 0:e.type)==null?void 0:t.displayName)=="Sidebar"}),g=e=>{let t,i,l;if(a.Children.forEach(e,(r,d)=>{var u,n,_;if(r.props.__TYPE__=="Sidebar"||((u=r==null?void 0:r.type)==null?void 0:u.displayName)==="Sidebar"){if(i)throw"Found multiple ocurrences of Sidebar component on the same level in the component tree.";i=d+1}else if(r.props.__TYPE__=="PageLayout"||((n=r==null?void 0:r.type)==null?void 0:n.displayName)==="PageLayout"){if(t)throw"Found multiple ocurrences of PageLayout component on the same level in the component tree.";t=d+1}else if(r.props.__TYPE__=="Content"||((_=r==null?void 0:r.type)==null?void 0:_.displayName)==="Content"){if(l)throw"Found multiple ocurrences of Content component on the same level in the component tree.";l=d+1}}),t&&i)return i<t?"left":"right";if(l&&i)return i<l?"left":"right"},P=a.Children.map(o,e=>{var t,i;if(a.isValidElement(e)){if(e.props.__TYPE__=="Sidebar"||((t=e.type)==null?void 0:t.displayName)==="Sidebar")return a.cloneElement(e,{placement:g(o)});if(e.props.__TYPE__=="PageLayout"||((i=e.type)==null?void 0:i.displayName)==="PageLayout")return a.cloneElement(e,{isChild:!0})}return e});return x.jsx(C,{isChild:y,hasSidebar:b,theme:p,ref:h,...m,children:P})});f.displayName="PageLayout";module.exports=f;