@fangxinyan/lumina 0.6.1 → 0.6.3
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 +2 -1
- package/dist/{Alert-JJ7GB3UU.css → Alert-QBKIDY5H.css} +7 -0
- package/dist/Alert.cjs +3 -3
- package/dist/Alert.d.cts +3 -2
- package/dist/Alert.d.ts +3 -2
- package/dist/Alert.js +2 -2
- package/dist/AutoComplete.cjs +5 -4
- package/dist/AutoComplete.d.cts +1 -1
- package/dist/AutoComplete.d.ts +1 -1
- package/dist/AutoComplete.js +4 -3
- package/dist/Badge-DPGLV3D3.css +22 -0
- package/dist/Badge.cjs +10 -0
- package/dist/Badge.d.cts +19 -0
- package/dist/Badge.d.ts +19 -0
- package/dist/Badge.js +1 -0
- package/dist/{Button-SDQD25AG.css → Button-4Z3Q6KII.css} +56 -36
- package/dist/Button.cjs +3 -7
- package/dist/Button.d.cts +11 -15
- package/dist/Button.d.ts +11 -15
- package/dist/Button.js +2 -2
- package/dist/Calendar.cjs +3 -3
- package/dist/Calendar.js +2 -2
- package/dist/{Card-RG7ECXL2.css → Card-6RMVIHWX.css} +7 -13
- package/dist/Card.cjs +2 -6
- package/dist/Card.d.cts +7 -11
- package/dist/Card.d.ts +7 -11
- package/dist/Card.js +1 -1
- package/dist/{Cascader-VSYEKQCG.css → Cascader-3BLLA7EN.css} +77 -0
- package/dist/Cascader.cjs +5 -3
- package/dist/Cascader.d.cts +22 -4
- package/dist/Cascader.d.ts +22 -4
- package/dist/Cascader.js +4 -2
- package/dist/{Checkbox-SKJATVSN.css → Checkbox-U5EUDSYS.css} +5 -35
- package/dist/Checkbox.cjs +3 -7
- package/dist/Checkbox.d.cts +1 -18
- package/dist/Checkbox.d.ts +1 -18
- package/dist/Checkbox.js +2 -2
- package/dist/Collapse-66U5YJFY.css +53 -0
- package/dist/Collapse.cjs +11 -0
- package/dist/Collapse.d.cts +32 -0
- package/dist/Collapse.d.ts +32 -0
- package/dist/Collapse.js +2 -0
- package/dist/CommandPalette.cjs +5 -4
- package/dist/CommandPalette.js +4 -3
- package/dist/Drawer.cjs +3 -3
- package/dist/Drawer.js +2 -2
- package/dist/Empty-DC2LPORC.css +28 -0
- package/dist/Empty.cjs +2 -10
- package/dist/Empty.d.cts +1 -62
- package/dist/Empty.d.ts +1 -62
- package/dist/Empty.js +1 -1
- package/dist/Form.d.cts +1 -1
- package/dist/Form.d.ts +1 -1
- package/dist/Icon.cjs +187 -3
- package/dist/Icon.d.cts +104 -3
- package/dist/Icon.d.ts +104 -3
- package/dist/Icon.js +1 -1
- package/dist/{Image-4MN34O6P.css → Image-MRYQCRQ5.css} +78 -0
- package/dist/Image.cjs +12 -4
- package/dist/Image.d.cts +79 -6
- package/dist/Image.d.ts +79 -6
- package/dist/Image.js +2 -2
- package/dist/{Input-33CAH4O6.css → Input-HUBJ55OH.css} +25 -42
- package/dist/Input.cjs +6 -5
- package/dist/Input.d.cts +23 -26
- package/dist/Input.d.ts +23 -26
- package/dist/Input.js +3 -2
- package/dist/InputNumber.cjs +5 -4
- package/dist/InputNumber.d.cts +1 -1
- package/dist/InputNumber.d.ts +1 -1
- package/dist/InputNumber.js +4 -3
- package/dist/Message-2MZ3LFPU.css +45 -0
- package/dist/Message.cjs +23 -0
- package/dist/Message.d.cts +54 -0
- package/dist/Message.d.ts +54 -0
- package/dist/Message.js +2 -0
- package/dist/{Modal-XSDMU4XJ.css → Modal-2QNDW4SO.css} +27 -0
- package/dist/Modal.cjs +4 -4
- package/dist/Modal.d.cts +29 -4
- package/dist/Modal.d.ts +29 -4
- package/dist/Modal.js +3 -3
- package/dist/Pagination.cjs +7 -5
- package/dist/Pagination.js +6 -4
- package/dist/Popover.cjs +2 -2
- package/dist/Popover.d.cts +11 -3
- package/dist/Popover.d.ts +11 -3
- package/dist/Popover.js +1 -1
- package/dist/Radio-GVFDPAZM.css +97 -0
- package/dist/Radio.cjs +14 -0
- package/dist/Radio.d.cts +36 -0
- package/dist/Radio.d.ts +36 -0
- package/dist/Radio.js +1 -0
- package/dist/{Select-J3CCVFJ7.css → Select-Z5VYPEEY.css} +33 -24
- package/dist/Select.cjs +6 -4
- package/dist/Select.d.cts +29 -7
- package/dist/Select.d.ts +29 -7
- package/dist/Select.js +5 -3
- package/dist/Skeleton-CVWH2VWN.css +40 -0
- package/dist/Skeleton.cjs +10 -0
- package/dist/Skeleton.d.cts +30 -0
- package/dist/Skeleton.d.ts +30 -0
- package/dist/Skeleton.js +1 -0
- package/dist/Spin-3GJNMSIH.css +94 -0
- package/dist/Spin.cjs +10 -0
- package/dist/Spin.d.cts +20 -0
- package/dist/Spin.d.ts +20 -0
- package/dist/Spin.js +1 -0
- package/dist/{Table-2LPTOUIR.css → Table-ATJJQLKU.css} +0 -53
- package/dist/Table.cjs +9 -11
- package/dist/Table.d.cts +2 -21
- package/dist/Table.d.ts +2 -21
- package/dist/Table.js +8 -6
- package/dist/TablePro-3XVHYLSL.css +45 -0
- package/dist/TablePro.cjs +19 -0
- package/dist/TablePro.d.cts +21 -0
- package/dist/TablePro.d.ts +21 -0
- package/dist/TablePro.js +10 -0
- package/dist/{Tabs-RHK6XAFF.css → Tabs-BLSNI2T5.css} +0 -34
- package/dist/Tabs.cjs +2 -6
- package/dist/Tabs.d.cts +1 -16
- package/dist/Tabs.d.ts +1 -16
- package/dist/Tabs.js +1 -1
- package/dist/Tag-HDYCDPFS.css +42 -0
- package/dist/Tag.cjs +3 -7
- package/dist/Tag.d.cts +5 -14
- package/dist/Tag.d.ts +5 -14
- package/dist/Tag.js +2 -2
- package/dist/Textarea-YNET7IBH.css +54 -0
- package/dist/Textarea.cjs +15 -0
- package/dist/Textarea.d.cts +25 -0
- package/dist/Textarea.d.ts +25 -0
- package/dist/Textarea.js +2 -0
- package/dist/Theme.cjs +14 -10
- package/dist/Theme.d.cts +29 -6
- package/dist/Theme.d.ts +29 -6
- package/dist/Theme.js +1 -1
- package/dist/{Timeline-RHZAZKZ7.css → Timeline-3ZHOHPXT.css} +2 -2
- package/dist/Timeline.cjs +3 -3
- package/dist/Timeline.d.cts +1 -1
- package/dist/Timeline.d.ts +1 -1
- package/dist/Timeline.js +2 -2
- package/dist/Tooltip.cjs +2 -2
- package/dist/Tooltip.d.cts +17 -4
- package/dist/Tooltip.d.ts +17 -4
- package/dist/Tooltip.js +1 -1
- package/dist/Typography.cjs +7 -7
- package/dist/Typography.d.cts +1 -0
- package/dist/Typography.d.ts +1 -0
- package/dist/Typography.js +2 -2
- package/dist/{chunk-OVZTG5CP.cjs → chunk-2HQCUBA7.cjs} +2 -2
- package/dist/{chunk-X2U7EKCS.cjs → chunk-3YJU3D5S.cjs} +28 -5
- package/dist/chunk-45VJGBGN.js +25 -0
- package/dist/{chunk-3D77MQHO.js → chunk-46VXFTEC.js} +3 -3
- package/dist/chunk-47VG2P34.js +393 -0
- package/dist/{chunk-LZU33BX6.cjs → chunk-5DKRY67M.cjs} +4 -20
- package/dist/{chunk-TWGQZX2R.js → chunk-5H5YP2TB.js} +4 -19
- package/dist/chunk-5MN3PMF4.cjs +240 -0
- package/dist/{chunk-5A3RT4KD.js → chunk-5TKC6IEN.js} +4 -55
- package/dist/{chunk-N57NXCNC.cjs → chunk-6HMTV6P4.cjs} +3 -44
- package/dist/{chunk-RF2EY5JS.cjs → chunk-6ZXQJRAT.cjs} +153 -34
- package/dist/{chunk-OFGDUCT7.cjs → chunk-7AG524YZ.cjs} +3 -3
- package/dist/chunk-7IYKKLV3.js +283 -0
- package/dist/{chunk-73RQBWWW.js → chunk-AAGF7K3L.js} +2 -2
- package/dist/chunk-AXZ7ELMA.js +41 -0
- package/dist/{chunk-R6BIF3FF.js → chunk-BPOOVO5T.js} +5 -23
- package/dist/{chunk-OI3CWXT3.js → chunk-BVQ77VRY.js} +3 -3
- package/dist/{chunk-UXH5PH3S.js → chunk-CETNCRZ4.js} +2 -2
- package/dist/chunk-DG5VQ6BO.cjs +28 -0
- package/dist/chunk-DWAN57G4.js +243 -0
- package/dist/chunk-ELNT3CFO.js +64 -0
- package/dist/{chunk-ULOJ5UEY.js → chunk-ET6DYQVZ.js} +1 -1
- package/dist/chunk-F6RYCBQG.js +25 -0
- package/dist/{chunk-RPFMQZA5.js → chunk-FBYUZOZP.js} +42 -31
- package/dist/chunk-FGW5GJ22.cjs +132 -0
- package/dist/{chunk-6Y5WRCPW.js → chunk-FWPBORRB.js} +1 -1
- package/dist/chunk-GENABQYA.cjs +47 -0
- package/dist/{chunk-TGHBKKSS.js → chunk-GIZU3H6H.js} +3 -43
- package/dist/chunk-GMN74OEY.cjs +63 -0
- package/dist/{chunk-Y47YTYQ3.cjs → chunk-H4LGWZMH.cjs} +159 -8
- package/dist/chunk-HKF2V5MM.cjs +214 -0
- package/dist/chunk-HLFH5HWR.js +81 -0
- package/dist/{chunk-4WRE4HQP.js → chunk-HWFM4MAT.js} +18 -6
- package/dist/{chunk-GY3BSHHS.cjs → chunk-HZSIUOCN.cjs} +2 -55
- package/dist/{chunk-D46EM4EN.js → chunk-I5WTQ5Y3.js} +4 -4
- package/dist/chunk-J2HZTJO6.js +26 -0
- package/dist/{chunk-NN25YMOL.js → chunk-J5ZGYQZK.js} +153 -35
- package/dist/{chunk-WRDKOSSM.js → chunk-JCEHZ336.js} +1 -1
- package/dist/chunk-JVUVOR6S.js +110 -0
- package/dist/chunk-K5IGFBDR.js +113 -0
- package/dist/{chunk-Q2KG6SQK.cjs → chunk-K7FV7W6U.cjs} +5 -5
- package/dist/{chunk-PWW64ZWO.cjs → chunk-KD4YYIIO.cjs} +1 -32
- package/dist/chunk-KGSADAOD.cjs +170 -0
- package/dist/{chunk-54YLXXS2.js → chunk-ME5BZ2WA.js} +2 -2
- package/dist/chunk-MPVCYU2K.cjs +104 -0
- package/dist/{chunk-EEMWQX3C.cjs → chunk-NTS5L4NQ.cjs} +3 -3
- package/dist/{chunk-WBK6XIDJ.js → chunk-OBEKX4VR.js} +2 -32
- package/dist/{chunk-EBNRZRWY.cjs → chunk-P6EZG2R7.cjs} +5 -5
- package/dist/{chunk-KYEY2LIB.cjs → chunk-P6P4DGLF.cjs} +3 -3
- package/dist/{chunk-GOBWKQCX.cjs → chunk-PULGVK2I.cjs} +3 -3
- package/dist/chunk-Q5SZIU7Z.cjs +47 -0
- package/dist/chunk-QKQHZIF3.cjs +86 -0
- package/dist/{chunk-3TWNBJFI.cjs → chunk-QP3VCSRY.cjs} +6 -6
- package/dist/{chunk-6ODY6MGL.cjs → chunk-R2TEDH2F.cjs} +5 -5
- package/dist/{chunk-YRZGXXWA.js → chunk-SQGPSMSK.js} +14 -20
- package/dist/{chunk-IW5LW6XS.js → chunk-TEEFR2FD.js} +28 -5
- package/dist/chunk-TGL5BGMR.js +218 -0
- package/dist/{chunk-62GU4OHH.cjs → chunk-TP567B3L.cjs} +13 -20
- package/dist/chunk-UKS23N3L.js +191 -0
- package/dist/chunk-USQ43DJ5.js +147 -0
- package/dist/{chunk-G2K6ETP4.cjs → chunk-UUHFKIWP.cjs} +18 -6
- package/dist/{chunk-2MNAZRWE.cjs → chunk-V272XR3F.cjs} +271 -2
- package/dist/chunk-VFFIE2VO.cjs +271 -0
- package/dist/{chunk-FIO65XYG.cjs → chunk-X5GCOMC3.cjs} +49 -38
- package/dist/{chunk-Y3ZSG3SJ.cjs → chunk-XSN4TLN5.cjs} +11 -30
- package/dist/chunk-ZKE73UQF.cjs +138 -0
- package/dist/index.cjs +342 -132
- package/dist/index.d.cts +26 -20
- package/dist/index.d.ts +26 -20
- package/dist/index.js +35 -29
- package/dist/styles.css +515 -230
- package/docs/llms/alert.md +4 -3
- package/docs/llms/badge.md +3 -3
- package/docs/llms/button.md +11 -41
- package/docs/llms/card.md +6 -12
- package/docs/llms/cascader.md +22 -0
- package/docs/llms/{accordion.md → collapse.md} +13 -11
- package/docs/llms/drawer.md +1 -1
- package/docs/llms/form.md +1 -1
- package/docs/llms/image.md +72 -1
- package/docs/llms/input.md +28 -18
- package/docs/llms/message.md +63 -0
- package/docs/llms/modal.md +30 -0
- package/docs/llms/popover.md +18 -1
- package/docs/llms/radio.md +37 -1
- package/docs/llms/select.md +22 -2
- package/docs/llms/spin.md +59 -0
- package/docs/llms/table.md +3 -3
- package/docs/llms/tag.md +3 -2
- package/docs/llms/theme.md +41 -4
- package/docs/llms/tooltip.md +16 -3
- package/docs/llms.md +8 -8
- package/package.json +32 -52
- package/dist/Accordion-REMDCQUD.css +0 -44
- package/dist/Accordion.cjs +0 -11
- package/dist/Accordion.d.cts +0 -33
- package/dist/Accordion.d.ts +0 -33
- package/dist/Accordion.js +0 -2
- package/dist/Empty-NQ72W3D7.css +0 -160
- package/dist/Tag-FGDY3W7E.css +0 -51
- package/dist/Toast-YSACW3EM.css +0 -45
- package/dist/Toast.cjs +0 -15
- package/dist/Toast.d.cts +0 -26
- package/dist/Toast.d.ts +0 -26
- package/dist/Toast.js +0 -2
- package/dist/chunk-32HBMXXV.cjs +0 -208
- package/dist/chunk-3XTHKAEY.js +0 -39
- package/dist/chunk-5M26OVVY.js +0 -90
- package/dist/chunk-DOMYUGJY.js +0 -132
- package/dist/chunk-DPNDHNKK.js +0 -185
- package/dist/chunk-G2XK57I7.cjs +0 -116
- package/dist/chunk-HBWO3QKW.js +0 -74
- package/dist/chunk-JVS5ZALZ.js +0 -123
- package/dist/chunk-LIGHV4RC.cjs +0 -121
- package/dist/chunk-MCTIA6RZ.js +0 -99
- package/dist/chunk-NC4YUEXM.cjs +0 -145
- package/dist/chunk-NJ6B22YJ.js +0 -170
- package/dist/chunk-W64ARHLJ.cjs +0 -62
- package/dist/chunk-ZFW6OYAO.cjs +0 -100
- package/docs/llms/spinner.md +0 -58
- package/docs/llms/toast.md +0 -51
package/dist/Empty.d.ts
CHANGED
|
@@ -12,66 +12,5 @@ interface EmptyProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"
|
|
|
12
12
|
}
|
|
13
13
|
/** `Empty` — empty state placeholder. */
|
|
14
14
|
declare const Empty: React.ForwardRefExoticComponent<EmptyProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
interface SpinnerProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
16
|
-
size?: number;
|
|
17
|
-
tone?: "accent" | "success" | "warning" | "danger" | "current";
|
|
18
|
-
/** Text rendered next to the spinner. */
|
|
19
|
-
label?: React.ReactNode;
|
|
20
|
-
/** `ring` is the default border spinner; `dots` is a three-dot bounce. */
|
|
21
|
-
variant?: "ring" | "dots";
|
|
22
|
-
className?: string;
|
|
23
|
-
}
|
|
24
|
-
/** `Spinner` — loading indicator. */
|
|
25
|
-
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
26
|
-
interface SkeletonAvatarConfig {
|
|
27
|
-
shape?: "circle" | "square";
|
|
28
|
-
size?: "sm" | "md" | "lg";
|
|
29
|
-
}
|
|
30
|
-
interface SkeletonTitleConfig {
|
|
31
|
-
width?: number | string;
|
|
32
|
-
}
|
|
33
|
-
interface SkeletonParagraphConfig {
|
|
34
|
-
rows?: number;
|
|
35
|
-
width?: (number | string)[];
|
|
36
|
-
}
|
|
37
|
-
interface SkeletonProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
|
|
38
|
-
width?: number | string;
|
|
39
|
-
height?: number | string;
|
|
40
|
-
circle?: boolean;
|
|
41
|
-
/** `wave` is a shimmer sweep; `pulse` fades opacity; `none` disables animation. */
|
|
42
|
-
animation?: "wave" | "pulse" | "none";
|
|
43
|
-
/**
|
|
44
|
-
* Render an avatar skeleton on the left. `true` gives the defaults (circle, md).
|
|
45
|
-
* @example avatar
|
|
46
|
-
* @example avatar={{ shape: "square", size: "lg" }}
|
|
47
|
-
*/
|
|
48
|
-
avatar?: boolean | SkeletonAvatarConfig;
|
|
49
|
-
/**
|
|
50
|
-
* Render a title line skeleton. Defaults to `true` whenever the composite layout is active
|
|
51
|
-
* (any of `avatar` / `paragraph` / `title` is set).
|
|
52
|
-
*/
|
|
53
|
-
title?: boolean | SkeletonTitleConfig;
|
|
54
|
-
/**
|
|
55
|
-
* Render N paragraph lines. `true` gives 3 rows; passing `width` arrays lets you
|
|
56
|
-
* control per-row widths (last row defaults to 60%).
|
|
57
|
-
*/
|
|
58
|
-
paragraph?: boolean | SkeletonParagraphConfig;
|
|
59
|
-
className?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* `Skeleton` — content placeholder during loading.
|
|
63
|
-
*
|
|
64
|
-
* Two modes:
|
|
65
|
-
* - **Primitive** (no composite prop set): renders a single block using `width` / `height` / `circle`.
|
|
66
|
-
* - **Composite** (`avatar` / `title` / `paragraph`): renders the Ant-Design-style avatar + title + paragraph layout.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* // primitive
|
|
70
|
-
* <Skeleton height={14} width="60%" />
|
|
71
|
-
* @example
|
|
72
|
-
* // composite
|
|
73
|
-
* <Skeleton avatar title paragraph={{ rows: 4 }} />
|
|
74
|
-
*/
|
|
75
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLElement>>;
|
|
76
15
|
|
|
77
|
-
export { Empty, type EmptyProps
|
|
16
|
+
export { Empty, type EmptyProps };
|
package/dist/Empty.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Empty
|
|
1
|
+
export { Empty } from './chunk-45VJGBGN.js';
|
package/dist/Form.d.cts
CHANGED
|
@@ -28,7 +28,7 @@ interface FormInstance<V extends Record<string, unknown> = Record<string, unknow
|
|
|
28
28
|
/** Programmatic submit — runs validate then onFinish/onFinishFailed. */
|
|
29
29
|
submit: () => void;
|
|
30
30
|
}
|
|
31
|
-
/** `Form.useForm()` — create a form instance.
|
|
31
|
+
/** `Form.useForm()` — create a form instance. */
|
|
32
32
|
declare function useForm<V extends Record<string, unknown> = Record<string, unknown>>(): [FormInstance<V>];
|
|
33
33
|
interface FormProps<V extends Record<string, unknown> = Record<string, unknown>> extends Omit<React.FormHTMLAttributes<HTMLFormElement>, "onChange" | "onSubmit"> {
|
|
34
34
|
form?: FormInstance<V>;
|
package/dist/Form.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ interface FormInstance<V extends Record<string, unknown> = Record<string, unknow
|
|
|
28
28
|
/** Programmatic submit — runs validate then onFinish/onFinishFailed. */
|
|
29
29
|
submit: () => void;
|
|
30
30
|
}
|
|
31
|
-
/** `Form.useForm()` — create a form instance.
|
|
31
|
+
/** `Form.useForm()` — create a form instance. */
|
|
32
32
|
declare function useForm<V extends Record<string, unknown> = Record<string, unknown>>(): [FormInstance<V>];
|
|
33
33
|
interface FormProps<V extends Record<string, unknown> = Record<string, unknown>> extends Omit<React.FormHTMLAttributes<HTMLFormElement>, "onChange" | "onSubmit"> {
|
|
34
34
|
form?: FormInstance<V>;
|
package/dist/Icon.cjs
CHANGED
|
@@ -1,14 +1,198 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV272XR3F_cjs = require('./chunk-V272XR3F.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.defineProperty(exports, "AimOutlined", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkV272XR3F_cjs.AimOutlined; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "AppstoreOutlined", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkV272XR3F_cjs.AppstoreOutlined; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "BarChartOutlined", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkV272XR3F_cjs.BarChartOutlined; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "BlockOutlined", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkV272XR3F_cjs.BlockOutlined; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "BorderOutlined", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkV272XR3F_cjs.BorderOutlined; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "CameraOutlined", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkV272XR3F_cjs.CameraOutlined; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "CaretDownOutlined", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkV272XR3F_cjs.CaretDownOutlined; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "CaretUpOutlined", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkV272XR3F_cjs.CaretUpOutlined; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "CheckCircleFilled", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkV272XR3F_cjs.CheckCircleFilled; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "CheckCircleOutlined", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkV272XR3F_cjs.CheckCircleOutlined; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "CheckOutlined", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkV272XR3F_cjs.CheckOutlined; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "ClockCircleFilled", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkV272XR3F_cjs.ClockCircleFilled; }
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(exports, "CloseCircleOutlined", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function () { return chunkV272XR3F_cjs.CloseCircleOutlined; }
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "CloseOutlined", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function () { return chunkV272XR3F_cjs.CloseOutlined; }
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "CopyOutlined", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () { return chunkV272XR3F_cjs.CopyOutlined; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "DashboardOutlined", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunkV272XR3F_cjs.DashboardOutlined; }
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "DeleteOutlined", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return chunkV272XR3F_cjs.DeleteOutlined; }
|
|
74
|
+
});
|
|
75
|
+
Object.defineProperty(exports, "DownOutlined", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () { return chunkV272XR3F_cjs.DownOutlined; }
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, "EnvironmentOutlined", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () { return chunkV272XR3F_cjs.EnvironmentOutlined; }
|
|
82
|
+
});
|
|
83
|
+
Object.defineProperty(exports, "ExclamationCircleOutlined", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () { return chunkV272XR3F_cjs.ExclamationCircleOutlined; }
|
|
86
|
+
});
|
|
87
|
+
Object.defineProperty(exports, "FolderOpenOutlined", {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () { return chunkV272XR3F_cjs.FolderOpenOutlined; }
|
|
90
|
+
});
|
|
7
91
|
Object.defineProperty(exports, "ICON_NAMES", {
|
|
8
92
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkV272XR3F_cjs.ICON_NAMES; }
|
|
10
94
|
});
|
|
11
95
|
Object.defineProperty(exports, "Icon", {
|
|
12
96
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkV272XR3F_cjs.Icon; }
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, "LeftOutlined", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () { return chunkV272XR3F_cjs.LeftOutlined; }
|
|
102
|
+
});
|
|
103
|
+
Object.defineProperty(exports, "LoadingOutlined", {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () { return chunkV272XR3F_cjs.LoadingOutlined; }
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, "MinusCircleOutlined", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function () { return chunkV272XR3F_cjs.MinusCircleOutlined; }
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, "MinusOutlined", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return chunkV272XR3F_cjs.MinusOutlined; }
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(exports, "NAMED_ICON_MAP", {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () { return chunkV272XR3F_cjs.NAMED_ICON_MAP; }
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "PictureOutlined", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () { return chunkV272XR3F_cjs.PictureOutlined; }
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "PlusOutlined", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () { return chunkV272XR3F_cjs.PlusOutlined; }
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(exports, "QqOutlined", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function () { return chunkV272XR3F_cjs.QqOutlined; }
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "ReloadOutlined", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () { return chunkV272XR3F_cjs.ReloadOutlined; }
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(exports, "RightOutlined", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function () { return chunkV272XR3F_cjs.RightOutlined; }
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "RobotOutlined", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () { return chunkV272XR3F_cjs.RobotOutlined; }
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "SearchOutlined", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return chunkV272XR3F_cjs.SearchOutlined; }
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "SettingOutlined", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () { return chunkV272XR3F_cjs.SettingOutlined; }
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "StarFilled", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () { return chunkV272XR3F_cjs.StarFilled; }
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "StarOutlined", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () { return chunkV272XR3F_cjs.StarOutlined; }
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, "SwapOutlined", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () { return chunkV272XR3F_cjs.SwapOutlined; }
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, "SwapRightOutlined", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return chunkV272XR3F_cjs.SwapRightOutlined; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "SyncOutlined", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunkV272XR3F_cjs.SyncOutlined; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "ThunderboltOutlined", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return chunkV272XR3F_cjs.ThunderboltOutlined; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "TranslationOutlined", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return chunkV272XR3F_cjs.TranslationOutlined; }
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "UnorderedListOutlined", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function () { return chunkV272XR3F_cjs.UnorderedListOutlined; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "UserOutlined", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunkV272XR3F_cjs.UserOutlined; }
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, "isIconName", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function () { return chunkV272XR3F_cjs.isIconName; }
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(exports, "renderIconSlot", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function () { return chunkV272XR3F_cjs.renderIconSlot; }
|
|
194
|
+
});
|
|
195
|
+
Object.defineProperty(exports, "resolveIconName", {
|
|
196
|
+
enumerable: true,
|
|
197
|
+
get: function () { return chunkV272XR3F_cjs.resolveIconName; }
|
|
14
198
|
});
|
package/dist/Icon.d.cts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Name of a built-in icon. To add your own, pass `children` (raw SVG paths) instead.
|
|
5
6
|
*/
|
|
6
|
-
type IconName = "search" | "plus" | "minus" | "check" | "x" | "chevDown" | "chevRight" | "chevLeft" | "chevUp" | "arrowRight" | "settings" | "user" | "bell" | "mail" | "heart" | "star" | "home" | "folder" | "file" | "image" | "play" | "pause" | "volume" | "trash" | "edit" | "copy" | "download" | "upload" | "info" | "alert" | "check2" | "eye" | "eyeOff" | "sparkle" | "moon" | "sun" | "palette" | "layers" | "grid" | "list" | "zap" | "filter" | "mic" | "send" | "calendar" | "clock" | "menu" | "more" | "sliders" | "aim" | "swap" | "camera" | "qq" | "code";
|
|
7
|
+
type IconName = "search" | "plus" | "minus" | "check" | "x" | "chevDown" | "chevRight" | "chevLeft" | "chevUp" | "arrowRight" | "settings" | "user" | "bell" | "mail" | "heart" | "star" | "home" | "folder" | "file" | "image" | "play" | "pause" | "volume" | "trash" | "edit" | "copy" | "download" | "upload" | "info" | "alert" | "check2" | "eye" | "eyeOff" | "sparkle" | "moon" | "sun" | "palette" | "layers" | "grid" | "list" | "zap" | "filter" | "mic" | "send" | "calendar" | "clock" | "menu" | "more" | "sliders" | "aim" | "swap" | "camera" | "qq" | "code" | "appstore" | "barChart" | "block" | "border" | "caretDown" | "caretUp" | "checkCircle" | "checkCircleFilled" | "clockCircleFilled" | "closeCircle" | "dashboard" | "environment" | "exclamationCircle" | "folderOpen" | "loading" | "minusCircle" | "picture" | "reload" | "robot" | "swapRight" | "sync" | "translate" | "unorderedList" | "starFilled";
|
|
7
8
|
interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
8
9
|
name: IconName;
|
|
9
|
-
size?: number;
|
|
10
|
+
size?: number | string;
|
|
10
11
|
stroke?: number;
|
|
11
12
|
}
|
|
13
|
+
type IconSlot = IconName | React.ReactNode;
|
|
12
14
|
/**
|
|
13
15
|
* `Icon` — stroked line icon set, sized in pixels, inherits `currentColor`.
|
|
14
16
|
*
|
|
@@ -16,6 +18,105 @@ interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
|
16
18
|
* <Icon name="plus" size={18} />
|
|
17
19
|
*/
|
|
18
20
|
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
|
|
21
|
+
declare const isIconName: (value: IconSlot) => value is IconName;
|
|
22
|
+
interface RenderIconSlotOptions {
|
|
23
|
+
size?: number | string;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const renderIconSlot: (icon: IconSlot, { size, className }?: RenderIconSlotOptions) => react_jsx_runtime.JSX.Element | null;
|
|
19
27
|
declare const ICON_NAMES: IconName[];
|
|
28
|
+
declare const NAMED_ICON_MAP: {
|
|
29
|
+
readonly AimOutlined: "aim";
|
|
30
|
+
readonly AppstoreOutlined: "appstore";
|
|
31
|
+
readonly BarChartOutlined: "barChart";
|
|
32
|
+
readonly BlockOutlined: "block";
|
|
33
|
+
readonly BorderOutlined: "border";
|
|
34
|
+
readonly CameraOutlined: "camera";
|
|
35
|
+
readonly CaretDownOutlined: "caretDown";
|
|
36
|
+
readonly CaretUpOutlined: "caretUp";
|
|
37
|
+
readonly CheckCircleFilled: "checkCircleFilled";
|
|
38
|
+
readonly CheckCircleOutlined: "checkCircle";
|
|
39
|
+
readonly CheckOutlined: "check";
|
|
40
|
+
readonly ClockCircleFilled: "clockCircleFilled";
|
|
41
|
+
readonly CloseCircleOutlined: "closeCircle";
|
|
42
|
+
readonly CloseOutlined: "x";
|
|
43
|
+
readonly CopyOutlined: "copy";
|
|
44
|
+
readonly DashboardOutlined: "dashboard";
|
|
45
|
+
readonly DeleteOutlined: "trash";
|
|
46
|
+
readonly DownOutlined: "chevDown";
|
|
47
|
+
readonly EnvironmentOutlined: "environment";
|
|
48
|
+
readonly ExclamationCircleOutlined: "exclamationCircle";
|
|
49
|
+
readonly FolderOpenOutlined: "folderOpen";
|
|
50
|
+
readonly LeftOutlined: "chevLeft";
|
|
51
|
+
readonly LoadingOutlined: "loading";
|
|
52
|
+
readonly MinusCircleOutlined: "minusCircle";
|
|
53
|
+
readonly MinusOutlined: "minus";
|
|
54
|
+
readonly PictureOutlined: "picture";
|
|
55
|
+
readonly PlusOutlined: "plus";
|
|
56
|
+
readonly QqOutlined: "qq";
|
|
57
|
+
readonly ReloadOutlined: "reload";
|
|
58
|
+
readonly RightOutlined: "chevRight";
|
|
59
|
+
readonly RobotOutlined: "robot";
|
|
60
|
+
readonly SearchOutlined: "search";
|
|
61
|
+
readonly SettingOutlined: "settings";
|
|
62
|
+
readonly StarFilled: "starFilled";
|
|
63
|
+
readonly StarOutlined: "star";
|
|
64
|
+
readonly SwapOutlined: "swap";
|
|
65
|
+
readonly SwapRightOutlined: "swapRight";
|
|
66
|
+
readonly SyncOutlined: "sync";
|
|
67
|
+
readonly ThunderboltOutlined: "zap";
|
|
68
|
+
readonly TranslationOutlined: "translate";
|
|
69
|
+
readonly UnorderedListOutlined: "unorderedList";
|
|
70
|
+
readonly UserOutlined: "user";
|
|
71
|
+
};
|
|
72
|
+
type NamedIconComponentName = keyof typeof NAMED_ICON_MAP;
|
|
73
|
+
declare const resolveIconName: (name: string, fallback?: IconName) => IconName;
|
|
74
|
+
interface NamedIconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
75
|
+
spin?: boolean;
|
|
76
|
+
rotate?: number;
|
|
77
|
+
size?: number | string;
|
|
78
|
+
}
|
|
79
|
+
declare const AimOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
80
|
+
declare const AppstoreOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
81
|
+
declare const BarChartOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
82
|
+
declare const BlockOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
83
|
+
declare const BorderOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
84
|
+
declare const CameraOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
85
|
+
declare const CaretDownOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
86
|
+
declare const CaretUpOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
87
|
+
declare const CheckCircleFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
88
|
+
declare const CheckCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
89
|
+
declare const CheckOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
90
|
+
declare const ClockCircleFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
91
|
+
declare const CloseCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
92
|
+
declare const CloseOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
93
|
+
declare const CopyOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
94
|
+
declare const DashboardOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
95
|
+
declare const DeleteOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
96
|
+
declare const DownOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
97
|
+
declare const EnvironmentOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
98
|
+
declare const ExclamationCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
99
|
+
declare const FolderOpenOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
100
|
+
declare const LeftOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
101
|
+
declare const LoadingOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
102
|
+
declare const MinusCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
103
|
+
declare const MinusOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
104
|
+
declare const PictureOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
105
|
+
declare const PlusOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
106
|
+
declare const QqOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
107
|
+
declare const ReloadOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
108
|
+
declare const RightOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
109
|
+
declare const RobotOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
110
|
+
declare const SearchOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
111
|
+
declare const SettingOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
112
|
+
declare const StarFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
113
|
+
declare const StarOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
114
|
+
declare const SwapOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
115
|
+
declare const SwapRightOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
116
|
+
declare const SyncOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
117
|
+
declare const ThunderboltOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
118
|
+
declare const TranslationOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
119
|
+
declare const UnorderedListOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
120
|
+
declare const UserOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
121
|
|
|
21
|
-
export { ICON_NAMES, Icon, type IconName, type IconProps };
|
|
122
|
+
export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, type IconName, type IconProps, type IconSlot, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, type NamedIconComponentName, type NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, type RenderIconSlotOptions, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName };
|
package/dist/Icon.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Name of a built-in icon. To add your own, pass `children` (raw SVG paths) instead.
|
|
5
6
|
*/
|
|
6
|
-
type IconName = "search" | "plus" | "minus" | "check" | "x" | "chevDown" | "chevRight" | "chevLeft" | "chevUp" | "arrowRight" | "settings" | "user" | "bell" | "mail" | "heart" | "star" | "home" | "folder" | "file" | "image" | "play" | "pause" | "volume" | "trash" | "edit" | "copy" | "download" | "upload" | "info" | "alert" | "check2" | "eye" | "eyeOff" | "sparkle" | "moon" | "sun" | "palette" | "layers" | "grid" | "list" | "zap" | "filter" | "mic" | "send" | "calendar" | "clock" | "menu" | "more" | "sliders" | "aim" | "swap" | "camera" | "qq" | "code";
|
|
7
|
+
type IconName = "search" | "plus" | "minus" | "check" | "x" | "chevDown" | "chevRight" | "chevLeft" | "chevUp" | "arrowRight" | "settings" | "user" | "bell" | "mail" | "heart" | "star" | "home" | "folder" | "file" | "image" | "play" | "pause" | "volume" | "trash" | "edit" | "copy" | "download" | "upload" | "info" | "alert" | "check2" | "eye" | "eyeOff" | "sparkle" | "moon" | "sun" | "palette" | "layers" | "grid" | "list" | "zap" | "filter" | "mic" | "send" | "calendar" | "clock" | "menu" | "more" | "sliders" | "aim" | "swap" | "camera" | "qq" | "code" | "appstore" | "barChart" | "block" | "border" | "caretDown" | "caretUp" | "checkCircle" | "checkCircleFilled" | "clockCircleFilled" | "closeCircle" | "dashboard" | "environment" | "exclamationCircle" | "folderOpen" | "loading" | "minusCircle" | "picture" | "reload" | "robot" | "swapRight" | "sync" | "translate" | "unorderedList" | "starFilled";
|
|
7
8
|
interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
8
9
|
name: IconName;
|
|
9
|
-
size?: number;
|
|
10
|
+
size?: number | string;
|
|
10
11
|
stroke?: number;
|
|
11
12
|
}
|
|
13
|
+
type IconSlot = IconName | React.ReactNode;
|
|
12
14
|
/**
|
|
13
15
|
* `Icon` — stroked line icon set, sized in pixels, inherits `currentColor`.
|
|
14
16
|
*
|
|
@@ -16,6 +18,105 @@ interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
|
16
18
|
* <Icon name="plus" size={18} />
|
|
17
19
|
*/
|
|
18
20
|
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
|
|
21
|
+
declare const isIconName: (value: IconSlot) => value is IconName;
|
|
22
|
+
interface RenderIconSlotOptions {
|
|
23
|
+
size?: number | string;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const renderIconSlot: (icon: IconSlot, { size, className }?: RenderIconSlotOptions) => react_jsx_runtime.JSX.Element | null;
|
|
19
27
|
declare const ICON_NAMES: IconName[];
|
|
28
|
+
declare const NAMED_ICON_MAP: {
|
|
29
|
+
readonly AimOutlined: "aim";
|
|
30
|
+
readonly AppstoreOutlined: "appstore";
|
|
31
|
+
readonly BarChartOutlined: "barChart";
|
|
32
|
+
readonly BlockOutlined: "block";
|
|
33
|
+
readonly BorderOutlined: "border";
|
|
34
|
+
readonly CameraOutlined: "camera";
|
|
35
|
+
readonly CaretDownOutlined: "caretDown";
|
|
36
|
+
readonly CaretUpOutlined: "caretUp";
|
|
37
|
+
readonly CheckCircleFilled: "checkCircleFilled";
|
|
38
|
+
readonly CheckCircleOutlined: "checkCircle";
|
|
39
|
+
readonly CheckOutlined: "check";
|
|
40
|
+
readonly ClockCircleFilled: "clockCircleFilled";
|
|
41
|
+
readonly CloseCircleOutlined: "closeCircle";
|
|
42
|
+
readonly CloseOutlined: "x";
|
|
43
|
+
readonly CopyOutlined: "copy";
|
|
44
|
+
readonly DashboardOutlined: "dashboard";
|
|
45
|
+
readonly DeleteOutlined: "trash";
|
|
46
|
+
readonly DownOutlined: "chevDown";
|
|
47
|
+
readonly EnvironmentOutlined: "environment";
|
|
48
|
+
readonly ExclamationCircleOutlined: "exclamationCircle";
|
|
49
|
+
readonly FolderOpenOutlined: "folderOpen";
|
|
50
|
+
readonly LeftOutlined: "chevLeft";
|
|
51
|
+
readonly LoadingOutlined: "loading";
|
|
52
|
+
readonly MinusCircleOutlined: "minusCircle";
|
|
53
|
+
readonly MinusOutlined: "minus";
|
|
54
|
+
readonly PictureOutlined: "picture";
|
|
55
|
+
readonly PlusOutlined: "plus";
|
|
56
|
+
readonly QqOutlined: "qq";
|
|
57
|
+
readonly ReloadOutlined: "reload";
|
|
58
|
+
readonly RightOutlined: "chevRight";
|
|
59
|
+
readonly RobotOutlined: "robot";
|
|
60
|
+
readonly SearchOutlined: "search";
|
|
61
|
+
readonly SettingOutlined: "settings";
|
|
62
|
+
readonly StarFilled: "starFilled";
|
|
63
|
+
readonly StarOutlined: "star";
|
|
64
|
+
readonly SwapOutlined: "swap";
|
|
65
|
+
readonly SwapRightOutlined: "swapRight";
|
|
66
|
+
readonly SyncOutlined: "sync";
|
|
67
|
+
readonly ThunderboltOutlined: "zap";
|
|
68
|
+
readonly TranslationOutlined: "translate";
|
|
69
|
+
readonly UnorderedListOutlined: "unorderedList";
|
|
70
|
+
readonly UserOutlined: "user";
|
|
71
|
+
};
|
|
72
|
+
type NamedIconComponentName = keyof typeof NAMED_ICON_MAP;
|
|
73
|
+
declare const resolveIconName: (name: string, fallback?: IconName) => IconName;
|
|
74
|
+
interface NamedIconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
75
|
+
spin?: boolean;
|
|
76
|
+
rotate?: number;
|
|
77
|
+
size?: number | string;
|
|
78
|
+
}
|
|
79
|
+
declare const AimOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
80
|
+
declare const AppstoreOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
81
|
+
declare const BarChartOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
82
|
+
declare const BlockOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
83
|
+
declare const BorderOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
84
|
+
declare const CameraOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
85
|
+
declare const CaretDownOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
86
|
+
declare const CaretUpOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
87
|
+
declare const CheckCircleFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
88
|
+
declare const CheckCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
89
|
+
declare const CheckOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
90
|
+
declare const ClockCircleFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
91
|
+
declare const CloseCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
92
|
+
declare const CloseOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
93
|
+
declare const CopyOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
94
|
+
declare const DashboardOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
95
|
+
declare const DeleteOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
96
|
+
declare const DownOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
97
|
+
declare const EnvironmentOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
98
|
+
declare const ExclamationCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
99
|
+
declare const FolderOpenOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
100
|
+
declare const LeftOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
101
|
+
declare const LoadingOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
102
|
+
declare const MinusCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
103
|
+
declare const MinusOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
104
|
+
declare const PictureOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
105
|
+
declare const PlusOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
106
|
+
declare const QqOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
107
|
+
declare const ReloadOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
108
|
+
declare const RightOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
109
|
+
declare const RobotOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
110
|
+
declare const SearchOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
111
|
+
declare const SettingOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
112
|
+
declare const StarFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
113
|
+
declare const StarOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
114
|
+
declare const SwapOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
115
|
+
declare const SwapRightOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
116
|
+
declare const SyncOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
117
|
+
declare const ThunderboltOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
118
|
+
declare const TranslationOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
119
|
+
declare const UnorderedListOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
120
|
+
declare const UserOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
121
|
|
|
21
|
-
export { ICON_NAMES, Icon, type IconName, type IconProps };
|
|
122
|
+
export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, type IconName, type IconProps, type IconSlot, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, type NamedIconComponentName, type NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, type RenderIconSlotOptions, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName };
|
package/dist/Icon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ICON_NAMES, Icon } from './chunk-
|
|
1
|
+
export { AimOutlined, AppstoreOutlined, BarChartOutlined, BlockOutlined, BorderOutlined, CameraOutlined, CaretDownOutlined, CaretUpOutlined, CheckCircleFilled, CheckCircleOutlined, CheckOutlined, ClockCircleFilled, CloseCircleOutlined, CloseOutlined, CopyOutlined, DashboardOutlined, DeleteOutlined, DownOutlined, EnvironmentOutlined, ExclamationCircleOutlined, FolderOpenOutlined, ICON_NAMES, Icon, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, isIconName, renderIconSlot, resolveIconName } from './chunk-47VG2P34.js';
|
|
@@ -9,6 +9,18 @@
|
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
line-height: 0;
|
|
11
11
|
}
|
|
12
|
+
.n-image.raw {
|
|
13
|
+
border-radius: 0;
|
|
14
|
+
background: transparent;
|
|
15
|
+
box-shadow: none;
|
|
16
|
+
}
|
|
17
|
+
.n-image.icon {
|
|
18
|
+
border-radius: var(--r-sm);
|
|
19
|
+
}
|
|
20
|
+
.n-image.unframed {
|
|
21
|
+
background: transparent;
|
|
22
|
+
box-shadow: none;
|
|
23
|
+
}
|
|
12
24
|
.n-image-frame {
|
|
13
25
|
position: relative;
|
|
14
26
|
overflow: hidden;
|
|
@@ -16,6 +28,16 @@
|
|
|
16
28
|
box-shadow: var(--neu-in-sm);
|
|
17
29
|
background: var(--bg-sunken);
|
|
18
30
|
}
|
|
31
|
+
.n-image.raw .n-image-frame {
|
|
32
|
+
border-radius: 0;
|
|
33
|
+
}
|
|
34
|
+
.n-image.icon .n-image-frame {
|
|
35
|
+
border-radius: var(--r-sm);
|
|
36
|
+
}
|
|
37
|
+
.n-image.unframed .n-image-frame {
|
|
38
|
+
background: transparent;
|
|
39
|
+
box-shadow: none;
|
|
40
|
+
}
|
|
19
41
|
.n-image img {
|
|
20
42
|
display: block;
|
|
21
43
|
width: 100%;
|
|
@@ -104,3 +126,59 @@
|
|
|
104
126
|
border-radius: var(--r-lg);
|
|
105
127
|
box-shadow: var(--neu-float);
|
|
106
128
|
}
|
|
129
|
+
|
|
130
|
+
/* ============ SpriteImage / LayeredImage ============ */
|
|
131
|
+
.n-sprite-image,
|
|
132
|
+
.n-layered-image {
|
|
133
|
+
display: inline-block;
|
|
134
|
+
position: relative;
|
|
135
|
+
border-radius: var(--r-sm);
|
|
136
|
+
background: var(--bg);
|
|
137
|
+
padding: 6px;
|
|
138
|
+
box-shadow: var(--neu-out-sm);
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
line-height: 0;
|
|
141
|
+
}
|
|
142
|
+
.n-sprite-image.raw,
|
|
143
|
+
.n-layered-image.raw {
|
|
144
|
+
border-radius: 0;
|
|
145
|
+
background: transparent;
|
|
146
|
+
box-shadow: none;
|
|
147
|
+
}
|
|
148
|
+
.n-sprite-image.unframed,
|
|
149
|
+
.n-layered-image.unframed {
|
|
150
|
+
background: transparent;
|
|
151
|
+
box-shadow: none;
|
|
152
|
+
}
|
|
153
|
+
.n-sprite-image-frame,
|
|
154
|
+
.n-layered-image-frame {
|
|
155
|
+
position: relative;
|
|
156
|
+
width: 100%;
|
|
157
|
+
overflow: hidden;
|
|
158
|
+
border-radius: var(--r-sm);
|
|
159
|
+
background: var(--bg-sunken);
|
|
160
|
+
box-shadow: var(--neu-in-sm);
|
|
161
|
+
}
|
|
162
|
+
.n-sprite-image.raw .n-sprite-image-frame,
|
|
163
|
+
.n-layered-image.raw .n-layered-image-frame {
|
|
164
|
+
border-radius: 0;
|
|
165
|
+
}
|
|
166
|
+
.n-sprite-image.unframed .n-sprite-image-frame,
|
|
167
|
+
.n-layered-image.unframed .n-layered-image-frame {
|
|
168
|
+
background: transparent;
|
|
169
|
+
box-shadow: none;
|
|
170
|
+
}
|
|
171
|
+
.n-sprite-image-sprite {
|
|
172
|
+
display: block;
|
|
173
|
+
background-repeat: no-repeat;
|
|
174
|
+
transform-origin: top left;
|
|
175
|
+
}
|
|
176
|
+
.n-layered-image-layer {
|
|
177
|
+
position: absolute;
|
|
178
|
+
display: block;
|
|
179
|
+
}
|
|
180
|
+
.n-layered-image img {
|
|
181
|
+
display: block;
|
|
182
|
+
width: 100%;
|
|
183
|
+
height: 100%;
|
|
184
|
+
}
|