@xaui/native 0.9.1-alpha.23 → 0.9.1-alpha.24
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-KM2TI5IC.js → chunk-4HELPMAK.js} +76 -82
- package/dist/{chunk-AHL33YAO.js → chunk-4J26FA6O.js} +9 -7
- package/dist/{chunk-BNWS26PX.cjs → chunk-6FBGCF5T.cjs} +9 -7
- package/dist/{chunk-ZQ3JSWRO.js → chunk-A4RGJBP2.js} +4 -2
- package/dist/{chunk-I6PE5UUH.cjs → chunk-AV5LMFS3.cjs} +13 -11
- package/dist/{chunk-OGC4RKE3.js → chunk-AXSJPWSJ.js} +5 -5
- package/dist/chunk-EGLLDKN6.js +9 -0
- package/dist/chunk-EJQCQPET.cjs +9 -0
- package/dist/{chunk-VDRRD6GM.cjs → chunk-EWBBDVTM.cjs} +22 -21
- package/dist/{chunk-BH5DSJVX.cjs → chunk-IG4Q3WQO.cjs} +61 -68
- package/dist/{chunk-6WW4CSPY.cjs → chunk-J2JJLKLG.cjs} +6 -4
- package/dist/{chunk-4MHJOWM4.cjs → chunk-J4JFIC4W.cjs} +7 -7
- package/dist/chunk-J4QE34AU.js +732 -0
- package/dist/chunk-LIQTGAI7.cjs +621 -0
- package/dist/{chunk-FNQF4KQV.js → chunk-MRYLLKML.js} +18 -17
- package/dist/{chunk-FTCTTBLG.js → chunk-ZTA47PO5.js} +7 -5
- package/dist/components/alert/index.cjs +7 -6
- package/dist/components/alert/index.js +6 -5
- package/dist/components/button/index.cjs +6 -5
- package/dist/components/button/index.js +5 -4
- package/dist/components/card/index.cjs +5 -4
- package/dist/components/card/index.js +4 -3
- package/dist/components/chip/index.cjs +7 -6
- package/dist/components/chip/index.js +6 -5
- package/dist/components/input/index.cjs +3 -3
- package/dist/components/input/index.js +2 -2
- package/dist/components/input-otp/index.cjs +27 -0
- package/dist/components/input-otp/index.d.cts +325 -0
- package/dist/components/input-otp/index.d.ts +325 -0
- package/dist/components/input-otp/index.js +27 -0
- package/dist/components/typography/index.cjs +3 -3
- package/dist/components/typography/index.js +2 -2
- package/dist/index.cjs +37 -51
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +48 -62
- package/dist/system/index.cjs +6 -5
- package/dist/system/index.js +5 -4
- package/package.json +11 -1
- package/dist/{chunk-E3LXUXE7.js → chunk-6RO26ORT.js} +3 -3
- package/dist/{chunk-DXGQ43IV.cjs → chunk-B4W2XNBP.cjs} +2 -2
- package/dist/{chunk-2U6JR7BF.js → chunk-G52TQJBI.js} +3 -3
- package/dist/{chunk-FVP5FUVS.js → chunk-ICR42HHG.js} +3 -3
- package/dist/{chunk-TIP3T7JJ.cjs → chunk-P2XA4DV7.cjs} +2 -2
- package/dist/{chunk-RAWOJ3N3.cjs → chunk-Y7U6ACMB.cjs} +2 -2
|
@@ -36,11 +36,12 @@ function _optionalChain(ops) {
|
|
|
36
36
|
}
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
var
|
|
39
|
+
var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
40
|
+
var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
41
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
41
42
|
var _chunkYXVKQMCKcjs = require('./chunk-YXVKQMCK.cjs');
|
|
42
|
-
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
43
43
|
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
44
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
44
45
|
|
|
45
46
|
// src/components/button/button.context.ts
|
|
46
47
|
var [ButtonProvider, useButton] = _chunkHUZ4AUM2cjs.createSlotContext.call(void 0, "Button");
|
|
@@ -55,7 +56,7 @@ function ButtonIcon({
|
|
|
55
56
|
const {
|
|
56
57
|
icon
|
|
57
58
|
} = useButton();
|
|
58
|
-
return /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
59
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkB4W2XNBPcjs.Icon, {
|
|
59
60
|
size: _nullishCoalesce(size, () => icon.size),
|
|
60
61
|
color: _nullishCoalesce(color, () => icon.color),
|
|
61
62
|
...rest
|
|
@@ -109,10 +110,10 @@ function ButtonSpinner({
|
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
112
|
ButtonSpinner.displayName = "XAUI.Button.Spinner";
|
|
112
|
-
const
|
|
113
|
-
code: "function
|
|
114
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
115
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
113
|
+
const _worklet_11964476235389_init_data = {
|
|
114
|
+
code: "function chunkEWBBDVTMCjs1(){const{angle}=this.__closure;return{transform:[{rotate:angle.value+\"deg\"}]};}",
|
|
115
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-EWBBDVTM.cjs",
|
|
116
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkEWBBDVTMCjs1\",\"angle\",\"__closure\",\"transform\",\"rotate\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-EWBBDVTM.cjs\"],\"mappings\":\"AAqF6E,SAAAA,iBAAMA,CAAA,QAAAC,KAAA,OAAAC,SAAA,CAE/E,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAEC,MAAM,CAAKH,KAAK,CAACI,KAAK,MAAM,CAAC,CAAE,CAAC,CACzD\",\"ignoreList\":[]}"
|
|
116
117
|
};
|
|
117
118
|
function SpinningRing({
|
|
118
119
|
style
|
|
@@ -125,28 +126,28 @@ function SpinningRing({
|
|
|
125
126
|
}), -1, false);
|
|
126
127
|
return () => _reactnativereanimated.cancelAnimation.call(void 0, angle);
|
|
127
128
|
}, [angle]);
|
|
128
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
129
|
-
|
|
129
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkEWBBDVTMCjs1Factory({
|
|
130
|
+
_worklet_11964476235389_init_data,
|
|
130
131
|
angle
|
|
131
132
|
}) {
|
|
132
133
|
const _e = [new global.Error(), -2, -27];
|
|
133
|
-
const
|
|
134
|
+
const chunkEWBBDVTMCjs1 = function () {
|
|
134
135
|
return {
|
|
135
136
|
transform: [{
|
|
136
137
|
rotate: `${angle.value}deg`
|
|
137
138
|
}]
|
|
138
139
|
};
|
|
139
140
|
};
|
|
140
|
-
|
|
141
|
+
chunkEWBBDVTMCjs1.__closure = {
|
|
141
142
|
angle
|
|
142
143
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
return
|
|
144
|
+
chunkEWBBDVTMCjs1.__workletHash = 11964476235389;
|
|
145
|
+
chunkEWBBDVTMCjs1.__pluginVersion = "0.7.4";
|
|
146
|
+
chunkEWBBDVTMCjs1.__initData = _worklet_11964476235389_init_data;
|
|
147
|
+
chunkEWBBDVTMCjs1.__stackDetails = _e;
|
|
148
|
+
return chunkEWBBDVTMCjs1;
|
|
148
149
|
}({
|
|
149
|
-
|
|
150
|
+
_worklet_11964476235389_init_data,
|
|
150
151
|
angle
|
|
151
152
|
}), [angle]);
|
|
152
153
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
@@ -369,7 +370,7 @@ var ButtonRoot = _react.forwardRef.call(void 0, function Button({
|
|
|
369
370
|
}, ref) {
|
|
370
371
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0);
|
|
371
372
|
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
372
|
-
const [isPressed, press] =
|
|
373
|
+
const [isPressed, press] = _chunkIG4Q3WQOcjs.usePressState.call(void 0, {
|
|
373
374
|
onPressIn,
|
|
374
375
|
onPressOut
|
|
375
376
|
});
|
|
@@ -415,11 +416,11 @@ var ButtonRoot = _react.forwardRef.call(void 0, function Button({
|
|
|
415
416
|
const text = _chunkHUZ4AUM2cjs.childrenToString.call(void 0, children);
|
|
416
417
|
const showSpinner = isLoading && !containsElementOfType(children, ButtonSpinner);
|
|
417
418
|
if (isIconOnly && !rest.accessibilityLabel && !rest["aria-label"]) {
|
|
418
|
-
|
|
419
|
+
_chunkEJQCQPETcjs.warnDev.call(void 0, "Button: an icon-only button needs an `accessibilityLabel` \u2014 there is no text for a screen reader to read, so it announces as an unlabelled button.");
|
|
419
420
|
}
|
|
420
421
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, ButtonProvider, {
|
|
421
422
|
value: context,
|
|
422
|
-
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
423
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkIG4Q3WQOcjs.PressableFeedback, {
|
|
423
424
|
ref,
|
|
424
425
|
isPressed,
|
|
425
426
|
isDisabled: isDisabled || isLoading,
|
|
@@ -36,8 +36,8 @@ function _optionalChain(ops) {
|
|
|
36
36
|
}
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
|
-
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
40
39
|
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
40
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
41
41
|
|
|
42
42
|
// src/hooks/use-press-state.ts
|
|
43
43
|
var _react = require('react');
|
|
@@ -69,13 +69,13 @@ var DisableAllContext = _react.createContext.call(void 0, false);
|
|
|
69
69
|
var PRESS_SCALE = 0.985;
|
|
70
70
|
var PRESS_DURATION = 300;
|
|
71
71
|
var SCALE_REFERENCE_WIDTH = 300;
|
|
72
|
-
const
|
|
73
|
-
code: "function
|
|
74
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
75
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
72
|
+
const _worklet_8978529535682_init_data = {
|
|
73
|
+
code: "function pressScaleFor_chunkIG4Q3WQOCjs1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
|
|
74
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs",
|
|
75
|
+
sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunkIG4Q3WQOCjs1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs\"],\"mappings\":\"AAsCA,SAAAA,+BAA8BA,CAAAC,KAAA,QAAAC,qBAAA,CAAAC,WAAA,OAAAC,SAAA,CAE5B,KAAM,CAAAC,WAAW,CAAGJ,KAAK,CAAG,CAAC,CAAGC,qBAAqB,CAAGD,KAAK,CAAG,CAAC,CACjE,MAAO,EAAC,CAAG,CAAC,CAAC,CAAGE,WAAW,EAAIE,WAAW,CAC5C\",\"ignoreList\":[]}"
|
|
76
76
|
};
|
|
77
|
-
const pressScaleFor = function
|
|
78
|
-
|
|
77
|
+
const pressScaleFor = function pressScaleFor_chunkIG4Q3WQOCjs1Factory({
|
|
78
|
+
_worklet_8978529535682_init_data,
|
|
79
79
|
SCALE_REFERENCE_WIDTH,
|
|
80
80
|
PRESS_SCALE
|
|
81
81
|
}) {
|
|
@@ -88,13 +88,13 @@ const pressScaleFor = function pressScaleFor_chunkBH5DSJVXCjs1Factory({
|
|
|
88
88
|
SCALE_REFERENCE_WIDTH,
|
|
89
89
|
PRESS_SCALE
|
|
90
90
|
};
|
|
91
|
-
pressScaleFor.__workletHash =
|
|
91
|
+
pressScaleFor.__workletHash = 8978529535682;
|
|
92
92
|
pressScaleFor.__pluginVersion = "0.7.4";
|
|
93
|
-
pressScaleFor.__initData =
|
|
93
|
+
pressScaleFor.__initData = _worklet_8978529535682_init_data;
|
|
94
94
|
pressScaleFor.__stackDetails = _e;
|
|
95
95
|
return pressScaleFor;
|
|
96
96
|
}({
|
|
97
|
-
|
|
97
|
+
_worklet_8978529535682_init_data,
|
|
98
98
|
SCALE_REFERENCE_WIDTH,
|
|
99
99
|
PRESS_SCALE
|
|
100
100
|
});
|
|
@@ -107,26 +107,26 @@ var RIPPLE_CONFIRM_DURATION = 225;
|
|
|
107
107
|
var RIPPLE_FADE_IN = 75;
|
|
108
108
|
var RIPPLE_FADE_OUT_DELAY = 225;
|
|
109
109
|
var RIPPLE_FADE_OUT = 150;
|
|
110
|
-
const
|
|
111
|
-
code: "function
|
|
112
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
113
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
110
|
+
const _worklet_15110245587321_init_data = {
|
|
111
|
+
code: "function rippleRadiusFor_chunkIG4Q3WQOCjs2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
|
|
112
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs",
|
|
113
|
+
sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunkIG4Q3WQOCjs2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs\"],\"mappings\":\"AAoDA,SAAAA,iCAAwCA,CAAAC,KAAA,CAAAC,MAAA,EAEtC,MAAO,CAAAC,IAAI,CAACC,IAAI,CAACH,KAAK,CAAGA,KAAK,CAAGC,MAAM,CAAGA,MAAM,CAAC,CAAG,CAAC,CAAG,CAAC,CAC3D\",\"ignoreList\":[]}"
|
|
114
114
|
};
|
|
115
|
-
const rippleRadiusFor = function
|
|
116
|
-
|
|
115
|
+
const rippleRadiusFor = function rippleRadiusFor_chunkIG4Q3WQOCjs2Factory({
|
|
116
|
+
_worklet_15110245587321_init_data
|
|
117
117
|
}) {
|
|
118
118
|
const _e = [new global.Error(), 1, -27];
|
|
119
119
|
const rippleRadiusFor = function (width, height) {
|
|
120
120
|
return Math.sqrt(width * width + height * height) / 2 + 5;
|
|
121
121
|
};
|
|
122
122
|
rippleRadiusFor.__closure = {};
|
|
123
|
-
rippleRadiusFor.__workletHash =
|
|
123
|
+
rippleRadiusFor.__workletHash = 15110245587321;
|
|
124
124
|
rippleRadiusFor.__pluginVersion = "0.7.4";
|
|
125
|
-
rippleRadiusFor.__initData =
|
|
125
|
+
rippleRadiusFor.__initData = _worklet_15110245587321_init_data;
|
|
126
126
|
rippleRadiusFor.__stackDetails = _e;
|
|
127
127
|
return rippleRadiusFor;
|
|
128
128
|
}({
|
|
129
|
-
|
|
129
|
+
_worklet_15110245587321_init_data
|
|
130
130
|
});
|
|
131
131
|
var ALL_OFF = {
|
|
132
132
|
scale: false,
|
|
@@ -301,10 +301,10 @@ var StaticFeedback = _react.forwardRef.call(void 0, function StaticFeedback2({
|
|
|
301
301
|
})
|
|
302
302
|
});
|
|
303
303
|
});
|
|
304
|
-
const
|
|
305
|
-
code: "function
|
|
306
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
307
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
304
|
+
const _worklet_11170261292187_init_data = {
|
|
305
|
+
code: "function chunkIG4Q3WQOCjs3(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
|
|
306
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs",
|
|
307
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkIG4Q3WQOCjs3\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs\"],\"mappings\":\"AAmO6E,SAAAA,iBAAMA,CAAA,QAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,OAAAC,SAAA,CAE/E,GAAI,CAACH,SAAS,CAACI,KAAK,CAAE,MAAO,CAAC,CAAC,CAC/B,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAED,KAAK,CAAE,CAAC,CAAG,CAAC,CAAC,CAAGH,YAAY,CAACK,KAAK,EAAIJ,QAAQ,CAACI,KAAM,CAAC,CAAE,CAAC,CAClF\",\"ignoreList\":[]}"
|
|
308
308
|
};
|
|
309
309
|
var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2({
|
|
310
310
|
isPressed = false,
|
|
@@ -333,14 +333,14 @@ var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2
|
|
|
333
333
|
});
|
|
334
334
|
}, [isPressed, progress]);
|
|
335
335
|
const pressedScale = _reactnativereanimated.useDerivedValue.call(void 0, () => pressScaleFor(size.value.width));
|
|
336
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
337
|
-
|
|
336
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkIG4Q3WQOCjs3Factory({
|
|
337
|
+
_worklet_11170261292187_init_data,
|
|
338
338
|
animation,
|
|
339
339
|
pressedScale,
|
|
340
340
|
progress
|
|
341
341
|
}) {
|
|
342
342
|
const _e = [new global.Error(), -4, -27];
|
|
343
|
-
const
|
|
343
|
+
const chunkIG4Q3WQOCjs3 = function () {
|
|
344
344
|
if (!animation.scale) return {};
|
|
345
345
|
return {
|
|
346
346
|
transform: [{
|
|
@@ -348,18 +348,18 @@ var AnimatedFeedback = _react.forwardRef.call(void 0, function AnimatedFeedback2
|
|
|
348
348
|
}]
|
|
349
349
|
};
|
|
350
350
|
};
|
|
351
|
-
|
|
351
|
+
chunkIG4Q3WQOCjs3.__closure = {
|
|
352
352
|
animation,
|
|
353
353
|
pressedScale,
|
|
354
354
|
progress
|
|
355
355
|
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
return
|
|
356
|
+
chunkIG4Q3WQOCjs3.__workletHash = 11170261292187;
|
|
357
|
+
chunkIG4Q3WQOCjs3.__pluginVersion = "0.7.4";
|
|
358
|
+
chunkIG4Q3WQOCjs3.__initData = _worklet_11170261292187_init_data;
|
|
359
|
+
chunkIG4Q3WQOCjs3.__stackDetails = _e;
|
|
360
|
+
return chunkIG4Q3WQOCjs3;
|
|
361
361
|
}({
|
|
362
|
-
|
|
362
|
+
_worklet_11170261292187_init_data,
|
|
363
363
|
animation,
|
|
364
364
|
pressedScale,
|
|
365
365
|
progress
|
|
@@ -501,10 +501,10 @@ function PressableFeedbackHighlight({
|
|
|
501
501
|
}
|
|
502
502
|
PressableFeedbackHighlight.displayName = "XAUI.PressableFeedback.Highlight";
|
|
503
503
|
markOverlay(PressableFeedbackHighlight);
|
|
504
|
-
const
|
|
505
|
-
code: "function
|
|
506
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
507
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
504
|
+
const _worklet_1569499264813_init_data = {
|
|
505
|
+
code: "function chunkIG4Q3WQOCjs4(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
|
|
506
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs",
|
|
507
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkIG4Q3WQOCjs4\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs\"],\"mappings\":\"AAiX6E,SAAAA,iBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE/E,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
|
|
508
508
|
};
|
|
509
509
|
function AnimatedHighlight({
|
|
510
510
|
base,
|
|
@@ -520,28 +520,28 @@ function AnimatedHighlight({
|
|
|
520
520
|
duration
|
|
521
521
|
});
|
|
522
522
|
}, [isPressed, shown, duration]);
|
|
523
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
524
|
-
|
|
523
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkIG4Q3WQOCjs4Factory({
|
|
524
|
+
_worklet_1569499264813_init_data,
|
|
525
525
|
shown,
|
|
526
526
|
opacity
|
|
527
527
|
}) {
|
|
528
528
|
const _e = [new global.Error(), -3, -27];
|
|
529
|
-
const
|
|
529
|
+
const chunkIG4Q3WQOCjs4 = function () {
|
|
530
530
|
return {
|
|
531
531
|
opacity: shown.value * opacity
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
|
-
|
|
534
|
+
chunkIG4Q3WQOCjs4.__closure = {
|
|
535
535
|
shown,
|
|
536
536
|
opacity
|
|
537
537
|
};
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
return
|
|
538
|
+
chunkIG4Q3WQOCjs4.__workletHash = 1569499264813;
|
|
539
|
+
chunkIG4Q3WQOCjs4.__pluginVersion = "0.7.4";
|
|
540
|
+
chunkIG4Q3WQOCjs4.__initData = _worklet_1569499264813_init_data;
|
|
541
|
+
chunkIG4Q3WQOCjs4.__stackDetails = _e;
|
|
542
|
+
return chunkIG4Q3WQOCjs4;
|
|
543
543
|
}({
|
|
544
|
-
|
|
544
|
+
_worklet_1569499264813_init_data,
|
|
545
545
|
shown,
|
|
546
546
|
opacity
|
|
547
547
|
}), [shown, opacity]);
|
|
@@ -605,10 +605,10 @@ function PressableFeedbackRipple({
|
|
|
605
605
|
}
|
|
606
606
|
PressableFeedbackRipple.displayName = "XAUI.PressableFeedback.Ripple";
|
|
607
607
|
markOverlay(PressableFeedbackRipple);
|
|
608
|
-
const
|
|
609
|
-
code: "function
|
|
610
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
611
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
608
|
+
const _worklet_17516747206400_init_data = {
|
|
609
|
+
code: "function chunkIG4Q3WQOCjs5(){const{wave,RIPPLE_START_SCALE,center,opacity,radius}=this.__closure;const t=wave.expand.value;const from=wave.origin.value;const scale=RIPPLE_START_SCALE+(1-RIPPLE_START_SCALE)*t;const x=from.x+(center.x-from.x)*t;const y=from.y+(center.y-from.y)*t;return{opacity:wave.alpha.value*opacity,transform:[{translateX:x-radius},{translateY:y-radius},{scale:scale}]};}",
|
|
610
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs",
|
|
611
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkIG4Q3WQOCjs5\",\"wave\",\"RIPPLE_START_SCALE\",\"center\",\"opacity\",\"radius\",\"__closure\",\"t\",\"expand\",\"value\",\"from\",\"origin\",\"scale\",\"x\",\"y\",\"alpha\",\"transform\",\"translateX\",\"translateY\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-IG4Q3WQO.cjs\"],\"mappings\":\"AAib6E,SAAAA,iBAAMA,CAAA,QAAAC,IAAA,CAAAC,kBAAA,CAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA,OAAAC,SAAA,CAE/E,KAAM,CAAAC,CAAC,CAAGN,IAAI,CAACO,MAAM,CAACC,KAAK,CAC3B,KAAM,CAAAC,IAAI,CAAGT,IAAI,CAACU,MAAM,CAACF,KAAK,CAC9B,KAAM,CAAAG,KAAK,CAAGV,kBAAkB,CAAG,CAAC,CAAC,CAAGA,kBAAkB,EAAIK,CAAC,CAC/D,KAAM,CAAAM,CAAC,CAAGH,IAAI,CAACG,CAAC,CAAG,CAACV,MAAM,CAACU,CAAC,CAAGH,IAAI,CAACG,CAAC,EAAIN,CAAC,CAC1C,KAAM,CAAAO,CAAC,CAAGJ,IAAI,CAACI,CAAC,CAAG,CAACX,MAAM,CAACW,CAAC,CAAGJ,IAAI,CAACI,CAAC,EAAIP,CAAC,CAC1C,MAAO,CAELH,OAAO,CAAEH,IAAI,CAACc,KAAK,CAACN,KAAK,CAAGL,OAAO,CACnCY,SAAS,CAAE,CAAC,CAAEC,UAAU,CAAEJ,CAAC,CAAGR,MAAO,CAAC,CAAE,CAAEa,UAAU,CAAEJ,CAAC,CAAGT,MAAO,CAAC,CAAE,CAAEO,KAAA,CAAAA,KAAM,CAAC,CAC/E,CAAC,CACH\",\"ignoreList\":[]}"
|
|
612
612
|
};
|
|
613
613
|
function RippleWave({
|
|
614
614
|
wave,
|
|
@@ -618,8 +618,8 @@ function RippleWave({
|
|
|
618
618
|
opacity,
|
|
619
619
|
style
|
|
620
620
|
}) {
|
|
621
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
622
|
-
|
|
621
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkIG4Q3WQOCjs5Factory({
|
|
622
|
+
_worklet_17516747206400_init_data,
|
|
623
623
|
wave,
|
|
624
624
|
RIPPLE_START_SCALE,
|
|
625
625
|
center,
|
|
@@ -627,7 +627,7 @@ function RippleWave({
|
|
|
627
627
|
radius
|
|
628
628
|
}) {
|
|
629
629
|
const _e = [new global.Error(), -6, -27];
|
|
630
|
-
const
|
|
630
|
+
const chunkIG4Q3WQOCjs5 = function () {
|
|
631
631
|
const t = wave.expand.value;
|
|
632
632
|
const from = wave.origin.value;
|
|
633
633
|
const scale = RIPPLE_START_SCALE + (1 - RIPPLE_START_SCALE) * t;
|
|
@@ -645,20 +645,20 @@ function RippleWave({
|
|
|
645
645
|
}]
|
|
646
646
|
};
|
|
647
647
|
};
|
|
648
|
-
|
|
648
|
+
chunkIG4Q3WQOCjs5.__closure = {
|
|
649
649
|
wave,
|
|
650
650
|
RIPPLE_START_SCALE,
|
|
651
651
|
center,
|
|
652
652
|
opacity,
|
|
653
653
|
radius
|
|
654
654
|
};
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
return
|
|
655
|
+
chunkIG4Q3WQOCjs5.__workletHash = 17516747206400;
|
|
656
|
+
chunkIG4Q3WQOCjs5.__pluginVersion = "0.7.4";
|
|
657
|
+
chunkIG4Q3WQOCjs5.__initData = _worklet_17516747206400_init_data;
|
|
658
|
+
chunkIG4Q3WQOCjs5.__stackDetails = _e;
|
|
659
|
+
return chunkIG4Q3WQOCjs5;
|
|
660
660
|
}({
|
|
661
|
-
|
|
661
|
+
_worklet_17516747206400_init_data,
|
|
662
662
|
wave,
|
|
663
663
|
RIPPLE_START_SCALE,
|
|
664
664
|
center,
|
|
@@ -694,14 +694,7 @@ var PressableFeedback3 = Object.assign(PressableFeedback, {
|
|
|
694
694
|
Highlight: PressableFeedbackHighlight,
|
|
695
695
|
Ripple: PressableFeedbackRipple
|
|
696
696
|
});
|
|
697
|
-
|
|
698
|
-
// src/utils/warn-dev.ts
|
|
699
|
-
function warnDev(message) {
|
|
700
|
-
if (typeof __DEV__ !== "undefined" && !__DEV__) return;
|
|
701
|
-
console.warn(`XAUI: ${message}`);
|
|
702
|
-
}
|
|
703
697
|
exports.usePressState = usePressState;
|
|
704
|
-
exports.warnDev = warnDev;
|
|
705
698
|
exports.useFeedback = useFeedback;
|
|
706
699
|
exports.PRESS_SCALE = PRESS_SCALE;
|
|
707
700
|
exports.PRESS_DURATION = PRESS_DURATION;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _chunkIG4Q3WQOcjs = require('./chunk-IG4Q3WQO.cjs');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
var _chunkEJQCQPETcjs = require('./chunk-EJQCQPET.cjs');
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
@@ -34,14 +36,14 @@ var CloseButton = _react.forwardRef.call(void 0, function CloseButton2({
|
|
|
34
36
|
...props
|
|
35
37
|
}, ref) {
|
|
36
38
|
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
37
|
-
const [isPressed, press] =
|
|
39
|
+
const [isPressed, press] = _chunkIG4Q3WQOcjs.usePressState.call(void 0, { onPressIn, onPressOut });
|
|
38
40
|
if (!rest.accessibilityLabel && !rest["aria-label"]) {
|
|
39
|
-
|
|
41
|
+
_chunkEJQCQPETcjs.warnDev.call(void 0,
|
|
40
42
|
`${name}: a close button needs an \`accessibilityLabel\` \u2014 the cross is not text, and the label beside it names what is being dismissed, not the action.`
|
|
41
43
|
);
|
|
42
44
|
}
|
|
43
45
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
44
|
-
|
|
46
|
+
_chunkIG4Q3WQOcjs.PressableFeedback,
|
|
45
47
|
{
|
|
46
48
|
ref,
|
|
47
49
|
isPressed,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJ2JJLKLGcjs = require('./chunk-J2JJLKLG.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkB4W2XNBPcjs = require('./chunk-B4W2XNBP.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkYXVKQMCKcjs = require('./chunk-YXVKQMCK.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
17
|
+
var _chunkHUZ4AUM2cjs = require('./chunk-HUZ4AUM2.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
21
21
|
|
|
22
22
|
// src/components/alert/alert-close.tsx
|
|
23
23
|
var _react = require('react');
|
|
@@ -30,7 +30,7 @@ var _jsxruntime = require('react/jsx-runtime');
|
|
|
30
30
|
var AlertClose = _react.forwardRef.call(void 0, function AlertClose2({ isDisabled, ...props }, ref) {
|
|
31
31
|
const { closeStyle, closeGlyphStyle, isDisabled: isAlertDisabled } = useAlert();
|
|
32
32
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33
|
-
|
|
33
|
+
_chunkJ2JJLKLGcjs.CloseButton,
|
|
34
34
|
{
|
|
35
35
|
ref,
|
|
36
36
|
name: "Alert.Close",
|
|
@@ -78,7 +78,7 @@ var AlertIcon = _react.forwardRef.call(void 0, function AlertIcon2({ as, childre
|
|
|
78
78
|
const [styleProps, rest] = _chunkHUZ4AUM2cjs.useStyleProps.call(void 0, props);
|
|
79
79
|
const glyphSize = _nullishCoalesce(size, () => ( icon.size));
|
|
80
80
|
const glyphColor = _nullishCoalesce(color, () => ( icon.color));
|
|
81
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [iconStyle, styleProps, style], ...rest, children: as ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
81
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { ref, style: [iconStyle, styleProps, style], ...rest, children: as ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4W2XNBPcjs.Icon, { as, size: glyphSize, color: glyphColor }) : source ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4W2XNBPcjs.Icon, { source, size: glyphSize, color: glyphColor }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB4W2XNBPcjs.Icon, { size: glyphSize, color: glyphColor, children }) });
|
|
82
82
|
});
|
|
83
83
|
AlertIcon.displayName = "XAUI.Alert.Icon";
|
|
84
84
|
|
|
@@ -192,7 +192,7 @@ var alertRecipe = _chunkYXVKQMCKcjs.createRecipe.call(void 0, {
|
|
|
192
192
|
// The cross's own geometry — thickness and centring — belongs to the shared
|
|
193
193
|
// `CloseButton`; what stays below is the box and bar size this component's scale sets.
|
|
194
194
|
base: (theme) => ({
|
|
195
|
-
...
|
|
195
|
+
..._chunkJ2JJLKLGcjs.closeButtonBase.call(void 0, theme),
|
|
196
196
|
root: {
|
|
197
197
|
flexDirection: "row",
|
|
198
198
|
// Top-aligned, not centred: an alert's message can run to three lines, and an icon
|