pytech-ui 1.0.8 → 1.0.11

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.
Files changed (78) hide show
  1. package/build/constants/colors.d.ts +217 -0
  2. package/build/constants/colors.js +172 -0
  3. package/build/constants/colors.json +88 -0
  4. package/build/constants/consts.d.ts +7 -0
  5. package/build/constants/consts.js +16 -0
  6. package/build/constants/formats.d.ts +9 -0
  7. package/build/constants/formats.js +112 -0
  8. package/build/constants/hooks.d.ts +6 -0
  9. package/build/constants/hooks.js +72 -0
  10. package/build/constants/index.d.ts +5 -0
  11. package/build/constants/index.js +21 -0
  12. package/build/constants/utils.d.ts +9 -0
  13. package/build/constants/utils.js +107 -0
  14. package/build/contexts/alert/components/Alert/index.d.ts +3 -0
  15. package/build/contexts/alert/components/Alert/index.js +85 -0
  16. package/build/contexts/alert/components/Alert/types.d.ts +7 -0
  17. package/build/contexts/alert/components/Alert/types.js +2 -0
  18. package/build/contexts/alert/components/Button/index.d.ts +3 -0
  19. package/build/contexts/alert/components/Button/index.js +52 -0
  20. package/build/contexts/alert/components/Button/types.d.ts +7 -0
  21. package/build/contexts/alert/components/Button/types.js +2 -0
  22. package/build/contexts/alert/components/Provider/index.d.ts +4 -0
  23. package/build/contexts/alert/components/Provider/index.ios.d.ts +4 -0
  24. package/build/contexts/alert/components/Provider/index.ios.js +12 -0
  25. package/build/contexts/alert/components/Provider/index.js +17 -0
  26. package/build/contexts/alert/context/provider.d.ts +6 -0
  27. package/build/contexts/alert/context/provider.js +6 -0
  28. package/build/contexts/alert/index.d.ts +3 -0
  29. package/build/contexts/alert/index.js +10 -0
  30. package/build/contexts/app/context.d.ts +6 -0
  31. package/build/contexts/app/context.js +35 -0
  32. package/build/contexts/app/index.d.ts +5 -0
  33. package/build/contexts/app/index.js +14 -0
  34. package/build/contexts/app/src/components/Head/index.d.ts +3 -0
  35. package/build/contexts/app/src/components/Head/index.js +3 -0
  36. package/build/contexts/app/src/components/Head/index.web.d.ts +3 -0
  37. package/build/contexts/app/src/components/Head/index.web.js +29 -0
  38. package/build/contexts/app/src/components/Head/types.d.ts +24 -0
  39. package/build/contexts/app/src/components/Head/types.js +2 -0
  40. package/build/contexts/app/src/components/Loading.d.ts +4 -0
  41. package/build/contexts/app/src/components/Loading.js +4 -0
  42. package/build/contexts/app/src/components/Wrapper/index.d.ts +4 -0
  43. package/build/contexts/app/src/components/Wrapper/index.js +68 -0
  44. package/build/contexts/app/src/components/Wrapper/types.d.ts +20 -0
  45. package/build/contexts/app/src/components/Wrapper/types.js +2 -0
  46. package/build/contexts/app/src/index.d.ts +10 -0
  47. package/build/contexts/app/src/index.js +12 -0
  48. package/build/contexts/app/types.d.ts +6 -0
  49. package/build/contexts/app/types.js +2 -0
  50. package/build/contexts/index.d.ts +4 -0
  51. package/build/contexts/index.js +26 -0
  52. package/build/contexts/pathname.d.ts +19 -0
  53. package/build/contexts/pathname.js +24 -0
  54. package/build/contexts/router/index.d.ts +6 -0
  55. package/build/contexts/router/index.js +35 -0
  56. package/build/contexts/router/types.d.ts +12 -0
  57. package/build/contexts/router/types.js +2 -0
  58. package/build/contexts/router/utils.d.ts +2 -0
  59. package/build/contexts/router/utils.js +13 -0
  60. package/build/universal/Column/index.android.d.ts +3 -0
  61. package/build/universal/Column/index.android.js +8 -0
  62. package/build/universal/Column/index.d.ts +3 -0
  63. package/build/universal/Column/index.ios.d.ts +3 -0
  64. package/build/universal/Column/index.ios.js +7 -0
  65. package/build/universal/Column/index.js +19 -0
  66. package/build/universal/Column/types.d.ts +16 -0
  67. package/build/universal/Column/types.js +2 -0
  68. package/build/universal/Row/index.android.d.ts +3 -0
  69. package/build/universal/Row/index.android.js +8 -0
  70. package/build/universal/Row/index.d.ts +3 -0
  71. package/build/universal/Row/index.ios.d.ts +3 -0
  72. package/build/universal/Row/index.ios.js +7 -0
  73. package/build/universal/Row/index.js +19 -0
  74. package/build/universal/Row/types.d.ts +16 -0
  75. package/build/universal/Row/types.js +2 -0
  76. package/build/universal/index.d.ts +4 -0
  77. package/build/universal/index.js +5 -1
  78. package/package.json +84 -70
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ const react_1 = __importStar(require("react"));
40
+ const universal_1 = require("@/universal");
41
+ const constants_1 = require("@/constants");
42
+ const Loading_1 = __importDefault(require("../Loading"));
43
+ exports.default = (0, react_1.memo)(({ children, getSession, onLoadingRealsed }) => {
44
+ const getSlots = (0, react_1.useCallback)(() => {
45
+ const slots = {};
46
+ react_1.default.Children.map(children, (child) => {
47
+ if (!react_1.default.isValidElement(child))
48
+ return;
49
+ if (child.type === Loading_1.default)
50
+ slots.loading = child;
51
+ });
52
+ return slots;
53
+ }, [children]);
54
+ const { loading } = getSlots();
55
+ const [isLoading, setIsLoading] = (0, react_1.useState)(getSession ? true : false);
56
+ const hasSessionRef = (0, react_1.useRef)(isLoading);
57
+ (0, react_1.useEffect)(() => {
58
+ if (!isLoading)
59
+ onLoadingRealsed?.({ hasSession: hasSessionRef.current });
60
+ }, [isLoading]);
61
+ (0, constants_1.useAsyncEffect)(async () => {
62
+ hasSessionRef.current = (await getSession?.()) ?? true;
63
+ setIsLoading(false);
64
+ }, []);
65
+ if (isLoading)
66
+ return loading ?? <universal_1.Host />;
67
+ return children;
68
+ });
@@ -0,0 +1,20 @@
1
+ type Props = {
2
+ /**
3
+ Stack from expo-router.
4
+ */
5
+ children?: React.ReactNode;
6
+ /**
7
+ Function to get the current session.
8
+ This will active the loading page until the session is obtained.
9
+ @default true
10
+ */
11
+ getSession?: () => Promise<boolean> | boolean;
12
+ /**
13
+ Function to execute when the loading state is changed to false.
14
+ This will be used to redirect to the home page.
15
+ */
16
+ onLoadingRealsed?: ({ hasSession }: {
17
+ hasSession: boolean;
18
+ }) => Promise<void> | void;
19
+ };
20
+ export default Props;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import Wrapper from './components/Wrapper';
2
+ import Head from './components/Head';
3
+ import Loading from './components/Loading';
4
+ export { default as AppProps } from './components/Wrapper/types';
5
+ type Component = typeof Wrapper & {
6
+ Head: typeof Head;
7
+ Loading: typeof Loading;
8
+ };
9
+ declare const App: Component;
10
+ export default App;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const Wrapper_1 = __importDefault(require("./components/Wrapper"));
7
+ const Head_1 = __importDefault(require("./components/Head"));
8
+ const Loading_1 = __importDefault(require("./components/Loading"));
9
+ const App = Wrapper_1.default;
10
+ App.Head = Head_1.default;
11
+ App.Loading = Loading_1.default;
12
+ exports.default = App;
@@ -0,0 +1,6 @@
1
+ import { ColorScheme } from "@/constants/colors";
2
+ type AppContext = {
3
+ colorScheme: ColorScheme;
4
+ fontScale: number;
5
+ };
6
+ export type { AppContext };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export { default as AppProvider } from './app';
2
+ export * from './app';
3
+ export { default as PathnameProvider } from './pathname';
4
+ export * from './pathname';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.PathnameProvider = exports.AppProvider = void 0;
21
+ var app_1 = require("./app");
22
+ Object.defineProperty(exports, "AppProvider", { enumerable: true, get: function () { return __importDefault(app_1).default; } });
23
+ __exportStar(require("./app"), exports);
24
+ var pathname_1 = require("./pathname");
25
+ Object.defineProperty(exports, "PathnameProvider", { enumerable: true, get: function () { return __importDefault(pathname_1).default; } });
26
+ __exportStar(require("./pathname"), exports);
@@ -0,0 +1,19 @@
1
+ export declare const segmentsToPathname: (segments: string[]) => string;
2
+ export declare const getPathName: () => string;
3
+ /**
4
+ * Devuelve el pathname de la ruta actual a partir de `useSegments()`.
5
+ *
6
+ * @param [initial=false] - Si es `true`, devuelve el pathname congelado al montar
7
+ * este componente. Si es `false`, devuelve el pathname actual y se actualiza al navegar.
8
+ * @returns Pathname con formato `/segmento/segmento`.
9
+ *
10
+ * @example
11
+ * const pathnameCurrent = usePathName()
12
+ * const pathnameInit = usePathName(true)
13
+ */
14
+ export declare function usePathName(): string;
15
+ export declare function usePathName(initial: true): string;
16
+ declare const _default: import("react").MemoExoticComponent<({ children }: {
17
+ children: React.ReactNode;
18
+ }) => import("react").ReactNode>;
19
+ export default _default;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPathName = exports.segmentsToPathname = void 0;
4
+ exports.usePathName = usePathName;
5
+ const react_1 = require("react");
6
+ const expo_router_1 = require("expo-router");
7
+ const pathnameRef = { current: '/' };
8
+ const segmentsToPathname = (segments) => {
9
+ const parts = segments.filter((s) => !(s.startsWith('(') && s.endsWith(')')));
10
+ return parts.length ? `/${parts.join('/')}` : '/';
11
+ };
12
+ exports.segmentsToPathname = segmentsToPathname;
13
+ const getPathName = () => pathnameRef.current;
14
+ exports.getPathName = getPathName;
15
+ function usePathName(initial) {
16
+ const segments = (0, expo_router_1.useSegments)();
17
+ const frozen = (0, react_1.useMemo)(() => (0, exports.segmentsToPathname)(segments), []);
18
+ const current = (0, react_1.useMemo)(() => (0, exports.segmentsToPathname)(segments), [segments]);
19
+ return initial ? frozen : current;
20
+ }
21
+ exports.default = (0, react_1.memo)(({ children }) => {
22
+ pathnameRef.current = usePathName();
23
+ return children;
24
+ });
@@ -0,0 +1,6 @@
1
+ import { Data } from './types';
2
+ export declare const Provider: import("react").Provider<Data>, useRouter: () => Data;
3
+ declare const _default: import("react").MemoExoticComponent<({ children }: {
4
+ children: React.ReactNode;
5
+ }) => import("react").JSX.Element>;
6
+ export default _default;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.useRouter = exports.Provider = void 0;
5
+ const expo_router_1 = require("expo-router");
6
+ const react_1 = require("react");
7
+ const constants_1 = require("@/constants");
8
+ const pathname_1 = require("../pathname");
9
+ const utils_1 = require("./utils");
10
+ _a = (0, constants_1.createCtx)(), exports.Provider = _a[0], exports.useRouter = _a[1];
11
+ exports.default = (0, react_1.memo)(({ children }) => {
12
+ const globalParams = (0, expo_router_1.useGlobalSearchParams)();
13
+ const doRouter = ({ method, pathname, params }) => {
14
+ if ((0, pathname_1.getPathName)() === pathname)
15
+ return;
16
+ expo_router_1.router[method]({
17
+ pathname,
18
+ params: (0, utils_1.paramsForRoute)(pathname, globalParams, params),
19
+ });
20
+ };
21
+ const push = (0, react_1.useCallback)((pathname, params) => (doRouter({ method: 'push', pathname, params })), [globalParams]);
22
+ const replace = (0, react_1.useCallback)((pathname, params) => (doRouter({ method: 'replace', pathname, params })), [globalParams]);
23
+ const dismissTo = (0, react_1.useCallback)((pathname, params) => {
24
+ if (pathname) {
25
+ doRouter({ method: 'dismissTo', pathname, params });
26
+ return;
27
+ }
28
+ if (expo_router_1.router.canGoBack())
29
+ expo_router_1.router.back();
30
+ }, [globalParams]);
31
+ const value = (0, react_1.useMemo)(() => ({ push, replace, dismissTo }), [push, replace, dismissTo]);
32
+ return (<exports.Provider value={value}>
33
+ {children}
34
+ </exports.Provider>);
35
+ });
@@ -0,0 +1,12 @@
1
+ import { type UnknownInputParams, type ImperativeRouter, type RoutePath } from "expo-router";
2
+ type DoRouterProps = {
3
+ method: keyof Pick<ImperativeRouter, 'push' | 'replace' | 'dismissTo'>;
4
+ pathname: RoutePath;
5
+ params?: UnknownInputParams;
6
+ };
7
+ type Data = {
8
+ push: (pathname: RoutePath, params?: UnknownInputParams) => void;
9
+ replace: (pathname: RoutePath, params?: UnknownInputParams) => void;
10
+ dismissTo: (pathname?: RoutePath, params?: UnknownInputParams) => void;
11
+ };
12
+ export type { DoRouterProps, Data };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ import { type UnknownInputParams, type RoutePath } from "expo-router";
2
+ export declare const paramsForRoute: (pathname: RoutePath, globalParams: UnknownInputParams, explicit?: UnknownInputParams) => UnknownInputParams | undefined;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paramsForRoute = void 0;
4
+ const paramsForRoute = (pathname, globalParams, explicit) => {
5
+ const inherited = Object.fromEntries(_dynamicParamNames(pathname)
6
+ .filter((key) => globalParams[key] != null)
7
+ .map((key) => [key, globalParams[key]]));
8
+ if (explicit)
9
+ return { ...inherited, ...explicit };
10
+ return Object.keys(inherited).length ? inherited : undefined;
11
+ };
12
+ exports.paramsForRoute = paramsForRoute;
13
+ const _dynamicParamNames = (pathname) => ([...pathname.matchAll(/\[([^\]]+)\]/g)].map((m) => m[1]));
@@ -0,0 +1,3 @@
1
+ import Props from "./types";
2
+ declare const _default: import("react").MemoExoticComponent<({ children, spacing, alignment }: Props) => import("react").JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const jetpack_compose_1 = require("@expo/ui/jetpack-compose");
5
+ const modifiers_1 = require("@expo/ui/jetpack-compose/modifiers");
6
+ exports.default = (0, react_1.memo)(({ children, spacing, alignment = 'center' }) => (<jetpack_compose_1.Column modifiers={[(0, modifiers_1.fillMaxWidth)()]} horizontalAlignment={alignment === 'center' ? 'center' : alignment === 'leading' ? 'start' : 'end'} verticalArrangement={spacing ? { spacedBy: spacing } : undefined}>
7
+ {children}
8
+ </jetpack_compose_1.Column>));
@@ -0,0 +1,3 @@
1
+ import Props from "./types";
2
+ declare const _default: import("react").MemoExoticComponent<({ children, spacing, alignment }: Props) => import("react").JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import Props from "./types";
2
+ declare const _default: import("react").MemoExoticComponent<({ children, spacing, alignment }: Props) => import("react").JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const swift_ui_1 = require("@expo/ui/swift-ui");
5
+ exports.default = (0, react_1.memo)(({ children, spacing, alignment = 'center' }) => (<swift_ui_1.VStack spacing={spacing} alignment={alignment}>
6
+ {children}
7
+ </swift_ui_1.VStack>));
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_native_1 = require("react-native");
4
+ const react_1 = require("react");
5
+ exports.default = (0, react_1.memo)(({ children, spacing = 10, alignment = 'center' }) => (<react_native_1.View style={[
6
+ styles.container,
7
+ {
8
+ gap: spacing,
9
+ alignItems: alignment === 'center' ? 'center' : alignment === 'leading' ? 'flex-start' : 'flex-end',
10
+ }
11
+ ]}>
12
+ {children}
13
+ </react_native_1.View>));
14
+ const styles = react_native_1.StyleSheet.create({
15
+ container: {
16
+ flexDirection: 'column',
17
+ justifyContent: 'center',
18
+ }
19
+ });
@@ -0,0 +1,16 @@
1
+ type Props = {
2
+ /**
3
+ The children to render inside the component.
4
+ */
5
+ children?: React.ReactNode;
6
+ /**
7
+ The spacing between children (gap).
8
+ */
9
+ spacing?: number;
10
+ /**
11
+ The alignment of the children.
12
+ @default 'center'
13
+ */
14
+ alignment?: 'center' | 'leading' | 'trailing';
15
+ };
16
+ export default Props;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import Props from "./types";
2
+ declare const _default: import("react").MemoExoticComponent<({ children, spacing, alignment }: Props) => import("react").JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const jetpack_compose_1 = require("@expo/ui/jetpack-compose");
5
+ const modifiers_1 = require("@expo/ui/jetpack-compose/modifiers");
6
+ exports.default = (0, react_1.memo)(({ children, spacing, alignment = 'center' }) => (<jetpack_compose_1.Row modifiers={[(0, modifiers_1.fillMaxWidth)()]} horizontalAlignment={alignment === 'center' ? 'center' : alignment === 'top' ? 'start' : 'end'} verticalArrangement={spacing ? { spacedBy: spacing } : undefined}>
7
+ {children}
8
+ </jetpack_compose_1.Row>));
@@ -0,0 +1,3 @@
1
+ import Props from "./types";
2
+ declare const _default: import("react").MemoExoticComponent<({ children, spacing, alignment }: Props) => import("react").JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import Props from "./types";
2
+ declare const _default: import("react").MemoExoticComponent<({ children, spacing, alignment }: Props) => import("react").JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_1 = require("react");
4
+ const swift_ui_1 = require("@expo/ui/swift-ui");
5
+ exports.default = (0, react_1.memo)(({ children, spacing, alignment = 'center' }) => (<swift_ui_1.HStack spacing={spacing} alignment={alignment}>
6
+ {children}
7
+ </swift_ui_1.HStack>));
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const react_native_1 = require("react-native");
4
+ const react_1 = require("react");
5
+ exports.default = (0, react_1.memo)(({ children, spacing = 10, alignment = 'center' }) => (<react_native_1.View style={[
6
+ styles.container,
7
+ {
8
+ gap: spacing,
9
+ justifyContent: alignment === 'center' ? 'center' : alignment === 'top' ? 'flex-start' : 'flex-end',
10
+ }
11
+ ]}>
12
+ {children}
13
+ </react_native_1.View>));
14
+ const styles = react_native_1.StyleSheet.create({
15
+ container: {
16
+ flexDirection: 'row',
17
+ alignItems: 'center',
18
+ }
19
+ });
@@ -0,0 +1,16 @@
1
+ type Props = {
2
+ /**
3
+ The children to render inside the component.
4
+ */
5
+ children?: React.ReactNode;
6
+ /**
7
+ The spacing between children (gap).
8
+ */
9
+ spacing?: number;
10
+ /**
11
+ The alignment of the children.
12
+ @default 'center'
13
+ */
14
+ alignment?: 'top' | 'center' | 'bottom';
15
+ };
16
+ export default Props;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,6 @@
1
1
  export { default as Host } from './Host';
2
2
  export type { default as HostProps } from './Host/types';
3
+ export { default as Column } from './Column';
4
+ export { default as ColumnProps } from './Column/types';
5
+ export { default as Row } from './Row';
6
+ export { default as RowProps } from './Row/types';
@@ -3,6 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Host = void 0;
6
+ exports.Row = exports.Column = exports.Host = void 0;
7
7
  var Host_1 = require("./Host");
8
8
  Object.defineProperty(exports, "Host", { enumerable: true, get: function () { return __importDefault(Host_1).default; } });
9
+ var Column_1 = require("./Column");
10
+ Object.defineProperty(exports, "Column", { enumerable: true, get: function () { return __importDefault(Column_1).default; } });
11
+ var Row_1 = require("./Row");
12
+ Object.defineProperty(exports, "Row", { enumerable: true, get: function () { return __importDefault(Row_1).default; } });
package/package.json CHANGED
@@ -1,72 +1,86 @@
1
1
  {
2
- "name": "pytech-ui",
3
- "version": "1.0.8",
4
- "description": "Librería de componentes de UI para Pytech",
5
- "keywords": [
6
- "react-native",
7
- "expo",
8
- "ui",
9
- "components",
10
- "swiftui",
11
- "pytech"
12
- ],
13
- "homepage": "https://github.com/MatiTobi/UI#readme",
14
- "bugs": {
15
- "url": "https://github.com/MatiTobi/UI/issues"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/MatiTobi/UI.git"
20
- },
21
- "license": "MIT",
22
- "author": "Matias Tobias Gutierrez",
23
- "type": "commonjs",
24
- "exports": {
25
- ".": {
26
- "types": "./build/index.d.ts",
27
- "default": "./build/index.js"
28
- },
29
- "./swift-ui": {
30
- "types": "./build/swift-ui/index.d.ts",
31
- "default": "./build/swift-ui/index.js"
32
- },
33
- "./jetpack-compose": {
34
- "types": "./build/jetpack-compose/index.d.ts",
35
- "default": "./build/jetpack-compose/index.js"
36
- },
37
- "./package.json": "./package.json"
38
- },
39
- "main": "build/index.js",
40
- "types": "build/index.d.ts",
41
- "files": [
42
- "build",
43
- "ios",
44
- "expo-module.config.json",
45
- "LICENSE",
46
- "README.md"
47
- ],
48
- "scripts": {
49
- "build": "tsc",
50
- "clean": "node -e \"require('fs').rmSync('build',{recursive:true,force:true})\"",
51
- "typecheck": "tsc --noEmit",
52
- "prepublishOnly": "npm run build",
53
- "release": "dev git && npm version patch && npm publish && dev git"
54
- },
55
- "dependencies": {
56
- "sf-symbols-typescript": "^1.0.0"
57
- },
58
- "devDependencies": {
59
- "@expo/ui": "~57.0.17",
60
- "@types/react": "~19.2.2",
61
- "expo": "~57.0.21",
62
- "react": "19.2.3",
63
- "react-native": "0.86.3",
64
- "typescript": "^5.9.2"
65
- },
66
- "peerDependencies": {
67
- "@expo/ui": "*",
68
- "expo": "*",
69
- "react": "*",
70
- "react-native": "*"
71
- }
2
+ "name": "pytech-ui",
3
+ "version": "1.0.11",
4
+ "description": "Librería de componentes de UI para Pytech",
5
+ "keywords": [
6
+ "react-native",
7
+ "expo",
8
+ "ui",
9
+ "components",
10
+ "swiftui",
11
+ "pytech"
12
+ ],
13
+ "homepage": "https://github.com/MatiTobi/UI#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/MatiTobi/UI/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/MatiTobi/UI.git"
20
+ },
21
+ "license": "MIT",
22
+ "author": "Matias Tobias Gutierrez",
23
+ "type": "commonjs",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./build/index.d.ts",
27
+ "default": "./build/index.js"
28
+ },
29
+ "./swift-ui": {
30
+ "types": "./build/swift-ui/index.d.ts",
31
+ "default": "./build/swift-ui/index.js"
32
+ },
33
+ "./jetpack-compose": {
34
+ "types": "./build/jetpack-compose/index.d.ts",
35
+ "default": "./build/jetpack-compose/index.js"
36
+ },
37
+ "./constants": {
38
+ "types": "./build/constants/index.d.ts",
39
+ "default": "./build/constants/index.js"
40
+ },
41
+ "./contexts": {
42
+ "types": "./build/contexts/index.d.ts",
43
+ "default": "./build/contexts/index.js"
44
+ },
45
+ "./package.json": "./package.json"
46
+ },
47
+ "main": "build/index.js",
48
+ "types": "build/index.d.ts",
49
+ "files": [
50
+ "build",
51
+ "ios",
52
+ "expo-module.config.json",
53
+ "LICENSE",
54
+ "README.md"
55
+ ],
56
+ "scripts": {
57
+ "build": "tsc",
58
+ "clean": "node -e \"require('fs').rmSync('build',{recursive:true,force:true})\"",
59
+ "typecheck": "tsc --noEmit",
60
+ "prepublishOnly": "npm run build",
61
+ "release": "dev git && npm version patch && npm publish && dev git"
62
+ },
63
+ "dependencies": {
64
+ "color2k": "^2.0.4",
65
+ "date-fns": "^4.1.0",
66
+ "expo-constants": "~57.0.17",
67
+ "expo-device": "~57.0.1",
68
+ "expo-router": "~57.0.20",
69
+ "sf-symbols-typescript": "^1.0.0"
70
+ },
71
+ "devDependencies": {
72
+ "@expo/ui": "~57.0.17",
73
+ "@types/react": "~19.2.2",
74
+ "expo": "~57.0.21",
75
+ "react": "19.2.3",
76
+ "react-dom": "19.2.3",
77
+ "react-native": "0.86.3",
78
+ "typescript": "^5.9.2"
79
+ },
80
+ "peerDependencies": {
81
+ "@expo/ui": "*",
82
+ "expo": "*",
83
+ "react": "*",
84
+ "react-native": "*"
85
+ }
72
86
  }