@fileverse/ui 2.2.0 → 2.3.0
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.d.ts +1 -4
- package/dist/index.es.js +27 -20
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -135,10 +135,7 @@ export declare const GridLayout: (props: GridProps) => JSX_2.Element;
|
|
|
135
135
|
|
|
136
136
|
export declare type GridProps = GridProps_2;
|
|
137
137
|
|
|
138
|
-
export declare const Icon:
|
|
139
|
-
({ name, size, fill, stroke, className, ...props }: IconProps): JSX_2.Element | null;
|
|
140
|
-
displayName: string;
|
|
141
|
-
};
|
|
138
|
+
export declare const Icon: default_2.ForwardRefExoticComponent<Omit<IconProps, "ref"> & default_2.RefAttributes<SVGSVGElement>>;
|
|
142
139
|
|
|
143
140
|
export declare const IconButton: ({ icon, variant, size, className, elevation, rounded, ...props }: IconButtonProps) => JSX_2.Element;
|
|
144
141
|
|
package/dist/index.es.js
CHANGED
|
@@ -4331,28 +4331,35 @@ const $s = {
|
|
|
4331
4331
|
defaultVariants: {
|
|
4332
4332
|
size: "md"
|
|
4333
4333
|
}
|
|
4334
|
-
}), ge = (
|
|
4335
|
-
|
|
4336
|
-
size: t,
|
|
4337
|
-
fill: a,
|
|
4338
|
-
stroke: r,
|
|
4339
|
-
className: o,
|
|
4340
|
-
...s
|
|
4341
|
-
}) => {
|
|
4342
|
-
const i = $s[e];
|
|
4343
|
-
if (!i)
|
|
4344
|
-
return console.error(`Icon "${e}" not found`), null;
|
|
4345
|
-
const c = t === "sm" ? 16 : t === "md" ? 24 : t === "lg" ? 32 : 24, h = {
|
|
4334
|
+
}), ge = Y(
|
|
4335
|
+
({
|
|
4346
4336
|
name: e,
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
fill: a,
|
|
4350
|
-
|
|
4351
|
-
|
|
4337
|
+
size: t = "md",
|
|
4338
|
+
// Default size
|
|
4339
|
+
fill: a = "none",
|
|
4340
|
+
// Default fill
|
|
4341
|
+
stroke: r = "none",
|
|
4342
|
+
// Default stroke
|
|
4343
|
+
className: o,
|
|
4352
4344
|
...s
|
|
4353
|
-
}
|
|
4354
|
-
|
|
4355
|
-
|
|
4345
|
+
}, i) => {
|
|
4346
|
+
const c = $s[e];
|
|
4347
|
+
if (!c)
|
|
4348
|
+
return console.error(`Icon "${e}" not found`), null;
|
|
4349
|
+
const h = t === "sm" ? 16 : t === "md" ? 24 : t === "lg" ? 32 : 24, l = {
|
|
4350
|
+
width: h,
|
|
4351
|
+
height: h,
|
|
4352
|
+
fill: a,
|
|
4353
|
+
name: e,
|
|
4354
|
+
stroke: r,
|
|
4355
|
+
className: L(Us({ size: t }), o),
|
|
4356
|
+
ref: i,
|
|
4357
|
+
// Attach the ref here
|
|
4358
|
+
...s
|
|
4359
|
+
};
|
|
4360
|
+
return /* @__PURE__ */ u.jsx(c, { ...l });
|
|
4361
|
+
}
|
|
4362
|
+
);
|
|
4356
4363
|
ge.displayName = "Icon";
|
|
4357
4364
|
/**
|
|
4358
4365
|
* @license lucide-react v0.363.0 - ISC
|