@xaui/native 0.9.1-alpha.16 → 0.9.1-alpha.17
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-PUER6Y4M.cjs → chunk-2UICXD3Q.cjs} +75 -381
- package/dist/chunk-4K3LZS7M.js +448 -0
- package/dist/chunk-5SU7FXWH.cjs +448 -0
- package/dist/chunk-6PZF4PI7.js +100 -0
- package/dist/chunk-6VTBGBPP.cjs +100 -0
- package/dist/{chunk-E3756MJC.js → chunk-ASXK7XU4.js} +16 -15
- package/dist/{chunk-KCUT47FY.cjs → chunk-BHAHJHAI.cjs} +5 -1
- package/dist/{chunk-64L44HEI.js → chunk-F432IDIW.js} +89 -389
- package/dist/{chunk-NLFE3CRM.cjs → chunk-IZYRU7S2.cjs} +24 -23
- package/dist/{chunk-UOJBK5Z4.js → chunk-L3AQNVRN.js} +1 -1
- package/dist/{chunk-BAACHVM4.cjs → chunk-M2VYRHVS.cjs} +2 -2
- package/dist/{chunk-EHHSY2KB.js → chunk-XQE5PXOD.js} +5 -1
- package/dist/components/button/index.cjs +4 -3
- package/dist/components/button/index.d.cts +179 -178
- package/dist/components/button/index.d.ts +179 -178
- package/dist/components/button/index.js +3 -2
- package/dist/components/typography/index.cjs +12 -0
- package/dist/components/typography/index.d.cts +115 -0
- package/dist/components/typography/index.d.ts +115 -0
- package/dist/components/typography/index.js +12 -0
- package/dist/create-recipe-3_ElpCYt.d.cts +117 -0
- package/dist/create-recipe-DImq1AZA.d.ts +117 -0
- package/dist/index.cjs +17 -7
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +21 -11
- package/dist/{create-recipe-DD9W6m9b.d.ts → pressable-feedback.type-C9kjAuVQ.d.cts} +3 -116
- package/dist/{create-recipe-BcUu9b2I.d.cts → pressable-feedback.type-KcPvFf6f.d.ts} +3 -116
- package/dist/system/index.cjs +5 -3
- package/dist/system/index.d.cts +6 -4
- package/dist/system/index.d.ts +6 -4
- package/dist/system/index.js +11 -9
- package/dist/theme/index.cjs +2 -2
- package/dist/theme/index.d.cts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +1 -1
- package/dist/{theme.type-C9bFJKFm.d.cts → theme.type-C2gNHpEx.d.cts} +1 -1
- package/dist/{theme.type-C9bFJKFm.d.ts → theme.type-C2gNHpEx.d.ts} +1 -1
- package/package.json +11 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Icon, PressableFeedback
|
|
1
|
+
import { Icon, PressableFeedback } from "./chunk-F432IDIW.js";
|
|
2
|
+
import { childrenToString, createRecipe, createSlotContext, useStyleProps } from "./chunk-4K3LZS7M.js";
|
|
2
3
|
import { useXAUITheme } from "./chunk-XJARE6SC.js";
|
|
3
4
|
|
|
4
5
|
// src/components/button/button.context.ts
|
|
@@ -70,10 +71,10 @@ function ButtonSpinner({
|
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
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\":[\"
|
|
74
|
+
const _worklet_6354179806408_init_data = {
|
|
75
|
+
code: "function chunkASXK7XU4Js1(){const{angle}=this.__closure;return{transform:[{rotate:angle.value+\"deg\"}]};}",
|
|
76
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-ASXK7XU4.js",
|
|
77
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkASXK7XU4Js1\",\"angle\",\"__closure\",\"transform\",\"rotate\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-ASXK7XU4.js\"],\"mappings\":\"AA4EyC,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
78
|
};
|
|
78
79
|
function SpinningRing({
|
|
79
80
|
style
|
|
@@ -86,28 +87,28 @@ function SpinningRing({
|
|
|
86
87
|
}), -1, false);
|
|
87
88
|
return () => cancelAnimation(angle);
|
|
88
89
|
}, [angle]);
|
|
89
|
-
const animatedStyle = useAnimatedStyle(function
|
|
90
|
-
|
|
90
|
+
const animatedStyle = useAnimatedStyle(function chunkASXK7XU4Js1Factory({
|
|
91
|
+
_worklet_6354179806408_init_data,
|
|
91
92
|
angle
|
|
92
93
|
}) {
|
|
93
94
|
const _e = [new global.Error(), -2, -27];
|
|
94
|
-
const
|
|
95
|
+
const chunkASXK7XU4Js1 = function () {
|
|
95
96
|
return {
|
|
96
97
|
transform: [{
|
|
97
98
|
rotate: `${angle.value}deg`
|
|
98
99
|
}]
|
|
99
100
|
};
|
|
100
101
|
};
|
|
101
|
-
|
|
102
|
+
chunkASXK7XU4Js1.__closure = {
|
|
102
103
|
angle
|
|
103
104
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return
|
|
105
|
+
chunkASXK7XU4Js1.__workletHash = 6354179806408;
|
|
106
|
+
chunkASXK7XU4Js1.__pluginVersion = "0.7.4";
|
|
107
|
+
chunkASXK7XU4Js1.__initData = _worklet_6354179806408_init_data;
|
|
108
|
+
chunkASXK7XU4Js1.__stackDetails = _e;
|
|
109
|
+
return chunkASXK7XU4Js1;
|
|
109
110
|
}({
|
|
110
|
-
|
|
111
|
+
_worklet_6354179806408_init_data,
|
|
111
112
|
angle
|
|
112
113
|
}), [angle]);
|
|
113
114
|
return /* @__PURE__ */jsx3(Animated.View, {
|
|
@@ -47,6 +47,7 @@ function deriveColors(s) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
// src/theme/scales.ts
|
|
50
|
+
|
|
50
51
|
var SPACING_UNIT = 4;
|
|
51
52
|
var RADIUS_BASE = 12;
|
|
52
53
|
function buildRadius(base) {
|
|
@@ -98,7 +99,10 @@ var fontWeights = {
|
|
|
98
99
|
var fontFamilies = {
|
|
99
100
|
body: "System",
|
|
100
101
|
heading: "System",
|
|
101
|
-
|
|
102
|
+
// `'monospace'` is an Android family name, not a generic one: iOS does not resolve it and
|
|
103
|
+
// silently falls back to the system face, so code set with it is not monospaced there.
|
|
104
|
+
// Menlo is the face iOS ships, and it is what HeroUI Native selects for the same reason.
|
|
105
|
+
mono: _reactnative.Platform.OS === "ios" ? "Menlo" : "monospace"
|
|
102
106
|
};
|
|
103
107
|
var borderWidth = { default: 1, field: 1 };
|
|
104
108
|
var opacity = { disabled: 0.5 };
|