@lanaco/lnc-react-ui 4.0.98 → 4.0.100

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 (240) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +1 -1
  3. package/dist/AccordionSummary.cjs +1 -1
  4. package/dist/AccordionSummary.js +1 -1
  5. package/dist/ActionsToolbar.cjs +1 -1
  6. package/dist/ActionsToolbar.js +1 -1
  7. package/dist/Alert.cjs +1 -1
  8. package/dist/Alert.js +1 -1
  9. package/dist/Avatar.cjs +1 -1
  10. package/dist/Avatar.js +1 -1
  11. package/dist/Badge.cjs +1 -1
  12. package/dist/Badge.js +1 -1
  13. package/dist/BannerSectionCarousel.cjs +1 -1
  14. package/dist/BannerSectionCarousel.js +1 -1
  15. package/dist/BannerSectionWithList.cjs +1 -1
  16. package/dist/BannerSectionWithList.js +1 -1
  17. package/dist/BlogCardsSponsoredSection.cjs +1 -1
  18. package/dist/BlogCardsSponsoredSection.js +3 -3
  19. package/dist/BlogCategoryCardsSection.cjs +1 -1
  20. package/dist/BlogCategoryCardsSection.js +1 -1
  21. package/dist/BlogListSection.cjs +1 -1
  22. package/dist/BlogListSection.js +3 -3
  23. package/dist/BlogProductCardsSection.cjs +1 -1
  24. package/dist/BlogProductCardsSection.js +2 -2
  25. package/dist/BlogShopCardsSection.cjs +1 -1
  26. package/dist/BlogShopCardsSection.js +1 -1
  27. package/dist/BlogSingleSection.cjs +1 -1
  28. package/dist/BlogSingleSection.js +2 -2
  29. package/dist/BlogsSectionDetailed.cjs +1 -1
  30. package/dist/BlogsSectionDetailed.js +3 -3
  31. package/dist/BlogsSectionLarge.cjs +1 -1
  32. package/dist/BlogsSectionLarge.js +2 -2
  33. package/dist/BlogsSectionSimple.cjs +1 -1
  34. package/dist/BlogsSectionSimple.js +3 -3
  35. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  36. package/dist/BlogsSectionSimpleCentered.js +2 -2
  37. package/dist/BlogsSectionWithFilters.cjs +1 -1
  38. package/dist/BlogsSectionWithFilters.js +4 -4
  39. package/dist/BrandHitsSection.cjs +1 -1
  40. package/dist/BrandHitsSection.js +1 -1
  41. package/dist/Breadcrumbs.cjs +1 -1
  42. package/dist/Breadcrumbs.js +1 -1
  43. package/dist/Button.cjs +1 -1
  44. package/dist/Button.js +1 -1
  45. package/dist/ButtonGroup.cjs +1 -1
  46. package/dist/ButtonGroup.js +1 -1
  47. package/dist/CalorieCalculatorSection.cjs +1 -1
  48. package/dist/CalorieCalculatorSection.js +1 -1
  49. package/dist/CheckBoxInput.cjs +1 -1
  50. package/dist/CheckBoxInput.js +1 -1
  51. package/dist/Chip.cjs +1 -1
  52. package/dist/Chip.js +1 -1
  53. package/dist/ColorInput.cjs +1 -1
  54. package/dist/ColorInput.js +1 -1
  55. package/dist/ConfirmationForm.cjs +1 -1
  56. package/dist/ConfirmationForm.js +1 -1
  57. package/dist/CustomLoanMapSection.cjs +1 -1
  58. package/dist/CustomLoanMapSection.js +1 -1
  59. package/dist/{CustomStyles-9CHBrzIM.js → CustomStyles-DYULk9y7.js} +1 -1
  60. package/dist/{CustomStyles-BoYYyJVV.cjs → CustomStyles-Uqkz9jDo.cjs} +1 -1
  61. package/dist/DateInput.cjs +1 -1
  62. package/dist/DateInput.js +1 -1
  63. package/dist/DecimalInput.cjs +1 -1
  64. package/dist/DecimalInput.js +1 -1
  65. package/dist/DecimalInputV2.cjs +1 -1
  66. package/dist/DecimalInputV2.js +1 -1
  67. package/dist/DetailedProductsSection.cjs +1 -1
  68. package/dist/DetailedProductsSection.js +4 -4
  69. package/dist/DetailsView.cjs +1 -1
  70. package/dist/DetailsView.js +1 -1
  71. package/dist/DoubleRangeSlider.cjs +1 -1
  72. package/dist/DoubleRangeSlider.js +1 -1
  73. package/dist/DragAndDropFile.cjs +1 -1
  74. package/dist/DragAndDropFile.js +1 -1
  75. package/dist/DragDropFiles.cjs +1 -1
  76. package/dist/DragDropFiles.js +1 -1
  77. package/dist/Drawer.cjs +1 -1
  78. package/dist/Drawer.js +1 -1
  79. package/dist/Dropdown.cjs +1 -1
  80. package/dist/Dropdown.js +2 -2
  81. package/dist/DropdownItem.cjs +1 -1
  82. package/dist/DropdownItem.js +1 -1
  83. package/dist/DropdownLookup.cjs +1 -1
  84. package/dist/DropdownLookup.js +1 -1
  85. package/dist/DropdownMenu.cjs +1 -1
  86. package/dist/DropdownMenu.js +1 -1
  87. package/dist/EditableTable.cjs +1 -1
  88. package/dist/EditableTable.js +1 -1
  89. package/dist/FeedbackSection.cjs +1 -1
  90. package/dist/FeedbackSection.js +1 -1
  91. package/dist/FieldOfInterestsMasonrySection.cjs +1 -1
  92. package/dist/FieldOfInterestsMasonrySection.js +1 -1
  93. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  94. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +2 -2
  95. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +1 -1
  96. package/dist/FieldOfInterestsWithTagsCardsSection.js +1 -1
  97. package/dist/FileInput.cjs +1 -1
  98. package/dist/FileInput.js +1 -1
  99. package/dist/FlexGridItem.cjs +1 -1
  100. package/dist/FlexGridItem.js +1 -1
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +1 -1
  103. package/dist/FormView.cjs +1 -1
  104. package/dist/FormView.js +1 -1
  105. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  106. package/dist/GeneralWithTagsCardsSection.js +1 -1
  107. package/dist/GiftCardsSection.cjs +1 -1
  108. package/dist/GiftCardsSection.js +2 -2
  109. package/dist/Icon.cjs +1 -1
  110. package/dist/Icon.js +1 -1
  111. package/dist/IconButton.cjs +1 -1
  112. package/dist/IconButton.js +1 -1
  113. package/dist/Kanban.cjs +1 -1
  114. package/dist/Kanban.js +1 -1
  115. package/dist/KanbanActionsToolbar.cjs +1 -1
  116. package/dist/KanbanActionsToolbar.js +1 -1
  117. package/dist/KanbanView.cjs +1 -1
  118. package/dist/KanbanView.js +1 -1
  119. package/dist/Link.cjs +1 -1
  120. package/dist/Link.js +1 -1
  121. package/dist/LoanCalculatorSection.cjs +1 -1
  122. package/dist/LoanCalculatorSection.js +1 -1
  123. package/dist/LocationFinderSection.cjs +1 -1
  124. package/dist/LocationFinderSection.js +1 -1
  125. package/dist/LocationSearchSection.cjs +1 -1
  126. package/dist/LocationSearchSection.js +1 -1
  127. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  128. package/dist/MasonryGeneralCardsSection.js +1 -1
  129. package/dist/MenuItem.cjs +1 -1
  130. package/dist/MenuItem.js +1 -1
  131. package/dist/Modal.cjs +1 -1
  132. package/dist/Modal.js +1 -1
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +1 -1
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +1 -1
  137. package/dist/NestedDropdownItem.cjs +1 -1
  138. package/dist/NestedDropdownItem.js +1 -1
  139. package/dist/NestedMenuItem.cjs +1 -1
  140. package/dist/NestedMenuItem.js +1 -1
  141. package/dist/NotificationContainer.cjs +1 -1
  142. package/dist/NotificationContainer.js +1 -1
  143. package/dist/NotificationMessage.cjs +1 -1
  144. package/dist/NotificationMessage.js +1 -1
  145. package/dist/NumberInput.cjs +1 -1
  146. package/dist/NumberInput.js +1 -1
  147. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  148. package/dist/OverlayGeneralCardsSection.js +2 -2
  149. package/dist/PasswordInput.cjs +1 -1
  150. package/dist/PasswordInput.js +1 -1
  151. package/dist/PopoverContent.cjs +1 -1
  152. package/dist/PopoverContent.js +1 -1
  153. package/dist/ProductsWithBannerSection.cjs +1 -1
  154. package/dist/ProductsWithBannerSection.js +3 -3
  155. package/dist/ProgressBar.cjs +1 -1
  156. package/dist/ProgressBar.js +1 -1
  157. package/dist/QuattroCardsSection.cjs +1 -1
  158. package/dist/QuattroCardsSection.js +1 -1
  159. package/dist/QuizSection.cjs +1 -1
  160. package/dist/QuizSection.js +1 -1
  161. package/dist/RadioInput.cjs +1 -1
  162. package/dist/RadioInput.js +1 -1
  163. package/dist/RangeSlider.cjs +1 -1
  164. package/dist/RangeSlider.js +1 -1
  165. package/dist/ReviewsSection.cjs +1 -1
  166. package/dist/ReviewsSection.js +2 -2
  167. package/dist/SalesCampaignsSection.cjs +91 -164
  168. package/dist/SalesCampaignsSection.js +413 -657
  169. package/dist/Separator.cjs +1 -1
  170. package/dist/Separator.js +1 -1
  171. package/dist/ShopCardsSection.cjs +1 -1
  172. package/dist/ShopCardsSection.js +2 -2
  173. package/dist/Sidebar.cjs +1 -1
  174. package/dist/Sidebar.js +1 -1
  175. package/dist/SimpleCategoriesSection.cjs +1 -1
  176. package/dist/SimpleCategoriesSection.js +3 -3
  177. package/dist/SimpleProductsSection.cjs +1 -1
  178. package/dist/SimpleProductsSection.js +2 -2
  179. package/dist/Spinner.cjs +1 -1
  180. package/dist/Spinner.js +1 -1
  181. package/dist/Surface.cjs +1 -1
  182. package/dist/Surface.js +1 -1
  183. package/dist/SwipeableDrawer.cjs +1 -1
  184. package/dist/SwipeableDrawer.js +1 -1
  185. package/dist/TabItem.cjs +1 -1
  186. package/dist/TabItem.js +1 -1
  187. package/dist/Table.cjs +1 -1
  188. package/dist/Table.js +67 -67
  189. package/dist/TableView.cjs +1 -1
  190. package/dist/TableView.js +1 -1
  191. package/dist/TextAreaInput.cjs +1 -1
  192. package/dist/TextAreaInput.js +1 -1
  193. package/dist/TextInput.cjs +1 -1
  194. package/dist/TextInput.js +1 -1
  195. package/dist/ThemeProvider.cjs +1 -1
  196. package/dist/ThemeProvider.js +1 -1
  197. package/dist/TimeInput.cjs +1 -1
  198. package/dist/TimeInput.js +1 -1
  199. package/dist/Toggle.cjs +1 -1
  200. package/dist/Toggle.js +1 -1
  201. package/dist/TreeMenuSeparator.cjs +1 -1
  202. package/dist/TreeMenuSeparator.js +1 -1
  203. package/dist/UploadedFile.cjs +1 -1
  204. package/dist/UploadedFile.js +1 -1
  205. package/dist/UrgentSaleProductsSection.cjs +1 -1
  206. package/dist/UrgentSaleProductsSection.js +1 -1
  207. package/dist/index-BPgWhA1t.js +384 -0
  208. package/dist/{index-XrPpEvxt.cjs → index-BRgZcjpI.cjs} +1 -1
  209. package/dist/{index-DyMv0g-E.cjs → index-C4gGt12B.cjs} +1 -1
  210. package/dist/index-C_T-BQ5p.cjs +98 -0
  211. package/dist/{index-yrKiIPH4.js → index-Cru8Sd2q.js} +2 -2
  212. package/dist/{index-DQyZFR-C.js → index-D86vS9UF.js} +1 -1
  213. package/dist/{index-DkzN10w_.cjs → index-DMysapsB.cjs} +1 -1
  214. package/dist/{index-C1a0CtEE.cjs → index-DZDz9qZP.cjs} +1 -1
  215. package/dist/{index-DtlD7gBK.js → index-Dcw6ecHw.js} +2 -2
  216. package/dist/{index-4fcFA8kU.js → index-Kx8irvHH.js} +1 -1
  217. package/dist/index.cjs +1 -1
  218. package/dist/index.js +1 -1
  219. package/dist/{skeleton-DdxUz868.cjs → skeleton-BcaMeKFQ.cjs} +1 -1
  220. package/dist/{skeleton-DLOaT8ip.js → skeleton-BrUEdt6Z.js} +2 -2
  221. package/dist/{skeleton-C2HxO51q.cjs → skeleton-DwZzdFei.cjs} +1 -1
  222. package/dist/{skeleton-BSnQLxpv.js → skeleton-TrselJrj.js} +1 -1
  223. package/dist/{style-Ce-JyTaX.cjs → style-Bjk6yHcP.cjs} +1 -1
  224. package/dist/{style-DU0BlP5D.js → style-LEmcTrN9.js} +1 -1
  225. package/dist/{suspense-categories-card-simple-CkULM0Bi.cjs → suspense-categories-card-simple-B2swGa6t.cjs} +1 -1
  226. package/dist/{suspense-categories-card-simple-BKWKpuwr.js → suspense-categories-card-simple-BCn3U1cz.js} +1 -1
  227. package/dist/{suspense-large-ZUb9b6MG.cjs → suspense-large-DMhn-lIG.cjs} +1 -1
  228. package/dist/{suspense-large-C-YSgzDe.js → suspense-large-DgzTM-qh.js} +1 -1
  229. package/dist/{suspense-product-card-detailed-Bez9UFMR.js → suspense-product-card-detailed-BDkww9pS.js} +2 -2
  230. package/dist/{suspense-product-card-detailed-Yjo62f1v.cjs → suspense-product-card-detailed-BNOhu3Z4.cjs} +1 -1
  231. package/dist/{suspense-product-card-simple-CVbhvQWo.cjs → suspense-product-card-simple-BxDjW7gR.cjs} +1 -1
  232. package/dist/{suspense-product-card-simple-DF6bMLDk.js → suspense-product-card-simple-CQ1qPZOa.js} +1 -1
  233. package/dist/utils-BWzf4vLl.cjs +51 -0
  234. package/dist/{utils-WHYrEnYF.js → utils-BXCGNjIy.js} +52 -65
  235. package/package.json +1 -1
  236. package/dist/index-BKeVVABC.js +0 -345
  237. package/dist/index-CHDRU86t.cjs +0 -4
  238. package/dist/index-Ce6e4efi.cjs +0 -95
  239. package/dist/index-Dhf4jQmS.js +0 -47
  240. package/dist/utils-BOtq2mcF.cjs +0 -51
@@ -1,21 +1,10 @@
1
1
  import { jsxs as W, Fragment as m } from "react/jsx-runtime";
2
2
  import { useState as D, useEffect as w, cloneElement as C, isValidElement as v, Children as h } from "react";
3
- var N = function() {
4
- };
5
- function $(e) {
6
- for (var t = [], a = 1; a < arguments.length; a++)
7
- t[a - 1] = arguments[a];
8
- e && e.addEventListener && e.addEventListener.apply(e, t);
9
- }
10
- function K(e) {
11
- for (var t = [], a = 1; a < arguments.length; a++)
12
- t[a - 1] = arguments[a];
13
- e && e.removeEventListener && e.removeEventListener.apply(e, t);
14
- }
15
- var B = typeof window < "u", E = function(e, t) {
3
+ var $ = function() {
4
+ }, B = typeof window < "u", A = function(e, t) {
16
5
  return B ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
17
6
  }, x = function(e, t) {
18
- var a = D(E(e)), o = a[0], n = a[1];
7
+ var a = D(A(e)), o = a[0], n = a[1];
19
8
  return w(function() {
20
9
  var r = !0, d = window.matchMedia(e), b = function() {
21
10
  r && n(!!d.matches);
@@ -3455,7 +3444,7 @@ const k = {
3455
3444
  tooltip: 1500,
3456
3445
  popover: 1299
3457
3446
  }
3458
- }, A = {
3447
+ }, E = {
3459
3448
  name: "Lanaco Dark",
3460
3449
  class: "lnc-dark",
3461
3450
  colorContext: {
@@ -10242,7 +10231,7 @@ const k = {
10242
10231
  tooltip: 1500,
10243
10232
  popover: 1299
10244
10233
  }
10245
- }, P = [k, A, T], U = {
10234
+ }, L = [k, E, T], K = {
10246
10235
  SUCCESS: k.palette.green[500],
10247
10236
  ERROR: k.palette.red[500],
10248
10237
  WARNING: k.palette.yellow[500],
@@ -10271,7 +10260,7 @@ const k = {
10271
10260
  type: "XL",
10272
10261
  mediaQuery: "(min-width: 1281px)"
10273
10262
  }
10274
- }, G = (e, t) => {
10263
+ }, P = (e, t) => {
10275
10264
  var a = S(e, t);
10276
10265
  return a && v(a) ? { current: a } : { current: null };
10277
10266
  }, S = (e = "", t) => {
@@ -10285,7 +10274,7 @@ const k = {
10285
10274
  if (a) return a;
10286
10275
  }
10287
10276
  return null;
10288
- }, Q = (e, t, a) => {
10277
+ }, U = (e, t, a) => {
10289
10278
  var o = R(e, t, a);
10290
10279
  return o && v(o) ? { current: o } : { current: null };
10291
10280
  }, R = (e = "", t, a) => {
@@ -10299,10 +10288,10 @@ const k = {
10299
10288
  if (o) return o;
10300
10289
  }
10301
10290
  return null;
10302
- }, V = () => {
10291
+ }, _ = () => {
10303
10292
  const e = x(g.XS.mediaQuery), t = x(g.S.mediaQuery), a = x(g.M.mediaQuery), o = x(g.L.mediaQuery), n = x(g.XL.mediaQuery);
10304
10293
  return e ? g.XS.type : t ? g.S.type : a ? g.M.type : o ? g.L.type : n ? g.XL.type : g.M.type;
10305
- }, X = (e, t, a = null, o = !1) => e.current !== null ? (t.children = a !== null ? o == !0 ? /* @__PURE__ */ W(m, { children: [
10294
+ }, G = (e, t, a = null, o = !1) => e.current !== null ? (t.children = a !== null ? o == !0 ? /* @__PURE__ */ W(m, { children: [
10306
10295
  e.current.props.children,
10307
10296
  a
10308
10297
  ] }) : a : e.current.props.children, C(e.current, t)) : null, p = (e, t) => {
@@ -10314,31 +10303,31 @@ const k = {
10314
10303
  a: t
10315
10304
  } : null;
10316
10305
  return o ? `rgba(${o.r}, ${o.g}, ${o.b}, ${o.a})` : null;
10317
- }, Y = (e, t, a, o, n, r) => {
10306
+ }, Q = (e, t, a, o, n, r) => {
10318
10307
  var y, f;
10319
10308
  const d = e.colorContext[a], b = e.components[t].default, c = (f = (y = e.components[t]) == null ? void 0 : y[d]) == null ? void 0 : f[o], u = c == null ? void 0 : c[n], i = b[o][n], l = c == null ? void 0 : c[r], s = b[o][r], O = u || u == 0 ? e.palette[d][u] : e.palette[b.palette][i], F = l || l == 0 ? e.palette.opacity[l] : e.palette.opacity[s];
10320
10309
  return p(O, F ?? "100%");
10321
- }, _ = (e, t, a, o, n) => {
10310
+ }, V = (e, t, a, o, n) => {
10322
10311
  var i, l;
10323
10312
  const r = e.colorContext[a], d = e.components[t].default, b = (l = (i = e.components[t]) == null ? void 0 : i[r]) == null ? void 0 : l[o], c = b == null ? void 0 : b[n], u = d[o][n];
10324
10313
  return c || c == 0 ? c : u;
10325
- }, Z = (e, t) => e.sizes[t], q = (e, t, a, o) => `
10314
+ }, X = (e, t) => e.sizes[t], Y = (e, t, a, o) => `
10326
10315
  font-weight: ${e.components[t].default[o].fontWeight};
10327
10316
  font-size: ${e.typography.component[a].fontSize};
10328
10317
  line-height: ${e.typography.component[a].lineHeight};
10329
- `, J = (e, t) => e.borderRadius[t], j = (e, t) => e.boxShadow[t], e0 = (e, t) => {
10318
+ `, Z = (e, t) => e.borderRadius[t], q = (e, t) => e.boxShadow[t], j = (e, t) => {
10330
10319
  const a = e.colorContext[e.palette.outline.context], o = e.palette[a][e.palette.outline.weight];
10331
10320
  return `
10332
10321
  outline: ${e.palette.outline.width} ${e.palette.outline.style} ${o};
10333
10322
  ${`outline-offset: ${e.palette.outline.offset}`};
10334
10323
  `;
10335
- }, t0 = (e) => {
10324
+ }, J = (e) => {
10336
10325
  const t = e.palette.disabled.color, a = e.palette[t][e.palette.disabled.background], o = e.palette[t][e.palette.disabled.text], n = e.palette.opacity[e.palette.disabled.opacity];
10337
10326
  return `
10338
10327
  background-color: ${p(a, n ?? "100%")};
10339
10328
  color: ${o};
10340
10329
  `;
10341
- }, a0 = (e) => {
10330
+ }, e0 = (e) => {
10342
10331
  const t = e.palette.disabled.color, a = e.palette[t][e.palette.disabled.background], o = e.palette.opacity[e.palette.disabled.opacity];
10343
10332
  return `
10344
10333
  background-color: ${p(a, o ?? "100%")};
@@ -10347,7 +10336,7 @@ const k = {
10347
10336
  white-space: nowrap;
10348
10337
  overflow: hidden;
10349
10338
  text-overflow: ellipsis;
10350
- `, o0 = (e) => e == null || e == 0 || e == 1 ? z() : `
10339
+ `, t0 = (e) => e == null || e == 0 || e == 1 ? z() : `
10351
10340
  overflow: hidden;
10352
10341
  text-overflow: ellipsis;
10353
10342
  overflow-wrap: anywhere;
@@ -10361,7 +10350,7 @@ const k = {
10361
10350
  -webkit-line-clamp: ${e};
10362
10351
  -webkit-box-orient: vertical;
10363
10352
  }
10364
- `, n0 = (e = "-45deg", t = "500% 500%", a = "#b3b9c4", o = "#e5e9f1") => `
10353
+ `, a0 = (e = "-45deg", t = "500% 500%", a = "#b3b9c4", o = "#e5e9f1") => `
10365
10354
  @keyframes gradient {
10366
10355
  0% {
10367
10356
  background-position: 0% 0%;
@@ -10381,7 +10370,7 @@ const k = {
10381
10370
  background: linear-gradient(${e}, ${a}, ${o});
10382
10371
  background-size: ${t};
10383
10372
  animation: gradient 1s linear infinite alternate;
10384
- `, r0 = (e) => e != null && e !== "", d0 = (e) => e != null, c0 = (e) => Number.isInteger(Number(e)) ? new Intl.NumberFormat("de-DE").format(e) : new Intl.NumberFormat("de-DE", {
10373
+ `, o0 = (e) => e != null && e !== "", n0 = (e) => e != null, r0 = (e) => Number.isInteger(Number(e)) ? new Intl.NumberFormat("de-DE").format(e) : new Intl.NumberFormat("de-DE", {
10385
10374
  minimumFractionDigits: 2,
10386
10375
  maximumFractionDigits: 2
10387
10376
  }).format(e), H = {
@@ -10425,7 +10414,7 @@ const k = {
10425
10414
  GHS: "₵",
10426
10415
  KES: "KSh",
10427
10416
  TZS: "TSh"
10428
- }, b0 = (e) => H[e] || "";
10417
+ }, d0 = (e) => H[e] || "";
10429
10418
  function I(e, t = { carbs: 0.5, protein: 0.25, fat: 0.25 }) {
10430
10419
  const a = t.carbs + t.protein + t.fat;
10431
10420
  if (Math.abs(a - 1) > 0.01)
@@ -10437,7 +10426,7 @@ function I(e, t = { carbs: 0.5, protein: 0.25, fat: 0.25 }) {
10437
10426
  fat: Math.round(e * t.fat / o.fat)
10438
10427
  };
10439
10428
  }
10440
- const g0 = ({
10429
+ const c0 = ({
10441
10430
  gender: e,
10442
10431
  age: t,
10443
10432
  heightCm: a,
@@ -10484,48 +10473,46 @@ const g0 = ({
10484
10473
  calories: Math.round(i),
10485
10474
  ...l
10486
10475
  };
10487
- }, i0 = (e) => {
10476
+ }, b0 = (e) => {
10488
10477
  const t = String(Math.floor(e / 60)).padStart(2, "0"), a = String(e % 60).padStart(2, "0");
10489
10478
  return `${t}:${a}`;
10490
- }, u0 = (e, ...t) => e.replace(/{(\d+)}/g, function(a, o) {
10479
+ }, g0 = (e, ...t) => e.replace(/{(\d+)}/g, function(a, o) {
10491
10480
  return typeof t[o] < "u" ? t[o] : a;
10492
- }), l0 = (e) => (e = e || 0, e > 999 ? Math.round(e / 1e3).toLocaleString() + "K" : e.toLocaleString()), k0 = (e) => {
10481
+ }), i0 = (e) => (e = e || 0, e > 999 ? Math.round(e / 1e3).toLocaleString() + "K" : e.toLocaleString()), u0 = (e) => {
10493
10482
  const t = new Date(e);
10494
10483
  let a = t.getDate(), o = t.getMonth() + 1, n = t.getFullYear();
10495
10484
  return `${a}. ${o}. ${n}`;
10496
10485
  };
10497
10486
  export {
10498
- $ as A,
10499
- K as B,
10500
- Q as C,
10501
- N as D,
10502
- U as E,
10503
- g as F,
10504
- b0 as G,
10505
- J as a,
10506
- Y as b,
10507
- q as c,
10508
- Z as d,
10509
- e0 as e,
10510
- a0 as f,
10511
- _ as g,
10512
- t0 as h,
10513
- G as i,
10514
- j,
10515
- r0 as k,
10516
- d0 as l,
10487
+ B as A,
10488
+ $ as B,
10489
+ K as C,
10490
+ g as D,
10491
+ d0 as G,
10492
+ Z as a,
10493
+ Q as b,
10494
+ Y as c,
10495
+ X as d,
10496
+ j as e,
10497
+ e0 as f,
10498
+ V as g,
10499
+ J as h,
10500
+ P as i,
10501
+ q as j,
10502
+ o0 as k,
10503
+ n0 as l,
10517
10504
  p as m,
10518
- P as n,
10519
- n0 as o,
10520
- o0 as p,
10521
- c0 as q,
10522
- X as r,
10523
- k0 as s,
10505
+ L as n,
10506
+ a0 as o,
10507
+ t0 as p,
10508
+ r0 as q,
10509
+ G as r,
10510
+ u0 as s,
10524
10511
  z as t,
10525
- V as u,
10526
- u0 as v,
10527
- l0 as w,
10528
- i0 as x,
10529
- g0 as y,
10530
- B as z
10512
+ _ as u,
10513
+ g0 as v,
10514
+ i0 as w,
10515
+ b0 as x,
10516
+ c0 as y,
10517
+ U as z
10531
10518
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.98",
3
+ "version": "4.0.100",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -1,345 +0,0 @@
1
- import { jsx as i, jsxs as d, Fragment as z } from "react/jsx-runtime";
2
- import _, { useState as w, useRef as F, useEffect as j, useImperativeHandle as P, forwardRef as q } from "react";
3
- import { P as r } from "./index-S5Cd7WrG.js";
4
- import U from "./FlexBox.js";
5
- import W from "./IconButton.js";
6
- import { useTheme as X } from "./ThemeProvider.js";
7
- import { s as Z } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
- import { M as C } from "./consts-BuFChS64.js";
9
- import { u as J } from "./useDetectMobile-Bkvj0VMa.js";
10
- import { I as H } from "./index-Dhf4jQmS.js";
11
- import V from "./Button.js";
12
- import Q from "./Icon.js";
13
- import { l as Y } from "./utils-WHYrEnYF.js";
14
- const ee = Z.div`
15
- position: relative;
16
- padding: ${(e) => e.padding};
17
-
18
- & button {
19
- white-space: nowrap;
20
- }
21
-
22
- & .badge-button {
23
- ${(e) => e.showTimesBtn === !0 && "padding-left: 0.5rem; padding-right: 0.5rem;"}
24
- }
25
-
26
- & .gradient {
27
- position: absolute;
28
- top: 50%;
29
- transform: translate(0, -50%);
30
- z-index: 4;
31
- transition: ${"0.3s"};
32
- right: ${(e) => e.noArrows !== !0 ? "6rem" : "0"};
33
- width: 2rem;
34
- background: #fff;
35
- height: 100%;
36
- -webkit-mask-image: linear-gradient(to left, black 10%, transparent 50%);
37
- mask-image: linear-gradient(to left, black 10%, transparent 50%);
38
- }
39
-
40
- & .scrollable-container {
41
- max-width: -webkit-fill-available;
42
- max-width: -moz-available; /* WebKit-based browsers will ignore this. */
43
- max-width: fill-available;
44
-
45
- ${(e) => e.rightAlignArrows === !0 && e.noArrows !== !0 && "margin-right: 6rem"};
46
- scroll-behavior: smooth;
47
- overflow: hidden;
48
- -webkit-overflow-scrolling: touch;
49
- ::-webkit-scrollbar {
50
- -webkit-appearance: none;
51
- }
52
- -ms-overflow-style: none;
53
- /* Internet Explorer 10+ */
54
- scrollbar-width: none;
55
- /* Firefox */
56
-
57
- &::-webkit-scrollbar {
58
- display: none;
59
- /* Safari and Chrome */
60
- }
61
-
62
- @media (max-width: ${C + "px"}) {
63
- margin-right: 0;
64
- }
65
- }
66
- & .scroll-arrow-right,
67
- & .scroll-arrow-left {
68
- position: absolute;
69
- top: 50%;
70
- transform: translate(0, -50%);
71
- display: flex;
72
- justify-content: center;
73
- align-items: center;
74
- cursor: pointer;
75
-
76
- visibility: ${(e) => e.arrowsVisibleOnHover === !1 && e.hasOverflow ? "visible" : "hidden"};
77
- z-index: 4;
78
- transition: ${"0.3s"};
79
- }
80
- & .scroll-arrow-right {
81
- ${(e) => e.rightAlignArrows === !0 ? "right: 0" : "right: 0.7rem"};
82
- }
83
- & .scroll-arrow-left {
84
- ${(e) => e.rightAlignArrows === !0 ? "right: 2.625rem" : "left: 0.7rem"};
85
- }
86
- & .scrollable-container:hover > .scroll-arrow-left,
87
- & .scrollable-container:hover > .scroll-arrow-right {
88
- visibility: ${(e) => e.hasOverflow ? "visible" : "hidden"};
89
- }
90
-
91
- @media (max-width: ${C + "px"}) {
92
- & .scrollable-container {
93
- overflow: auto;
94
- }
95
- & .scroll-arrow-left,
96
- & .scroll-arrow-right {
97
- display: none;
98
- }
99
-
100
- & .gradient {
101
- right: 0;
102
- }
103
-
104
- & .scrollable-container button:nth-of-type(3) {
105
- ${(e) => e.noMargin !== !0 && "margin-left: 1rem"};
106
- }
107
- }
108
- `, L = _.forwardRef(
109
- ({
110
- columnGap: e = "2rem",
111
- rowGap: v = "1.25rem",
112
- scrollBySize: f = 300,
113
- wrapForMobile: y = !1,
114
- wrap: a = !1,
115
- children: u,
116
- methodsRef: b,
117
- arrowsVisibleOnHover: k = !0,
118
- rightAlignArrows: x = !1,
119
- padding: m = "0",
120
- showTimesBtn: h,
121
- noArrows: n,
122
- noGradient: S = !1,
123
- hideDisabledArrows: c = !1,
124
- noMargin: g = !1,
125
- ...N
126
- }, T) => {
127
- const $ = J(), { theme: l } = X(), [t, A] = w(!1), [p, B] = w(!1), [M, I] = w(!0), o = F(), R = () => {
128
- var s;
129
- (s = o.current) == null || s.scrollBy(f, 0);
130
- }, K = () => {
131
- var s;
132
- (s = o.current) == null || s.scrollBy(-f, 0);
133
- }, [E, D] = w(!1);
134
- j(() => {
135
- var s, O;
136
- D(
137
- ((s = o == null ? void 0 : o.current) == null ? void 0 : s.scrollWidth) > ((O = o == null ? void 0 : o.current) == null ? void 0 : O.clientWidth)
138
- );
139
- }, [u]), P(b, () => ({
140
- scrollToEnd() {
141
- G();
142
- },
143
- scrollLeft() {
144
- K();
145
- },
146
- scrollRight() {
147
- R();
148
- }
149
- }));
150
- const G = () => {
151
- o.current.scrollLeft = o.current.scrollWidth;
152
- };
153
- return /* @__PURE__ */ i(
154
- ee,
155
- {
156
- ref: T,
157
- arrowsVisibleOnHover: k,
158
- hasOverflow: E,
159
- noArrows: n,
160
- padding: m,
161
- rightAlignArrows: x,
162
- showTimesBtn: h,
163
- theme: l,
164
- noMargin: g,
165
- ...N,
166
- children: /* @__PURE__ */ d(
167
- U,
168
- {
169
- ref: o,
170
- className: "scrollable-container",
171
- columnGap: e,
172
- rowGap: v,
173
- wrap: a || y && $ ? "Wrap" : "NoWrap",
174
- children: [
175
- n !== !0 && /* @__PURE__ */ d(z, { children: [
176
- !(c === !0 && p === !0) && /* @__PURE__ */ i(
177
- W,
178
- {
179
- borderRadius: "curved",
180
- btnType: "tinted",
181
- className: "scroll-arrow-left",
182
- color: "neutral",
183
- disabled: p,
184
- icon: "angle-left",
185
- onClick: K
186
- }
187
- ),
188
- !(c === !0 && t === !0) && /* @__PURE__ */ i(
189
- W,
190
- {
191
- borderRadius: "curved",
192
- btnType: "tinted",
193
- className: "scroll-arrow-right",
194
- color: "neutral",
195
- disabled: t,
196
- icon: "angle-right",
197
- onClick: R
198
- }
199
- )
200
- ] }),
201
- /* @__PURE__ */ i(
202
- H,
203
- {
204
- isHorizontal: !0,
205
- onIsNotVisible: () => {
206
- p === !0 && B(!1);
207
- },
208
- onIsVisible: () => {
209
- p === !1 && B(!0);
210
- }
211
- }
212
- ),
213
- u,
214
- /* @__PURE__ */ i(
215
- H,
216
- {
217
- className: "right-scroller",
218
- isHorizontal: !0,
219
- onIsNotVisible: () => {
220
- t === !0 && A(!1), I(!0);
221
- },
222
- onIsVisible: () => {
223
- t === !1 && A(!0), I(!1);
224
- }
225
- }
226
- ),
227
- M && E && S !== !0 && /* @__PURE__ */ i("div", { className: "gradient" })
228
- ]
229
- }
230
- )
231
- }
232
- );
233
- }
234
- );
235
- L.propTypes = {
236
- title: r.string,
237
- rowGap: r.string,
238
- columnGap: r.string,
239
- scrollBySize: r.number,
240
- wrapForMobile: r.bool,
241
- wrap: r.bool,
242
- methodsRef: r.any,
243
- arrowsVisibleOnHover: r.bool,
244
- rightAlignArrows: r.bool,
245
- padding: r.string
246
- };
247
- const re = q((e, v) => {
248
- const {
249
- allButton: f = !0,
250
- items: y = [],
251
- selectedIds: a = [],
252
- onSelect: u = () => {
253
- },
254
- onRemove: b = () => {
255
- },
256
- onSelectAll: k = () => {
257
- },
258
- className: x,
259
- showTimesBtn: m = !1,
260
- labelKey: h = "label",
261
- valueKey: n = "value",
262
- codeKey: S = "code",
263
- uniqueKey: c,
264
- typeKey: g,
265
- productsToolbarName: N = "All",
266
- ...T
267
- } = e, $ = (l, t) => {
268
- a != null && a.includes(t) ? b(l, t) : u(l, t);
269
- };
270
- return /* @__PURE__ */ d(
271
- L,
272
- {
273
- ref: v,
274
- arrowsVisibleOnHover: !1,
275
- className: x,
276
- columnGap: "0.75rem",
277
- padding: "0.25rem 0",
278
- rightAlignArrows: !0,
279
- showTimesBtn: m,
280
- ...T,
281
- children: [
282
- f && /* @__PURE__ */ i(
283
- V,
284
- {
285
- borderRadius: "curved",
286
- btnType: a.length === 0 ? "filled" : "tinted",
287
- className: "badge-button",
288
- color: "neutral",
289
- onClick: k,
290
- children: N
291
- }
292
- ),
293
- y.map((l, t) => /* @__PURE__ */ d(
294
- V,
295
- {
296
- borderRadius: "curved",
297
- btnType: a.includes(l.uuid) ? "filled" : "tinted",
298
- className: "badge-button",
299
- color: "neutral",
300
- onClick: () => $(l, l[n]),
301
- children: [
302
- Y(l == null ? void 0 : l.icon) && /* @__PURE__ */ d(z, { children: [
303
- /* @__PURE__ */ i("i", { className: l == null ? void 0 : l.icon }),
304
- " "
305
- ] }),
306
- l[h],
307
- m === !0 && /* @__PURE__ */ i(
308
- Q,
309
- {
310
- className: "times-btn",
311
- icon: "times",
312
- sizeInUnits: "0.75rem",
313
- onClick: () => b(
314
- l[n],
315
- l[h],
316
- l[S],
317
- c ? l[c] : null,
318
- g ? l[g] : null
319
- )
320
- }
321
- )
322
- ]
323
- },
324
- t
325
- ))
326
- ]
327
- }
328
- );
329
- });
330
- re.propTypes = {
331
- allButton: r.bool,
332
- items: r.array,
333
- selectedIds: r.array,
334
- onSelect: r.func,
335
- onRemove: r.func,
336
- onSelectAll: r.func,
337
- className: r.string,
338
- showTimesBtn: r.bool,
339
- valuKey: r.string,
340
- labelKey: r.string,
341
- codeKey: r.string
342
- };
343
- export {
344
- re as S
345
- };
@@ -1,4 +0,0 @@
1
- "use strict";const d=require("react/jsx-runtime"),t=require("react"),l=require("./index-BPVoEhTF.cjs"),a=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./useUpdateEffect-BtMgpgIV.cjs"),m=s=>{const[i,n]=t.useState(!1),e=t.useMemo(()=>new IntersectionObserver(([r])=>n(r.isIntersecting)),[]);return t.useEffect(()=>(e.observe(s.current),()=>{e.disconnect()}),[s,e]),i},I=a.styled.div`
2
- min-height: 1px;
3
- ${s=>s.isHorizontal===!0?"min-width: 1px; width: 1px;":"width: 100%;"}
4
- `,u=t.forwardRef((s,i)=>{const{onIsVisible:n=()=>{},onIsNotVisible:e,isHorizontal:r=!1,className:f=""}=s,o=t.useRef(null),c=m(o);return p.useUpdateEffect(()=>{c?n():e==null||e()},[c]),d.jsx(I,{ref:o,className:`scroller-element ${f}`,isHorizontal:r})});u.propTypes={onIsVisible:l.PropTypes.func,isHorizontal:l.PropTypes.bool};exports.InfiniteScrollEndElement=u;
@@ -1,95 +0,0 @@
1
- "use strict";const l=require("react/jsx-runtime"),n=require("react"),r=require("./index-BPVoEhTF.cjs"),V=require("./FlexBox.cjs"),R=require("./IconButton.cjs"),_=require("./ThemeProvider.cjs"),z=require("./emotion-styled.browser.esm-BtEseadx.cjs"),E=require("./consts-goSZX3xP.cjs"),D=require("./useDetectMobile-zkbzoOGV.cjs"),K=require("./index-CHDRU86t.cjs"),O=require("./Button.cjs"),F=require("./Icon.cjs"),G=require("./utils-BOtq2mcF.cjs"),X=z.styled.div`
2
- position: relative;
3
- padding: ${e=>e.padding};
4
-
5
- & button {
6
- white-space: nowrap;
7
- }
8
-
9
- & .badge-button {
10
- ${e=>e.showTimesBtn===!0&&"padding-left: 0.5rem; padding-right: 0.5rem;"}
11
- }
12
-
13
- & .gradient {
14
- position: absolute;
15
- top: 50%;
16
- transform: translate(0, -50%);
17
- z-index: 4;
18
- transition: ${"0.3s"};
19
- right: ${e=>e.noArrows!==!0?"6rem":"0"};
20
- width: 2rem;
21
- background: #fff;
22
- height: 100%;
23
- -webkit-mask-image: linear-gradient(to left, black 10%, transparent 50%);
24
- mask-image: linear-gradient(to left, black 10%, transparent 50%);
25
- }
26
-
27
- & .scrollable-container {
28
- max-width: -webkit-fill-available;
29
- max-width: -moz-available; /* WebKit-based browsers will ignore this. */
30
- max-width: fill-available;
31
-
32
- ${e=>e.rightAlignArrows===!0&&e.noArrows!==!0&&"margin-right: 6rem"};
33
- scroll-behavior: smooth;
34
- overflow: hidden;
35
- -webkit-overflow-scrolling: touch;
36
- ::-webkit-scrollbar {
37
- -webkit-appearance: none;
38
- }
39
- -ms-overflow-style: none;
40
- /* Internet Explorer 10+ */
41
- scrollbar-width: none;
42
- /* Firefox */
43
-
44
- &::-webkit-scrollbar {
45
- display: none;
46
- /* Safari and Chrome */
47
- }
48
-
49
- @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
50
- margin-right: 0;
51
- }
52
- }
53
- & .scroll-arrow-right,
54
- & .scroll-arrow-left {
55
- position: absolute;
56
- top: 50%;
57
- transform: translate(0, -50%);
58
- display: flex;
59
- justify-content: center;
60
- align-items: center;
61
- cursor: pointer;
62
-
63
- visibility: ${e=>e.arrowsVisibleOnHover===!1&&e.hasOverflow?"visible":"hidden"};
64
- z-index: 4;
65
- transition: ${"0.3s"};
66
- }
67
- & .scroll-arrow-right {
68
- ${e=>e.rightAlignArrows===!0?"right: 0":"right: 0.7rem"};
69
- }
70
- & .scroll-arrow-left {
71
- ${e=>e.rightAlignArrows===!0?"right: 2.625rem":"left: 0.7rem"};
72
- }
73
- & .scrollable-container:hover > .scroll-arrow-left,
74
- & .scrollable-container:hover > .scroll-arrow-right {
75
- visibility: ${e=>e.hasOverflow?"visible":"hidden"};
76
- }
77
-
78
- @media (max-width: ${E.MOBILE_SIZE_PX+"px"}) {
79
- & .scrollable-container {
80
- overflow: auto;
81
- }
82
- & .scroll-arrow-left,
83
- & .scroll-arrow-right {
84
- display: none;
85
- }
86
-
87
- & .gradient {
88
- right: 0;
89
- }
90
-
91
- & .scrollable-container button:nth-of-type(3) {
92
- ${e=>e.noMargin!==!0&&"margin-left: 1rem"};
93
- }
94
- }
95
- `,W=n.forwardRef(({columnGap:e="2rem",rowGap:w="1.25rem",scrollBySize:u=300,wrapForMobile:y=!1,wrap:a=!1,children:p,methodsRef:b,arrowsVisibleOnHover:T=!0,rightAlignArrows:v=!1,padding:f="0",showTimesBtn:h,noArrows:c,noGradient:x=!1,hideDisabledArrows:d=!1,noMargin:g=!1,...P},S)=>{const k=D.useDetectMobile(),{theme:o}=_.useTheme(),[t,j]=n.useState(!1),[m,N]=n.useState(!1),[H,I]=n.useState(!0),s=n.useRef(),q=()=>{var i;(i=s.current)==null||i.scrollBy(u,0)},B=()=>{var i;(i=s.current)==null||i.scrollBy(-u,0)},[$,L]=n.useState(!1);n.useEffect(()=>{var i,A;L(((i=s==null?void 0:s.current)==null?void 0:i.scrollWidth)>((A=s==null?void 0:s.current)==null?void 0:A.clientWidth))},[p]),n.useImperativeHandle(b,()=>({scrollToEnd(){M()},scrollLeft(){B()},scrollRight(){q()}}));const M=()=>{s.current.scrollLeft=s.current.scrollWidth};return l.jsx(X,{ref:S,arrowsVisibleOnHover:T,hasOverflow:$,noArrows:c,padding:f,rightAlignArrows:v,showTimesBtn:h,theme:o,noMargin:g,...P,children:l.jsxs(V,{ref:s,className:"scrollable-container",columnGap:e,rowGap:w,wrap:a||y&&k?"Wrap":"NoWrap",children:[c!==!0&&l.jsxs(l.Fragment,{children:[!(d===!0&&m===!0)&&l.jsx(R,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-left",color:"neutral",disabled:m,icon:"angle-left",onClick:B}),!(d===!0&&t===!0)&&l.jsx(R,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-right",color:"neutral",disabled:t,icon:"angle-right",onClick:q})]}),l.jsx(K.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{m===!0&&N(!1)},onIsVisible:()=>{m===!1&&N(!0)}}),p,l.jsx(K.InfiniteScrollEndElement,{className:"right-scroller",isHorizontal:!0,onIsNotVisible:()=>{t===!0&&j(!1),I(!0)},onIsVisible:()=>{t===!1&&j(!0),I(!1)}}),H&&$&&x!==!0&&l.jsx("div",{className:"gradient"})]})})});W.propTypes={title:r.PropTypes.string,rowGap:r.PropTypes.string,columnGap:r.PropTypes.string,scrollBySize:r.PropTypes.number,wrapForMobile:r.PropTypes.bool,wrap:r.PropTypes.bool,methodsRef:r.PropTypes.any,arrowsVisibleOnHover:r.PropTypes.bool,rightAlignArrows:r.PropTypes.bool,padding:r.PropTypes.string};const C=n.forwardRef((e,w)=>{const{allButton:u=!0,items:y=[],selectedIds:a=[],onSelect:p=()=>{},onRemove:b=()=>{},onSelectAll:T=()=>{},className:v,showTimesBtn:f=!1,labelKey:h="label",valueKey:c="value",codeKey:x="code",uniqueKey:d,typeKey:g,productsToolbarName:P="All",...S}=e,k=(o,t)=>{a!=null&&a.includes(t)?b(o,t):p(o,t)};return l.jsxs(W,{ref:w,arrowsVisibleOnHover:!1,className:v,columnGap:"0.75rem",padding:"0.25rem 0",rightAlignArrows:!0,showTimesBtn:f,...S,children:[u&&l.jsx(O,{borderRadius:"curved",btnType:a.length===0?"filled":"tinted",className:"badge-button",color:"neutral",onClick:T,children:P}),y.map((o,t)=>l.jsxs(O,{borderRadius:"curved",btnType:a.includes(o.uuid)?"filled":"tinted",className:"badge-button",color:"neutral",onClick:()=>k(o,o[c]),children:[G.isDefined(o==null?void 0:o.icon)&&l.jsxs(l.Fragment,{children:[l.jsx("i",{className:o==null?void 0:o.icon})," "]}),o[h],f===!0&&l.jsx(F,{className:"times-btn",icon:"times",sizeInUnits:"0.75rem",onClick:()=>b(o[c],o[h],o[x],d?o[d]:null,g?o[g]:null)})]},t))]})});C.propTypes={allButton:r.PropTypes.bool,items:r.PropTypes.array,selectedIds:r.PropTypes.array,onSelect:r.PropTypes.func,onRemove:r.PropTypes.func,onSelectAll:r.PropTypes.func,className:r.PropTypes.string,showTimesBtn:r.PropTypes.bool,valuKey:r.PropTypes.string,labelKey:r.PropTypes.string,codeKey:r.PropTypes.string};exports.SelectBar=C;