@firecms/ui 3.0.0-canary.97 → 3.0.0-canary.99

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.es.js CHANGED
@@ -3103,14 +3103,36 @@ const Icon = React.forwardRef(
3103
3103
  onClick,
3104
3104
  style
3105
3105
  }, ref) => {
3106
+ let sizeInPx;
3107
+ switch (size) {
3108
+ case "smallest":
3109
+ sizeInPx = 16;
3110
+ break;
3111
+ case "small":
3112
+ sizeInPx = 20;
3113
+ break;
3114
+ case "medium":
3115
+ sizeInPx = 24;
3116
+ break;
3117
+ case "large":
3118
+ sizeInPx = 28;
3119
+ break;
3120
+ default:
3121
+ sizeInPx = typeof size === "number" ? size : 24;
3122
+ }
3106
3123
  return /* @__PURE__ */ jsx(
3107
3124
  "span",
3108
3125
  {
3109
3126
  ref,
3127
+ style: {
3128
+ fontSize: `${sizeInPx}px`,
3129
+ display: "block",
3130
+ ...style
3131
+ },
3110
3132
  className: cls(
3111
3133
  "material-icons",
3112
3134
  color ? colorClassesMapping[color] : "",
3113
- // "select-none",
3135
+ "select-none",
3114
3136
  className
3115
3137
  ),
3116
3138
  onClick,