@xaui/native 0.0.5 → 0.0.7
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/accordion/index.cjs +5 -0
- package/dist/accordion/index.js +2 -2
- package/dist/button/index.cjs +8 -1
- package/dist/button/index.js +5 -3
- package/dist/checkbox/index.cjs +6 -1
- package/dist/checkbox/index.js +4 -2
- package/dist/{chunk-KI7CPXTP.js → chunk-B2VGVZ3J.js} +3 -1
- package/dist/{chunk-3ECCBLTG.js → chunk-ORMNMNOK.js} +6 -1
- package/dist/{chunk-AX7QS5WJ.js → chunk-R34CVLCX.js} +3 -1
- package/dist/core/index.cjs +7 -0
- package/dist/core/index.d.cts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +5 -1
- package/dist/divider/index.cjs +5 -0
- package/dist/divider/index.js +2 -2
- package/dist/index.cjs +7 -0
- package/dist/index.js +5 -5
- package/dist/indicator/index.cjs +5 -0
- package/dist/indicator/index.js +2 -2
- package/dist/progress/index.cjs +5 -0
- package/dist/progress/index.js +3 -1
- package/dist/select/index.cjs +919 -0
- package/dist/select/index.d.cts +192 -0
- package/dist/select/index.d.ts +192 -0
- package/dist/select/index.js +874 -0
- package/dist/switch/index.cjs +413 -0
- package/dist/switch/index.d.cts +28 -0
- package/dist/switch/index.d.ts +28 -0
- package/dist/switch/index.js +357 -0
- package/package.json +11 -1
package/dist/accordion/index.cjs
CHANGED
|
@@ -75,6 +75,9 @@ function useXUIPalette() {
|
|
|
75
75
|
return (0, import_react3.useMemo)(() => theme.palette, [theme]);
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
// src/core/index.ts
|
|
79
|
+
var import_theme2 = require("@xaui/core/theme");
|
|
80
|
+
|
|
78
81
|
// src/components/accordion/accordion.hook.ts
|
|
79
82
|
var useAccordionStyles = ({ variant, fullWidth }) => {
|
|
80
83
|
const theme = useXUITheme();
|
|
@@ -460,6 +463,8 @@ var import_react_native6 = require("react-native");
|
|
|
460
463
|
var styles2 = import_react_native6.StyleSheet.create({
|
|
461
464
|
horizontal: {
|
|
462
465
|
height: 1,
|
|
466
|
+
flexShrink: 1,
|
|
467
|
+
flexBasis: "auto",
|
|
463
468
|
width: "100%"
|
|
464
469
|
},
|
|
465
470
|
vertical: {
|
package/dist/accordion/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Divider
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-R34CVLCX.js";
|
|
4
4
|
import {
|
|
5
5
|
useXUIPalette,
|
|
6
6
|
useXUITheme
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-ORMNMNOK.js";
|
|
8
8
|
|
|
9
9
|
// src/components/accordion/accordion.tsx
|
|
10
10
|
import React4 from "react";
|
package/dist/button/index.cjs
CHANGED
|
@@ -74,6 +74,9 @@ function useBorderRadiusStyles(radius) {
|
|
|
74
74
|
return borderRadius;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
// src/core/index.ts
|
|
78
|
+
var import_theme2 = require("@xaui/core/theme");
|
|
79
|
+
|
|
77
80
|
// src/components/indicator/circular-activity-indicator.tsx
|
|
78
81
|
var import_react3 = __toESM(require("react"), 1);
|
|
79
82
|
var import_react_native4 = require("react-native");
|
|
@@ -82,6 +85,8 @@ var import_react_native4 = require("react-native");
|
|
|
82
85
|
var import_react_native3 = require("react-native");
|
|
83
86
|
var styles = import_react_native3.StyleSheet.create({
|
|
84
87
|
container: {
|
|
88
|
+
flexShrink: 1,
|
|
89
|
+
flexBasis: "auto",
|
|
85
90
|
width: "100%",
|
|
86
91
|
justifyContent: "center"
|
|
87
92
|
},
|
|
@@ -460,6 +465,8 @@ var styles2 = import_react_native7.StyleSheet.create({
|
|
|
460
465
|
marginHorizontal: 4
|
|
461
466
|
},
|
|
462
467
|
fullWidth: {
|
|
468
|
+
flexShrink: 1,
|
|
469
|
+
flexBasis: "auto",
|
|
463
470
|
width: "100%"
|
|
464
471
|
},
|
|
465
472
|
disabled: {
|
|
@@ -604,7 +611,7 @@ var runPressOutAnimation = (animatedScale, animatedOpacity) => {
|
|
|
604
611
|
// src/components/button/button.tsx
|
|
605
612
|
var Button = ({
|
|
606
613
|
children,
|
|
607
|
-
themeColor = "
|
|
614
|
+
themeColor = "primary",
|
|
608
615
|
variant = "solid",
|
|
609
616
|
size = "md",
|
|
610
617
|
radius = "md",
|
package/dist/button/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ActivityIndicator
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-B2VGVZ3J.js";
|
|
4
4
|
import {
|
|
5
5
|
useBorderRadiusStyles,
|
|
6
6
|
useXUITheme
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-ORMNMNOK.js";
|
|
8
8
|
|
|
9
9
|
// src/components/button/button.tsx
|
|
10
10
|
import React from "react";
|
|
@@ -39,6 +39,8 @@ var styles = StyleSheet.create({
|
|
|
39
39
|
marginHorizontal: 4
|
|
40
40
|
},
|
|
41
41
|
fullWidth: {
|
|
42
|
+
flexShrink: 1,
|
|
43
|
+
flexBasis: "auto",
|
|
42
44
|
width: "100%"
|
|
43
45
|
},
|
|
44
46
|
disabled: {
|
|
@@ -183,7 +185,7 @@ var runPressOutAnimation = (animatedScale, animatedOpacity) => {
|
|
|
183
185
|
// src/components/button/button.tsx
|
|
184
186
|
var Button = ({
|
|
185
187
|
children,
|
|
186
|
-
themeColor = "
|
|
188
|
+
themeColor = "primary",
|
|
187
189
|
variant = "solid",
|
|
188
190
|
size = "md",
|
|
189
191
|
radius = "md",
|
package/dist/checkbox/index.cjs
CHANGED
|
@@ -203,6 +203,9 @@ function useXUITheme() {
|
|
|
203
203
|
return theme;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
+
// src/core/index.ts
|
|
207
|
+
var import_theme2 = require("@xaui/core/theme");
|
|
208
|
+
|
|
206
209
|
// src/components/checkbox/checkbox.hook.ts
|
|
207
210
|
function useSizeStyles(size, variant) {
|
|
208
211
|
const theme = useXUITheme();
|
|
@@ -317,6 +320,8 @@ var styles = import_react_native5.StyleSheet.create({
|
|
|
317
320
|
gap: 10
|
|
318
321
|
},
|
|
319
322
|
fullWidth: {
|
|
323
|
+
flexShrink: 1,
|
|
324
|
+
flexBasis: "auto",
|
|
320
325
|
width: "100%"
|
|
321
326
|
},
|
|
322
327
|
checkbox: {
|
|
@@ -351,7 +356,7 @@ var import_core4 = require("@xaui/core");
|
|
|
351
356
|
var Checkbox = ({
|
|
352
357
|
label,
|
|
353
358
|
labelAlignment = "right",
|
|
354
|
-
themeColor = "
|
|
359
|
+
themeColor = "primary",
|
|
355
360
|
variant = "filled",
|
|
356
361
|
size = "md",
|
|
357
362
|
radius = "sm",
|
package/dist/checkbox/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useXUITheme
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ORMNMNOK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/checkbox/checkbox.tsx
|
|
6
6
|
import React2, { useEffect as useEffect2, useRef as useRef2, useState } from "react";
|
|
@@ -265,6 +265,8 @@ var styles = StyleSheet.create({
|
|
|
265
265
|
gap: 10
|
|
266
266
|
},
|
|
267
267
|
fullWidth: {
|
|
268
|
+
flexShrink: 1,
|
|
269
|
+
flexBasis: "auto",
|
|
268
270
|
width: "100%"
|
|
269
271
|
},
|
|
270
272
|
checkbox: {
|
|
@@ -299,7 +301,7 @@ import { getSafeThemeColor as getSafeThemeColor2 } from "@xaui/core";
|
|
|
299
301
|
var Checkbox = ({
|
|
300
302
|
label,
|
|
301
303
|
labelAlignment = "right",
|
|
302
|
-
themeColor = "
|
|
304
|
+
themeColor = "primary",
|
|
303
305
|
variant = "filled",
|
|
304
306
|
size = "md",
|
|
305
307
|
radius = "sm",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useXUITheme
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ORMNMNOK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/indicator/indicator.tsx
|
|
6
6
|
import React3 from "react";
|
|
@@ -14,6 +14,8 @@ import { Animated, Easing, Platform, View } from "react-native";
|
|
|
14
14
|
import { StyleSheet } from "react-native";
|
|
15
15
|
var styles = StyleSheet.create({
|
|
16
16
|
container: {
|
|
17
|
+
flexShrink: 1,
|
|
18
|
+
flexBasis: "auto",
|
|
17
19
|
width: "100%",
|
|
18
20
|
justifyContent: "center"
|
|
19
21
|
},
|
|
@@ -74,11 +74,16 @@ function useBorderRadiusStyles(radius) {
|
|
|
74
74
|
return borderRadius;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
// src/core/index.ts
|
|
78
|
+
import { defaultDarkTheme, defaultTheme as defaultTheme2 } from "@xaui/core/theme";
|
|
79
|
+
|
|
77
80
|
export {
|
|
78
81
|
XUIProvider,
|
|
79
82
|
useColorMode,
|
|
80
83
|
useXUITheme,
|
|
81
84
|
useXUIColors,
|
|
82
85
|
useXUIPalette,
|
|
83
|
-
useBorderRadiusStyles
|
|
86
|
+
useBorderRadiusStyles,
|
|
87
|
+
defaultDarkTheme,
|
|
88
|
+
defaultTheme2 as defaultTheme
|
|
84
89
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useXUITheme
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ORMNMNOK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/divider/divider.tsx
|
|
6
6
|
import React from "react";
|
|
@@ -11,6 +11,8 @@ import { StyleSheet } from "react-native";
|
|
|
11
11
|
var styles = StyleSheet.create({
|
|
12
12
|
horizontal: {
|
|
13
13
|
height: 1,
|
|
14
|
+
flexShrink: 1,
|
|
15
|
+
flexBasis: "auto",
|
|
14
16
|
width: "100%"
|
|
15
17
|
},
|
|
16
18
|
vertical: {
|
package/dist/core/index.cjs
CHANGED
|
@@ -31,6 +31,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var core_exports = {};
|
|
32
32
|
__export(core_exports, {
|
|
33
33
|
XUIProvider: () => XUIProvider,
|
|
34
|
+
defaultDarkTheme: () => import_theme2.defaultDarkTheme,
|
|
35
|
+
defaultTheme: () => import_theme2.defaultTheme,
|
|
34
36
|
useColorMode: () => useColorMode,
|
|
35
37
|
useXUIColors: () => useXUIColors,
|
|
36
38
|
useXUITheme: () => useXUITheme
|
|
@@ -94,9 +96,14 @@ function useXUIColors() {
|
|
|
94
96
|
const theme = useXUITheme();
|
|
95
97
|
return theme.colors;
|
|
96
98
|
}
|
|
99
|
+
|
|
100
|
+
// src/core/index.ts
|
|
101
|
+
var import_theme2 = require("@xaui/core/theme");
|
|
97
102
|
// Annotate the CommonJS export names for ESM import in node:
|
|
98
103
|
0 && (module.exports = {
|
|
99
104
|
XUIProvider,
|
|
105
|
+
defaultDarkTheme,
|
|
106
|
+
defaultTheme,
|
|
100
107
|
useColorMode,
|
|
101
108
|
useXUIColors,
|
|
102
109
|
useXUITheme
|
package/dist/core/index.d.cts
CHANGED
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
XUIProvider,
|
|
3
|
+
defaultDarkTheme,
|
|
4
|
+
defaultTheme,
|
|
3
5
|
useColorMode,
|
|
4
6
|
useXUIColors,
|
|
5
7
|
useXUITheme
|
|
6
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-ORMNMNOK.js";
|
|
7
9
|
export {
|
|
8
10
|
XUIProvider,
|
|
11
|
+
defaultDarkTheme,
|
|
12
|
+
defaultTheme,
|
|
9
13
|
useColorMode,
|
|
10
14
|
useXUIColors,
|
|
11
15
|
useXUITheme
|
package/dist/divider/index.cjs
CHANGED
|
@@ -43,6 +43,8 @@ var import_react_native = require("react-native");
|
|
|
43
43
|
var styles = import_react_native.StyleSheet.create({
|
|
44
44
|
horizontal: {
|
|
45
45
|
height: 1,
|
|
46
|
+
flexShrink: 1,
|
|
47
|
+
flexBasis: "auto",
|
|
46
48
|
width: "100%"
|
|
47
49
|
},
|
|
48
50
|
vertical: {
|
|
@@ -72,6 +74,9 @@ function useXUITheme() {
|
|
|
72
74
|
return theme;
|
|
73
75
|
}
|
|
74
76
|
|
|
77
|
+
// src/core/index.ts
|
|
78
|
+
var import_theme2 = require("@xaui/core/theme");
|
|
79
|
+
|
|
75
80
|
// src/components/divider/divider.hook.ts
|
|
76
81
|
var import_core2 = require("@xaui/core");
|
|
77
82
|
var useDividerColor = (themeColor, customColor) => {
|
package/dist/divider/index.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -57,6 +57,9 @@ function useXUITheme() {
|
|
|
57
57
|
return theme;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
// src/core/index.ts
|
|
61
|
+
var import_theme2 = require("@xaui/core/theme");
|
|
62
|
+
|
|
60
63
|
// src/components/indicator/circular-activity-indicator.tsx
|
|
61
64
|
var import_react3 = __toESM(require("react"), 1);
|
|
62
65
|
var import_react_native4 = require("react-native");
|
|
@@ -65,6 +68,8 @@ var import_react_native4 = require("react-native");
|
|
|
65
68
|
var import_react_native3 = require("react-native");
|
|
66
69
|
var styles = import_react_native3.StyleSheet.create({
|
|
67
70
|
container: {
|
|
71
|
+
flexShrink: 1,
|
|
72
|
+
flexBasis: "auto",
|
|
68
73
|
width: "100%",
|
|
69
74
|
justifyContent: "center"
|
|
70
75
|
},
|
|
@@ -423,6 +428,8 @@ var import_react_native7 = require("react-native");
|
|
|
423
428
|
var styles2 = import_react_native7.StyleSheet.create({
|
|
424
429
|
horizontal: {
|
|
425
430
|
height: 1,
|
|
431
|
+
flexShrink: 1,
|
|
432
|
+
flexBasis: "auto",
|
|
426
433
|
width: "100%"
|
|
427
434
|
},
|
|
428
435
|
vertical: {
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ActivityIndicator
|
|
3
|
-
} from "./chunk-KI7CPXTP.js";
|
|
4
1
|
import {
|
|
5
2
|
Divider
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import
|
|
3
|
+
} from "./chunk-R34CVLCX.js";
|
|
4
|
+
import {
|
|
5
|
+
ActivityIndicator
|
|
6
|
+
} from "./chunk-B2VGVZ3J.js";
|
|
7
|
+
import "./chunk-ORMNMNOK.js";
|
|
8
8
|
export {
|
|
9
9
|
ActivityIndicator,
|
|
10
10
|
Divider
|
package/dist/indicator/index.cjs
CHANGED
|
@@ -56,6 +56,9 @@ function useXUITheme() {
|
|
|
56
56
|
return theme;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
// src/core/index.ts
|
|
60
|
+
var import_theme2 = require("@xaui/core/theme");
|
|
61
|
+
|
|
59
62
|
// src/components/indicator/circular-activity-indicator.tsx
|
|
60
63
|
var import_react3 = __toESM(require("react"), 1);
|
|
61
64
|
var import_react_native4 = require("react-native");
|
|
@@ -64,6 +67,8 @@ var import_react_native4 = require("react-native");
|
|
|
64
67
|
var import_react_native3 = require("react-native");
|
|
65
68
|
var styles = import_react_native3.StyleSheet.create({
|
|
66
69
|
container: {
|
|
70
|
+
flexShrink: 1,
|
|
71
|
+
flexBasis: "auto",
|
|
67
72
|
width: "100%",
|
|
68
73
|
justifyContent: "center"
|
|
69
74
|
},
|
package/dist/indicator/index.js
CHANGED
package/dist/progress/index.cjs
CHANGED
|
@@ -56,6 +56,9 @@ function useXUITheme() {
|
|
|
56
56
|
return theme;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
// src/core/index.ts
|
|
60
|
+
var import_theme2 = require("@xaui/core/theme");
|
|
61
|
+
|
|
59
62
|
// src/components/progress/circular-progress-indicator.tsx
|
|
60
63
|
var import_react4 = __toESM(require("react"), 1);
|
|
61
64
|
var import_react_native4 = require("react-native");
|
|
@@ -88,6 +91,8 @@ var useProgressAnimation = (value, disableAnimation) => {
|
|
|
88
91
|
var import_react_native3 = require("react-native");
|
|
89
92
|
var styles = import_react_native3.StyleSheet.create({
|
|
90
93
|
container: {
|
|
94
|
+
flexShrink: 1,
|
|
95
|
+
flexBasis: "auto",
|
|
91
96
|
width: "100%"
|
|
92
97
|
},
|
|
93
98
|
track: {
|
package/dist/progress/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useXUITheme
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ORMNMNOK.js";
|
|
4
4
|
|
|
5
5
|
// src/components/progress/progress.tsx
|
|
6
6
|
import React3 from "react";
|
|
@@ -38,6 +38,8 @@ var useProgressAnimation = (value, disableAnimation) => {
|
|
|
38
38
|
import { StyleSheet } from "react-native";
|
|
39
39
|
var styles = StyleSheet.create({
|
|
40
40
|
container: {
|
|
41
|
+
flexShrink: 1,
|
|
42
|
+
flexBasis: "auto",
|
|
41
43
|
width: "100%"
|
|
42
44
|
},
|
|
43
45
|
track: {
|