@xaui/native 0.9.1-alpha.36 → 0.9.1-alpha.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 (141) hide show
  1. package/dist/{chunk-V5IVMZQJ.js → chunk-2PMXMKS5.js} +13 -8
  2. package/dist/{chunk-FVKIQBHS.cjs → chunk-3P6M2R4S.cjs} +6 -6
  3. package/dist/{chunk-RPOKLFRB.cjs → chunk-437QULXO.cjs} +7 -7
  4. package/dist/{chunk-BAPXLO5N.js → chunk-4PTWZCOK.js} +9 -9
  5. package/dist/{chunk-E5ZW7MBW.js → chunk-5PPNDKRX.js} +16 -16
  6. package/dist/{chunk-K7GAHNMJ.js → chunk-6G3XWPNP.js} +5 -5
  7. package/dist/{chunk-ISPOIMGX.cjs → chunk-7B3UBUC6.cjs} +3 -3
  8. package/dist/{chunk-5GMU7ESV.js → chunk-7LSY4WFL.js} +2 -2
  9. package/dist/{chunk-HQVVQGYV.cjs → chunk-ACAPTWE3.cjs} +16 -12
  10. package/dist/{chunk-2L7FOIWY.cjs → chunk-AP6RVIIK.cjs} +21 -21
  11. package/dist/{chunk-SAGMDVFU.js → chunk-BORJJYDW.js} +4 -4
  12. package/dist/{chunk-ADQVA2FQ.cjs → chunk-C5VDFRAD.cjs} +3 -3
  13. package/dist/{chunk-FYCDRRJ2.cjs → chunk-CUQTAPBU.cjs} +22 -22
  14. package/dist/{chunk-GPZSTEEI.cjs → chunk-DKH6BNPF.cjs} +15 -15
  15. package/dist/{chunk-2SCE7TFZ.cjs → chunk-DRMT346W.cjs} +64 -64
  16. package/dist/chunk-DVDQSW7U.cjs +1006 -0
  17. package/dist/{chunk-U3HFQHGZ.js → chunk-E3X5ODKQ.js} +3 -3
  18. package/dist/{chunk-RSGIJ6RI.js → chunk-EOJ5MYAQ.js} +5 -5
  19. package/dist/{chunk-MFXZHLOU.cjs → chunk-FTQHDJYL.cjs} +14 -14
  20. package/dist/{chunk-GHKJ6MUH.cjs → chunk-GTT4NHS2.cjs} +11 -11
  21. package/dist/{chunk-OWE5IID7.js → chunk-HXW4ANVB.js} +3 -3
  22. package/dist/{chunk-N2U63JUX.cjs → chunk-IGLKACSR.cjs} +7 -7
  23. package/dist/{chunk-VWATEE5O.js → chunk-IKJVLJKT.js} +15 -15
  24. package/dist/{chunk-AZRMOWRG.cjs → chunk-ITURCQMQ.cjs} +7 -7
  25. package/dist/{chunk-PGQWUASE.cjs → chunk-JB5LGQ54.cjs} +3 -3
  26. package/dist/{chunk-4XFEEBPU.js → chunk-JDSE4TQL.js} +1 -1
  27. package/dist/{chunk-6U5IUUAR.js → chunk-JXNFOOKC.js} +7 -7
  28. package/dist/{chunk-6N5ZCEAB.cjs → chunk-LEWW24RQ.cjs} +7 -7
  29. package/dist/{chunk-OSCW7I4H.js → chunk-M63GFNKV.js} +19 -4
  30. package/dist/chunk-MESKS6AI.js +0 -0
  31. package/dist/{chunk-CVCE7TW5.js → chunk-NKPTXTTS.js} +3 -3
  32. package/dist/{chunk-2LNE4PWB.cjs → chunk-NTD3NPRX.cjs} +3 -3
  33. package/dist/{chunk-2OZPOWFB.js → chunk-O3A3DBSZ.js} +3 -3
  34. package/dist/chunk-OJCCV65P.cjs +1 -0
  35. package/dist/{chunk-B6OKVLC7.js → chunk-OULTSBKU.js} +3 -3
  36. package/dist/{chunk-TE7KVFE4.cjs → chunk-P747CRAY.cjs} +9 -9
  37. package/dist/{chunk-DL2PGB5G.js → chunk-RGKWNK4T.js} +58 -58
  38. package/dist/{chunk-DOLWSO7A.js → chunk-RVRVGG73.js} +4 -4
  39. package/dist/{chunk-3YZSUDZ2.js → chunk-SMW6ZWMH.js} +3 -3
  40. package/dist/{chunk-AQXNEV6J.cjs → chunk-SNIHUKDA.cjs} +16 -16
  41. package/dist/{chunk-OMV5MUTM.js → chunk-SO5UAGIU.js} +15 -15
  42. package/dist/{chunk-KZVHC4FL.js → chunk-TDYPY2J7.js} +8 -8
  43. package/dist/{chunk-QZO57TPX.js → chunk-TJHYSSBZ.js} +3 -3
  44. package/dist/{chunk-K3AVOT6L.cjs → chunk-TK44VBIE.cjs} +22 -7
  45. package/dist/{chunk-ZU3XQZ63.cjs → chunk-UBOXW5WO.cjs} +63 -63
  46. package/dist/{chunk-UCW25LL6.js → chunk-UGF35NSE.js} +75 -75
  47. package/dist/{chunk-LCDHTLSG.cjs → chunk-VFTT3Q4B.cjs} +4 -4
  48. package/dist/{chunk-5BNIIDQD.cjs → chunk-WDDXU3OH.cjs} +14 -9
  49. package/dist/{chunk-JB5XANQY.js → chunk-WKCQ6VGW.js} +15 -11
  50. package/dist/{chunk-XARBUUIE.cjs → chunk-WVLSQO6K.cjs} +9 -9
  51. package/dist/chunk-XWY4DF37.js +1143 -0
  52. package/dist/{chunk-EFPWXJAJ.cjs → chunk-ZJWEVFAO.cjs} +12 -12
  53. package/dist/components/alert/index.cjs +7 -8
  54. package/dist/components/alert/index.d.cts +1 -1
  55. package/dist/components/alert/index.d.ts +1 -1
  56. package/dist/components/alert/index.js +6 -7
  57. package/dist/components/avatar/index.cjs +4 -5
  58. package/dist/components/avatar/index.d.cts +3 -3
  59. package/dist/components/avatar/index.d.ts +3 -3
  60. package/dist/components/avatar/index.js +3 -4
  61. package/dist/components/badge/index.cjs +3 -4
  62. package/dist/components/badge/index.d.cts +1 -1
  63. package/dist/components/badge/index.d.ts +1 -1
  64. package/dist/components/badge/index.js +2 -3
  65. package/dist/components/button/index.cjs +6 -7
  66. package/dist/components/button/index.d.cts +168 -168
  67. package/dist/components/button/index.d.ts +168 -168
  68. package/dist/components/button/index.js +5 -6
  69. package/dist/components/card/index.cjs +5 -6
  70. package/dist/components/card/index.d.cts +169 -169
  71. package/dist/components/card/index.d.ts +169 -169
  72. package/dist/components/card/index.js +4 -5
  73. package/dist/components/checkbox/index.cjs +5 -6
  74. package/dist/components/checkbox/index.d.cts +336 -336
  75. package/dist/components/checkbox/index.d.ts +336 -336
  76. package/dist/components/checkbox/index.js +4 -5
  77. package/dist/components/chip/index.cjs +7 -8
  78. package/dist/components/chip/index.d.cts +169 -169
  79. package/dist/components/chip/index.d.ts +169 -169
  80. package/dist/components/chip/index.js +6 -7
  81. package/dist/components/divider/index.cjs +3 -4
  82. package/dist/components/divider/index.d.cts +1 -1
  83. package/dist/components/divider/index.d.ts +1 -1
  84. package/dist/components/divider/index.js +2 -3
  85. package/dist/components/field-group/index.cjs +5 -6
  86. package/dist/components/field-group/index.d.cts +6 -6
  87. package/dist/components/field-group/index.d.ts +6 -6
  88. package/dist/components/field-group/index.js +4 -5
  89. package/dist/components/input-otp/index.cjs +3 -4
  90. package/dist/components/input-otp/index.d.cts +1 -1
  91. package/dist/components/input-otp/index.d.ts +1 -1
  92. package/dist/components/input-otp/index.js +2 -3
  93. package/dist/components/radio/index.cjs +5 -6
  94. package/dist/components/radio/index.d.cts +336 -336
  95. package/dist/components/radio/index.d.ts +336 -336
  96. package/dist/components/radio/index.js +4 -5
  97. package/dist/components/select/index.cjs +47 -0
  98. package/dist/components/select/index.d.cts +519 -0
  99. package/dist/components/select/index.d.ts +519 -0
  100. package/dist/components/select/index.js +47 -0
  101. package/dist/components/skeleton/index.cjs +3 -4
  102. package/dist/components/skeleton/index.d.cts +1 -1
  103. package/dist/components/skeleton/index.d.ts +1 -1
  104. package/dist/components/skeleton/index.js +2 -3
  105. package/dist/components/spinner/index.cjs +4 -5
  106. package/dist/components/spinner/index.d.cts +1 -1
  107. package/dist/components/spinner/index.d.ts +1 -1
  108. package/dist/components/spinner/index.js +3 -4
  109. package/dist/components/switch/index.cjs +5 -6
  110. package/dist/components/switch/index.d.cts +338 -338
  111. package/dist/components/switch/index.d.ts +338 -338
  112. package/dist/components/switch/index.js +4 -5
  113. package/dist/components/text-area/index.cjs +4 -5
  114. package/dist/components/text-area/index.js +3 -4
  115. package/dist/components/text-field/index.cjs +3 -4
  116. package/dist/components/text-field/index.d.cts +3 -3
  117. package/dist/components/text-field/index.d.ts +3 -3
  118. package/dist/components/text-field/index.js +2 -3
  119. package/dist/components/typography/index.cjs +3 -4
  120. package/dist/components/typography/index.d.cts +2 -2
  121. package/dist/components/typography/index.d.ts +2 -2
  122. package/dist/components/typography/index.js +2 -3
  123. package/dist/components/view/index.cjs +3 -4
  124. package/dist/components/view/index.d.cts +6 -6
  125. package/dist/components/view/index.d.ts +6 -6
  126. package/dist/components/view/index.js +2 -3
  127. package/dist/index.cjs +64 -28
  128. package/dist/index.d.cts +1 -0
  129. package/dist/index.d.ts +1 -0
  130. package/dist/index.js +80 -44
  131. package/dist/system/index.cjs +10 -10
  132. package/dist/system/index.d.cts +15 -2
  133. package/dist/system/index.d.ts +15 -2
  134. package/dist/system/index.js +8 -8
  135. package/dist/theme/index.cjs +4 -3
  136. package/dist/theme/index.d.cts +21 -1
  137. package/dist/theme/index.d.ts +21 -1
  138. package/dist/theme/index.js +3 -2
  139. package/package.json +11 -1
  140. package/dist/chunk-FJ5TLRT3.js +0 -21
  141. package/dist/chunk-HT7H35GU.cjs +0 -21
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  createRecipe
6
6
  } from "./chunk-4GTAZM2C.js";
7
- import {
8
- useStyleProps
9
- } from "./chunk-OSCW7I4H.js";
10
7
  import {
11
8
  useXAUITheme
12
9
  } from "./chunk-A3EGFI6T.js";
10
+ import {
11
+ useStyleProps
12
+ } from "./chunk-M63GFNKV.js";
13
13
 
14
14
  // src/components/divider/divider.tsx
15
15
  import { forwardRef } from "react";
@@ -5,13 +5,13 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk6N5ZCEABcjs = require('./chunk-6N5ZCEAB.cjs');
8
+ var _chunkLEWW24RQcjs = require('./chunk-LEWW24RQ.cjs');
9
9
 
10
10
 
11
11
  var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
12
12
 
13
13
 
14
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
14
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
15
15
 
16
16
  // src/components/text-area/text-area-field.tsx
17
17
  var _react = require('react');
@@ -23,9 +23,9 @@ var [TextAreaProvider, useTextArea] = _chunk54FJOKANcjs.createSlotContext.call(v
23
23
  var _jsxruntime = require('react/jsx-runtime');
24
24
  var TextAreaField = _react.forwardRef.call(void 0,
25
25
  function TextAreaField2({ style, scrollEnabled, ...props }, ref) {
26
- const { textAreaStyle, textArea } = _chunk6N5ZCEABcjs.useTextField.call(void 0, );
26
+ const { textAreaStyle, textArea } = _chunkLEWW24RQcjs.useTextField.call(void 0, );
27
27
  const { rows, maxRows } = useTextArea();
28
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
28
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
29
29
  const height = _react.useMemo.call(void 0, () => {
30
30
  const chrome = textArea.paddingVertical * 2;
31
31
  return {
@@ -37,7 +37,7 @@ var TextAreaField = _react.forwardRef.call(void 0,
37
37
  };
38
38
  }, [rows, maxRows, textArea]);
39
39
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
40
- _chunk6N5ZCEABcjs.TextFieldField,
40
+ _chunkLEWW24RQcjs.TextFieldField,
41
41
  {
42
42
  ref,
43
43
  multiline: true,
@@ -56,16 +56,16 @@ TextAreaField.displayName = "XAUI.TextArea.Field";
56
56
  var DEFAULT_ROWS = 3;
57
57
  var TextAreaRoot = _react.forwardRef.call(void 0, function TextArea({ rows = DEFAULT_ROWS, maxRows, children, ...props }, ref) {
58
58
  const context = _react.useMemo.call(void 0, () => ({ rows, maxRows }), [rows, maxRows]);
59
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6N5ZCEABcjs.TextFieldRoot, { ref, ...props, children }) });
59
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLEWW24RQcjs.TextFieldRoot, { ref, ...props, children }) });
60
60
  });
61
61
  TextAreaRoot.displayName = "XAUI.TextArea.Root";
62
62
 
63
63
  // src/components/text-area/index.ts
64
64
  var TextArea2 = Object.assign(TextAreaRoot, {
65
- Label: _chunk6N5ZCEABcjs.TextFieldLabel,
65
+ Label: _chunkLEWW24RQcjs.TextFieldLabel,
66
66
  Field: TextAreaField,
67
- Description: _chunk6N5ZCEABcjs.TextFieldDescription,
68
- Error: _chunk6N5ZCEABcjs.TextFieldError
67
+ Description: _chunkLEWW24RQcjs.TextFieldDescription,
68
+ Error: _chunkLEWW24RQcjs.TextFieldError
69
69
  });
70
70
 
71
71
 
@@ -1,10 +1,10 @@
1
1
  import { useControllableState } from "./chunk-F6W3JQ7K.js";
2
- import { PressableFeedback } from "./chunk-UCW25LL6.js";
2
+ import { PressableFeedback } from "./chunk-UGF35NSE.js";
3
3
  import { usePressState } from "./chunk-423RQBOX.js";
4
4
  import { childrenToString, createSlotContext } from "./chunk-YXPYOOHU.js";
5
5
  import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
6
- import { useStyleProps } from "./chunk-OSCW7I4H.js";
7
6
  import { useXAUITheme } from "./chunk-A3EGFI6T.js";
7
+ import { useStyleProps } from "./chunk-M63GFNKV.js";
8
8
 
9
9
  // src/components/switch/switch-label.tsx
10
10
  import { forwardRef } from "react";
@@ -82,15 +82,15 @@ var SwitchThumb = forwardRef2(function SwitchThumb2({
82
82
  });
83
83
  });
84
84
  SwitchThumb.displayName = "XAUI.Switch.Thumb";
85
- const _worklet_4740213529994_init_data = {
86
- code: "function chunkDL2PGB5GJs1(){const{withTiming,isSelected,SWITCH_DURATION}=this.__closure;return withTiming(isSelected?1:0,{duration:SWITCH_DURATION});}",
87
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-DL2PGB5G.js",
88
- sourceMap: "{\"version\":3,\"names\":[\"chunkDL2PGB5GJs1\",\"withTiming\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-DL2PGB5G.js\"],\"mappings\":\"AA4FmC,SAAAA,gBAAMA,CAAA,QAAAC,UAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAErC,MAAO,CAAAH,UAAU,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACtE\",\"ignoreList\":[]}"
85
+ const _worklet_5122025712059_init_data = {
86
+ code: "function chunkRGKWNK4TJs1(){const{withTiming,isSelected,SWITCH_DURATION}=this.__closure;return withTiming(isSelected?1:0,{duration:SWITCH_DURATION});}",
87
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.js",
88
+ sourceMap: "{\"version\":3,\"names\":[\"chunkRGKWNK4TJs1\",\"withTiming\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.js\"],\"mappings\":\"AA4FmC,SAAAA,gBAAMA,CAAA,QAAAC,UAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAErC,MAAO,CAAAH,UAAU,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACtE\",\"ignoreList\":[]}"
89
89
  };
90
- const _worklet_8049726790376_init_data = {
91
- code: "function chunkDL2PGB5GJs2(){const{progress,distance,interpolateColor,colors}=this.__closure;return{transform:[{translateX:progress.value*distance}],backgroundColor:interpolateColor(progress.value,[0,1],[colors.off,colors.on])};}",
92
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-DL2PGB5G.js",
93
- sourceMap: "{\"version\":3,\"names\":[\"chunkDL2PGB5GJs2\",\"progress\",\"distance\",\"interpolateColor\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-DL2PGB5G.js\"],\"mappings\":\"AAgGyC,SAAAA,gBAAMA,CAAA,QAAAC,QAAA,CAAAC,QAAA,CAAAC,gBAAA,CAAAC,MAAA,OAAAC,SAAA,CAE3C,MAAO,CACLC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEN,QAAQ,CAACO,KAAK,CAAGN,QAAS,CAAC,CAAC,CACtDO,eAAe,CAAEN,gBAAgB,CAC/BF,QAAQ,CAACO,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACJ,MAAM,CAACM,GAAG,CAAEN,MAAM,CAACO,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
90
+ const _worklet_3210226997465_init_data = {
91
+ code: "function chunkRGKWNK4TJs2(){const{progress,distance,interpolateColor,colors}=this.__closure;return{transform:[{translateX:progress.value*distance}],backgroundColor:interpolateColor(progress.value,[0,1],[colors.off,colors.on])};}",
92
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.js",
93
+ sourceMap: "{\"version\":3,\"names\":[\"chunkRGKWNK4TJs2\",\"progress\",\"distance\",\"interpolateColor\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.js\"],\"mappings\":\"AAgGyC,SAAAA,gBAAMA,CAAA,QAAAC,QAAA,CAAAC,QAAA,CAAAC,gBAAA,CAAAC,MAAA,OAAAC,SAAA,CAE3C,MAAO,CACLC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEN,QAAQ,CAACO,KAAK,CAAGN,QAAS,CAAC,CAAC,CACtDO,eAAe,CAAEN,gBAAgB,CAC/BF,QAAQ,CAACO,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACJ,MAAM,CAACM,GAAG,CAAEN,MAAM,CAACO,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
94
94
  };
95
95
  var SlidingThumb = forwardRef2(function SlidingThumb2({
96
96
  style,
@@ -100,43 +100,43 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
100
100
  children,
101
101
  ...rest
102
102
  }, ref) {
103
- const progress = useDerivedValue(function chunkDL2PGB5GJs1Factory({
104
- _worklet_4740213529994_init_data,
103
+ const progress = useDerivedValue(function chunkRGKWNK4TJs1Factory({
104
+ _worklet_5122025712059_init_data,
105
105
  withTiming,
106
106
  isSelected,
107
107
  SWITCH_DURATION
108
108
  }) {
109
109
  const _e = [new global.Error(), -4, -27];
110
- const chunkDL2PGB5GJs1 = function () {
110
+ const chunkRGKWNK4TJs1 = function () {
111
111
  return withTiming(isSelected ? 1 : 0, {
112
112
  duration: SWITCH_DURATION
113
113
  });
114
114
  };
115
- chunkDL2PGB5GJs1.__closure = {
115
+ chunkRGKWNK4TJs1.__closure = {
116
116
  withTiming,
117
117
  isSelected,
118
118
  SWITCH_DURATION
119
119
  };
120
- chunkDL2PGB5GJs1.__workletHash = 4740213529994;
121
- chunkDL2PGB5GJs1.__pluginVersion = "0.7.4";
122
- chunkDL2PGB5GJs1.__initData = _worklet_4740213529994_init_data;
123
- chunkDL2PGB5GJs1.__stackDetails = _e;
124
- return chunkDL2PGB5GJs1;
120
+ chunkRGKWNK4TJs1.__workletHash = 5122025712059;
121
+ chunkRGKWNK4TJs1.__pluginVersion = "0.7.4";
122
+ chunkRGKWNK4TJs1.__initData = _worklet_5122025712059_init_data;
123
+ chunkRGKWNK4TJs1.__stackDetails = _e;
124
+ return chunkRGKWNK4TJs1;
125
125
  }({
126
- _worklet_4740213529994_init_data,
126
+ _worklet_5122025712059_init_data,
127
127
  withTiming,
128
128
  isSelected,
129
129
  SWITCH_DURATION
130
130
  }), [isSelected]);
131
- const animatedStyle = useAnimatedStyle(function chunkDL2PGB5GJs2Factory({
132
- _worklet_8049726790376_init_data,
131
+ const animatedStyle = useAnimatedStyle(function chunkRGKWNK4TJs2Factory({
132
+ _worklet_3210226997465_init_data,
133
133
  progress,
134
134
  distance,
135
135
  interpolateColor,
136
136
  colors
137
137
  }) {
138
138
  const _e = [new global.Error(), -5, -27];
139
- const chunkDL2PGB5GJs2 = function () {
139
+ const chunkRGKWNK4TJs2 = function () {
140
140
  return {
141
141
  transform: [{
142
142
  translateX: progress.value * distance
@@ -144,19 +144,19 @@ var SlidingThumb = forwardRef2(function SlidingThumb2({
144
144
  backgroundColor: interpolateColor(progress.value, [0, 1], [colors.off, colors.on])
145
145
  };
146
146
  };
147
- chunkDL2PGB5GJs2.__closure = {
147
+ chunkRGKWNK4TJs2.__closure = {
148
148
  progress,
149
149
  distance,
150
150
  interpolateColor,
151
151
  colors
152
152
  };
153
- chunkDL2PGB5GJs2.__workletHash = 8049726790376;
154
- chunkDL2PGB5GJs2.__pluginVersion = "0.7.4";
155
- chunkDL2PGB5GJs2.__initData = _worklet_8049726790376_init_data;
156
- chunkDL2PGB5GJs2.__stackDetails = _e;
157
- return chunkDL2PGB5GJs2;
153
+ chunkRGKWNK4TJs2.__workletHash = 3210226997465;
154
+ chunkRGKWNK4TJs2.__pluginVersion = "0.7.4";
155
+ chunkRGKWNK4TJs2.__initData = _worklet_3210226997465_init_data;
156
+ chunkRGKWNK4TJs2.__stackDetails = _e;
157
+ return chunkRGKWNK4TJs2;
158
158
  }({
159
- _worklet_8049726790376_init_data,
159
+ _worklet_3210226997465_init_data,
160
160
  progress,
161
161
  distance,
162
162
  interpolateColor,
@@ -208,15 +208,15 @@ var SwitchTrack = forwardRef3(function SwitchTrack2({
208
208
  });
209
209
  });
210
210
  SwitchTrack.displayName = "XAUI.Switch.Track";
211
- const _worklet_6970483984392_init_data = {
212
- code: "function chunkDL2PGB5GJs3(){const{withTiming2,isSelected,SWITCH_DURATION}=this.__closure;return withTiming2(isSelected?1:0,{duration:SWITCH_DURATION});}",
213
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-DL2PGB5G.js",
214
- sourceMap: "{\"version\":3,\"names\":[\"chunkDL2PGB5GJs3\",\"withTiming2\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-DL2PGB5G.js\"],\"mappings\":\"AAqJoC,SAAAA,gBAAMA,CAAA,QAAAC,WAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEtC,MAAO,CAAAH,WAAW,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACvE\",\"ignoreList\":[]}"
211
+ const _worklet_3849939612857_init_data = {
212
+ code: "function chunkRGKWNK4TJs3(){const{withTiming2,isSelected,SWITCH_DURATION}=this.__closure;return withTiming2(isSelected?1:0,{duration:SWITCH_DURATION});}",
213
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.js",
214
+ sourceMap: "{\"version\":3,\"names\":[\"chunkRGKWNK4TJs3\",\"withTiming2\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.js\"],\"mappings\":\"AAqJoC,SAAAA,gBAAMA,CAAA,QAAAC,WAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEtC,MAAO,CAAAH,WAAW,CAACC,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEG,QAAQ,CAAEF,eAAgB,CAAC,CAAC,CACvE\",\"ignoreList\":[]}"
215
215
  };
216
- const _worklet_13682578515246_init_data = {
217
- code: "function chunkDL2PGB5GJs4(){const{interpolateColor2,progress,colors}=this.__closure;return{backgroundColor:interpolateColor2(progress.value,[0,1],[colors.off,colors.on])};}",
218
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-DL2PGB5G.js",
219
- sourceMap: "{\"version\":3,\"names\":[\"chunkDL2PGB5GJs4\",\"interpolateColor2\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-DL2PGB5G.js\"],\"mappings\":\"AAyJ0C,SAAAA,gBAAMA,CAAA,QAAAC,iBAAA,CAAAC,QAAA,CAAAC,MAAA,OAAAC,SAAA,CAE5C,MAAO,CACLC,eAAe,CAAEJ,iBAAiB,CAChCC,QAAQ,CAACI,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACH,MAAM,CAACI,GAAG,CAAEJ,MAAM,CAACK,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
216
+ const _worklet_4205781271071_init_data = {
217
+ code: "function chunkRGKWNK4TJs4(){const{interpolateColor2,progress,colors}=this.__closure;return{backgroundColor:interpolateColor2(progress.value,[0,1],[colors.off,colors.on])};}",
218
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.js",
219
+ sourceMap: "{\"version\":3,\"names\":[\"chunkRGKWNK4TJs4\",\"interpolateColor2\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-RGKWNK4T.js\"],\"mappings\":\"AAyJ0C,SAAAA,gBAAMA,CAAA,QAAAC,iBAAA,CAAAC,QAAA,CAAAC,MAAA,OAAAC,SAAA,CAE5C,MAAO,CACLC,eAAe,CAAEJ,iBAAiB,CAChCC,QAAQ,CAACI,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACH,MAAM,CAACI,GAAG,CAAEJ,MAAM,CAACK,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
220
220
  };
221
221
  var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
222
222
  style,
@@ -225,58 +225,58 @@ var CrossfadingTrack = forwardRef3(function CrossfadingTrack2({
225
225
  children,
226
226
  ...rest
227
227
  }, ref) {
228
- const progress = useDerivedValue2(function chunkDL2PGB5GJs3Factory({
229
- _worklet_6970483984392_init_data,
228
+ const progress = useDerivedValue2(function chunkRGKWNK4TJs3Factory({
229
+ _worklet_3849939612857_init_data,
230
230
  withTiming2,
231
231
  isSelected,
232
232
  SWITCH_DURATION
233
233
  }) {
234
234
  const _e = [new global.Error(), -4, -27];
235
- const chunkDL2PGB5GJs3 = function () {
235
+ const chunkRGKWNK4TJs3 = function () {
236
236
  return withTiming2(isSelected ? 1 : 0, {
237
237
  duration: SWITCH_DURATION
238
238
  });
239
239
  };
240
- chunkDL2PGB5GJs3.__closure = {
240
+ chunkRGKWNK4TJs3.__closure = {
241
241
  withTiming2,
242
242
  isSelected,
243
243
  SWITCH_DURATION
244
244
  };
245
- chunkDL2PGB5GJs3.__workletHash = 6970483984392;
246
- chunkDL2PGB5GJs3.__pluginVersion = "0.7.4";
247
- chunkDL2PGB5GJs3.__initData = _worklet_6970483984392_init_data;
248
- chunkDL2PGB5GJs3.__stackDetails = _e;
249
- return chunkDL2PGB5GJs3;
245
+ chunkRGKWNK4TJs3.__workletHash = 3849939612857;
246
+ chunkRGKWNK4TJs3.__pluginVersion = "0.7.4";
247
+ chunkRGKWNK4TJs3.__initData = _worklet_3849939612857_init_data;
248
+ chunkRGKWNK4TJs3.__stackDetails = _e;
249
+ return chunkRGKWNK4TJs3;
250
250
  }({
251
- _worklet_6970483984392_init_data,
251
+ _worklet_3849939612857_init_data,
252
252
  withTiming2,
253
253
  isSelected,
254
254
  SWITCH_DURATION
255
255
  }), [isSelected]);
256
- const animatedStyle = useAnimatedStyle2(function chunkDL2PGB5GJs4Factory({
257
- _worklet_13682578515246_init_data,
256
+ const animatedStyle = useAnimatedStyle2(function chunkRGKWNK4TJs4Factory({
257
+ _worklet_4205781271071_init_data,
258
258
  interpolateColor2,
259
259
  progress,
260
260
  colors
261
261
  }) {
262
262
  const _e = [new global.Error(), -4, -27];
263
- const chunkDL2PGB5GJs4 = function () {
263
+ const chunkRGKWNK4TJs4 = function () {
264
264
  return {
265
265
  backgroundColor: interpolateColor2(progress.value, [0, 1], [colors.off, colors.on])
266
266
  };
267
267
  };
268
- chunkDL2PGB5GJs4.__closure = {
268
+ chunkRGKWNK4TJs4.__closure = {
269
269
  interpolateColor2,
270
270
  progress,
271
271
  colors
272
272
  };
273
- chunkDL2PGB5GJs4.__workletHash = 13682578515246;
274
- chunkDL2PGB5GJs4.__pluginVersion = "0.7.4";
275
- chunkDL2PGB5GJs4.__initData = _worklet_13682578515246_init_data;
276
- chunkDL2PGB5GJs4.__stackDetails = _e;
277
- return chunkDL2PGB5GJs4;
273
+ chunkRGKWNK4TJs4.__workletHash = 4205781271071;
274
+ chunkRGKWNK4TJs4.__pluginVersion = "0.7.4";
275
+ chunkRGKWNK4TJs4.__initData = _worklet_4205781271071_init_data;
276
+ chunkRGKWNK4TJs4.__stackDetails = _e;
277
+ return chunkRGKWNK4TJs4;
278
278
  }({
279
- _worklet_13682578515246_init_data,
279
+ _worklet_4205781271071_init_data,
280
280
  interpolateColor2,
281
281
  progress,
282
282
  colors
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-F6W3JQ7K.js";
7
7
  import {
8
8
  PressableFeedback
9
- } from "./chunk-UCW25LL6.js";
9
+ } from "./chunk-UGF35NSE.js";
10
10
  import {
11
11
  usePressState
12
12
  } from "./chunk-423RQBOX.js";
@@ -18,12 +18,12 @@ import {
18
18
  createRecipe,
19
19
  radiusAxis
20
20
  } from "./chunk-4GTAZM2C.js";
21
- import {
22
- useStyleProps
23
- } from "./chunk-OSCW7I4H.js";
24
21
  import {
25
22
  useXAUITheme
26
23
  } from "./chunk-A3EGFI6T.js";
24
+ import {
25
+ useStyleProps
26
+ } from "./chunk-M63GFNKV.js";
27
27
 
28
28
  // src/components/radio/radio-indicator.tsx
29
29
  import { forwardRef } from "react";
@@ -6,12 +6,12 @@ import {
6
6
  createRecipe,
7
7
  radiusAxis
8
8
  } from "./chunk-4GTAZM2C.js";
9
- import {
10
- useStyleProps
11
- } from "./chunk-OSCW7I4H.js";
12
9
  import {
13
10
  useXAUITheme
14
11
  } from "./chunk-A3EGFI6T.js";
12
+ import {
13
+ useStyleProps
14
+ } from "./chunk-M63GFNKV.js";
15
15
 
16
16
  // src/components/text-field/text-field-description.tsx
17
17
  import { forwardRef } from "react";
@@ -30,8 +30,8 @@ function _optionalChain(ops) {
30
30
  return value;
31
31
  }
32
32
  var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
33
- var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
34
33
  var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
34
+ var _chunkTK44VBIEcjs = require('./chunk-TK44VBIE.cjs');
35
35
 
36
36
  // src/components/skeleton/skeleton.tsx
37
37
  var _react = require('react');
@@ -95,7 +95,7 @@ var Skeleton = _react.forwardRef.call(void 0, function Skeleton2({
95
95
  ...props
96
96
  }, ref) {
97
97
  const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0);
98
- const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
98
+ const [styleProps, rest] = _chunkTK44VBIEcjs.useStyleProps.call(void 0, props);
99
99
  const selection = {
100
100
  radius
101
101
  };
@@ -132,10 +132,10 @@ var Skeleton = _react.forwardRef.call(void 0, function Skeleton2({
132
132
  });
133
133
  });
134
134
  Skeleton.displayName = "XAUI.Skeleton";
135
- const _worklet_16079110249654_init_data = {
136
- code: "function chunkAQXNEV6JCjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
137
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-AQXNEV6J.cjs",
138
- sourceMap: "{\"version\":3,\"names\":[\"chunkAQXNEV6JCjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-AQXNEV6J.cjs\"],\"mappings\":\"AAyF+E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
135
+ const _worklet_8636613549176_init_data = {
136
+ code: "function chunkSNIHUKDACjs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
137
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-SNIHUKDA.cjs",
138
+ sourceMap: "{\"version\":3,\"names\":[\"chunkSNIHUKDACjs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-SNIHUKDA.cjs\"],\"mappings\":\"AAyF+E,SAAAA,iBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
139
139
  };
140
140
  var PulsingBlock = _react.forwardRef.call(void 0, function PulsingBlock2({
141
141
  style,
@@ -151,26 +151,26 @@ var PulsingBlock = _react.forwardRef.call(void 0, function PulsingBlock2({
151
151
  true);
152
152
  return () => _reactnativereanimated.cancelAnimation.call(void 0, opacity);
153
153
  }, [opacity]);
154
- const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkAQXNEV6JCjs1Factory({
155
- _worklet_16079110249654_init_data,
154
+ const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkSNIHUKDACjs1Factory({
155
+ _worklet_8636613549176_init_data,
156
156
  opacity
157
157
  }) {
158
158
  const _e = [new global.Error(), -2, -27];
159
- const chunkAQXNEV6JCjs1 = function () {
159
+ const chunkSNIHUKDACjs1 = function () {
160
160
  return {
161
161
  opacity: opacity.value
162
162
  };
163
163
  };
164
- chunkAQXNEV6JCjs1.__closure = {
164
+ chunkSNIHUKDACjs1.__closure = {
165
165
  opacity
166
166
  };
167
- chunkAQXNEV6JCjs1.__workletHash = 16079110249654;
168
- chunkAQXNEV6JCjs1.__pluginVersion = "0.7.4";
169
- chunkAQXNEV6JCjs1.__initData = _worklet_16079110249654_init_data;
170
- chunkAQXNEV6JCjs1.__stackDetails = _e;
171
- return chunkAQXNEV6JCjs1;
167
+ chunkSNIHUKDACjs1.__workletHash = 8636613549176;
168
+ chunkSNIHUKDACjs1.__pluginVersion = "0.7.4";
169
+ chunkSNIHUKDACjs1.__initData = _worklet_8636613549176_init_data;
170
+ chunkSNIHUKDACjs1.__stackDetails = _e;
171
+ return chunkSNIHUKDACjs1;
172
172
  }({
173
- _worklet_16079110249654_init_data,
173
+ _worklet_8636613549176_init_data,
174
174
  opacity
175
175
  }), [opacity]);
176
176
  return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
@@ -1,8 +1,8 @@
1
1
  import { useControllableState } from "./chunk-F6W3JQ7K.js";
2
2
  import { createSlotContext } from "./chunk-YXPYOOHU.js";
3
3
  import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
4
- import { useStyleProps } from "./chunk-OSCW7I4H.js";
5
4
  import { useXAUITheme } from "./chunk-A3EGFI6T.js";
5
+ import { useStyleProps } from "./chunk-M63GFNKV.js";
6
6
 
7
7
  // src/components/input-otp/input-otp-box.tsx
8
8
  import { forwardRef as forwardRef3, useMemo } from "react";
@@ -40,10 +40,10 @@ function InputOTPCaret({
40
40
  });
41
41
  }
42
42
  InputOTPCaret.displayName = "XAUI.InputOTP.Caret";
43
- const _worklet_4716259308764_init_data = {
44
- code: "function chunkOMV5MUTMJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
45
- location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-OMV5MUTM.js",
46
- sourceMap: "{\"version\":3,\"names\":[\"chunkOMV5MUTMJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-OMV5MUTM.js\"],\"mappings\":\"AA8DyC,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
43
+ const _worklet_8081278029978_init_data = {
44
+ code: "function chunkSO5UAGIUJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
45
+ location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-SO5UAGIU.js",
46
+ sourceMap: "{\"version\":3,\"names\":[\"chunkSO5UAGIUJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-SO5UAGIU.js\"],\"mappings\":\"AA8DyC,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
47
47
  };
48
48
  function BlinkingCaret({
49
49
  style
@@ -56,26 +56,26 @@ function BlinkingCaret({
56
56
  }), -1, true);
57
57
  return () => cancelAnimation(opacity);
58
58
  }, [opacity]);
59
- const animatedStyle = useAnimatedStyle(function chunkOMV5MUTMJs1Factory({
60
- _worklet_4716259308764_init_data,
59
+ const animatedStyle = useAnimatedStyle(function chunkSO5UAGIUJs1Factory({
60
+ _worklet_8081278029978_init_data,
61
61
  opacity
62
62
  }) {
63
63
  const _e = [new global.Error(), -2, -27];
64
- const chunkOMV5MUTMJs1 = function () {
64
+ const chunkSO5UAGIUJs1 = function () {
65
65
  return {
66
66
  opacity: opacity.value
67
67
  };
68
68
  };
69
- chunkOMV5MUTMJs1.__closure = {
69
+ chunkSO5UAGIUJs1.__closure = {
70
70
  opacity
71
71
  };
72
- chunkOMV5MUTMJs1.__workletHash = 4716259308764;
73
- chunkOMV5MUTMJs1.__pluginVersion = "0.7.4";
74
- chunkOMV5MUTMJs1.__initData = _worklet_4716259308764_init_data;
75
- chunkOMV5MUTMJs1.__stackDetails = _e;
76
- return chunkOMV5MUTMJs1;
72
+ chunkSO5UAGIUJs1.__workletHash = 8081278029978;
73
+ chunkSO5UAGIUJs1.__pluginVersion = "0.7.4";
74
+ chunkSO5UAGIUJs1.__initData = _worklet_8081278029978_init_data;
75
+ chunkSO5UAGIUJs1.__stackDetails = _e;
76
+ return chunkSO5UAGIUJs1;
77
77
  }({
78
- _worklet_4716259308764_init_data,
78
+ _worklet_8081278029978_init_data,
79
79
  opacity
80
80
  }), [opacity]);
81
81
  return /* @__PURE__ */jsx(Animated.View, {
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-PPWXLZGL.js";
4
4
  import {
5
5
  Icon
6
- } from "./chunk-OWE5IID7.js";
6
+ } from "./chunk-HXW4ANVB.js";
7
7
  import {
8
8
  PressableFeedback
9
- } from "./chunk-UCW25LL6.js";
10
- import {
11
- usePressState
12
- } from "./chunk-423RQBOX.js";
9
+ } from "./chunk-UGF35NSE.js";
13
10
  import {
14
11
  warnDev
15
12
  } from "./chunk-EGLLDKN6.js";
13
+ import {
14
+ usePressState
15
+ } from "./chunk-423RQBOX.js";
16
16
  import {
17
17
  childrenToString,
18
18
  createSlotContext
@@ -21,12 +21,12 @@ import {
21
21
  createRecipe,
22
22
  radiusAxis
23
23
  } from "./chunk-4GTAZM2C.js";
24
- import {
25
- useStyleProps
26
- } from "./chunk-OSCW7I4H.js";
27
24
  import {
28
25
  useXAUITheme
29
26
  } from "./chunk-A3EGFI6T.js";
27
+ import {
28
+ useStyleProps
29
+ } from "./chunk-M63GFNKV.js";
30
30
 
31
31
  // src/components/button/button.context.ts
32
32
  var [ButtonProvider, useButton] = createSlotContext("Button");
@@ -6,12 +6,12 @@ import {
6
6
  createRecipe,
7
7
  radiusAxis
8
8
  } from "./chunk-4GTAZM2C.js";
9
- import {
10
- useStyleProps
11
- } from "./chunk-OSCW7I4H.js";
12
9
  import {
13
10
  useXAUITheme
14
11
  } from "./chunk-A3EGFI6T.js";
12
+ import {
13
+ useStyleProps
14
+ } from "./chunk-M63GFNKV.js";
15
15
 
16
16
  // src/components/badge/badge.tsx
17
17
  import { forwardRef, useMemo } from "react";
@@ -1,10 +1,24 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkHT7H35GUcjs = require('./chunk-HT7H35GU.cjs');
4
-
5
- // src/system/style-props/use-style-props.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/system/style-props/use-style-props.ts
6
2
  var _react = require('react');
7
3
 
4
+ // src/utils/stable-hash.ts
5
+ function canonical(value) {
6
+ if (value === null || typeof value !== "object")
7
+ return _nullishCoalesce(JSON.stringify(value), () => ( "null"));
8
+ if (Array.isArray(value)) return `[${value.map(canonical).join(",")}]`;
9
+ const entries = Object.entries(value).filter(([, v]) => typeof v !== "function").sort(([a], [b]) => a < b ? -1 : 1).map(([k, v]) => `${JSON.stringify(k)}:${canonical(v)}`);
10
+ return `{${entries.join(",")}}`;
11
+ }
12
+ function stableHash(value) {
13
+ const input = canonical(value);
14
+ let hash = 2166136261;
15
+ for (let i = 0; i < input.length; i++) {
16
+ hash ^= input.charCodeAt(i);
17
+ hash = Math.imul(hash, 16777619) >>> 0;
18
+ }
19
+ return hash.toString(36);
20
+ }
21
+
8
22
  // src/utils/style-props.ts
9
23
  var STYLE_PROP_KEYS = [
10
24
  // Flex and layout
@@ -170,10 +184,11 @@ function splitStyleProps(props) {
170
184
  // src/system/style-props/use-style-props.ts
171
185
  function useStyleProps(props) {
172
186
  const [styleProps, rest] = splitStyleProps(props);
173
- const key = _chunkHT7H35GUcjs.stableHash.call(void 0, styleProps);
187
+ const key = stableHash(styleProps);
174
188
  return [_react.useMemo.call(void 0, () => styleProps, [key]), rest];
175
189
  }
176
190
 
177
191
 
178
192
 
179
- exports.useStyleProps = useStyleProps;
193
+
194
+ exports.stableHash = stableHash; exports.useStyleProps = useStyleProps;