@fangxinyan/lumina 0.6.1 → 0.6.2
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/Alert.cjs +3 -3
- 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 +18 -0
- package/dist/Badge.d.ts +18 -0
- package/dist/Badge.js +1 -0
- package/dist/Button.cjs +3 -7
- package/dist/Button.d.cts +5 -10
- package/dist/Button.d.ts +5 -10
- 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-C2DFSMKJ.css} +64 -0
- package/dist/Cascader.cjs +5 -3
- package/dist/Cascader.d.cts +18 -2
- package/dist/Cascader.d.ts +18 -2
- 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 +179 -3
- package/dist/Icon.d.cts +96 -3
- package/dist/Icon.d.ts +96 -3
- package/dist/Icon.js +1 -1
- package/dist/Image.cjs +4 -4
- package/dist/Image.js +2 -2
- package/dist/{Input-33CAH4O6.css → Input-3G4ONWNU.css} +15 -42
- package/dist/Input.cjs +6 -5
- package/dist/Input.d.cts +19 -23
- package/dist/Input.d.ts +19 -23
- 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 +28 -4
- package/dist/Modal.d.ts +28 -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-JVBQAZBG.css} +7 -23
- package/dist/Select.cjs +6 -4
- package/dist/Select.d.cts +25 -4
- package/dist/Select.d.ts +25 -4
- 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-LB3OOJAO.css +29 -0
- package/dist/Tag.cjs +3 -7
- package/dist/Tag.d.cts +1 -11
- package/dist/Tag.d.ts +1 -11
- 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/{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.js +2 -2
- package/dist/{chunk-6Y5WRCPW.js → chunk-33NCTOEB.js} +1 -1
- package/dist/{chunk-Q2KG6SQK.cjs → chunk-35ZGBAA3.cjs} +3 -3
- package/dist/{chunk-Y3ZSG3SJ.cjs → chunk-3AS5B7MQ.cjs} +11 -30
- 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-OFGDUCT7.cjs → chunk-4WTU5P3O.cjs} +3 -3
- package/dist/{chunk-5A3RT4KD.js → chunk-5TKC6IEN.js} +4 -55
- package/dist/{chunk-62GU4OHH.cjs → chunk-5WAXZJG5.cjs} +12 -19
- package/dist/chunk-6ACKL3WH.cjs +138 -0
- package/dist/{chunk-32HBMXXV.cjs → chunk-6LZ54NPO.cjs} +70 -74
- package/dist/{chunk-UXH5PH3S.js → chunk-7NGMQIST.js} +2 -2
- package/dist/{chunk-R6BIF3FF.js → chunk-AWXCSX6J.js} +5 -23
- package/dist/chunk-AXZ7ELMA.js +41 -0
- package/dist/{chunk-G2XK57I7.cjs → chunk-B2KEZQ6S.cjs} +5 -5
- package/dist/chunk-CEJ7VBR6.js +283 -0
- package/dist/{chunk-WRDKOSSM.js → chunk-CHMCL7AV.js} +1 -1
- package/dist/{chunk-EBNRZRWY.cjs → chunk-CUXV6QNN.cjs} +5 -5
- package/dist/{chunk-ULOJ5UEY.js → chunk-CXWEOAVU.js} +1 -1
- package/dist/{chunk-TWGQZX2R.js → chunk-DQTSTJ6O.js} +3 -18
- package/dist/chunk-EIY7KEJ3.cjs +132 -0
- package/dist/{chunk-OI3CWXT3.js → chunk-EJBHR2P5.js} +3 -3
- package/dist/chunk-ELNT3CFO.js +64 -0
- package/dist/{chunk-TGHBKKSS.js → chunk-EQEJTN3V.js} +3 -43
- package/dist/chunk-F6RYCBQG.js +25 -0
- package/dist/{chunk-N57NXCNC.cjs → chunk-FBVVRTX2.cjs} +3 -44
- package/dist/chunk-FFZ6OMZI.js +110 -0
- package/dist/{chunk-73RQBWWW.js → chunk-FJNWUELL.js} +2 -2
- package/dist/chunk-GENABQYA.cjs +47 -0
- package/dist/chunk-GMN74OEY.cjs +63 -0
- package/dist/chunk-GNEZQMKH.js +218 -0
- package/dist/{chunk-Y47YTYQ3.cjs → chunk-HPFQXYKG.cjs} +159 -8
- package/dist/{chunk-4WRE4HQP.js → chunk-HWFM4MAT.js} +18 -6
- package/dist/{chunk-GY3BSHHS.cjs → chunk-HZSIUOCN.cjs} +2 -55
- package/dist/{chunk-YRZGXXWA.js → chunk-JD7A6VM3.js} +11 -17
- package/dist/chunk-K2KYM7LW.cjs +28 -0
- package/dist/{chunk-PWW64ZWO.cjs → chunk-KD4YYIIO.cjs} +1 -32
- package/dist/chunk-KGSADAOD.cjs +170 -0
- package/dist/{chunk-6ODY6MGL.cjs → chunk-MQV2XN4B.cjs} +5 -5
- package/dist/{chunk-OVZTG5CP.cjs → chunk-MT7UWY6T.cjs} +2 -2
- package/dist/chunk-MUXP7ASL.js +26 -0
- package/dist/{chunk-EEMWQX3C.cjs → chunk-NTS5L4NQ.cjs} +3 -3
- package/dist/{chunk-WBK6XIDJ.js → chunk-OBEKX4VR.js} +2 -32
- package/dist/chunk-OF3SGLZY.js +385 -0
- package/dist/chunk-ON4DEDMI.js +113 -0
- package/dist/chunk-OQBDU5I2.cjs +104 -0
- package/dist/{chunk-FIO65XYG.cjs → chunk-OYMJVU66.cjs} +48 -37
- package/dist/{chunk-5M26OVVY.js → chunk-PH3YECMF.js} +1 -1
- package/dist/chunk-Q5SZIU7Z.cjs +47 -0
- package/dist/chunk-QGHYQCF3.cjs +240 -0
- package/dist/chunk-QKQHZIF3.cjs +86 -0
- package/dist/{chunk-KYEY2LIB.cjs → chunk-SKMP2A5O.cjs} +3 -3
- package/dist/{chunk-IW5LW6XS.js → chunk-TEEFR2FD.js} +28 -5
- package/dist/{chunk-GOBWKQCX.cjs → chunk-TEG7NJHS.cjs} +3 -3
- package/dist/{chunk-2MNAZRWE.cjs → chunk-TJII7BQ2.cjs} +261 -2
- package/dist/{chunk-3TWNBJFI.cjs → chunk-TZJH5HBT.cjs} +6 -6
- package/dist/{chunk-D46EM4EN.js → chunk-UMDGS4BP.js} +1 -1
- package/dist/chunk-USQ43DJ5.js +147 -0
- package/dist/{chunk-G2K6ETP4.cjs → chunk-UUHFKIWP.cjs} +18 -6
- package/dist/chunk-WGZ2KJTZ.js +81 -0
- package/dist/{chunk-RPFMQZA5.js → chunk-WKKSAGYH.js} +39 -28
- package/dist/{chunk-54YLXXS2.js → chunk-XD3JGL5O.js} +2 -2
- package/dist/{chunk-DPNDHNKK.js → chunk-XTIN5545.js} +68 -72
- package/dist/{chunk-LZU33BX6.cjs → chunk-ZIP7F4UF.cjs} +4 -20
- package/dist/index.cjs +312 -122
- package/dist/index.d.cts +23 -17
- package/dist/index.d.ts +23 -17
- package/dist/index.js +34 -28
- package/dist/styles.css +313 -192
- package/docs/llms/badge.md +3 -3
- package/docs/llms/button.md +7 -38
- package/docs/llms/card.md +6 -12
- package/docs/llms/cascader.md +19 -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/input.md +25 -16
- 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 +20 -0
- package/docs/llms/spin.md +59 -0
- package/docs/llms/table.md +3 -3
- package/docs/llms/tooltip.md +16 -3
- package/docs/llms.md +5 -5
- package/package.json +17 -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-3XTHKAEY.js +0 -39
- package/dist/chunk-DOMYUGJY.js +0 -132
- 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/Icon.d.cts
CHANGED
|
@@ -3,10 +3,10 @@ import * as React from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* Name of a built-in icon. To add your own, pass `children` (raw SVG paths) instead.
|
|
5
5
|
*/
|
|
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";
|
|
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" | "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
7
|
interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
8
8
|
name: IconName;
|
|
9
|
-
size?: number;
|
|
9
|
+
size?: number | string;
|
|
10
10
|
stroke?: number;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -17,5 +17,98 @@ interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
|
17
17
|
*/
|
|
18
18
|
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
|
|
19
19
|
declare const ICON_NAMES: IconName[];
|
|
20
|
+
declare const NAMED_ICON_MAP: {
|
|
21
|
+
readonly AimOutlined: "aim";
|
|
22
|
+
readonly AppstoreOutlined: "appstore";
|
|
23
|
+
readonly BarChartOutlined: "barChart";
|
|
24
|
+
readonly BlockOutlined: "block";
|
|
25
|
+
readonly BorderOutlined: "border";
|
|
26
|
+
readonly CameraOutlined: "camera";
|
|
27
|
+
readonly CaretDownOutlined: "caretDown";
|
|
28
|
+
readonly CaretUpOutlined: "caretUp";
|
|
29
|
+
readonly CheckCircleFilled: "checkCircleFilled";
|
|
30
|
+
readonly CheckCircleOutlined: "checkCircle";
|
|
31
|
+
readonly CheckOutlined: "check";
|
|
32
|
+
readonly ClockCircleFilled: "clockCircleFilled";
|
|
33
|
+
readonly CloseCircleOutlined: "closeCircle";
|
|
34
|
+
readonly CloseOutlined: "x";
|
|
35
|
+
readonly CopyOutlined: "copy";
|
|
36
|
+
readonly DashboardOutlined: "dashboard";
|
|
37
|
+
readonly DeleteOutlined: "trash";
|
|
38
|
+
readonly DownOutlined: "chevDown";
|
|
39
|
+
readonly EnvironmentOutlined: "environment";
|
|
40
|
+
readonly ExclamationCircleOutlined: "exclamationCircle";
|
|
41
|
+
readonly FolderOpenOutlined: "folderOpen";
|
|
42
|
+
readonly LeftOutlined: "chevLeft";
|
|
43
|
+
readonly LoadingOutlined: "loading";
|
|
44
|
+
readonly MinusCircleOutlined: "minusCircle";
|
|
45
|
+
readonly MinusOutlined: "minus";
|
|
46
|
+
readonly PictureOutlined: "picture";
|
|
47
|
+
readonly PlusOutlined: "plus";
|
|
48
|
+
readonly QqOutlined: "qq";
|
|
49
|
+
readonly ReloadOutlined: "reload";
|
|
50
|
+
readonly RightOutlined: "chevRight";
|
|
51
|
+
readonly RobotOutlined: "robot";
|
|
52
|
+
readonly SearchOutlined: "search";
|
|
53
|
+
readonly SettingOutlined: "settings";
|
|
54
|
+
readonly StarFilled: "starFilled";
|
|
55
|
+
readonly StarOutlined: "star";
|
|
56
|
+
readonly SwapOutlined: "swap";
|
|
57
|
+
readonly SwapRightOutlined: "swapRight";
|
|
58
|
+
readonly SyncOutlined: "sync";
|
|
59
|
+
readonly ThunderboltOutlined: "zap";
|
|
60
|
+
readonly TranslationOutlined: "translate";
|
|
61
|
+
readonly UnorderedListOutlined: "unorderedList";
|
|
62
|
+
readonly UserOutlined: "user";
|
|
63
|
+
};
|
|
64
|
+
type NamedIconComponentName = keyof typeof NAMED_ICON_MAP;
|
|
65
|
+
declare const resolveIconName: (name: string, fallback?: IconName) => IconName;
|
|
66
|
+
interface NamedIconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
67
|
+
spin?: boolean;
|
|
68
|
+
rotate?: number;
|
|
69
|
+
size?: number | string;
|
|
70
|
+
}
|
|
71
|
+
declare const AimOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
72
|
+
declare const AppstoreOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
73
|
+
declare const BarChartOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
74
|
+
declare const BlockOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
75
|
+
declare const BorderOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
76
|
+
declare const CameraOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
77
|
+
declare const CaretDownOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
78
|
+
declare const CaretUpOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
79
|
+
declare const CheckCircleFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
80
|
+
declare const CheckCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
81
|
+
declare const CheckOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
82
|
+
declare const ClockCircleFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
83
|
+
declare const CloseCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
84
|
+
declare const CloseOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
85
|
+
declare const CopyOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
86
|
+
declare const DashboardOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
87
|
+
declare const DeleteOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
88
|
+
declare const DownOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
89
|
+
declare const EnvironmentOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
90
|
+
declare const ExclamationCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
91
|
+
declare const FolderOpenOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
92
|
+
declare const LeftOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
93
|
+
declare const LoadingOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
94
|
+
declare const MinusCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
95
|
+
declare const MinusOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
96
|
+
declare const PictureOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
97
|
+
declare const PlusOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
98
|
+
declare const QqOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
99
|
+
declare const ReloadOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
100
|
+
declare const RightOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
101
|
+
declare const RobotOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
102
|
+
declare const SearchOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
103
|
+
declare const SettingOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
104
|
+
declare const StarFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
105
|
+
declare const StarOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
106
|
+
declare const SwapOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
107
|
+
declare const SwapRightOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
108
|
+
declare const SyncOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
109
|
+
declare const ThunderboltOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
110
|
+
declare const TranslationOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
111
|
+
declare const UnorderedListOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
112
|
+
declare const UserOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
113
|
|
|
21
|
-
export { ICON_NAMES, Icon, type IconName, type IconProps };
|
|
114
|
+
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, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, type NamedIconComponentName, type NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, resolveIconName };
|
package/dist/Icon.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import * as React from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* Name of a built-in icon. To add your own, pass `children` (raw SVG paths) instead.
|
|
5
5
|
*/
|
|
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";
|
|
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" | "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
7
|
interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
8
8
|
name: IconName;
|
|
9
|
-
size?: number;
|
|
9
|
+
size?: number | string;
|
|
10
10
|
stroke?: number;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -17,5 +17,98 @@ interface IconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "stroke"> {
|
|
|
17
17
|
*/
|
|
18
18
|
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
|
|
19
19
|
declare const ICON_NAMES: IconName[];
|
|
20
|
+
declare const NAMED_ICON_MAP: {
|
|
21
|
+
readonly AimOutlined: "aim";
|
|
22
|
+
readonly AppstoreOutlined: "appstore";
|
|
23
|
+
readonly BarChartOutlined: "barChart";
|
|
24
|
+
readonly BlockOutlined: "block";
|
|
25
|
+
readonly BorderOutlined: "border";
|
|
26
|
+
readonly CameraOutlined: "camera";
|
|
27
|
+
readonly CaretDownOutlined: "caretDown";
|
|
28
|
+
readonly CaretUpOutlined: "caretUp";
|
|
29
|
+
readonly CheckCircleFilled: "checkCircleFilled";
|
|
30
|
+
readonly CheckCircleOutlined: "checkCircle";
|
|
31
|
+
readonly CheckOutlined: "check";
|
|
32
|
+
readonly ClockCircleFilled: "clockCircleFilled";
|
|
33
|
+
readonly CloseCircleOutlined: "closeCircle";
|
|
34
|
+
readonly CloseOutlined: "x";
|
|
35
|
+
readonly CopyOutlined: "copy";
|
|
36
|
+
readonly DashboardOutlined: "dashboard";
|
|
37
|
+
readonly DeleteOutlined: "trash";
|
|
38
|
+
readonly DownOutlined: "chevDown";
|
|
39
|
+
readonly EnvironmentOutlined: "environment";
|
|
40
|
+
readonly ExclamationCircleOutlined: "exclamationCircle";
|
|
41
|
+
readonly FolderOpenOutlined: "folderOpen";
|
|
42
|
+
readonly LeftOutlined: "chevLeft";
|
|
43
|
+
readonly LoadingOutlined: "loading";
|
|
44
|
+
readonly MinusCircleOutlined: "minusCircle";
|
|
45
|
+
readonly MinusOutlined: "minus";
|
|
46
|
+
readonly PictureOutlined: "picture";
|
|
47
|
+
readonly PlusOutlined: "plus";
|
|
48
|
+
readonly QqOutlined: "qq";
|
|
49
|
+
readonly ReloadOutlined: "reload";
|
|
50
|
+
readonly RightOutlined: "chevRight";
|
|
51
|
+
readonly RobotOutlined: "robot";
|
|
52
|
+
readonly SearchOutlined: "search";
|
|
53
|
+
readonly SettingOutlined: "settings";
|
|
54
|
+
readonly StarFilled: "starFilled";
|
|
55
|
+
readonly StarOutlined: "star";
|
|
56
|
+
readonly SwapOutlined: "swap";
|
|
57
|
+
readonly SwapRightOutlined: "swapRight";
|
|
58
|
+
readonly SyncOutlined: "sync";
|
|
59
|
+
readonly ThunderboltOutlined: "zap";
|
|
60
|
+
readonly TranslationOutlined: "translate";
|
|
61
|
+
readonly UnorderedListOutlined: "unorderedList";
|
|
62
|
+
readonly UserOutlined: "user";
|
|
63
|
+
};
|
|
64
|
+
type NamedIconComponentName = keyof typeof NAMED_ICON_MAP;
|
|
65
|
+
declare const resolveIconName: (name: string, fallback?: IconName) => IconName;
|
|
66
|
+
interface NamedIconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
67
|
+
spin?: boolean;
|
|
68
|
+
rotate?: number;
|
|
69
|
+
size?: number | string;
|
|
70
|
+
}
|
|
71
|
+
declare const AimOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
72
|
+
declare const AppstoreOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
73
|
+
declare const BarChartOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
74
|
+
declare const BlockOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
75
|
+
declare const BorderOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
76
|
+
declare const CameraOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
77
|
+
declare const CaretDownOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
78
|
+
declare const CaretUpOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
79
|
+
declare const CheckCircleFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
80
|
+
declare const CheckCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
81
|
+
declare const CheckOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
82
|
+
declare const ClockCircleFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
83
|
+
declare const CloseCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
84
|
+
declare const CloseOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
85
|
+
declare const CopyOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
86
|
+
declare const DashboardOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
87
|
+
declare const DeleteOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
88
|
+
declare const DownOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
89
|
+
declare const EnvironmentOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
90
|
+
declare const ExclamationCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
91
|
+
declare const FolderOpenOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
92
|
+
declare const LeftOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
93
|
+
declare const LoadingOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
94
|
+
declare const MinusCircleOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
95
|
+
declare const MinusOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
96
|
+
declare const PictureOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
97
|
+
declare const PlusOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
98
|
+
declare const QqOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
99
|
+
declare const ReloadOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
100
|
+
declare const RightOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
101
|
+
declare const RobotOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
102
|
+
declare const SearchOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
103
|
+
declare const SettingOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
104
|
+
declare const StarFilled: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
105
|
+
declare const StarOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
106
|
+
declare const SwapOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
107
|
+
declare const SwapRightOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
108
|
+
declare const SyncOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
109
|
+
declare const ThunderboltOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
110
|
+
declare const TranslationOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
111
|
+
declare const UnorderedListOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
112
|
+
declare const UserOutlined: React.ForwardRefExoticComponent<NamedIconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
113
|
|
|
21
|
-
export { ICON_NAMES, Icon, type IconName, type IconProps };
|
|
114
|
+
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, LeftOutlined, LoadingOutlined, MinusCircleOutlined, MinusOutlined, NAMED_ICON_MAP, type NamedIconComponentName, type NamedIconProps, PictureOutlined, PlusOutlined, QqOutlined, ReloadOutlined, RightOutlined, RobotOutlined, SearchOutlined, SettingOutlined, StarFilled, StarOutlined, SwapOutlined, SwapRightOutlined, SyncOutlined, ThunderboltOutlined, TranslationOutlined, UnorderedListOutlined, UserOutlined, 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, resolveIconName } from './chunk-OF3SGLZY.js';
|
package/dist/Image.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkB2KEZQ6S_cjs = require('./chunk-B2KEZQ6S.cjs');
|
|
4
|
+
require('./chunk-TJII7BQ2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Image", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkB2KEZQ6S_cjs.Image; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ImageGrid", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkB2KEZQ6S_cjs.ImageGrid; }
|
|
15
15
|
});
|
package/dist/Image.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Image, ImageGrid } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { Image, ImageGrid } from './chunk-PH3YECMF.js';
|
|
2
|
+
import './chunk-OF3SGLZY.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ============ Input
|
|
1
|
+
/* ============ Input ============ */
|
|
2
2
|
.input-shell {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -73,6 +73,20 @@
|
|
|
73
73
|
background: var(--bg-sunken);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
.input-password-toggle {
|
|
77
|
+
border: none;
|
|
78
|
+
background: transparent;
|
|
79
|
+
color: var(--fg-subtle);
|
|
80
|
+
padding: 0;
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
font-family: inherit;
|
|
86
|
+
flex-shrink: 0;
|
|
87
|
+
}
|
|
88
|
+
.input-password-toggle:hover { color: var(--fg); }
|
|
89
|
+
|
|
76
90
|
.input-wrap > .input {
|
|
77
91
|
flex: 1;
|
|
78
92
|
min-width: 0;
|
|
@@ -91,44 +105,3 @@
|
|
|
91
105
|
.input-wrap.lg > .input { font-size: 14px; }
|
|
92
106
|
.input-wrap > .input::placeholder { color: var(--fg-subtle); }
|
|
93
107
|
.input-wrap.disabled > .input { cursor: not-allowed; }
|
|
94
|
-
|
|
95
|
-
.textarea-wrap { position: relative; width: 100%; }
|
|
96
|
-
.textarea-wrap .textarea-clear {
|
|
97
|
-
position: absolute;
|
|
98
|
-
top: 10px;
|
|
99
|
-
right: 10px;
|
|
100
|
-
display: inline-flex;
|
|
101
|
-
align-items: center;
|
|
102
|
-
justify-content: center;
|
|
103
|
-
width: 18px;
|
|
104
|
-
height: 18px;
|
|
105
|
-
border-radius: 999px;
|
|
106
|
-
color: var(--fg-subtle);
|
|
107
|
-
background: transparent;
|
|
108
|
-
cursor: pointer;
|
|
109
|
-
transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
|
|
110
|
-
}
|
|
111
|
-
.textarea-wrap .textarea-clear:hover {
|
|
112
|
-
color: var(--fg);
|
|
113
|
-
background: var(--bg-sunken);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.textarea {
|
|
117
|
-
width: 100%;
|
|
118
|
-
min-height: 96px;
|
|
119
|
-
padding: 12px 14px;
|
|
120
|
-
border: none;
|
|
121
|
-
border-radius: var(--r-md);
|
|
122
|
-
background: var(--bg);
|
|
123
|
-
box-shadow: var(--neu-in-sm);
|
|
124
|
-
color: var(--fg);
|
|
125
|
-
font-size: 13px;
|
|
126
|
-
font-family: inherit;
|
|
127
|
-
line-height: 1.55;
|
|
128
|
-
resize: vertical;
|
|
129
|
-
outline: none;
|
|
130
|
-
transition: box-shadow var(--dur) var(--ease);
|
|
131
|
-
}
|
|
132
|
-
.textarea:focus { box-shadow: var(--neu-in-sm), 0 0 0 2px var(--accent-glow); }
|
|
133
|
-
.textarea.invalid { box-shadow: var(--neu-in-sm), 0 0 0 2px color-mix(in oklch, var(--danger) 30%, transparent); }
|
|
134
|
-
.textarea::placeholder { color: var(--fg-subtle); }
|
package/dist/Input.cjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk6LZ54NPO_cjs = require('./chunk-6LZ54NPO.cjs');
|
|
4
|
+
require('./chunk-OQBDU5I2.cjs');
|
|
5
|
+
require('./chunk-TJII7BQ2.cjs');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
Object.defineProperty(exports, "Input", {
|
|
9
10
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk6LZ54NPO_cjs.Input; }
|
|
11
12
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
13
|
+
Object.defineProperty(exports, "InputPassword", {
|
|
13
14
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk6LZ54NPO_cjs.InputPassword; }
|
|
15
16
|
});
|
package/dist/Input.d.cts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IconName } from './Icon.cjs';
|
|
3
|
+
import { Textarea, TextareaProps } from './Textarea.cjs';
|
|
3
4
|
|
|
4
|
-
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "prefix"> {
|
|
5
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "prefix" | "value" | "defaultValue"> {
|
|
5
6
|
value?: string;
|
|
6
7
|
defaultValue?: string;
|
|
7
|
-
|
|
8
|
+
/** Native input change event. */
|
|
9
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
10
|
+
/** Convenience value callback for Lumina-style code. */
|
|
11
|
+
onValueChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
12
|
placeholder?: string;
|
|
9
13
|
leadingIcon?: IconName;
|
|
10
14
|
trailingIcon?: IconName;
|
|
@@ -27,26 +31,18 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
|
27
31
|
suffix?: React.ReactNode;
|
|
28
32
|
className?: string;
|
|
29
33
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
value?: string;
|
|
36
|
-
defaultValue?: string;
|
|
37
|
-
onChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
38
|
-
invalid?: boolean;
|
|
39
|
-
/** Show a × button in the top-right corner to clear the value. */
|
|
40
|
-
allowClear?: boolean;
|
|
41
|
-
/** Max length — forwarded to the native textarea. */
|
|
42
|
-
maxLength?: number;
|
|
43
|
-
/** Render a "N / max" counter beneath the textarea. */
|
|
44
|
-
showCount?: boolean;
|
|
45
|
-
className?: string;
|
|
34
|
+
interface InputPasswordProps extends Omit<InputProps, "type" | "trailingIcon" | "onTrailingIconClick"> {
|
|
35
|
+
/** Show the eye toggle. Default true. */
|
|
36
|
+
visibilityToggle?: boolean;
|
|
37
|
+
/** Customize the visibility icon. */
|
|
38
|
+
iconRender?: (visible: boolean) => React.ReactNode;
|
|
46
39
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
type InputComponent = React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>> & {
|
|
41
|
+
Password: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<HTMLInputElement>>;
|
|
42
|
+
TextArea: typeof Textarea;
|
|
43
|
+
};
|
|
44
|
+
declare const InputPassword: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<HTMLInputElement>>;
|
|
45
|
+
declare const Input: InputComponent;
|
|
46
|
+
type InputTextAreaProps = TextareaProps;
|
|
51
47
|
|
|
52
|
-
export { Input, type
|
|
48
|
+
export { Input, type InputComponent, InputPassword, type InputPasswordProps, type InputProps, type InputTextAreaProps };
|
package/dist/Input.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IconName } from './Icon.js';
|
|
3
|
+
import { Textarea, TextareaProps } from './Textarea.js';
|
|
3
4
|
|
|
4
|
-
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "prefix"> {
|
|
5
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "prefix" | "value" | "defaultValue"> {
|
|
5
6
|
value?: string;
|
|
6
7
|
defaultValue?: string;
|
|
7
|
-
|
|
8
|
+
/** Native input change event. */
|
|
9
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
10
|
+
/** Convenience value callback for Lumina-style code. */
|
|
11
|
+
onValueChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
12
|
placeholder?: string;
|
|
9
13
|
leadingIcon?: IconName;
|
|
10
14
|
trailingIcon?: IconName;
|
|
@@ -27,26 +31,18 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
|
27
31
|
suffix?: React.ReactNode;
|
|
28
32
|
className?: string;
|
|
29
33
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
value?: string;
|
|
36
|
-
defaultValue?: string;
|
|
37
|
-
onChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
38
|
-
invalid?: boolean;
|
|
39
|
-
/** Show a × button in the top-right corner to clear the value. */
|
|
40
|
-
allowClear?: boolean;
|
|
41
|
-
/** Max length — forwarded to the native textarea. */
|
|
42
|
-
maxLength?: number;
|
|
43
|
-
/** Render a "N / max" counter beneath the textarea. */
|
|
44
|
-
showCount?: boolean;
|
|
45
|
-
className?: string;
|
|
34
|
+
interface InputPasswordProps extends Omit<InputProps, "type" | "trailingIcon" | "onTrailingIconClick"> {
|
|
35
|
+
/** Show the eye toggle. Default true. */
|
|
36
|
+
visibilityToggle?: boolean;
|
|
37
|
+
/** Customize the visibility icon. */
|
|
38
|
+
iconRender?: (visible: boolean) => React.ReactNode;
|
|
46
39
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
type InputComponent = React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>> & {
|
|
41
|
+
Password: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<HTMLInputElement>>;
|
|
42
|
+
TextArea: typeof Textarea;
|
|
43
|
+
};
|
|
44
|
+
declare const InputPassword: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<HTMLInputElement>>;
|
|
45
|
+
declare const Input: InputComponent;
|
|
46
|
+
type InputTextAreaProps = TextareaProps;
|
|
51
47
|
|
|
52
|
-
export { Input, type
|
|
48
|
+
export { Input, type InputComponent, InputPassword, type InputPasswordProps, type InputProps, type InputTextAreaProps };
|
package/dist/Input.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { Input,
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { Input, InputPassword } from './chunk-XTIN5545.js';
|
|
2
|
+
import './chunk-WGZ2KJTZ.js';
|
|
3
|
+
import './chunk-OF3SGLZY.js';
|
package/dist/InputNumber.cjs
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkTZJH5HBT_cjs = require('./chunk-TZJH5HBT.cjs');
|
|
4
|
+
require('./chunk-6LZ54NPO.cjs');
|
|
5
|
+
require('./chunk-OQBDU5I2.cjs');
|
|
6
|
+
require('./chunk-TJII7BQ2.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
Object.defineProperty(exports, "InputNumber", {
|
|
10
11
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkTZJH5HBT_cjs.InputNumber; }
|
|
12
13
|
});
|
package/dist/InputNumber.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ interface InputNumberProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
|
|
|
9
9
|
onChange?: (value: number | null) => void;
|
|
10
10
|
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
11
11
|
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
12
|
-
/** Fires when the Enter key is pressed
|
|
12
|
+
/** Fires when the Enter key is pressed. */
|
|
13
13
|
onPressEnter?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
14
14
|
min?: number;
|
|
15
15
|
max?: number;
|
package/dist/InputNumber.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface InputNumberProps extends Omit<React.InputHTMLAttributes<HTMLInputEleme
|
|
|
9
9
|
onChange?: (value: number | null) => void;
|
|
10
10
|
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
11
11
|
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
12
|
-
/** Fires when the Enter key is pressed
|
|
12
|
+
/** Fires when the Enter key is pressed. */
|
|
13
13
|
onPressEnter?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
14
14
|
min?: number;
|
|
15
15
|
max?: number;
|
package/dist/InputNumber.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { InputNumber } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { InputNumber } from './chunk-EJBHR2P5.js';
|
|
2
|
+
import './chunk-XTIN5545.js';
|
|
3
|
+
import './chunk-WGZ2KJTZ.js';
|
|
4
|
+
import './chunk-OF3SGLZY.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* ============ Message ============ */
|
|
2
|
+
.message-container {
|
|
3
|
+
position: fixed;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
z-index: 300;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
}
|
|
10
|
+
.message-container.top-right { top: 56px; right: 20px; }
|
|
11
|
+
.message-container.top-left { top: 56px; left: 20px; }
|
|
12
|
+
.message-container.bottom-right { bottom: 20px; right: 20px; }
|
|
13
|
+
.message-container.bottom-left { bottom: 20px; left: 20px; }
|
|
14
|
+
.message-container.top-center { top: 56px; left: 50%; transform: translateX(-50%); align-items: center; }
|
|
15
|
+
.message {
|
|
16
|
+
background: var(--bg);
|
|
17
|
+
border-radius: var(--r-md);
|
|
18
|
+
box-shadow: var(--neu-float);
|
|
19
|
+
padding: 12px 16px;
|
|
20
|
+
min-width: 240px;
|
|
21
|
+
display: flex; align-items: center; gap: 10px;
|
|
22
|
+
font-size: 13px;
|
|
23
|
+
pointer-events: auto;
|
|
24
|
+
animation: messageIn var(--dur-slow) var(--ease);
|
|
25
|
+
border-left: 3px solid var(--accent);
|
|
26
|
+
}
|
|
27
|
+
.message.success { border-color: var(--success); }
|
|
28
|
+
.message.warning { border-color: var(--warning); }
|
|
29
|
+
.message.error { border-color: var(--danger); }
|
|
30
|
+
.message .message-icon { color: var(--accent); flex-shrink: 0; }
|
|
31
|
+
.message.success .message-icon { color: var(--success); }
|
|
32
|
+
.message.warning .message-icon { color: var(--warning); }
|
|
33
|
+
.message.error .message-icon { color: var(--danger); }
|
|
34
|
+
.message-body { flex: 1; min-width: 0; }
|
|
35
|
+
.message-title { font-weight: 600; margin-bottom: 2px; }
|
|
36
|
+
.message-content { color: var(--fg-muted); font-size: 12px; }
|
|
37
|
+
.message-close {
|
|
38
|
+
background: transparent; border: none;
|
|
39
|
+
color: var(--fg-subtle); cursor: pointer;
|
|
40
|
+
padding: 0 2px; font-family: inherit;
|
|
41
|
+
}
|
|
42
|
+
.message-close:hover { color: var(--fg); }
|
|
43
|
+
.message.leaving { animation: messageOut var(--dur) var(--ease) forwards; }
|
|
44
|
+
@keyframes messageIn { from { opacity: 0; transform: translateX(20px); } }
|
|
45
|
+
@keyframes messageOut { to { opacity: 0; transform: translateX(20px); } }
|
package/dist/Message.cjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk6ACKL3WH_cjs = require('./chunk-6ACKL3WH.cjs');
|
|
4
|
+
require('./chunk-TJII7BQ2.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "MessageContainer", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunk6ACKL3WH_cjs.MessageContainer; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ToastContainer", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunk6ACKL3WH_cjs.ToastContainer; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "message", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunk6ACKL3WH_cjs.message; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "toast", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunk6ACKL3WH_cjs.toast; }
|
|
23
|
+
});
|