@catalystsoftware/ui 1.0.5 → 1.0.6
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/data/data.tsx +29 -29
- package/dist/data/tailwind.config.js +3821 -261
- package/dist/data.tsx +29 -29
- package/package.json +4 -3
- package/components/catalyst-ui/buttons/burger.tsx +0 -207
- package/components/catalyst-ui/core/data-display/timeline.tsx +0 -210
- package/components/catalyst-ui/core/feedback/alert.tsx +0 -491
- package/components/catalyst-ui/core/feedback/spinner-1.tsx +0 -65
- package/components/catalyst-ui/core/feedback/toast.tsx +0 -1857
- package/components/catalyst-ui/core/navigation/menu.tsx +0 -164
- package/components/catalyst-ui/forms/toggle-class.tsx +0 -176
- package/components/catalyst-ui/hooks/use-copy-to-clipboard.tsx +0 -419
- package/components/catalyst-ui/hooks/use-counter.tsx +0 -13
- package/components/catalyst-ui/hooks/use-event-listener.tsx +0 -23
- package/components/catalyst-ui/hooks/use-export-markdown.tsx +0 -47
- package/components/catalyst-ui/hooks/use-focus.tsx +0 -17
- package/components/catalyst-ui/hooks/use-interval.tsx +0 -23
- package/components/catalyst-ui/hooks/use-is-client.tsx +0 -16
- package/components/catalyst-ui/hooks/use-media-query.tsx +0 -19
- package/components/catalyst-ui/hooks/use-mobile.tsx +0 -19
- package/components/catalyst-ui/hooks/use-resize-observer.tsx +0 -81
- package/components/catalyst-ui/hooks/use-timeout.tsx +0 -21
- package/components/catalyst-ui/hooks/use-timer.tsx +0 -209
- package/components/catalyst-ui/hooks/use-toggle.tsx +0 -12
- package/components/catalyst-ui/media/image.tsx +0 -13
- package/components/catalyst-ui/overlays/dual-sidebar.tsx +0 -4142
- package/components/catalyst-ui/overlays/sidebar-original.tsx +0 -726
- package/components/catalyst-ui/primitives/accordion.tsx +0 -250
- package/components/catalyst-ui/primitives/alert-dialog.tsx +0 -126
- package/components/catalyst-ui/primitives/aspect-ratio.tsx +0 -9
- package/components/catalyst-ui/primitives/avatar.tsx +0 -296
- package/components/catalyst-ui/primitives/badge.tsx +0 -57
- package/components/catalyst-ui/primitives/breadcrumb.tsx +0 -101
- package/components/catalyst-ui/primitives/button.tsx +0 -265
- package/components/catalyst-ui/primitives/calendar-v4.tsx +0 -208
- package/components/catalyst-ui/primitives/calendar.tsx +0 -295
- package/components/catalyst-ui/primitives/card.tsx +0 -618
- package/components/catalyst-ui/primitives/carousel.tsx +0 -238
- package/components/catalyst-ui/primitives/chart.tsx +0 -347
- package/components/catalyst-ui/primitives/checkbox.tsx +0 -225
- package/components/catalyst-ui/primitives/collapsible.tsx +0 -212
- package/components/catalyst-ui/primitives/command.tsx +0 -393
- package/components/catalyst-ui/primitives/context-menu.tsx +0 -236
- package/components/catalyst-ui/primitives/dialog.tsx +0 -471
- package/components/catalyst-ui/primitives/drawer.tsx +0 -761
- package/components/catalyst-ui/primitives/dropdown-menu.tsx +0 -290
- package/components/catalyst-ui/primitives/empty.tsx +0 -104
- package/components/catalyst-ui/primitives/field.tsx +0 -244
- package/components/catalyst-ui/primitives/hover-card.tsx +0 -124
- package/components/catalyst-ui/primitives/input-otp.tsx +0 -76
- package/components/catalyst-ui/primitives/input.tsx +0 -64
- package/components/catalyst-ui/primitives/item.tsx +0 -196
- package/components/catalyst-ui/primitives/kbd.tsx +0 -75
- package/components/catalyst-ui/primitives/label.tsx +0 -24
- package/components/catalyst-ui/primitives/navigation-menu.tsx +0 -150
- package/components/catalyst-ui/primitives/pagination.tsx +0 -198
- package/components/catalyst-ui/primitives/popover.tsx +0 -232
- package/components/catalyst-ui/primitives/progress.tsx +0 -34
- package/components/catalyst-ui/primitives/radio-group.tsx +0 -43
- package/components/catalyst-ui/primitives/resizable.tsx +0 -56
- package/components/catalyst-ui/primitives/select.tsx +0 -155
- package/components/catalyst-ui/primitives/separator.tsx +0 -74
- package/components/catalyst-ui/primitives/sheet.tsx +0 -126
- package/components/catalyst-ui/primitives/skeleton.tsx +0 -15
- package/components/catalyst-ui/primitives/slider.tsx +0 -27
- package/components/catalyst-ui/primitives/switch.tsx +0 -187
- package/components/catalyst-ui/primitives/tabs.tsx +0 -335
- package/components/catalyst-ui/primitives/textarea.tsx +0 -24
- package/components/catalyst-ui/primitives/toggle-group.tsx +0 -55
- package/components/catalyst-ui/primitives/toggle.tsx +0 -42
- package/components/catalyst-ui/primitives/tooltip.tsx +0 -116
- package/components/catalyst-ui/utils/basic-auth.tsx +0 -40
- package/components/catalyst-ui/utils/context-storage.tsx +0 -19
- package/components/catalyst-ui/utils/cors-middleware.tsx +0 -71
- package/components/catalyst-ui/utils/deferred-content.tsx +0 -595
- package/components/catalyst-ui/utils/honeypot-middleware.tsx +0 -38
- package/components/catalyst-ui/utils/incId.tsx +0 -75
- package/components/catalyst-ui/utils/jwk-auth.tsx +0 -36
- package/components/catalyst-ui/utils/request-id.tsx +0 -14
- package/components/catalyst-ui/utils/secure-headers.tsx +0 -37
- package/components/catalyst-ui/utils/server-timing.tsx +0 -23
- package/components/catalyst-ui/utils/utils.ts +0 -43
- package/components/catalyst-ui/utils/with-cookie.tsx +0 -43
- package/components/catalyst-ui/x/accordian-x.tsx +0 -428
- package/components/catalyst-ui/x/alert-x.tsx +0 -413
- package/components/catalyst-ui/x/animated-text-x.tsx +0 -2242
- package/components/catalyst-ui/x/avatar-x.tsx +0 -515
- package/components/catalyst-ui/x/badge-x.tsx +0 -670
- package/components/catalyst-ui/x/button-X.tsx +0 -2857
- package/components/catalyst-ui/x/button-group-x.tsx +0 -847
- package/components/catalyst-ui/x/calendar-x.tsx +0 -1910
- package/components/catalyst-ui/x/card-x.tsx +0 -2597
- package/components/catalyst-ui/x/checkbox-x.tsx +0 -656
- package/components/catalyst-ui/x/collapsible-x.tsx +0 -1360
- package/components/catalyst-ui/x/combobox-x.tsx +0 -911
- package/components/catalyst-ui/x/data-table-x.tsx +0 -1753
- package/components/catalyst-ui/x/date-picker-x.tsx +0 -648
- package/components/catalyst-ui/x/dialog-x.tsx +0 -659
- package/components/catalyst-ui/x/dropdown-menu-x.tsx +0 -612
- package/components/catalyst-ui/x/hover-card-x.tsx +0 -375
- package/components/catalyst-ui/x/icon-x.tsx +0 -840
- package/components/catalyst-ui/x/input-mask-x.tsx +0 -981
- package/components/catalyst-ui/x/input-otp-x.tsx +0 -659
- package/components/catalyst-ui/x/loader-x.tsx +0 -1757
- package/components/catalyst-ui/x/pagination-x.tsx +0 -622
- package/components/catalyst-ui/x/popover-x.tsx +0 -744
- package/components/catalyst-ui/x/radio-group-x.tsx +0 -499
- package/components/catalyst-ui/x/select-x.tsx +0 -1127
- package/components/catalyst-ui/x/sheet-x.tsx +0 -668
- package/components/catalyst-ui/x/switch-x.tsx +0 -681
- package/components/catalyst-ui/x/table-x.tsx +0 -574
- package/components/catalyst-ui/x/tabs-x.tsx +0 -839
- package/components/catalyst-ui/x/textarea-x.tsx +0 -1263
- package/components/catalyst-ui/x/tooltip-x.tsx +0 -396
- package/components/catalyst-ui/x/tracker-x.tsx +0 -560
- package/data/bg-data.tsx +0 -901
- package/data/buttons-data.tsx +0 -2327
- package/data/charts-data.tsx +0 -102
- package/data/chat-data.tsx +0 -83
- package/data/code-data.tsx +0 -1040
- package/data/comboboxes-data.tsx +0 -1843
- package/data/command-data.tsx +0 -1381
- package/data/core-data.tsx +0 -15953
- package/data/crm-data.tsx +0 -47
- package/data/data.tsx +0 -159
- package/data/date-and-time-data.tsx +0 -554
- package/data/dependencies.tsx +0 -7
- package/data/ecommerce-data.tsx +0 -1387
- package/data/forms-data.tsx +0 -7890
- package/data/hooks-data.tsx +0 -5487
- package/data/index.ts +0 -34
- package/data/inputs-data.tsx +0 -557
- package/data/interactive-data.tsx +0 -5394
- package/data/lofi-data.tsx +0 -18295
- package/data/marketing-data.tsx +0 -2546
- package/data/media-data.tsx +0 -1510
- package/data/motion-data.tsx +0 -5801
- package/data/overlay-data.tsx +0 -4136
- package/data/pdf-data.tsx +0 -124
- package/data/pos-data.tsx +0 -213
- package/data/postcss.config.js +0 -6
- package/data/primitive-data.tsx +0 -5170
- package/data/prompt-data.tsx +0 -1226
- package/data/requiredLibs.ts +0 -4
- package/data/sandbox-data.tsx +0 -1
- package/data/sidebars-data.tsx +0 -5421
- package/data/stacks-data.tsx +0 -32
- package/data/table-data.tsx +0 -706
- package/data/tailwind.config.js +0 -270
- package/data/tailwind.config.ngin.js +0 -3830
- package/data/tailwind.css +0 -431
- package/data/tools-data.tsx +0 -6910
- package/data/typography-data.tsx +0 -2050
- package/data/utils-data.tsx +0 -6500
- package/data/x-data.tsx +0 -1171
package/data/code-data.tsx
DELETED
|
@@ -1,1040 +0,0 @@
|
|
|
1
|
-
export const codeData = [
|
|
2
|
-
{
|
|
3
|
-
name: "Code Comparison 1",
|
|
4
|
-
value: "code-comparison1",
|
|
5
|
-
importPath: "~/components/catalyst-ui/code/code-comparison1",
|
|
6
|
-
multiImport: null,
|
|
7
|
-
basicusage: `
|
|
8
|
-
<CodeComparison
|
|
9
|
-
beforeCode="const x = 1"
|
|
10
|
-
afterCode="const x = 2"
|
|
11
|
-
language="javascript"
|
|
12
|
-
filename="example.js"
|
|
13
|
-
lightTheme="min-light"
|
|
14
|
-
darkTheme="min-dark"
|
|
15
|
-
/>
|
|
16
|
-
|
|
17
|
-
<CodeComparison
|
|
18
|
-
beforeCode={beforeCode}
|
|
19
|
-
afterCode={afterCode}
|
|
20
|
-
language="typescript"
|
|
21
|
-
filename="component.tsx"
|
|
22
|
-
lightTheme="github-light"
|
|
23
|
-
darkTheme="github-dark"
|
|
24
|
-
highlightColor="#00ff00"
|
|
25
|
-
/>`,
|
|
26
|
-
path: "/components/catalyst-ui/code/code-comparison1.tsx",
|
|
27
|
-
source: null,
|
|
28
|
-
usagePath: "/components/catalyst-ui/code/code-comparison1.tsx",
|
|
29
|
-
usage: null,
|
|
30
|
-
premium: true,
|
|
31
|
-
category: "Code",
|
|
32
|
-
tags: ["code", "comparison", "syntax", "highlighting"],
|
|
33
|
-
features: ["Syntax Highlighting", "Diff View", "Theme Support", "Interactive"],
|
|
34
|
-
dependencies: ["shiki", "@shikijs/transformers", "lucide-react", "next-themes"],
|
|
35
|
-
props: {
|
|
36
|
-
"CodeComparison": [
|
|
37
|
-
{ name: "beforeCode", type: "string", default: "required" },
|
|
38
|
-
{ name: "afterCode", type: "string", default: "required" },
|
|
39
|
-
{ name: "language", type: "string", default: "required" },
|
|
40
|
-
{ name: "filename", type: "string", default: "required" },
|
|
41
|
-
{ name: "lightTheme", type: "string", default: "required" },
|
|
42
|
-
{ name: "darkTheme", type: "string", default: "required" },
|
|
43
|
-
{ name: "highlightColor", type: "string", default: "#ff3333" },
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
desc: null,
|
|
47
|
-
status: null,
|
|
48
|
-
lastUpdated: null
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: "Terminal1",
|
|
52
|
-
value: "terminal1",
|
|
53
|
-
importPath: "~/components/catalyst-ui/code/terminal-1",
|
|
54
|
-
multiImport: "Terminal, AnimatedSpan, TypingAnimation",
|
|
55
|
-
basicusage: null,
|
|
56
|
-
path: "/components/catalyst-ui/code/terminal-1.tsx",
|
|
57
|
-
source: null,
|
|
58
|
-
usagePath: "/components/catalyst-ui/code/terminal-1.tsx",
|
|
59
|
-
usage: null,
|
|
60
|
-
premium: true,
|
|
61
|
-
category: "Code",
|
|
62
|
-
tags: ["terminal", "typing", "animation", "code", "console"],
|
|
63
|
-
features: ["Typing Animation", "Terminal Styling", "Motion Effects", "Customizable Timing"],
|
|
64
|
-
dependencies: ["motion/react", "react"],
|
|
65
|
-
props: {
|
|
66
|
-
"Terminal": [
|
|
67
|
-
{ name: "className", type: "string", default: "null" },
|
|
68
|
-
{ name: "children", type: "ReactNode", default: "null" }
|
|
69
|
-
],
|
|
70
|
-
"AnimatedSpan": [
|
|
71
|
-
{ name: "delay", type: "number", default: "0" },
|
|
72
|
-
{ name: "className", type: "string", default: "null" },
|
|
73
|
-
{ name: "children", type: "ReactNode", default: "null" }
|
|
74
|
-
],
|
|
75
|
-
"TypingAnimation": [
|
|
76
|
-
{ name: "children", type: "string", default: "null" },
|
|
77
|
-
{ name: "className", type: "string", default: "null" },
|
|
78
|
-
{ name: "duration", type: "number", default: "60" },
|
|
79
|
-
{ name: "delay", type: "number", default: "0" },
|
|
80
|
-
{ name: "as", type: "React.ElementType", default: "span" }
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
desc: null,
|
|
84
|
-
status: null,
|
|
85
|
-
lastUpdated: null
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: "Sandbox2",
|
|
89
|
-
value: "sandbox2",
|
|
90
|
-
importPath: "~/components/catalyst-ui/code/sandbox",
|
|
91
|
-
multiImport: "SandboxTabs2, SandboxTabsList2, SandboxTabsTrigger2, SandboxTabsContent2, SandboxFileExplorer2, SandboxCodeEditor2, SandboxPreview2, SandboxConsole2",
|
|
92
|
-
basicusage: `<SandboxTabs2 defaultValue="editor">
|
|
93
|
-
<SandboxTabsList2>
|
|
94
|
-
<SandboxTabsTrigger2 value="editor">Editor</SandboxTabsTrigger>
|
|
95
|
-
<SandboxTabsTrigger2 value="preview">Preview</SandboxTabsTrigger>
|
|
96
|
-
</SandboxTabsList2>
|
|
97
|
-
<SandboxTabsContent2 value="editor">
|
|
98
|
-
<SandboxCodeEditor2 value={code} onChange={setCode} />
|
|
99
|
-
</SandboxTabsContent2>
|
|
100
|
-
<SandboxTabsContent2 value="preview">
|
|
101
|
-
<SandboxPreview srcDoc={code} />
|
|
102
|
-
</SandboxTabsContent2>
|
|
103
|
-
</SandboxTabs2>`,
|
|
104
|
-
path: "/components/catalyst-ui/code/sandbox2.tsx",
|
|
105
|
-
source: null,
|
|
106
|
-
usagePath: null,
|
|
107
|
-
usage: `
|
|
108
|
-
export function SandboxDemo2() {
|
|
109
|
-
const [activeFile, setActiveFile] = useState('index.html');
|
|
110
|
-
const [code, setCode] = useState(\`<!DOCTYPE html>
|
|
111
|
-
<html>
|
|
112
|
-
<head>
|
|
113
|
-
<title>Preview</title>
|
|
114
|
-
</head>
|
|
115
|
-
<body>
|
|
116
|
-
<h1>Hello World</h1>
|
|
117
|
-
<p>Edit the code to see changes</p>
|
|
118
|
-
</body>
|
|
119
|
-
</html>\`);
|
|
120
|
-
|
|
121
|
-
const files = ['index.html', 'styles.css', 'script.js'];
|
|
122
|
-
|
|
123
|
-
return (
|
|
124
|
-
<div className="mx-auto max-w-6xl p-6">
|
|
125
|
-
<SandboxTabs2 defaultValue="editor" className="h-[600px]">
|
|
126
|
-
<SandboxTabsList2>
|
|
127
|
-
<SandboxTabsTrigger2 value="editor">Editor</SandboxTabsTrigger2>
|
|
128
|
-
<SandboxTabsTrigger2 value="preview">Preview</SandboxTabsTrigger2>
|
|
129
|
-
<SandboxTabsTrigger2 value="console">Console</SandboxTabsTrigger2>
|
|
130
|
-
</SandboxTabsList2>
|
|
131
|
-
|
|
132
|
-
<SandboxTabsContent2 value="editor" className="flex">
|
|
133
|
-
<SandboxFileExplorer2
|
|
134
|
-
files={files}
|
|
135
|
-
activeFile={activeFile}
|
|
136
|
-
onFileSelect={setActiveFile}
|
|
137
|
-
className="w-48 border-r"
|
|
138
|
-
/>
|
|
139
|
-
<SandboxCodeEditor2
|
|
140
|
-
value={code}
|
|
141
|
-
onChange={setCode}
|
|
142
|
-
language="html"
|
|
143
|
-
className="flex-1"
|
|
144
|
-
/>
|
|
145
|
-
</SandboxTabsContent2>
|
|
146
|
-
|
|
147
|
-
<SandboxTabsContent2 value="preview">
|
|
148
|
-
<SandboxPreview2 srcDoc={code} />
|
|
149
|
-
</SandboxTabsContent2>
|
|
150
|
-
|
|
151
|
-
<SandboxTabsContent2 value="console">
|
|
152
|
-
<SandboxConsole2
|
|
153
|
-
logs={[
|
|
154
|
-
{ type: 'log', message: 'Application started' },
|
|
155
|
-
{ type: 'warn', message: 'This is a warning' },
|
|
156
|
-
]}
|
|
157
|
-
/>
|
|
158
|
-
</SandboxTabsContent2>
|
|
159
|
-
</SandboxTabs2>
|
|
160
|
-
</div>
|
|
161
|
-
);
|
|
162
|
-
}`,
|
|
163
|
-
premium: true,
|
|
164
|
-
category: "Code",
|
|
165
|
-
tags: ["code", "editor", "preview", "sandbox"],
|
|
166
|
-
features: ["Responsive", "TypeScript", "Accessible"],
|
|
167
|
-
dependencies: ["react"],
|
|
168
|
-
props: {
|
|
169
|
-
"SandboxTabs": [
|
|
170
|
-
{ name: "defaultValue", type: "string", default: "null" },
|
|
171
|
-
{ name: "value", type: "string", default: "null" },
|
|
172
|
-
{ name: "onValueChange", type: "(value: string) => void", default: "null" },
|
|
173
|
-
{ name: "className", type: "string", default: "null" },
|
|
174
|
-
],
|
|
175
|
-
"SandboxFileExplorer": [
|
|
176
|
-
{ name: "files", type: "string[]", default: "[]" },
|
|
177
|
-
{ name: "activeFile", type: "string", default: "null" },
|
|
178
|
-
{ name: "onFileSelect", type: "(file: string) => void", default: "null" },
|
|
179
|
-
{ name: "className", type: "string", default: "null" },
|
|
180
|
-
],
|
|
181
|
-
"SandboxCodeEditor": [
|
|
182
|
-
{ name: "value", type: "string", default: "" },
|
|
183
|
-
{ name: "onChange", type: "(value: string) => void", default: "null" },
|
|
184
|
-
{ name: "language", type: "string", default: "javascript" },
|
|
185
|
-
{ name: "readOnly", type: "boolean", default: "false" },
|
|
186
|
-
{ name: "className", type: "string", default: "null" },
|
|
187
|
-
],
|
|
188
|
-
"SandboxPreview": [
|
|
189
|
-
{ name: "html", type: "string", default: "null" },
|
|
190
|
-
{ name: "srcDoc", type: "string", default: "null" },
|
|
191
|
-
{ name: "className", type: "string", default: "null" },
|
|
192
|
-
],
|
|
193
|
-
"SandboxConsole": [
|
|
194
|
-
{ name: "logs", type: "Array<{ type: 'log' | 'error' | 'warn'; message: string }>", default: "[]" },
|
|
195
|
-
{ name: "className", type: "string", default: "null" },
|
|
196
|
-
],
|
|
197
|
-
},
|
|
198
|
-
desc: null,
|
|
199
|
-
status: null,
|
|
200
|
-
lastUpdated: null
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
name: "Code Comparison",
|
|
204
|
-
value: "code-comparison",
|
|
205
|
-
importPath: "~/components/catalyst-ui/components/code-comparison",
|
|
206
|
-
multiImport: null,
|
|
207
|
-
basicusage: `
|
|
208
|
-
<CodeComparison
|
|
209
|
-
beforeCode="console.log('old')"
|
|
210
|
-
afterCode="console.log('new')"
|
|
211
|
-
language="javascript"
|
|
212
|
-
filename="example.js"
|
|
213
|
-
lightTheme="github-light"
|
|
214
|
-
darkTheme="github-dark"
|
|
215
|
-
/>
|
|
216
|
-
|
|
217
|
-
<CodeComparison
|
|
218
|
-
beforeCode={beforeCode}
|
|
219
|
-
afterCode={afterCode}
|
|
220
|
-
language="typescript"
|
|
221
|
-
filename="middleware.ts"
|
|
222
|
-
lightTheme="min-light"
|
|
223
|
-
darkTheme="min-dark"
|
|
224
|
-
highlightColor="rgba(101, 117, 133, 0.16)"
|
|
225
|
-
/>`,
|
|
226
|
-
path: "/components/catalyst-ui/components/code-comparison.tsx",
|
|
227
|
-
source: null,
|
|
228
|
-
usagePath: "/components/catalyst-ui/components/code-comparison.tsx",
|
|
229
|
-
usage: null,
|
|
230
|
-
premium: true,
|
|
231
|
-
category: "Code",
|
|
232
|
-
tags: ["code", "comparison", "syntax", "highlighting"],
|
|
233
|
-
features: ["Syntax Highlighting", "Diff View", "Theme Support", "TypeScript"],
|
|
234
|
-
dependencies: ["shiki", "@shikijs/transformers", "lucide-react", "next-themes", "react"],
|
|
235
|
-
props: {
|
|
236
|
-
"CodeComparison": [
|
|
237
|
-
{ name: "beforeCode", type: "string", default: "null" },
|
|
238
|
-
{ name: "afterCode", type: "string", default: "null" },
|
|
239
|
-
{ name: "language", type: "string", default: "null" },
|
|
240
|
-
{ name: "filename", type: "string", default: "null" },
|
|
241
|
-
{ name: "lightTheme", type: "string", default: "null" },
|
|
242
|
-
{ name: "darkTheme", type: "string", default: "null" },
|
|
243
|
-
{ name: "highlightColor", type: "string", default: "#ff3333" }
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
desc: null,
|
|
247
|
-
status: null,
|
|
248
|
-
lastUpdated: null
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
name: "Terminal",
|
|
252
|
-
value: "terminal",
|
|
253
|
-
importPath: "~/components/catalyst-ui/code/terminal",
|
|
254
|
-
multiImport: "Terminal, AnimatedSpan, TypingAnimation",
|
|
255
|
-
basicusage: `
|
|
256
|
-
<Terminal>
|
|
257
|
-
<TypingAnimation>> npm install</TypingAnimation>
|
|
258
|
-
<AnimatedSpan className="text-green-500">✔ Dependencies installed</AnimatedSpan>
|
|
259
|
-
<TypingAnimation>Project ready!</TypingAnimation>
|
|
260
|
-
</Terminal>
|
|
261
|
-
|
|
262
|
-
<Terminal
|
|
263
|
-
sequence={false}
|
|
264
|
-
startOnView={true}
|
|
265
|
-
className="w-full max-w-2xl"
|
|
266
|
-
>
|
|
267
|
-
<TypingAnimation delay={500}>> Initializing system...</TypingAnimation>
|
|
268
|
-
<AnimatedSpan delay={1000} className="text-blue-500">System ready</AnimatedSpan>
|
|
269
|
-
</Terminal>`,
|
|
270
|
-
path: null,
|
|
271
|
-
source: null,
|
|
272
|
-
usagePath: "/components/catalyst-ui/code/terminal.tsx",
|
|
273
|
-
usage: `
|
|
274
|
-
export function TerminalDemo() {
|
|
275
|
-
return (
|
|
276
|
-
<Terminal>
|
|
277
|
-
<TypingAnimation>> pnpm dlx shadcn@latest init</TypingAnimation>
|
|
278
|
-
|
|
279
|
-
<AnimatedSpan className="text-green-500">
|
|
280
|
-
✔ Preflight checks.
|
|
281
|
-
</AnimatedSpan>
|
|
282
|
-
|
|
283
|
-
<AnimatedSpan className="text-green-500">
|
|
284
|
-
✔ Verifying framework. Found Next.js.
|
|
285
|
-
</AnimatedSpan>
|
|
286
|
-
|
|
287
|
-
<AnimatedSpan className="text-green-500">
|
|
288
|
-
✔ Validating Tailwind CSS.
|
|
289
|
-
</AnimatedSpan>
|
|
290
|
-
|
|
291
|
-
<AnimatedSpan className="text-green-500">
|
|
292
|
-
✔ Validating alias.
|
|
293
|
-
</AnimatedSpan>
|
|
294
|
-
|
|
295
|
-
<AnimatedSpan className="text-green-500">
|
|
296
|
-
✔ Writing components.json.
|
|
297
|
-
</AnimatedSpan>
|
|
298
|
-
|
|
299
|
-
<AnimatedSpan className="text-green-500">
|
|
300
|
-
✔ Checking registry.
|
|
301
|
-
</AnimatedSpan>
|
|
302
|
-
|
|
303
|
-
<AnimatedSpan className="text-green-500">
|
|
304
|
-
✔ Updating tailwind.config.ts
|
|
305
|
-
</AnimatedSpan>
|
|
306
|
-
|
|
307
|
-
<AnimatedSpan className="text-green-500">
|
|
308
|
-
✔ Updating app/globals.css
|
|
309
|
-
</AnimatedSpan>
|
|
310
|
-
|
|
311
|
-
<AnimatedSpan className="text-green-500">
|
|
312
|
-
✔ Installing dependencies.
|
|
313
|
-
</AnimatedSpan>
|
|
314
|
-
|
|
315
|
-
<AnimatedSpan className="text-blue-500">
|
|
316
|
-
<span> Updated 1 file:</span>
|
|
317
|
-
<span className="pl-2">- lib/utils.ts</span>
|
|
318
|
-
</AnimatedSpan>
|
|
319
|
-
|
|
320
|
-
<TypingAnimation className="text-muted-foreground">
|
|
321
|
-
Success! Project initialization completed.
|
|
322
|
-
</TypingAnimation>
|
|
323
|
-
|
|
324
|
-
<TypingAnimation className="text-muted-foreground">
|
|
325
|
-
You may now add components.
|
|
326
|
-
</TypingAnimation>
|
|
327
|
-
</Terminal>
|
|
328
|
-
)
|
|
329
|
-
}
|
|
330
|
-
`,
|
|
331
|
-
premium: true,
|
|
332
|
-
category: "Code",
|
|
333
|
-
tags: ["animation", "typing", "terminal", "sequence"],
|
|
334
|
-
features: ["Typing Animation", "Sequenced", "Interactive", "TypeScript"],
|
|
335
|
-
dependencies: ["motion", "react"],
|
|
336
|
-
props: {
|
|
337
|
-
"Terminal": [
|
|
338
|
-
{ name: "className", type: "string", default: "null" },
|
|
339
|
-
{ name: "sequence", type: "boolean", default: "true" },
|
|
340
|
-
{ name: "startOnView", type: "boolean", default: "true" }
|
|
341
|
-
],
|
|
342
|
-
"AnimatedSpan": [
|
|
343
|
-
{ name: "className", type: "string", default: "null" },
|
|
344
|
-
{ name: "delay", type: "number", default: "0" },
|
|
345
|
-
{ name: "startOnView", type: "boolean", default: "false" }
|
|
346
|
-
],
|
|
347
|
-
"TypingAnimation": [
|
|
348
|
-
{ name: "className", type: "string", default: "null" },
|
|
349
|
-
{ name: "duration", type: "number", default: "60" },
|
|
350
|
-
{ name: "delay", type: "number", default: "0" },
|
|
351
|
-
{ name: "as", type: "React.ElementType", default: "span" },
|
|
352
|
-
{ name: "startOnView", type: "boolean", default: "true" }
|
|
353
|
-
]
|
|
354
|
-
},
|
|
355
|
-
desc: null,
|
|
356
|
-
status: null,
|
|
357
|
-
lastUpdated: null
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
name: "Sandbox",
|
|
361
|
-
value: "sandbox",
|
|
362
|
-
importPath: "~/components/catalyst-ui/code/sandbox",
|
|
363
|
-
multiImport: "SandboxTabs, SandboxTabsList, SandboxTabsTrigger, SandboxTabsContent, SandboxCodeEditor, SandboxConsole, SandboxFileExplorer, SandboxLayout, SandboxPreview, SandboxProvider",
|
|
364
|
-
basicusage: `
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
const Example = () => (
|
|
369
|
-
<SandboxProvider>
|
|
370
|
-
<SandboxLayout>
|
|
371
|
-
<SandboxTabs defaultValue="preview">
|
|
372
|
-
<SandboxTabsList>
|
|
373
|
-
<SandboxTabsTrigger value="code">
|
|
374
|
-
<CodeIcon size={14} />
|
|
375
|
-
Code
|
|
376
|
-
</SandboxTabsTrigger>
|
|
377
|
-
<SandboxTabsTrigger value="preview">
|
|
378
|
-
<AppWindowIcon size={14} />
|
|
379
|
-
Preview
|
|
380
|
-
</SandboxTabsTrigger>
|
|
381
|
-
<SandboxTabsTrigger value="console">
|
|
382
|
-
<TerminalIcon size={14} />
|
|
383
|
-
Console
|
|
384
|
-
</SandboxTabsTrigger>
|
|
385
|
-
</SandboxTabsList>
|
|
386
|
-
<SandboxTabsContent className="overflow-hidden" value="code">
|
|
387
|
-
<ResizablePanelGroup direction="horizontal">
|
|
388
|
-
<ResizablePanel
|
|
389
|
-
className="overflow-y-auto"
|
|
390
|
-
defaultSize={25}
|
|
391
|
-
maxSize={40}
|
|
392
|
-
minSize={20}
|
|
393
|
-
>
|
|
394
|
-
<SandboxFileExplorer />
|
|
395
|
-
</ResizablePanel>
|
|
396
|
-
<ResizableHandle withHandle />
|
|
397
|
-
<ResizablePanel className="overflow-y-auto">
|
|
398
|
-
<SandboxCodeEditor />
|
|
399
|
-
</ResizablePanel>
|
|
400
|
-
</ResizablePanelGroup>
|
|
401
|
-
</SandboxTabsContent>
|
|
402
|
-
<SandboxTabsContent value="preview">
|
|
403
|
-
<SandboxPreview
|
|
404
|
-
showOpenInCodeSandbox={false}
|
|
405
|
-
showRefreshButton={false}
|
|
406
|
-
/>
|
|
407
|
-
</SandboxTabsContent>
|
|
408
|
-
<SandboxTabsContent value="console">
|
|
409
|
-
<SandboxConsole />
|
|
410
|
-
</SandboxTabsContent>
|
|
411
|
-
</SandboxTabs>
|
|
412
|
-
</SandboxLayout>
|
|
413
|
-
</SandboxProvider>
|
|
414
|
-
);
|
|
415
|
-
export default Example;`,
|
|
416
|
-
path: "/components/catalyst-ui/code/sandbox-tabs.tsx",
|
|
417
|
-
source: null,
|
|
418
|
-
usagePath: "/components/catalyst-ui/code/sandbox-tabs.tsx",
|
|
419
|
-
usage: null,
|
|
420
|
-
premium: true,
|
|
421
|
-
category: "Code",
|
|
422
|
-
tags: ["sandbox", "code-editor", "preview", "development"],
|
|
423
|
-
features: ["Resizable", "TypeScript", "File Explorer", "Console"],
|
|
424
|
-
dependencies: ["@codesandbox/sandpack-react", "lucide-react", "react"],
|
|
425
|
-
props: {
|
|
426
|
-
"SandboxTabs": [
|
|
427
|
-
{ name: "className", type: "string", default: "null" },
|
|
428
|
-
{ name: "variant", type: "default | minimal", default: "default" },
|
|
429
|
-
{ name: "defaultValue", type: "string", default: "null" },
|
|
430
|
-
{ name: "value", type: "string", default: "null" },
|
|
431
|
-
{ name: "onValueChange", type: "(value: string) => void", default: "null" }
|
|
432
|
-
],
|
|
433
|
-
"SandboxTabsList": [
|
|
434
|
-
{ name: "className", type: "string", default: "null" },
|
|
435
|
-
{ name: "variant", type: "default | minimal", default: "default" }
|
|
436
|
-
],
|
|
437
|
-
"SandboxTabsTrigger": [
|
|
438
|
-
{ name: "className", type: "string", default: "null" },
|
|
439
|
-
{ name: "value", type: "string", default: "null" }
|
|
440
|
-
],
|
|
441
|
-
"SandboxTabsContent": [
|
|
442
|
-
{ name: "className", type: "string", default: "null" },
|
|
443
|
-
{ name: "value", type: "string", default: "null" }
|
|
444
|
-
],
|
|
445
|
-
"SandboxProvider": [
|
|
446
|
-
{ name: "className", type: "string", default: "null" },
|
|
447
|
-
{ name: "files", type: "Record<string, string>", default: "{}" },
|
|
448
|
-
{ name: "template", type: "string", default: "react" }
|
|
449
|
-
],
|
|
450
|
-
"SandboxLayout": [
|
|
451
|
-
{ name: "className", type: "string", default: "null" }
|
|
452
|
-
],
|
|
453
|
-
"SandboxCodeEditor": [
|
|
454
|
-
{ name: "showTabs", type: "boolean", default: "false" }
|
|
455
|
-
],
|
|
456
|
-
"SandboxPreview": [
|
|
457
|
-
{ name: "className", type: "string", default: "null" },
|
|
458
|
-
{ name: "showOpenInCodeSandbox", type: "boolean", default: "false" }
|
|
459
|
-
],
|
|
460
|
-
"SandboxConsole": [
|
|
461
|
-
{ name: "className", type: "string", default: "null" }
|
|
462
|
-
],
|
|
463
|
-
"SandboxFileExplorer": [
|
|
464
|
-
{ name: "autoHiddenFiles", type: "boolean", default: "true" },
|
|
465
|
-
{ name: "className", type: "string", default: "null" }
|
|
466
|
-
]
|
|
467
|
-
},
|
|
468
|
-
desc: null,
|
|
469
|
-
status: null,
|
|
470
|
-
lastUpdated: null
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
name: "Code Block Section",
|
|
474
|
-
value: "code-block-section",
|
|
475
|
-
importPath: "~/components/catalyst-ui/code/code-block-section",
|
|
476
|
-
multiImport: "CodeBlockSection, CodeBlock, CodeBlockHeader, CodeBlockSelect, CodeBlockSelectTrigger, CodeBlockSelectValue, CodeBlockSelectContent, CodeBlockSelectItem, CodeBlockCopyButton, CodeBlockBody, CodeBlockItem, CodeBlockContent",
|
|
477
|
-
basicusage: `<CodeBlockSection
|
|
478
|
-
data={{
|
|
479
|
-
language: 'tsx',
|
|
480
|
-
filename: 'button.tsx',
|
|
481
|
-
code: \`function Button({ children }) {
|
|
482
|
-
return <button>{children}</button>;
|
|
483
|
-
}\`
|
|
484
|
-
}}
|
|
485
|
-
/>
|
|
486
|
-
|
|
487
|
-
<CodeBlockSection data={[
|
|
488
|
-
{ language: 'tsx', filename: 'button.tsx', code: 'const Button = () => {}' },
|
|
489
|
-
{ language: 'tsx', filename: 'input.tsx', code: 'const Input = () => {}' }
|
|
490
|
-
]}
|
|
491
|
-
defaultOpen={true}
|
|
492
|
-
variant="default"
|
|
493
|
-
/>`,
|
|
494
|
-
path: "/components/catalyst-ui/code/code-block-section.tsx",
|
|
495
|
-
source: null,
|
|
496
|
-
usagePath: "/components/catalyst-ui/code/code-block-section.tsx",
|
|
497
|
-
usage: null,
|
|
498
|
-
premium: true,
|
|
499
|
-
category: "Code",
|
|
500
|
-
tags: ["ui", "components", "code", "syntax-highlighting", "interactive"],
|
|
501
|
-
features: ["Responsive", "TypeScript", "Accessible", "Collapsible", "Multi-file Support", "Syntax Highlighting"],
|
|
502
|
-
dependencies: ["lucide-react", "react", "@radix-ui/react-use-controllable-state", "class-variance-authority", "shiki", "motion/react"],
|
|
503
|
-
props: {
|
|
504
|
-
"CodeBlockSection": [
|
|
505
|
-
{ name: "data", type: "CodeBlockData | CodeBlockData[]", default: "null" },
|
|
506
|
-
{ name: "className", type: "string", default: "null" },
|
|
507
|
-
{ name: "defaultOpen", type: "boolean", default: "true" },
|
|
508
|
-
{ name: "variant", type: "\"default\" | \"zinc\"", default: "\"default\"" },
|
|
509
|
-
{ name: "showLineNumbers", type: "boolean", default: "true" },
|
|
510
|
-
{ name: "highlightedLines", type: "number[]", default: "[]" },
|
|
511
|
-
{ name: "showDiff", type: "boolean", default: "false" },
|
|
512
|
-
{ name: "focusedLines", type: "number[]", default: "[]" },
|
|
513
|
-
{ name: "highlightedWords", type: "string[]", default: "[]" },
|
|
514
|
-
],
|
|
515
|
-
"CodeBlock": [
|
|
516
|
-
{ name: "data", type: "CodeBlockData[]", default: "null" },
|
|
517
|
-
{ name: "value", type: "string", default: "null" },
|
|
518
|
-
{ name: "defaultValue", type: "string", default: "null" },
|
|
519
|
-
{ name: "onValueChange", type: "(value: string) => void", default: "null" },
|
|
520
|
-
{ name: "header", type: "boolean | ReactNode", default: "true" },
|
|
521
|
-
{ name: "variant", type: "\"default\" | \"zinc\"", default: "\"default\"" },
|
|
522
|
-
{ name: "className", type: "string", default: "null" },
|
|
523
|
-
],
|
|
524
|
-
"CodeBlockData": [
|
|
525
|
-
{ name: "language", type: "string", default: "null" },
|
|
526
|
-
{ name: "filename", type: "string", default: "null" },
|
|
527
|
-
{ name: "code", type: "string", default: "null" },
|
|
528
|
-
],
|
|
529
|
-
},
|
|
530
|
-
desc: "Note to wise wizards, wise enough to read this. This component covers... virtually every single ",
|
|
531
|
-
status: null,
|
|
532
|
-
lastUpdated: null
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
name: "Code Editor",
|
|
536
|
-
value: "code-editor",
|
|
537
|
-
importPath: "~/components/catalyst-ui/code/code-editor",
|
|
538
|
-
multiImport: "CodeEditor, CopyButton",
|
|
539
|
-
basicusage: `<CodeEditor
|
|
540
|
-
lang="tsx"
|
|
541
|
-
title="component.tsx"
|
|
542
|
-
code={\`function Example() {
|
|
543
|
-
return <div>Hello World</div>;
|
|
544
|
-
}\`}
|
|
545
|
-
/>
|
|
546
|
-
|
|
547
|
-
<CodeEditor
|
|
548
|
-
className="w-[640px] h-[480px]"
|
|
549
|
-
lang="tsx"
|
|
550
|
-
title="component.tsx"
|
|
551
|
-
code={code}
|
|
552
|
-
duration={15}
|
|
553
|
-
delay={0.5}
|
|
554
|
-
cursor={true}
|
|
555
|
-
copyButton={true}
|
|
556
|
-
writing={true}
|
|
557
|
-
header={true}
|
|
558
|
-
dots={true}
|
|
559
|
-
/>`,
|
|
560
|
-
path: "/components/catalyst-ui/code/code-editor.tsx",
|
|
561
|
-
source: null,
|
|
562
|
-
usagePath: "/components/catalyst-ui/code/code-editor.tsx",
|
|
563
|
-
usage: null,
|
|
564
|
-
premium: true,
|
|
565
|
-
category: "Code",
|
|
566
|
-
tags: ["ui", "components", "code", "editor", "animation", "interactive"],
|
|
567
|
-
features: ["Responsive", "TypeScript", "Accessible", "Animated Typing", "Syntax Highlighting", "Theme Support"],
|
|
568
|
-
dependencies: ["lucide-react", "react", "motion/react", "shiki"],
|
|
569
|
-
props: {
|
|
570
|
-
"CodeEditor": [
|
|
571
|
-
{ name: "code", type: "string", default: "null" },
|
|
572
|
-
{ name: "lang", type: "string", default: "null" },
|
|
573
|
-
{ name: "title", type: "string", default: "null" },
|
|
574
|
-
{ name: "className", type: "string", default: "null" },
|
|
575
|
-
{ name: "themes", type: "{ light: string; dark: string }", default: "{ light: 'github-light', dark: 'github-dark' }" },
|
|
576
|
-
{ name: "duration", type: "number", default: "15" },
|
|
577
|
-
{ name: "delay", type: "number", default: "0.5" },
|
|
578
|
-
{ name: "header", type: "boolean", default: "true" },
|
|
579
|
-
{ name: "dots", type: "boolean", default: "true" },
|
|
580
|
-
{ name: "icon", type: "React.ReactNode", default: "<Code />" },
|
|
581
|
-
{ name: "cursor", type: "boolean", default: "true" },
|
|
582
|
-
{ name: "inView", type: "boolean", default: "false" },
|
|
583
|
-
{ name: "inViewMargin", type: "string", default: "\"0px\"" },
|
|
584
|
-
{ name: "inViewOnce", type: "boolean", default: "true" },
|
|
585
|
-
{ name: "copyButton", type: "boolean", default: "true" },
|
|
586
|
-
{ name: "writing", type: "boolean", default: "true" },
|
|
587
|
-
{ name: "onDone", type: "() => void", default: "null" },
|
|
588
|
-
{ name: "onCopy", type: "(content: string) => void", default: "null" },
|
|
589
|
-
],
|
|
590
|
-
"CopyButton": [
|
|
591
|
-
{ name: "content", type: "string", default: "null" },
|
|
592
|
-
{ name: "size", type: "\"sm\" | \"default\" | \"lg\"", default: "\"default\"" },
|
|
593
|
-
{ name: "variant", type: "\"default\" | \"ghost\" | \"outline\"", default: "\"default\"" },
|
|
594
|
-
{ name: "className", type: "string", default: "null" },
|
|
595
|
-
{ name: "onCopy", type: "(content: string) => void", default: "null" },
|
|
596
|
-
],
|
|
597
|
-
},
|
|
598
|
-
desc: null,
|
|
599
|
-
status: null,
|
|
600
|
-
lastUpdated: null
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
name: "Code Section",
|
|
604
|
-
value: "code-section",
|
|
605
|
-
importPath: "~/components/catalyst-ui/code/code-section",
|
|
606
|
-
multiImport: null,
|
|
607
|
-
basicusage: `<Code>console.log('Hello World')</Code>
|
|
608
|
-
|
|
609
|
-
<Code variant="primary">const x = 42</Code>
|
|
610
|
-
|
|
611
|
-
<Code variant="success" className="text-lg">
|
|
612
|
-
success()
|
|
613
|
-
</Code>`,
|
|
614
|
-
path: "/components/catalyst-ui/code/code-section.tsx",
|
|
615
|
-
source: null,
|
|
616
|
-
usagePath: "/components/catalyst-ui/code/code-section.tsx",
|
|
617
|
-
usage: null,
|
|
618
|
-
premium: true,
|
|
619
|
-
category: "Code",
|
|
620
|
-
tags: ["ui", "components", "code", "typography", "inline"],
|
|
621
|
-
features: ["Responsive", "TypeScript", "Accessible", "Multiple Variants"],
|
|
622
|
-
dependencies: ["react"],
|
|
623
|
-
props: {
|
|
624
|
-
"Code": [
|
|
625
|
-
{ name: "children", type: "React.ReactNode", default: "null" },
|
|
626
|
-
{ name: "variant", type: "\"default\" | \"muted\" | \"primary\" | \"secondary\" | \"destructive\" | \"success\" | \"warning\" | \"info\"", default: "\"default\"" },
|
|
627
|
-
{ name: "className", type: "string", default: "null" },
|
|
628
|
-
],
|
|
629
|
-
},
|
|
630
|
-
desc: null,
|
|
631
|
-
status: null,
|
|
632
|
-
lastUpdated: null
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
name: "Css Section",
|
|
636
|
-
value: "css-section",
|
|
637
|
-
importPath: "~/components/catalyst-ui/code/css-section",
|
|
638
|
-
multiImport: null,
|
|
639
|
-
basicusage: `<CssSection
|
|
640
|
-
code={\`
|
|
641
|
-
.container {
|
|
642
|
-
display: flex;
|
|
643
|
-
width: 100%;
|
|
644
|
-
}
|
|
645
|
-
\`}
|
|
646
|
-
title="styles.css"
|
|
647
|
-
/>
|
|
648
|
-
|
|
649
|
-
<CssSection
|
|
650
|
-
code={cssCode}
|
|
651
|
-
title="Custom Styles"
|
|
652
|
-
note="These styles define the main layout components."
|
|
653
|
-
noteItems={[
|
|
654
|
-
"Responsive design included",
|
|
655
|
-
"Uses CSS Grid and Flexbox",
|
|
656
|
-
"Dark mode support"
|
|
657
|
-
]}
|
|
658
|
-
/>`,
|
|
659
|
-
path: "/components/catalyst-ui/code/css-section.tsx",
|
|
660
|
-
source: null,
|
|
661
|
-
usagePath: "/components/catalyst-ui/code/css-section.tsx",
|
|
662
|
-
usage: null,
|
|
663
|
-
premium: true,
|
|
664
|
-
category: "Code",
|
|
665
|
-
tags: ["ui", "components", "code", "css", "syntax-highlighting", "documentation"],
|
|
666
|
-
features: ["Responsive", "TypeScript", "Syntax Highlighting", "Copy to Clipboard", "Export Functionality"],
|
|
667
|
-
dependencies: ["react", "lucide-react"],
|
|
668
|
-
props: {
|
|
669
|
-
"CssSection": [
|
|
670
|
-
{ name: "code", type: "string", default: "null" },
|
|
671
|
-
{ name: "title", type: "string", default: "\"tailwind\"" },
|
|
672
|
-
{ name: "note", type: "string", default: "null" },
|
|
673
|
-
{ name: "noteItems", type: "string[]", default: "null" },
|
|
674
|
-
{ name: "icon", type: "React.ReactNode", default: "null" },
|
|
675
|
-
],
|
|
676
|
-
},
|
|
677
|
-
desc: null,
|
|
678
|
-
status: null,
|
|
679
|
-
lastUpdated: null
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
name: "Html Section",
|
|
683
|
-
value: "html-section",
|
|
684
|
-
importPath: "~/components/catalyst-ui/code/html-section",
|
|
685
|
-
multiImport: null,
|
|
686
|
-
basicusage: `<Html
|
|
687
|
-
code={\`<div class="container">
|
|
688
|
-
<h1>Hello World</h1>
|
|
689
|
-
<p>Welcome to my website</p>
|
|
690
|
-
</div>\`}
|
|
691
|
-
title="example.html"
|
|
692
|
-
/>
|
|
693
|
-
|
|
694
|
-
<Html
|
|
695
|
-
code={htmlCode}
|
|
696
|
-
title="Component Template"
|
|
697
|
-
note="This HTML structure uses semantic elements for better accessibility."
|
|
698
|
-
noteItems={[
|
|
699
|
-
"Uses semantic HTML5 elements",
|
|
700
|
-
"Includes ARIA attributes",
|
|
701
|
-
"Responsive design ready"
|
|
702
|
-
]}
|
|
703
|
-
/>`,
|
|
704
|
-
path: "/components/catalyst-ui/code/html-section.tsx",
|
|
705
|
-
source: null,
|
|
706
|
-
usagePath: "/components/catalyst-ui/code/html-section.tsx",
|
|
707
|
-
usage: null,
|
|
708
|
-
premium: true,
|
|
709
|
-
category: "Code",
|
|
710
|
-
tags: ["ui", "components", "code", "html", "syntax-highlighting", "documentation"],
|
|
711
|
-
features: ["Responsive", "TypeScript", "Syntax Highlighting", "Copy to Clipboard", "Export Functionality"],
|
|
712
|
-
dependencies: ["react", "lucide-react"],
|
|
713
|
-
props: {
|
|
714
|
-
"Html": [
|
|
715
|
-
{ name: "code", type: "string", default: "null" },
|
|
716
|
-
{ name: "title", type: "string", default: "\"HTML\"" },
|
|
717
|
-
{ name: "note", type: "string", default: "null" },
|
|
718
|
-
{ name: "noteItems", type: "string[]", default: "null" },
|
|
719
|
-
{ name: "icon", type: "React.ReactNode", default: "null" },
|
|
720
|
-
],
|
|
721
|
-
},
|
|
722
|
-
desc: null,
|
|
723
|
-
status: null,
|
|
724
|
-
lastUpdated: null
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
name: "Display Install Code",
|
|
728
|
-
value: "display-install-code",
|
|
729
|
-
importPath: "~/components/catalyst-ui/code/display-install-code",
|
|
730
|
-
multiImport: null,
|
|
731
|
-
basicusage: `<DisplayInstallCode
|
|
732
|
-
title="Install React"
|
|
733
|
-
libModule="react"
|
|
734
|
-
/>
|
|
735
|
-
|
|
736
|
-
<DisplayInstallCode
|
|
737
|
-
title="Add Dependencies"
|
|
738
|
-
libModule="@myorg/ui-library"
|
|
739
|
-
desc="This library provides a complete set of UI components for React applications."
|
|
740
|
-
/>`,
|
|
741
|
-
path: "/components/catalyst-ui/code/display-install-code.tsx",
|
|
742
|
-
source: null,
|
|
743
|
-
usagePath: "/components/catalyst-ui/code/display-install-code.tsx",
|
|
744
|
-
usage: null,
|
|
745
|
-
premium: true,
|
|
746
|
-
category: "Code",
|
|
747
|
-
tags: ["ui", "components", "code", "installation", "package-manager", "interactive"],
|
|
748
|
-
features: ["Responsive", "TypeScript", "Interactive", "Multiple Package Managers", "Copy to Clipboard"],
|
|
749
|
-
dependencies: ["react", "lucide-react"],
|
|
750
|
-
props: {
|
|
751
|
-
"DisplayInstallCode": [
|
|
752
|
-
{ name: "title", type: "string", default: "\"Install\"" },
|
|
753
|
-
{ name: "libModule", type: "string", default: "\"devstack\"" },
|
|
754
|
-
{ name: "desc", type: "string", default: "null" },
|
|
755
|
-
],
|
|
756
|
-
},
|
|
757
|
-
desc: null,
|
|
758
|
-
status: null,
|
|
759
|
-
lastUpdated: null
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
name: "Display Install Code Array",
|
|
763
|
-
value: "display-install-code-array",
|
|
764
|
-
importPath: "~/components/catalyst-ui/code/display-install-code-array",
|
|
765
|
-
multiImport: null,
|
|
766
|
-
basicusage: `<DisplayInstallCodeArray
|
|
767
|
-
title="React Dependencies"
|
|
768
|
-
libModule={['react', 'react-dom', '@types/react']}
|
|
769
|
-
/>
|
|
770
|
-
|
|
771
|
-
<DisplayInstallCodeArray
|
|
772
|
-
title="Development Tools"
|
|
773
|
-
libModule={['typescript', 'eslint', 'prettier']}
|
|
774
|
-
desc="Essential development dependencies for modern web development."
|
|
775
|
-
/>`,
|
|
776
|
-
path: "/components/catalyst-ui/code/display-install-code-array.tsx",
|
|
777
|
-
source: null,
|
|
778
|
-
usagePath: "/components/catalyst-ui/code/display-install-code-array.tsx",
|
|
779
|
-
usage: null,
|
|
780
|
-
premium: true,
|
|
781
|
-
category: "Code",
|
|
782
|
-
tags: ["ui", "components", "code", "installation", "package-manager", "interactive", "multiple-packages"],
|
|
783
|
-
features: ["Responsive", "TypeScript", "Interactive", "Multiple Package Managers", "Copy to Clipboard", "Array Support"],
|
|
784
|
-
dependencies: ["react", "lucide-react"],
|
|
785
|
-
props: {
|
|
786
|
-
"DisplayInstallCodeArray": [
|
|
787
|
-
{ name: "title", type: "string", default: "\"Prerequisites\"" },
|
|
788
|
-
{ name: "libModule", type: "string | string[]", default: "[]" },
|
|
789
|
-
{ name: "desc", type: "string", default: "null" },
|
|
790
|
-
],
|
|
791
|
-
},
|
|
792
|
-
desc: null,
|
|
793
|
-
status: null,
|
|
794
|
-
lastUpdated: null
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
name: "Display Github Install",
|
|
798
|
-
value: "display-github-install",
|
|
799
|
-
importPath: "~/components/catalyst-ui/code/display-github-install",
|
|
800
|
-
multiImport: null,
|
|
801
|
-
basicusage: `<DisplayGithubInstall />
|
|
802
|
-
|
|
803
|
-
<DisplayGithubInstall
|
|
804
|
-
title="Download Project"
|
|
805
|
-
libModule="my-repo"
|
|
806
|
-
owner="username"
|
|
807
|
-
/>
|
|
808
|
-
|
|
809
|
-
<DisplayGithubInstall
|
|
810
|
-
title="Clone Repository"
|
|
811
|
-
libModule="awesome-project"
|
|
812
|
-
owner="organization"
|
|
813
|
-
desc="Clone this repository to get started with the project setup."
|
|
814
|
-
/>`,
|
|
815
|
-
path: "/components/catalyst-ui/code/display-github-install.tsx",
|
|
816
|
-
source: null,
|
|
817
|
-
usagePath: "/components/catalyst-ui/code/display-github-install.tsx",
|
|
818
|
-
usage: null,
|
|
819
|
-
premium: true,
|
|
820
|
-
category: "Code",
|
|
821
|
-
tags: ["ui", "components", "code", "github", "git", "clone", "interactive"],
|
|
822
|
-
features: ["Responsive", "TypeScript", "Interactive", "Multiple Clone Methods", "Copy to Clipboard"],
|
|
823
|
-
dependencies: ["react", "lucide-react"],
|
|
824
|
-
props: {
|
|
825
|
-
"DisplayGithubInstall": [
|
|
826
|
-
{ name: "title", type: "string", default: "\"Clone\"" },
|
|
827
|
-
{ name: "libModule", type: "string", default: "\"NTRSync-Mobile\"" },
|
|
828
|
-
{ name: "owner", type: "string", default: "\"8an3\"" },
|
|
829
|
-
{ name: "desc", type: "string", default: "null" },
|
|
830
|
-
],
|
|
831
|
-
},
|
|
832
|
-
desc: null,
|
|
833
|
-
status: null,
|
|
834
|
-
lastUpdated: null
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
name: "Json Section",
|
|
838
|
-
value: "json-section",
|
|
839
|
-
importPath: "~/components/catalyst-ui/code/json-section",
|
|
840
|
-
multiImport: null,
|
|
841
|
-
basicusage: `<JsonSection items={configObject} />
|
|
842
|
-
|
|
843
|
-
<JsonSection
|
|
844
|
-
title="Configuration"
|
|
845
|
-
items={settings}
|
|
846
|
-
note="This configuration object defines the application settings."
|
|
847
|
-
/>
|
|
848
|
-
|
|
849
|
-
<JsonSection
|
|
850
|
-
title="API Schema"
|
|
851
|
-
items={apiSchema}
|
|
852
|
-
noteItems={[
|
|
853
|
-
"All fields are required unless marked optional",
|
|
854
|
-
"Dates should be in ISO 8601 format",
|
|
855
|
-
"Strings have a maximum length of 255 characters"
|
|
856
|
-
]}
|
|
857
|
-
icon={<AlertTriangle className="w-4 h-4 text-yellow-500" />}
|
|
858
|
-
/>`,
|
|
859
|
-
path: "/components/catalyst-ui/code/json-section.tsx",
|
|
860
|
-
source: null,
|
|
861
|
-
usagePath: "/components/catalyst-ui/code/json-section.tsx",
|
|
862
|
-
usage: null,
|
|
863
|
-
premium: true,
|
|
864
|
-
category: "Code",
|
|
865
|
-
tags: ["ui", "components", "code", "json", "configuration", "documentation"],
|
|
866
|
-
features: ["Responsive", "TypeScript", "JSON Formatting", "Copy to Clipboard", "Error Handling"],
|
|
867
|
-
dependencies: ["react", "lucide-react"],
|
|
868
|
-
props: {
|
|
869
|
-
"JsonSection": [
|
|
870
|
-
{ name: "items", type: "any", default: "null" },
|
|
871
|
-
{ name: "title", type: "string", default: "\"Configuration\"" },
|
|
872
|
-
{ name: "note", type: "string", default: "null" },
|
|
873
|
-
{ name: "noteItems", type: "string[]", default: "null" },
|
|
874
|
-
{ name: "icon", type: "React.ReactNode", default: "null" },
|
|
875
|
-
],
|
|
876
|
-
},
|
|
877
|
-
desc: null,
|
|
878
|
-
status: null,
|
|
879
|
-
lastUpdated: null
|
|
880
|
-
},
|
|
881
|
-
{
|
|
882
|
-
name: "Props Code",
|
|
883
|
-
value: "props-code",
|
|
884
|
-
importPath: "~/components/catalyst-ui/code/props-code",
|
|
885
|
-
multiImport: "PropsCode, PropsCopyButton, PropsCopyButtonGroup, AllProps, BasicAllProps",
|
|
886
|
-
basicusage: `<PropsCode props={componentProps} name="Button" />
|
|
887
|
-
|
|
888
|
-
<PropsCode
|
|
889
|
-
props={{
|
|
890
|
-
Button: [
|
|
891
|
-
{ name: "variant", type: "string", default: "default" },
|
|
892
|
-
{ name: "size", type: "string", default: "md" }
|
|
893
|
-
],
|
|
894
|
-
ButtonGroup: [
|
|
895
|
-
{ name: "orientation", type: "string", default: "horizontal" }
|
|
896
|
-
]
|
|
897
|
-
}}
|
|
898
|
-
name="Button Components"
|
|
899
|
-
/>`,
|
|
900
|
-
path: "/components/catalyst-ui/code/props-code.tsx",
|
|
901
|
-
source: null,
|
|
902
|
-
usagePath: "/components/catalyst-ui/code/props-code.tsx",
|
|
903
|
-
usage: null,
|
|
904
|
-
premium: true,
|
|
905
|
-
category: "Code",
|
|
906
|
-
tags: ["ui", "components", "code", "props", "documentation", "interactive"],
|
|
907
|
-
features: ["Responsive", "TypeScript", "Interactive", "Copy to Clipboard", "Collapsible", "Multiple Components"],
|
|
908
|
-
dependencies: ["react", "lucide-react"],
|
|
909
|
-
props: {
|
|
910
|
-
"PropsCode": [
|
|
911
|
-
{ name: "props", type: "PropDefinition[] | Record<string, PropDefinition[]>", default: "[]" },
|
|
912
|
-
{ name: "name", type: "string", default: "\"Calendar\"" },
|
|
913
|
-
],
|
|
914
|
-
"PropsCopyButton": [
|
|
915
|
-
{ name: "componentName", type: "string", default: "null" },
|
|
916
|
-
{ name: "props", type: "PropDefinition[] | Record<string, PropDefinition[]>", default: "null" },
|
|
917
|
-
{ name: "className", type: "string", default: "null" },
|
|
918
|
-
],
|
|
919
|
-
"PropsCopyButtonGroup": [
|
|
920
|
-
{ name: "componentName", type: "string", default: "null" },
|
|
921
|
-
{ name: "props", type: "PropDefinition[] | Record<string, PropDefinition[]>", default: "null" },
|
|
922
|
-
{ name: "className", type: "string", default: "null" },
|
|
923
|
-
],
|
|
924
|
-
"AllProps": [
|
|
925
|
-
{ name: "props", type: "PropDefinition[] | Record<string, PropDefinition[]>", default: "[]" },
|
|
926
|
-
{ name: "name", type: "string", default: "\"Calendar\"" },
|
|
927
|
-
],
|
|
928
|
-
"BasicAllProps": [
|
|
929
|
-
{ name: "props", type: "PropDefinition[] | Record<string, PropDefinition[]>", default: "[]" },
|
|
930
|
-
{ name: "name", type: "string", default: "\"Calendar\"" },
|
|
931
|
-
],
|
|
932
|
-
"PropDefinition": [
|
|
933
|
-
{ name: "name", type: "string", default: "null" },
|
|
934
|
-
{ name: "type", type: "string", default: "null" },
|
|
935
|
-
{ name: "default", type: "string", default: "null" },
|
|
936
|
-
],
|
|
937
|
-
},
|
|
938
|
-
desc: null,
|
|
939
|
-
status: null,
|
|
940
|
-
lastUpdated: null
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
name: "Terminal Code",
|
|
944
|
-
value: "terminal-code",
|
|
945
|
-
importPath: "~/components/catalyst-ui/code/terminal-code",
|
|
946
|
-
multiImport: null,
|
|
947
|
-
basicusage: `<TerminalCode
|
|
948
|
-
title="Install Package"
|
|
949
|
-
code="react"
|
|
950
|
-
type="install"
|
|
951
|
-
/>
|
|
952
|
-
|
|
953
|
-
<TerminalCode
|
|
954
|
-
title="Create Project"
|
|
955
|
-
code="next-app"
|
|
956
|
-
type="create"
|
|
957
|
-
desc="Create a new Next.js application with this command."
|
|
958
|
-
/>
|
|
959
|
-
|
|
960
|
-
<TerminalCode
|
|
961
|
-
title="Run Script"
|
|
962
|
-
code="dev"
|
|
963
|
-
type="npx"
|
|
964
|
-
/>
|
|
965
|
-
|
|
966
|
-
<TerminalCode
|
|
967
|
-
title="Custom Command"
|
|
968
|
-
code="git commit -m 'Initial commit'"
|
|
969
|
-
type="custom"
|
|
970
|
-
/>`,
|
|
971
|
-
path: "/components/catalyst-ui/code/terminal-code.tsx",
|
|
972
|
-
source: null,
|
|
973
|
-
usagePath: "/components/catalyst-ui/code/terminal-code.tsx",
|
|
974
|
-
usage: null,
|
|
975
|
-
premium: true,
|
|
976
|
-
category: "Code",
|
|
977
|
-
tags: ["ui", "components", "code", "terminal", "command-line", "interactive"],
|
|
978
|
-
features: ["Responsive", "TypeScript", "Interactive", "Multiple Package Managers", "Copy to Clipboard", "Multiple Command Types"],
|
|
979
|
-
dependencies: ["react", "lucide-react"],
|
|
980
|
-
props: {
|
|
981
|
-
"TerminalCode": [
|
|
982
|
-
{ name: "title", type: "string", default: "\"Terminal\"" },
|
|
983
|
-
{ name: "code", type: "string", default: "\"devstack\"" },
|
|
984
|
-
{ name: "desc", type: "string", default: "null" },
|
|
985
|
-
{ name: "type", type: "\"install\" | \"create\" | \"npx\" | \"custom\" | \"CustomViewAll\"", default: "\"install\"" },
|
|
986
|
-
{ name: "global", type: "boolean", default: "true" },
|
|
987
|
-
{ name: "code2", type: "any", default: "null" },
|
|
988
|
-
],
|
|
989
|
-
},
|
|
990
|
-
desc: null,
|
|
991
|
-
status: null,
|
|
992
|
-
lastUpdated: null
|
|
993
|
-
},
|
|
994
|
-
{
|
|
995
|
-
name: "Tsx Section",
|
|
996
|
-
value: "tsx-section",
|
|
997
|
-
importPath: "~/components/catalyst-ui/code/tsx-section",
|
|
998
|
-
multiImport: null,
|
|
999
|
-
basicusage: `<TsxSection
|
|
1000
|
-
code={\`function Example() {
|
|
1001
|
-
return <div>Hello World</div>;
|
|
1002
|
-
}\`}
|
|
1003
|
-
title="Component Example"
|
|
1004
|
-
/>
|
|
1005
|
-
|
|
1006
|
-
<TsxSection
|
|
1007
|
-
code={typescriptCode}
|
|
1008
|
-
title="TypeScript Interface"
|
|
1009
|
-
note="This interface defines the data structure for our API responses."
|
|
1010
|
-
noteItems={[
|
|
1011
|
-
"All fields are required unless marked optional",
|
|
1012
|
-
"Dates should be in ISO 8601 format",
|
|
1013
|
-
"IDs are auto-generated by the database"
|
|
1014
|
-
]}
|
|
1015
|
-
icon={<Info className="w-4 h-4 text-blue-500" />}
|
|
1016
|
-
/>`,
|
|
1017
|
-
path: "/components/catalyst-ui/code/tsx-section.tsx",
|
|
1018
|
-
source: null,
|
|
1019
|
-
usagePath: "/components/catalyst-ui/code/tsx-section.tsx",
|
|
1020
|
-
usage: null,
|
|
1021
|
-
premium: true,
|
|
1022
|
-
category: "Code",
|
|
1023
|
-
tags: ["ui", "components", "code", "typescript", "react", "documentation"],
|
|
1024
|
-
features: ["Responsive", "TypeScript", "Collapsible", "Copy to Clipboard", "Export Functionality"],
|
|
1025
|
-
dependencies: ["react", "lucide-react"],
|
|
1026
|
-
props: {
|
|
1027
|
-
"TsxSection": [
|
|
1028
|
-
{ name: "code", type: "string", default: "null" },
|
|
1029
|
-
{ name: "title", type: "string", default: "\"TypeScript Code\"" },
|
|
1030
|
-
{ name: "note", type: "string", default: "null" },
|
|
1031
|
-
{ name: "noteItems", type: "string[]", default: "null" },
|
|
1032
|
-
{ name: "icon", type: "React.ReactNode", default: "null" },
|
|
1033
|
-
{ name: "language", type: "string", default: "\"tsx\"" },
|
|
1034
|
-
],
|
|
1035
|
-
},
|
|
1036
|
-
desc: null,
|
|
1037
|
-
status: null,
|
|
1038
|
-
lastUpdated: null
|
|
1039
|
-
},
|
|
1040
|
-
];
|