@tensor_1/react 2.28.0 → 2.29.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/README.md +23 -0
- package/THIRD_PARTY_NOTICES.md +54 -0
- package/dist/icons/Icon.d.ts +489 -0
- package/dist/icons/Icon.js +37 -0
- package/dist/icons/NamedIcon.d.ts +15 -0
- package/dist/icons/NamedIcon.js +9 -0
- package/dist/icons/components.d.ts +257 -0
- package/dist/icons/components.js +508 -0
- package/dist/icons/glyphs.d.ts +476 -0
- package/dist/icons/glyphs.js +704 -0
- package/dist/icons/types.d.ts +26 -0
- package/dist/icons/types.js +0 -0
- package/dist/icons.cjs +1310 -0
- package/dist/icons.d.cts +532 -0
- package/dist/icons.d.ts +6 -0
- package/dist/icons.js +9 -0
- package/package.json +8 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, SVGProps, RefAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
/** One glyph: SVG child elements as `[tag, attributes]`, drawn in a 24×24 box. */
|
|
4
|
+
type IconNode = ReadonlyArray<readonly [string, Readonly<Record<string, string | number>>]>;
|
|
5
|
+
type IconSize = 'sm' | 'md' | 'lg';
|
|
6
|
+
type IconTone = 'current' | 'muted' | 'accent' | 'success' | 'warning' | 'danger' | 'info';
|
|
7
|
+
interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'ref'> {
|
|
8
|
+
/**
|
|
9
|
+
* `sm` 16 px, `md` 20 px (default), `lg` 24 px — the `--uix-icon-*` tokens — or a CSS length
|
|
10
|
+
* / pixel number. A sizing class from the product (e.g. a Tailwind `size-4`) also wins.
|
|
11
|
+
*/
|
|
12
|
+
size?: IconSize | number | string;
|
|
13
|
+
/** Colour from a UIx token. Default `current`: inherits the text colour. */
|
|
14
|
+
tone?: IconTone;
|
|
15
|
+
/**
|
|
16
|
+
* Accessible name. With it the icon is `role="img"`; without it the icon is decorative
|
|
17
|
+
* (`aria-hidden`). An icon-only button names the button instead, so leave this empty there.
|
|
18
|
+
*/
|
|
19
|
+
label?: string;
|
|
20
|
+
/** Stroke width in the 24-unit box. Default 2. */
|
|
21
|
+
strokeWidth?: number | string;
|
|
22
|
+
}
|
|
23
|
+
/** An icon component, e.g. `ShieldCheckIcon`. Replaces Lucide's `LucideIcon` type. */
|
|
24
|
+
type UixIcon = ForwardRefExoticComponent<IconProps & RefAttributes<SVGSVGElement>>;
|
|
25
|
+
|
|
26
|
+
export type { IconNode, IconProps, IconSize, IconTone, UixIcon };
|
|
File without changes
|