@oneplatformdev/utils 0.1.1-8 → 0.1.1-81

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 (30) hide show
  1. package/CHANGELOG.md +207 -0
  2. package/{dist/index.d.ts → index.d.ts} +1 -0
  3. package/{dist/index.d.ts.map → index.d.ts.map} +1 -1
  4. package/index.js +8 -0
  5. package/isValidReactElement/index.d.ts +2 -0
  6. package/isValidReactElement/index.d.ts.map +1 -0
  7. package/isValidReactElement/index.js +5 -0
  8. package/isValidReactElement/isValidReactElement.d.ts +18 -0
  9. package/isValidReactElement/isValidReactElement.d.ts.map +1 -0
  10. package/isValidReactElement/isValidReactElement.js +8 -0
  11. package/package.json +23 -21
  12. package/dist/index.js +0 -6
  13. /package/{dist/cn → cn}/cn.d.ts +0 -0
  14. /package/{dist/cn → cn}/cn.d.ts.map +0 -0
  15. /package/{dist/cn → cn}/cn.js +0 -0
  16. /package/{dist/cn → cn}/index.d.ts +0 -0
  17. /package/{dist/cn → cn}/index.d.ts.map +0 -0
  18. /package/{dist/cn → cn}/index.js +0 -0
  19. /package/{dist/composeRefs → composeRefs}/composeRefs.d.ts +0 -0
  20. /package/{dist/composeRefs → composeRefs}/composeRefs.d.ts.map +0 -0
  21. /package/{dist/composeRefs → composeRefs}/composeRefs.js +0 -0
  22. /package/{dist/composeRefs → composeRefs}/index.d.ts +0 -0
  23. /package/{dist/composeRefs → composeRefs}/index.d.ts.map +0 -0
  24. /package/{dist/composeRefs → composeRefs}/index.js +0 -0
  25. /package/{dist/types → types}/PartialOne.d.ts +0 -0
  26. /package/{dist/types → types}/PartialOne.d.ts.map +0 -0
  27. /package/{dist/types → types}/PartialOne.js +0 -0
  28. /package/{dist/types → types}/index.d.ts +0 -0
  29. /package/{dist/types → types}/index.d.ts.map +0 -0
  30. /package/{dist/types → types}/index.js +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,207 @@
1
+ ## 0.1.1-81 (2025-09-16)
2
+
3
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
4
+
5
+ ## 0.1.1-80 (2025-09-16)
6
+
7
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
8
+
9
+ ## 0.1.1-79 (2025-09-16)
10
+
11
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
12
+
13
+ ## 0.1.1-78 (2025-09-16)
14
+
15
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
16
+
17
+ ## 0.1.1-77 (2025-09-16)
18
+
19
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
20
+
21
+ ## 0.1.1-76 (2025-09-16)
22
+
23
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
24
+
25
+ ## 0.1.1-75 (2025-09-16)
26
+
27
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
28
+
29
+ ## 0.1.1-74 (2025-09-16)
30
+
31
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
32
+
33
+ ## 0.1.1-73 (2025-09-16)
34
+
35
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
36
+
37
+ ## 0.1.1-72 (2025-09-16)
38
+
39
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
40
+
41
+ ## 0.1.1-71 (2025-09-16)
42
+
43
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
44
+
45
+ ## 0.1.1-70 (2025-09-16)
46
+
47
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
48
+
49
+ ## 0.1.1-69 (2025-09-16)
50
+
51
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
52
+
53
+ ## 0.1.1-68 (2025-09-16)
54
+
55
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
56
+
57
+ ## 0.1.1-67 (2025-09-16)
58
+
59
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
60
+
61
+ ## 0.1.1-66 (2025-09-16)
62
+
63
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
64
+
65
+ ## 0.1.1-65 (2025-09-16)
66
+
67
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
68
+
69
+ ## 0.1.1-64 (2025-09-15)
70
+
71
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
72
+
73
+ ## 0.1.1-63 (2025-09-15)
74
+
75
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
76
+
77
+ ## 0.1.1-62 (2025-09-15)
78
+
79
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
80
+
81
+ ## 0.1.1-61 (2025-09-15)
82
+
83
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
84
+
85
+ ## 0.1.1-60 (2025-09-15)
86
+
87
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
88
+
89
+ ## 0.1.1-59 (2025-09-15)
90
+
91
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
92
+
93
+ ## 0.1.1-58 (2025-09-15)
94
+
95
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
96
+
97
+ ## 0.1.1-57 (2025-09-15)
98
+
99
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
100
+
101
+ ## 0.1.1-56 (2025-09-15)
102
+
103
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
104
+
105
+ ## 0.1.1-55 (2025-09-15)
106
+
107
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
108
+
109
+ ## 0.1.1-54 (2025-09-15)
110
+
111
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
112
+
113
+ ## 0.1.1-53 (2025-09-15)
114
+
115
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
116
+
117
+ ## 0.1.1-52 (2025-09-15)
118
+
119
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
120
+
121
+ ## 0.1.1-51 (2025-09-15)
122
+
123
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
124
+
125
+ ## 0.1.1-50 (2025-09-15)
126
+
127
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
128
+
129
+ ## 0.1.1-49 (2025-09-15)
130
+
131
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
132
+
133
+ ## 0.1.1-48 (2025-09-15)
134
+
135
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
136
+
137
+ ## 0.1.1-47 (2025-09-15)
138
+
139
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
140
+
141
+ ## 0.1.1-46 (2025-09-15)
142
+
143
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
144
+
145
+ ## 0.1.1-45 (2025-09-15)
146
+
147
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
148
+
149
+ ## 0.1.1-44 (2025-09-15)
150
+
151
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
152
+
153
+ ## 0.1.1-43 (2025-09-15)
154
+
155
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
156
+
157
+ ## 0.1.1-41 (2025-09-15)
158
+
159
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
160
+
161
+ ## 0.1.1-40 (2025-09-15)
162
+
163
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
164
+
165
+ ## 0.1.1-39 (2025-09-15)
166
+
167
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
168
+
169
+ ## 0.1.1-38 (2025-09-15)
170
+
171
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
172
+
173
+ ## 0.1.1-37 (2025-09-15)
174
+
175
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
176
+
177
+ ## 0.1.1-36 (2025-09-15)
178
+
179
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
180
+
181
+ ## 0.1.1-35 (2025-09-11)
182
+
183
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
184
+
185
+ ## 0.1.1-34 (2025-09-11)
186
+
187
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
188
+
189
+ ## 0.1.1-32 (2025-09-11)
190
+
191
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
192
+
193
+ ## 0.1.1-28 (2025-09-11)
194
+
195
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
196
+
197
+ ## 0.1.1-27 (2025-09-11)
198
+
199
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
200
+
201
+ ## 0.1.1-26 (2025-09-11)
202
+
203
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
204
+
205
+ ## 0.1.1-25 (2025-09-11)
206
+
207
+ This was a version bump only for @oneplatformdev/utils to align it with other projects, there were no code changes.
@@ -1,4 +1,5 @@
1
1
  export * from './cn';
2
2
  export * from './composeRefs';
3
+ export * from './isValidReactElement';
3
4
  export type * from './types';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,eAAe,CAAC;AAC9B,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,mBAAmB,SAAS,CAAC"}
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { cn as r } from "./cn/cn.js";
2
+ import { composeRefs as t } from "./composeRefs/composeRefs.js";
3
+ import { isValidReactElement as p } from "./isValidReactElement/isValidReactElement.js";
4
+ export {
5
+ r as cn,
6
+ t as composeRefs,
7
+ p as isValidReactElement
8
+ };
@@ -0,0 +1,2 @@
1
+ export { isValidReactElement as default, isValidReactElement } from './isValidReactElement';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/isValidReactElement/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,IAAI,OAAO,EAAE,mBAAmB,EAAC,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { isValidReactElement as t, isValidReactElement as l } from "./isValidReactElement.js";
2
+ export {
3
+ t as default,
4
+ l as isValidReactElement
5
+ };
@@ -0,0 +1,18 @@
1
+ import { JSXElementConstructor, ReactNode } from 'react';
2
+ /**
3
+ * Is Valid React Element.
4
+ *
5
+ * Where {@link ReactNode} represents everything that can be rendered, `ReactElement`
6
+ * only represents JSX.
7
+ * @returns boolean - value is valid react element or not
8
+ * @template Type The type of the component or tag
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * const isValid = isValidReactElement(targetElement);
13
+ * const isValidDiv = isValidReactElement(targetElement, 'div');
14
+ * const isValidButton = isValidReactElement(targetElement, Button);
15
+ * ```
16
+ */
17
+ export declare const isValidReactElement: <Type extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>>(element: ReactNode, type?: Type) => boolean;
18
+ //# sourceMappingURL=isValidReactElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isValidReactElement.d.ts","sourceRoot":"","sources":["../../src/isValidReactElement/isValidReactElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,qBAAqB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,GAAI,IAAI,SAAS,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,EACxH,SAAS,SAAS,EAClB,OAAO,IAAI,KACV,OAIF,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { isValidElement as e } from "react";
2
+ const o = (i, t) => {
3
+ const r = e(i);
4
+ return t ? r && i.type === t : r;
5
+ };
6
+ export {
7
+ o as isValidReactElement
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneplatformdev/utils",
3
- "version": "0.1.1-8",
3
+ "version": "0.1.1-81",
4
4
  "description": "Utility functions for React components.",
5
5
  "author": "One Platform Development Team",
6
6
  "keywords": [
@@ -18,38 +18,40 @@
18
18
  "url": "https://github.com/oneplatformdev/core/issues"
19
19
  },
20
20
  "homepage": "private package",
21
+ "private": false,
21
22
  "license": "MIT",
22
23
  "type": "module",
23
- "main": "./dist/index.js",
24
- "module": "./dist/index.js",
25
- "types": "./dist/index.d.ts",
26
- "exports": {
27
- "./package.json": "./package.json",
28
- ".": {
29
- "@oneplatformdev/source": "./src/index.ts",
30
- "types": "./dist/index.d.ts",
31
- "import": "./dist/index.js",
32
- "default": "./dist/index.js"
33
- },
34
- "./*": {
35
- "types": "./dist/*.d.ts",
36
- "import": "./dist/*.js",
37
- "default": "./dist/*.js"
38
- }
24
+ "main": "./index.js",
25
+ "module": "./index.js",
26
+ "types": "./index.d.ts",
27
+ "publishConfig": {
28
+ "directory": "dist"
39
29
  },
40
30
  "files": [
31
+ "**/*",
41
32
  "dist",
42
33
  "!**/*.tsbuildinfo"
43
34
  ],
44
35
  "dependencies": {
45
- "clsx": "^2.1.0",
46
- "tailwind-merge": "^2.5.0"
36
+ "class-variance-authority": "^0.7.1",
37
+ "clsx": "^2.1.1",
38
+ "tailwind-merge": "^3.3.1"
47
39
  },
48
40
  "peerDependencies": {
49
- "react": ">=18"
41
+ "react": "^19.0.0",
42
+ "react-dom": "^19.0.0"
43
+ },
44
+ "devDependencies": {
45
+ "react": "19.1.1",
46
+ "react-dom": "19.1.1",
47
+ "@types/react": "19.x",
48
+ "@types/react-dom": "19.x"
50
49
  },
51
50
  "peerDependenciesMeta": {
52
- "react": {
51
+ "@types/react": {
52
+ "optional": true
53
+ },
54
+ "@types/react-dom": {
53
55
  "optional": true
54
56
  }
55
57
  }
package/dist/index.js DELETED
@@ -1,6 +0,0 @@
1
- import { cn as r } from "./cn/cn.js";
2
- import { composeRefs as m } from "./composeRefs/composeRefs.js";
3
- export {
4
- r as cn,
5
- m as composeRefs
6
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes