@axenstudio/axen-form 0.1.5 → 0.1.7
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/react/AxenForm.cjs
CHANGED
|
@@ -31,6 +31,7 @@ function AxenFormInner(props, ref) {
|
|
|
31
31
|
validateOnBlur,
|
|
32
32
|
children
|
|
33
33
|
} = props;
|
|
34
|
+
const appliedTheme = theme ?? "default";
|
|
34
35
|
const mergedComponents = react.useMemo(
|
|
35
36
|
() => ({ ...defaultComponentMap.defaultComponentMap, ...components }),
|
|
36
37
|
[components]
|
|
@@ -80,7 +81,7 @@ function AxenFormInner(props, ref) {
|
|
|
80
81
|
onSubmit: formApi.handleSubmit,
|
|
81
82
|
className,
|
|
82
83
|
noValidate: true,
|
|
83
|
-
|
|
84
|
+
"data-axen-theme": appliedTheme,
|
|
84
85
|
children: [
|
|
85
86
|
/* @__PURE__ */ jsxRuntime.jsx("div", { style: gridStyle, children: config.fields.map((item) => {
|
|
86
87
|
if (types.isFieldGroup(item)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AxenForm.d.ts","sourceRoot":"","sources":["../../src/react/AxenForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAKf,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EAIZ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"AxenForm.d.ts","sourceRoot":"","sources":["../../src/react/AxenForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAKf,OAAO,qBAAqB,CAAC;AAC7B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EAIZ,MAAM,UAAU,CAAC;AAsHlB,eAAO,MAAM,QAAQ,EAAgC,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3F,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAC;IAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;CAAE,KACnF,SAAS,CAAC"}
|
package/dist/react/AxenForm.js
CHANGED
|
@@ -29,6 +29,7 @@ function AxenFormInner(props, ref) {
|
|
|
29
29
|
validateOnBlur,
|
|
30
30
|
children
|
|
31
31
|
} = props;
|
|
32
|
+
const appliedTheme = theme ?? "default";
|
|
32
33
|
const mergedComponents = useMemo(
|
|
33
34
|
() => ({ ...defaultComponentMap, ...components }),
|
|
34
35
|
[components]
|
|
@@ -78,7 +79,7 @@ function AxenFormInner(props, ref) {
|
|
|
78
79
|
onSubmit: formApi.handleSubmit,
|
|
79
80
|
className,
|
|
80
81
|
noValidate: true,
|
|
81
|
-
|
|
82
|
+
"data-axen-theme": appliedTheme,
|
|
82
83
|
children: [
|
|
83
84
|
/* @__PURE__ */ jsx("div", { style: gridStyle, children: config.fields.map((item) => {
|
|
84
85
|
if (isFieldGroup(item)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axenstudio/axen-form",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Lightweight, config-driven, enterprise-grade React form library. Zero UI dependency. CSS Modules. A11y-aware.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"require": "./dist/index.cjs"
|
|
14
14
|
},
|
|
15
15
|
"./tokens": "./dist/tokens/tokens.css",
|
|
16
|
+
"./themes": "./dist/tokens/themes.css",
|
|
16
17
|
"./reset": "./dist/tokens/reset.css",
|
|
17
18
|
"./adapters/yup": {
|
|
18
19
|
"types": "./dist/adapters/yupAdapter.d.ts",
|