@lanaco/lnc-react-ui 4.0.35 → 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-BMY2-z7P.js → CustomStyles-BwnfUVvi.js} +8 -8
  58. package/dist/{CustomStyles-zroEcINq.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-CkPex_K5.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-DKztZfzw.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-BmobrEkT.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-C5vAqIS6.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-jiuifwtJ.js → utils-DtRLzzTZ.js} +224 -73
  274. package/dist/utils-NZLCh-J5.cjs +51 -0
  275. package/package.json +5 -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-scuIeOqU.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 v, 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
- }, C = typeof window < "u", A = function(e, t) {
5
- return C ? 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) {
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
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 i = {
17
+ const k = {
18
18
  name: "Lanaco Light",
19
19
  class: "lnc-light",
20
20
  colorContext: {
@@ -3457,6 +3457,38 @@ const i = {
3457
3457
  neutral: "gray"
3458
3458
  },
3459
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
+ },
3460
3492
  Input: {
3461
3493
  default: {
3462
3494
  palette: "gray",
@@ -6869,6 +6901,38 @@ const i = {
6869
6901
  neutral: "neutral"
6870
6902
  },
6871
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
+ },
6872
6936
  Input: {
6873
6937
  default: {
6874
6938
  palette: "gray",
@@ -9918,6 +9982,38 @@ const i = {
9918
9982
  }
9919
9983
  }
9920
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
+ },
9921
10017
  Danger: {
9922
10018
  default: {
9923
10019
  palette: "red",
@@ -10135,41 +10231,36 @@ const i = {
10135
10231
  tooltip: 1500,
10136
10232
  popover: 1299
10137
10233
  }
10138
- }, L = [i, E, T], K = {
10139
- SUCCESS: i.palette.green[500],
10140
- ERROR: i.palette.red[500],
10141
- WARNING: i.palette.yellow[500],
10142
- PRIMARY: i.palette.teal[500],
10143
- SECONDARY: i.palette.blue[500],
10144
- DISABLED: i.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],
10145
10241
  NONE: "white"
10146
10242
  }, g = {
10147
10243
  XS: {
10148
10244
  type: "XS",
10149
- index: 0,
10150
10245
  mediaQuery: "(max-width: 480px)"
10151
10246
  },
10152
10247
  S: {
10153
10248
  type: "S",
10154
- index: 1,
10155
10249
  mediaQuery: "(min-width: 481px) and (max-width: 767px)"
10156
10250
  },
10157
10251
  M: {
10158
10252
  type: "M",
10159
- index: 2,
10160
10253
  mediaQuery: "(min-width: 768px) and (max-width: 1024px)"
10161
10254
  },
10162
10255
  L: {
10163
10256
  type: "L",
10164
- index: 3,
10165
10257
  mediaQuery: "(min-width: 1025px) and (max-width: 1280px)"
10166
10258
  },
10167
10259
  XL: {
10168
10260
  type: "XL",
10169
- index: 4,
10170
10261
  mediaQuery: "(min-width: 1281px)"
10171
10262
  }
10172
- }, M = (e, t) => {
10263
+ }, P = (e, t) => {
10173
10264
  var a = S(e, t);
10174
10265
  return a && v(a) ? { current: a } : { current: null };
10175
10266
  }, S = (e = "", t) => {
@@ -10183,27 +10274,27 @@ const i = {
10183
10274
  if (a) return a;
10184
10275
  }
10185
10276
  return null;
10186
- }, P = (e, t, a) => {
10187
- var o = z(e, t, a);
10277
+ }, U = (e, t, a) => {
10278
+ var o = R(e, t, a);
10188
10279
  return o && v(o) ? { current: o } : { current: null };
10189
- }, z = (e = "", t, a) => {
10280
+ }, R = (e = "", t, a) => {
10190
10281
  if (a && e) {
10191
10282
  var o = h.toArray(a).reverse().find(
10192
10283
  (n) => {
10193
- var r, b, d, c;
10194
- 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));
10195
10286
  }
10196
10287
  );
10197
10288
  if (o) return o;
10198
10289
  }
10199
10290
  return null;
10200
10291
  }, _ = () => {
10201
- 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);
10202
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;
10203
- }, 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: [
10204
10295
  e.current.props.children,
10205
10296
  a
10206
- ] }) : 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) => {
10207
10298
  var a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
10208
10299
  let o = a ? {
10209
10300
  r: parseInt(a[1], 16),
@@ -10212,40 +10303,40 @@ const i = {
10212
10303
  a: t
10213
10304
  } : null;
10214
10305
  return o ? `rgba(${o.r}, ${o.g}, ${o.b}, ${o.a})` : null;
10215
- }, G = (e, t, a, o, n, r) => {
10306
+ }, Q = (e, t, a, o, n, r) => {
10216
10307
  var y, f;
10217
- const b = e.colorContext[a], d = e.components[t].default, c = (f = (y = e.components[t]) == null ? void 0 : y[b]) == null ? void 0 : f[o], l = c == null ? void 0 : c[n], x = d[o][n], u = c == null ? void 0 : c[r], s = d[o][r], O = l || l == 0 ? e.palette[b][l] : e.palette[d.palette][x], F = u || u == 0 ? e.palette.opacity[u] : e.palette.opacity[s];
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];
10218
10309
  return p(O, F ?? "100%");
10219
- }, Q = (e, t, a, o, n) => {
10220
- var x, u;
10221
- const r = e.colorContext[a], b = e.components[t].default, d = (u = (x = e.components[t]) == null ? void 0 : x[r]) == null ? void 0 : u[o], c = d == null ? void 0 : d[n], l = b[o][n];
10222
- return c || c == 0 ? c : l;
10223
- }, 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) => `
10224
10315
  font-weight: ${e.components[t].default[o].fontWeight};
10225
10316
  font-size: ${e.typography.component[a].fontSize};
10226
10317
  line-height: ${e.typography.component[a].lineHeight};
10227
- `, 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) => {
10228
10319
  const a = e.colorContext[e.palette.outline.context], o = e.palette[a][e.palette.outline.weight];
10229
10320
  return `
10230
10321
  outline: ${e.palette.outline.width} ${e.palette.outline.style} ${o};
10231
10322
  ${`outline-offset: ${e.palette.outline.offset}`};
10232
10323
  `;
10233
- }, j = (e) => {
10324
+ }, J = (e) => {
10234
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];
10235
10326
  return `
10236
10327
  background-color: ${p(a, n ?? "100%")};
10237
10328
  color: ${o};
10238
10329
  `;
10239
- }, J = (e) => {
10330
+ }, e0 = (e) => {
10240
10331
  const t = e.palette.disabled.color, a = e.palette[t][e.palette.disabled.background], o = e.palette.opacity[e.palette.disabled.opacity];
10241
10332
  return `
10242
10333
  background-color: ${p(a, o ?? "100%")};
10243
10334
  `;
10244
- }, R = () => `
10335
+ }, z = () => `
10245
10336
  white-space: nowrap;
10246
10337
  overflow: hidden;
10247
10338
  text-overflow: ellipsis;
10248
- `, e0 = (e) => e == null || e == 0 || e == 1 ? R() : `
10339
+ `, t0 = (e) => e == null || e == 0 || e == 1 ? z() : `
10249
10340
  overflow: hidden;
10250
10341
  text-overflow: ellipsis;
10251
10342
  overflow-wrap: anywhere;
@@ -10259,7 +10350,7 @@ const i = {
10259
10350
  -webkit-line-clamp: ${e};
10260
10351
  -webkit-box-orient: vertical;
10261
10352
  }
10262
- `, t0 = (e = "-45deg", t = "500% 500%", a = "#b3b9c4", o = "#e5e9f1") => `
10353
+ `, a0 = (e = "-45deg", t = "500% 500%", a = "#b3b9c4", o = "#e5e9f1") => `
10263
10354
  @keyframes gradient {
10264
10355
  0% {
10265
10356
  background-position: 0% 0%;
@@ -10279,7 +10370,7 @@ const i = {
10279
10370
  background: linear-gradient(${e}, ${a}, ${o});
10280
10371
  background-size: ${t};
10281
10372
  animation: gradient 1s linear infinite alternate;
10282
- `, 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", {
10283
10374
  minimumFractionDigits: 2,
10284
10375
  maximumFractionDigits: 2
10285
10376
  }).format(e), H = {
@@ -10323,39 +10414,99 @@ const i = {
10323
10414
  GHS: "₵",
10324
10415
  KES: "KSh",
10325
10416
  TZS: "TSh"
10326
- }, 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) => {
10327
10477
  const t = String(Math.floor(e / 60)).padStart(2, "0"), a = String(e % 60).padStart(2, "0");
10328
10478
  return `${t}:${a}`;
10329
- }, c0 = (e, ...t) => e.replace(/{(\d+)}/g, function(a, o) {
10479
+ }, g0 = (e, ...t) => e.replace(/{(\d+)}/g, function(a, o) {
10330
10480
  return typeof t[o] < "u" ? t[o] : a;
10331
10481
  });
10332
10482
  export {
10333
- g as A,
10334
- r0 as G,
10335
- G as a,
10336
- Y as b,
10337
- Q as c,
10338
- V as d,
10339
- q as e,
10340
- J as f,
10341
- X as g,
10342
- j as h,
10343
- M as i,
10344
- Z as j,
10345
- a0 as k,
10346
- o0 as l,
10347
- t0 as m,
10348
- n0 as n,
10349
- R as o,
10350
- d0 as p,
10351
- c0 as q,
10352
- U as r,
10353
- p as s,
10354
- e0 as t,
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,
10500
+ z as o,
10501
+ b0 as p,
10502
+ g0 as q,
10503
+ G as r,
10504
+ c0 as s,
10505
+ t0 as t,
10355
10506
  _ as u,
10356
- L as v,
10357
- P as w,
10358
- C as x,
10359
- $ as y,
10360
- K as z
10507
+ p as v,
10508
+ L as w,
10509
+ U as x,
10510
+ B as y,
10511
+ $ as z
10361
10512
  };