@panneau/modals 4.0.39 → 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, MODALS_NAMESPACE } from '@panneau/core/contexts';
4
3
  import modalDialog from '@panneau/modal-dialog';
5
4
  import modalUpload from '@panneau/modal-upload';
@@ -19,19 +18,55 @@ var components = /*#__PURE__*/Object.freeze({
19
18
  Upload: modalUpload
20
19
  });
21
20
 
22
- var _excluded = ["components", "children"];
23
- function ModalsProvider(_ref) {
24
- var _ref$components = _ref.components,
25
- injectedComponents = _ref$components === void 0 ? null : _ref$components,
26
- _ref$children = _ref.children,
27
- children = _ref$children === void 0 ? null : _ref$children,
28
- props = _objectWithoutProperties(_ref, _excluded);
29
- return /*#__PURE__*/jsx(ComponentsProvider, _objectSpread(_objectSpread({
30
- namespace: MODALS_NAMESPACE,
31
- components: _objectSpread(_objectSpread({}, components), injectedComponents)
32
- }, props), {}, {
33
- children: children
34
- }));
21
+ function ModalsProvider(t0) {
22
+ const $ = c(10);
23
+ let props;
24
+ let t1;
25
+ let t2;
26
+ if ($[0] !== t0) {
27
+ ({
28
+ components: t1,
29
+ children: t2,
30
+ ...props
31
+ } = t0);
32
+ $[0] = t0;
33
+ $[1] = props;
34
+ $[2] = t1;
35
+ $[3] = t2;
36
+ } else {
37
+ props = $[1];
38
+ t1 = $[2];
39
+ t2 = $[3];
40
+ }
41
+ const injectedComponents = t1 === undefined ? null : t1;
42
+ const children = t2 === undefined ? null : t2;
43
+ let t3;
44
+ if ($[4] !== injectedComponents) {
45
+ t3 = {
46
+ ...components,
47
+ ...injectedComponents
48
+ };
49
+ $[4] = injectedComponents;
50
+ $[5] = t3;
51
+ } else {
52
+ t3 = $[5];
53
+ }
54
+ let t4;
55
+ if ($[6] !== children || $[7] !== props || $[8] !== t3) {
56
+ t4 = /*#__PURE__*/jsx(ComponentsProvider, {
57
+ namespace: MODALS_NAMESPACE,
58
+ components: t3,
59
+ ...props,
60
+ children: children
61
+ });
62
+ $[6] = children;
63
+ $[7] = props;
64
+ $[8] = t3;
65
+ $[9] = t4;
66
+ } else {
67
+ t4 = $[9];
68
+ }
69
+ return t4;
35
70
  }
36
71
 
37
72
  export { ModalsProvider as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/modals",
3
- "version": "4.0.39",
3
+ "version": "4.0.40-alpha.1",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -36,24 +36,19 @@
36
36
  "type": "module",
37
37
  "module": "dist/index.js",
38
38
  "types": "dist/index.d.ts",
39
- "style": "assets/css/styles.css",
40
39
  "exports": {
41
40
  ".": {
42
41
  "types": "./dist/index.d.ts",
43
- "style": "./assets/css/styles.css",
44
42
  "default": "./dist/index.js"
45
- },
46
- "./assets/css/styles": "./assets/css/styles.css",
47
- "./assets/css/styles.css": "./assets/css/styles.css"
43
+ }
48
44
  },
49
45
  "files": [
50
46
  "dist",
51
47
  "assets"
52
48
  ],
53
49
  "scripts": {
54
- "css": "../../scripts/build-packages-styles.js --pattern='@panneau/modal-*' ./src/styles.css.ejs ./assets/css/styles.css",
55
50
  "prepublishOnly": "npm run build",
56
- "build": "../../scripts/prepare-package.sh --types && npm run css"
51
+ "build": "../../scripts/prepare-package.sh --types"
57
52
  },
58
53
  "devDependencies": {
59
54
  "react": "^19.2.0",
@@ -65,19 +60,19 @@
65
60
  },
66
61
  "dependencies": {
67
62
  "@babel/runtime": "^7.28.6",
68
- "@panneau/core": "^4.0.38",
63
+ "@panneau/core": "^4.0.40-alpha.1",
69
64
  "@panneau/element-portal": "^4.0.38",
70
- "@panneau/modal-confirm": "^4.0.39",
71
- "@panneau/modal-dialog": "^4.0.39",
72
- "@panneau/modal-form": "^4.0.39",
73
- "@panneau/modal-resource-form": "^4.0.39",
74
- "@panneau/modal-resource-items": "^4.0.39",
75
- "@panneau/modal-upload": "^4.0.39",
76
- "@panneau/themes": "^4.0.38",
65
+ "@panneau/modal-confirm": "^4.0.40-alpha.1",
66
+ "@panneau/modal-dialog": "^4.0.40-alpha.1",
67
+ "@panneau/modal-form": "^4.0.40-alpha.1",
68
+ "@panneau/modal-resource-form": "^4.0.40-alpha.1",
69
+ "@panneau/modal-resource-items": "^4.0.40-alpha.1",
70
+ "@panneau/modal-upload": "^4.0.40-alpha.1",
71
+ "@panneau/themes": "^4.0.40-alpha.1",
77
72
  "classnames": "^2.5.1"
78
73
  },
79
74
  "publishConfig": {
80
75
  "access": "public"
81
76
  },
82
- "gitHead": "621c5233f083c1ba95cd46cd427c38361723d5d6"
77
+ "gitHead": "66520f92373b3aa371222b354d60ed3cf3d20c96"
83
78
  }
@@ -1,2 +0,0 @@
1
- @import url('@panneau/modal-dialog');
2
-