@xaui/native 0.0.37 → 0.0.39
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/alert/index.cjs +3 -3
- package/dist/alert/index.js +1 -1
- package/dist/app-bar/index.cjs +3 -3
- package/dist/app-bar/index.js +1 -1
- package/dist/autocomplete/index.cjs +17 -17
- package/dist/autocomplete/index.js +5 -5
- package/dist/avatar/index.cjs +5 -5
- package/dist/avatar/index.js +1 -1
- package/dist/badge/index.cjs +4 -4
- package/dist/badge/index.js +1 -1
- package/dist/bottom-sheet/index.cjs +3 -3
- package/dist/bottom-sheet/index.js +2 -2
- package/dist/bottom-tab-bar/index.cjs +2 -2
- package/dist/bottom-tab-bar/index.js +1 -1
- package/dist/button/index.cjs +20 -20
- package/dist/button/index.js +12 -12
- package/dist/card/index.cjs +6 -6
- package/dist/card/index.js +1 -1
- package/dist/carousel/index.cjs +2 -2
- package/dist/carousel/index.js +1 -1
- package/dist/checkbox/index.cjs +6 -6
- package/dist/checkbox/index.js +1 -1
- package/dist/chip/index.cjs +3 -3
- package/dist/chip/index.js +1 -1
- package/dist/{chunk-LUBWRVI2.js → chunk-2JKWVIPB.js} +1 -1
- package/dist/{chunk-RVR42THG.cjs → chunk-3XWF77Y3.cjs} +3 -3
- package/dist/{chunk-2ANGPYCP.cjs → chunk-43I45LX7.cjs} +37 -32
- package/dist/{chunk-QMYWIWSX.cjs → chunk-FBTBWI3P.cjs} +4 -4
- package/dist/{chunk-F7WH4DMG.js → chunk-J3BOFXIH.js} +1 -1
- package/dist/{chunk-ED22WCCI.js → chunk-K24VDBNN.js} +1 -1
- package/dist/{chunk-LTKYHG5V.js → chunk-LVNBYERF.js} +4 -0
- package/dist/{chunk-E4DOPNVW.js → chunk-M6A23KUM.js} +35 -30
- package/dist/{chunk-OQ2BLOOG.cjs → chunk-RZJFCDFS.cjs} +4 -0
- package/dist/{chunk-JEGEPGVU.js → chunk-UVI56OO5.js} +2 -2
- package/dist/{chunk-BD72HIPR.cjs → chunk-X5KNZ6YJ.cjs} +2 -2
- package/dist/{chunk-KTLGDLCB.cjs → chunk-XQED3KRW.cjs} +7 -7
- package/dist/color-picker/index.cjs +6 -6
- package/dist/color-picker/index.js +3 -3
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.js +1 -1
- package/dist/datepicker/index.cjs +17 -17
- package/dist/datepicker/index.js +5 -5
- package/dist/dialog/index.cjs +5 -5
- package/dist/dialog/index.js +1 -1
- package/dist/divider/index.cjs +3 -3
- package/dist/divider/index.js +2 -2
- package/dist/drawer/index.cjs +2 -2
- package/dist/drawer/index.js +1 -1
- package/dist/expansion-panel/index.cjs +11 -11
- package/dist/expansion-panel/index.js +2 -2
- package/dist/fab/index.cjs +4 -4
- package/dist/fab/index.js +3 -3
- package/dist/fab-menu/index.cjs +7 -7
- package/dist/fab-menu/index.js +3 -3
- package/dist/feature-discovery/index.cjs +2 -2
- package/dist/feature-discovery/index.js +1 -1
- package/dist/indicator/index.cjs +3 -3
- package/dist/indicator/index.js +2 -2
- package/dist/input/index.cjs +37 -34
- package/dist/input/index.js +34 -31
- package/dist/input-trigger/index.cjs +3 -3
- package/dist/input-trigger/index.js +2 -2
- package/dist/list/index.cjs +5 -5
- package/dist/list/index.js +1 -1
- package/dist/menu/index.cjs +3 -3
- package/dist/menu/index.js +1 -1
- package/dist/menubox/index.cjs +5 -5
- package/dist/menubox/index.js +1 -1
- package/dist/picker/index.cjs +6 -6
- package/dist/picker/index.js +3 -3
- package/dist/progress/index.cjs +2 -2
- package/dist/progress/index.js +1 -1
- package/dist/radio/index.cjs +7 -7
- package/dist/radio/index.js +1 -1
- package/dist/segment-button/index.cjs +8 -8
- package/dist/segment-button/index.js +5 -5
- package/dist/select/index.cjs +16 -16
- package/dist/select/index.js +5 -5
- package/dist/skeleton/index.cjs +2 -2
- package/dist/skeleton/index.js +1 -1
- package/dist/slider/index.cjs +5 -5
- package/dist/slider/index.js +1 -1
- package/dist/snackbar/index.cjs +3 -3
- package/dist/snackbar/index.js +1 -1
- package/dist/snippet/index.cjs +3 -3
- package/dist/snippet/index.js +1 -1
- package/dist/stepper/index.cjs +2 -2
- package/dist/stepper/index.js +1 -1
- package/dist/switch/index.cjs +7 -7
- package/dist/switch/index.js +1 -1
- package/dist/tabs/index.cjs +8 -8
- package/dist/tabs/index.js +5 -5
- package/dist/timepicker/index.cjs +5 -5
- package/dist/timepicker/index.js +2 -2
- package/dist/toolbar/index.cjs +2 -2
- package/dist/toolbar/index.js +1 -1
- package/dist/typography/index.cjs +3 -3
- package/dist/typography/index.js +1 -1
- package/dist/view/index.cjs +3 -3
- package/dist/view/index.js +1 -1
- package/package.json +3 -3
package/dist/select/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import "../chunk-SHBDANQN.js";
|
|
5
5
|
import {
|
|
6
6
|
useXUITheme
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-LVNBYERF.js";
|
|
8
8
|
|
|
9
9
|
// src/components/select/select.tsx
|
|
10
10
|
import React3, { useCallback as useCallback2, useMemo as useMemo2 } from "react";
|
|
@@ -37,28 +37,28 @@ var useSelectSizeStyles = (size) => {
|
|
|
37
37
|
return useMemo(() => {
|
|
38
38
|
const sizes = {
|
|
39
39
|
xs: {
|
|
40
|
-
minHeight:
|
|
40
|
+
minHeight: theme.componentSizes.xs,
|
|
41
41
|
paddingHorizontal: theme.spacing.sm,
|
|
42
42
|
paddingVertical: theme.spacing.xs,
|
|
43
43
|
fontSize: theme.fontSizes.xs,
|
|
44
44
|
labelSize: theme.fontSizes.xs
|
|
45
45
|
},
|
|
46
46
|
sm: {
|
|
47
|
-
minHeight:
|
|
47
|
+
minHeight: theme.componentSizes.sm,
|
|
48
48
|
paddingHorizontal: theme.spacing.md,
|
|
49
49
|
paddingVertical: theme.spacing.xs,
|
|
50
50
|
fontSize: theme.fontSizes.sm,
|
|
51
51
|
labelSize: theme.fontSizes.xs
|
|
52
52
|
},
|
|
53
53
|
md: {
|
|
54
|
-
minHeight:
|
|
54
|
+
minHeight: theme.componentSizes.md,
|
|
55
55
|
paddingHorizontal: theme.spacing.md,
|
|
56
56
|
paddingVertical: theme.spacing.sm,
|
|
57
57
|
fontSize: theme.fontSizes.md,
|
|
58
58
|
labelSize: theme.fontSizes.sm
|
|
59
59
|
},
|
|
60
60
|
lg: {
|
|
61
|
-
minHeight:
|
|
61
|
+
minHeight: theme.componentSizes.lg,
|
|
62
62
|
paddingHorizontal: theme.spacing.lg,
|
|
63
63
|
paddingVertical: theme.spacing.md,
|
|
64
64
|
fontSize: theme.fontSizes.lg,
|
package/dist/skeleton/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }require('../chunk-56RPWZD2.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/skeleton/skeleton.tsx
|
|
7
7
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -29,7 +29,7 @@ var Skeleton = ({
|
|
|
29
29
|
radius = "md",
|
|
30
30
|
style
|
|
31
31
|
}) => {
|
|
32
|
-
const theme =
|
|
32
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
33
33
|
const opacity = _react.useRef.call(void 0, new _reactnative.Animated.Value(0.6)).current;
|
|
34
34
|
const resolvedColor = _react.useMemo.call(void 0,
|
|
35
35
|
() => _nullishCoalesce(skeletonColor, () => ( theme.colors.default.background)),
|
package/dist/skeleton/index.js
CHANGED
package/dist/slider/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/slider/slider.tsx
|
|
8
8
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -36,7 +36,7 @@ var runSliderThumbPressOutAnimation = (scale) => {
|
|
|
36
36
|
|
|
37
37
|
var _core = require('@xaui/core');
|
|
38
38
|
function useSliderSizeStyles(size) {
|
|
39
|
-
const theme =
|
|
39
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
40
40
|
return _react.useMemo.call(void 0, () => {
|
|
41
41
|
const sizes = {
|
|
42
42
|
xs: {
|
|
@@ -72,7 +72,7 @@ function useSliderSizeStyles(size) {
|
|
|
72
72
|
}, [size, theme]);
|
|
73
73
|
}
|
|
74
74
|
function useSliderColorStyles(color, isDisabled) {
|
|
75
|
-
const theme =
|
|
75
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
76
76
|
const safeColor = _core.getSafeThemeColor.call(void 0, color);
|
|
77
77
|
const palette = theme.colors[safeColor];
|
|
78
78
|
const fillColor = _core.withPaletteNumber.call(void 0, palette.main, 400);
|
|
@@ -259,8 +259,8 @@ var Slider = ({
|
|
|
259
259
|
const currentValue = isControlled ? clamp(controlledValue, minValue, maxValue) : internalValue;
|
|
260
260
|
const sizeStyles = useSliderSizeStyles(size);
|
|
261
261
|
const colorStyles = useSliderColorStyles(color, isDisabled);
|
|
262
|
-
const radiusStyles =
|
|
263
|
-
const theme =
|
|
262
|
+
const radiusStyles = _chunkRZJFCDFScjs.useBorderRadiusStyles.call(void 0, radius);
|
|
263
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
264
264
|
const thumbScale = _react.useRef.call(void 0, new _reactnative.Animated.Value(1)).current;
|
|
265
265
|
const initialTouchTrackPosition = _react.useRef.call(void 0, 0);
|
|
266
266
|
const animatedTrackPosition = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
|
package/dist/slider/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "../chunk-SHBDANQN.js";
|
|
|
2
2
|
import {
|
|
3
3
|
useBorderRadiusStyles,
|
|
4
4
|
useXUITheme
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-LVNBYERF.js";
|
|
6
6
|
|
|
7
7
|
// src/components/slider/slider.tsx
|
|
8
8
|
import React, { useCallback, useEffect, useMemo as useMemo2, useRef, useState } from "react";
|
package/dist/snackbar/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/snackbar/snackbar.tsx
|
|
8
8
|
|
|
@@ -102,7 +102,7 @@ var M3_DARK_INVERSE_SURFACE = "#E6E1E5";
|
|
|
102
102
|
var M3_DARK_INVERSE_ON_SURFACE = "#322F35";
|
|
103
103
|
var M3_DARK_INVERSE_PRIMARY = "#6750A4";
|
|
104
104
|
var useSnackbarColors = (themeColor = "default") => {
|
|
105
|
-
const theme =
|
|
105
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
106
106
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
107
107
|
return _react.useMemo.call(void 0, () => {
|
|
108
108
|
if (safeThemeColor === "default") {
|
|
@@ -365,7 +365,7 @@ var SnackbarStack = ({
|
|
|
365
365
|
))
|
|
366
366
|
)
|
|
367
367
|
);
|
|
368
|
-
return usePortal ? /* @__PURE__ */ _react2.default.createElement(
|
|
368
|
+
return usePortal ? /* @__PURE__ */ _react2.default.createElement(_chunkRZJFCDFScjs.Portal, null, stackNode) : stackNode;
|
|
369
369
|
};
|
|
370
370
|
var Snackbar = ({
|
|
371
371
|
isVisible,
|
package/dist/snackbar/index.js
CHANGED
package/dist/snippet/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/snippet/snippet.tsx
|
|
8
8
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -79,7 +79,7 @@ var styles = _reactnative.StyleSheet.create({
|
|
|
79
79
|
|
|
80
80
|
var _core = require('@xaui/core');
|
|
81
81
|
var useSnippetColors = (themeColor, variant, isDisabled) => {
|
|
82
|
-
const theme =
|
|
82
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
83
83
|
return _react.useMemo.call(void 0, () => {
|
|
84
84
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
85
85
|
const colorScheme = theme.colors[safeThemeColor];
|
|
@@ -160,7 +160,7 @@ var Snippet = ({
|
|
|
160
160
|
}) => {
|
|
161
161
|
const [isCopied, setIsCopied] = _react2.default.useState(false);
|
|
162
162
|
const resetTimerRef = _react2.default.useRef(null);
|
|
163
|
-
const radiusStyles =
|
|
163
|
+
const radiusStyles = _chunkRZJFCDFScjs.useBorderRadiusStyles.call(void 0, radius);
|
|
164
164
|
const colors = useSnippetColors(themeColor, variant, isDisabled);
|
|
165
165
|
const { isTop, isLeft } = useCopyButtonPositionStyles(copyButtonPosition);
|
|
166
166
|
_react2.default.useEffect(() => {
|
package/dist/snippet/index.js
CHANGED
package/dist/stepper/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }require('../chunk-56RPWZD2.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/stepper/stepper.tsx
|
|
7
7
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -224,7 +224,7 @@ var useStepperSizeStyles = (size) => {
|
|
|
224
224
|
return _react.useMemo.call(void 0, () => sizeMap[size], [size]);
|
|
225
225
|
};
|
|
226
226
|
var useStepperColors = (themeColor) => {
|
|
227
|
-
const theme =
|
|
227
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
228
228
|
const scheme = theme.colors[_core.getSafeThemeColor.call(void 0, themeColor)];
|
|
229
229
|
return _react.useMemo.call(void 0,
|
|
230
230
|
() => ({
|
package/dist/stepper/index.js
CHANGED
package/dist/switch/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }require('../chunk-56RPWZD2.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/switch/switch.tsx
|
|
7
7
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -11,12 +11,12 @@ var _reactnative = require('react-native');
|
|
|
11
11
|
|
|
12
12
|
var _core = require('@xaui/core');
|
|
13
13
|
var useSwitchColorScheme = (themeColor) => {
|
|
14
|
-
const theme =
|
|
14
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
15
15
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
16
16
|
return theme.colors[safeThemeColor];
|
|
17
17
|
};
|
|
18
18
|
var useSwitchSizeStyles = (variant, size) => {
|
|
19
|
-
const theme =
|
|
19
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
20
20
|
const sizeStyles = _react.useMemo.call(void 0, () => {
|
|
21
21
|
if (variant === "overlap") {
|
|
22
22
|
const sizes2 = {
|
|
@@ -72,7 +72,7 @@ var useSwitchSizeStyles = (variant, size) => {
|
|
|
72
72
|
return sizeStyles;
|
|
73
73
|
};
|
|
74
74
|
var useSwitchRadiusStyles = (radius) => {
|
|
75
|
-
const theme =
|
|
75
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
76
76
|
const radiusStyles = _react.useMemo.call(void 0, () => {
|
|
77
77
|
const radii = {
|
|
78
78
|
none: theme.borderRadius.none,
|
|
@@ -102,7 +102,7 @@ var useSwitchTrackStyles = ({
|
|
|
102
102
|
sizeStyles,
|
|
103
103
|
radiusStyles
|
|
104
104
|
}) => {
|
|
105
|
-
const theme =
|
|
105
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
106
106
|
const trackStyles = _react.useMemo.call(void 0, () => {
|
|
107
107
|
const backgroundColor = isSelected ? variant === "overlap" ? colorScheme.background : colorScheme.main : theme.colors.default.background;
|
|
108
108
|
return {
|
|
@@ -122,7 +122,7 @@ var useSwitchThumbStyles = ({
|
|
|
122
122
|
sizeStyles,
|
|
123
123
|
thumbRadius
|
|
124
124
|
}) => {
|
|
125
|
-
const theme =
|
|
125
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
126
126
|
const thumbStyles = _react.useMemo.call(void 0, () => {
|
|
127
127
|
const baseStyle = {
|
|
128
128
|
width: sizeStyles.thumbSize,
|
|
@@ -236,7 +236,7 @@ var Switch = ({
|
|
|
236
236
|
style,
|
|
237
237
|
onValueChange
|
|
238
238
|
}) => {
|
|
239
|
-
const theme =
|
|
239
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
240
240
|
const isControlled = typeof isSelectedProp === "boolean";
|
|
241
241
|
const [internalSelected, setInternalSelected] = _react.useState.call(void 0, _nullishCoalesce(isSelectedProp, () => ( false)));
|
|
242
242
|
const isSelected = isControlled ? isSelectedProp : internalSelected;
|
package/dist/switch/index.js
CHANGED
package/dist/tabs/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/tabs/tabs.tsx
|
|
8
8
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -43,29 +43,29 @@ var runTabsCursorAnimation = (translateX, width, scaleX, toX, toWidth, duration)
|
|
|
43
43
|
|
|
44
44
|
var _core = require('@xaui/core');
|
|
45
45
|
function useTabsSizeStyles(size) {
|
|
46
|
-
const theme =
|
|
46
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
47
47
|
return _react.useMemo.call(void 0, () => {
|
|
48
48
|
const sizes = {
|
|
49
49
|
xs: {
|
|
50
|
-
minHeight:
|
|
50
|
+
minHeight: theme.componentSizes.xs,
|
|
51
51
|
paddingHorizontal: theme.spacing.sm,
|
|
52
52
|
paddingVertical: theme.spacing.xs,
|
|
53
53
|
fontSize: theme.fontSizes.xs
|
|
54
54
|
},
|
|
55
55
|
sm: {
|
|
56
|
-
minHeight:
|
|
56
|
+
minHeight: theme.componentSizes.sm,
|
|
57
57
|
paddingHorizontal: theme.spacing.md,
|
|
58
58
|
paddingVertical: theme.spacing.xs,
|
|
59
59
|
fontSize: theme.fontSizes.sm
|
|
60
60
|
},
|
|
61
61
|
md: {
|
|
62
|
-
minHeight:
|
|
62
|
+
minHeight: theme.componentSizes.md,
|
|
63
63
|
paddingHorizontal: theme.spacing.md,
|
|
64
64
|
paddingVertical: theme.spacing.sm,
|
|
65
65
|
fontSize: theme.fontSizes.md
|
|
66
66
|
},
|
|
67
67
|
lg: {
|
|
68
|
-
minHeight:
|
|
68
|
+
minHeight: theme.componentSizes.lg,
|
|
69
69
|
paddingHorizontal: theme.spacing.lg,
|
|
70
70
|
paddingVertical: theme.spacing.md,
|
|
71
71
|
fontSize: theme.fontSizes.lg
|
|
@@ -75,7 +75,7 @@ function useTabsSizeStyles(size) {
|
|
|
75
75
|
}, [size, theme]);
|
|
76
76
|
}
|
|
77
77
|
function useTabsVariantStyles(color, variant) {
|
|
78
|
-
const theme =
|
|
78
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
79
79
|
const safeColor = _core.getSafeThemeColor.call(void 0, color);
|
|
80
80
|
const palette = theme.colors[safeColor];
|
|
81
81
|
const cursorSolidColor = _core.withPaletteNumber.call(void 0, palette.main, 400);
|
|
@@ -246,7 +246,7 @@ var Tabs = ({
|
|
|
246
246
|
);
|
|
247
247
|
const sizeStyles = useTabsSizeStyles(size);
|
|
248
248
|
const variantStyles = useTabsVariantStyles(color, variant);
|
|
249
|
-
const radiusStyles =
|
|
249
|
+
const radiusStyles = _chunkRZJFCDFScjs.useBorderRadiusStyles.call(void 0, radius);
|
|
250
250
|
const cursorTranslateX = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
|
|
251
251
|
const cursorWidth = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
|
|
252
252
|
const cursorScaleX = _react.useRef.call(void 0, new _reactnative.Animated.Value(1)).current;
|
package/dist/tabs/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "../chunk-SHBDANQN.js";
|
|
|
2
2
|
import {
|
|
3
3
|
useBorderRadiusStyles,
|
|
4
4
|
useXUITheme
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-LVNBYERF.js";
|
|
6
6
|
|
|
7
7
|
// src/components/tabs/tabs.tsx
|
|
8
8
|
import React, { useCallback, useEffect, useMemo as useMemo2, useRef, useState } from "react";
|
|
@@ -47,25 +47,25 @@ function useTabsSizeStyles(size) {
|
|
|
47
47
|
return useMemo(() => {
|
|
48
48
|
const sizes = {
|
|
49
49
|
xs: {
|
|
50
|
-
minHeight:
|
|
50
|
+
minHeight: theme.componentSizes.xs,
|
|
51
51
|
paddingHorizontal: theme.spacing.sm,
|
|
52
52
|
paddingVertical: theme.spacing.xs,
|
|
53
53
|
fontSize: theme.fontSizes.xs
|
|
54
54
|
},
|
|
55
55
|
sm: {
|
|
56
|
-
minHeight:
|
|
56
|
+
minHeight: theme.componentSizes.sm,
|
|
57
57
|
paddingHorizontal: theme.spacing.md,
|
|
58
58
|
paddingVertical: theme.spacing.xs,
|
|
59
59
|
fontSize: theme.fontSizes.sm
|
|
60
60
|
},
|
|
61
61
|
md: {
|
|
62
|
-
minHeight:
|
|
62
|
+
minHeight: theme.componentSizes.md,
|
|
63
63
|
paddingHorizontal: theme.spacing.md,
|
|
64
64
|
paddingVertical: theme.spacing.sm,
|
|
65
65
|
fontSize: theme.fontSizes.md
|
|
66
66
|
},
|
|
67
67
|
lg: {
|
|
68
|
-
minHeight:
|
|
68
|
+
minHeight: theme.componentSizes.lg,
|
|
69
69
|
paddingHorizontal: theme.spacing.lg,
|
|
70
70
|
paddingVertical: theme.spacing.md,
|
|
71
71
|
fontSize: theme.fontSizes.lg
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }require('../chunk-EUQDGTST.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3XWF77Y3cjs = require('../chunk-3XWF77Y3.cjs');
|
|
5
5
|
require('../chunk-56RPWZD2.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/timepicker/timepicker.tsx
|
|
11
11
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -158,7 +158,7 @@ var useTimePickerState = (initialValue, is24Hour = false, onChange) => {
|
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
160
|
var useTimePickerColors = (themeColor) => {
|
|
161
|
-
const theme =
|
|
161
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
162
162
|
const colorScheme = theme.colors[_core.getSafeThemeColor.call(void 0, themeColor)];
|
|
163
163
|
return _react.useMemo.call(void 0, () => {
|
|
164
164
|
return {
|
|
@@ -717,7 +717,7 @@ var TimePickerDialog = ({
|
|
|
717
717
|
_optionalChain([onCancel, 'optionalCall', _8 => _8()]);
|
|
718
718
|
onClose();
|
|
719
719
|
};
|
|
720
|
-
return /* @__PURE__ */ _react2.default.createElement(
|
|
720
|
+
return /* @__PURE__ */ _react2.default.createElement(_chunk3XWF77Y3cjs.BottomSheet, { isOpen, onClose, snapPoints: [0.7] }, /* @__PURE__ */ _react2.default.createElement(_reactnative.View, null, /* @__PURE__ */ _react2.default.createElement(
|
|
721
721
|
TimePicker,
|
|
722
722
|
{
|
|
723
723
|
value: tempValue,
|
|
@@ -760,7 +760,7 @@ var TimePickerTrigger = ({
|
|
|
760
760
|
onPress,
|
|
761
761
|
onClear
|
|
762
762
|
}) => {
|
|
763
|
-
const theme =
|
|
763
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
764
764
|
const colors = useTimePickerColors(themeColor);
|
|
765
765
|
const hasValue = Boolean(value);
|
|
766
766
|
const displayValue = _react.useMemo.call(void 0, () => {
|
package/dist/timepicker/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-DECMUMCI.js";
|
|
2
2
|
import {
|
|
3
3
|
BottomSheet
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-K24VDBNN.js";
|
|
5
5
|
import "../chunk-SHBDANQN.js";
|
|
6
6
|
import {
|
|
7
7
|
useXUITheme
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-LVNBYERF.js";
|
|
9
9
|
|
|
10
10
|
// src/components/timepicker/timepicker.tsx
|
|
11
11
|
import React, { useEffect, useMemo as useMemo2, useState as useState2 } from "react";
|
package/dist/toolbar/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }require('../chunk-56RPWZD2.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/toolbar/toolbar.tsx
|
|
7
7
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -63,7 +63,7 @@ var useToolbarVariantStyles = (variant, position) => {
|
|
|
63
63
|
}, [variant, position]);
|
|
64
64
|
};
|
|
65
65
|
var useToolbarColors = (themeColor) => {
|
|
66
|
-
const theme =
|
|
66
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
67
67
|
const colorScheme = theme.colors[_core.getSafeThemeColor.call(void 0, themeColor)];
|
|
68
68
|
return _react.useMemo.call(void 0, () => {
|
|
69
69
|
return {
|
package/dist/toolbar/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }require('../chunk-56RPWZD2.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/typography/typography.tsx
|
|
7
7
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -44,7 +44,7 @@ var isKnownVariant = (variant) => {
|
|
|
44
44
|
return Boolean(knownVariants[variant]);
|
|
45
45
|
};
|
|
46
46
|
var useTypographyColor = (themeColor) => {
|
|
47
|
-
const theme =
|
|
47
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
48
48
|
const color = _react.useMemo.call(void 0, () => {
|
|
49
49
|
if (themeColor === "default") {
|
|
50
50
|
return theme.colors.foreground;
|
|
@@ -55,7 +55,7 @@ var useTypographyColor = (themeColor) => {
|
|
|
55
55
|
return color;
|
|
56
56
|
};
|
|
57
57
|
var useTypographyVariantStyles = (variant) => {
|
|
58
|
-
const theme =
|
|
58
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
59
59
|
const variantStyles = _react.useMemo.call(void 0, () => {
|
|
60
60
|
if (!isKnownVariant(variant)) {
|
|
61
61
|
return {
|
package/dist/typography/index.js
CHANGED
package/dist/view/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkRZJFCDFScjs = require('../chunk-RZJFCDFS.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/view/column/column.tsx
|
|
8
8
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -402,8 +402,8 @@ var Surface = ({
|
|
|
402
402
|
radius = "none",
|
|
403
403
|
style
|
|
404
404
|
}) => {
|
|
405
|
-
const theme =
|
|
406
|
-
const radiusStyle =
|
|
405
|
+
const theme = _chunkRZJFCDFScjs.useXUITheme.call(void 0, );
|
|
406
|
+
const radiusStyle = _chunkRZJFCDFScjs.useBorderRadiusStyles.call(void 0, radius);
|
|
407
407
|
const background = resolveBackgroundColor(themeColor, theme);
|
|
408
408
|
return /* @__PURE__ */ _react2.default.createElement(
|
|
409
409
|
_reactnative.View,
|
package/dist/view/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xaui/native",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"description": "Flutter-inspired React Native UI components with native animations powered by React Native Reanimated",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -263,8 +263,8 @@
|
|
|
263
263
|
"directory": "packages/native"
|
|
264
264
|
},
|
|
265
265
|
"dependencies": {
|
|
266
|
-
"@xaui/core": "0.1.
|
|
267
|
-
"@xaui/icons": "0.0.
|
|
266
|
+
"@xaui/core": "0.1.11",
|
|
267
|
+
"@xaui/icons": "0.0.8"
|
|
268
268
|
},
|
|
269
269
|
"peerDependencies": {
|
|
270
270
|
"react": "^18.0.0 || ^19.0.0",
|