@versini/ui-icons 4.23.0 → 4.23.1
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 +55 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { IconsProps } from './IconsTypes';
|
|
2
1
|
import { JSX } from 'react/jsx-runtime';
|
|
3
2
|
|
|
4
3
|
export declare const IconAdd: ({ className, viewBox, title, monotone, ...rest }: IconsProps) => JSX.Element;
|
|
@@ -195,6 +194,19 @@ export declare const IconSortUp: ({ className, viewBox, title, monotone, ...rest
|
|
|
195
194
|
|
|
196
195
|
export declare const IconSortUpLight: ({ className, viewBox, title, monotone, ...rest }: IconsProps) => JSX.Element;
|
|
197
196
|
|
|
197
|
+
export declare type IconsProps = {
|
|
198
|
+
/**
|
|
199
|
+
* Whether or not to render the icon in a single color
|
|
200
|
+
* @default false
|
|
201
|
+
*/
|
|
202
|
+
monotone?: boolean;
|
|
203
|
+
/**
|
|
204
|
+
* The title to use for the icon. Each icon has a default title,
|
|
205
|
+
* but it can be overridden with this prop.
|
|
206
|
+
*/
|
|
207
|
+
title?: string;
|
|
208
|
+
} & Partial<Pick<SvgIconProps, "semantic" | "size" | "className" | "viewBox">> & React.SVGAttributes<SVGElement>;
|
|
209
|
+
|
|
198
210
|
export declare const IconStarInCircle: ({ className, viewBox, title, monotone, ...rest }: IconsProps) => JSX.Element;
|
|
199
211
|
|
|
200
212
|
export declare const IconStarInCircleLight: ({ className, viewBox, title, monotone, ...rest }: IconsProps) => JSX.Element;
|
|
@@ -231,4 +243,46 @@ export declare const IconWebSearch: ({ className, viewBox, title, monotone, ...r
|
|
|
231
243
|
|
|
232
244
|
export declare const IconWebSearchLight: ({ className, viewBox, title, monotone, ...rest }: IconsProps) => JSX.Element;
|
|
233
245
|
|
|
246
|
+
declare type SvgIconProps = {
|
|
247
|
+
/**
|
|
248
|
+
* The children to render.
|
|
249
|
+
*/
|
|
250
|
+
children: React.ReactNode;
|
|
251
|
+
/**
|
|
252
|
+
* The default viewBox to use.
|
|
253
|
+
*/
|
|
254
|
+
defaultViewBox: string;
|
|
255
|
+
/**
|
|
256
|
+
* The title to use for the icon. Each icon has a default title,
|
|
257
|
+
* but it can be overridden with this prop.
|
|
258
|
+
*/
|
|
259
|
+
title: string;
|
|
260
|
+
/**
|
|
261
|
+
* CSS class(es) to add to the main component wrapper.
|
|
262
|
+
*/
|
|
263
|
+
className?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Update the "fill" property of the SVG.
|
|
266
|
+
* @default "currentColor"
|
|
267
|
+
*/
|
|
268
|
+
fill?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Whether or not the icon is semantic (visual and
|
|
271
|
+
* announced to assistive technologies).
|
|
272
|
+
* @default false
|
|
273
|
+
*/
|
|
274
|
+
semantic?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* The size of the icon. This will set the width and height of the icon.
|
|
277
|
+
* It should be a valid Tailwind CSS size class, such as "size-6" or "size-px".
|
|
278
|
+
* It can also include breakpoints, such as "sm:size-6" or "md:size-px".
|
|
279
|
+
* @link https://tailwindcss.com/docs/size
|
|
280
|
+
*/
|
|
281
|
+
size?: string;
|
|
282
|
+
/**
|
|
283
|
+
* The viewBox to use. If not provided, the default viewBox will be used.
|
|
284
|
+
*/
|
|
285
|
+
viewBox?: string;
|
|
286
|
+
};
|
|
287
|
+
|
|
234
288
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-icons",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -515,5 +515,5 @@
|
|
|
515
515
|
"sideEffects": [
|
|
516
516
|
"**/*.css"
|
|
517
517
|
],
|
|
518
|
-
"gitHead": "
|
|
518
|
+
"gitHead": "89fa8dfdef1c9a12d010552ba4d26b47fd8e2baf"
|
|
519
519
|
}
|