@code0-tech/pictor 0.7.2 → 0.9.0

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 (37) hide show
  1. package/dist/assets/components/form/FileInput.style.css +1 -0
  2. package/dist/assets/components/progress/Progress.style.css +1 -0
  3. package/dist/components/breadcrumb/Breadcrumb.js +7 -7
  4. package/dist/components/button/Button.js +11 -11
  5. package/dist/components/command/Command.js +19 -17
  6. package/dist/components/data-table/DataTable.js +15 -15
  7. package/dist/components/data-table/DataTableFilterSuggestionMenu.js +15 -15
  8. package/dist/components/editor/Editor.js +13 -13
  9. package/dist/components/form/CheckboxInput.js +4 -4
  10. package/dist/components/form/EmailInput.js +9 -9
  11. package/dist/components/form/FileInput.d.ts +32 -0
  12. package/dist/components/form/FileInput.js +124 -0
  13. package/dist/components/form/InputContentEditable.hook.js +11 -11
  14. package/dist/components/form/InputWrapper.js +15 -15
  15. package/dist/components/form/NumberInput.js +9 -9
  16. package/dist/components/form/PasswordInput.js +4 -4
  17. package/dist/components/form/SwitchInput.js +7 -7
  18. package/dist/components/form/TextAreaInput.js +6 -6
  19. package/dist/components/form/TextInput.js +6 -6
  20. package/dist/components/form/index.d.ts +1 -0
  21. package/dist/components/form/index.js +58 -45
  22. package/dist/components/form/useForm.js +2 -2
  23. package/dist/components/fullscreen/FullScreen.js +2 -2
  24. package/dist/components/gantt/GanttGroup.js +17 -17
  25. package/dist/components/progress/Progress.d.ts +8 -0
  26. package/dist/components/progress/Progress.js +42 -0
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.js +180 -165
  29. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +25 -0
  30. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +81 -0
  31. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.js +55 -0
  32. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  33. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-slot/dist/index.js +58 -0
  34. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  35. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  36. package/dist/utils/reactiveArrayService.js +4 -4
  37. package/package.json +12 -7
@@ -1,7 +1,7 @@
1
1
  import { __exports as e } from "../../../_virtual/react-compiler-runtime.development.js";
2
2
  import a from "react";
3
3
  var n;
4
- function s() {
4
+ function l() {
5
5
  return n ? e : (n = 1, process.env.NODE_ENV !== "production" && (function() {
6
6
  var t = a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
7
7
  e.c = function(r) {
@@ -17,5 +17,5 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
17
17
  })(), e);
18
18
  }
19
19
  export {
20
- s as __require
20
+ l as __require
21
21
  };
@@ -1,14 +1,14 @@
1
- import { __exports as r } from "../../../_virtual/react-compiler-runtime.production.js";
1
+ import { __exports as e } from "../../../_virtual/react-compiler-runtime.production.js";
2
2
  import o from "react";
3
- var e;
4
- function u() {
5
- if (e) return r;
6
- e = 1;
3
+ var r;
4
+ function n() {
5
+ if (r) return e;
6
+ r = 1;
7
7
  var t = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
8
- return r.c = function(_) {
8
+ return e.c = function(_) {
9
9
  return t.H.useMemoCache(_);
10
- }, r;
10
+ }, e;
11
11
  }
12
12
  export {
13
- u as __require
13
+ n as __require
14
14
  };
@@ -1,5 +1,5 @@
1
1
  import a from "react";
2
- import { View as d } from "./view.js";
2
+ import { View as v } from "./view.js";
3
3
  function h(t, e, r) {
4
4
  return (e = p(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
5
5
  }
@@ -60,14 +60,14 @@ function w(t, e = []) {
60
60
  }, l = {
61
61
  construct: () => l
62
62
  };
63
- return ((v) => {
63
+ return ((d) => {
64
64
  try {
65
- return !!new new Proxy(v, l)();
65
+ return !!new new Proxy(d, l)();
66
66
  } catch {
67
67
  return !1;
68
68
  }
69
69
  })(t) ? new t(n) : t(n);
70
- }, [t, o]), u = a.useCallback((n) => new d(n), []), f = a.useRef(!1);
70
+ }, [t, o]), u = a.useCallback((n) => new v(n), []), f = a.useRef(!1);
71
71
  return a.useEffect(() => {
72
72
  f.current || (f.current = !0, i.clear(), e.forEach((n) => {
73
73
  i.add(u(n));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/pictor",
3
- "version": "0.7.2",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "scripts": {
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "author": "CodeZero",
19
19
  "devDependencies": {
20
+ "@ark-ui/react": "^5.36.2",
20
21
  "@babel/plugin-proposal-decorators": "^7.29.0",
21
22
  "@babel/plugin-transform-class-properties": "^7.28.6",
22
23
  "@codemirror/autocomplete": "^6.20.1",
@@ -26,7 +27,7 @@
26
27
  "@codemirror/state": "^6.6.0",
27
28
  "@codemirror/view": "^6.41.0",
28
29
  "@dagrejs/dagre": "^2.0.4",
29
- "@lezer/common": "^1.5.1",
30
+ "@lezer/common": "^1.5.2",
30
31
  "@mdx-js/react": "^3.1.1",
31
32
  "@radix-ui/react-checkbox": "^1.3.3",
32
33
  "@radix-ui/react-context-menu": "^2.2.16",
@@ -36,6 +37,7 @@
36
37
  "@radix-ui/react-one-time-password-field": "^0.1.8",
37
38
  "@radix-ui/react-radio-group": "^1.3.8",
38
39
  "@radix-ui/react-scroll-area": "^1.2.10",
40
+ "@radix-ui/react-select": "^2.2.6",
39
41
  "@radix-ui/react-tabs": "^1.1.13",
40
42
  "@radix-ui/react-toggle-group": "^1.1.11",
41
43
  "@radix-ui/react-tooltip": "^1.2.8",
@@ -69,7 +71,7 @@
69
71
  "cmdk": "^1.1.1",
70
72
  "concurrently": "^9.2.1",
71
73
  "css-loader": "^7.1.4",
72
- "html-webpack-plugin": "^5.6.6",
74
+ "html-webpack-plugin": "^5.6.7",
73
75
  "identity-obj-proxy": "^3.0.0",
74
76
  "jest-image-snapshot": "^6.5.2",
75
77
  "js-md5": "^0.8.3",
@@ -91,8 +93,7 @@
91
93
  "vite": "^7.3.1",
92
94
  "vite-plugin-dts": "^4.5.4",
93
95
  "vite-plugin-lib-inject-css": "^2.2.2",
94
- "vitest": "^4.1.2",
95
- "@radix-ui/react-select": "^2.2.6"
96
+ "vitest": "^4.1.2"
96
97
  },
97
98
  "main": "dist/index.js",
98
99
  "repository": {
@@ -104,6 +105,7 @@
104
105
  ],
105
106
  "types": "dist/index.d.ts",
106
107
  "peerDependencies": {
108
+ "@ark-ui/react": "^5.36.2",
107
109
  "@codemirror/autocomplete": "^6.20.0",
108
110
  "@codemirror/lang-json": "^6.0.2",
109
111
  "@codemirror/language": "^6.12.1",
@@ -118,6 +120,7 @@
118
120
  "@radix-ui/react-one-time-password-field": "^0.1.8",
119
121
  "@radix-ui/react-radio-group": "^1.3.8",
120
122
  "@radix-ui/react-scroll-area": "^1.2.10",
123
+ "@radix-ui/react-select": "^2.2.6",
121
124
  "@radix-ui/react-tabs": "^1.1.13",
122
125
  "@radix-ui/react-toggle-group": "^1.1.11",
123
126
  "@radix-ui/react-tooltip": "^1.2.8",
@@ -133,10 +136,12 @@
133
136
  "react-dom": "^18.0.0 || ^19.0.0",
134
137
  "react-resizable-panels": "^4.3.1",
135
138
  "react-zoom-pan-pinch": "^3.7.0",
136
- "sonner": "^2.0.7",
137
- "@radix-ui/react-select": "^2.2.6"
139
+ "sonner": "^2.0.7"
138
140
  },
139
141
  "publishConfig": {
140
142
  "access": "public"
143
+ },
144
+ "dependencies": {
145
+ "@radix-ui/react-progress": "^1.1.8"
141
146
  }
142
147
  }