@xaui/native 0.9.1-alpha.30 → 0.9.1-alpha.31
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.
- package/dist/{chunk-6RVCGLKZ.js → chunk-42FMGB5M.js} +57 -57
- package/dist/chunk-AETWQQWU.cjs +92 -0
- package/dist/{chunk-ZSLNGBDS.cjs → chunk-JDFV4W6N.cjs} +57 -57
- package/dist/chunk-ZH5XVNHG.js +92 -0
- package/dist/components/alert/index.cjs +1 -1
- package/dist/components/alert/index.d.cts +1 -1
- package/dist/components/alert/index.d.ts +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.cjs +4 -4
- package/dist/components/button/index.d.cts +167 -167
- package/dist/components/button/index.d.ts +167 -167
- package/dist/components/button/index.js +3 -3
- package/dist/components/card/index.d.cts +169 -169
- package/dist/components/card/index.d.ts +169 -169
- package/dist/components/checkbox/index.cjs +3 -3
- package/dist/components/checkbox/index.d.cts +336 -336
- package/dist/components/checkbox/index.d.ts +336 -336
- package/dist/components/checkbox/index.js +2 -2
- package/dist/components/chip/index.cjs +3 -3
- package/dist/components/chip/index.d.cts +168 -168
- package/dist/components/chip/index.d.ts +168 -168
- package/dist/components/chip/index.js +2 -2
- package/dist/components/divider/index.cjs +13 -0
- package/dist/components/divider/index.d.cts +117 -0
- package/dist/components/divider/index.d.ts +117 -0
- package/dist/components/divider/index.js +13 -0
- package/dist/components/input/index.d.cts +3 -3
- package/dist/components/input/index.d.ts +3 -3
- package/dist/components/input-group/index.d.cts +6 -6
- package/dist/components/input-group/index.d.ts +6 -6
- package/dist/components/input-otp/index.d.cts +1 -1
- package/dist/components/input-otp/index.d.ts +1 -1
- package/dist/components/radio/index.cjs +3 -3
- package/dist/components/radio/index.d.cts +336 -336
- package/dist/components/radio/index.d.ts +336 -336
- package/dist/components/radio/index.js +2 -2
- package/dist/components/spinner/index.cjs +1 -1
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.ts +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/switch/index.cjs +3 -3
- package/dist/components/switch/index.d.cts +338 -338
- package/dist/components/switch/index.d.ts +338 -338
- package/dist/components/switch/index.js +2 -2
- package/dist/components/typography/index.d.cts +2 -2
- package/dist/components/typography/index.d.ts +2 -2
- package/dist/components/view/index.d.cts +6 -6
- package/dist/components/view/index.d.ts +6 -6
- package/dist/index.cjs +31 -25
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +31 -25
- package/dist/system/index.cjs +1 -1
- package/dist/system/index.d.cts +2 -2
- package/dist/system/index.d.ts +2 -2
- package/dist/system/index.js +1 -1
- package/package.json +11 -1
- package/dist/{chunk-NBFWWQFW.cjs → chunk-5PTBRJM7.cjs} +3 -3
- package/dist/{chunk-UBQLKIZC.cjs → chunk-ANNUYP55.cjs} +2 -2
- package/dist/{chunk-27ZRTZEE.js → chunk-IHOCANCQ.js} +3 -3
- package/dist/{chunk-E4TS6632.cjs → chunk-L7JN6OBQ.cjs} +2 -2
- package/dist/{chunk-GI24YJPE.js → chunk-MDVSCWJI.js} +3 -3
- package/dist/{chunk-YKL6XHM6.js → chunk-RDTKAAHX.js} +3 -3
- package/dist/{chunk-FMZQW35T.js → chunk-ZH6BHLQR.js} +3 -3
- package/dist/{chunk-KWCHSIMI.cjs → chunk-ZVWXM3UK.cjs} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
1
2
|
import { PressableFeedback } from "./chunk-BFMTUMTU.js";
|
|
2
3
|
import { usePressState } from "./chunk-423RQBOX.js";
|
|
3
|
-
import { useControllableState } from "./chunk-F6W3JQ7K.js";
|
|
4
4
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
5
5
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
6
6
|
import { childrenToString, createSlotContext } from "./chunk-E2CWBQTV.js";
|
|
@@ -82,15 +82,15 @@ var SwitchThumb = forwardRef2(function SwitchThumb2({
|
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
SwitchThumb.displayName = "XAUI.Switch.Thumb";
|
|
85
|
-
const
|
|
86
|
-
code: "function
|
|
87
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
88
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
85
|
+
const _worklet_8529533919367_init_data = {
|
|
86
|
+
code: "function chunk42FMGB5MJs1(){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-42FMGB5M.js",
|
|
88
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk42FMGB5MJs1\",\"withTiming\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-42FMGB5M.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
|
|
91
|
-
code: "function
|
|
92
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
93
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
90
|
+
const _worklet_5196381840933_init_data = {
|
|
91
|
+
code: "function chunk42FMGB5MJs2(){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-42FMGB5M.js",
|
|
93
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk42FMGB5MJs2\",\"progress\",\"distance\",\"interpolateColor\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-42FMGB5M.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
|
|
104
|
-
|
|
103
|
+
const progress = useDerivedValue(function chunk42FMGB5MJs1Factory({
|
|
104
|
+
_worklet_8529533919367_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
|
|
110
|
+
const chunk42FMGB5MJs1 = function () {
|
|
111
111
|
return withTiming(isSelected ? 1 : 0, {
|
|
112
112
|
duration: SWITCH_DURATION
|
|
113
113
|
});
|
|
114
114
|
};
|
|
115
|
-
|
|
115
|
+
chunk42FMGB5MJs1.__closure = {
|
|
116
116
|
withTiming,
|
|
117
117
|
isSelected,
|
|
118
118
|
SWITCH_DURATION
|
|
119
119
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
return
|
|
120
|
+
chunk42FMGB5MJs1.__workletHash = 8529533919367;
|
|
121
|
+
chunk42FMGB5MJs1.__pluginVersion = "0.7.4";
|
|
122
|
+
chunk42FMGB5MJs1.__initData = _worklet_8529533919367_init_data;
|
|
123
|
+
chunk42FMGB5MJs1.__stackDetails = _e;
|
|
124
|
+
return chunk42FMGB5MJs1;
|
|
125
125
|
}({
|
|
126
|
-
|
|
126
|
+
_worklet_8529533919367_init_data,
|
|
127
127
|
withTiming,
|
|
128
128
|
isSelected,
|
|
129
129
|
SWITCH_DURATION
|
|
130
130
|
}), [isSelected]);
|
|
131
|
-
const animatedStyle = useAnimatedStyle(function
|
|
132
|
-
|
|
131
|
+
const animatedStyle = useAnimatedStyle(function chunk42FMGB5MJs2Factory({
|
|
132
|
+
_worklet_5196381840933_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
|
|
139
|
+
const chunk42FMGB5MJs2 = 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
|
-
|
|
147
|
+
chunk42FMGB5MJs2.__closure = {
|
|
148
148
|
progress,
|
|
149
149
|
distance,
|
|
150
150
|
interpolateColor,
|
|
151
151
|
colors
|
|
152
152
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
return
|
|
153
|
+
chunk42FMGB5MJs2.__workletHash = 5196381840933;
|
|
154
|
+
chunk42FMGB5MJs2.__pluginVersion = "0.7.4";
|
|
155
|
+
chunk42FMGB5MJs2.__initData = _worklet_5196381840933_init_data;
|
|
156
|
+
chunk42FMGB5MJs2.__stackDetails = _e;
|
|
157
|
+
return chunk42FMGB5MJs2;
|
|
158
158
|
}({
|
|
159
|
-
|
|
159
|
+
_worklet_5196381840933_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
|
|
212
|
-
code: "function
|
|
213
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
214
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
211
|
+
const _worklet_844474600069_init_data = {
|
|
212
|
+
code: "function chunk42FMGB5MJs3(){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-42FMGB5M.js",
|
|
214
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk42FMGB5MJs3\",\"withTiming2\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-42FMGB5M.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
|
|
217
|
-
code: "function
|
|
218
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
219
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
216
|
+
const _worklet_2775350926179_init_data = {
|
|
217
|
+
code: "function chunk42FMGB5MJs4(){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-42FMGB5M.js",
|
|
219
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunk42FMGB5MJs4\",\"interpolateColor2\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-42FMGB5M.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
|
|
229
|
-
|
|
228
|
+
const progress = useDerivedValue2(function chunk42FMGB5MJs3Factory({
|
|
229
|
+
_worklet_844474600069_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
|
|
235
|
+
const chunk42FMGB5MJs3 = function () {
|
|
236
236
|
return withTiming2(isSelected ? 1 : 0, {
|
|
237
237
|
duration: SWITCH_DURATION
|
|
238
238
|
});
|
|
239
239
|
};
|
|
240
|
-
|
|
240
|
+
chunk42FMGB5MJs3.__closure = {
|
|
241
241
|
withTiming2,
|
|
242
242
|
isSelected,
|
|
243
243
|
SWITCH_DURATION
|
|
244
244
|
};
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return
|
|
245
|
+
chunk42FMGB5MJs3.__workletHash = 844474600069;
|
|
246
|
+
chunk42FMGB5MJs3.__pluginVersion = "0.7.4";
|
|
247
|
+
chunk42FMGB5MJs3.__initData = _worklet_844474600069_init_data;
|
|
248
|
+
chunk42FMGB5MJs3.__stackDetails = _e;
|
|
249
|
+
return chunk42FMGB5MJs3;
|
|
250
250
|
}({
|
|
251
|
-
|
|
251
|
+
_worklet_844474600069_init_data,
|
|
252
252
|
withTiming2,
|
|
253
253
|
isSelected,
|
|
254
254
|
SWITCH_DURATION
|
|
255
255
|
}), [isSelected]);
|
|
256
|
-
const animatedStyle = useAnimatedStyle2(function
|
|
257
|
-
|
|
256
|
+
const animatedStyle = useAnimatedStyle2(function chunk42FMGB5MJs4Factory({
|
|
257
|
+
_worklet_2775350926179_init_data,
|
|
258
258
|
interpolateColor2,
|
|
259
259
|
progress,
|
|
260
260
|
colors
|
|
261
261
|
}) {
|
|
262
262
|
const _e = [new global.Error(), -4, -27];
|
|
263
|
-
const
|
|
263
|
+
const chunk42FMGB5MJs4 = function () {
|
|
264
264
|
return {
|
|
265
265
|
backgroundColor: interpolateColor2(progress.value, [0, 1], [colors.off, colors.on])
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
chunk42FMGB5MJs4.__closure = {
|
|
269
269
|
interpolateColor2,
|
|
270
270
|
progress,
|
|
271
271
|
colors
|
|
272
272
|
};
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
return
|
|
273
|
+
chunk42FMGB5MJs4.__workletHash = 2775350926179;
|
|
274
|
+
chunk42FMGB5MJs4.__pluginVersion = "0.7.4";
|
|
275
|
+
chunk42FMGB5MJs4.__initData = _worklet_2775350926179_init_data;
|
|
276
|
+
chunk42FMGB5MJs4.__stackDetails = _e;
|
|
277
|
+
return chunk42FMGB5MJs4;
|
|
278
278
|
}({
|
|
279
|
-
|
|
279
|
+
_worklet_2775350926179_init_data,
|
|
280
280
|
interpolateColor2,
|
|
281
281
|
progress,
|
|
282
282
|
colors
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkGLGU2WFLcjs = require('./chunk-GLGU2WFL.cjs');
|
|
13
|
+
|
|
14
|
+
// src/components/divider/divider.tsx
|
|
15
|
+
var _react = require('react');
|
|
16
|
+
var _reactnative = require('react-native');
|
|
17
|
+
|
|
18
|
+
// src/components/divider/divider.recipe.ts
|
|
19
|
+
|
|
20
|
+
var SLOTS = ["root"];
|
|
21
|
+
var VARIANT_TOKENS = { default: { bg: "separator" } };
|
|
22
|
+
var HAIRLINE = _reactnative.StyleSheet.hairlineWidth;
|
|
23
|
+
function thickness(of) {
|
|
24
|
+
return (theme) => {
|
|
25
|
+
const value = of(theme);
|
|
26
|
+
return { root: { height: value, width: value } };
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var dividerRecipe = _chunkFNEUOBCVcjs.createRecipe.call(void 0, {
|
|
30
|
+
slots: SLOTS,
|
|
31
|
+
base: () => ({
|
|
32
|
+
// One line for both orientations. In a column the cross axis is horizontal, so a
|
|
33
|
+
// stretched child is full width; in a row it is vertical, so the same word makes a
|
|
34
|
+
// vertical rule full height. `stretch` is ignored on the axis the thickness fixes,
|
|
35
|
+
// which is what lets one declaration serve both.
|
|
36
|
+
root: { alignSelf: "stretch" }
|
|
37
|
+
}),
|
|
38
|
+
variantTokens: VARIANT_TOKENS,
|
|
39
|
+
paint: (_theme, colors) => ({ root: { backgroundColor: colors.bg } }),
|
|
40
|
+
variants: {
|
|
41
|
+
// Multiples of `borderWidth.default`, so a theme that thickens its edges thickens
|
|
42
|
+
// these with it. Only the hairline stands outside the scale, being a device pixel.
|
|
43
|
+
size: {
|
|
44
|
+
xs: thickness(() => HAIRLINE),
|
|
45
|
+
sm: thickness((theme) => theme.borderWidth.default),
|
|
46
|
+
md: thickness((theme) => theme.borderWidth.default * 2),
|
|
47
|
+
lg: thickness((theme) => theme.borderWidth.default * 6)
|
|
48
|
+
},
|
|
49
|
+
/** Second, so it releases the axis `size` had to write blind. */
|
|
50
|
+
orientation: {
|
|
51
|
+
horizontal: () => ({ root: { width: "auto" } }),
|
|
52
|
+
vertical: () => ({ root: { height: "auto" } })
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* `xs` where every other component defaults to `md`, and it is the one place in the
|
|
57
|
+
* library that departs from that: a rule you notice is a rule that is too thick, and
|
|
58
|
+
* the hairline is what a separator is at rest.
|
|
59
|
+
*
|
|
60
|
+
* `variant` is named here and nowhere else — there is one, the caller cannot choose it,
|
|
61
|
+
* and the recipe still needs it selected for `paint` and the tint to resolve.
|
|
62
|
+
*/
|
|
63
|
+
defaultVariants: { variant: "default", size: "xs", orientation: "horizontal" }
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// src/components/divider/divider.tsx
|
|
67
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
68
|
+
var Divider = _react.forwardRef.call(void 0, function Divider2({ children, orientation, size, color, asChild = false, style, ...props }, ref) {
|
|
69
|
+
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
70
|
+
const [styleProps, rest] = _chunkGLGU2WFLcjs.useStyleProps.call(void 0, props);
|
|
71
|
+
const selection = { orientation, size };
|
|
72
|
+
const styles = dividerRecipe.resolve({ theme, selection });
|
|
73
|
+
const tint = color ? dividerRecipe.tint({ theme, color, selection }) : void 0;
|
|
74
|
+
const Root = asChild ? _chunkZP2E2H2Gcjs.Slot : _reactnative.View;
|
|
75
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
76
|
+
Root,
|
|
77
|
+
{
|
|
78
|
+
ref,
|
|
79
|
+
accessibilityElementsHidden: true,
|
|
80
|
+
importantForAccessibility: "no",
|
|
81
|
+
...rest,
|
|
82
|
+
style: [styles.root, _optionalChain([tint, 'optionalAccess', _ => _.root]), styleProps, style],
|
|
83
|
+
children: asChild ? children : null
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
});
|
|
87
|
+
Divider.displayName = "XAUI.Divider";
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
exports.dividerRecipe = dividerRecipe; exports.Divider = Divider;
|
|
@@ -36,9 +36,9 @@ function _optionalChain(ops) {
|
|
|
36
36
|
}
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
|
+
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
39
40
|
var _chunkGPVNCJ3Zcjs = require('./chunk-GPVNCJ3Z.cjs');
|
|
40
41
|
var _chunk7DPL3ZDScjs = require('./chunk-7DPL3ZDS.cjs');
|
|
41
|
-
var _chunk7EIHHOHPcjs = require('./chunk-7EIHHOHP.cjs');
|
|
42
42
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
43
43
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
44
44
|
var _chunkZP2E2H2Gcjs = require('./chunk-ZP2E2H2G.cjs');
|
|
@@ -120,15 +120,15 @@ var SwitchThumb = _react.forwardRef.call(void 0, function SwitchThumb2({
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
SwitchThumb.displayName = "XAUI.Switch.Thumb";
|
|
123
|
-
const
|
|
124
|
-
code: "function
|
|
125
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
126
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
123
|
+
const _worklet_15306954733321_init_data = {
|
|
124
|
+
code: "function chunkJDFV4W6NCjs1(){const{_reactnativereanimated,isSelected,SWITCH_DURATION}=this.__closure;return _reactnativereanimated.withTiming.call(void 0,isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
125
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-JDFV4W6N.cjs",
|
|
126
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkJDFV4W6NCjs1\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-JDFV4W6N.cjs\"],\"mappings\":\"AA4FuE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEzE,MAAO,CAAAH,sBAAsB,CAACI,UAAU,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEJ,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEK,QAAQ,CAAEJ,eAAgB,CAAC,CAAC,CAC1G\",\"ignoreList\":[]}"
|
|
127
127
|
};
|
|
128
|
-
const
|
|
129
|
-
code: "function
|
|
130
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
131
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
128
|
+
const _worklet_1436101301763_init_data = {
|
|
129
|
+
code: "function chunkJDFV4W6NCjs2(){const{progress,distance,_reactnativereanimated,colors}=this.__closure;return{transform:[{translateX:progress.value*distance}],backgroundColor:_reactnativereanimated.interpolateColor.call(void 0,progress.value,[0,1],[colors.off,colors.on])};}",
|
|
130
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-JDFV4W6N.cjs",
|
|
131
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkJDFV4W6NCjs2\",\"progress\",\"distance\",\"_reactnativereanimated\",\"colors\",\"__closure\",\"transform\",\"translateX\",\"value\",\"backgroundColor\",\"interpolateColor\",\"call\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-JDFV4W6N.cjs\"],\"mappings\":\"AAgG6E,SAAAA,iBAAMA,CAAA,QAAAC,QAAA,CAAAC,QAAA,CAAAC,sBAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,MAAO,CACLC,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEN,QAAQ,CAACO,KAAK,CAAGN,QAAS,CAAC,CAAC,CACtDO,eAAe,CAAEN,sBAAsB,CAACO,gBAAgB,CAACC,IAAI,CAAC,IAAK,EAAC,CAClEV,QAAQ,CAACO,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACJ,MAAM,CAACQ,GAAG,CAAER,MAAM,CAACS,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
132
132
|
};
|
|
133
133
|
var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
134
134
|
style,
|
|
@@ -138,43 +138,43 @@ var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
|
138
138
|
children,
|
|
139
139
|
...rest
|
|
140
140
|
}, ref) {
|
|
141
|
-
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function
|
|
142
|
-
|
|
141
|
+
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function chunkJDFV4W6NCjs1Factory({
|
|
142
|
+
_worklet_15306954733321_init_data,
|
|
143
143
|
_reactnativereanimated,
|
|
144
144
|
isSelected,
|
|
145
145
|
SWITCH_DURATION
|
|
146
146
|
}) {
|
|
147
147
|
const _e = [new global.Error(), -4, -27];
|
|
148
|
-
const
|
|
148
|
+
const chunkJDFV4W6NCjs1 = function () {
|
|
149
149
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
150
150
|
duration: SWITCH_DURATION
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
|
|
153
|
+
chunkJDFV4W6NCjs1.__closure = {
|
|
154
154
|
_reactnativereanimated,
|
|
155
155
|
isSelected,
|
|
156
156
|
SWITCH_DURATION
|
|
157
157
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return
|
|
158
|
+
chunkJDFV4W6NCjs1.__workletHash = 15306954733321;
|
|
159
|
+
chunkJDFV4W6NCjs1.__pluginVersion = "0.7.4";
|
|
160
|
+
chunkJDFV4W6NCjs1.__initData = _worklet_15306954733321_init_data;
|
|
161
|
+
chunkJDFV4W6NCjs1.__stackDetails = _e;
|
|
162
|
+
return chunkJDFV4W6NCjs1;
|
|
163
163
|
}({
|
|
164
|
-
|
|
164
|
+
_worklet_15306954733321_init_data,
|
|
165
165
|
_reactnativereanimated,
|
|
166
166
|
isSelected,
|
|
167
167
|
SWITCH_DURATION
|
|
168
168
|
}), [isSelected]);
|
|
169
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
170
|
-
|
|
169
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkJDFV4W6NCjs2Factory({
|
|
170
|
+
_worklet_1436101301763_init_data,
|
|
171
171
|
progress,
|
|
172
172
|
distance,
|
|
173
173
|
_reactnativereanimated,
|
|
174
174
|
colors
|
|
175
175
|
}) {
|
|
176
176
|
const _e = [new global.Error(), -5, -27];
|
|
177
|
-
const
|
|
177
|
+
const chunkJDFV4W6NCjs2 = function () {
|
|
178
178
|
return {
|
|
179
179
|
transform: [{
|
|
180
180
|
translateX: progress.value * distance
|
|
@@ -182,19 +182,19 @@ var SlidingThumb = _react.forwardRef.call(void 0, function SlidingThumb2({
|
|
|
182
182
|
backgroundColor: _reactnativereanimated.interpolateColor.call(void 0, progress.value, [0, 1], [colors.off, colors.on])
|
|
183
183
|
};
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
chunkJDFV4W6NCjs2.__closure = {
|
|
186
186
|
progress,
|
|
187
187
|
distance,
|
|
188
188
|
_reactnativereanimated,
|
|
189
189
|
colors
|
|
190
190
|
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return
|
|
191
|
+
chunkJDFV4W6NCjs2.__workletHash = 1436101301763;
|
|
192
|
+
chunkJDFV4W6NCjs2.__pluginVersion = "0.7.4";
|
|
193
|
+
chunkJDFV4W6NCjs2.__initData = _worklet_1436101301763_init_data;
|
|
194
|
+
chunkJDFV4W6NCjs2.__stackDetails = _e;
|
|
195
|
+
return chunkJDFV4W6NCjs2;
|
|
196
196
|
}({
|
|
197
|
-
|
|
197
|
+
_worklet_1436101301763_init_data,
|
|
198
198
|
progress,
|
|
199
199
|
distance,
|
|
200
200
|
_reactnativereanimated,
|
|
@@ -243,15 +243,15 @@ var SwitchTrack = _react.forwardRef.call(void 0, function SwitchTrack2({
|
|
|
243
243
|
});
|
|
244
244
|
});
|
|
245
245
|
SwitchTrack.displayName = "XAUI.Switch.Track";
|
|
246
|
-
const
|
|
247
|
-
code: "function
|
|
248
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
249
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
246
|
+
const _worklet_13145782318795_init_data = {
|
|
247
|
+
code: "function chunkJDFV4W6NCjs3(){const{_reactnativereanimated,isSelected,SWITCH_DURATION}=this.__closure;return _reactnativereanimated.withTiming.call(void 0,isSelected?1:0,{duration:SWITCH_DURATION});}",
|
|
248
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-JDFV4W6N.cjs",
|
|
249
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkJDFV4W6NCjs3\",\"_reactnativereanimated\",\"isSelected\",\"SWITCH_DURATION\",\"__closure\",\"withTiming\",\"call\",\"duration\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-JDFV4W6N.cjs\"],\"mappings\":\"AAqJuE,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,OAAAC,SAAA,CAEzE,MAAO,CAAAH,sBAAsB,CAACI,UAAU,CAACC,IAAI,CAAC,IAAK,EAAC,CAAEJ,UAAU,CAAG,CAAC,CAAG,CAAC,CAAE,CAAEK,QAAQ,CAAEJ,eAAgB,CAAC,CAAC,CAC1G\",\"ignoreList\":[]}"
|
|
250
250
|
};
|
|
251
|
-
const
|
|
252
|
-
code: "function
|
|
253
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
254
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
251
|
+
const _worklet_15460961692709_init_data = {
|
|
252
|
+
code: "function chunkJDFV4W6NCjs4(){const{_reactnativereanimated,progress,colors}=this.__closure;return{backgroundColor:_reactnativereanimated.interpolateColor.call(void 0,progress.value,[0,1],[colors.off,colors.on])};}",
|
|
253
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-JDFV4W6N.cjs",
|
|
254
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkJDFV4W6NCjs4\",\"_reactnativereanimated\",\"progress\",\"colors\",\"__closure\",\"backgroundColor\",\"interpolateColor\",\"call\",\"value\",\"off\",\"on\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-JDFV4W6N.cjs\"],\"mappings\":\"AAyJ6E,SAAAA,iBAAMA,CAAA,QAAAC,sBAAA,CAAAC,QAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,MAAO,CACLC,eAAe,CAAEJ,sBAAsB,CAACK,gBAAgB,CAACC,IAAI,CAAC,IAAK,EAAC,CAClEL,QAAQ,CAACM,KAAK,CACd,CAAC,CAAC,CAAE,CAAC,CAAC,CACN,CAACL,MAAM,CAACM,GAAG,CAAEN,MAAM,CAACO,EAAE,CACxB,CACF,CAAC,CACH\",\"ignoreList\":[]}"
|
|
255
255
|
};
|
|
256
256
|
var CrossfadingTrack = _react.forwardRef.call(void 0, function CrossfadingTrack2({
|
|
257
257
|
style,
|
|
@@ -260,58 +260,58 @@ var CrossfadingTrack = _react.forwardRef.call(void 0, function CrossfadingTrack2
|
|
|
260
260
|
children,
|
|
261
261
|
...rest
|
|
262
262
|
}, ref) {
|
|
263
|
-
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function
|
|
264
|
-
|
|
263
|
+
const progress = _reactnativereanimated.useDerivedValue.call(void 0, function chunkJDFV4W6NCjs3Factory({
|
|
264
|
+
_worklet_13145782318795_init_data,
|
|
265
265
|
_reactnativereanimated,
|
|
266
266
|
isSelected,
|
|
267
267
|
SWITCH_DURATION
|
|
268
268
|
}) {
|
|
269
269
|
const _e = [new global.Error(), -4, -27];
|
|
270
|
-
const
|
|
270
|
+
const chunkJDFV4W6NCjs3 = function () {
|
|
271
271
|
return _reactnativereanimated.withTiming.call(void 0, isSelected ? 1 : 0, {
|
|
272
272
|
duration: SWITCH_DURATION
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
|
-
|
|
275
|
+
chunkJDFV4W6NCjs3.__closure = {
|
|
276
276
|
_reactnativereanimated,
|
|
277
277
|
isSelected,
|
|
278
278
|
SWITCH_DURATION
|
|
279
279
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
return
|
|
280
|
+
chunkJDFV4W6NCjs3.__workletHash = 13145782318795;
|
|
281
|
+
chunkJDFV4W6NCjs3.__pluginVersion = "0.7.4";
|
|
282
|
+
chunkJDFV4W6NCjs3.__initData = _worklet_13145782318795_init_data;
|
|
283
|
+
chunkJDFV4W6NCjs3.__stackDetails = _e;
|
|
284
|
+
return chunkJDFV4W6NCjs3;
|
|
285
285
|
}({
|
|
286
|
-
|
|
286
|
+
_worklet_13145782318795_init_data,
|
|
287
287
|
_reactnativereanimated,
|
|
288
288
|
isSelected,
|
|
289
289
|
SWITCH_DURATION
|
|
290
290
|
}), [isSelected]);
|
|
291
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
292
|
-
|
|
291
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkJDFV4W6NCjs4Factory({
|
|
292
|
+
_worklet_15460961692709_init_data,
|
|
293
293
|
_reactnativereanimated,
|
|
294
294
|
progress,
|
|
295
295
|
colors
|
|
296
296
|
}) {
|
|
297
297
|
const _e = [new global.Error(), -4, -27];
|
|
298
|
-
const
|
|
298
|
+
const chunkJDFV4W6NCjs4 = function () {
|
|
299
299
|
return {
|
|
300
300
|
backgroundColor: _reactnativereanimated.interpolateColor.call(void 0, progress.value, [0, 1], [colors.off, colors.on])
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
|
-
|
|
303
|
+
chunkJDFV4W6NCjs4.__closure = {
|
|
304
304
|
_reactnativereanimated,
|
|
305
305
|
progress,
|
|
306
306
|
colors
|
|
307
307
|
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return
|
|
308
|
+
chunkJDFV4W6NCjs4.__workletHash = 15460961692709;
|
|
309
|
+
chunkJDFV4W6NCjs4.__pluginVersion = "0.7.4";
|
|
310
|
+
chunkJDFV4W6NCjs4.__initData = _worklet_15460961692709_init_data;
|
|
311
|
+
chunkJDFV4W6NCjs4.__stackDetails = _e;
|
|
312
|
+
return chunkJDFV4W6NCjs4;
|
|
313
313
|
}({
|
|
314
|
-
|
|
314
|
+
_worklet_15460961692709_init_data,
|
|
315
315
|
_reactnativereanimated,
|
|
316
316
|
progress,
|
|
317
317
|
colors
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createRecipe
|
|
3
|
+
} from "./chunk-4GTAZM2C.js";
|
|
4
|
+
import {
|
|
5
|
+
useXAUITheme
|
|
6
|
+
} from "./chunk-A3EGFI6T.js";
|
|
7
|
+
import {
|
|
8
|
+
Slot
|
|
9
|
+
} from "./chunk-E2CWBQTV.js";
|
|
10
|
+
import {
|
|
11
|
+
useStyleProps
|
|
12
|
+
} from "./chunk-URSKA2VR.js";
|
|
13
|
+
|
|
14
|
+
// src/components/divider/divider.tsx
|
|
15
|
+
import { forwardRef } from "react";
|
|
16
|
+
import { View } from "react-native";
|
|
17
|
+
|
|
18
|
+
// src/components/divider/divider.recipe.ts
|
|
19
|
+
import { StyleSheet } from "react-native";
|
|
20
|
+
var SLOTS = ["root"];
|
|
21
|
+
var VARIANT_TOKENS = { default: { bg: "separator" } };
|
|
22
|
+
var HAIRLINE = StyleSheet.hairlineWidth;
|
|
23
|
+
function thickness(of) {
|
|
24
|
+
return (theme) => {
|
|
25
|
+
const value = of(theme);
|
|
26
|
+
return { root: { height: value, width: value } };
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var dividerRecipe = createRecipe({
|
|
30
|
+
slots: SLOTS,
|
|
31
|
+
base: () => ({
|
|
32
|
+
// One line for both orientations. In a column the cross axis is horizontal, so a
|
|
33
|
+
// stretched child is full width; in a row it is vertical, so the same word makes a
|
|
34
|
+
// vertical rule full height. `stretch` is ignored on the axis the thickness fixes,
|
|
35
|
+
// which is what lets one declaration serve both.
|
|
36
|
+
root: { alignSelf: "stretch" }
|
|
37
|
+
}),
|
|
38
|
+
variantTokens: VARIANT_TOKENS,
|
|
39
|
+
paint: (_theme, colors) => ({ root: { backgroundColor: colors.bg } }),
|
|
40
|
+
variants: {
|
|
41
|
+
// Multiples of `borderWidth.default`, so a theme that thickens its edges thickens
|
|
42
|
+
// these with it. Only the hairline stands outside the scale, being a device pixel.
|
|
43
|
+
size: {
|
|
44
|
+
xs: thickness(() => HAIRLINE),
|
|
45
|
+
sm: thickness((theme) => theme.borderWidth.default),
|
|
46
|
+
md: thickness((theme) => theme.borderWidth.default * 2),
|
|
47
|
+
lg: thickness((theme) => theme.borderWidth.default * 6)
|
|
48
|
+
},
|
|
49
|
+
/** Second, so it releases the axis `size` had to write blind. */
|
|
50
|
+
orientation: {
|
|
51
|
+
horizontal: () => ({ root: { width: "auto" } }),
|
|
52
|
+
vertical: () => ({ root: { height: "auto" } })
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* `xs` where every other component defaults to `md`, and it is the one place in the
|
|
57
|
+
* library that departs from that: a rule you notice is a rule that is too thick, and
|
|
58
|
+
* the hairline is what a separator is at rest.
|
|
59
|
+
*
|
|
60
|
+
* `variant` is named here and nowhere else — there is one, the caller cannot choose it,
|
|
61
|
+
* and the recipe still needs it selected for `paint` and the tint to resolve.
|
|
62
|
+
*/
|
|
63
|
+
defaultVariants: { variant: "default", size: "xs", orientation: "horizontal" }
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// src/components/divider/divider.tsx
|
|
67
|
+
import { jsx } from "react/jsx-runtime";
|
|
68
|
+
var Divider = forwardRef(function Divider2({ children, orientation, size, color, asChild = false, style, ...props }, ref) {
|
|
69
|
+
const theme = useXAUITheme();
|
|
70
|
+
const [styleProps, rest] = useStyleProps(props);
|
|
71
|
+
const selection = { orientation, size };
|
|
72
|
+
const styles = dividerRecipe.resolve({ theme, selection });
|
|
73
|
+
const tint = color ? dividerRecipe.tint({ theme, color, selection }) : void 0;
|
|
74
|
+
const Root = asChild ? Slot : View;
|
|
75
|
+
return /* @__PURE__ */ jsx(
|
|
76
|
+
Root,
|
|
77
|
+
{
|
|
78
|
+
ref,
|
|
79
|
+
accessibilityElementsHidden: true,
|
|
80
|
+
importantForAccessibility: "no",
|
|
81
|
+
...rest,
|
|
82
|
+
style: [styles.root, tint?.root, styleProps, style],
|
|
83
|
+
children: asChild ? children : null
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
});
|
|
87
|
+
Divider.displayName = "XAUI.Divider";
|
|
88
|
+
|
|
89
|
+
export {
|
|
90
|
+
dividerRecipe,
|
|
91
|
+
Divider
|
|
92
|
+
};
|
|
@@ -6,8 +6,8 @@ var _chunkN527BTY4cjs = require('../../chunk-N527BTY4.cjs');
|
|
|
6
6
|
require('../../chunk-TGZZ3RZU.cjs');
|
|
7
7
|
require('../../chunk-GPVNCJ3Z.cjs');
|
|
8
8
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
9
|
-
require('../../chunk-WR7YLDVV.cjs');
|
|
10
9
|
require('../../chunk-EJQCQPET.cjs');
|
|
10
|
+
require('../../chunk-WR7YLDVV.cjs');
|
|
11
11
|
require('../../chunk-FNEUOBCV.cjs');
|
|
12
12
|
require('../../chunk-57SJ4LJF.cjs');
|
|
13
13
|
require('../../chunk-ZP2E2H2G.cjs');
|