@1money/component-ui 0.0.77 → 0.0.78

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.
Files changed (45) hide show
  1. package/es/components/Dialog/Dialog.js +11 -3
  2. package/es/components/Dialog/interface.d.ts +1 -0
  3. package/es/components/Grid/Col.js +60 -4
  4. package/es/components/Grid/Grid.d.ts +4 -1
  5. package/es/components/Grid/Grid.js +5 -4
  6. package/es/components/Grid/Row.js +7 -5
  7. package/es/components/Grid/constants.d.ts +5 -3
  8. package/es/components/Grid/constants.js +13 -4
  9. package/es/components/Grid/helper.d.ts +8 -6
  10. package/es/components/Grid/helper.js +63 -15
  11. package/es/components/Grid/interface.d.ts +2 -1
  12. package/es/components/Grid/style/Grid.css +240 -196
  13. package/es/components/ProForm/ProForm.js +3 -3
  14. package/es/components/ProForm/constants.d.ts +1 -1
  15. package/es/components/ProForm/constants.js +5 -2
  16. package/es/components/ProForm/core/devWarning.d.ts +1 -3
  17. package/es/components/ProForm/core/devWarning.js +5 -15
  18. package/es/components/ProForm/layouts/DialogForm.js +2 -4
  19. package/es/index.css +1 -1
  20. package/es/utils/devWarn.d.ts +4 -0
  21. package/es/utils/devWarn.js +23 -0
  22. package/lib/components/Dialog/Dialog.js +11 -3
  23. package/lib/components/Dialog/interface.d.ts +1 -0
  24. package/lib/components/Grid/Col.js +59 -3
  25. package/lib/components/Grid/Grid.d.ts +4 -1
  26. package/lib/components/Grid/Grid.js +5 -4
  27. package/lib/components/Grid/Row.js +6 -4
  28. package/lib/components/Grid/constants.d.ts +5 -3
  29. package/lib/components/Grid/constants.js +14 -5
  30. package/lib/components/Grid/helper.d.ts +8 -6
  31. package/lib/components/Grid/helper.js +63 -15
  32. package/lib/components/Grid/interface.d.ts +2 -1
  33. package/lib/components/Grid/style/Grid.css +240 -196
  34. package/lib/components/ProForm/ProForm.js +2 -2
  35. package/lib/components/ProForm/constants.d.ts +1 -1
  36. package/lib/components/ProForm/constants.js +5 -2
  37. package/lib/components/ProForm/core/devWarning.d.ts +1 -3
  38. package/lib/components/ProForm/core/devWarning.js +23 -24
  39. package/lib/components/ProForm/layouts/DialogForm.js +2 -4
  40. package/lib/index.css +1 -1
  41. package/lib/utils/devWarn.d.ts +4 -0
  42. package/lib/utils/devWarn.js +31 -0
  43. package/package.json +1 -1
  44. package/scripts/mcp-server/examples.generated.json +171 -57
  45. package/scripts/mcp-server/index.generated.json +94 -10
@@ -0,0 +1,4 @@
1
+ export declare function isProduction(): boolean;
2
+ /** Warn once per key per page load; no-op in production. */
3
+ export declare function devWarnOnce(key: string, message: string): void;
4
+ export default devWarnOnce;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ exports.devWarnOnce = devWarnOnce;
8
+ exports.isProduction = isProduction;
9
+ // ---------------------------------------------------------------------------
10
+ // Development-only warnings (silent in production builds).
11
+ //
12
+ // Shared, dependency-light helper so any component can surface SILENT misuses
13
+ // that TypeScript cannot (runtime values) or does not (subset semantics) catch
14
+ // at compile time — without each component re-hand-rolling the env guard or
15
+ // re-warning on every render.
16
+ // ---------------------------------------------------------------------------
17
+ var warned = new Set();
18
+ function isProduction() {
19
+ var _a;
20
+ // eslint-disable-next-line no-undef
21
+ return typeof process !== 'undefined' && ((_a = process.env) === null || _a === void 0 ? void 0 : _a.NODE_ENV) === 'production';
22
+ }
23
+ /** Warn once per key per page load; no-op in production. */
24
+ function devWarnOnce(key, message) {
25
+ if (isProduction()) return;
26
+ if (warned.has(key)) return;
27
+ warned.add(key);
28
+ console.warn(message);
29
+ }
30
+ var _default = exports["default"] = devWarnOnce;
31
+ //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy91dGlscy9kZXZXYXJuLnRzIiwidXRpbHMvZGV2V2Fybi5qcyJdLCJuYW1lcyI6WyJ3YXJuZWQiLCJTZX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V2V2Fybk9uY2Uoa2V5LCBtZXNzYWdlKSB7XG4gICAgaWYgKGlzUHJvZHVjdGlvbigpKVxuICAgICAgICByZXR1cm47XG4gICAgaWYgKHdhcm5lZC5oYXMoa2V5KSlcbiAgICAgICAgcmV0dXJuO1xuICAgIHdhcm5lZC5hZGQoa2V5KTtcbiAgICBjb25zb2xlLndhcm4obWVzc2FnZSk7XG59XG5leHBvcnQgZGVmYXVsdCBkZXZXYXJuT25jZTsiXSwic291cmNlUm9vdCI6Ii4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYyJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1money/component-ui",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "description": "React Components based on primereact for 1money front-end projects",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",