@lanaco/lnc-react-ui 4.0.34 → 4.0.37

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 (286) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +11 -11
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +1 -1
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +3 -3
  7. package/dist/ActionsToolbar.cjs +1 -1
  8. package/dist/ActionsToolbar.js +2 -2
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +2 -2
  11. package/dist/Avatar.cjs +1 -1
  12. package/dist/Avatar.js +3 -3
  13. package/dist/Badge.cjs +2 -2
  14. package/dist/Badge.js +3 -3
  15. package/dist/BannerSectionBasic.cjs +1 -1
  16. package/dist/BannerSectionBasic.js +1 -1
  17. package/dist/BannerSectionCarousel.cjs +2 -2
  18. package/dist/BannerSectionCarousel.js +63 -63
  19. package/dist/BannerSectionGrid.cjs +3 -3
  20. package/dist/BannerSectionGrid.js +43 -39
  21. package/dist/BannerSectionSimple.cjs +1 -1
  22. package/dist/BannerSectionSimple.js +1 -1
  23. package/dist/BannerSectionWithList.cjs +1 -1
  24. package/dist/BannerSectionWithList.js +2 -2
  25. package/dist/BannerSectionWithListImage.cjs +1 -1
  26. package/dist/BannerSectionWithListImage.js +1 -1
  27. package/dist/BlogsSectionDetailed.cjs +1 -1
  28. package/dist/BlogsSectionDetailed.js +3 -3
  29. package/dist/BlogsSectionLarge.cjs +1 -1
  30. package/dist/BlogsSectionLarge.js +2 -2
  31. package/dist/BlogsSectionSimple.cjs +1 -1
  32. package/dist/BlogsSectionSimple.js +3 -3
  33. package/dist/BlogsSectionSimpleCentered.cjs +1 -1
  34. package/dist/BlogsSectionSimpleCentered.js +2 -2
  35. package/dist/BlogsSectionWithFilters.cjs +11 -108
  36. package/dist/BlogsSectionWithFilters.js +59 -437
  37. package/dist/BrandHitsSection.cjs +1 -1
  38. package/dist/BrandHitsSection.js +2 -2
  39. package/dist/Breadcrumbs.cjs +3 -3
  40. package/dist/Breadcrumbs.js +12 -12
  41. package/dist/Button.cjs +1 -1
  42. package/dist/Button.js +4 -4
  43. package/dist/ButtonGroup.cjs +1 -1
  44. package/dist/ButtonGroup.js +3 -3
  45. package/dist/CalorieCalculatorSection.cjs +333 -0
  46. package/dist/CalorieCalculatorSection.js +851 -0
  47. package/dist/CheckBoxInput.cjs +1 -1
  48. package/dist/CheckBoxInput.js +3 -3
  49. package/dist/Chip.cjs +2 -2
  50. package/dist/Chip.js +3 -3
  51. package/dist/ColorInput.cjs +1 -1
  52. package/dist/ColorInput.js +4 -4
  53. package/dist/ConfirmationForm.cjs +2 -2
  54. package/dist/ConfirmationForm.js +3 -3
  55. package/dist/CustomLoanMapSection.cjs +1 -1
  56. package/dist/CustomLoanMapSection.js +2 -2
  57. package/dist/{CustomStyles-BWOJ2IOk.js → CustomStyles-BwnfUVvi.js} +8 -8
  58. package/dist/{CustomStyles-DyqGX2oY.cjs → CustomStyles-DUDHRSkh.cjs} +2 -2
  59. package/dist/DataView.cjs +1 -1
  60. package/dist/DataView.js +1 -1
  61. package/dist/DateInput.cjs +4 -4
  62. package/dist/DateInput.js +76 -80
  63. package/dist/DecimalInput.cjs +3 -3
  64. package/dist/DecimalInput.js +4 -4
  65. package/dist/DecimalInputV2.cjs +2 -2
  66. package/dist/DecimalInputV2.js +3 -3
  67. package/dist/DetailedProductsSection.cjs +1 -1
  68. package/dist/DetailedProductsSection.js +4 -4
  69. package/dist/DetailsView.cjs +2 -2
  70. package/dist/DetailsView.js +3 -3
  71. package/dist/DoubleRangeSlider.cjs +1 -1
  72. package/dist/DoubleRangeSlider.js +3 -3
  73. package/dist/DragAndDropFile.cjs +6 -6
  74. package/dist/DragAndDropFile.js +4 -4
  75. package/dist/DragDropFiles.cjs +1 -1
  76. package/dist/DragDropFiles.js +3 -3
  77. package/dist/Drawer.cjs +1 -1
  78. package/dist/Drawer.js +12 -12
  79. package/dist/Dropdown.cjs +1 -1
  80. package/dist/Dropdown.js +5 -5
  81. package/dist/DropdownItem.cjs +1 -1
  82. package/dist/DropdownItem.js +10 -10
  83. package/dist/DropdownLookup.cjs +1 -1
  84. package/dist/DropdownLookup.js +5 -5
  85. package/dist/DropdownMenu.cjs +1 -1
  86. package/dist/DropdownMenu.js +6 -6
  87. package/dist/EditableTable.cjs +1 -1
  88. package/dist/EditableTable.js +3 -3
  89. package/dist/FieldOfInterestsMasonrySection.cjs +6 -6
  90. package/dist/FieldOfInterestsMasonrySection.js +43 -42
  91. package/dist/FieldOfInterestsWithAvatarsCardsSection.cjs +1 -1
  92. package/dist/FieldOfInterestsWithAvatarsCardsSection.js +3 -3
  93. package/dist/FieldOfInterestsWithTagsCardsSection.cjs +3 -3
  94. package/dist/FieldOfInterestsWithTagsCardsSection.js +3 -3
  95. package/dist/FileInput.cjs +2 -2
  96. package/dist/FileInput.js +3 -3
  97. package/dist/FlexBox.cjs +1 -1
  98. package/dist/FlexBox.js +1 -1
  99. package/dist/FlexGridItem.cjs +1 -1
  100. package/dist/FlexGridItem.js +2 -2
  101. package/dist/FormField.cjs +1 -1
  102. package/dist/FormField.js +7 -7
  103. package/dist/FormView.cjs +2 -2
  104. package/dist/FormView.js +15 -15
  105. package/dist/GeneralWithTagsCardsSection.cjs +1 -1
  106. package/dist/GeneralWithTagsCardsSection.js +3 -3
  107. package/dist/GiftCardsSection.cjs +1 -1
  108. package/dist/GiftCardsSection.js +2 -2
  109. package/dist/Grid.cjs +1 -1
  110. package/dist/Grid.js +1 -1
  111. package/dist/GridItem.cjs +1 -1
  112. package/dist/GridItem.js +1 -1
  113. package/dist/Icon.cjs +2 -2
  114. package/dist/Icon.js +6 -6
  115. package/dist/IconButton.cjs +1 -1
  116. package/dist/IconButton.js +3 -3
  117. package/dist/Kanban.cjs +7 -7
  118. package/dist/Kanban.js +37 -41
  119. package/dist/KanbanActionsToolbar.cjs +1 -1
  120. package/dist/KanbanActionsToolbar.js +2 -2
  121. package/dist/{KanbanCard-BDyFaKYd.js → KanbanCard-BDRSqfVD.js} +2 -2
  122. package/dist/{KanbanCard-CofqdTrO.cjs → KanbanCard-CLOKZFYP.cjs} +1 -1
  123. package/dist/KanbanCard.cjs +1 -1
  124. package/dist/KanbanCard.js +3 -3
  125. package/dist/KanbanFooter.cjs +1 -1
  126. package/dist/KanbanFooter.js +2 -2
  127. package/dist/KanbanHeader.cjs +2 -2
  128. package/dist/KanbanHeader.js +2 -2
  129. package/dist/KanbanView.cjs +1 -1
  130. package/dist/KanbanView.js +3 -3
  131. package/dist/Link.cjs +2 -2
  132. package/dist/Link.js +6 -6
  133. package/dist/LocationSearchSection.cjs +53 -0
  134. package/dist/LocationSearchSection.js +108 -0
  135. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  136. package/dist/MasonryGeneralCardsSection.js +3 -3
  137. package/dist/MenuItem.cjs +2 -2
  138. package/dist/MenuItem.js +3 -3
  139. package/dist/Modal.cjs +1 -1
  140. package/dist/Modal.js +6 -6
  141. package/dist/MultiSelectDropdown.cjs +1 -1
  142. package/dist/MultiSelectDropdown.js +3 -3
  143. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  144. package/dist/MultiSelectDropdownLookup.js +3 -3
  145. package/dist/NestedDropdownItem.cjs +1 -1
  146. package/dist/NestedDropdownItem.js +9 -9
  147. package/dist/NestedMenuItem.cjs +2 -2
  148. package/dist/NestedMenuItem.js +8 -8
  149. package/dist/Notification.cjs +1 -1
  150. package/dist/Notification.js +1 -1
  151. package/dist/NotificationContainer.cjs +1 -1
  152. package/dist/NotificationContainer.js +3 -3
  153. package/dist/NotificationMessage.cjs +1 -1
  154. package/dist/NotificationMessage.js +3 -3
  155. package/dist/NumberInput.cjs +2 -2
  156. package/dist/NumberInput.js +4 -4
  157. package/dist/OverlayGeneralCardsSection.cjs +1 -1
  158. package/dist/OverlayGeneralCardsSection.js +3 -3
  159. package/dist/PageLayout.cjs +2 -2
  160. package/dist/PageLayout.js +2 -2
  161. package/dist/Pagination.cjs +2 -2
  162. package/dist/Pagination.js +2 -2
  163. package/dist/PasswordInput.cjs +2 -2
  164. package/dist/PasswordInput.js +4 -4
  165. package/dist/PopoverContent.cjs +1 -1
  166. package/dist/PopoverContent.js +5 -5
  167. package/dist/PopoverDescription.cjs +1 -1
  168. package/dist/PopoverDescription.js +1 -1
  169. package/dist/PopoverHeading.cjs +1 -1
  170. package/dist/PopoverHeading.js +1 -1
  171. package/dist/PopoverTrigger.cjs +1 -1
  172. package/dist/PopoverTrigger.js +1 -1
  173. package/dist/ProductsWithBannerSection.cjs +1 -1
  174. package/dist/ProductsWithBannerSection.js +3 -3
  175. package/dist/ProgressBar.cjs +1 -1
  176. package/dist/ProgressBar.js +8 -8
  177. package/dist/QuizSection.cjs +1 -1
  178. package/dist/QuizSection.js +2 -2
  179. package/dist/RadioGroup.cjs +1 -1
  180. package/dist/RadioGroup.js +2 -2
  181. package/dist/RadioInput.cjs +1 -1
  182. package/dist/RadioInput.js +3 -3
  183. package/dist/RangeSlider.cjs +2 -2
  184. package/dist/RangeSlider.js +3 -3
  185. package/dist/SalesCampaignsSection.cjs +423 -0
  186. package/dist/SalesCampaignsSection.js +967 -0
  187. package/dist/SearchBar.cjs +1 -1
  188. package/dist/SearchBar.js +6 -6
  189. package/dist/Separator.cjs +1 -1
  190. package/dist/Separator.js +3 -3
  191. package/dist/ShopCardsSection.cjs +1 -1
  192. package/dist/ShopCardsSection.js +2 -2
  193. package/dist/Sidebar.cjs +1 -1
  194. package/dist/Sidebar.js +3 -3
  195. package/dist/SimpleCategoriesSection.cjs +9 -9
  196. package/dist/SimpleCategoriesSection.js +48 -44
  197. package/dist/SimpleProductsSection.cjs +1 -1
  198. package/dist/SimpleProductsSection.js +3 -3
  199. package/dist/Spinner.cjs +1 -1
  200. package/dist/Spinner.js +12 -12
  201. package/dist/Surface.cjs +2 -2
  202. package/dist/Surface.js +3 -3
  203. package/dist/SwipeableDrawer.cjs +2 -2
  204. package/dist/SwipeableDrawer.js +3 -3
  205. package/dist/TabItem.cjs +1 -1
  206. package/dist/TabItem.js +11 -11
  207. package/dist/Table.cjs +7 -7
  208. package/dist/Table.js +4 -4
  209. package/dist/TableView.cjs +1 -1
  210. package/dist/TableView.js +2 -2
  211. package/dist/Tabs.cjs +2 -2
  212. package/dist/Tabs.js +2 -2
  213. package/dist/TextAreaInput.cjs +12 -12
  214. package/dist/TextAreaInput.js +124 -112
  215. package/dist/TextInput.cjs +2 -2
  216. package/dist/TextInput.js +4 -4
  217. package/dist/ThemeProvider.cjs +10 -10
  218. package/dist/ThemeProvider.js +189 -187
  219. package/dist/TimeInput.cjs +2 -2
  220. package/dist/TimeInput.js +4 -4
  221. package/dist/Toggle.cjs +15 -15
  222. package/dist/Toggle.js +40 -50
  223. package/dist/TreeMenu.cjs +1 -1
  224. package/dist/TreeMenu.js +1 -1
  225. package/dist/TreeMenuSeparator.cjs +1 -1
  226. package/dist/TreeMenuSeparator.js +3 -3
  227. package/dist/UploadedFile.cjs +2 -2
  228. package/dist/UploadedFile.js +16 -16
  229. package/dist/UrgentSaleProductsSection.cjs +1 -1
  230. package/dist/UrgentSaleProductsSection.js +2 -2
  231. package/dist/{defineProperty-DHvxLH8G.cjs → defineProperty-CqVRDJI8.cjs} +1 -1
  232. package/dist/{defineProperty-B5pLF6px.js → defineProperty-DF3p0mVo.js} +5 -5
  233. package/dist/emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs +1 -0
  234. package/dist/emotion-element-f0de968e.browser.esm-CkCiQliQ.js +877 -0
  235. package/dist/{emotion-is-prop-valid.esm-CMrshNb7.cjs → emotion-is-prop-valid.esm-BNsx9k19.cjs} +1 -1
  236. package/dist/{emotion-is-prop-valid.esm-DkbeH1Xy.js → emotion-is-prop-valid.esm-CbWxtx4i.js} +1 -1
  237. package/dist/emotion-react.browser.esm-1R69UXoj.cjs +1 -0
  238. package/dist/emotion-react.browser.esm-C6iWxXPG.js +95 -0
  239. package/dist/{emotion-styled.browser.esm-BiK8DcgW.js → emotion-styled.browser.esm-CjCaF13H.js} +55 -53
  240. package/dist/emotion-styled.browser.esm-Cle7tAM9.cjs +1 -0
  241. package/dist/floating-ui.dom-CFbLeFcw.cjs +1 -0
  242. package/dist/floating-ui.dom-vNhdy5RI.js +947 -0
  243. package/dist/{floating-ui.react.esm-C4vrBVJU.cjs → floating-ui.react.esm-7Yt4LHw6.cjs} +1 -1
  244. package/dist/{floating-ui.react.esm-72DKnou_.js → floating-ui.react.esm-umB-tMXa.js} +3 -3
  245. package/dist/{index--Kmch3aI.js → index-64mXPFBC.js} +6724 -6724
  246. package/dist/{index-CvebWhtp.js → index-BlxaTV-D.js} +1 -1
  247. package/dist/{index-HV_Ku4ub.js → index-CHkb_Sj6.js} +2 -2
  248. package/dist/index-CT6_7UFb.js +350 -0
  249. package/dist/index-Cb_AeN9A.cjs +4 -0
  250. package/dist/{index-CNBqQrtK.js → index-CkWvbrVT.js} +1 -1
  251. package/dist/{index-BUChtubz.js → index-D-c5IxDk.js} +1 -1
  252. package/dist/{index-7XMd1kAv.js → index-D6g5ZqyJ.js} +2 -2
  253. package/dist/{index-BP5r5zGN.cjs → index-DZoWlChs.cjs} +1 -1
  254. package/dist/{index-B67WqHGh.cjs → index-Dit169OA.cjs} +1 -1
  255. package/dist/{index-B6kVbS_M.cjs → index-Dj5wZCVs.cjs} +1 -1
  256. package/dist/{index-CTJZaJ_S.js → index-DxdBg_r_.js} +1 -1
  257. package/dist/index-EeoArxOx.cjs +174 -0
  258. package/dist/index-Q_i-aqsF.cjs +95 -0
  259. package/dist/{index-mIxT8eNX.cjs → index-vXmvgZ2Y.cjs} +1 -1
  260. package/dist/index-wy-PXQR9.js +47 -0
  261. package/dist/index.cjs +1 -1
  262. package/dist/index.js +96 -92
  263. package/dist/{motion-Oud-wpUz.cjs → motion-B_VPZaJq.cjs} +1 -1
  264. package/dist/{motion-ecIGZGwI.js → motion-Ckekul_K.js} +1 -1
  265. package/dist/objectWithoutPropertiesLoose-BLga_MQA.cjs +1 -0
  266. package/dist/{objectWithoutPropertiesLoose-DwEN6RBQ.js → objectWithoutPropertiesLoose-DhwSMsjf.js} +1 -1
  267. package/dist/{react-toastify.esm-CkXGwKXL.js → react-toastify.esm--2awuizG.js} +1 -1
  268. package/dist/{react-toastify.esm-Dqcb4SQT.cjs → react-toastify.esm-Dq1k28O7.cjs} +1 -1
  269. package/dist/{style-BGQ1B_dp.js → style-6tSw9aqK.js} +1 -1
  270. package/dist/{style-BEUISPP7.cjs → style-BR3tIhP1.cjs} +1 -1
  271. package/dist/usePopover.cjs +1 -1
  272. package/dist/usePopover.js +6 -6
  273. package/dist/{utils-CqvISfv9.js → utils-DtRLzzTZ.js} +294 -74
  274. package/dist/utils-NZLCh-J5.cjs +51 -0
  275. package/package.json +6 -2
  276. package/vite.config.js +12 -1
  277. package/dist/emotion-element-5486c51c.browser.esm-Bb4VkP8U.js +0 -886
  278. package/dist/emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs +0 -1
  279. package/dist/emotion-react.browser.esm-CN-s34fZ.js +0 -94
  280. package/dist/emotion-react.browser.esm-D7h2t2Bz.cjs +0 -1
  281. package/dist/emotion-styled.browser.esm-Cbp_XsK4.cjs +0 -1
  282. package/dist/floating-ui.dom-1F2mTXOe.cjs +0 -1
  283. package/dist/floating-ui.dom-BdUovkEr.js +0 -938
  284. package/dist/index-Ct1N7fF4.cjs +0 -174
  285. package/dist/objectWithoutPropertiesLoose-Bz3hwpmU.cjs +0 -1
  286. package/dist/utils-C0YSTwcn.cjs +0 -51
@@ -1,6 +1,6 @@
1
1
  import { useState as o, useMemo as k } from "react";
2
- import { c as v, d as C, e as D, f as w, g as M } from "./floating-ui.react.esm-72DKnou_.js";
3
- import { a as S, o as U, f as A, s as E } from "./floating-ui.dom-BdUovkEr.js";
2
+ import { c as v, d as C, e as D, f as w, g as M } from "./floating-ui.react.esm-umB-tMXa.js";
3
+ import { o as S, f as U, s as A, a as E } from "./floating-ui.dom-vNhdy5RI.js";
4
4
  function R({
5
5
  initialOpen: r = !1,
6
6
  placement: p,
@@ -13,13 +13,13 @@ function R({
13
13
  placement: p,
14
14
  open: e,
15
15
  onOpenChange: s,
16
- whileElementsMounted: S,
16
+ whileElementsMounted: E,
17
17
  middleware: [
18
- U(u),
19
- A({
18
+ S(u),
19
+ U({
20
20
  fallbackAxisSideDirection: "end"
21
21
  }),
22
- E({ padding: 5 })
22
+ A({ padding: 5 })
23
23
  ]
24
24
  }), n = t.context, h = C(n, {
25
25
  enabled: i == null
@@ -1,20 +1,20 @@
1
1
  import { jsxs as W, Fragment as m } from "react/jsx-runtime";
2
- import { useState as D, useEffect as w, isValidElement as f, Children as h, cloneElement as B } from "react";
2
+ import { useState as D, useEffect as w, cloneElement as C, isValidElement as v, Children as h } from "react";
3
3
  var $ = function() {
4
- }, A = typeof window < "u", E = function(e, t) {
5
- return A ? 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);
6
- }, k = function(e, t) {
7
- var a = D(E(e)), o = a[0], n = a[1];
4
+ }, B = typeof window < "u", A = function(e, t) {
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);
6
+ }, x = function(e, t) {
7
+ var a = D(A(e)), o = a[0], n = a[1];
8
8
  return w(function() {
9
- var r = !0, b = window.matchMedia(e), d = function() {
10
- r && n(!!b.matches);
9
+ var r = !0, d = window.matchMedia(e), b = function() {
10
+ r && n(!!d.matches);
11
11
  };
12
- return b.addEventListener("change", d), n(b.matches), function() {
13
- r = !1, b.removeEventListener("change", d);
12
+ return d.addEventListener("change", b), n(d.matches), function() {
13
+ r = !1, d.removeEventListener("change", b);
14
14
  };
15
15
  }, [e]), o;
16
16
  };
17
- const u = {
17
+ const k = {
18
18
  name: "Lanaco Light",
19
19
  class: "lnc-light",
20
20
  colorContext: {
@@ -525,6 +525,29 @@ const u = {
525
525
  }
526
526
  }
527
527
  },
528
+ StarRating: {
529
+ default: {
530
+ palette: "gray",
531
+ enabled: {
532
+ fontSize: "1rem",
533
+ lineHeight: "1.25rem",
534
+ filledColor: 900,
535
+ emptyColor: 300,
536
+ textColor: 500
537
+ },
538
+ disabled: { filledColor: 500, emptyColor: 300, textColor: 500 }
539
+ },
540
+ neutral: {
541
+ enabled: {
542
+ fontSize: "1rem",
543
+ lineHeight: "1.25rem",
544
+ filledColor: 900,
545
+ emptyColor: 300,
546
+ textColor: 500
547
+ }
548
+ },
549
+ yellow: { enabled: { filledColor: 500 } }
550
+ },
528
551
  TabRegular: {
529
552
  default: {
530
553
  palette: "gray",
@@ -3421,7 +3444,7 @@ const u = {
3421
3444
  tooltip: 1500,
3422
3445
  popover: 1299
3423
3446
  }
3424
- }, C = {
3447
+ }, E = {
3425
3448
  name: "Lanaco Dark",
3426
3449
  class: "lnc-dark",
3427
3450
  colorContext: {
@@ -3434,6 +3457,38 @@ const u = {
3434
3457
  neutral: "gray"
3435
3458
  },
3436
3459
  components: {
3460
+ MainMenu: {
3461
+ default: {
3462
+ palette: "neutral",
3463
+ enabled: {
3464
+ color: 900,
3465
+ mediumColor: 600,
3466
+ lightColor: 500,
3467
+ lightestColor: 100,
3468
+ dividerOpacity: 80,
3469
+ headerBackgroundColor: 50,
3470
+ notificationBackgroundColor: 900,
3471
+ notificationOpacity: 80
3472
+ },
3473
+ hover: { backgroundColor: 900, backgroundOpacity: 80 }
3474
+ },
3475
+ teal: {
3476
+ enabled: {
3477
+ textColor: 700,
3478
+ descriptionOpacity: 800,
3479
+ backgroundColor: 600,
3480
+ backgroundOpacity: 80
3481
+ }
3482
+ },
3483
+ gray: {
3484
+ enabled: {
3485
+ color: 600,
3486
+ descriptionOpacity: 800,
3487
+ backgroundColor: 600,
3488
+ backgroundOpacity: 80
3489
+ }
3490
+ }
3491
+ },
3437
3492
  Input: {
3438
3493
  default: {
3439
3494
  palette: "gray",
@@ -3930,6 +3985,29 @@ const u = {
3930
3985
  }
3931
3986
  }
3932
3987
  },
3988
+ StarRating: {
3989
+ default: {
3990
+ palette: "gray",
3991
+ enabled: {
3992
+ fontSize: "1rem",
3993
+ lineHeight: "1.25rem",
3994
+ filledColor: 900,
3995
+ emptyColor: 300,
3996
+ textColor: 500
3997
+ },
3998
+ disabled: { filledColor: 500, emptyColor: 300, textColor: 500 }
3999
+ },
4000
+ neutral: {
4001
+ enabled: {
4002
+ fontSize: "1rem",
4003
+ lineHeight: "1.25rem",
4004
+ filledColor: 900,
4005
+ emptyColor: 300,
4006
+ textColor: 500
4007
+ }
4008
+ },
4009
+ yellow: { enabled: { filledColor: 500 } }
4010
+ },
3933
4011
  TabRegular: {
3934
4012
  default: {
3935
4013
  palette: "gray",
@@ -6823,6 +6901,38 @@ const u = {
6823
6901
  neutral: "neutral"
6824
6902
  },
6825
6903
  components: {
6904
+ MainMenu: {
6905
+ default: {
6906
+ palette: "neutral",
6907
+ enabled: {
6908
+ color: 900,
6909
+ mediumColor: 600,
6910
+ lightColor: 500,
6911
+ lightestColor: 100,
6912
+ dividerOpacity: 80,
6913
+ headerBackgroundColor: 50,
6914
+ notificationBackgroundColor: 900,
6915
+ notificationOpacity: 80
6916
+ },
6917
+ hover: { backgroundColor: 900, backgroundOpacity: 80 }
6918
+ },
6919
+ teal: {
6920
+ enabled: {
6921
+ textColor: 700,
6922
+ descriptionOpacity: 800,
6923
+ backgroundColor: 600,
6924
+ backgroundOpacity: 80
6925
+ }
6926
+ },
6927
+ gray: {
6928
+ enabled: {
6929
+ color: 600,
6930
+ descriptionOpacity: 800,
6931
+ backgroundColor: 600,
6932
+ backgroundOpacity: 80
6933
+ }
6934
+ }
6935
+ },
6826
6936
  Input: {
6827
6937
  default: {
6828
6938
  palette: "gray",
@@ -7319,6 +7429,29 @@ const u = {
7319
7429
  }
7320
7430
  }
7321
7431
  },
7432
+ StarRating: {
7433
+ default: {
7434
+ palette: "gray",
7435
+ enabled: {
7436
+ fontSize: "1rem",
7437
+ lineHeight: "1.25rem",
7438
+ filledColor: 900,
7439
+ emptyColor: 300,
7440
+ textColor: 500
7441
+ },
7442
+ disabled: { filledColor: 500, emptyColor: 300, textColor: 500 }
7443
+ },
7444
+ neutral: {
7445
+ enabled: {
7446
+ fontSize: "1rem",
7447
+ lineHeight: "1.25rem",
7448
+ filledColor: 900,
7449
+ emptyColor: 300,
7450
+ textColor: 500
7451
+ }
7452
+ },
7453
+ yellow: { enabled: { filledColor: 500 } }
7454
+ },
7322
7455
  TabRegular: {
7323
7456
  default: {
7324
7457
  palette: "gray",
@@ -9849,6 +9982,38 @@ const u = {
9849
9982
  }
9850
9983
  }
9851
9984
  },
9985
+ MainMenu: {
9986
+ default: {
9987
+ palette: "neutral",
9988
+ enabled: {
9989
+ color: 900,
9990
+ mediumColor: 600,
9991
+ lightColor: 500,
9992
+ lightestColor: 100,
9993
+ dividerOpacity: 80,
9994
+ headerBackgroundColor: 50,
9995
+ notificationBackgroundColor: 900,
9996
+ notificationOpacity: 80
9997
+ },
9998
+ hover: { backgroundColor: 900, backgroundOpacity: 80 }
9999
+ },
10000
+ teal: {
10001
+ enabled: {
10002
+ textColor: 700,
10003
+ descriptionOpacity: 800,
10004
+ backgroundColor: 600,
10005
+ backgroundOpacity: 80
10006
+ }
10007
+ },
10008
+ gray: {
10009
+ enabled: {
10010
+ color: 600,
10011
+ descriptionOpacity: 800,
10012
+ backgroundColor: 600,
10013
+ backgroundOpacity: 80
10014
+ }
10015
+ }
10016
+ },
9852
10017
  Danger: {
9853
10018
  default: {
9854
10019
  palette: "red",
@@ -10066,43 +10231,38 @@ const u = {
10066
10231
  tooltip: 1500,
10067
10232
  popover: 1299
10068
10233
  }
10069
- }, L = [u, C, T], K = {
10070
- SUCCESS: u.palette.green[500],
10071
- ERROR: u.palette.red[500],
10072
- WARNING: u.palette.yellow[500],
10073
- PRIMARY: u.palette.teal[500],
10074
- SECONDARY: u.palette.blue[500],
10075
- DISABLED: u.palette.gray[300],
10234
+ }, L = [k, E, T], K = {
10235
+ SUCCESS: k.palette.green[500],
10236
+ ERROR: k.palette.red[500],
10237
+ WARNING: k.palette.yellow[500],
10238
+ PRIMARY: k.palette.teal[500],
10239
+ SECONDARY: k.palette.blue[500],
10240
+ DISABLED: k.palette.gray[300],
10076
10241
  NONE: "white"
10077
10242
  }, g = {
10078
10243
  XS: {
10079
10244
  type: "XS",
10080
- index: 0,
10081
10245
  mediaQuery: "(max-width: 480px)"
10082
10246
  },
10083
10247
  S: {
10084
10248
  type: "S",
10085
- index: 1,
10086
10249
  mediaQuery: "(min-width: 481px) and (max-width: 767px)"
10087
10250
  },
10088
10251
  M: {
10089
10252
  type: "M",
10090
- index: 2,
10091
10253
  mediaQuery: "(min-width: 768px) and (max-width: 1024px)"
10092
10254
  },
10093
10255
  L: {
10094
10256
  type: "L",
10095
- index: 3,
10096
10257
  mediaQuery: "(min-width: 1025px) and (max-width: 1280px)"
10097
10258
  },
10098
10259
  XL: {
10099
10260
  type: "XL",
10100
- index: 4,
10101
10261
  mediaQuery: "(min-width: 1281px)"
10102
10262
  }
10103
- }, M = (e, t) => {
10263
+ }, P = (e, t) => {
10104
10264
  var a = S(e, t);
10105
- return a && f(a) ? { current: a } : { current: null };
10265
+ return a && v(a) ? { current: a } : { current: null };
10106
10266
  }, S = (e = "", t) => {
10107
10267
  if (t && e) {
10108
10268
  var a = h.toArray(t).reverse().find(
@@ -10114,27 +10274,27 @@ const u = {
10114
10274
  if (a) return a;
10115
10275
  }
10116
10276
  return null;
10117
- }, P = (e, t, a) => {
10277
+ }, U = (e, t, a) => {
10118
10278
  var o = R(e, t, a);
10119
- return o && f(o) ? { current: o } : { current: null };
10279
+ return o && v(o) ? { current: o } : { current: null };
10120
10280
  }, R = (e = "", t, a) => {
10121
10281
  if (a && e) {
10122
10282
  var o = h.toArray(a).reverse().find(
10123
10283
  (n) => {
10124
- var r, b, d, c;
10125
- return (((r = n.props) == null ? void 0 : r.__TYPE__) === e || ((b = n.type) == null ? void 0 : b.displayName) === e) && (t ? ((d = n.props) == null ? void 0 : d.id) === t : !((c = n.props) != null && c.id));
10284
+ var r, d, b, c;
10285
+ return (((r = n.props) == null ? void 0 : r.__TYPE__) === e || ((d = n.type) == null ? void 0 : d.displayName) === e) && (t ? ((b = n.props) == null ? void 0 : b.id) === t : !((c = n.props) != null && c.id));
10126
10286
  }
10127
10287
  );
10128
10288
  if (o) return o;
10129
10289
  }
10130
10290
  return null;
10131
10291
  }, _ = () => {
10132
- const e = k(g.XS.mediaQuery), t = k(g.S.mediaQuery), a = k(g.M.mediaQuery), o = k(g.L.mediaQuery), n = k(g.XL.mediaQuery);
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);
10133
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;
10134
- }, U = (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: [
10135
10295
  e.current.props.children,
10136
10296
  a
10137
- ] }) : a : e.current.props.children, B(e.current, t)) : null, p = (e, t) => {
10297
+ ] }) : a : e.current.props.children, C(e.current, t)) : null, p = (e, t) => {
10138
10298
  var a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
10139
10299
  let o = a ? {
10140
10300
  r: parseInt(a[1], 16),
@@ -10143,31 +10303,31 @@ const u = {
10143
10303
  a: t
10144
10304
  } : null;
10145
10305
  return o ? `rgba(${o.r}, ${o.g}, ${o.b}, ${o.a})` : null;
10146
- }, G = (e, t, a, o, n, r) => {
10147
- var y, v;
10148
- const b = e.colorContext[a], d = e.components[t].default, c = (v = (y = e.components[t]) == null ? void 0 : y[b]) == null ? void 0 : v[o], l = c == null ? void 0 : c[n], x = d[o][n], i = c == null ? void 0 : c[r], s = d[o][r], O = l || l == 0 ? e.palette[b][l] : e.palette[d.palette][x], F = i || i == 0 ? e.palette.opacity[i] : e.palette.opacity[s];
10306
+ }, Q = (e, t, a, o, n, r) => {
10307
+ var y, f;
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];
10149
10309
  return p(O, F ?? "100%");
10150
- }, Q = (e, t, a, o, n) => {
10151
- var x, i;
10152
- const r = e.colorContext[a], b = e.components[t].default, d = (i = (x = e.components[t]) == null ? void 0 : x[r]) == null ? void 0 : i[o], c = d == null ? void 0 : d[n], l = b[o][n];
10153
- return c || c == 0 ? c : l;
10154
- }, V = (e, t) => e.sizes[t], X = (e, t, a, o) => `
10310
+ }, V = (e, t, a, o, n) => {
10311
+ var i, l;
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];
10313
+ return c || c == 0 ? c : u;
10314
+ }, X = (e, t) => e.sizes[t], Y = (e, t, a, o) => `
10155
10315
  font-weight: ${e.components[t].default[o].fontWeight};
10156
10316
  font-size: ${e.typography.component[a].fontSize};
10157
10317
  line-height: ${e.typography.component[a].lineHeight};
10158
- `, Y = (e, t) => e.borderRadius[t], Z = (e, t) => e.boxShadow[t], q = (e, t) => {
10318
+ `, Z = (e, t) => e.borderRadius[t], q = (e, t) => e.boxShadow[t], j = (e, t) => {
10159
10319
  const a = e.colorContext[e.palette.outline.context], o = e.palette[a][e.palette.outline.weight];
10160
10320
  return `
10161
10321
  outline: ${e.palette.outline.width} ${e.palette.outline.style} ${o};
10162
10322
  ${`outline-offset: ${e.palette.outline.offset}`};
10163
10323
  `;
10164
- }, j = (e) => {
10324
+ }, J = (e) => {
10165
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];
10166
10326
  return `
10167
10327
  background-color: ${p(a, n ?? "100%")};
10168
10328
  color: ${o};
10169
10329
  `;
10170
- }, J = (e) => {
10330
+ }, e0 = (e) => {
10171
10331
  const t = e.palette.disabled.color, a = e.palette[t][e.palette.disabled.background], o = e.palette.opacity[e.palette.disabled.opacity];
10172
10332
  return `
10173
10333
  background-color: ${p(a, o ?? "100%")};
@@ -10176,7 +10336,7 @@ const u = {
10176
10336
  white-space: nowrap;
10177
10337
  overflow: hidden;
10178
10338
  text-overflow: ellipsis;
10179
- `, e0 = (e) => e == null || e == 0 || e == 1 ? z() : `
10339
+ `, t0 = (e) => e == null || e == 0 || e == 1 ? z() : `
10180
10340
  overflow: hidden;
10181
10341
  text-overflow: ellipsis;
10182
10342
  overflow-wrap: anywhere;
@@ -10190,7 +10350,7 @@ const u = {
10190
10350
  -webkit-line-clamp: ${e};
10191
10351
  -webkit-box-orient: vertical;
10192
10352
  }
10193
- `, t0 = (e = "-45deg", t = "500% 500%", a = "#b3b9c4", o = "#e5e9f1") => `
10353
+ `, a0 = (e = "-45deg", t = "500% 500%", a = "#b3b9c4", o = "#e5e9f1") => `
10194
10354
  @keyframes gradient {
10195
10355
  0% {
10196
10356
  background-position: 0% 0%;
@@ -10210,7 +10370,7 @@ const u = {
10210
10370
  background: linear-gradient(${e}, ${a}, ${o});
10211
10371
  background-size: ${t};
10212
10372
  animation: gradient 1s linear infinite alternate;
10213
- `, a0 = (e) => e != null && e !== "", o0 = (e) => e != null, n0 = (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", {
10214
10374
  minimumFractionDigits: 2,
10215
10375
  maximumFractionDigits: 2
10216
10376
  }).format(e), H = {
@@ -10254,39 +10414,99 @@ const u = {
10254
10414
  GHS: "₵",
10255
10415
  KES: "KSh",
10256
10416
  TZS: "TSh"
10257
- }, r0 = (e) => H[e] || "", d0 = (e) => {
10417
+ }, d0 = (e) => H[e] || "";
10418
+ function I(e, t = { carbs: 0.5, protein: 0.25, fat: 0.25 }) {
10419
+ const a = t.carbs + t.protein + t.fat;
10420
+ if (Math.abs(a - 1) > 0.01)
10421
+ throw new Error("Ratios must add up to 1.");
10422
+ const o = { carbs: 4, protein: 4, fat: 9 };
10423
+ return {
10424
+ carbs: Math.round(e * t.carbs / o.carbs),
10425
+ protein: Math.round(e * t.protein / o.protein),
10426
+ fat: Math.round(e * t.fat / o.fat)
10427
+ };
10428
+ }
10429
+ const c0 = ({
10430
+ gender: e,
10431
+ age: t,
10432
+ heightCm: a,
10433
+ weightKg: o,
10434
+ activityLevel: n,
10435
+ goal: r
10436
+ }) => {
10437
+ let d;
10438
+ if (e === "male")
10439
+ d = 10 * +o + 6.25 * +a - 5 * +t + 5;
10440
+ else if (e === "female")
10441
+ d = 10 * +o + 6.25 * +a - 5 * +t - 161;
10442
+ else
10443
+ throw new Error("Invalid gender. Use 'male' or 'female'.");
10444
+ const c = {
10445
+ // sedentary: 1.2,
10446
+ // light: 1.375,
10447
+ // moderate: 1.55,
10448
+ // active: 1.725,
10449
+ // 'very active': 1.9
10450
+ verylow: 1.2,
10451
+ moderate: 1.55,
10452
+ veryactive: 1.9
10453
+ }[n.toLowerCase()];
10454
+ if (!c)
10455
+ throw new Error("Invalid activity level");
10456
+ const u = d * c;
10457
+ let i;
10458
+ switch (r.toLowerCase()) {
10459
+ case "loseweight":
10460
+ i = u - 500;
10461
+ break;
10462
+ case "maintaining":
10463
+ i = u;
10464
+ break;
10465
+ case "gainmuscle":
10466
+ i = u + 500;
10467
+ break;
10468
+ default:
10469
+ throw new Error("Invalid goal. Use: 'lose', 'maintain', or 'gain'.");
10470
+ }
10471
+ const l = I(i);
10472
+ return {
10473
+ calories: Math.round(i),
10474
+ ...l
10475
+ };
10476
+ }, b0 = (e) => {
10258
10477
  const t = String(Math.floor(e / 60)).padStart(2, "0"), a = String(e % 60).padStart(2, "0");
10259
10478
  return `${t}:${a}`;
10260
- }, c0 = (e, ...t) => e.replace(/{(\d+)}/g, function(a, o) {
10479
+ }, g0 = (e, ...t) => e.replace(/{(\d+)}/g, function(a, o) {
10261
10480
  return typeof t[o] < "u" ? t[o] : a;
10262
10481
  });
10263
10482
  export {
10264
- g as A,
10265
- r0 as G,
10266
- G as a,
10267
- Y as b,
10268
- Q as c,
10269
- V as d,
10270
- q as e,
10271
- J as f,
10272
- X as g,
10273
- j as h,
10274
- M as i,
10275
- Z as j,
10276
- a0 as k,
10277
- o0 as l,
10278
- t0 as m,
10279
- n0 as n,
10483
+ K as A,
10484
+ g as B,
10485
+ d0 as G,
10486
+ Z as a,
10487
+ Q as b,
10488
+ Y as c,
10489
+ X as d,
10490
+ j as e,
10491
+ e0 as f,
10492
+ V as g,
10493
+ J as h,
10494
+ P as i,
10495
+ q as j,
10496
+ o0 as k,
10497
+ n0 as l,
10498
+ a0 as m,
10499
+ r0 as n,
10280
10500
  z as o,
10281
- d0 as p,
10282
- c0 as q,
10283
- U as r,
10284
- p as s,
10285
- e0 as t,
10501
+ b0 as p,
10502
+ g0 as q,
10503
+ G as r,
10504
+ c0 as s,
10505
+ t0 as t,
10286
10506
  _ as u,
10287
- L as v,
10288
- P as w,
10289
- A as x,
10290
- $ as y,
10291
- K as z
10507
+ p as v,
10508
+ L as w,
10509
+ U as x,
10510
+ B as y,
10511
+ $ as z
10292
10512
  };