@particle-network/ui-shared 0.4.1-beta.6 → 0.4.1-beta.7

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.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from './size';
5
5
  export * from './spacing';
6
6
  export * from './tailwind-color';
7
7
  export * from './theme-data';
8
+ export * from './utils';
package/dist/index.js CHANGED
@@ -5,3 +5,4 @@ export * from "./size.js";
5
5
  export * from "./spacing.js";
6
6
  export * from "./tailwind-color.js";
7
7
  export * from "./theme-data.js";
8
+ export * from "./utils.js";
@@ -0,0 +1,4 @@
1
+ export declare function objectEntries<T extends object>(obj: T): [keyof T & string, T[keyof T & string]][];
2
+ export declare function objectKeys<T extends object>(obj: T): (keyof T & string)[];
3
+ export declare function objectValues<T extends object>(obj: T): T[keyof T & string][];
4
+ export declare function objectFromEntries<T extends object>(entries: [keyof T & string, T[keyof T & string]][]): T;
package/dist/utils.js ADDED
@@ -0,0 +1,13 @@
1
+ function objectEntries(obj) {
2
+ return Object.entries(obj);
3
+ }
4
+ function objectKeys(obj) {
5
+ return Object.keys(obj);
6
+ }
7
+ function objectValues(obj) {
8
+ return Object.values(obj);
9
+ }
10
+ function objectFromEntries(entries) {
11
+ return Object.fromEntries(entries);
12
+ }
13
+ export { objectEntries, objectFromEntries, objectKeys, objectValues };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-network/ui-shared",
3
- "version": "0.4.1-beta.6",
3
+ "version": "0.4.1-beta.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "react-native": "./dist/index.js",
@@ -44,8 +44,8 @@
44
44
  "@rsbuild/plugin-react": "^1.3.5",
45
45
  "@rslib/core": "^0.12.3",
46
46
  "@types/react": "^19.1.10",
47
- "@particle-network/lintstaged-config": "0.1.0",
48
- "@particle-network/eslint-config": "0.3.0"
47
+ "@particle-network/eslint-config": "0.3.0",
48
+ "@particle-network/lintstaged-config": "0.1.0"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "rslib build",