pytech-ui 1.0.7 → 1.0.10
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/README.md +7 -11
- package/build/constants/colors.d.ts +217 -0
- package/build/constants/colors.js +172 -0
- package/build/constants/colors.json +88 -0
- package/build/constants/consts.d.ts +7 -0
- package/build/constants/consts.js +16 -0
- package/build/constants/formats.d.ts +9 -0
- package/build/constants/formats.js +112 -0
- package/build/constants/hooks.d.ts +6 -0
- package/build/constants/hooks.js +72 -0
- package/build/constants/index.d.ts +5 -0
- package/build/constants/index.js +21 -0
- package/build/constants/utils.d.ts +9 -0
- package/build/constants/utils.js +107 -0
- package/build/contexts/alert/components/Alert/index.d.ts +3 -0
- package/build/contexts/alert/components/Alert/index.js +85 -0
- package/build/contexts/alert/components/Alert/types.d.ts +7 -0
- package/build/contexts/alert/components/Alert/types.js +2 -0
- package/build/contexts/alert/components/Button/index.d.ts +3 -0
- package/build/contexts/alert/components/Button/index.js +52 -0
- package/build/contexts/alert/components/Button/types.d.ts +7 -0
- package/build/contexts/alert/components/Button/types.js +2 -0
- package/build/contexts/alert/components/Provider/index.d.ts +4 -0
- package/build/contexts/alert/components/Provider/index.ios.d.ts +4 -0
- package/build/contexts/alert/components/Provider/index.ios.js +12 -0
- package/build/contexts/alert/components/Provider/index.js +17 -0
- package/build/contexts/alert/context/provider.d.ts +6 -0
- package/build/contexts/alert/context/provider.js +6 -0
- package/build/contexts/alert/index.d.ts +3 -0
- package/build/contexts/alert/index.js +10 -0
- package/build/contexts/app/context.d.ts +6 -0
- package/build/contexts/app/context.js +35 -0
- package/build/contexts/app/index.d.ts +5 -0
- package/build/contexts/app/index.js +14 -0
- package/build/contexts/app/src/components/Head/index.d.ts +3 -0
- package/build/contexts/app/src/components/Head/index.js +3 -0
- package/build/contexts/app/src/components/Head/index.web.d.ts +3 -0
- package/build/contexts/app/src/components/Head/index.web.js +29 -0
- package/build/contexts/app/src/components/Head/types.d.ts +24 -0
- package/build/contexts/app/src/components/Head/types.js +2 -0
- package/build/contexts/app/src/components/Loading.d.ts +4 -0
- package/build/contexts/app/src/components/Loading.js +4 -0
- package/build/contexts/app/src/components/Wrapper/index.d.ts +4 -0
- package/build/contexts/app/src/components/Wrapper/index.js +68 -0
- package/build/contexts/app/src/components/Wrapper/types.d.ts +20 -0
- package/build/contexts/app/src/components/Wrapper/types.js +2 -0
- package/build/contexts/app/src/index.d.ts +10 -0
- package/build/contexts/app/src/index.js +12 -0
- package/build/contexts/app/types.d.ts +6 -0
- package/build/contexts/app/types.js +2 -0
- package/build/contexts/pathname.d.ts +19 -0
- package/build/contexts/pathname.js +24 -0
- package/build/contexts/router/index.d.ts +6 -0
- package/build/contexts/router/index.js +35 -0
- package/build/contexts/router/types.d.ts +12 -0
- package/build/contexts/router/types.js +2 -0
- package/build/contexts/router/utils.d.ts +2 -0
- package/build/contexts/router/utils.js +13 -0
- package/build/universal/Column/index.android.d.ts +3 -0
- package/build/universal/Column/index.android.js +8 -0
- package/build/universal/Column/index.d.ts +3 -0
- package/build/universal/Column/index.ios.d.ts +3 -0
- package/build/universal/Column/index.ios.js +7 -0
- package/build/universal/Column/index.js +19 -0
- package/build/universal/Column/types.d.ts +16 -0
- package/build/universal/Column/types.js +2 -0
- package/build/universal/Row/index.android.d.ts +3 -0
- package/build/universal/Row/index.android.js +8 -0
- package/build/universal/Row/index.d.ts +3 -0
- package/build/universal/Row/index.ios.d.ts +3 -0
- package/build/universal/Row/index.ios.js +7 -0
- package/build/universal/Row/index.js +19 -0
- package/build/universal/Row/types.d.ts +16 -0
- package/build/universal/Row/types.js +2 -0
- package/build/universal/index.d.ts +4 -0
- package/build/universal/index.js +5 -1
- 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,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,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,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,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,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,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,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;
|
|
@@ -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';
|
package/build/universal/index.js
CHANGED
|
@@ -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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
2
|
+
"name": "pytech-ui",
|
|
3
|
+
"version": "1.0.10",
|
|
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/app": {
|
|
42
|
+
"types": "./build/contexts/app/index.d.ts",
|
|
43
|
+
"default": "./build/contexts/app/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
|
}
|