@xaui/native 0.9.1-alpha.35 → 0.9.1-alpha.36
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-I66VMLHE.cjs → chunk-2L7FOIWY.cjs} +21 -21
- package/dist/{chunk-VSALV7VO.cjs → chunk-2LNE4PWB.cjs} +2 -2
- package/dist/{chunk-HVD5EX7V.js → chunk-2OZPOWFB.js} +1 -1
- package/dist/{chunk-6M7RUU7V.cjs → chunk-2SCE7TFZ.cjs} +64 -64
- package/dist/{chunk-L55CDXNI.js → chunk-3YZSUDZ2.js} +108 -102
- package/dist/{chunk-NLASSGA7.js → chunk-4XFEEBPU.js} +10 -2
- package/dist/{chunk-4SLOOIE5.cjs → chunk-5BNIIDQD.cjs} +2 -2
- package/dist/{chunk-HXL2QCMR.js → chunk-5GMU7ESV.js} +14 -14
- package/dist/{chunk-Q3D6KIVF.cjs → chunk-6N5ZCEAB.cjs} +104 -98
- package/dist/{chunk-GBFQZQ77.js → chunk-6U5IUUAR.js} +2 -2
- package/dist/{chunk-XWMB66ZM.cjs → chunk-ADQVA2FQ.cjs} +2 -2
- package/dist/{chunk-YUG22AXX.cjs → chunk-AQXNEV6J.cjs} +16 -16
- package/dist/{chunk-CNNLMMFV.cjs → chunk-AZRMOWRG.cjs} +6 -6
- package/dist/{chunk-JCYWU5TO.js → chunk-B6OKVLC7.js} +1 -1
- package/dist/{chunk-M2BGCN77.js → chunk-BAPXLO5N.js} +4 -4
- package/dist/{chunk-MHEL3NAN.js → chunk-CVCE7TW5.js} +53 -53
- package/dist/{chunk-BA2MPBCO.js → chunk-DL2PGB5G.js} +58 -58
- package/dist/{chunk-NFFL3E4N.js → chunk-DOLWSO7A.js} +2 -2
- package/dist/{chunk-ZA6RT3XQ.js → chunk-E5ZW7MBW.js} +16 -16
- package/dist/{chunk-K7LLERKT.cjs → chunk-EFPWXJAJ.cjs} +11 -11
- package/dist/{chunk-GGW42MY4.js → chunk-FJ5TLRT3.js} +2 -1
- package/dist/{chunk-CYS6U374.cjs → chunk-FVKIQBHS.cjs} +4 -4
- package/dist/{chunk-PBR44KVV.cjs → chunk-FYCDRRJ2.cjs} +22 -22
- package/dist/{chunk-DBXFFJTC.cjs → chunk-GHKJ6MUH.cjs} +8 -8
- package/dist/{chunk-QY4MN7X3.cjs → chunk-GPZSTEEI.cjs} +12 -12
- package/dist/{chunk-OHEHPQLC.cjs → chunk-HQVVQGYV.cjs} +2 -2
- package/dist/{chunk-MC7SY2QH.cjs → chunk-HT7H35GU.cjs} +2 -1
- package/dist/{chunk-PCWT2YBE.cjs → chunk-ISPOIMGX.cjs} +2 -2
- package/dist/{chunk-TZG3DERP.js → chunk-JB5XANQY.js} +1 -1
- package/dist/{chunk-I6ZB3FZI.cjs → chunk-K3AVOT6L.cjs} +2 -2
- package/dist/{chunk-AYOVBZAX.js → chunk-K7GAHNMJ.js} +3 -3
- package/dist/{chunk-2IWL6R3D.js → chunk-KZVHC4FL.js} +3 -3
- package/dist/{chunk-AOEXU5UV.cjs → chunk-LCDHTLSG.cjs} +3 -3
- package/dist/{chunk-UORTYL63.cjs → chunk-MFXZHLOU.cjs} +11 -11
- package/dist/{chunk-MSMZBUZO.cjs → chunk-N2U63JUX.cjs} +6 -6
- package/dist/{chunk-SLUJFE6R.js → chunk-OMV5MUTM.js} +15 -15
- package/dist/{chunk-MEYCZS32.js → chunk-OSCW7I4H.js} +1 -1
- package/dist/{chunk-WJPQARJ5.js → chunk-OWE5IID7.js} +1 -1
- package/dist/{chunk-DUQUCOUY.cjs → chunk-PGQWUASE.cjs} +2 -2
- package/dist/{chunk-LZK77LFX.js → chunk-QZO57TPX.js} +1 -1
- package/dist/{chunk-7CTIE42J.cjs → chunk-RPOKLFRB.cjs} +16 -8
- package/dist/{chunk-U3RDU3HU.js → chunk-RSGIJ6RI.js} +2 -2
- package/dist/{chunk-UR6DNU2M.js → chunk-SAGMDVFU.js} +2 -2
- package/dist/{chunk-CM4LI5OH.cjs → chunk-TE7KVFE4.cjs} +9 -9
- package/dist/{chunk-NMAZ2TQF.js → chunk-U3HFQHGZ.js} +1 -1
- package/dist/{chunk-XNNJM5DQ.js → chunk-UCW25LL6.js} +75 -75
- package/dist/{chunk-ZC35YYKS.js → chunk-V5IVMZQJ.js} +1 -1
- package/dist/{chunk-HNW4HIMO.js → chunk-VWATEE5O.js} +15 -15
- package/dist/{chunk-TVCS5UOE.cjs → chunk-XARBUUIE.cjs} +49 -49
- package/dist/{chunk-OX2YNMNS.cjs → chunk-ZU3XQZ63.cjs} +63 -63
- package/dist/components/alert/index.cjs +7 -7
- package/dist/components/alert/index.js +6 -6
- package/dist/components/avatar/index.cjs +5 -5
- package/dist/components/avatar/index.js +4 -4
- package/dist/components/badge/index.cjs +4 -4
- package/dist/components/badge/index.js +3 -3
- package/dist/components/button/index.cjs +6 -6
- package/dist/components/button/index.js +5 -5
- package/dist/components/card/index.cjs +5 -5
- package/dist/components/card/index.js +4 -4
- package/dist/components/checkbox/index.cjs +5 -5
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/chip/index.cjs +7 -7
- package/dist/components/chip/index.js +6 -6
- package/dist/components/divider/index.cjs +4 -4
- package/dist/components/divider/index.js +3 -3
- package/dist/components/field-group/index.cjs +28 -0
- package/dist/components/{input-group → field-group}/index.d.cts +60 -60
- package/dist/components/{input-group → field-group}/index.d.ts +60 -60
- package/dist/components/field-group/index.js +28 -0
- package/dist/components/input-otp/index.cjs +4 -4
- package/dist/components/input-otp/index.js +3 -3
- package/dist/components/radio/index.cjs +5 -5
- package/dist/components/radio/index.js +4 -4
- package/dist/components/skeleton/index.cjs +4 -4
- package/dist/components/skeleton/index.js +3 -3
- package/dist/components/spinner/index.cjs +4 -4
- package/dist/components/spinner/index.js +3 -3
- package/dist/components/switch/index.cjs +5 -5
- package/dist/components/switch/index.js +4 -4
- package/dist/components/text-area/index.cjs +5 -5
- package/dist/components/text-area/index.d.cts +10 -10
- package/dist/components/text-area/index.d.ts +10 -10
- package/dist/components/text-area/index.js +4 -4
- package/dist/components/text-field/index.cjs +26 -0
- package/dist/components/{input → text-field}/index.d.cts +43 -43
- package/dist/components/{input → text-field}/index.d.ts +43 -43
- package/dist/components/text-field/index.js +26 -0
- package/dist/components/typography/index.cjs +4 -4
- package/dist/components/typography/index.js +3 -3
- package/dist/components/view/index.cjs +4 -4
- package/dist/components/view/index.js +3 -3
- package/dist/index.cjs +26 -26
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +60 -60
- package/dist/system/index.cjs +7 -7
- package/dist/system/index.js +6 -6
- package/dist/{input.type-D2qgi03E.d.ts → text-field.type-0l73acce.d.ts} +24 -24
- package/dist/{input.type-BUMDlzL9.d.cts → text-field.type-DBh06DU5.d.cts} +24 -24
- package/dist/theme/index.cjs +3 -3
- package/dist/theme/index.js +2 -2
- package/package.json +16 -16
- package/dist/components/input/index.cjs +0 -26
- package/dist/components/input/index.js +0 -26
- package/dist/components/input-group/index.cjs +0 -28
- package/dist/components/input-group/index.js +0 -28
|
@@ -8,7 +8,7 @@ var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
|
8
8
|
var _chunkFNEUOBCVcjs = require('./chunk-FNEUOBCV.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunk57SJ4LJFcjs = require('./chunk-57SJ4LJF.cjs');
|
|
@@ -158,7 +158,7 @@ var Badge = _react.forwardRef.call(void 0, function Badge2({
|
|
|
158
158
|
...props
|
|
159
159
|
}, ref) {
|
|
160
160
|
const theme = _chunk57SJ4LJFcjs.useXAUITheme.call(void 0, );
|
|
161
|
-
const [styleProps, rest] =
|
|
161
|
+
const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
|
|
162
162
|
const resolvedSize = _nullishCoalesce(size, () => ( BADGE_DEFAULT_SIZE));
|
|
163
163
|
const selection = {
|
|
164
164
|
variant,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.cjs');
|
|
7
7
|
|
|
8
8
|
// src/components/view/grid.tsx
|
|
9
9
|
var _react = require('react');
|
|
@@ -32,7 +32,7 @@ function spanWidth({ cellWidth, columns, gap }, span) {
|
|
|
32
32
|
var _jsxruntime = require('react/jsx-runtime');
|
|
33
33
|
var GridRoot = _react.forwardRef.call(void 0, function Grid({ children, columns = 2, gap = 0, style, onLayout, ...props }, ref) {
|
|
34
34
|
const [width, setWidth] = _react.useState.call(void 0, );
|
|
35
|
-
const [styleProps, rest] =
|
|
35
|
+
const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
|
|
36
36
|
const safeColumns = Math.max(Math.floor(columns), 1);
|
|
37
37
|
const cellWidth = width === void 0 ? void 0 : (width - gap * (safeColumns - 1)) / safeColumns;
|
|
38
38
|
const context = _react.useMemo.call(void 0,
|
|
@@ -75,7 +75,7 @@ function isGridItem(child) {
|
|
|
75
75
|
|
|
76
76
|
var GridItem = _react.forwardRef.call(void 0, function GridItem2({ children, span = 1, style, ...props }, ref) {
|
|
77
77
|
const grid = useGrid();
|
|
78
|
-
const [styleProps, rest] =
|
|
78
|
+
const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
|
|
79
79
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
80
80
|
_reactnative.View,
|
|
81
81
|
{
|
|
@@ -93,7 +93,7 @@ GridItem.displayName = "XAUI.Grid.Item";
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
var StackRoot = _react.forwardRef.call(void 0, function Stack({ children, asChild = false, style, ...props }, ref) {
|
|
96
|
-
const [styleProps, rest] =
|
|
96
|
+
const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
|
|
97
97
|
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
|
|
98
98
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ position: "relative" }, styleProps, style], ...rest, children });
|
|
99
99
|
});
|
|
@@ -104,7 +104,7 @@ StackRoot.displayName = "XAUI.Stack";
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
var StackItem = _react.forwardRef.call(void 0, function StackItem2({ children, asChild = false, style, ...props }, ref) {
|
|
107
|
-
const [styleProps, rest] =
|
|
107
|
+
const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
|
|
108
108
|
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
|
|
109
109
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ position: "absolute" }, styleProps, style], ...rest, children });
|
|
110
110
|
});
|
|
@@ -115,7 +115,7 @@ StackItem.displayName = "XAUI.Stack.Item";
|
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
var Row = _react.forwardRef.call(void 0, function Row2({ children, asChild = false, style, ...props }, ref) {
|
|
118
|
-
const [styleProps, rest] =
|
|
118
|
+
const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
|
|
119
119
|
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
|
|
120
120
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Root, { ref, style: [{ flexDirection: "row" }, styleProps, style], ...rest, children });
|
|
121
121
|
});
|
|
@@ -126,9 +126,17 @@ Row.displayName = "XAUI.Row";
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
var Column = _react.forwardRef.call(void 0, function Column2({ children, asChild = false, style, ...props }, ref) {
|
|
129
|
-
const [styleProps, rest] =
|
|
129
|
+
const [styleProps, rest] = _chunkK3AVOT6Lcjs.useStyleProps.call(void 0, props);
|
|
130
130
|
const Root = asChild ? _chunk54FJOKANcjs.Slot : _reactnative.View;
|
|
131
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
131
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
132
|
+
Root,
|
|
133
|
+
{
|
|
134
|
+
ref,
|
|
135
|
+
style: [{ flexDirection: "column" }, styleProps, style],
|
|
136
|
+
...rest,
|
|
137
|
+
children
|
|
138
|
+
}
|
|
139
|
+
);
|
|
132
140
|
});
|
|
133
141
|
Column.displayName = "XAUI.Column";
|
|
134
142
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PressableFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UCW25LL6.js";
|
|
4
4
|
import {
|
|
5
5
|
usePressState
|
|
6
6
|
} from "./chunk-423RQBOX.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-EGLLDKN6.js";
|
|
10
10
|
import {
|
|
11
11
|
useStyleProps
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OSCW7I4H.js";
|
|
13
13
|
|
|
14
14
|
// src/system/close-button/close-button.tsx
|
|
15
15
|
import { forwardRef } from "react";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-F6W3JQ7K.js";
|
|
7
7
|
import {
|
|
8
8
|
PressableFeedback
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UCW25LL6.js";
|
|
10
10
|
import {
|
|
11
11
|
usePressState
|
|
12
12
|
} from "./chunk-423RQBOX.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-4GTAZM2C.js";
|
|
21
21
|
import {
|
|
22
22
|
useStyleProps
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OSCW7I4H.js";
|
|
24
24
|
import {
|
|
25
25
|
useXAUITheme
|
|
26
26
|
} from "./chunk-A3EGFI6T.js";
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk6N5ZCEABcjs = require('./chunk-6N5ZCEAB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunk54FJOKANcjs = require('./chunk-54FJOKAN.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkK3AVOT6Lcjs = require('./chunk-K3AVOT6L.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 } =
|
|
26
|
+
const { textAreaStyle, textArea } = _chunk6N5ZCEABcjs.useTextField.call(void 0, );
|
|
27
27
|
const { rows, maxRows } = useTextArea();
|
|
28
|
-
const [styleProps, rest] =
|
|
28
|
+
const [styleProps, rest] = _chunkK3AVOT6Lcjs.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
|
-
|
|
40
|
+
_chunk6N5ZCEABcjs.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,
|
|
59
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TextAreaProvider, { value: context, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6N5ZCEABcjs.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:
|
|
65
|
+
Label: _chunk6N5ZCEABcjs.TextFieldLabel,
|
|
66
66
|
Field: TextAreaField,
|
|
67
|
-
Description:
|
|
68
|
-
Error:
|
|
67
|
+
Description: _chunk6N5ZCEABcjs.TextFieldDescription,
|
|
68
|
+
Error: _chunk6N5ZCEABcjs.TextFieldError
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Slot, createSlotContext } from "./chunk-YXPYOOHU.js";
|
|
2
|
-
import { useStyleProps } from "./chunk-
|
|
2
|
+
import { useStyleProps } from "./chunk-OSCW7I4H.js";
|
|
3
3
|
import { contrastOn, isHex, useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
4
4
|
|
|
5
5
|
// src/system/pressable-feedback/pressable-feedback-context.ts
|
|
@@ -11,13 +11,13 @@ var DisableAllContext = createContext(false);
|
|
|
11
11
|
var PRESS_SCALE = 0.985;
|
|
12
12
|
var PRESS_DURATION = 300;
|
|
13
13
|
var SCALE_REFERENCE_WIDTH = 300;
|
|
14
|
-
const
|
|
15
|
-
code: "function
|
|
16
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
17
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
14
|
+
const _worklet_13692614364064_init_data = {
|
|
15
|
+
code: "function pressScaleFor_chunkUCW25LL6Js1(width){const{SCALE_REFERENCE_WIDTH,PRESS_SCALE}=this.__closure;const coefficient=width>0?SCALE_REFERENCE_WIDTH/width:1;return 1-(1-PRESS_SCALE)*coefficient;}",
|
|
16
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js",
|
|
17
|
+
sourceMap: "{\"version\":3,\"names\":[\"pressScaleFor_chunkUCW25LL6Js1\",\"width\",\"SCALE_REFERENCE_WIDTH\",\"PRESS_SCALE\",\"__closure\",\"coefficient\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js\"],\"mappings\":\"AAsBA,SAAAA,8BAA8BA,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\":[]}"
|
|
18
18
|
};
|
|
19
|
-
const pressScaleFor = function
|
|
20
|
-
|
|
19
|
+
const pressScaleFor = function pressScaleFor_chunkUCW25LL6Js1Factory({
|
|
20
|
+
_worklet_13692614364064_init_data,
|
|
21
21
|
SCALE_REFERENCE_WIDTH,
|
|
22
22
|
PRESS_SCALE
|
|
23
23
|
}) {
|
|
@@ -30,13 +30,13 @@ const pressScaleFor = function pressScaleFor_chunkXNNJM5DQJs1Factory({
|
|
|
30
30
|
SCALE_REFERENCE_WIDTH,
|
|
31
31
|
PRESS_SCALE
|
|
32
32
|
};
|
|
33
|
-
pressScaleFor.__workletHash =
|
|
33
|
+
pressScaleFor.__workletHash = 13692614364064;
|
|
34
34
|
pressScaleFor.__pluginVersion = "0.7.4";
|
|
35
|
-
pressScaleFor.__initData =
|
|
35
|
+
pressScaleFor.__initData = _worklet_13692614364064_init_data;
|
|
36
36
|
pressScaleFor.__stackDetails = _e;
|
|
37
37
|
return pressScaleFor;
|
|
38
38
|
}({
|
|
39
|
-
|
|
39
|
+
_worklet_13692614364064_init_data,
|
|
40
40
|
SCALE_REFERENCE_WIDTH,
|
|
41
41
|
PRESS_SCALE
|
|
42
42
|
});
|
|
@@ -49,26 +49,26 @@ var RIPPLE_CONFIRM_DURATION = 225;
|
|
|
49
49
|
var RIPPLE_FADE_IN = 75;
|
|
50
50
|
var RIPPLE_FADE_OUT_DELAY = 225;
|
|
51
51
|
var RIPPLE_FADE_OUT = 150;
|
|
52
|
-
const
|
|
53
|
-
code: "function
|
|
54
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
55
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
52
|
+
const _worklet_2865268618523_init_data = {
|
|
53
|
+
code: "function rippleRadiusFor_chunkUCW25LL6Js2(width,height){return Math.sqrt(width*width+height*height)/2+5;}",
|
|
54
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js",
|
|
55
|
+
sourceMap: "{\"version\":3,\"names\":[\"rippleRadiusFor_chunkUCW25LL6Js2\",\"width\",\"height\",\"Math\",\"sqrt\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js\"],\"mappings\":\"AAoCA,SAAAA,gCAAwCA,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\":[]}"
|
|
56
56
|
};
|
|
57
|
-
const rippleRadiusFor = function
|
|
58
|
-
|
|
57
|
+
const rippleRadiusFor = function rippleRadiusFor_chunkUCW25LL6Js2Factory({
|
|
58
|
+
_worklet_2865268618523_init_data
|
|
59
59
|
}) {
|
|
60
60
|
const _e = [new global.Error(), 1, -27];
|
|
61
61
|
const rippleRadiusFor = function (width, height) {
|
|
62
62
|
return Math.sqrt(width * width + height * height) / 2 + 5;
|
|
63
63
|
};
|
|
64
64
|
rippleRadiusFor.__closure = {};
|
|
65
|
-
rippleRadiusFor.__workletHash =
|
|
65
|
+
rippleRadiusFor.__workletHash = 2865268618523;
|
|
66
66
|
rippleRadiusFor.__pluginVersion = "0.7.4";
|
|
67
|
-
rippleRadiusFor.__initData =
|
|
67
|
+
rippleRadiusFor.__initData = _worklet_2865268618523_init_data;
|
|
68
68
|
rippleRadiusFor.__stackDetails = _e;
|
|
69
69
|
return rippleRadiusFor;
|
|
70
70
|
}({
|
|
71
|
-
|
|
71
|
+
_worklet_2865268618523_init_data
|
|
72
72
|
});
|
|
73
73
|
var ALL_OFF = {
|
|
74
74
|
scale: false,
|
|
@@ -242,15 +242,15 @@ var StaticFeedback = forwardRef(function StaticFeedback2({
|
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
});
|
|
245
|
-
const
|
|
246
|
-
code: "function
|
|
247
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
248
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
245
|
+
const _worklet_7657867622062_init_data = {
|
|
246
|
+
code: "function chunkUCW25LL6Js3(){const{pressScaleFor,size}=this.__closure;return pressScaleFor(size.value.width);}",
|
|
247
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js",
|
|
248
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkUCW25LL6Js3\",\"pressScaleFor\",\"size\",\"__closure\",\"value\",\"width\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js\"],\"mappings\":\"AAkNuC,SAAAA,iBAAA,QAAAC,aAAA,CAAAC,IAAA,OAAAC,SAAA,OAAM,CAAAF,aAAc,CAAAC,IAAK,CAAAE,KAAM,CAAAC,KAAK\",\"ignoreList\":[]}"
|
|
249
249
|
};
|
|
250
|
-
const
|
|
251
|
-
code: "function
|
|
252
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
253
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
250
|
+
const _worklet_1758838433790_init_data = {
|
|
251
|
+
code: "function chunkUCW25LL6Js4(){const{animation,pressedScale,progress}=this.__closure;if(!animation.scale)return{};return{transform:[{scale:1-(1-pressedScale.value)*progress.value}]};}",
|
|
252
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js",
|
|
253
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkUCW25LL6Js4\",\"animation\",\"pressedScale\",\"progress\",\"__closure\",\"scale\",\"transform\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js\"],\"mappings\":\"AAmNyC,SAAAA,gBAAMA,CAAA,QAAAC,SAAA,CAAAC,YAAA,CAAAC,QAAA,OAAAC,SAAA,CAE3C,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\":[]}"
|
|
254
254
|
};
|
|
255
255
|
var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
256
256
|
isPressed = false,
|
|
@@ -278,35 +278,35 @@ var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
|
278
278
|
easing: Easing.out(Easing.ease)
|
|
279
279
|
});
|
|
280
280
|
}, [isPressed, progress]);
|
|
281
|
-
const pressedScale = useDerivedValue(function
|
|
282
|
-
|
|
281
|
+
const pressedScale = useDerivedValue(function chunkUCW25LL6Js3Factory({
|
|
282
|
+
_worklet_7657867622062_init_data,
|
|
283
283
|
pressScaleFor,
|
|
284
284
|
size
|
|
285
285
|
}) {
|
|
286
286
|
const _e = [new global.Error(), -3, -27];
|
|
287
|
-
const
|
|
288
|
-
|
|
287
|
+
const chunkUCW25LL6Js3 = () => pressScaleFor(size.value.width);
|
|
288
|
+
chunkUCW25LL6Js3.__closure = {
|
|
289
289
|
pressScaleFor,
|
|
290
290
|
size
|
|
291
291
|
};
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return
|
|
292
|
+
chunkUCW25LL6Js3.__workletHash = 7657867622062;
|
|
293
|
+
chunkUCW25LL6Js3.__pluginVersion = "0.7.4";
|
|
294
|
+
chunkUCW25LL6Js3.__initData = _worklet_7657867622062_init_data;
|
|
295
|
+
chunkUCW25LL6Js3.__stackDetails = _e;
|
|
296
|
+
return chunkUCW25LL6Js3;
|
|
297
297
|
}({
|
|
298
|
-
|
|
298
|
+
_worklet_7657867622062_init_data,
|
|
299
299
|
pressScaleFor,
|
|
300
300
|
size
|
|
301
301
|
}));
|
|
302
|
-
const animatedStyle = useAnimatedStyle(function
|
|
303
|
-
|
|
302
|
+
const animatedStyle = useAnimatedStyle(function chunkUCW25LL6Js4Factory({
|
|
303
|
+
_worklet_1758838433790_init_data,
|
|
304
304
|
animation,
|
|
305
305
|
pressedScale,
|
|
306
306
|
progress
|
|
307
307
|
}) {
|
|
308
308
|
const _e = [new global.Error(), -4, -27];
|
|
309
|
-
const
|
|
309
|
+
const chunkUCW25LL6Js4 = function () {
|
|
310
310
|
if (!animation.scale) return {};
|
|
311
311
|
return {
|
|
312
312
|
transform: [{
|
|
@@ -314,18 +314,18 @@ var AnimatedFeedback = forwardRef(function AnimatedFeedback2({
|
|
|
314
314
|
}]
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
|
-
|
|
317
|
+
chunkUCW25LL6Js4.__closure = {
|
|
318
318
|
animation,
|
|
319
319
|
pressedScale,
|
|
320
320
|
progress
|
|
321
321
|
};
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
return
|
|
322
|
+
chunkUCW25LL6Js4.__workletHash = 1758838433790;
|
|
323
|
+
chunkUCW25LL6Js4.__pluginVersion = "0.7.4";
|
|
324
|
+
chunkUCW25LL6Js4.__initData = _worklet_1758838433790_init_data;
|
|
325
|
+
chunkUCW25LL6Js4.__stackDetails = _e;
|
|
326
|
+
return chunkUCW25LL6Js4;
|
|
327
327
|
}({
|
|
328
|
-
|
|
328
|
+
_worklet_1758838433790_init_data,
|
|
329
329
|
animation,
|
|
330
330
|
pressedScale,
|
|
331
331
|
progress
|
|
@@ -470,10 +470,10 @@ function PressableFeedbackHighlight({
|
|
|
470
470
|
}
|
|
471
471
|
PressableFeedbackHighlight.displayName = "XAUI.PressableFeedback.Highlight";
|
|
472
472
|
markOverlay(PressableFeedbackHighlight);
|
|
473
|
-
const
|
|
474
|
-
code: "function
|
|
475
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
476
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
473
|
+
const _worklet_278479363534_init_data = {
|
|
474
|
+
code: "function chunkUCW25LL6Js5(){const{shown,opacity}=this.__closure;return{opacity:shown.value*opacity};}",
|
|
475
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js",
|
|
476
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkUCW25LL6Js5\",\"shown\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js\"],\"mappings\":\"AAiW0C,SAAAA,gBAAMA,CAAA,QAAAC,KAAA,CAAAC,OAAA,OAAAC,SAAA,CAE5C,MAAO,CAAED,OAAO,CAAED,KAAK,CAACG,KAAK,CAAGF,OAAQ,CAAC,CAC3C\",\"ignoreList\":[]}"
|
|
477
477
|
};
|
|
478
478
|
function AnimatedHighlight({
|
|
479
479
|
base,
|
|
@@ -489,28 +489,28 @@ function AnimatedHighlight({
|
|
|
489
489
|
duration
|
|
490
490
|
});
|
|
491
491
|
}, [isPressed, shown, duration]);
|
|
492
|
-
const animatedStyle = useAnimatedStyle2(function
|
|
493
|
-
|
|
492
|
+
const animatedStyle = useAnimatedStyle2(function chunkUCW25LL6Js5Factory({
|
|
493
|
+
_worklet_278479363534_init_data,
|
|
494
494
|
shown,
|
|
495
495
|
opacity
|
|
496
496
|
}) {
|
|
497
497
|
const _e = [new global.Error(), -3, -27];
|
|
498
|
-
const
|
|
498
|
+
const chunkUCW25LL6Js5 = function () {
|
|
499
499
|
return {
|
|
500
500
|
opacity: shown.value * opacity
|
|
501
501
|
};
|
|
502
502
|
};
|
|
503
|
-
|
|
503
|
+
chunkUCW25LL6Js5.__closure = {
|
|
504
504
|
shown,
|
|
505
505
|
opacity
|
|
506
506
|
};
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
return
|
|
507
|
+
chunkUCW25LL6Js5.__workletHash = 278479363534;
|
|
508
|
+
chunkUCW25LL6Js5.__pluginVersion = "0.7.4";
|
|
509
|
+
chunkUCW25LL6Js5.__initData = _worklet_278479363534_init_data;
|
|
510
|
+
chunkUCW25LL6Js5.__stackDetails = _e;
|
|
511
|
+
return chunkUCW25LL6Js5;
|
|
512
512
|
}({
|
|
513
|
-
|
|
513
|
+
_worklet_278479363534_init_data,
|
|
514
514
|
shown,
|
|
515
515
|
opacity
|
|
516
516
|
}), [shown, opacity]);
|
|
@@ -577,10 +577,10 @@ function PressableFeedbackRipple({
|
|
|
577
577
|
}
|
|
578
578
|
PressableFeedbackRipple.displayName = "XAUI.PressableFeedback.Ripple";
|
|
579
579
|
markOverlay(PressableFeedbackRipple);
|
|
580
|
-
const
|
|
581
|
-
code: "function
|
|
582
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
583
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
580
|
+
const _worklet_9064454927809_init_data = {
|
|
581
|
+
code: "function chunkUCW25LL6Js6(){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}]};}",
|
|
582
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-UCW25LL6.js",
|
|
583
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkUCW25LL6Js6\",\"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-UCW25LL6.js\"],\"mappings\":\"AAia0C,SAAAA,gBAAMA,CAAA,QAAAC,IAAA,CAAAC,kBAAA,CAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA,OAAAC,SAAA,CAE5C,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\":[]}"
|
|
584
584
|
};
|
|
585
585
|
function RippleWave({
|
|
586
586
|
wave,
|
|
@@ -590,8 +590,8 @@ function RippleWave({
|
|
|
590
590
|
opacity,
|
|
591
591
|
style
|
|
592
592
|
}) {
|
|
593
|
-
const animatedStyle = useAnimatedStyle3(function
|
|
594
|
-
|
|
593
|
+
const animatedStyle = useAnimatedStyle3(function chunkUCW25LL6Js6Factory({
|
|
594
|
+
_worklet_9064454927809_init_data,
|
|
595
595
|
wave,
|
|
596
596
|
RIPPLE_START_SCALE,
|
|
597
597
|
center,
|
|
@@ -599,7 +599,7 @@ function RippleWave({
|
|
|
599
599
|
radius
|
|
600
600
|
}) {
|
|
601
601
|
const _e = [new global.Error(), -6, -27];
|
|
602
|
-
const
|
|
602
|
+
const chunkUCW25LL6Js6 = function () {
|
|
603
603
|
const t = wave.expand.value;
|
|
604
604
|
const from = wave.origin.value;
|
|
605
605
|
const scale = RIPPLE_START_SCALE + (1 - RIPPLE_START_SCALE) * t;
|
|
@@ -617,20 +617,20 @@ function RippleWave({
|
|
|
617
617
|
}]
|
|
618
618
|
};
|
|
619
619
|
};
|
|
620
|
-
|
|
620
|
+
chunkUCW25LL6Js6.__closure = {
|
|
621
621
|
wave,
|
|
622
622
|
RIPPLE_START_SCALE,
|
|
623
623
|
center,
|
|
624
624
|
opacity,
|
|
625
625
|
radius
|
|
626
626
|
};
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
return
|
|
627
|
+
chunkUCW25LL6Js6.__workletHash = 9064454927809;
|
|
628
|
+
chunkUCW25LL6Js6.__pluginVersion = "0.7.4";
|
|
629
|
+
chunkUCW25LL6Js6.__initData = _worklet_9064454927809_init_data;
|
|
630
|
+
chunkUCW25LL6Js6.__stackDetails = _e;
|
|
631
|
+
return chunkUCW25LL6Js6;
|
|
632
632
|
}({
|
|
633
|
-
|
|
633
|
+
_worklet_9064454927809_init_data,
|
|
634
634
|
wave,
|
|
635
635
|
RIPPLE_START_SCALE,
|
|
636
636
|
center,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRecipe, radiusAxis } from "./chunk-4GTAZM2C.js";
|
|
2
|
-
import { useStyleProps } from "./chunk-
|
|
2
|
+
import { useStyleProps } from "./chunk-OSCW7I4H.js";
|
|
3
3
|
import { useXAUITheme } from "./chunk-A3EGFI6T.js";
|
|
4
4
|
|
|
5
5
|
// src/components/skeleton/skeleton.tsx
|
|
@@ -100,10 +100,10 @@ var Skeleton = forwardRef(function Skeleton2({
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
Skeleton.displayName = "XAUI.Skeleton";
|
|
103
|
-
const
|
|
104
|
-
code: "function
|
|
105
|
-
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-
|
|
106
|
-
sourceMap: "{\"version\":3,\"names\":[\"
|
|
103
|
+
const _worklet_13110416509490_init_data = {
|
|
104
|
+
code: "function chunkVWATEE5OJs1(){const{opacity}=this.__closure;return{opacity:opacity.value};}",
|
|
105
|
+
location: "/home/runner/work/xaui/xaui/packages/native/dist/chunk-VWATEE5O.js",
|
|
106
|
+
sourceMap: "{\"version\":3,\"names\":[\"chunkVWATEE5OJs1\",\"opacity\",\"__closure\",\"value\"],\"sources\":[\"/home/runner/work/xaui/xaui/packages/native/dist/chunk-VWATEE5O.js\"],\"mappings\":\"AAyF2C,SAAAA,gBAAMA,CAAA,QAAAC,OAAA,OAAAC,SAAA,CAE3C,MAAO,CAAED,OAAO,CAAEA,OAAO,CAACE,KAAM,CAAC,CACnC\",\"ignoreList\":[]}"
|
|
107
107
|
};
|
|
108
108
|
var PulsingBlock = forwardRef(function PulsingBlock2({
|
|
109
109
|
style,
|
|
@@ -119,26 +119,26 @@ var PulsingBlock = forwardRef(function PulsingBlock2({
|
|
|
119
119
|
true);
|
|
120
120
|
return () => cancelAnimation(opacity);
|
|
121
121
|
}, [opacity]);
|
|
122
|
-
const animatedStyle = useAnimatedStyle(function
|
|
123
|
-
|
|
122
|
+
const animatedStyle = useAnimatedStyle(function chunkVWATEE5OJs1Factory({
|
|
123
|
+
_worklet_13110416509490_init_data,
|
|
124
124
|
opacity
|
|
125
125
|
}) {
|
|
126
126
|
const _e = [new global.Error(), -2, -27];
|
|
127
|
-
const
|
|
127
|
+
const chunkVWATEE5OJs1 = function () {
|
|
128
128
|
return {
|
|
129
129
|
opacity: opacity.value
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
|
|
132
|
+
chunkVWATEE5OJs1.__closure = {
|
|
133
133
|
opacity
|
|
134
134
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return
|
|
135
|
+
chunkVWATEE5OJs1.__workletHash = 13110416509490;
|
|
136
|
+
chunkVWATEE5OJs1.__pluginVersion = "0.7.4";
|
|
137
|
+
chunkVWATEE5OJs1.__initData = _worklet_13110416509490_init_data;
|
|
138
|
+
chunkVWATEE5OJs1.__stackDetails = _e;
|
|
139
|
+
return chunkVWATEE5OJs1;
|
|
140
140
|
}({
|
|
141
|
-
|
|
141
|
+
_worklet_13110416509490_init_data,
|
|
142
142
|
opacity
|
|
143
143
|
}), [opacity]);
|
|
144
144
|
return /* @__PURE__ */jsx(Animated.View, {
|