@mezo-org/mezo-clay 0.1.0-dev.19 → 0.1.0-dev.20
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/components/avatar/avatar.d.ts +22 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/icons/index.d.ts +2 -1
- package/dist/components/icons/musd-circle/index.d.ts +14 -0
- package/dist/components/icons/safe/index.d.ts +9 -0
- package/dist/components/icons/user/index.d.ts +8 -2
- package/dist/components/icons/utils.d.ts +1 -0
- package/dist/mezo-clay.es.js +11393 -11260
- package/dist/mezo-clay.umd.js +25 -25
- package/dist/utils/index.d.ts +3 -1
- package/package.json +17 -18
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { ContextType, ReactElement } from 'react';
|
|
1
|
+
import { ContextType, ReactElement, ReactNode } from 'react';
|
|
2
2
|
export declare function hexToRgba(hex: any, alpha?: any): string;
|
|
3
3
|
export declare function toTitleCase(str?: string): string;
|
|
4
4
|
export declare function checkForContextError(context: ContextType<any>, componentName: string): void;
|
|
5
5
|
export declare function getComponentName(component: ReactElement): string;
|
|
6
6
|
export declare function getInitials(name?: string): string;
|
|
7
|
+
export type MapChildrenCallback = (child: ReactElement, index: number) => ReactNode | null;
|
|
8
|
+
export declare function mapChildren(children: ReactNode, callback: MapChildrenCallback): any[];
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mezo-org/mezo-clay",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.20",
|
|
4
4
|
"repository": "git@github.com:mezo-org/clay.git",
|
|
5
|
-
"packageManager": "pnpm@9.15.0",
|
|
6
5
|
"main": "./dist/mezo-clay.umd.js",
|
|
7
6
|
"module": "./dist/mezo-clay.es.js",
|
|
8
7
|
"types": "./dist/index.d.ts",
|
|
@@ -10,21 +9,6 @@
|
|
|
10
9
|
"dist"
|
|
11
10
|
],
|
|
12
11
|
"prettier": "@thesis/prettier-config",
|
|
13
|
-
"scripts": {
|
|
14
|
-
"dev": "pnpm run storybook",
|
|
15
|
-
"build": "pnpm run build-storybook",
|
|
16
|
-
"build:lib": "tsc && vite build",
|
|
17
|
-
"lint:config": "prettier -c '**/*.@(json|yaml|toml)'",
|
|
18
|
-
"lint:config:fix": "prettier -w '**/*.@(json|yaml|toml)'",
|
|
19
|
-
"lint:eslint": "eslint . --ext ts,tsx,mts",
|
|
20
|
-
"lint:eslint:fix": "eslint . --fix",
|
|
21
|
-
"format": "pnpm run lint:eslint && pnpm run lint:config",
|
|
22
|
-
"format:fix": "pnpm run lint:eslint:fix && pnpm run lint:config:fix",
|
|
23
|
-
"test": "vitest run",
|
|
24
|
-
"test-watch": "vitest",
|
|
25
|
-
"storybook": "storybook dev -p 6006",
|
|
26
|
-
"build-storybook": "storybook build"
|
|
27
|
-
},
|
|
28
12
|
"dependencies": {
|
|
29
13
|
"@storybook/blocks": "^8.4.7",
|
|
30
14
|
"@storybook/experimental-addon-test": "^8.4.7",
|
|
@@ -66,5 +50,20 @@
|
|
|
66
50
|
"react": "^18.3.1",
|
|
67
51
|
"react-dom": "^18.3.1",
|
|
68
52
|
"styletron-engine-monolithic": "^1.0.0"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"dev": "pnpm run storybook",
|
|
56
|
+
"build": "pnpm run build-storybook",
|
|
57
|
+
"build:lib": "tsc && vite build",
|
|
58
|
+
"lint:config": "prettier -c '**/*.@(json|yaml|toml)'",
|
|
59
|
+
"lint:config:fix": "prettier -w '**/*.@(json|yaml|toml)'",
|
|
60
|
+
"lint:eslint": "eslint . --ext ts,tsx,mts",
|
|
61
|
+
"lint:eslint:fix": "eslint . --fix",
|
|
62
|
+
"format": "pnpm run lint:eslint && pnpm run lint:config",
|
|
63
|
+
"format:fix": "pnpm run lint:eslint:fix && pnpm run lint:config:fix",
|
|
64
|
+
"test": "vitest run",
|
|
65
|
+
"test-watch": "vitest",
|
|
66
|
+
"storybook": "storybook dev -p 6006",
|
|
67
|
+
"build-storybook": "storybook build"
|
|
69
68
|
}
|
|
70
|
-
}
|
|
69
|
+
}
|