finform-react-builder 1.12.4 → 1.12.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/index.es.js +4826 -4711
- package/dist/index.js +45 -45
- package/dist/theme/finflowFrontendMirrorTheme.d.ts +16 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/palette.d.ts +13 -0
- package/dist/theme/useFinInputTokens.d.ts +17 -0
- package/package.json +2 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default brand primary when finflow-frontend resolves `getCompanyTheme("finflow")` —
|
|
3
|
+
* `THEMES.finflow` is undefined, so it falls back to DEFAULT_TOKENS.
|
|
4
|
+
* @see finflow-frontend/src/shared/theme/companyThemes.ts
|
|
5
|
+
*/
|
|
6
|
+
export declare const FINFLOW_FRONTEND_DEFAULT_PRIMARY = "#244061";
|
|
7
|
+
/**
|
|
8
|
+
* Light-mode MUI theme aligned with finflow-frontend’s default `ThemeProvider` + Redux
|
|
9
|
+
* initial state (`themeSlice` + `companyThemes` fallback), so finform `npm run dev`
|
|
10
|
+
* matches the app for visual QA.
|
|
11
|
+
*
|
|
12
|
+
* Not used by the published library — demo / dev only.
|
|
13
|
+
*
|
|
14
|
+
* @see finflow-frontend/src/components/common/ThemeProvider.tsx
|
|
15
|
+
*/
|
|
16
|
+
export declare function createFinflowFrontendMirrorTheme(): import('@mui/material').Theme;
|
package/dist/theme/index.d.ts
CHANGED
package/dist/theme/palette.d.ts
CHANGED
|
@@ -67,6 +67,19 @@ export declare const neutral: {
|
|
|
67
67
|
readonly 800: string;
|
|
68
68
|
readonly 900: string;
|
|
69
69
|
};
|
|
70
|
+
/** Neutral 50–900 from a base (e.g. `theme.palette.text.primary`) for outlined inputs. */
|
|
71
|
+
export declare const createNeutralToneScale: (base: string) => {
|
|
72
|
+
readonly 50: string;
|
|
73
|
+
readonly 100: string;
|
|
74
|
+
readonly 200: string;
|
|
75
|
+
readonly 300: string;
|
|
76
|
+
readonly 400: string;
|
|
77
|
+
readonly 500: string;
|
|
78
|
+
readonly 600: string;
|
|
79
|
+
readonly 700: string;
|
|
80
|
+
readonly 800: string;
|
|
81
|
+
readonly 900: string;
|
|
82
|
+
};
|
|
70
83
|
export declare const brand: {
|
|
71
84
|
primary: string;
|
|
72
85
|
secondary: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface FinInputTokens {
|
|
2
|
+
paper: string;
|
|
3
|
+
divider: string;
|
|
4
|
+
textPrimary: string;
|
|
5
|
+
textSecondary: string;
|
|
6
|
+
errorMain: string;
|
|
7
|
+
neutral50: string;
|
|
8
|
+
/** Resting outline: hover-tone neutral[300] at 50% opacity (matches Finflow spec). */
|
|
9
|
+
outlineDefault: string;
|
|
10
|
+
outlineHover: string;
|
|
11
|
+
outlineFocus: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* MUI-theme-driven colors for Fin outlined fields so host apps control palette via ThemeProvider
|
|
15
|
+
* (no hardcoded finflowPalette / GlobalStyles overrides needed).
|
|
16
|
+
*/
|
|
17
|
+
export declare function useFinInputTokens(): FinInputTokens;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "finform-react-builder",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.6",
|
|
4
4
|
"description": "A powerful, flexible React form builder with dynamic field rendering, custom validation, multi-step forms, Material-UI integration, image component support, toggle/radio buttons, switches, autocomplete, and advanced button positioning",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"build:types": "tsc --project tsconfig.build.json",
|
|
56
56
|
"preview": "vite preview",
|
|
57
57
|
"prepublishOnly": "npm run build:lib",
|
|
58
|
+
"publish:npm": "bash scripts/publish-npm.sh",
|
|
58
59
|
"check-package": "npm view finform-react-builder",
|
|
59
60
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
60
61
|
"test:build": "npm run build && npm pack",
|