@firecms/ui 3.0.0-canary.96 → 3.0.0-canary.97
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/icons/Icon.d.ts +1 -1
- package/dist/index.es.js +116 -1325
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +116 -1325
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -5
- package/src/icons/Icon.tsx +2 -7
- package/src/icons/icon_keys.ts +114 -1301
- package/src/scripts/generateIconKeys.ts +20 -10
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@firecms/ui",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.0.0-canary.
|
4
|
+
"version": "3.0.0-canary.97",
|
5
5
|
"description": "Awesome Firebase/Firestore-based headless open-source CMS",
|
6
6
|
"funding": {
|
7
7
|
"url": "https://github.com/sponsors/firecmsco"
|
@@ -47,7 +47,6 @@
|
|
47
47
|
"generateIcons": "ts-node --esm src/scripts/generateIcons.ts"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@material-design-icons/font": "^0.14.13",
|
51
50
|
"@radix-ui/react-checkbox": "^1.1.1",
|
52
51
|
"@radix-ui/react-collapsible": "^1.1.0",
|
53
52
|
"@radix-ui/react-dialog": "^1.1.1",
|
@@ -66,14 +65,15 @@
|
|
66
65
|
"clsx": "^2.1.1",
|
67
66
|
"cmdk": "^0.2.1",
|
68
67
|
"date-fns": "^3.6.0",
|
68
|
+
"material-icons": "latest",
|
69
69
|
"react-datepicker": "^7.3.0",
|
70
70
|
"react-dropzone": "^14.2.3",
|
71
71
|
"react-fast-compare": "^3.2.2",
|
72
72
|
"tailwind-merge": "^2.4.0"
|
73
73
|
},
|
74
74
|
"peerDependencies": {
|
75
|
-
"react": "
|
76
|
-
"react-dom": "
|
75
|
+
"react": ">=18.3.1",
|
76
|
+
"react-dom": ">=18.3.1"
|
77
77
|
},
|
78
78
|
"devDependencies": {
|
79
79
|
"@jest/globals": "^29.7.0",
|
@@ -102,7 +102,7 @@
|
|
102
102
|
"src",
|
103
103
|
"tailwind.config.js"
|
104
104
|
],
|
105
|
-
"gitHead": "
|
105
|
+
"gitHead": "da52ff032616af10d60ee976daf80f18d5ac879b",
|
106
106
|
"publishConfig": {
|
107
107
|
"access": "public"
|
108
108
|
}
|
package/src/icons/Icon.tsx
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import "@material-design-icons/font/filled.css";
|
3
2
|
import { cls } from "../util";
|
3
|
+
import 'material-icons/iconfont/filled.css';
|
4
4
|
|
5
5
|
export type IconColor = "inherit" | "primary" | "secondary" | "disabled" | "error" | "success" | "warning";
|
6
6
|
export type IconProps = {
|
@@ -50,15 +50,10 @@ export const Icon = React.forwardRef<HTMLSpanElement, IconProps & { iconKey: str
|
|
50
50
|
|
51
51
|
return <span
|
52
52
|
ref={ref} // Attach the ref to the span
|
53
|
-
style={{
|
54
|
-
fontSize: `${sizeInPx}px`,
|
55
|
-
display: "block",
|
56
|
-
...style
|
57
|
-
}}
|
58
53
|
className={
|
59
54
|
cls("material-icons",
|
60
55
|
color ? colorClassesMapping[color] : "",
|
61
|
-
"select-none",
|
56
|
+
// "select-none",
|
62
57
|
className)}
|
63
58
|
onClick={onClick}>{iconKey}</span>
|
64
59
|
});
|