@lanaco/lnc-react-ui 4.0.2 → 4.0.5

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 (233) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +55 -50
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +15 -15
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +11 -11
  7. package/dist/ActionsToolbar.cjs +2 -2
  8. package/dist/ActionsToolbar.js +16 -16
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +23 -23
  11. package/dist/Avatar.cjs +2 -2
  12. package/dist/Avatar.js +18 -21
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +21 -14
  15. package/dist/Breadcrumbs.cjs +1 -1
  16. package/dist/Breadcrumbs.js +28 -28
  17. package/dist/Button.cjs +2 -2
  18. package/dist/Button.js +21 -22
  19. package/dist/ButtonGroup.cjs +1 -1
  20. package/dist/ButtonGroup.js +10 -6
  21. package/dist/CheckBoxInput.cjs +1 -1
  22. package/dist/CheckBoxInput.js +6 -6
  23. package/dist/Chip.cjs +1 -1
  24. package/dist/Chip.js +9 -9
  25. package/dist/ColorInput.cjs +1 -1
  26. package/dist/ColorInput.js +20 -20
  27. package/dist/ConfirmationForm.cjs +1 -1
  28. package/dist/ConfirmationForm.js +58 -58
  29. package/dist/Content.cjs +1 -1
  30. package/dist/Content.js +8 -8
  31. package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
  32. package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
  33. package/dist/DataView.cjs +1 -1
  34. package/dist/DataView.js +35 -35
  35. package/dist/DateInput.cjs +4 -4
  36. package/dist/DateInput.js +491 -491
  37. package/dist/DecimalInput.cjs +1 -1
  38. package/dist/DecimalInput.js +43 -43
  39. package/dist/DetailsView.cjs +4 -4
  40. package/dist/DetailsView.js +40 -40
  41. package/dist/DoubleRangeSlider.cjs +1 -1
  42. package/dist/DoubleRangeSlider.js +33 -33
  43. package/dist/DragAndDropFile.cjs +1 -1
  44. package/dist/DragAndDropFile.js +165 -165
  45. package/dist/DragDropFiles.cjs +1 -1
  46. package/dist/DragDropFiles.js +31 -31
  47. package/dist/Drawer.cjs +1 -1
  48. package/dist/Drawer.js +47 -47
  49. package/dist/Dropdown.cjs +1 -1
  50. package/dist/Dropdown.js +39 -39
  51. package/dist/DropdownItem.cjs +1 -1
  52. package/dist/DropdownItem.js +23 -23
  53. package/dist/DropdownLookup.cjs +1 -1
  54. package/dist/DropdownLookup.js +36 -36
  55. package/dist/DropdownMenu.cjs +7 -1
  56. package/dist/DropdownMenu.js +192 -10
  57. package/dist/EditableTable.cjs +1 -1
  58. package/dist/EditableTable.js +4 -4
  59. package/dist/FileInput.cjs +1 -1
  60. package/dist/FileInput.js +24 -24
  61. package/dist/FlexBox.cjs +1 -1
  62. package/dist/FlexBox.js +14 -14
  63. package/dist/FlexGrid.cjs +1 -1
  64. package/dist/FlexGrid.js +30 -30
  65. package/dist/FlexGridItem.cjs +1 -1
  66. package/dist/FlexGridItem.js +16 -16
  67. package/dist/Footer.cjs +1 -1
  68. package/dist/Footer.js +5 -5
  69. package/dist/FormField.cjs +1 -1
  70. package/dist/FormField.js +8 -9
  71. package/dist/FormView.cjs +1 -1
  72. package/dist/FormView.js +31 -31
  73. package/dist/Grid.cjs +2 -3
  74. package/dist/Grid.js +38 -10
  75. package/dist/GridItem.cjs +2 -2
  76. package/dist/GridItem.js +29 -9
  77. package/dist/Header.cjs +1 -1
  78. package/dist/Header.js +7 -7
  79. package/dist/Icon.cjs +2 -2
  80. package/dist/Icon.js +35 -13
  81. package/dist/IconButton.cjs +1 -1
  82. package/dist/IconButton.js +51 -52
  83. package/dist/Kanban.cjs +12 -12
  84. package/dist/Kanban.js +891 -879
  85. package/dist/KanbanActionsToolbar.cjs +2 -2
  86. package/dist/KanbanActionsToolbar.js +28 -28
  87. package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
  88. package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
  89. package/dist/KanbanCard.cjs +1 -1
  90. package/dist/KanbanCard.js +5 -5
  91. package/dist/KanbanFooter.cjs +1 -1
  92. package/dist/KanbanFooter.js +40 -40
  93. package/dist/KanbanHeader.cjs +2 -2
  94. package/dist/KanbanHeader.js +46 -46
  95. package/dist/KanbanView.cjs +1 -1
  96. package/dist/KanbanView.js +27 -27
  97. package/dist/Link.cjs +1 -1
  98. package/dist/Link.js +9 -9
  99. package/dist/MenuItem.cjs +1 -1
  100. package/dist/MenuItem.js +39 -39
  101. package/dist/Modal.cjs +1 -1
  102. package/dist/Modal.js +42 -42
  103. package/dist/MultiSelectDropdown.cjs +1 -1
  104. package/dist/MultiSelectDropdown.js +6 -6
  105. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  106. package/dist/MultiSelectDropdownLookup.js +6 -6
  107. package/dist/NestedDropdownItem.cjs +1 -1
  108. package/dist/NestedDropdownItem.js +40 -40
  109. package/dist/NestedMenuItem.cjs +1 -1
  110. package/dist/NestedMenuItem.js +45 -45
  111. package/dist/Notification.cjs +1 -83
  112. package/dist/Notification.js +3 -1077
  113. package/dist/NotificationContainer.cjs +37 -0
  114. package/dist/NotificationContainer.js +162 -0
  115. package/dist/NotificationMessage.cjs +47 -0
  116. package/dist/NotificationMessage.js +133 -0
  117. package/dist/NumberInput.cjs +1 -1
  118. package/dist/NumberInput.js +17 -17
  119. package/dist/PageLayout.cjs +1 -1
  120. package/dist/PageLayout.js +32 -32
  121. package/dist/Pagination.cjs +12 -0
  122. package/dist/Pagination.js +248 -0
  123. package/dist/PasswordInput.cjs +1 -1
  124. package/dist/PasswordInput.js +33 -33
  125. package/dist/Popover.cjs +1 -0
  126. package/dist/Popover.js +36 -0
  127. package/dist/PopoverClose.cjs +1 -0
  128. package/dist/PopoverClose.js +15 -0
  129. package/dist/PopoverContent.cjs +10 -0
  130. package/dist/PopoverContent.js +68 -0
  131. package/dist/PopoverContext.cjs +1 -0
  132. package/dist/PopoverContext.js +5 -0
  133. package/dist/PopoverDescription.cjs +1 -0
  134. package/dist/PopoverDescription.js +16 -0
  135. package/dist/PopoverHeading.cjs +1 -0
  136. package/dist/PopoverHeading.js +16 -0
  137. package/dist/PopoverTrigger.cjs +1 -0
  138. package/dist/PopoverTrigger.js +38 -0
  139. package/dist/ProgressBar.cjs +1 -1
  140. package/dist/ProgressBar.js +35 -24
  141. package/dist/RadioGroup.cjs +1 -1
  142. package/dist/RadioGroup.js +13 -13
  143. package/dist/RadioInput.cjs +1 -1
  144. package/dist/RadioInput.js +10 -10
  145. package/dist/RangeSlider.cjs +1 -1
  146. package/dist/RangeSlider.js +27 -27
  147. package/dist/SearchBar.cjs +1 -1
  148. package/dist/SearchBar.js +77 -77
  149. package/dist/Separator.cjs +1 -1
  150. package/dist/Separator.js +9 -9
  151. package/dist/Sidebar.cjs +1 -1
  152. package/dist/Sidebar.js +13 -13
  153. package/dist/Spinner.cjs +1 -1
  154. package/dist/Spinner.js +25 -20
  155. package/dist/Surface.cjs +2 -2
  156. package/dist/Surface.js +14 -15
  157. package/dist/SwipeableDrawer.cjs +1 -1
  158. package/dist/SwipeableDrawer.js +18 -18
  159. package/dist/TabItem.cjs +26 -0
  160. package/dist/TabItem.js +210 -0
  161. package/dist/Table.cjs +20 -20
  162. package/dist/Table.js +13 -12
  163. package/dist/TableView.cjs +8 -1
  164. package/dist/TableView.js +238 -9
  165. package/dist/Tabs.cjs +1 -1
  166. package/dist/Tabs.js +33 -27
  167. package/dist/TextAreaInput.cjs +1 -1
  168. package/dist/TextAreaInput.js +35 -35
  169. package/dist/TextInput.cjs +1 -1
  170. package/dist/TextInput.js +24 -24
  171. package/dist/ThemeProvider.cjs +1 -1
  172. package/dist/ThemeProvider.js +85 -85
  173. package/dist/TimeInput.cjs +1 -1
  174. package/dist/TimeInput.js +13 -13
  175. package/dist/Toggle.cjs +1 -1
  176. package/dist/Toggle.js +4 -5
  177. package/dist/TreeMenu.cjs +1 -1
  178. package/dist/TreeMenu.js +57 -57
  179. package/dist/TreeMenuSeparator.cjs +3 -3
  180. package/dist/TreeMenuSeparator.js +11 -11
  181. package/dist/UploadedFile.cjs +1 -1
  182. package/dist/UploadedFile.js +29 -29
  183. package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
  184. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  185. package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
  186. package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
  187. package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
  188. package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
  189. package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
  190. package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
  191. package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
  192. package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
  193. package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
  194. package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
  195. package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
  196. package/dist/index-BIlhCoy2.cjs +20 -0
  197. package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
  198. package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
  199. package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
  200. package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
  201. package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
  202. package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
  203. package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
  204. package/dist/index-DAOBjHnD.cjs +1 -0
  205. package/dist/index-DBXXH_TD.cjs +1 -0
  206. package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
  207. package/dist/index-DaiUAQVF.cjs +1 -0
  208. package/dist/index.cjs +1 -26
  209. package/dist/index.js +180 -376
  210. package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
  211. package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
  212. package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
  213. package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
  214. package/dist/style.css +1 -5
  215. package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
  216. package/dist/usePopover.cjs +1 -0
  217. package/dist/usePopover.js +44 -0
  218. package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
  219. package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
  220. package/package.json +17 -5
  221. package/vite.config.js +16 -0
  222. package/custom-addons/ThemeSelector.js +0 -111
  223. package/custom-addons/register.js +0 -16
  224. package/custom-addons/theme-selector.css +0 -17
  225. package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
  226. package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
  227. package/dist/KanbanCard-ConTmu3w.cjs +0 -30
  228. package/dist/TableView-Cj5_fbSR.js +0 -481
  229. package/dist/TableView-D8ex512p.cjs +0 -19
  230. package/dist/index-BjdOz5Ok.cjs +0 -1
  231. package/dist/index-DXnSjbfJ.cjs +0 -20
  232. package/dist/index-Dzkd2i4n.cjs +0 -1
  233. package/dist/index-P-naJISQ.cjs +0 -1
@@ -81,10 +81,10 @@ function v(e, n, r) {
81
81
  return e.concat(a || Array.prototype.slice.call(n));
82
82
  }
83
83
  export {
84
- d as _,
85
- s as a,
86
- h as b,
87
- v as c,
88
- O as d,
84
+ O as _,
85
+ v as a,
86
+ d as b,
87
+ s as c,
88
+ h as d,
89
89
  _ as e
90
90
  };
@@ -0,0 +1 @@
1
+ "use strict";const c=require("react"),e=require("./floating-ui.react.esm-C4vrBVJU.cjs"),t=require("./floating-ui.dom-1F2mTXOe.cjs");function k({initialOpen:p=!1,placement:f,offsetValue:g,modal:a=!0,open:l,onOpenChange:m}){const[I,b]=c.useState(p),[r,h]=c.useState(void 0),[u,x]=c.useState(void 0),n=l??I,s=m??b,o=e.useFloating({placement:f,open:n,onOpenChange:s,whileElementsMounted:t.autoUpdate,middleware:[t.offset(g),t.flip({fallbackAxisSideDirection:"end"}),t.shift({padding:5})]}),i=o.context,O=e.useClick(i,{enabled:l==null}),S=e.useDismiss(i),U=e.useRole(i),d=e.useInteractions([O,S,U]);return React.useMemo(()=>({open:n,setOpen:s,...d,...o,modal:a,labelId:r,descriptionId:u,setLabelId:h,setDescriptionId:x}),[n,s,d,o,a,r,u])}module.exports=k;
@@ -0,0 +1,44 @@
1
+ import { useState as o } from "react";
2
+ import { c as k, d as v, e as C, f as D, g as w } from "./floating-ui.react.esm-72DKnou_.js";
3
+ import { a as M, o as R, f as S, s as U } from "./floating-ui.dom-BdUovkEr.js";
4
+ function L({
5
+ initialOpen: r = !1,
6
+ placement: p,
7
+ offsetValue: u,
8
+ modal: a = !0,
9
+ open: i,
10
+ onOpenChange: f
11
+ }) {
12
+ const [m, g] = o(r), [c, I] = o(void 0), [d, b] = o(void 0), e = i ?? m, s = f ?? g, t = k({
13
+ placement: p,
14
+ open: e,
15
+ onOpenChange: s,
16
+ whileElementsMounted: M,
17
+ middleware: [
18
+ R(u),
19
+ S({
20
+ fallbackAxisSideDirection: "end"
21
+ }),
22
+ U({ padding: 5 })
23
+ ]
24
+ }), n = t.context, h = v(n, {
25
+ enabled: i == null
26
+ }), x = C(n), O = D(n), l = w([h, x, O]);
27
+ return React.useMemo(
28
+ () => ({
29
+ open: e,
30
+ setOpen: s,
31
+ ...l,
32
+ ...t,
33
+ modal: a,
34
+ labelId: c,
35
+ descriptionId: d,
36
+ setLabelId: I,
37
+ setDescriptionId: b
38
+ }),
39
+ [e, s, l, t, a, c, d]
40
+ );
41
+ }
42
+ export {
43
+ L as default
44
+ };
@@ -1,20 +1,20 @@
1
- import { jsxs as F, Fragment as W } from "react/jsx-runtime";
2
- import x, { useState as m, useEffect as D } from "react";
3
- var R = function() {
4
- }, B = typeof window < "u", w = 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);
1
+ import { jsxs as W, Fragment as m } from "react/jsx-runtime";
2
+ import { useState as D, useEffect as B, isValidElement as f, Children as h, cloneElement as w } from "react";
3
+ var I = 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
6
  }, k = function(e, t) {
7
- var a = m(w(e)), o = a[0], n = a[1];
8
- return D(function() {
9
- var r = !0, d = window.matchMedia(e), c = function() {
10
- r && n(!!d.matches);
7
+ var a = D(E(e)), o = a[0], n = a[1];
8
+ return B(function() {
9
+ var r = !0, b = window.matchMedia(e), d = function() {
10
+ r && n(!!b.matches);
11
11
  };
12
- return d.addEventListener("change", c), n(d.matches), function() {
13
- r = !1, d.removeEventListener("change", c);
12
+ return b.addEventListener("change", d), n(b.matches), function() {
13
+ r = !1, b.removeEventListener("change", d);
14
14
  };
15
15
  }, [e]), o;
16
16
  };
17
- const i = {
17
+ const u = {
18
18
  name: "Lanaco Light",
19
19
  class: "lnc-light",
20
20
  colorContext: {
@@ -3421,7 +3421,7 @@ const i = {
3421
3421
  tooltip: 1500,
3422
3422
  popover: 1299
3423
3423
  }
3424
- }, A = {
3424
+ }, C = {
3425
3425
  name: "Lanaco Dark",
3426
3426
  class: "lnc-dark",
3427
3427
  colorContext: {
@@ -6810,7 +6810,7 @@ const i = {
6810
6810
  tooltip: 1500,
6811
6811
  popover: 1299
6812
6812
  }
6813
- }, E = {
6813
+ }, T = {
6814
6814
  name: "Lanaco E-Commerce",
6815
6815
  class: "lnc-e-comm",
6816
6816
  colorContext: {
@@ -10066,13 +10066,13 @@ const i = {
10066
10066
  tooltip: 1500,
10067
10067
  popover: 1299
10068
10068
  }
10069
- }, H = [i, A, E], I = {
10070
- SUCCESS: i.palette.green[500],
10071
- ERROR: i.palette.red[500],
10072
- WARNING: i.palette.yellow[500],
10073
- PRIMARY: i.palette.teal[500],
10074
- SECONDARY: i.palette.blue[500],
10075
- DISABLED: i.palette.gray[300],
10069
+ }, L = [u, C, T], M = {
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],
10076
10076
  NONE: "white"
10077
10077
  }, g = {
10078
10078
  XS: {
@@ -10100,41 +10100,41 @@ const i = {
10100
10100
  index: 4,
10101
10101
  mediaQuery: "(min-width: 1281px)"
10102
10102
  }
10103
- }, L = (e, t) => {
10104
- var a = C(e, t);
10105
- return a && x.isValidElement(a) ? { current: a } : { current: null };
10106
- }, C = (e = "", t, a = {}) => {
10103
+ }, $ = (e, t) => {
10104
+ var a = S(e, t);
10105
+ return a && f(a) ? { current: a } : { current: null };
10106
+ }, S = (e = "", t) => {
10107
10107
  if (t && e) {
10108
- var o = x.Children.toArray(t).reverse().find(
10109
- (n) => {
10110
- var r, d;
10111
- return ((r = n.props) == null ? void 0 : r.__TYPE__) === e || ((d = n.type) == null ? void 0 : d.displayName) === e;
10108
+ var a = h.toArray(t).reverse().find(
10109
+ (o) => {
10110
+ var n, r;
10111
+ return ((n = o.props) == null ? void 0 : n.__TYPE__) === e || ((r = o.type) == null ? void 0 : r.displayName) === e;
10112
10112
  }
10113
10113
  );
10114
- if (o) return o;
10114
+ if (a) return a;
10115
10115
  }
10116
10116
  return null;
10117
- }, M = (e, t, a) => {
10118
- var o = T(e, t, a);
10119
- return o && x.isValidElement(o) ? { current: o } : { current: null };
10120
- }, T = (e = "", t, a, o = {}) => {
10117
+ }, N = (e, t, a) => {
10118
+ var o = z(e, t, a);
10119
+ return o && f(o) ? { current: o } : { current: null };
10120
+ }, z = (e = "", t, a) => {
10121
10121
  if (a && e) {
10122
- var n = x.Children.toArray(a).reverse().find(
10123
- (r) => {
10124
- var d, c, b, u;
10125
- return (((d = r.props) == null ? void 0 : d.__TYPE__) === e || ((c = r.type) == null ? void 0 : c.displayName) === e) && (t ? ((b = r.props) == null ? void 0 : b.id) === t : !((u = r.props) != null && u.id));
10122
+ var o = h.toArray(a).reverse().find(
10123
+ (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));
10126
10126
  }
10127
10127
  );
10128
- if (n) return n;
10128
+ if (o) return o;
10129
10129
  }
10130
10130
  return null;
10131
10131
  }, _ = () => {
10132
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);
10133
10133
  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
- }, $ = (e, t, a = null, o = !1) => e.current !== null ? (t.children = a !== null ? o == !0 ? /* @__PURE__ */ F(W, { children: [
10134
+ }, Q = (e, t, a = null, o = !1) => e.current !== null ? (t.children = a !== null ? o == !0 ? /* @__PURE__ */ W(m, { children: [
10135
10135
  e.current.props.children,
10136
10136
  a
10137
- ] }) : a : e.current.props.children, x.cloneElement(e.current, t)) : null, y = (e, t) => {
10137
+ ] }) : a : e.current.props.children, w(e.current, t)) : null, p = (e, t) => {
10138
10138
  var a = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
10139
10139
  let o = a ? {
10140
10140
  r: parseInt(a[1], 16),
@@ -10143,54 +10143,54 @@ const i = {
10143
10143
  a: t
10144
10144
  } : null;
10145
10145
  return o ? `rgba(${o.r}, ${o.g}, ${o.b}, ${o.a})` : null;
10146
- }, N = (e, t, a, o, n, r) => {
10147
- var v, f;
10148
- const d = e.colorContext[a], c = e.components[t].default, b = (f = (v = e.components[t]) == null ? void 0 : v[d]) == null ? void 0 : f[o], u = b == null ? void 0 : b[n], p = c[o][n], l = b == null ? void 0 : b[r], h = c[o][r], s = u || u == 0 ? e.palette[d][u] : e.palette[c.palette][p], O = l || l == 0 ? e.palette.opacity[l] : e.palette.opacity[h];
10149
- return y(s, O ?? "100%");
10150
- }, V = (e, t, a, o, n) => {
10151
- var p, l;
10152
- const r = e.colorContext[a], d = e.components[t].default, c = (l = (p = e.components[t]) == null ? void 0 : p[r]) == null ? void 0 : l[o], b = c == null ? void 0 : c[n], u = d[o][n];
10153
- return b || b == 0 ? b : u;
10154
- }, Q = (e, t) => e.sizes[t], X = (e, t, a, o) => `
10146
+ }, V = (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];
10149
+ return p(O, F ?? "100%");
10150
+ }, X = (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
+ }, K = (e, t) => e.sizes[t], U = (e, t, a, o) => `
10155
10155
  font-weight: ${e.components[t].default[o].fontWeight};
10156
10156
  font-size: ${e.typography.component[a].fontSize};
10157
10157
  line-height: ${e.typography.component[a].lineHeight};
10158
- `, K = (e, t) => e.borderRadius[t], U = (e, t) => e.boxShadow[t], P = (e, t) => {
10158
+ `, P = (e, t) => e.borderRadius[t], G = (e, t) => e.boxShadow[t], Y = (e, t) => {
10159
10159
  const a = e.colorContext[e.palette.outline.context], o = e.palette[a][e.palette.outline.weight];
10160
10160
  return `
10161
10161
  outline: ${e.palette.outline.width} ${e.palette.outline.style} ${o};
10162
10162
  ${`outline-offset: ${e.palette.outline.offset}`};
10163
10163
  `;
10164
- }, G = (e) => {
10164
+ }, q = (e) => {
10165
10165
  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
10166
  return `
10167
- background-color: ${y(a, n ?? "100%")};
10167
+ background-color: ${p(a, n ?? "100%")};
10168
10168
  color: ${o};
10169
10169
  `;
10170
- }, Y = (e) => {
10170
+ }, j = (e) => {
10171
10171
  const t = e.palette.disabled.color, a = e.palette[t][e.palette.disabled.background], o = e.palette.opacity[e.palette.disabled.opacity];
10172
10172
  return `
10173
- background-color: ${y(a, o ?? "100%")};
10173
+ background-color: ${p(a, o ?? "100%")};
10174
10174
  `;
10175
10175
  };
10176
10176
  export {
10177
- X as a,
10178
- N as b,
10179
- K as c,
10180
- V as d,
10181
- L as e,
10182
- Q as f,
10183
- G as g,
10184
- P as h,
10185
- Y as i,
10186
- M as j,
10187
- B as k,
10188
- g as l,
10189
- U as m,
10190
- R as n,
10191
- y as o,
10192
- $ as r,
10193
- I as s,
10194
- H as t,
10177
+ V as a,
10178
+ P as b,
10179
+ X as c,
10180
+ K as d,
10181
+ Y as e,
10182
+ j as f,
10183
+ U as g,
10184
+ q as h,
10185
+ $ as i,
10186
+ G as j,
10187
+ p as k,
10188
+ N as l,
10189
+ A as m,
10190
+ I as n,
10191
+ g as o,
10192
+ Q as r,
10193
+ M as s,
10194
+ L as t,
10195
10195
  _ as u
10196
10196
  };