@xaui/native 0.0.4 → 0.0.6

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useXUITheme
3
- } from "./chunk-DNJWBME5.js";
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
  },
@@ -2,6 +2,7 @@
2
2
  import React, { createContext } from "react";
3
3
  import { useColorScheme } from "react-native";
4
4
  import { defaultTheme } from "@xaui/core/theme";
5
+ import { colors } from "@xaui/core/palette";
5
6
  var XUIThemeContext = createContext(null);
6
7
  function XUIProvider({
7
8
  children,
@@ -12,10 +13,12 @@ function XUIProvider({
12
13
  const theme = React.useMemo(() => {
13
14
  if (!darkTheme && !lightTheme) return defaultTheme;
14
15
  const activeTheme = colorScheme === "dark" && darkTheme ? darkTheme : lightTheme;
16
+ const mode = colorScheme === "dark" ? "dark" : "light";
15
17
  if (!activeTheme) return defaultTheme;
16
18
  return {
17
19
  ...defaultTheme,
18
20
  ...activeTheme,
21
+ mode,
19
22
  colors: {
20
23
  ...defaultTheme.colors,
21
24
  ...activeTheme.colors
@@ -27,7 +30,8 @@ function XUIProvider({
27
30
  fontSizes: {
28
31
  ...defaultTheme.fontSizes,
29
32
  ...activeTheme.fontSizes
30
- }
33
+ },
34
+ palette: colors
31
35
  };
32
36
  }, [lightTheme, darkTheme, colorScheme]);
33
37
  return /* @__PURE__ */ React.createElement(XUIThemeContext.Provider, { value: theme }, children);
@@ -51,6 +55,10 @@ function useXUIColors() {
51
55
  const theme = useXUITheme();
52
56
  return theme.colors;
53
57
  }
58
+ function useXUIPalette() {
59
+ const theme = useXUITheme();
60
+ return useMemo(() => theme.palette, [theme]);
61
+ }
54
62
  function useBorderRadiusStyles(radius) {
55
63
  const theme = useXUITheme();
56
64
  const borderRadius = useMemo(() => {
@@ -66,10 +74,16 @@ function useBorderRadiusStyles(radius) {
66
74
  return borderRadius;
67
75
  }
68
76
 
77
+ // src/core/index.ts
78
+ import { defaultDarkTheme, defaultTheme as defaultTheme2 } from "@xaui/core/theme";
79
+
69
80
  export {
70
81
  XUIProvider,
71
82
  useColorMode,
72
83
  useXUITheme,
73
84
  useXUIColors,
74
- useBorderRadiusStyles
85
+ useXUIPalette,
86
+ useBorderRadiusStyles,
87
+ defaultDarkTheme,
88
+ defaultTheme2 as defaultTheme
75
89
  };
@@ -0,0 +1,75 @@
1
+ import {
2
+ useXUITheme
3
+ } from "./chunk-ORMNMNOK.js";
4
+
5
+ // src/components/divider/divider.tsx
6
+ import React from "react";
7
+ import { View } from "react-native";
8
+
9
+ // src/components/divider/divider.style.ts
10
+ import { StyleSheet } from "react-native";
11
+ var styles = StyleSheet.create({
12
+ horizontal: {
13
+ height: 1,
14
+ flexShrink: 1,
15
+ flexBasis: "auto",
16
+ width: "100%"
17
+ },
18
+ vertical: {
19
+ width: 1,
20
+ alignSelf: "stretch"
21
+ }
22
+ });
23
+
24
+ // src/components/divider/divider.hook.ts
25
+ import { useMemo } from "react";
26
+ import { getSafeThemeColor } from "@xaui/core";
27
+ var useDividerColor = (themeColor, customColor) => {
28
+ const theme = useXUITheme();
29
+ const dividerColor = useMemo(() => {
30
+ if (customColor) {
31
+ return customColor;
32
+ }
33
+ const safeThemeColor = getSafeThemeColor(themeColor);
34
+ return theme.colors[safeThemeColor].main;
35
+ }, [customColor, themeColor, theme]);
36
+ return dividerColor;
37
+ };
38
+ var useDividerSize = (size, orientation) => {
39
+ const sizeStyles = useMemo(() => {
40
+ if (orientation === "horizontal") {
41
+ return {
42
+ height: size
43
+ };
44
+ }
45
+ return {
46
+ width: size
47
+ };
48
+ }, [size, orientation]);
49
+ return sizeStyles;
50
+ };
51
+
52
+ // src/components/divider/divider.tsx
53
+ var Divider = ({
54
+ size = 1,
55
+ themeColor = "default",
56
+ color,
57
+ orientation = "horizontal"
58
+ }) => {
59
+ const dividerColor = useDividerColor(themeColor, color);
60
+ const sizeStyles = useDividerSize(size, orientation);
61
+ return /* @__PURE__ */ React.createElement(
62
+ View,
63
+ {
64
+ style: [
65
+ orientation === "horizontal" ? styles.horizontal : styles.vertical,
66
+ sizeStyles,
67
+ { backgroundColor: dividerColor }
68
+ ]
69
+ }
70
+ );
71
+ };
72
+
73
+ export {
74
+ Divider
75
+ };
@@ -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
@@ -41,6 +43,7 @@ module.exports = __toCommonJS(core_exports);
41
43
  var import_react = __toESM(require("react"), 1);
42
44
  var import_react_native = require("react-native");
43
45
  var import_theme = require("@xaui/core/theme");
46
+ var import_palette = require("@xaui/core/palette");
44
47
  var XUIThemeContext = (0, import_react.createContext)(null);
45
48
  function XUIProvider({
46
49
  children,
@@ -51,10 +54,12 @@ function XUIProvider({
51
54
  const theme = import_react.default.useMemo(() => {
52
55
  if (!darkTheme && !lightTheme) return import_theme.defaultTheme;
53
56
  const activeTheme = colorScheme === "dark" && darkTheme ? darkTheme : lightTheme;
57
+ const mode = colorScheme === "dark" ? "dark" : "light";
54
58
  if (!activeTheme) return import_theme.defaultTheme;
55
59
  return {
56
60
  ...import_theme.defaultTheme,
57
61
  ...activeTheme,
62
+ mode,
58
63
  colors: {
59
64
  ...import_theme.defaultTheme.colors,
60
65
  ...activeTheme.colors
@@ -66,7 +71,8 @@ function XUIProvider({
66
71
  fontSizes: {
67
72
  ...import_theme.defaultTheme.fontSizes,
68
73
  ...activeTheme.fontSizes
69
- }
74
+ },
75
+ palette: import_palette.colors
70
76
  };
71
77
  }, [lightTheme, darkTheme, colorScheme]);
72
78
  return /* @__PURE__ */ import_react.default.createElement(XUIThemeContext.Provider, { value: theme }, children);
@@ -90,9 +96,14 @@ function useXUIColors() {
90
96
  const theme = useXUITheme();
91
97
  return theme.colors;
92
98
  }
99
+
100
+ // src/core/index.ts
101
+ var import_theme2 = require("@xaui/core/theme");
93
102
  // Annotate the CommonJS export names for ESM import in node:
94
103
  0 && (module.exports = {
95
104
  XUIProvider,
105
+ defaultDarkTheme,
106
+ defaultTheme,
96
107
  useColorMode,
97
108
  useXUIColors,
98
109
  useXUITheme
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { XUITheme } from '@xaui/core/theme';
3
+ export { defaultDarkTheme, defaultTheme } from '@xaui/core/theme';
3
4
 
4
5
  type DeepPartial<T> = {
5
6
  [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { XUITheme } from '@xaui/core/theme';
3
+ export { defaultDarkTheme, defaultTheme } from '@xaui/core/theme';
3
4
 
4
5
  type DeepPartial<T> = {
5
6
  [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
@@ -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-DNJWBME5.js";
8
+ } from "../chunk-ORMNMNOK.js";
7
9
  export {
8
10
  XUIProvider,
11
+ defaultDarkTheme,
12
+ defaultTheme,
9
13
  useColorMode,
10
14
  useXUIColors,
11
15
  useXUITheme
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/components/divider/index.ts
31
+ var divider_exports = {};
32
+ __export(divider_exports, {
33
+ Divider: () => Divider
34
+ });
35
+ module.exports = __toCommonJS(divider_exports);
36
+
37
+ // src/components/divider/divider.tsx
38
+ var import_react4 = __toESM(require("react"), 1);
39
+ var import_react_native4 = require("react-native");
40
+
41
+ // src/components/divider/divider.style.ts
42
+ var import_react_native = require("react-native");
43
+ var styles = import_react_native.StyleSheet.create({
44
+ horizontal: {
45
+ height: 1,
46
+ flexShrink: 1,
47
+ flexBasis: "auto",
48
+ width: "100%"
49
+ },
50
+ vertical: {
51
+ width: 1,
52
+ alignSelf: "stretch"
53
+ }
54
+ });
55
+
56
+ // src/components/divider/divider.hook.ts
57
+ var import_react3 = require("react");
58
+
59
+ // src/core/theme-context.tsx
60
+ var import_react = __toESM(require("react"), 1);
61
+ var import_react_native2 = require("react-native");
62
+ var import_theme = require("@xaui/core/theme");
63
+ var import_palette = require("@xaui/core/palette");
64
+ var XUIThemeContext = (0, import_react.createContext)(null);
65
+
66
+ // src/core/theme-hooks.ts
67
+ var import_react2 = require("react");
68
+ var import_react_native3 = require("react-native");
69
+ function useXUITheme() {
70
+ const theme = (0, import_react2.useContext)(XUIThemeContext);
71
+ if (!theme) {
72
+ throw new Error("useXUITheme must be used within XUIProvider");
73
+ }
74
+ return theme;
75
+ }
76
+
77
+ // src/core/index.ts
78
+ var import_theme2 = require("@xaui/core/theme");
79
+
80
+ // src/components/divider/divider.hook.ts
81
+ var import_core2 = require("@xaui/core");
82
+ var useDividerColor = (themeColor, customColor) => {
83
+ const theme = useXUITheme();
84
+ const dividerColor = (0, import_react3.useMemo)(() => {
85
+ if (customColor) {
86
+ return customColor;
87
+ }
88
+ const safeThemeColor = (0, import_core2.getSafeThemeColor)(themeColor);
89
+ return theme.colors[safeThemeColor].main;
90
+ }, [customColor, themeColor, theme]);
91
+ return dividerColor;
92
+ };
93
+ var useDividerSize = (size, orientation) => {
94
+ const sizeStyles = (0, import_react3.useMemo)(() => {
95
+ if (orientation === "horizontal") {
96
+ return {
97
+ height: size
98
+ };
99
+ }
100
+ return {
101
+ width: size
102
+ };
103
+ }, [size, orientation]);
104
+ return sizeStyles;
105
+ };
106
+
107
+ // src/components/divider/divider.tsx
108
+ var Divider = ({
109
+ size = 1,
110
+ themeColor = "default",
111
+ color,
112
+ orientation = "horizontal"
113
+ }) => {
114
+ const dividerColor = useDividerColor(themeColor, color);
115
+ const sizeStyles = useDividerSize(size, orientation);
116
+ return /* @__PURE__ */ import_react4.default.createElement(
117
+ import_react_native4.View,
118
+ {
119
+ style: [
120
+ orientation === "horizontal" ? styles.horizontal : styles.vertical,
121
+ sizeStyles,
122
+ { backgroundColor: dividerColor }
123
+ ]
124
+ }
125
+ );
126
+ };
127
+ // Annotate the CommonJS export names for ESM import in node:
128
+ 0 && (module.exports = {
129
+ Divider
130
+ });
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { T as ThemeColor } from '../index-BOw6tbkc.cjs';
3
+
4
+ type DividerOrientation = 'horizontal' | 'vertical';
5
+ type DividerProps = {
6
+ /**
7
+ * The size (thickness) of the divider in pixels.
8
+ * @default 1
9
+ */
10
+ size?: number;
11
+ /**
12
+ * The theme color of the divider.
13
+ * @default 'default'
14
+ */
15
+ themeColor?: ThemeColor;
16
+ /**
17
+ * Custom color for the divider.
18
+ * If provided, this will override themeColor.
19
+ */
20
+ color?: string;
21
+ /**
22
+ * The orientation of the divider.
23
+ * @default 'horizontal'
24
+ */
25
+ orientation?: DividerOrientation;
26
+ };
27
+
28
+ declare const Divider: React.FC<DividerProps>;
29
+
30
+ export { Divider, type DividerOrientation, type DividerProps };
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { T as ThemeColor } from '../index-BOw6tbkc.js';
3
+
4
+ type DividerOrientation = 'horizontal' | 'vertical';
5
+ type DividerProps = {
6
+ /**
7
+ * The size (thickness) of the divider in pixels.
8
+ * @default 1
9
+ */
10
+ size?: number;
11
+ /**
12
+ * The theme color of the divider.
13
+ * @default 'default'
14
+ */
15
+ themeColor?: ThemeColor;
16
+ /**
17
+ * Custom color for the divider.
18
+ * If provided, this will override themeColor.
19
+ */
20
+ color?: string;
21
+ /**
22
+ * The orientation of the divider.
23
+ * @default 'horizontal'
24
+ */
25
+ orientation?: DividerOrientation;
26
+ };
27
+
28
+ declare const Divider: React.FC<DividerProps>;
29
+
30
+ export { Divider, type DividerOrientation, type DividerProps };
@@ -0,0 +1,7 @@
1
+ import {
2
+ Divider
3
+ } from "../chunk-R34CVLCX.js";
4
+ import "../chunk-ORMNMNOK.js";
5
+ export {
6
+ Divider
7
+ };
package/dist/index.cjs CHANGED
@@ -30,7 +30,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
- ActivityIndicator: () => ActivityIndicator
33
+ ActivityIndicator: () => ActivityIndicator,
34
+ Divider: () => Divider
34
35
  });
35
36
  module.exports = __toCommonJS(src_exports);
36
37
 
@@ -42,6 +43,7 @@ var import_react_native6 = require("react-native");
42
43
  var import_react = __toESM(require("react"), 1);
43
44
  var import_react_native = require("react-native");
44
45
  var import_theme = require("@xaui/core/theme");
46
+ var import_palette = require("@xaui/core/palette");
45
47
  var XUIThemeContext = (0, import_react.createContext)(null);
46
48
 
47
49
  // src/core/theme-hooks.ts
@@ -55,6 +57,9 @@ function useXUITheme() {
55
57
  return theme;
56
58
  }
57
59
 
60
+ // src/core/index.ts
61
+ var import_theme2 = require("@xaui/core/theme");
62
+
58
63
  // src/components/indicator/circular-activity-indicator.tsx
59
64
  var import_react3 = __toESM(require("react"), 1);
60
65
  var import_react_native4 = require("react-native");
@@ -63,6 +68,8 @@ var import_react_native4 = require("react-native");
63
68
  var import_react_native3 = require("react-native");
64
69
  var styles = import_react_native3.StyleSheet.create({
65
70
  container: {
71
+ flexShrink: 1,
72
+ flexBasis: "auto",
66
73
  width: "100%",
67
74
  justifyContent: "center"
68
75
  },
@@ -411,7 +418,76 @@ var ActivityIndicator = (props) => {
411
418
  )
412
419
  );
413
420
  };
421
+
422
+ // src/components/divider/divider.tsx
423
+ var import_react8 = __toESM(require("react"), 1);
424
+ var import_react_native8 = require("react-native");
425
+
426
+ // src/components/divider/divider.style.ts
427
+ var import_react_native7 = require("react-native");
428
+ var styles2 = import_react_native7.StyleSheet.create({
429
+ horizontal: {
430
+ height: 1,
431
+ flexShrink: 1,
432
+ flexBasis: "auto",
433
+ width: "100%"
434
+ },
435
+ vertical: {
436
+ width: 1,
437
+ alignSelf: "stretch"
438
+ }
439
+ });
440
+
441
+ // src/components/divider/divider.hook.ts
442
+ var import_react7 = require("react");
443
+ var import_core6 = require("@xaui/core");
444
+ var useDividerColor = (themeColor, customColor) => {
445
+ const theme = useXUITheme();
446
+ const dividerColor = (0, import_react7.useMemo)(() => {
447
+ if (customColor) {
448
+ return customColor;
449
+ }
450
+ const safeThemeColor = (0, import_core6.getSafeThemeColor)(themeColor);
451
+ return theme.colors[safeThemeColor].main;
452
+ }, [customColor, themeColor, theme]);
453
+ return dividerColor;
454
+ };
455
+ var useDividerSize = (size, orientation) => {
456
+ const sizeStyles = (0, import_react7.useMemo)(() => {
457
+ if (orientation === "horizontal") {
458
+ return {
459
+ height: size
460
+ };
461
+ }
462
+ return {
463
+ width: size
464
+ };
465
+ }, [size, orientation]);
466
+ return sizeStyles;
467
+ };
468
+
469
+ // src/components/divider/divider.tsx
470
+ var Divider = ({
471
+ size = 1,
472
+ themeColor = "default",
473
+ color,
474
+ orientation = "horizontal"
475
+ }) => {
476
+ const dividerColor = useDividerColor(themeColor, color);
477
+ const sizeStyles = useDividerSize(size, orientation);
478
+ return /* @__PURE__ */ import_react8.default.createElement(
479
+ import_react_native8.View,
480
+ {
481
+ style: [
482
+ orientation === "horizontal" ? styles2.horizontal : styles2.vertical,
483
+ sizeStyles,
484
+ { backgroundColor: dividerColor }
485
+ ]
486
+ }
487
+ );
488
+ };
414
489
  // Annotate the CommonJS export names for ESM import in node:
415
490
  0 && (module.exports = {
416
- ActivityIndicator
491
+ ActivityIndicator,
492
+ Divider
417
493
  });
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { ActivityIndicator } from './indicator/index.cjs';
2
+ export { Divider } from './divider/index.cjs';
2
3
  import 'react';
3
4
  import './index-BOw6tbkc.cjs';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { ActivityIndicator } from './indicator/index.js';
2
+ export { Divider } from './divider/index.js';
2
3
  import 'react';
3
4
  import './index-BOw6tbkc.js';
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
+ import {
2
+ Divider
3
+ } from "./chunk-R34CVLCX.js";
1
4
  import {
2
5
  ActivityIndicator
3
- } from "./chunk-52PIZF2Z.js";
4
- import "./chunk-DNJWBME5.js";
6
+ } from "./chunk-B2VGVZ3J.js";
7
+ import "./chunk-ORMNMNOK.js";
5
8
  export {
6
- ActivityIndicator
9
+ ActivityIndicator,
10
+ Divider
7
11
  };
@@ -42,6 +42,7 @@ var import_react_native6 = require("react-native");
42
42
  var import_react = __toESM(require("react"), 1);
43
43
  var import_react_native = require("react-native");
44
44
  var import_theme = require("@xaui/core/theme");
45
+ var import_palette = require("@xaui/core/palette");
45
46
  var XUIThemeContext = (0, import_react.createContext)(null);
46
47
 
47
48
  // src/core/theme-hooks.ts
@@ -55,6 +56,9 @@ function useXUITheme() {
55
56
  return theme;
56
57
  }
57
58
 
59
+ // src/core/index.ts
60
+ var import_theme2 = require("@xaui/core/theme");
61
+
58
62
  // src/components/indicator/circular-activity-indicator.tsx
59
63
  var import_react3 = __toESM(require("react"), 1);
60
64
  var import_react_native4 = require("react-native");
@@ -63,6 +67,8 @@ var import_react_native4 = require("react-native");
63
67
  var import_react_native3 = require("react-native");
64
68
  var styles = import_react_native3.StyleSheet.create({
65
69
  container: {
70
+ flexShrink: 1,
71
+ flexBasis: "auto",
66
72
  width: "100%",
67
73
  justifyContent: "center"
68
74
  },
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ActivityIndicator
3
- } from "../chunk-52PIZF2Z.js";
4
- import "../chunk-DNJWBME5.js";
3
+ } from "../chunk-B2VGVZ3J.js";
4
+ import "../chunk-ORMNMNOK.js";
5
5
  export {
6
6
  ActivityIndicator
7
7
  };
@@ -42,6 +42,7 @@ var import_react_native6 = require("react-native");
42
42
  var import_react = __toESM(require("react"), 1);
43
43
  var import_react_native = require("react-native");
44
44
  var import_theme = require("@xaui/core/theme");
45
+ var import_palette = require("@xaui/core/palette");
45
46
  var XUIThemeContext = (0, import_react.createContext)(null);
46
47
 
47
48
  // src/core/theme-hooks.ts
@@ -55,6 +56,9 @@ function useXUITheme() {
55
56
  return theme;
56
57
  }
57
58
 
59
+ // src/core/index.ts
60
+ var import_theme2 = require("@xaui/core/theme");
61
+
58
62
  // src/components/progress/circular-progress-indicator.tsx
59
63
  var import_react4 = __toESM(require("react"), 1);
60
64
  var import_react_native4 = require("react-native");
@@ -87,6 +91,8 @@ var useProgressAnimation = (value, disableAnimation) => {
87
91
  var import_react_native3 = require("react-native");
88
92
  var styles = import_react_native3.StyleSheet.create({
89
93
  container: {
94
+ flexShrink: 1,
95
+ flexBasis: "auto",
90
96
  width: "100%"
91
97
  },
92
98
  track: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useXUITheme
3
- } from "../chunk-DNJWBME5.js";
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: {