@joelbarron/react-web-dev-kit 0.1.5 → 0.1.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.
- package/dist/auth/fuse/fuseIntegration.d.ts +2 -0
- package/dist/auth/fuse/fuseIntegration.d.ts.map +1 -1
- package/dist/auth/fuse/fuseIntegration.js +18 -0
- package/dist/auth/social/providerAuth.d.ts.map +1 -1
- package/dist/auth/social/providerAuth.js +12 -4
- package/dist/config/createConfig.d.ts.map +1 -1
- package/dist/config/createConfig.js +38 -1
- package/dist/config/defaults.js +1 -1
- package/dist/core/dialogs/JBConfirmDialog.d.ts +15 -0
- package/dist/core/dialogs/JBConfirmDialog.d.ts.map +1 -0
- package/dist/core/dialogs/JBConfirmDialog.js +6 -0
- package/dist/core/dialogs/index.d.ts +2 -0
- package/dist/core/dialogs/index.d.ts.map +1 -0
- package/dist/core/dialogs/index.js +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +3 -0
- package/dist/core/layout/JBContentContainer.d.ts +27 -0
- package/dist/core/layout/JBContentContainer.d.ts.map +1 -0
- package/dist/core/layout/JBContentContainer.js +42 -0
- package/dist/core/layout/JBFormHeader.d.ts +3 -0
- package/dist/core/layout/JBFormHeader.d.ts.map +1 -0
- package/dist/core/layout/JBFormHeader.js +156 -0
- package/dist/core/layout/index.d.ts +3 -0
- package/dist/core/layout/index.d.ts.map +1 -0
- package/dist/core/layout/index.js +2 -0
- package/dist/core/skeletons/JBFormContentSkeleton.d.ts +5 -0
- package/dist/core/skeletons/JBFormContentSkeleton.d.ts.map +1 -0
- package/dist/core/skeletons/JBFormContentSkeleton.js +12 -0
- package/dist/core/skeletons/JBFormHeaderSkeleton.d.ts +6 -0
- package/dist/core/skeletons/JBFormHeaderSkeleton.d.ts.map +1 -0
- package/dist/core/skeletons/JBFormHeaderSkeleton.js +19 -0
- package/dist/core/skeletons/index.d.ts +3 -0
- package/dist/core/skeletons/index.d.ts.map +1 -0
- package/dist/core/skeletons/index.js +2 -0
- package/dist/forms/index.d.ts +1 -0
- package/dist/forms/index.d.ts.map +1 -1
- package/dist/forms/index.js +1 -0
- package/dist/forms/zod.d.ts +4 -0
- package/dist/forms/zod.d.ts.map +1 -0
- package/dist/forms/zod.js +9 -0
- package/dist/grid/JBFormHeader.d.ts +2 -0
- package/dist/grid/JBFormHeader.d.ts.map +1 -0
- package/dist/grid/JBFormHeader.js +1 -0
- package/dist/grid/JBGrid.d.ts.map +1 -1
- package/dist/grid/JBGrid.js +210 -18
- package/dist/grid/JBGridHeader.d.ts.map +1 -1
- package/dist/grid/JBGridHeader.js +84 -15
- package/dist/grid/JBGridLoading.d.ts +9 -0
- package/dist/grid/JBGridLoading.d.ts.map +1 -0
- package/dist/grid/JBGridLoading.js +14 -0
- package/dist/grid/JBGridProviders.d.ts +3 -0
- package/dist/grid/JBGridProviders.d.ts.map +1 -1
- package/dist/grid/JBGridProviders.js +16 -0
- package/dist/grid/JBGridSkeleton.d.ts +7 -0
- package/dist/grid/JBGridSkeleton.d.ts.map +1 -0
- package/dist/grid/JBGridSkeleton.js +6 -0
- package/dist/grid/defaults.d.ts +4 -0
- package/dist/grid/defaults.d.ts.map +1 -0
- package/dist/grid/defaults.js +27 -0
- package/dist/grid/index.d.ts +3 -0
- package/dist/grid/index.d.ts.map +1 -1
- package/dist/grid/index.js +3 -0
- package/dist/grid/types.d.ts +110 -3
- package/dist/grid/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/query/index.d.ts +1 -0
- package/dist/query/index.d.ts.map +1 -1
- package/dist/query/index.js +1 -0
- package/dist/query/types.d.ts +7 -0
- package/dist/query/types.d.ts.map +1 -0
- package/dist/query/types.js +1 -0
- package/dist/utils/errors.d.ts +10 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +55 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/package.json +7 -1
|
@@ -16,6 +16,8 @@ export declare const fuseAuthRoles: {
|
|
|
16
16
|
readonly user: readonly ["admin", "staff", "user"];
|
|
17
17
|
readonly onlyGuest: readonly [];
|
|
18
18
|
};
|
|
19
|
+
export type FuseAuthRolesMap = Record<string, string[]>;
|
|
20
|
+
export declare function createFuseAuthRoles(customRoles?: FuseAuthRolesMap): FuseAuthRolesMap;
|
|
19
21
|
export declare function createFuseUserModel<TUser extends FuseUser>(): (data?: Partial<TUser>) => TUser;
|
|
20
22
|
type CreateFuseUseUserOptions<TUser extends FuseUser> = {
|
|
21
23
|
useAuth: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fuseIntegration.d.ts","sourceRoot":"","sources":["../../../src/auth/fuse/fuseIntegration.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAKvC,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AAEX,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,QAAQ,MAChD,OAAO,OAAO,CAAC,KAAK,CAAC,KAAG,KAAK,CAetC;AAED,KAAK,wBAAwB,CAAC,KAA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AQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;QACpC,QAAQ,EAAE,SAAS,CAAC;KACrB,CAAC,CAAC;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,KAAK,SAAS,QAAQ,EAAE,OAAO,EAAE,+BAA+B,CAAC,KAAK,CAAC,IAW/E,OAAO;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,6CAY9D"}
|
|
@@ -8,6 +8,24 @@ export const fuseAuthRoles = {
|
|
|
8
8
|
user: ['admin', 'staff', 'user'],
|
|
9
9
|
onlyGuest: []
|
|
10
10
|
};
|
|
11
|
+
export function createFuseAuthRoles(customRoles) {
|
|
12
|
+
const mergedRoles = Object.entries(fuseAuthRoles).reduce((accumulator, [roleKey, roleValues]) => {
|
|
13
|
+
accumulator[roleKey] = [...roleValues];
|
|
14
|
+
return accumulator;
|
|
15
|
+
}, {});
|
|
16
|
+
if (!customRoles) {
|
|
17
|
+
return mergedRoles;
|
|
18
|
+
}
|
|
19
|
+
Object.entries(customRoles).forEach(([roleKey, roleValues]) => {
|
|
20
|
+
const normalizedRoleValues = Array.from(new Set(roleValues ?? []));
|
|
21
|
+
if (!mergedRoles[roleKey]) {
|
|
22
|
+
mergedRoles[roleKey] = normalizedRoleValues;
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
mergedRoles[roleKey] = Array.from(new Set([...mergedRoles[roleKey], ...normalizedRoleValues]));
|
|
26
|
+
});
|
|
27
|
+
return mergedRoles;
|
|
28
|
+
}
|
|
11
29
|
export function createFuseUserModel() {
|
|
12
30
|
return (data) => {
|
|
13
31
|
const userData = data || {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerAuth.d.ts","sourceRoot":"","sources":["../../../src/auth/social/providerAuth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE9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E,MAAM,CAAC;aACjB,KAAK,IAAI,CAAC;YACX,KAAK,EAAE,CACL,QAAQ,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,EACnD,OAAO,CAAC,EAAE;gBACR,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;aACtC,KACE,IAAI,CAAC;SACX,CAAC;KACH;CACF;AAiPD,eAAO,MAAM,8BAA8B,GACzC,UAAU,cAAc,EACxB,QAAQ,0BAA0B,KACjC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,mBAAmB,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,UAAU,CAAC,CAc7H,CAAC"}
|
|
@@ -45,11 +45,18 @@ const ensureFacebookSdk = async (clientId) => {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
const isLikelyMobileBrowser = () => {
|
|
48
|
-
if (typeof navigator === 'undefined') {
|
|
48
|
+
if (typeof navigator === 'undefined' || typeof window === 'undefined') {
|
|
49
49
|
return false;
|
|
50
50
|
}
|
|
51
51
|
const userAgent = navigator.userAgent || '';
|
|
52
|
-
|
|
52
|
+
const hasTouch = (navigator.maxTouchPoints ?? 0) > 0;
|
|
53
|
+
const hasCoarsePointer = typeof window.matchMedia === 'function'
|
|
54
|
+
? window.matchMedia('(pointer: coarse)').matches
|
|
55
|
+
: false;
|
|
56
|
+
const smallViewport = typeof window.innerWidth === 'number' ? window.innerWidth <= 1024 : false;
|
|
57
|
+
const isMobileUserAgent = /Android|iPhone|iPad|iPod|IEMobile|Opera Mini|Mobile/i.test(userAgent);
|
|
58
|
+
const isIpadOsDesktopMode = /Macintosh/i.test(userAgent) && hasTouch;
|
|
59
|
+
return isMobileUserAgent || isIpadOsDesktopMode || ((hasTouch || hasCoarsePointer) && smallViewport);
|
|
53
60
|
};
|
|
54
61
|
const logSocialDebug = (enabled, message, payload) => {
|
|
55
62
|
if (!enabled) {
|
|
@@ -157,10 +164,11 @@ const authenticateWithApple = async (config) => {
|
|
|
157
164
|
};
|
|
158
165
|
};
|
|
159
166
|
const authenticateWithFacebook = async (config) => {
|
|
160
|
-
const
|
|
167
|
+
const mobileBrowser = isLikelyMobileBrowser();
|
|
168
|
+
const shouldUsePopup = config.usePopup ?? !mobileBrowser;
|
|
161
169
|
const resolvedDisplay = shouldUsePopup
|
|
162
170
|
? 'popup'
|
|
163
|
-
:
|
|
171
|
+
: mobileBrowser
|
|
164
172
|
? 'touch'
|
|
165
173
|
: 'page';
|
|
166
174
|
logSocialDebug(config.debug, 'facebook provider auth start', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createConfig.d.ts","sourceRoot":"","sources":["../../src/config/createConfig.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,UAAU,EAEV,uBAAuB,EACvB,kBAAkB,EAElB,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,iBAAiB,GAC5B,aAAa,oBAAoB,EACjC,YAAY,oBAAoB,KAC/B,WA6BF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,YAAY,eAAe,EAAE,OAAO,UAAU,KAAG,MAEtF,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,EAC7B,UAAU,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EACxC,OAAO,UAAU,EACjB,WAAW,CAAC,KACX,CAAC,GAAG,SAQN,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,QAAQ,WAAW,KAAG,MAEnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,CAAC,EACnC,QAAQ,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,EAClC,UAAU,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EACxC,WAAW,CAAC,KACX,CAAC,GAAG,SAEN,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,aA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W,KAAG,MAAM,GAAG,SAExE,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,WAAW,KAAG,kBAEzD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,QAAQ,WAAW,KAAG,OAE5D,CAAC"}
|
|
@@ -40,7 +40,28 @@ export const getConfigStageValue = (config, stageMap, fallback) => {
|
|
|
40
40
|
return getStageValue(stageMap, config.stage, fallback);
|
|
41
41
|
};
|
|
42
42
|
export const createJBWebConfigFromEnv = (baseConfig, env) => {
|
|
43
|
-
const
|
|
43
|
+
const resolveRuntimeEnv = () => {
|
|
44
|
+
if (env) {
|
|
45
|
+
return env;
|
|
46
|
+
}
|
|
47
|
+
try {
|
|
48
|
+
const importMetaEnv = import.meta.env;
|
|
49
|
+
if (importMetaEnv && typeof importMetaEnv === 'object') {
|
|
50
|
+
return importMetaEnv;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
// Ignore import.meta access errors outside of ESM/runtime contexts.
|
|
55
|
+
}
|
|
56
|
+
if (typeof globalThis !== 'undefined') {
|
|
57
|
+
const globalEnv = globalThis.__ENV__;
|
|
58
|
+
if (globalEnv && typeof globalEnv === 'object') {
|
|
59
|
+
return globalEnv;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return {};
|
|
63
|
+
};
|
|
64
|
+
const runtimeEnv = resolveRuntimeEnv();
|
|
44
65
|
const parseEnvList = (value) => {
|
|
45
66
|
if (!value) {
|
|
46
67
|
return undefined;
|
|
@@ -82,9 +103,25 @@ export const createJBWebConfigFromEnv = (baseConfig, env) => {
|
|
|
82
103
|
const googleEnabled = parseBooleanEnv(runtimeEnv.VITE_AUTH_SOCIAL_GOOGLE_ENABLED);
|
|
83
104
|
const facebookEnabled = parseBooleanEnv(runtimeEnv.VITE_AUTH_SOCIAL_FACEBOOK_ENABLED);
|
|
84
105
|
const appleEnabled = parseBooleanEnv(runtimeEnv.VITE_AUTH_SOCIAL_APPLE_ENABLED);
|
|
106
|
+
const apiHostOverrides = {};
|
|
107
|
+
const setApiHost = (stage, value) => {
|
|
108
|
+
if (!value) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const normalizedValue = value.trim();
|
|
112
|
+
if (!normalizedValue) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
apiHostOverrides[stage] = normalizedValue;
|
|
116
|
+
};
|
|
117
|
+
setApiHost('PRODUCTION', runtimeEnv.VITE_API_HOST_PRODUCTION);
|
|
118
|
+
setApiHost('QA', runtimeEnv.VITE_API_HOST_QA);
|
|
119
|
+
setApiHost('DEVELOPMENT', runtimeEnv.VITE_API_HOST_DEVELOPMENT);
|
|
120
|
+
setApiHost('LOCAL', runtimeEnv.VITE_API_HOST_LOCAL);
|
|
85
121
|
return createJBWebConfig(baseConfig, {
|
|
86
122
|
debug: runtimeEnv.VITE_DEBUG === 'true' ? true : undefined,
|
|
87
123
|
stage: runtimeEnv.VITE_STAGE,
|
|
124
|
+
api: Object.keys(apiHostOverrides).length > 0 ? { host: apiHostOverrides } : undefined,
|
|
88
125
|
integrations: {
|
|
89
126
|
mapboxToken: runtimeEnv.VITE_MAPBOX_TOKEN
|
|
90
127
|
},
|
package/dist/config/defaults.js
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type JBConfirmDialogProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
title?: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
confirmLabel?: string;
|
|
7
|
+
cancelLabel?: string;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
confirmColor?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
|
|
11
|
+
onConfirm: () => void;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
};
|
|
14
|
+
export declare function JBConfirmDialog(props: JBConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=JBConfirmDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JBConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/core/dialogs/JBConfirmDialog.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC5C,YAAY,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IAClF,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CA8C1D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Dialog, DialogActions, DialogContent, DialogTitle, Typography } from '@mui/material';
|
|
3
|
+
export function JBConfirmDialog(props) {
|
|
4
|
+
const { open, title = 'Confirmar', description, confirmLabel = 'Confirmar', cancelLabel = 'Cancelar', loading = false, maxWidth = 'xs', confirmColor = 'primary', onConfirm, onClose } = props;
|
|
5
|
+
return (_jsxs(Dialog, { open: open, onClose: loading ? undefined : onClose, maxWidth: maxWidth, fullWidth: true, children: [_jsx(DialogTitle, { children: title }), description ? (_jsx(DialogContent, { children: typeof description === 'string' ? _jsx(Typography, { variant: "body2", children: description }) : description })) : null, _jsxs(DialogActions, { sx: { px: 3, pb: 2 }, children: [_jsx(Button, { variant: "outlined", onClick: onClose, disabled: loading, children: cancelLabel }), _jsx(Button, { variant: "contained", color: confirmColor, onClick: onConfirm, disabled: loading, children: confirmLabel })] })] }));
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/dialogs/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './JBConfirmDialog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export type JBContentContainerProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
header?: ReactNode;
|
|
6
|
+
animated?: boolean;
|
|
7
|
+
animationDelayMs?: number;
|
|
8
|
+
animationDurationMs?: number;
|
|
9
|
+
padding?: number | string | {
|
|
10
|
+
xs?: number | string;
|
|
11
|
+
sm?: number | string;
|
|
12
|
+
md?: number | string;
|
|
13
|
+
lg?: number | string;
|
|
14
|
+
};
|
|
15
|
+
contentPadding?: number | string | {
|
|
16
|
+
xs?: number | string;
|
|
17
|
+
sm?: number | string;
|
|
18
|
+
md?: number | string;
|
|
19
|
+
lg?: number | string;
|
|
20
|
+
};
|
|
21
|
+
withGradient?: boolean;
|
|
22
|
+
paperSx?: SxProps<Theme>;
|
|
23
|
+
headerSx?: SxProps<Theme>;
|
|
24
|
+
contentSx?: SxProps<Theme>;
|
|
25
|
+
};
|
|
26
|
+
export declare function JBContentContainer(props: JBContentContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=JBContentContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JBContentContainer.d.ts","sourceRoot":"","sources":["../../../src/core/layout/JBContentContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG;QAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACvH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG;QAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAE9H,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC;AAKF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CA8EhE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Paper } from '@mui/material';
|
|
3
|
+
import { alpha } from '@mui/material/styles';
|
|
4
|
+
const defaultOuterPadding = { xs: 1.5, sm: 2.5, md: 3 };
|
|
5
|
+
const defaultContentPadding = { xs: 2.5, sm: 3, md: 4 };
|
|
6
|
+
export function JBContentContainer(props) {
|
|
7
|
+
const { children, header, animated = true, animationDelayMs = 0, animationDurationMs = 260, padding = defaultOuterPadding, contentPadding = defaultContentPadding,
|
|
8
|
+
// borderRadius = 3,
|
|
9
|
+
withGradient = false, paperSx, headerSx, contentSx } = props;
|
|
10
|
+
return (_jsx(Box, { className: "w-full h-full", sx: { p: padding }, children: _jsx(Box, { sx: animated
|
|
11
|
+
? {
|
|
12
|
+
'@keyframes jbFadeSlideIn': {
|
|
13
|
+
from: { opacity: 0, transform: 'translateY(14px)' },
|
|
14
|
+
to: { opacity: 1, transform: 'translateY(0)' }
|
|
15
|
+
},
|
|
16
|
+
animation: `jbFadeSlideIn ${animationDurationMs}ms ease-out ${animationDelayMs}ms both`
|
|
17
|
+
}
|
|
18
|
+
: undefined, children: _jsxs(Paper, { elevation: 0, sx: [
|
|
19
|
+
(theme) => ({
|
|
20
|
+
position: 'relative',
|
|
21
|
+
overflow: 'hidden',
|
|
22
|
+
// borderRadius,
|
|
23
|
+
// border: `1px solid ${theme.palette.divider}`,
|
|
24
|
+
background: withGradient
|
|
25
|
+
? `linear-gradient(180deg, ${alpha(theme.palette.background.paper, 0.96)} 0%, ${alpha(theme.palette.background.default, 0.9)} 100%)`
|
|
26
|
+
: theme.palette.background.paper
|
|
27
|
+
}),
|
|
28
|
+
...(Array.isArray(paperSx) ? paperSx : paperSx ? [paperSx] : [])
|
|
29
|
+
], children: [header ? (_jsx(Box, { sx: [
|
|
30
|
+
{
|
|
31
|
+
px: { xs: 2, sm: 3, md: 4 },
|
|
32
|
+
pt: { xs: 2, sm: 2.5 },
|
|
33
|
+
pb: 0.75,
|
|
34
|
+
borderBottom: '1px solid',
|
|
35
|
+
borderColor: 'divider'
|
|
36
|
+
},
|
|
37
|
+
...(Array.isArray(headerSx) ? headerSx : headerSx ? [headerSx] : [])
|
|
38
|
+
], children: header })) : null, _jsx(Box, { sx: [
|
|
39
|
+
{ px: contentPadding, py: contentPadding },
|
|
40
|
+
...(Array.isArray(contentSx) ? contentSx : contentSx ? [contentSx] : [])
|
|
41
|
+
], children: children })] }) }) }));
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JBFormHeader.d.ts","sourceRoot":"","sources":["../../../src/core/layout/JBFormHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAuRpD"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import CloseRoundedIcon from '@mui/icons-material/CloseRounded';
|
|
3
|
+
import DeleteRoundedIcon from '@mui/icons-material/DeleteRounded';
|
|
4
|
+
import EditRoundedIcon from '@mui/icons-material/EditRounded';
|
|
5
|
+
import SaveRoundedIcon from '@mui/icons-material/SaveRounded';
|
|
6
|
+
import { Box, Button, Typography } from '@mui/material';
|
|
7
|
+
import { alpha } from '@mui/material/styles';
|
|
8
|
+
export function JBFormHeader(props) {
|
|
9
|
+
const { moduleConfig, iconNameRenderer, animated = true, animationDurationMs = 260, animationStaggerMs = 70, animationPreset = 'vertical', breadcrumb, showBackButton = false, backLabel, onBackClick, backContent, isNew = false, title, dynamicTitle, formValues, getDynamicTitle, subtitle, dynamicSubtitle, getDynamicSubtitle, icon, actions, rightContent } = props;
|
|
10
|
+
const dynamicTitleFromResolver = getDynamicTitle?.({ isNew, values: formValues });
|
|
11
|
+
const dynamicSubtitleFromResolver = getDynamicSubtitle?.({ isNew, values: formValues });
|
|
12
|
+
const resolvedTitle = (!isNew ? dynamicTitle : undefined) ??
|
|
13
|
+
dynamicTitleFromResolver ??
|
|
14
|
+
title ??
|
|
15
|
+
(isNew ? moduleConfig?.texts?.newText : moduleConfig?.texts?.editText) ??
|
|
16
|
+
moduleConfig?.texts?.moduleName ??
|
|
17
|
+
'';
|
|
18
|
+
const resolvedSubtitle = dynamicSubtitle ??
|
|
19
|
+
dynamicSubtitleFromResolver ??
|
|
20
|
+
subtitle ??
|
|
21
|
+
moduleConfig?.texts?.formHeaderSubtitle ??
|
|
22
|
+
'';
|
|
23
|
+
const resolvedBackLabel = backLabel ?? moduleConfig?.texts?.goBackToGrid ?? 'Volver';
|
|
24
|
+
const resolvedIcon = icon ??
|
|
25
|
+
(moduleConfig?.texts?.iconName && iconNameRenderer
|
|
26
|
+
? iconNameRenderer(moduleConfig.texts.iconName)
|
|
27
|
+
: null);
|
|
28
|
+
const defaultActionIcons = {
|
|
29
|
+
save: _jsx(SaveRoundedIcon, { fontSize: "small" }),
|
|
30
|
+
cancel: _jsx(CloseRoundedIcon, { fontSize: "small" }),
|
|
31
|
+
edit: _jsx(EditRoundedIcon, { fontSize: "small" }),
|
|
32
|
+
delete: _jsx(DeleteRoundedIcon, { fontSize: "small" })
|
|
33
|
+
};
|
|
34
|
+
const formDisabled = actions?.formDisabled ?? false;
|
|
35
|
+
const allowEdit = actions?.allowEdit ?? false;
|
|
36
|
+
const allowDelete = actions?.allowDelete ?? false;
|
|
37
|
+
const showDeleteWhenEditing = actions?.showDeleteWhenEditing ?? false;
|
|
38
|
+
const defaultActions = actions ? (_jsxs(Box, { sx: {
|
|
39
|
+
display: 'flex',
|
|
40
|
+
gap: 1,
|
|
41
|
+
flexWrap: 'wrap',
|
|
42
|
+
justifyContent: 'flex-end',
|
|
43
|
+
width: { xs: '100%', sm: 'auto' }
|
|
44
|
+
}, children: [!isNew && allowEdit && formDisabled && actions.onStartEdit ? (_jsx(Button, { variant: "contained", color: "warning", size: "large", disabled: actions.disableEdit, startIcon: actions.editIcon ?? defaultActionIcons.edit, sx: (theme) => ({
|
|
45
|
+
borderRadius: 1.5,
|
|
46
|
+
minHeight: 42,
|
|
47
|
+
px: 2.25,
|
|
48
|
+
fontWeight: 700,
|
|
49
|
+
boxShadow: 'none',
|
|
50
|
+
backgroundImage: 'none',
|
|
51
|
+
'&:hover': {
|
|
52
|
+
boxShadow: 'none',
|
|
53
|
+
backgroundImage: 'none',
|
|
54
|
+
backgroundColor: theme.palette.warning.dark
|
|
55
|
+
}
|
|
56
|
+
}), onClick: actions.onStartEdit, children: actions.editLabel ?? 'Editar' })) : null, (isNew || !formDisabled) && actions.onCancel ? (_jsx(Button, { variant: "outlined", size: "large", disabled: actions.disableCancel, startIcon: actions.cancelIcon ?? defaultActionIcons.cancel, sx: { borderRadius: 1.5, minHeight: 42, px: 2.25, fontWeight: 700 }, onClick: actions.onCancel, children: actions.cancelLabel ?? 'Cancelar' })) : null, (isNew || !formDisabled) && actions.onSave ? (_jsx(Button, { variant: "contained", color: "primary", size: "large", disabled: actions.disableSave, startIcon: actions.saveIcon ?? defaultActionIcons.save, sx: (theme) => ({
|
|
57
|
+
borderRadius: 1.5,
|
|
58
|
+
minHeight: 42,
|
|
59
|
+
px: 2.25,
|
|
60
|
+
fontWeight: 700,
|
|
61
|
+
boxShadow: 'none',
|
|
62
|
+
backgroundImage: 'none',
|
|
63
|
+
'&:hover': {
|
|
64
|
+
boxShadow: 'none',
|
|
65
|
+
backgroundImage: 'none',
|
|
66
|
+
backgroundColor: theme.palette.primary.dark
|
|
67
|
+
}
|
|
68
|
+
}), onClick: actions.onSave, children: actions.saveLabel ?? (isNew ? 'Guardar' : 'Guardar cambios') })) : null, allowDelete &&
|
|
69
|
+
actions.onDelete &&
|
|
70
|
+
(formDisabled || showDeleteWhenEditing) ? (_jsx(Button, { variant: "contained", color: "error", size: "large", disabled: actions.disableDelete, startIcon: actions.deleteIcon ?? defaultActionIcons.delete, sx: (theme) => ({
|
|
71
|
+
borderRadius: 1.5,
|
|
72
|
+
minHeight: 42,
|
|
73
|
+
px: 2.25,
|
|
74
|
+
fontWeight: 700,
|
|
75
|
+
boxShadow: 'none',
|
|
76
|
+
backgroundImage: 'none',
|
|
77
|
+
'&:hover': {
|
|
78
|
+
boxShadow: 'none',
|
|
79
|
+
backgroundImage: 'none',
|
|
80
|
+
backgroundColor: theme.palette.error.dark
|
|
81
|
+
}
|
|
82
|
+
}), onClick: actions.onDelete, children: actions.deleteLabel ?? 'Eliminar' })) : null] })) : null;
|
|
83
|
+
const resolvedRightContent = rightContent ?? defaultActions;
|
|
84
|
+
const animateSx = (delayMs) => animated
|
|
85
|
+
? {
|
|
86
|
+
animation: `jbHeaderFadeIn ${animationDurationMs}ms ease-out ${delayMs}ms both`
|
|
87
|
+
}
|
|
88
|
+
: undefined;
|
|
89
|
+
const animateFromLeftSx = (delayMs) => animated && animationPreset === 'sides'
|
|
90
|
+
? {
|
|
91
|
+
animation: `jbHeaderFadeInLeft ${animationDurationMs}ms ease-out ${delayMs}ms both`
|
|
92
|
+
}
|
|
93
|
+
: animateSx(delayMs);
|
|
94
|
+
const animateFromRightSx = (delayMs) => animated && animationPreset === 'sides'
|
|
95
|
+
? {
|
|
96
|
+
animation: `jbHeaderFadeInRight ${animationDurationMs}ms ease-out ${delayMs}ms both`
|
|
97
|
+
}
|
|
98
|
+
: animateSx(delayMs);
|
|
99
|
+
return (_jsxs(Box, { sx: {
|
|
100
|
+
width: '100%',
|
|
101
|
+
display: 'flex',
|
|
102
|
+
flexDirection: 'column',
|
|
103
|
+
gap: 2,
|
|
104
|
+
p: { xs: 2, sm: 3 },
|
|
105
|
+
'@keyframes jbHeaderFadeIn': {
|
|
106
|
+
from: { opacity: 0, transform: 'translateY(10px)' },
|
|
107
|
+
to: { opacity: 1, transform: 'translateY(0)' }
|
|
108
|
+
},
|
|
109
|
+
'@keyframes jbHeaderFadeInLeft': {
|
|
110
|
+
from: { opacity: 0, transform: 'translateX(-16px)' },
|
|
111
|
+
to: { opacity: 1, transform: 'translateX(0)' }
|
|
112
|
+
},
|
|
113
|
+
'@keyframes jbHeaderFadeInRight': {
|
|
114
|
+
from: { opacity: 0, transform: 'translateX(16px)' },
|
|
115
|
+
to: { opacity: 1, transform: 'translateX(0)' }
|
|
116
|
+
}
|
|
117
|
+
}, children: [breadcrumb ? _jsx(Box, { sx: animateSx(0), children: breadcrumb }) : null, backContent ? _jsx(Box, { sx: animateSx(animationStaggerMs), children: backContent }) : null, showBackButton && onBackClick ? (_jsx(Typography, { role: "button", color: "text.primary", sx: {
|
|
118
|
+
display: 'inline-flex',
|
|
119
|
+
alignItems: 'center',
|
|
120
|
+
gap: 0.75,
|
|
121
|
+
width: 'fit-content',
|
|
122
|
+
fontWeight: 500,
|
|
123
|
+
fontSize: { xs: '0.95rem', sm: '1rem' },
|
|
124
|
+
cursor: 'pointer',
|
|
125
|
+
opacity: 0.9,
|
|
126
|
+
transition: 'all .16s ease',
|
|
127
|
+
'&:hover': { opacity: 1, color: 'primary.main' },
|
|
128
|
+
...animateSx(animationStaggerMs * 2)
|
|
129
|
+
}, onClick: onBackClick, children: `← ${resolvedBackLabel}` })) : null, _jsxs(Box, { sx: {
|
|
130
|
+
display: { xs: 'flex', sm: 'grid' },
|
|
131
|
+
flexDirection: { xs: 'column', sm: 'row' },
|
|
132
|
+
gridTemplateColumns: { sm: 'minmax(0, 1fr) auto' },
|
|
133
|
+
alignItems: { xs: 'stretch', sm: 'center' },
|
|
134
|
+
width: '100%',
|
|
135
|
+
gap: 2
|
|
136
|
+
}, children: [_jsxs(Box, { sx: {
|
|
137
|
+
display: 'flex',
|
|
138
|
+
alignItems: 'center',
|
|
139
|
+
gap: 1.25,
|
|
140
|
+
minWidth: 0,
|
|
141
|
+
...animateFromLeftSx(animationStaggerMs * 3)
|
|
142
|
+
}, children: [resolvedIcon ? _jsx(Box, { sx: { display: 'inline-flex', alignItems: 'center' }, children: resolvedIcon }) : null, _jsxs(Box, { sx: { minWidth: 0 }, children: [_jsx(Typography, { variant: "h4", sx: { fontWeight: 700, lineHeight: 1.15 }, children: resolvedTitle }), resolvedSubtitle ? (_jsx(Typography, { variant: "h6", sx: (theme) => ({
|
|
143
|
+
mt: 0.4,
|
|
144
|
+
fontWeight: 600,
|
|
145
|
+
lineHeight: 1.2,
|
|
146
|
+
color: theme.palette.mode === 'dark'
|
|
147
|
+
? alpha(theme.palette.common.white, 0.9)
|
|
148
|
+
: theme.palette.primary.dark
|
|
149
|
+
}), children: resolvedSubtitle })) : null] })] }), _jsx(Box, { sx: {
|
|
150
|
+
width: { xs: '100%', sm: 'auto' },
|
|
151
|
+
display: 'flex',
|
|
152
|
+
justifySelf: { sm: 'end' },
|
|
153
|
+
justifyContent: { xs: 'flex-start', sm: 'flex-end' },
|
|
154
|
+
...animateFromRightSx(animationStaggerMs * 4)
|
|
155
|
+
}, children: resolvedRightContent })] })] }));
|
|
156
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JBFormContentSkeleton.d.ts","sourceRoot":"","sources":["../../../src/core/skeletons/JBFormContentSkeleton.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,2CA8BtE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Skeleton } from '@mui/material';
|
|
3
|
+
export function JBFormContentSkeleton(props) {
|
|
4
|
+
const { fieldCount = 4 } = props;
|
|
5
|
+
const fields = Array.from({ length: fieldCount });
|
|
6
|
+
return (_jsx(Box, { sx: {
|
|
7
|
+
width: '100%',
|
|
8
|
+
display: 'flex',
|
|
9
|
+
flexDirection: 'column',
|
|
10
|
+
gap: 3
|
|
11
|
+
}, children: fields.map((_, index) => (_jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', gap: 1 }, children: [_jsx(Skeleton, { variant: "text", width: 140, height: 24 }), _jsx(Skeleton, { variant: "rounded", width: "100%", height: 44 })] }, index))) }));
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type JBFormHeaderSkeletonProps = {
|
|
2
|
+
showBackLink?: boolean;
|
|
3
|
+
showActions?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare function JBFormHeaderSkeleton(props: JBFormHeaderSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=JBFormHeaderSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JBFormHeaderSkeleton.d.ts","sourceRoot":"","sources":["../../../src/core/skeletons/JBFormHeaderSkeleton.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,yBAAyB,GAAG;IACtC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CAwEpE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Skeleton } from '@mui/material';
|
|
3
|
+
export function JBFormHeaderSkeleton(props) {
|
|
4
|
+
const { showBackLink = true, showActions = true } = props;
|
|
5
|
+
return (_jsxs(Box, { sx: {
|
|
6
|
+
width: '100%',
|
|
7
|
+
display: 'flex',
|
|
8
|
+
flexDirection: 'column',
|
|
9
|
+
gap: 2,
|
|
10
|
+
p: { xs: 2, sm: 3 }
|
|
11
|
+
}, children: [_jsx(Skeleton, { variant: "rounded", width: 300, height: 28 }), showBackLink ? (_jsx(Skeleton, { variant: "text", width: 170, height: 30 })) : null, _jsxs(Box, { sx: {
|
|
12
|
+
display: { xs: 'flex', sm: 'grid' },
|
|
13
|
+
flexDirection: { xs: 'column', sm: 'row' },
|
|
14
|
+
gridTemplateColumns: { sm: 'minmax(0, 1fr) auto' },
|
|
15
|
+
alignItems: { xs: 'stretch', sm: 'center' },
|
|
16
|
+
width: '100%',
|
|
17
|
+
gap: 2
|
|
18
|
+
}, children: [_jsxs(Box, { sx: { display: 'flex', alignItems: 'center', gap: 1.25, minWidth: 0 }, children: [_jsx(Skeleton, { variant: "circular", width: 30, height: 30 }), _jsxs(Box, { sx: { minWidth: 0 }, children: [_jsx(Skeleton, { variant: "text", width: 280, height: 52 }), _jsx(Skeleton, { variant: "text", width: 240, height: 30 })] })] }), showActions ? (_jsxs(Box, { sx: { display: 'flex', gap: 1, justifySelf: { sm: 'end' } }, children: [_jsx(Skeleton, { variant: "rounded", width: 116, height: 42 }), _jsx(Skeleton, { variant: "rounded", width: 116, height: 42 })] })) : null] })] }));
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/skeletons/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
package/dist/forms/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/forms/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,KAAG,MAA2C,CAAC;AAE/F,eAAO,MAAM,uBAAuB,GAAI,OAAO,MAAM,EAAE,sBAAiB,KAAG,CAAC,CAAC,SAQ5E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const normalizeTextInput = (value) => value.trim().replace(/\s+/g, ' ');
|
|
3
|
+
export const buildRequiredTextSchema = (label, minimumLength = 1) => {
|
|
4
|
+
const field = z.string().trim().min(1, `${label} es obligatorio`);
|
|
5
|
+
if (minimumLength <= 1) {
|
|
6
|
+
return field;
|
|
7
|
+
}
|
|
8
|
+
return field.min(minimumLength, `${label} debe tener al menos ${minimumLength} caracteres`);
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JBFormHeader.d.ts","sourceRoot":"","sources":["../../src/grid/JBFormHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { JBFormHeader } from '../core/layout/JBFormHeader';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JBGrid.d.ts","sourceRoot":"","sources":["../../src/grid/JBGrid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JBGrid.d.ts","sourceRoot":"","sources":["../../src/grid/JBGrid.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,wBAAgB,MAAM,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,2CAmetF"}
|