@xaui/native 0.9.1-alpha.13 → 0.9.1-alpha.15
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-B3EAZ2CC.js → chunk-64L44HEI.js} +155 -144
- package/dist/{chunk-2FOEFUPM.cjs → chunk-BAACHVM4.cjs} +8 -3
- package/dist/{chunk-RWLODK55.js → chunk-E3756MJC.js} +15 -15
- package/dist/{chunk-MLJ543GP.cjs → chunk-NLFE3CRM.cjs} +23 -23
- package/dist/{chunk-IVVFYUDW.cjs → chunk-PUER6Y4M.cjs} +134 -122
- package/dist/{chunk-TO6DAGFB.js → chunk-UOJBK5Z4.js} +7 -2
- package/dist/components/button/index.cjs +3 -3
- package/dist/components/button/index.d.cts +322 -7
- package/dist/components/button/index.d.ts +322 -7
- package/dist/components/button/index.js +2 -2
- package/dist/{create-recipe-oiLAlJ4u.d.cts → create-recipe-BcUu9b2I.d.cts} +41 -31
- package/dist/{create-recipe-3OPwcC6P.d.ts → create-recipe-DD9W6m9b.d.ts} +41 -31
- package/dist/index.cjs +6 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/system/index.cjs +3 -3
- package/dist/system/index.d.cts +174 -173
- package/dist/system/index.d.ts +174 -173
- package/dist/system/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Icon, PressableFeedback, childrenToString, createRecipe, createSlotContext, useStyleProps } from "./chunk-
|
|
1
|
+
import { Icon, PressableFeedback, childrenToString, createRecipe, createSlotContext, useStyleProps } from "./chunk-64L44HEI.js";
|
|
2
2
|
import { useXAUITheme } from "./chunk-XJARE6SC.js";
|
|
3
3
|
|
|
4
4
|
// src/components/button/button.context.ts
|
|
@@ -70,10 +70,10 @@ function ButtonSpinner({
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
ButtonSpinner.displayName = "XAUI.Button.Spinner";
|
|
73
|
-
const
|
|
74
|
-
code: "function
|
|
75
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
76
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
73
|
+
const _worklet_6495167332289_init_data = {
|
|
74
|
+
code: "function chunkE3756MJCJs1(){const{angle}=this.__closure;return{transform:[{rotate:angle.value+\"deg\"}]};}",
|
|
75
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-E3756MJC.js",
|
|
76
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkE3756MJCJs1\",\"angle\",\"__closure\",\"transform\",\"rotate\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-E3756MJC.js\"],\"mappings\":\"AA0EyC,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,OAAAC,SAAA,CAE3C,MAAO,CAAEC,SAAS,CAAE,CAAC,CAAEC,MAAM,CAAKH,KAAK,CAACI,KAAK,MAAM,CAAC,CAAE,CAAC,CACzD\",\"ignoreList\":[]}"
|
|
77
77
|
};
|
|
78
78
|
function SpinningRing({
|
|
79
79
|
style
|
|
@@ -86,28 +86,28 @@ function SpinningRing({
|
|
|
86
86
|
}), -1, false);
|
|
87
87
|
return () => cancelAnimation(angle);
|
|
88
88
|
}, [angle]);
|
|
89
|
-
const animatedStyle = useAnimatedStyle(function
|
|
90
|
-
|
|
89
|
+
const animatedStyle = useAnimatedStyle(function chunkE3756MJCJs1Factory({
|
|
90
|
+
_worklet_6495167332289_init_data,
|
|
91
91
|
angle
|
|
92
92
|
}) {
|
|
93
93
|
const _e = [new global.Error(), -2, -27];
|
|
94
|
-
const
|
|
94
|
+
const chunkE3756MJCJs1 = function () {
|
|
95
95
|
return {
|
|
96
96
|
transform: [{
|
|
97
97
|
rotate: `${angle.value}deg`
|
|
98
98
|
}]
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
|
|
101
|
+
chunkE3756MJCJs1.__closure = {
|
|
102
102
|
angle
|
|
103
103
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return
|
|
104
|
+
chunkE3756MJCJs1.__workletHash = 6495167332289;
|
|
105
|
+
chunkE3756MJCJs1.__pluginVersion = "0.7.4";
|
|
106
|
+
chunkE3756MJCJs1.__initData = _worklet_6495167332289_init_data;
|
|
107
|
+
chunkE3756MJCJs1.__stackDetails = _e;
|
|
108
|
+
return chunkE3756MJCJs1;
|
|
109
109
|
}({
|
|
110
|
-
|
|
110
|
+
_worklet_6495167332289_init_data,
|
|
111
111
|
angle
|
|
112
112
|
}), [angle]);
|
|
113
113
|
return /* @__PURE__ */jsx3(Animated.View, {
|
|
@@ -36,11 +36,11 @@ function _optionalChain(ops) {
|
|
|
36
36
|
}
|
|
37
37
|
return value;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var _chunkPUER6Y4Mcjs = require('./chunk-PUER6Y4M.cjs');
|
|
40
40
|
var _chunk6N5JXRUZcjs = require('./chunk-6N5JXRUZ.cjs');
|
|
41
41
|
|
|
42
42
|
// src/components/button/button.context.ts
|
|
43
|
-
var [ButtonProvider, useButton] =
|
|
43
|
+
var [ButtonProvider, useButton] = _chunkPUER6Y4Mcjs.createSlotContext.call(void 0, "Button");
|
|
44
44
|
|
|
45
45
|
// src/components/button/button-icon.tsx
|
|
46
46
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -52,7 +52,7 @@ function ButtonIcon({
|
|
|
52
52
|
const {
|
|
53
53
|
icon
|
|
54
54
|
} = useButton();
|
|
55
|
-
return /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
55
|
+
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkPUER6Y4Mcjs.Icon, {
|
|
56
56
|
size: _nullishCoalesce(size, () => icon.size),
|
|
57
57
|
color: _nullishCoalesce(color, () => icon.color),
|
|
58
58
|
...rest
|
|
@@ -72,7 +72,7 @@ var ButtonLabel = _react.forwardRef.call(void 0, function ButtonLabel2({
|
|
|
72
72
|
const {
|
|
73
73
|
labelStyle
|
|
74
74
|
} = useButton();
|
|
75
|
-
const [styleProps, rest] =
|
|
75
|
+
const [styleProps, rest] = _chunkPUER6Y4Mcjs.useStyleProps.call(void 0, props);
|
|
76
76
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.Text, {
|
|
77
77
|
ref,
|
|
78
78
|
numberOfLines,
|
|
@@ -96,7 +96,7 @@ function ButtonSpinner({
|
|
|
96
96
|
const {
|
|
97
97
|
spinnerStyle
|
|
98
98
|
} = useButton();
|
|
99
|
-
const [styleProps] =
|
|
99
|
+
const [styleProps] = _chunkPUER6Y4Mcjs.useStyleProps.call(void 0, props);
|
|
100
100
|
const ringStyle = [spinnerStyle, styleProps, style];
|
|
101
101
|
if (!animation) return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnative.View, {
|
|
102
102
|
style: ringStyle
|
|
@@ -106,10 +106,10 @@ function ButtonSpinner({
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
ButtonSpinner.displayName = "XAUI.Button.Spinner";
|
|
109
|
-
const
|
|
110
|
-
code: "function
|
|
111
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
112
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
109
|
+
const _worklet_3169119127402_init_data = {
|
|
110
|
+
code: "function chunkNLFE3CRMCjs1(){const{angle}=this.__closure;return{transform:[{rotate:angle.value+\"deg\"}]};}",
|
|
111
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-NLFE3CRM.cjs",
|
|
112
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkNLFE3CRMCjs1\",\"angle\",\"__closure\",\"transform\",\"rotate\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-NLFE3CRM.cjs\"],\"mappings\":\"AA0E6E,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\":[]}"
|
|
113
113
|
};
|
|
114
114
|
function SpinningRing({
|
|
115
115
|
style
|
|
@@ -122,28 +122,28 @@ function SpinningRing({
|
|
|
122
122
|
}), -1, false);
|
|
123
123
|
return () => _reactnativereanimated.cancelAnimation.call(void 0, angle);
|
|
124
124
|
}, [angle]);
|
|
125
|
-
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function
|
|
126
|
-
|
|
125
|
+
const animatedStyle = _reactnativereanimated.useAnimatedStyle.call(void 0, function chunkNLFE3CRMCjs1Factory({
|
|
126
|
+
_worklet_3169119127402_init_data,
|
|
127
127
|
angle
|
|
128
128
|
}) {
|
|
129
129
|
const _e = [new global.Error(), -2, -27];
|
|
130
|
-
const
|
|
130
|
+
const chunkNLFE3CRMCjs1 = function () {
|
|
131
131
|
return {
|
|
132
132
|
transform: [{
|
|
133
133
|
rotate: `${angle.value}deg`
|
|
134
134
|
}]
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
-
|
|
137
|
+
chunkNLFE3CRMCjs1.__closure = {
|
|
138
138
|
angle
|
|
139
139
|
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
return
|
|
140
|
+
chunkNLFE3CRMCjs1.__workletHash = 3169119127402;
|
|
141
|
+
chunkNLFE3CRMCjs1.__pluginVersion = "0.7.4";
|
|
142
|
+
chunkNLFE3CRMCjs1.__initData = _worklet_3169119127402_init_data;
|
|
143
|
+
chunkNLFE3CRMCjs1.__stackDetails = _e;
|
|
144
|
+
return chunkNLFE3CRMCjs1;
|
|
145
145
|
}({
|
|
146
|
-
|
|
146
|
+
_worklet_3169119127402_init_data,
|
|
147
147
|
angle
|
|
148
148
|
}), [angle]);
|
|
149
149
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, _reactnativereanimated2.default.View, {
|
|
@@ -254,7 +254,7 @@ function sizeAxis(step) {
|
|
|
254
254
|
spinner: ring(theme, theme.fontSizes[glyph])
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
var buttonRecipe =
|
|
257
|
+
var buttonRecipe = _chunkPUER6Y4Mcjs.createRecipe.call(void 0, {
|
|
258
258
|
slots: SLOTS,
|
|
259
259
|
base: theme => ({
|
|
260
260
|
root: {
|
|
@@ -443,7 +443,7 @@ var ButtonRoot = _react.forwardRef.call(void 0, function Button({
|
|
|
443
443
|
...props
|
|
444
444
|
}, ref) {
|
|
445
445
|
const theme = _chunk6N5JXRUZcjs.useXAUITheme.call(void 0);
|
|
446
|
-
const [styleProps, rest] =
|
|
446
|
+
const [styleProps, rest] = _chunkPUER6Y4Mcjs.useStyleProps.call(void 0, props);
|
|
447
447
|
const [isPressed, press] = usePressState({
|
|
448
448
|
onPressIn,
|
|
449
449
|
onPressOut
|
|
@@ -487,14 +487,14 @@ var ButtonRoot = _react.forwardRef.call(void 0, function Button({
|
|
|
487
487
|
const rootStyle = [styles.root, _optionalChain([tint, 'optionalAccess', _8 => _8.root]), styleProps, typeof style === "function" ? style({
|
|
488
488
|
pressed: isPressed
|
|
489
489
|
}) : style];
|
|
490
|
-
const text =
|
|
490
|
+
const text = _chunkPUER6Y4Mcjs.childrenToString.call(void 0, children);
|
|
491
491
|
const showSpinner = isLoading && !containsElementOfType(children, ButtonSpinner);
|
|
492
492
|
if (isIconOnly && !rest.accessibilityLabel && !rest["aria-label"]) {
|
|
493
493
|
warnDev("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.");
|
|
494
494
|
}
|
|
495
495
|
return /* @__PURE__ */_jsxruntime.jsx.call(void 0, ButtonProvider, {
|
|
496
496
|
value: context,
|
|
497
|
-
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0,
|
|
497
|
+
children: /* @__PURE__ */_jsxruntime.jsx.call(void 0, _chunkPUER6Y4Mcjs.PressableFeedback, {
|
|
498
498
|
ref,
|
|
499
499
|
isPressed,
|
|
500
500
|
isDisabled: isDisabled || isLoading,
|