react-tech-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +82 -0
- package/README.en.md +36 -0
- package/README.md +412 -0
- package/dist/DataCard/index.cjs +1 -0
- package/dist/DataCard/index.js +5 -0
- package/dist/DataCard/style.css +1 -0
- package/dist/DataCard.d.ts +1 -0
- package/dist/DecorationLine/index.cjs +1 -0
- package/dist/DecorationLine/index.js +5 -0
- package/dist/DecorationLine/style.css +1 -0
- package/dist/DecorationLine.d.ts +1 -0
- package/dist/DigitalNumber/index.cjs +1 -0
- package/dist/DigitalNumber/index.js +5 -0
- package/dist/DigitalNumber/style.css +1 -0
- package/dist/DigitalNumber.d.ts +1 -0
- package/dist/Drawer/index.cjs +1 -0
- package/dist/Drawer/index.js +5 -0
- package/dist/Drawer/style.css +1 -0
- package/dist/Drawer.d.ts +1 -0
- package/dist/FloatingButton/index.cjs +1 -0
- package/dist/FloatingButton/index.js +5 -0
- package/dist/FloatingButton/style.css +1 -0
- package/dist/FloatingButton.d.ts +1 -0
- package/dist/FlowLight/index.cjs +1 -0
- package/dist/FlowLight/index.js +5 -0
- package/dist/FlowLight/style.css +1 -0
- package/dist/FlowLight.d.ts +1 -0
- package/dist/Icon/index.cjs +1 -0
- package/dist/Icon/index.js +6 -0
- package/dist/Icon/style.css +1 -0
- package/dist/Icon.d.ts +1 -0
- package/dist/Masonry/index.cjs +1 -0
- package/dist/Masonry/index.js +5 -0
- package/dist/Masonry/style.css +1 -0
- package/dist/Masonry.d.ts +1 -0
- package/dist/Modal/index.cjs +1 -0
- package/dist/Modal/index.js +5 -0
- package/dist/Modal/style.css +1 -0
- package/dist/Modal.d.ts +1 -0
- package/dist/Popconfirm/index.cjs +1 -0
- package/dist/Popconfirm/index.js +5 -0
- package/dist/Popconfirm/style.css +1 -0
- package/dist/Popconfirm.d.ts +1 -0
- package/dist/QRCode/index.cjs +1 -0
- package/dist/QRCode/index.js +5 -0
- package/dist/QRCode/style.css +1 -0
- package/dist/QRCode.d.ts +1 -0
- package/dist/ScreenAdapter/index.cjs +1 -0
- package/dist/ScreenAdapter/index.js +5 -0
- package/dist/ScreenAdapter/style.css +1 -0
- package/dist/ScreenAdapter.d.ts +1 -0
- package/dist/ScrollTable/index.cjs +1 -0
- package/dist/ScrollTable/index.js +5 -0
- package/dist/ScrollTable/style.css +1 -0
- package/dist/ScrollTable.d.ts +1 -0
- package/dist/Skeleton/index.cjs +1 -0
- package/dist/Skeleton/index.js +5 -0
- package/dist/Skeleton/style.css +1 -0
- package/dist/Skeleton.d.ts +1 -0
- package/dist/StatusIndicator/index.cjs +1 -0
- package/dist/StatusIndicator/index.js +5 -0
- package/dist/StatusIndicator/style.css +1 -0
- package/dist/StatusIndicator.d.ts +1 -0
- package/dist/TechBorder/index.cjs +1 -0
- package/dist/TechBorder/index.js +5 -0
- package/dist/TechBorder/style.css +1 -0
- package/dist/TechBorder.d.ts +1 -0
- package/dist/TechButton/index.cjs +1 -0
- package/dist/TechButton/index.js +5 -0
- package/dist/TechButton/style.css +1 -0
- package/dist/TechButton.d.ts +1 -0
- package/dist/TechTitle/index.cjs +1 -0
- package/dist/TechTitle/index.js +5 -0
- package/dist/TechTitle/style.css +1 -0
- package/dist/TechTitle.d.ts +1 -0
- package/dist/ThemeProvider/index.cjs +1 -0
- package/dist/ThemeProvider/index.js +8 -0
- package/dist/ThemeProvider/style.css +1 -0
- package/dist/ThemeProvider.d.ts +1 -0
- package/dist/Toast/index.cjs +1 -0
- package/dist/Toast/index.js +5 -0
- package/dist/Toast/style.css +1 -0
- package/dist/Toast.d.ts +1 -0
- package/dist/assets/jsx-runtime-B3A9vq2e.css +1 -0
- package/dist/chunks/DataCard-CY4njdg1.js +61 -0
- package/dist/chunks/DataCard-DjcUGxo9.cjs +1 -0
- package/dist/chunks/DecorationLine-Be4QQyry.cjs +1 -0
- package/dist/chunks/DecorationLine-CaZYIYl6.js +45 -0
- package/dist/chunks/DigitalNumber-BNklEz-G.js +60 -0
- package/dist/chunks/DigitalNumber-BWP5OjvN.cjs +1 -0
- package/dist/chunks/Drawer-CuoztnnD.cjs +1 -0
- package/dist/chunks/Drawer-u77zScbz.js +69 -0
- package/dist/chunks/FloatingButton-DcNfUVcB.js +109 -0
- package/dist/chunks/FloatingButton-nOl8ZHul.cjs +1 -0
- package/dist/chunks/FlowLight-Brrwyxcv.js +62 -0
- package/dist/chunks/FlowLight-DLBCaU07.cjs +1 -0
- package/dist/chunks/Icon-HxIzkEdE.js +147 -0
- package/dist/chunks/Icon-ISAK5vLx.cjs +1 -0
- package/dist/chunks/Masonry-CxVB3-w9.js +84 -0
- package/dist/chunks/Masonry-LPU0R1mE.cjs +1 -0
- package/dist/chunks/Modal-BfCALRKS.js +63 -0
- package/dist/chunks/Modal-DxqX4m57.cjs +1 -0
- package/dist/chunks/Popconfirm-C3npOXd6.js +112 -0
- package/dist/chunks/Popconfirm-CgPdSp84.cjs +1 -0
- package/dist/chunks/QRCode-B2Sdq1f6.cjs +8 -0
- package/dist/chunks/QRCode-BRcujxUT.js +1535 -0
- package/dist/chunks/ScreenAdapter-CugXUEoe.js +61 -0
- package/dist/chunks/ScreenAdapter-DpfmLRd5.cjs +1 -0
- package/dist/chunks/ScrollTable-B21j9zGn.cjs +1 -0
- package/dist/chunks/ScrollTable-NgSlPEKj.js +98 -0
- package/dist/chunks/Skeleton-CKvua4DB.cjs +1 -0
- package/dist/chunks/Skeleton-CQvCi-N8.js +76 -0
- package/dist/chunks/StatusIndicator-CliH19aT.js +40 -0
- package/dist/chunks/StatusIndicator-DhPwugAy.cjs +1 -0
- package/dist/chunks/TechBorder-Cu-JqkTf.js +45 -0
- package/dist/chunks/TechBorder-KTRXvzVv.cjs +1 -0
- package/dist/chunks/TechButton-CTrXjlsD.js +42 -0
- package/dist/chunks/TechButton-DYdIWO-l.cjs +1 -0
- package/dist/chunks/TechTitle-B3pkYIbI.cjs +1 -0
- package/dist/chunks/TechTitle-DfLwdrV5.js +41 -0
- package/dist/chunks/ThemeProvider-CGtZuVnU.cjs +1 -0
- package/dist/chunks/ThemeProvider-uEdKkbFn.js +206 -0
- package/dist/chunks/Toast-CedBaeZV.cjs +1 -0
- package/dist/chunks/Toast-DdlPSfu0.js +79 -0
- package/dist/chunks/index-CcykAxZN.js +6 -0
- package/dist/chunks/index-pCtiW2Id.cjs +1 -0
- package/dist/chunks/jsx-runtime-7asRZgsb.cjs +30 -0
- package/dist/chunks/jsx-runtime-C6iVud2f.js +630 -0
- package/dist/components/DataCard/DataCard.d.ts +18 -0
- package/dist/components/DataCard/entry.d.ts +3 -0
- package/dist/components/DataCard/index.d.ts +2 -0
- package/dist/components/DecorationLine/DecorationLine.d.ts +14 -0
- package/dist/components/DecorationLine/entry.d.ts +3 -0
- package/dist/components/DecorationLine/index.d.ts +2 -0
- package/dist/components/DigitalNumber/DigitalNumber.d.ts +17 -0
- package/dist/components/DigitalNumber/entry.d.ts +3 -0
- package/dist/components/DigitalNumber/index.d.ts +2 -0
- package/dist/components/Drawer/Drawer.d.ts +18 -0
- package/dist/components/Drawer/entry.d.ts +3 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/FloatingButton/FloatingButton.d.ts +24 -0
- package/dist/components/FloatingButton/entry.d.ts +3 -0
- package/dist/components/FloatingButton/index.d.ts +2 -0
- package/dist/components/FlowLight/FlowLight.d.ts +14 -0
- package/dist/components/FlowLight/entry.d.ts +3 -0
- package/dist/components/FlowLight/index.d.ts +2 -0
- package/dist/components/Icon/Icon.d.ts +16 -0
- package/dist/components/Icon/entry.d.ts +4 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Masonry/Masonry.d.ts +23 -0
- package/dist/components/Masonry/entry.d.ts +3 -0
- package/dist/components/Masonry/index.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts +18 -0
- package/dist/components/Modal/entry.d.ts +3 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Popconfirm/Popconfirm.d.ts +19 -0
- package/dist/components/Popconfirm/entry.d.ts +3 -0
- package/dist/components/Popconfirm/index.d.ts +2 -0
- package/dist/components/QRCode/QRCode.d.ts +19 -0
- package/dist/components/QRCode/entry.d.ts +3 -0
- package/dist/components/QRCode/index.d.ts +2 -0
- package/dist/components/ScreenAdapter/ScreenAdapter.d.ts +13 -0
- package/dist/components/ScreenAdapter/entry.d.ts +3 -0
- package/dist/components/ScreenAdapter/index.d.ts +2 -0
- package/dist/components/ScrollTable/ScrollTable.d.ts +23 -0
- package/dist/components/ScrollTable/entry.d.ts +3 -0
- package/dist/components/ScrollTable/index.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.d.ts +16 -0
- package/dist/components/Skeleton/entry.d.ts +3 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +14 -0
- package/dist/components/StatusIndicator/entry.d.ts +3 -0
- package/dist/components/StatusIndicator/index.d.ts +2 -0
- package/dist/components/TechBorder/TechBorder.d.ts +15 -0
- package/dist/components/TechBorder/entry.d.ts +3 -0
- package/dist/components/TechBorder/index.d.ts +2 -0
- package/dist/components/TechButton/TechButton.d.ts +15 -0
- package/dist/components/TechButton/entry.d.ts +3 -0
- package/dist/components/TechButton/index.d.ts +2 -0
- package/dist/components/TechTitle/TechTitle.d.ts +14 -0
- package/dist/components/TechTitle/entry.d.ts +3 -0
- package/dist/components/TechTitle/index.d.ts +2 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +42 -0
- package/dist/components/ThemeProvider/entry.d.ts +3 -0
- package/dist/components/ThemeProvider/index.d.ts +2 -0
- package/dist/components/Toast/Toast.d.ts +23 -0
- package/dist/components/Toast/entry.d.ts +3 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/index/index.cjs +1 -0
- package/dist/index/index.js +49 -0
- package/dist/index/style.css +41 -0
- package/dist/index.d.ts +31 -0
- package/dist/jsx-runtime/style.css +1 -0
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.d.ts +46 -0
- package/dist/theme/index.js +48 -0
- package/dist/theme.d.ts +1 -0
- package/dist/utils/index.d.ts +8 -0
- package/package.json +165 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { j as i } from "./jsx-runtime-C6iVud2f.js";
|
|
2
|
+
import { useState as g, useCallback as m, useEffect as y, useContext as u, createContext as l } from "react";
|
|
3
|
+
const t = {
|
|
4
|
+
"cyber-blue": {
|
|
5
|
+
"--tech-primary": "#00d4ff",
|
|
6
|
+
"--tech-primary-dark": "#0098d4",
|
|
7
|
+
"--tech-primary-light": "#33ddff",
|
|
8
|
+
"--tech-secondary": "#0affb0",
|
|
9
|
+
"--tech-secondary-dark": "#08c98a",
|
|
10
|
+
"--tech-accent": "#ff6b35",
|
|
11
|
+
"--tech-warning": "#ffd000",
|
|
12
|
+
"--tech-danger": "#ff4757",
|
|
13
|
+
"--tech-success": "#0affb0",
|
|
14
|
+
"--tech-bg-dark": "#0a0e27",
|
|
15
|
+
"--tech-bg-medium": "#0d1135",
|
|
16
|
+
"--tech-bg-light": "#131842",
|
|
17
|
+
"--tech-bg-card": "rgba(13, 17, 53, 0.85)",
|
|
18
|
+
"--tech-bg-card-hover": "rgba(19, 24, 66, 0.9)",
|
|
19
|
+
"--tech-border": "rgba(0, 212, 255, 0.3)",
|
|
20
|
+
"--tech-border-active": "rgba(0, 212, 255, 0.7)",
|
|
21
|
+
"--tech-text-primary": "#e8eaf6",
|
|
22
|
+
"--tech-text-secondary": "rgba(232, 234, 246, 0.65)",
|
|
23
|
+
"--tech-text-muted": "rgba(232, 234, 246, 0.35)",
|
|
24
|
+
"--tech-glow-primary": "rgba(0, 212, 255, 0.15)",
|
|
25
|
+
"--tech-glow-secondary": "rgba(10, 255, 176, 0.15)"
|
|
26
|
+
},
|
|
27
|
+
"neon-green": {
|
|
28
|
+
"--tech-primary": "#0affb0",
|
|
29
|
+
"--tech-primary-dark": "#08c98a",
|
|
30
|
+
"--tech-primary-light": "#33ffc4",
|
|
31
|
+
"--tech-secondary": "#00d4ff",
|
|
32
|
+
"--tech-secondary-dark": "#0098d4",
|
|
33
|
+
"--tech-accent": "#ff6b35",
|
|
34
|
+
"--tech-warning": "#ffd000",
|
|
35
|
+
"--tech-danger": "#ff4757",
|
|
36
|
+
"--tech-success": "#0affb0",
|
|
37
|
+
"--tech-bg-dark": "#050f0a",
|
|
38
|
+
"--tech-bg-medium": "#081a10",
|
|
39
|
+
"--tech-bg-light": "#0e2518",
|
|
40
|
+
"--tech-bg-card": "rgba(8, 26, 16, 0.85)",
|
|
41
|
+
"--tech-bg-card-hover": "rgba(14, 37, 24, 0.9)",
|
|
42
|
+
"--tech-border": "rgba(10, 255, 176, 0.3)",
|
|
43
|
+
"--tech-border-active": "rgba(10, 255, 176, 0.7)",
|
|
44
|
+
"--tech-text-primary": "#e8f6ee",
|
|
45
|
+
"--tech-text-secondary": "rgba(232, 246, 238, 0.65)",
|
|
46
|
+
"--tech-text-muted": "rgba(232, 246, 238, 0.35)",
|
|
47
|
+
"--tech-glow-primary": "rgba(10, 255, 176, 0.15)",
|
|
48
|
+
"--tech-glow-secondary": "rgba(0, 212, 255, 0.15)"
|
|
49
|
+
},
|
|
50
|
+
"aurora-purple": {
|
|
51
|
+
"--tech-primary": "#a855f7",
|
|
52
|
+
"--tech-primary-dark": "#7c3aed",
|
|
53
|
+
"--tech-primary-light": "#c084fc",
|
|
54
|
+
"--tech-secondary": "#06b6d4",
|
|
55
|
+
"--tech-secondary-dark": "#0891b2",
|
|
56
|
+
"--tech-accent": "#f472b6",
|
|
57
|
+
"--tech-warning": "#fbbf24",
|
|
58
|
+
"--tech-danger": "#ef4444",
|
|
59
|
+
"--tech-success": "#34d399",
|
|
60
|
+
"--tech-bg-dark": "#0c0515",
|
|
61
|
+
"--tech-bg-medium": "#120a20",
|
|
62
|
+
"--tech-bg-light": "#1a1030",
|
|
63
|
+
"--tech-bg-card": "rgba(18, 10, 32, 0.85)",
|
|
64
|
+
"--tech-bg-card-hover": "rgba(26, 16, 48, 0.9)",
|
|
65
|
+
"--tech-border": "rgba(168, 85, 247, 0.3)",
|
|
66
|
+
"--tech-border-active": "rgba(168, 85, 247, 0.7)",
|
|
67
|
+
"--tech-text-primary": "#f0e6f6",
|
|
68
|
+
"--tech-text-secondary": "rgba(240, 230, 246, 0.65)",
|
|
69
|
+
"--tech-text-muted": "rgba(240, 230, 246, 0.35)",
|
|
70
|
+
"--tech-glow-primary": "rgba(168, 85, 247, 0.15)",
|
|
71
|
+
"--tech-glow-secondary": "rgba(6, 182, 212, 0.15)"
|
|
72
|
+
},
|
|
73
|
+
"sunset-orange": {
|
|
74
|
+
"--tech-primary": "#ff6b35",
|
|
75
|
+
"--tech-primary-dark": "#e55a2b",
|
|
76
|
+
"--tech-primary-light": "#ff8f66",
|
|
77
|
+
"--tech-secondary": "#ffd000",
|
|
78
|
+
"--tech-secondary-dark": "#d4ad00",
|
|
79
|
+
"--tech-accent": "#00d4ff",
|
|
80
|
+
"--tech-warning": "#ffd000",
|
|
81
|
+
"--tech-danger": "#ff4757",
|
|
82
|
+
"--tech-success": "#0affb0",
|
|
83
|
+
"--tech-bg-dark": "#120a05",
|
|
84
|
+
"--tech-bg-medium": "#1a0f08",
|
|
85
|
+
"--tech-bg-light": "#241810",
|
|
86
|
+
"--tech-bg-card": "rgba(26, 15, 8, 0.85)",
|
|
87
|
+
"--tech-bg-card-hover": "rgba(36, 24, 16, 0.9)",
|
|
88
|
+
"--tech-border": "rgba(255, 107, 53, 0.3)",
|
|
89
|
+
"--tech-border-active": "rgba(255, 107, 53, 0.7)",
|
|
90
|
+
"--tech-text-primary": "#f6ece6",
|
|
91
|
+
"--tech-text-secondary": "rgba(246, 236, 230, 0.65)",
|
|
92
|
+
"--tech-text-muted": "rgba(246, 236, 230, 0.35)",
|
|
93
|
+
"--tech-glow-primary": "rgba(255, 107, 53, 0.15)",
|
|
94
|
+
"--tech-glow-secondary": "rgba(255, 208, 0, 0.15)"
|
|
95
|
+
},
|
|
96
|
+
"crimson-red": {
|
|
97
|
+
"--tech-primary": "#ff4757",
|
|
98
|
+
"--tech-primary-dark": "#dc2626",
|
|
99
|
+
"--tech-primary-light": "#ff6b7a",
|
|
100
|
+
"--tech-secondary": "#fbbf24",
|
|
101
|
+
"--tech-secondary-dark": "#d4a017",
|
|
102
|
+
"--tech-accent": "#00d4ff",
|
|
103
|
+
"--tech-warning": "#ffd000",
|
|
104
|
+
"--tech-danger": "#ff4757",
|
|
105
|
+
"--tech-success": "#34d399",
|
|
106
|
+
"--tech-bg-dark": "#0f0508",
|
|
107
|
+
"--tech-bg-medium": "#180810",
|
|
108
|
+
"--tech-bg-light": "#220c16",
|
|
109
|
+
"--tech-bg-card": "rgba(24, 8, 16, 0.85)",
|
|
110
|
+
"--tech-bg-card-hover": "rgba(34, 12, 22, 0.9)",
|
|
111
|
+
"--tech-border": "rgba(255, 71, 87, 0.3)",
|
|
112
|
+
"--tech-border-active": "rgba(255, 71, 87, 0.7)",
|
|
113
|
+
"--tech-text-primary": "#f6e6e8",
|
|
114
|
+
"--tech-text-secondary": "rgba(246, 230, 232, 0.65)",
|
|
115
|
+
"--tech-text-muted": "rgba(246, 230, 232, 0.35)",
|
|
116
|
+
"--tech-glow-primary": "rgba(255, 71, 87, 0.15)",
|
|
117
|
+
"--tech-glow-secondary": "rgba(251, 191, 36, 0.15)"
|
|
118
|
+
},
|
|
119
|
+
"gold-luxury": {
|
|
120
|
+
"--tech-primary": "#fbbf24",
|
|
121
|
+
"--tech-primary-dark": "#d4a017",
|
|
122
|
+
"--tech-primary-light": "#fcd34d",
|
|
123
|
+
"--tech-secondary": "#a855f7",
|
|
124
|
+
"--tech-secondary-dark": "#7c3aed",
|
|
125
|
+
"--tech-accent": "#00d4ff",
|
|
126
|
+
"--tech-warning": "#fbbf24",
|
|
127
|
+
"--tech-danger": "#ef4444",
|
|
128
|
+
"--tech-success": "#34d399",
|
|
129
|
+
"--tech-bg-dark": "#0a0805",
|
|
130
|
+
"--tech-bg-medium": "#14100a",
|
|
131
|
+
"--tech-bg-light": "#1e1810",
|
|
132
|
+
"--tech-bg-card": "rgba(20, 16, 10, 0.85)",
|
|
133
|
+
"--tech-bg-card-hover": "rgba(30, 24, 16, 0.9)",
|
|
134
|
+
"--tech-border": "rgba(251, 191, 36, 0.3)",
|
|
135
|
+
"--tech-border-active": "rgba(251, 191, 36, 0.7)",
|
|
136
|
+
"--tech-text-primary": "#f6f0e6",
|
|
137
|
+
"--tech-text-secondary": "rgba(246, 240, 230, 0.65)",
|
|
138
|
+
"--tech-text-muted": "rgba(246, 240, 230, 0.35)",
|
|
139
|
+
"--tech-glow-primary": "rgba(251, 191, 36, 0.15)",
|
|
140
|
+
"--tech-glow-secondary": "rgba(168, 85, 247, 0.15)"
|
|
141
|
+
},
|
|
142
|
+
"dark-abyss": {
|
|
143
|
+
"--tech-primary": "#64748b",
|
|
144
|
+
"--tech-primary-dark": "#475569",
|
|
145
|
+
"--tech-primary-light": "#94a3b8",
|
|
146
|
+
"--tech-secondary": "#a1a1aa",
|
|
147
|
+
"--tech-secondary-dark": "#71717a",
|
|
148
|
+
"--tech-accent": "#f87171",
|
|
149
|
+
"--tech-warning": "#fbbf24",
|
|
150
|
+
"--tech-danger": "#ef4444",
|
|
151
|
+
"--tech-success": "#6ee7b7",
|
|
152
|
+
"--tech-bg-dark": "#000000",
|
|
153
|
+
"--tech-bg-medium": "#09090b",
|
|
154
|
+
"--tech-bg-light": "#18181b",
|
|
155
|
+
"--tech-bg-card": "rgba(9, 9, 11, 0.92)",
|
|
156
|
+
"--tech-bg-card-hover": "rgba(24, 24, 27, 0.95)",
|
|
157
|
+
"--tech-border": "rgba(100, 116, 139, 0.25)",
|
|
158
|
+
"--tech-border-active": "rgba(100, 116, 139, 0.6)",
|
|
159
|
+
"--tech-text-primary": "#e4e4e7",
|
|
160
|
+
"--tech-text-secondary": "rgba(228, 228, 231, 0.55)",
|
|
161
|
+
"--tech-text-muted": "rgba(228, 228, 231, 0.25)",
|
|
162
|
+
"--tech-glow-primary": "rgba(100, 116, 139, 0.1)",
|
|
163
|
+
"--tech-glow-secondary": "rgba(161, 161, 170, 0.08)"
|
|
164
|
+
}
|
|
165
|
+
}, p = {
|
|
166
|
+
"cyber-blue": "赛博蓝",
|
|
167
|
+
"neon-green": "霓虹绿",
|
|
168
|
+
"aurora-purple": "极光紫",
|
|
169
|
+
"sunset-orange": "落日橙",
|
|
170
|
+
"crimson-red": "赤焰红",
|
|
171
|
+
"gold-luxury": "鎏金",
|
|
172
|
+
"dark-abyss": "暗黑深渊"
|
|
173
|
+
}, d = l(null), w = ({
|
|
174
|
+
defaultTheme: r = "cyber-blue",
|
|
175
|
+
children: o
|
|
176
|
+
}) => {
|
|
177
|
+
const [s, h] = g(r), [a, b] = g(
|
|
178
|
+
t[r] || t["cyber-blue"]
|
|
179
|
+
), f = m((e, c) => {
|
|
180
|
+
c ? (h(e), b(c)) : t[e] && (h(e), b(t[e]));
|
|
181
|
+
}, []);
|
|
182
|
+
return y(() => {
|
|
183
|
+
const e = document.documentElement;
|
|
184
|
+
Object.entries(a).forEach(([c, n]) => {
|
|
185
|
+
e.style.setProperty(c, n);
|
|
186
|
+
});
|
|
187
|
+
}, [a]), /* @__PURE__ */ i.jsx(
|
|
188
|
+
d.Provider,
|
|
189
|
+
{
|
|
190
|
+
value: { themeName: s, themeVars: a, setTheme: f, presetThemes: t, themeLabels: p },
|
|
191
|
+
children: o
|
|
192
|
+
}
|
|
193
|
+
);
|
|
194
|
+
};
|
|
195
|
+
function v() {
|
|
196
|
+
const r = u(d);
|
|
197
|
+
if (!r)
|
|
198
|
+
throw new Error("useTheme must be used within a ThemeProvider");
|
|
199
|
+
return r;
|
|
200
|
+
}
|
|
201
|
+
export {
|
|
202
|
+
w as T,
|
|
203
|
+
t as p,
|
|
204
|
+
p as t,
|
|
205
|
+
v as u
|
|
206
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./jsx-runtime-7asRZgsb.cjs"),l=require("react"),u=require("react-dom"),d=require("./index-pCtiW2Id.cjs"),x={info:"⬡",success:"✦",warning:"⚡",error:"✕",loading:"◎"};let n=[],o=null,_=0;function m(){return`tech-toast-${++_}`}function c(e){const t=m(),s={id:t,visible:!1,duration:3e3,closable:!1,type:"info",...e};return n=[...n,s],o==null||o([...n]),requestAnimationFrame(()=>{n=n.map(a=>a.id===t?{...a,visible:!0}:a),o==null||o([...n])}),s.duration&&s.duration>0&&s.type!=="loading"&&setTimeout(()=>i(t),s.duration),t}function i(e){n=n.map(t=>t.id===e?{...t,visible:!1}:t),o==null||o([...n]),setTimeout(()=>{n=n.filter(t=>t.id!==e),o==null||o([...n])},300)}const p=()=>{const[e,t]=l.useState(n);return l.useEffect(()=>(o=t,()=>{o=null}),[]),u.createPortal(r.jsxRuntimeExports.jsx("div",{className:"tech-toast-container",children:e.map(s=>r.jsxRuntimeExports.jsxs("div",{className:d.clsx("tech-toast",`tech-toast--${s.type}`,s.visible&&"tech-toast--visible",s.className),style:s.style,children:[r.jsxRuntimeExports.jsx("div",{className:"tech-toast__scan-line"}),r.jsxRuntimeExports.jsx("div",{className:"tech-toast__corner tech-toast__corner--tl"}),r.jsxRuntimeExports.jsx("div",{className:"tech-toast__corner tech-toast__corner--tr"}),r.jsxRuntimeExports.jsx("div",{className:"tech-toast__corner tech-toast__corner--bl"}),r.jsxRuntimeExports.jsx("div",{className:"tech-toast__corner tech-toast__corner--br"}),r.jsxRuntimeExports.jsxs("div",{className:"tech-toast__icon",children:[s.icon||x[s.type||"info"],s.type==="loading"&&r.jsxRuntimeExports.jsx("span",{className:"tech-toast__loading-ring"})]}),r.jsxRuntimeExports.jsx("div",{className:"tech-toast__content",children:s.content}),s.closable&&r.jsxRuntimeExports.jsx("button",{className:"tech-toast__close",onClick:()=>i(s.id),children:"✕"})]},s.id))}),document.body)},h={info:(e,t)=>c({content:e,type:"info",...t}),success:(e,t)=>c({content:e,type:"success",...t}),warning:(e,t)=>c({content:e,type:"warning",...t}),error:(e,t)=>c({content:e,type:"error",...t}),loading:(e,t)=>c({content:e,type:"loading",duration:0,...t}),custom:e=>c(e),close:e=>i(e),Container:p};exports.Toast=h;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { j as c } from "./jsx-runtime-C6iVud2f.js";
|
|
2
|
+
import { useState as l, useEffect as d } from "react";
|
|
3
|
+
import { createPortal as u } from "react-dom";
|
|
4
|
+
import { c as _ } from "./index-CcykAxZN.js";
|
|
5
|
+
const h = {
|
|
6
|
+
info: "⬡",
|
|
7
|
+
success: "✦",
|
|
8
|
+
warning: "⚡",
|
|
9
|
+
error: "✕",
|
|
10
|
+
loading: "◎"
|
|
11
|
+
};
|
|
12
|
+
let a = [], o = null, m = 0;
|
|
13
|
+
function p() {
|
|
14
|
+
return `tech-toast-${++m}`;
|
|
15
|
+
}
|
|
16
|
+
function n(e) {
|
|
17
|
+
const t = p(), s = {
|
|
18
|
+
id: t,
|
|
19
|
+
visible: !1,
|
|
20
|
+
duration: 3e3,
|
|
21
|
+
closable: !1,
|
|
22
|
+
type: "info",
|
|
23
|
+
...e
|
|
24
|
+
};
|
|
25
|
+
return a = [...a, s], o == null || o([...a]), requestAnimationFrame(() => {
|
|
26
|
+
a = a.map((r) => r.id === t ? { ...r, visible: !0 } : r), o == null || o([...a]);
|
|
27
|
+
}), s.duration && s.duration > 0 && s.type !== "loading" && setTimeout(() => i(t), s.duration), t;
|
|
28
|
+
}
|
|
29
|
+
function i(e) {
|
|
30
|
+
a = a.map((t) => t.id === e ? { ...t, visible: !1 } : t), o == null || o([...a]), setTimeout(() => {
|
|
31
|
+
a = a.filter((t) => t.id !== e), o == null || o([...a]);
|
|
32
|
+
}, 300);
|
|
33
|
+
}
|
|
34
|
+
const f = () => {
|
|
35
|
+
const [e, t] = l(a);
|
|
36
|
+
return d(() => (o = t, () => {
|
|
37
|
+
o = null;
|
|
38
|
+
}), []), u(
|
|
39
|
+
/* @__PURE__ */ c.jsx("div", { className: "tech-toast-container", children: e.map((s) => /* @__PURE__ */ c.jsxs(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
className: _(
|
|
43
|
+
"tech-toast",
|
|
44
|
+
`tech-toast--${s.type}`,
|
|
45
|
+
s.visible && "tech-toast--visible",
|
|
46
|
+
s.className
|
|
47
|
+
),
|
|
48
|
+
style: s.style,
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ c.jsx("div", { className: "tech-toast__scan-line" }),
|
|
51
|
+
/* @__PURE__ */ c.jsx("div", { className: "tech-toast__corner tech-toast__corner--tl" }),
|
|
52
|
+
/* @__PURE__ */ c.jsx("div", { className: "tech-toast__corner tech-toast__corner--tr" }),
|
|
53
|
+
/* @__PURE__ */ c.jsx("div", { className: "tech-toast__corner tech-toast__corner--bl" }),
|
|
54
|
+
/* @__PURE__ */ c.jsx("div", { className: "tech-toast__corner tech-toast__corner--br" }),
|
|
55
|
+
/* @__PURE__ */ c.jsxs("div", { className: "tech-toast__icon", children: [
|
|
56
|
+
s.icon || h[s.type || "info"],
|
|
57
|
+
s.type === "loading" && /* @__PURE__ */ c.jsx("span", { className: "tech-toast__loading-ring" })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ c.jsx("div", { className: "tech-toast__content", children: s.content }),
|
|
60
|
+
s.closable && /* @__PURE__ */ c.jsx("button", { className: "tech-toast__close", onClick: () => i(s.id), children: "✕" })
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
s.id
|
|
64
|
+
)) }),
|
|
65
|
+
document.body
|
|
66
|
+
);
|
|
67
|
+
}, N = {
|
|
68
|
+
info: (e, t) => n({ content: e, type: "info", ...t }),
|
|
69
|
+
success: (e, t) => n({ content: e, type: "success", ...t }),
|
|
70
|
+
warning: (e, t) => n({ content: e, type: "warning", ...t }),
|
|
71
|
+
error: (e, t) => n({ content: e, type: "error", ...t }),
|
|
72
|
+
loading: (e, t) => n({ content: e, type: "loading", duration: 0, ...t }),
|
|
73
|
+
custom: (e) => n(e),
|
|
74
|
+
close: (e) => i(e),
|
|
75
|
+
Container: f
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
N as T
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function t(...n){return n.filter(Boolean).join(" ")}exports.clsx=t;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";const Se=require("react");var X={exports:{}},k={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Te;function lr(){if(Te)return k;Te=1;var V=Se,C=Symbol.for("react.element"),M=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,F=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A={key:!0,ref:!0,__self:!0,__source:!0};function w(_,f,T){var p,E={},b=null,I=null;T!==void 0&&(b=""+T),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(I=f.ref);for(p in f)m.call(f,p)&&!A.hasOwnProperty(p)&&(E[p]=f[p]);if(_&&_.defaultProps)for(p in f=_.defaultProps,f)E[p]===void 0&&(E[p]=f[p]);return{$$typeof:C,type:_,key:b,ref:I,props:E,_owner:F.current}}return k.Fragment=M,k.jsx=w,k.jsxs=w,k}var D={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Oe;function fr(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){var V=Se,C=Symbol.for("react.element"),M=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),H=Symbol.iterator,Pe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var r=H&&e[H]||e[Pe];return typeof r=="function"?r:null}var O=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];we("error",e,t)}}function we(e,r,t){{var n=O.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var je=!1,xe=!1,ke=!1,De=!1,Fe=!1,Z;Z=Symbol.for("react.module.reference");function Ae(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===A||Fe||e===F||e===T||e===p||De||e===I||je||xe||ke||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===E||e.$$typeof===w||e.$$typeof===_||e.$$typeof===f||e.$$typeof===Z||e.getModuleId!==void 0))}function Ie(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function Q(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case M:return"Portal";case A:return"Profiler";case F:return"StrictMode";case T:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return Q(r)+".Consumer";case w:var t=e;return Q(t._context)+".Provider";case f:return Ie(e,e.render,"ForwardRef");case E:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case b:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var h=Object.assign,j=0,ee,re,te,ne,ae,ie,oe;function ue(){}ue.__reactDisabledLog=!0;function $e(){{if(j===0){ee=console.log,re=console.info,te=console.warn,ne=console.error,ae=console.group,ie=console.groupCollapsed,oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}}function We(){{if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:ee}),info:h({},e,{value:re}),warn:h({},e,{value:te}),error:h({},e,{value:ne}),group:h({},e,{value:ae}),groupCollapsed:h({},e,{value:ie}),groupEnd:h({},e,{value:oe})})}j<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=O.ReactCurrentDispatcher,N;function $(e,r,t){{if(N===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return`
|
|
18
|
+
`+N+e}}var q=!1,W;{var Ye=typeof WeakMap=="function"?WeakMap:Map;W=new Ye}function se(e,r){if(!e||q)return"";{var t=W.get(e);if(t!==void 0)return t}var n;q=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=U.current,U.current=null,$e();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(d){n=d}Reflect.construct(e,[],i)}else{try{i.call()}catch(d){n=d}e.call(i.prototype)}}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
|
|
19
|
+
`),v=n.stack.split(`
|
|
20
|
+
`),s=a.length-1,l=v.length-1;s>=1&&l>=0&&a[s]!==v[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==v[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==v[l]){var g=`
|
|
21
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&W.set(e,g),g}while(s>=1&&l>=0);break}}}finally{q=!1,U.current=u,We(),Error.prepareStackTrace=o}var P=e?e.displayName||e.name:"",R=P?$(P):"";return typeof e=="function"&&W.set(e,R),R}function Le(e,r,t){return se(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Y(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Ve(e));if(typeof e=="string")return $(e);switch(e){case T:return $("Suspense");case p:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Le(e.render);case E:return Y(e.type,r,t);case b:{var n=e,o=n._payload,u=n._init;try{return Y(u(o),r,t)}catch{}}}return""}var x=Object.prototype.hasOwnProperty,le={},fe=O.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(t)}else fe.setExtraStackFrame(null)}function Me(e,r,t,n,o){{var u=Function.call.bind(x);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(L(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),L(null)),a instanceof Error&&!(a.message in le)&&(le[a.message]=!0,L(o),c("Failed %s type: %s",t,a.message),L(null))}}}var Ue=Array.isArray;function B(e){return Ue(e)}function Ne(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function qe(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function ve(e){if(qe(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ne(e)),ce(e)}var de=O.ReactCurrentOwner,Be={key:!0,ref:!0,__self:!0,__source:!0},pe,ge;function Je(e){if(x.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(x.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ge(e,r){typeof e.ref=="string"&&de.current}function ze(e,r){{var t=function(){pe||(pe=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Xe(e,r){{var t=function(){ge||(ge=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var He=function(e,r,t,n,o,u,i){var a={$$typeof:C,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Ze(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(ve(t),a=""+t),Ke(r)&&(ve(r.key),a=""+r.key),Je(r)&&(v=r.ref,Ge(r,o));for(u in r)x.call(r,u)&&!Be.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ze(i,l),v&&Xe(i,l)}return He(e,a,v,o,n,de.current,i)}}var J=O.ReactCurrentOwner,Ee=O.ReactDebugCurrentFrame;function S(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var K;K=!1;function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function ye(){{if(J.current){var e=y(J.current.type);if(e)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function Qe(e){return""}var _e={};function er(e){{var r=ye();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=er(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),S(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),S(null)}}function he(e,r){{if(typeof e!="object")return;if(B(e))for(var t=0;t<e.length;t++){var n=e[t];G(n)&&be(n,r)}else if(G(e))e._store&&(e._store.validated=!0);else if(e){var o=Ce(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)G(i.value)&&be(i.value,r)}}}function rr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===E))t=r.propTypes;else return;if(t){var n=y(r);Me(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var o=y(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){S(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),S(null);break}}e.ref!==null&&(S(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),S(null))}}var Re={};function me(e,r,t,n,o,u){{var i=Ae(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=Qe();v?a+=v:a+=ye();var s;e===null?s="null":B(e)?s="array":e!==void 0&&e.$$typeof===C?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=Ze(e,r,t,o,u);if(l==null)return l;if(i){var g=r.children;if(g!==void 0)if(n)if(B(g)){for(var P=0;P<g.length;P++)he(g[P],e);Object.freeze&&Object.freeze(g)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(g,e)}if(x.call(r,"key")){var R=y(e),d=Object.keys(r).filter(function(sr){return sr!=="key"}),z=d.length>0?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}";if(!Re[R+z]){var ur=d.length>0?"{"+d.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,z,R,ur,R),Re[R+z]=!0}}return e===m?tr(l):rr(l),l}}function nr(e,r,t){return me(e,r,t,!0)}function ar(e,r,t){return me(e,r,t,!1)}var ir=ar,or=nr;D.Fragment=m,D.jsx=ir,D.jsxs=or}()),D}process.env.NODE_ENV==="production"?X.exports=lr():X.exports=fr();var cr=X.exports;exports.jsxRuntimeExports=cr;
|