@panneau/forms 4.0.38 → 4.0.40-alpha.1

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.js CHANGED
@@ -1,5 +1,4 @@
1
- import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
1
+ import { c } from 'react/compiler-runtime';
3
2
  import { ComponentsProvider, FORMS_NAMESPACE } from '@panneau/core/contexts';
4
3
  import formHorizontal from '@panneau/form-horizontal';
5
4
  import formInline from '@panneau/form-inline';
@@ -27,19 +26,55 @@ var components = /*#__PURE__*/Object.freeze({
27
26
  TwoPane: formTwoPane
28
27
  });
29
28
 
30
- var _excluded = ["components", "children"];
31
- function FormsProvider(_ref) {
32
- var _ref$components = _ref.components,
33
- injectedComponents = _ref$components === void 0 ? null : _ref$components,
34
- _ref$children = _ref.children,
35
- children = _ref$children === void 0 ? null : _ref$children,
36
- props = _objectWithoutProperties(_ref, _excluded);
37
- return /*#__PURE__*/jsx(ComponentsProvider, _objectSpread(_objectSpread({
38
- namespace: FORMS_NAMESPACE,
39
- components: _objectSpread(_objectSpread({}, components), injectedComponents)
40
- }, props), {}, {
41
- children: children
42
- }));
29
+ function FormsProvider(t0) {
30
+ const $ = c(10);
31
+ let props;
32
+ let t1;
33
+ let t2;
34
+ if ($[0] !== t0) {
35
+ ({
36
+ components: t1,
37
+ children: t2,
38
+ ...props
39
+ } = t0);
40
+ $[0] = t0;
41
+ $[1] = props;
42
+ $[2] = t1;
43
+ $[3] = t2;
44
+ } else {
45
+ props = $[1];
46
+ t1 = $[2];
47
+ t2 = $[3];
48
+ }
49
+ const injectedComponents = t1 === undefined ? null : t1;
50
+ const children = t2 === undefined ? null : t2;
51
+ let t3;
52
+ if ($[4] !== injectedComponents) {
53
+ t3 = {
54
+ ...components,
55
+ ...injectedComponents
56
+ };
57
+ $[4] = injectedComponents;
58
+ $[5] = t3;
59
+ } else {
60
+ t3 = $[5];
61
+ }
62
+ let t4;
63
+ if ($[6] !== children || $[7] !== props || $[8] !== t3) {
64
+ t4 = /*#__PURE__*/jsx(ComponentsProvider, {
65
+ namespace: FORMS_NAMESPACE,
66
+ components: t3,
67
+ ...props,
68
+ children: children
69
+ });
70
+ $[6] = children;
71
+ $[7] = props;
72
+ $[8] = t3;
73
+ $[9] = t4;
74
+ } else {
75
+ t4 = $[9];
76
+ }
77
+ return t4;
43
78
  }
44
79
 
45
80
  export { FormsProvider as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/forms",
3
- "version": "4.0.38",
3
+ "version": "4.0.40-alpha.1",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -53,7 +53,7 @@
53
53
  "scripts": {
54
54
  "css": "../../scripts/build-packages-styles.js --pattern='@panneau/form-*' ./src/styles.css.ejs ./assets/css/styles.css",
55
55
  "prepublishOnly": "npm run build",
56
- "build": "../../scripts/prepare-package.sh --types && npm run css"
56
+ "build": "../../scripts/prepare-package.sh --types"
57
57
  },
58
58
  "devDependencies": {
59
59
  "react": "^19.2.0",
@@ -65,15 +65,15 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@babel/runtime": "^7.28.6",
68
- "@panneau/core": "^4.0.38",
69
- "@panneau/form-auth": "^4.0.38",
70
- "@panneau/form-horizontal": "^4.0.38",
71
- "@panneau/form-inline": "^4.0.38",
72
- "@panneau/form-normal": "^4.0.38",
73
- "@panneau/form-two-pane": "^4.0.38"
68
+ "@panneau/core": "^4.0.40-alpha.1",
69
+ "@panneau/form-auth": "^4.0.40-alpha.1",
70
+ "@panneau/form-horizontal": "^4.0.40-alpha.1",
71
+ "@panneau/form-inline": "^4.0.40-alpha.1",
72
+ "@panneau/form-normal": "^4.0.40-alpha.1",
73
+ "@panneau/form-two-pane": "^4.0.40-alpha.1"
74
74
  },
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "fa4b9c4ec7fe5c0e360dda5a40f8b5d8c7ada651"
78
+ "gitHead": "66520f92373b3aa371222b354d60ed3cf3d20c96"
79
79
  }
@@ -1 +0,0 @@
1
-