@catalystsoftware/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/README.md +7 -0
- package/components/catalyst-ui/buttons/burger.tsx +207 -0
- package/components/catalyst-ui/core/data-display/timeline.tsx +210 -0
- package/components/catalyst-ui/core/feedback/alert.tsx +491 -0
- package/components/catalyst-ui/core/feedback/spinner-1.tsx +65 -0
- package/components/catalyst-ui/core/feedback/toast.tsx +1857 -0
- package/components/catalyst-ui/core/navigation/menu.tsx +164 -0
- package/components/catalyst-ui/forms/toggle-class.tsx +176 -0
- package/components/catalyst-ui/hooks/use-copy-to-clipboard.tsx +419 -0
- package/components/catalyst-ui/hooks/use-counter.tsx +13 -0
- package/components/catalyst-ui/hooks/use-event-listener.tsx +23 -0
- package/components/catalyst-ui/hooks/use-export-markdown.tsx +47 -0
- package/components/catalyst-ui/hooks/use-focus.tsx +17 -0
- package/components/catalyst-ui/hooks/use-interval.tsx +23 -0
- package/components/catalyst-ui/hooks/use-is-client.tsx +16 -0
- package/components/catalyst-ui/hooks/use-media-query.tsx +19 -0
- package/components/catalyst-ui/hooks/use-mobile.tsx +19 -0
- package/components/catalyst-ui/hooks/use-resize-observer.tsx +81 -0
- package/components/catalyst-ui/hooks/use-timeout.tsx +21 -0
- package/components/catalyst-ui/hooks/use-timer.tsx +209 -0
- package/components/catalyst-ui/hooks/use-toggle.tsx +12 -0
- package/components/catalyst-ui/media/image.tsx +13 -0
- package/components/catalyst-ui/overlays/dual-sidebar.tsx +4142 -0
- package/components/catalyst-ui/overlays/sidebar-original.tsx +726 -0
- package/components/catalyst-ui/primitives/accordion.tsx +250 -0
- package/components/catalyst-ui/primitives/alert-dialog.tsx +126 -0
- package/components/catalyst-ui/primitives/aspect-ratio.tsx +9 -0
- package/components/catalyst-ui/primitives/avatar.tsx +296 -0
- package/components/catalyst-ui/primitives/badge.tsx +57 -0
- package/components/catalyst-ui/primitives/breadcrumb.tsx +101 -0
- package/components/catalyst-ui/primitives/button.tsx +265 -0
- package/components/catalyst-ui/primitives/calendar-v4.tsx +208 -0
- package/components/catalyst-ui/primitives/calendar.tsx +295 -0
- package/components/catalyst-ui/primitives/card.tsx +618 -0
- package/components/catalyst-ui/primitives/carousel.tsx +238 -0
- package/components/catalyst-ui/primitives/chart.tsx +347 -0
- package/components/catalyst-ui/primitives/checkbox.tsx +225 -0
- package/components/catalyst-ui/primitives/collapsible.tsx +212 -0
- package/components/catalyst-ui/primitives/command.tsx +393 -0
- package/components/catalyst-ui/primitives/context-menu.tsx +236 -0
- package/components/catalyst-ui/primitives/dialog.tsx +471 -0
- package/components/catalyst-ui/primitives/drawer.tsx +761 -0
- package/components/catalyst-ui/primitives/dropdown-menu.tsx +290 -0
- package/components/catalyst-ui/primitives/empty.tsx +104 -0
- package/components/catalyst-ui/primitives/field.tsx +244 -0
- package/components/catalyst-ui/primitives/hover-card.tsx +124 -0
- package/components/catalyst-ui/primitives/input-otp.tsx +76 -0
- package/components/catalyst-ui/primitives/input.tsx +64 -0
- package/components/catalyst-ui/primitives/item.tsx +196 -0
- package/components/catalyst-ui/primitives/kbd.tsx +75 -0
- package/components/catalyst-ui/primitives/label.tsx +24 -0
- package/components/catalyst-ui/primitives/navigation-menu.tsx +150 -0
- package/components/catalyst-ui/primitives/pagination.tsx +198 -0
- package/components/catalyst-ui/primitives/popover.tsx +232 -0
- package/components/catalyst-ui/primitives/progress.tsx +34 -0
- package/components/catalyst-ui/primitives/radio-group.tsx +43 -0
- package/components/catalyst-ui/primitives/resizable.tsx +56 -0
- package/components/catalyst-ui/primitives/select.tsx +155 -0
- package/components/catalyst-ui/primitives/separator.tsx +74 -0
- package/components/catalyst-ui/primitives/sheet.tsx +126 -0
- package/components/catalyst-ui/primitives/skeleton.tsx +15 -0
- package/components/catalyst-ui/primitives/slider.tsx +27 -0
- package/components/catalyst-ui/primitives/switch.tsx +187 -0
- package/components/catalyst-ui/primitives/tabs.tsx +335 -0
- package/components/catalyst-ui/primitives/textarea.tsx +24 -0
- package/components/catalyst-ui/primitives/toggle-group.tsx +55 -0
- package/components/catalyst-ui/primitives/toggle.tsx +42 -0
- package/components/catalyst-ui/primitives/tooltip.tsx +116 -0
- package/components/catalyst-ui/utils/basic-auth.tsx +40 -0
- package/components/catalyst-ui/utils/context-storage.tsx +19 -0
- package/components/catalyst-ui/utils/cors-middleware.tsx +71 -0
- package/components/catalyst-ui/utils/deferred-content.tsx +595 -0
- package/components/catalyst-ui/utils/honeypot-middleware.tsx +38 -0
- package/components/catalyst-ui/utils/incId.tsx +75 -0
- package/components/catalyst-ui/utils/jwk-auth.tsx +36 -0
- package/components/catalyst-ui/utils/request-id.tsx +14 -0
- package/components/catalyst-ui/utils/secure-headers.tsx +37 -0
- package/components/catalyst-ui/utils/server-timing.tsx +23 -0
- package/components/catalyst-ui/utils/utils.ts +43 -0
- package/components/catalyst-ui/utils/with-cookie.tsx +43 -0
- package/components/catalyst-ui/x/accordian-x.tsx +428 -0
- package/components/catalyst-ui/x/alert-x.tsx +413 -0
- package/components/catalyst-ui/x/animated-text-x.tsx +2242 -0
- package/components/catalyst-ui/x/avatar-x.tsx +515 -0
- package/components/catalyst-ui/x/badge-x.tsx +670 -0
- package/components/catalyst-ui/x/button-X.tsx +2857 -0
- package/components/catalyst-ui/x/button-group-x.tsx +847 -0
- package/components/catalyst-ui/x/calendar-x.tsx +1910 -0
- package/components/catalyst-ui/x/card-x.tsx +2597 -0
- package/components/catalyst-ui/x/checkbox-x.tsx +656 -0
- package/components/catalyst-ui/x/collapsible-x.tsx +1360 -0
- package/components/catalyst-ui/x/combobox-x.tsx +911 -0
- package/components/catalyst-ui/x/data-table-x.tsx +1753 -0
- package/components/catalyst-ui/x/date-picker-x.tsx +648 -0
- package/components/catalyst-ui/x/dialog-x.tsx +659 -0
- package/components/catalyst-ui/x/dropdown-menu-x.tsx +612 -0
- package/components/catalyst-ui/x/hover-card-x.tsx +375 -0
- package/components/catalyst-ui/x/icon-x.tsx +840 -0
- package/components/catalyst-ui/x/input-mask-x.tsx +981 -0
- package/components/catalyst-ui/x/input-otp-x.tsx +659 -0
- package/components/catalyst-ui/x/loader-x.tsx +1757 -0
- package/components/catalyst-ui/x/pagination-x.tsx +622 -0
- package/components/catalyst-ui/x/popover-x.tsx +744 -0
- package/components/catalyst-ui/x/radio-group-x.tsx +499 -0
- package/components/catalyst-ui/x/select-x.tsx +1127 -0
- package/components/catalyst-ui/x/sheet-x.tsx +668 -0
- package/components/catalyst-ui/x/switch-x.tsx +681 -0
- package/components/catalyst-ui/x/table-x.tsx +574 -0
- package/components/catalyst-ui/x/tabs-x.tsx +839 -0
- package/components/catalyst-ui/x/textarea-x.tsx +1263 -0
- package/components/catalyst-ui/x/tooltip-x.tsx +396 -0
- package/components/catalyst-ui/x/tracker-x.tsx +560 -0
- package/data/bg-data.tsx +901 -0
- package/data/buttons-data.tsx +2327 -0
- package/data/charts-data.tsx +102 -0
- package/data/chat-data.tsx +83 -0
- package/data/code-data.tsx +1040 -0
- package/data/comboboxes-data.tsx +1843 -0
- package/data/command-data.tsx +1381 -0
- package/data/core-data.tsx +15953 -0
- package/data/crm-data.tsx +47 -0
- package/data/data.tsx +159 -0
- package/data/date-and-time-data.tsx +554 -0
- package/data/dependencies.tsx +7 -0
- package/data/ecommerce-data.tsx +1387 -0
- package/data/forms-data.tsx +7890 -0
- package/data/hooks-data.tsx +5487 -0
- package/data/index.ts +34 -0
- package/data/inputs-data.tsx +557 -0
- package/data/interactive-data.tsx +5394 -0
- package/data/lofi-data.tsx +18295 -0
- package/data/marketing-data.tsx +2546 -0
- package/data/media-data.tsx +1510 -0
- package/data/motion-data.tsx +5801 -0
- package/data/overlay-data.tsx +4136 -0
- package/data/pdf-data.tsx +124 -0
- package/data/pos-data.tsx +213 -0
- package/data/postcss.config.js +6 -0
- package/data/primitive-data.tsx +5170 -0
- package/data/prompt-data.tsx +1226 -0
- package/data/requiredLibs.ts +4 -0
- package/data/sandbox-data.tsx +1 -0
- package/data/sidebars-data.tsx +5421 -0
- package/data/stacks-data.tsx +32 -0
- package/data/table-data.tsx +706 -0
- package/data/tailwind.config.js +3830 -0
- package/data/tailwind.config.ngin.js +3830 -0
- package/data/tailwind.css +431 -0
- package/data/tools-data.tsx +6910 -0
- package/data/typography-data.tsx +2050 -0
- package/data/utils-data.tsx +6500 -0
- package/data/x-data.tsx +1171 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30245 -0
- package/dist/index.js.map +362 -0
- package/package.json +50 -0
|
@@ -0,0 +1,2050 @@
|
|
|
1
|
+
// bring hypertext from background
|
|
2
|
+
export const componentsTypography = [
|
|
3
|
+
{
|
|
4
|
+
name: "Encrypted Text",
|
|
5
|
+
value: "encrypted-text",
|
|
6
|
+
path: "/components/catalyst-ui/typography/encrypted-text.tsx",
|
|
7
|
+
files: {
|
|
8
|
+
"encrypted-text": "/components/catalyst-ui/blocks/encrypted-text.tsx",
|
|
9
|
+
},
|
|
10
|
+
premium: true,
|
|
11
|
+
category: "Typography",
|
|
12
|
+
tags: ["text", "animation", "encrypted", "effect"],
|
|
13
|
+
features: ["Responsive", "TypeScript", "Accessible", "Animated"],
|
|
14
|
+
dependencies: ["react"],
|
|
15
|
+
desc: "A text component with encrypted animation effect",
|
|
16
|
+
status: "Listed",
|
|
17
|
+
lastUpdated: "2025-12-01"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "Text Rewind",
|
|
21
|
+
value: "text-rewind",
|
|
22
|
+
importPath: "~/components/catalyst-ui/typography/text-rewind",
|
|
23
|
+
multiImport: null,
|
|
24
|
+
basicusage: `
|
|
25
|
+
<TextRewind />
|
|
26
|
+
|
|
27
|
+
<TextRewind
|
|
28
|
+
text="Custom Text"
|
|
29
|
+
className="text-6xl"
|
|
30
|
+
shadowColors={{
|
|
31
|
+
first: "#3b82f6",
|
|
32
|
+
second: "#8b5cf6",
|
|
33
|
+
third: "#ec4899",
|
|
34
|
+
fourth: "#f59e0b",
|
|
35
|
+
glow: "#10b981"
|
|
36
|
+
}}
|
|
37
|
+
/>`,
|
|
38
|
+
path: "/components/catalyst-ui/typography/text-rewind.tsx",
|
|
39
|
+
source: null,
|
|
40
|
+
usagePath: "/components/catalyst-ui/typography/text-rewind.tsx",
|
|
41
|
+
usage: null,
|
|
42
|
+
premium: true,
|
|
43
|
+
category: "Typography",
|
|
44
|
+
tags: ["text", "animation", "hover", "effects"],
|
|
45
|
+
features: ["Interactive", "Hover Effects", "Customizable", "TypeScript"],
|
|
46
|
+
dependencies: ["framer-motion", "react"],
|
|
47
|
+
props: {
|
|
48
|
+
"TextRewind": [
|
|
49
|
+
{ name: "text", type: "string", default: "LINE" },
|
|
50
|
+
{ name: "className", type: "string", default: "null" },
|
|
51
|
+
{ name: "shadowColors", type: "{ first?: string; second?: string; third?: string; fourth?: string; glow?: string }", default: "{ first: '#07bccc', second: '#e601c0', third: '#e9019a', fourth: '#f40468', glow: '#f40468' }" },
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
desc: null,
|
|
55
|
+
status: null,
|
|
56
|
+
lastUpdated: null
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "Animated Glitch Text",
|
|
60
|
+
value: "animated-glitch-text",
|
|
61
|
+
importPath: "~/components/catalyst-ui/typography/animated-glitch-text",
|
|
62
|
+
multiImport: null,
|
|
63
|
+
basicusage: `
|
|
64
|
+
<AnimatedGlitchText text="Hello World" />
|
|
65
|
+
|
|
66
|
+
<AnimatedGlitchText
|
|
67
|
+
text="Custom Glitch"
|
|
68
|
+
as="h2"
|
|
69
|
+
colors={{
|
|
70
|
+
red: "#ff00ff",
|
|
71
|
+
green: "#00ffff",
|
|
72
|
+
blue: "#ffff00"
|
|
73
|
+
}}
|
|
74
|
+
size="lg"
|
|
75
|
+
textClassName="text-8xl font-black"
|
|
76
|
+
containerClassName=""
|
|
77
|
+
className="bg-gradient-to-r from-purple-500/20 to-pink-500/20"
|
|
78
|
+
/>`,
|
|
79
|
+
path: "/components/catalyst-ui/typography/glitch-text.tsx",
|
|
80
|
+
source: null,
|
|
81
|
+
usagePath: "/components/catalyst-ui/typography/glitch-text.tsx",
|
|
82
|
+
usage: null,
|
|
83
|
+
premium: true,
|
|
84
|
+
category: "Typography",
|
|
85
|
+
tags: ["animation", "text", "effects"],
|
|
86
|
+
features: ["Animated", "TypeScript", "Accessible", "Customizable"],
|
|
87
|
+
dependencies: ["framer-motion", "react"],
|
|
88
|
+
props: {
|
|
89
|
+
"AnimatedGlitchText": [
|
|
90
|
+
{ name: "text", type: "string", default: "required" },
|
|
91
|
+
{ name: "as", type: "h1 | h2 | h3 | h4 | h5 | h6 | p | span", default: "h1" },
|
|
92
|
+
{ name: "colors", type: "{ red: string; green: string; blue: string }", default: "{ red: '#ff0000', green: '#00ff00', blue: '#0000ff' }" },
|
|
93
|
+
{ name: "size", type: "sm | md | lg", default: "md" },
|
|
94
|
+
{ name: "textClassName", type: "string", default: "null" },
|
|
95
|
+
{ name: "containerClassName", type: "string", default: "null" },
|
|
96
|
+
{ name: "className", type: "string", default: "null" },
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
desc: null,
|
|
100
|
+
status: null,
|
|
101
|
+
lastUpdated: null
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: 'Line Shadow Text',
|
|
105
|
+
value: 'line-shadow-text',
|
|
106
|
+
importPath: '~/components/catalyst-ui/typography/line-shadow-text',
|
|
107
|
+
multiImport: null,
|
|
108
|
+
basicusage: `
|
|
109
|
+
<LineShadowText>
|
|
110
|
+
Fast
|
|
111
|
+
</LineShadowText>
|
|
112
|
+
|
|
113
|
+
<LineShadowText
|
|
114
|
+
shadowColor="black"
|
|
115
|
+
as="span"
|
|
116
|
+
className="italic"
|
|
117
|
+
>
|
|
118
|
+
Fast
|
|
119
|
+
</LineShadowText>`,
|
|
120
|
+
path: '/components/catalyst-ui/typography/line-shadow-text.tsx',
|
|
121
|
+
source: null,
|
|
122
|
+
usagePath: '/components/catalyst-ui/typography/line-shadow-text.tsx',
|
|
123
|
+
usage: null,
|
|
124
|
+
premium: true,
|
|
125
|
+
category: 'Typography',
|
|
126
|
+
tags: ['typography', 'text', 'animation', 'shadow', 'motion'],
|
|
127
|
+
features: ['Responsive', 'TypeScript', 'Accessible', 'Animated'],
|
|
128
|
+
dependencies: ['motion/react', 'react'],
|
|
129
|
+
props: {
|
|
130
|
+
LineShadowText: [
|
|
131
|
+
{ name: 'children', type: 'string', default: 'null' },
|
|
132
|
+
{ name: 'shadowColor', type: 'string', default: 'black' },
|
|
133
|
+
{ name: 'as', type: 'React.ElementType', default: 'span' },
|
|
134
|
+
{ name: 'className', type: 'string', default: 'null' },
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
desc: null,
|
|
138
|
+
status: null,
|
|
139
|
+
lastUpdated: null
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "Text Animate",
|
|
143
|
+
value: "text-animate",
|
|
144
|
+
importPath: "~/components/catalyst-ui/typography/text-animate",
|
|
145
|
+
multiImport: null,
|
|
146
|
+
basicusage: `
|
|
147
|
+
<TextAnimate>
|
|
148
|
+
Animated text content
|
|
149
|
+
</TextAnimate>
|
|
150
|
+
|
|
151
|
+
<TextAnimate
|
|
152
|
+
children="Custom animated text"
|
|
153
|
+
delay={0}
|
|
154
|
+
duration={0.3}
|
|
155
|
+
variants={null}
|
|
156
|
+
as="p"
|
|
157
|
+
by="word"
|
|
158
|
+
startOnView={true}
|
|
159
|
+
once={false}
|
|
160
|
+
animation="fadeIn"
|
|
161
|
+
accessible={true}
|
|
162
|
+
className=""
|
|
163
|
+
segmentClassName=""
|
|
164
|
+
>
|
|
165
|
+
Animated text content
|
|
166
|
+
</TextAnimate>`,
|
|
167
|
+
path: "/components/catalyst-ui/typography/text-animate.tsx",
|
|
168
|
+
source: null,
|
|
169
|
+
usagePath: "/components/catalyst-ui/typography/text-animate.tsx",
|
|
170
|
+
usage: null,
|
|
171
|
+
premium: true,
|
|
172
|
+
category: "Typography",
|
|
173
|
+
tags: ["animation", "text", "motion", "effects"],
|
|
174
|
+
features: ["TypeScript", "Accessible", "Multiple Animations"],
|
|
175
|
+
dependencies: ["motion/react", "react"],
|
|
176
|
+
props: {
|
|
177
|
+
"TextAnimate": [
|
|
178
|
+
{ name: "children", type: "string", default: "null" },
|
|
179
|
+
{ name: "className", type: "string", default: "null" },
|
|
180
|
+
{ name: "segmentClassName", type: "string", default: "null" },
|
|
181
|
+
{ name: "delay", type: "number", default: "0" },
|
|
182
|
+
{ name: "duration", type: "number", default: "0.3" },
|
|
183
|
+
{ name: "variants", type: "Variants", default: "null" },
|
|
184
|
+
{ name: "as", type: "ElementType", default: "p" },
|
|
185
|
+
{ name: "by", type: "AnimationType", default: "word" },
|
|
186
|
+
{ name: "startOnView", type: "boolean", default: "true" },
|
|
187
|
+
{ name: "once", type: "boolean", default: "false" },
|
|
188
|
+
{ name: "animation", type: "AnimationVariant", default: "fadeIn" },
|
|
189
|
+
{ name: "accessible", type: "boolean", default: "true" },
|
|
190
|
+
],
|
|
191
|
+
},
|
|
192
|
+
desc: null,
|
|
193
|
+
status: null,
|
|
194
|
+
lastUpdated: null
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "Text Highlighter",
|
|
198
|
+
value: "text-highlighter",
|
|
199
|
+
importPath: "~/components/catalyst-ui/typography/text-highlighter",
|
|
200
|
+
multiImport: null,
|
|
201
|
+
basicusage: `
|
|
202
|
+
<TextHighlighter>
|
|
203
|
+
Highlighted text
|
|
204
|
+
</TextHighlighter>
|
|
205
|
+
|
|
206
|
+
<TextHighlighter
|
|
207
|
+
action="highlight"
|
|
208
|
+
color="#ffd1dc"
|
|
209
|
+
strokeWidth={1.5}
|
|
210
|
+
animationDuration={600}
|
|
211
|
+
iterations={2}
|
|
212
|
+
padding={2}
|
|
213
|
+
multiline={true}
|
|
214
|
+
isView={false}
|
|
215
|
+
>
|
|
216
|
+
Custom highlighted text
|
|
217
|
+
</TextHighlighter>`,
|
|
218
|
+
path: "/components/catalyst-ui/typography/text-highlighter.tsx",
|
|
219
|
+
source: null,
|
|
220
|
+
usagePath: "/components/catalyst-ui/typography/text-highlighter.tsx",
|
|
221
|
+
usage: null,
|
|
222
|
+
premium: true,
|
|
223
|
+
category: "Typography",
|
|
224
|
+
tags: ["highlight", "annotation", "text", "effects"],
|
|
225
|
+
features: ["TypeScript", "Interactive", "Customizable"],
|
|
226
|
+
dependencies: ["rough-notation", "motion/react", "react"],
|
|
227
|
+
props: {
|
|
228
|
+
"TextHighlighter": [
|
|
229
|
+
{ name: "children", type: "React.ReactNode", default: "null" },
|
|
230
|
+
{ name: "action", type: "AnnotationAction", default: "highlight" },
|
|
231
|
+
{ name: "color", type: "string", default: "#ffd1dc" },
|
|
232
|
+
{ name: "strokeWidth", type: "number", default: "1.5" },
|
|
233
|
+
{ name: "animationDuration", type: "number", default: "600" },
|
|
234
|
+
{ name: "iterations", type: "number", default: "2" },
|
|
235
|
+
{ name: "padding", type: "number", default: "2" },
|
|
236
|
+
{ name: "multiline", type: "boolean", default: "true" },
|
|
237
|
+
{ name: "isView", type: "boolean", default: "false" },
|
|
238
|
+
],
|
|
239
|
+
},
|
|
240
|
+
desc: null,
|
|
241
|
+
status: null,
|
|
242
|
+
lastUpdated: null
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: "Text Reveal",
|
|
246
|
+
value: "text-reveal",
|
|
247
|
+
importPath: "~/components/catalyst-ui/typography/text-reveal",
|
|
248
|
+
multiImport: null,
|
|
249
|
+
basicusage: `
|
|
250
|
+
<TextReveal>
|
|
251
|
+
Your text content here
|
|
252
|
+
</TextReveal>
|
|
253
|
+
|
|
254
|
+
<TextReveal className="">
|
|
255
|
+
Your custom styled text content
|
|
256
|
+
</TextReveal>`,
|
|
257
|
+
path: "/components/catalyst-ui/typography/text-reveal.tsx",
|
|
258
|
+
source: null,
|
|
259
|
+
usagePath: "/components/catalyst-ui/typography/text-reveal.tsx",
|
|
260
|
+
usage: null,
|
|
261
|
+
premium: true,
|
|
262
|
+
category: "Typography",
|
|
263
|
+
tags: ["scroll", "reveal", "animation", "text", "effects"],
|
|
264
|
+
features: ["TypeScript", "Scroll Triggered", "Smooth Animations"],
|
|
265
|
+
dependencies: ["motion/react", "react"],
|
|
266
|
+
props: {
|
|
267
|
+
"TextReveal": [
|
|
268
|
+
{ name: "children", type: "string", default: "null" },
|
|
269
|
+
{ name: "className", type: "string", default: "null" },
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
desc: null,
|
|
273
|
+
status: null,
|
|
274
|
+
lastUpdated: null
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: "Word Rotate",
|
|
278
|
+
value: "word-rotate",
|
|
279
|
+
importPath: "~/components/catalyst-ui/typography/word-rotate",
|
|
280
|
+
multiImport: null,
|
|
281
|
+
basicusage: `
|
|
282
|
+
<WordRotate words={["Word1", "Word2"]} />
|
|
283
|
+
|
|
284
|
+
<WordRotate
|
|
285
|
+
words={["Word1", "Word2", "Word3"]}
|
|
286
|
+
duration={2500}
|
|
287
|
+
motionProps={{
|
|
288
|
+
initial: { opacity: 0, y: -50 },
|
|
289
|
+
animate: { opacity: 1, y: 0 },
|
|
290
|
+
exit: { opacity: 0, y: 50 },
|
|
291
|
+
transition: { duration: 0.25, ease: "easeOut" }
|
|
292
|
+
}}
|
|
293
|
+
className=""
|
|
294
|
+
/>`,
|
|
295
|
+
path: "/components/catalyst-ui/typography/word-rotate.tsx",
|
|
296
|
+
source: null,
|
|
297
|
+
usagePath: "/components/catalyst-ui/typography/word-rotate.tsx",
|
|
298
|
+
usage: null,
|
|
299
|
+
premium: true,
|
|
300
|
+
category: "Typography",
|
|
301
|
+
tags: ["animation", "text", "rotate", "effects"],
|
|
302
|
+
features: ["TypeScript", "Accessible", "Smooth Animations"],
|
|
303
|
+
dependencies: ["motion/react", "react"],
|
|
304
|
+
props: {
|
|
305
|
+
"WordRotate": [
|
|
306
|
+
{ name: "words", type: "string[]", default: "null" },
|
|
307
|
+
{ name: "duration", type: "number", default: "2500" },
|
|
308
|
+
{
|
|
309
|
+
name: "motionProps", type: "MotionProps", default: `{
|
|
310
|
+
initial: { opacity: 0, y: -50 },
|
|
311
|
+
animate: { opacity: 1, y: 0 },
|
|
312
|
+
exit: { opacity: 0, y: 50 },
|
|
313
|
+
transition: { duration: 0.25, ease: "easeOut" }
|
|
314
|
+
}`
|
|
315
|
+
},
|
|
316
|
+
{ name: "className", type: "string", default: "null" },
|
|
317
|
+
],
|
|
318
|
+
},
|
|
319
|
+
desc: null,
|
|
320
|
+
status: null,
|
|
321
|
+
lastUpdated: null
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: "Typing Animation",
|
|
325
|
+
value: "typing-animation",
|
|
326
|
+
importPath: "~/components/catalyst-ui/typography/typing-animation",
|
|
327
|
+
multiImport: null,
|
|
328
|
+
basicusage: `
|
|
329
|
+
<TypingAnimation>
|
|
330
|
+
Hello World
|
|
331
|
+
</TypingAnimation>
|
|
332
|
+
|
|
333
|
+
<TypingAnimation
|
|
334
|
+
words={["Word 1", "Word 2"]}
|
|
335
|
+
duration={100}
|
|
336
|
+
typeSpeed={100}
|
|
337
|
+
deleteSpeed={50}
|
|
338
|
+
delay={0}
|
|
339
|
+
pauseDelay={1000}
|
|
340
|
+
loop={false}
|
|
341
|
+
as="span"
|
|
342
|
+
startOnView={true}
|
|
343
|
+
showCursor={true}
|
|
344
|
+
blinkCursor={true}
|
|
345
|
+
cursorStyle="line"
|
|
346
|
+
className=""
|
|
347
|
+
>
|
|
348
|
+
Hello World
|
|
349
|
+
</TypingAnimation>`,
|
|
350
|
+
path: "/components/catalyst-ui/typography/typing-animation.tsx",
|
|
351
|
+
source: null,
|
|
352
|
+
usagePath: "/components/catalyst-ui/typography/typing-animation.tsx",
|
|
353
|
+
usage: null,
|
|
354
|
+
premium: true,
|
|
355
|
+
category: "Typography",
|
|
356
|
+
tags: ["typing", "animation", "text", "effects"],
|
|
357
|
+
features: ["TypeScript", "Accessible", "Customizable"],
|
|
358
|
+
dependencies: ["motion/react", "react"],
|
|
359
|
+
props: {
|
|
360
|
+
"TypingAnimation": [
|
|
361
|
+
{ name: "children", type: "string", default: "null" },
|
|
362
|
+
{ name: "words", type: "string[]", default: "null" },
|
|
363
|
+
{ name: "className", type: "string", default: "null" },
|
|
364
|
+
{ name: "duration", type: "number", default: "100" },
|
|
365
|
+
{ name: "typeSpeed", type: "number", default: "null" },
|
|
366
|
+
{ name: "deleteSpeed", type: "number", default: "null" },
|
|
367
|
+
{ name: "delay", type: "number", default: "0" },
|
|
368
|
+
{ name: "pauseDelay", type: "number", default: "1000" },
|
|
369
|
+
{ name: "loop", type: "boolean", default: "false" },
|
|
370
|
+
{ name: "as", type: "React.ElementType", default: "span" },
|
|
371
|
+
{ name: "startOnView", type: "boolean", default: "true" },
|
|
372
|
+
{ name: "showCursor", type: "boolean", default: "true" },
|
|
373
|
+
{ name: "blinkCursor", type: "boolean", default: "true" },
|
|
374
|
+
{ name: "cursorStyle", type: "line | block | underscore", default: "line" },
|
|
375
|
+
],
|
|
376
|
+
},
|
|
377
|
+
desc: null,
|
|
378
|
+
status: null,
|
|
379
|
+
lastUpdated: null
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
name: "Video Text",
|
|
383
|
+
value: "video-text",
|
|
384
|
+
importPath: "~/components/catalyst-ui/typography/video-text",
|
|
385
|
+
multiImport: null,
|
|
386
|
+
basicusage: `
|
|
387
|
+
<VideoText src="video.webm">
|
|
388
|
+
Text Content
|
|
389
|
+
</VideoText>
|
|
390
|
+
|
|
391
|
+
<VideoText
|
|
392
|
+
src="video.webm"
|
|
393
|
+
autoPlay={true}
|
|
394
|
+
muted={true}
|
|
395
|
+
loop={true}
|
|
396
|
+
preload="auto"
|
|
397
|
+
fontSize={20}
|
|
398
|
+
fontWeight="bold"
|
|
399
|
+
textAnchor="middle"
|
|
400
|
+
dominantBaseline="middle"
|
|
401
|
+
fontFamily="sans-serif"
|
|
402
|
+
as="div"
|
|
403
|
+
className=""
|
|
404
|
+
>
|
|
405
|
+
Text Content
|
|
406
|
+
</VideoText>`,
|
|
407
|
+
path: "/components/catalyst-ui/typography/video-text.tsx",
|
|
408
|
+
source: null,
|
|
409
|
+
usagePath: "/components/catalyst-ui/typography/video-text.tsx",
|
|
410
|
+
usage: null,
|
|
411
|
+
premium: true,
|
|
412
|
+
category: "Typography",
|
|
413
|
+
tags: ["video", "text", "mask", "effects"],
|
|
414
|
+
features: ["TypeScript", "Accessible", "Responsive"],
|
|
415
|
+
dependencies: ["react"],
|
|
416
|
+
props: {
|
|
417
|
+
"VideoText": [
|
|
418
|
+
{ name: "src", type: "string", default: "null" },
|
|
419
|
+
{ name: "children", type: "ReactNode", default: "null" },
|
|
420
|
+
{ name: "className", type: "string", default: "null" },
|
|
421
|
+
{ name: "autoPlay", type: "boolean", default: "true" },
|
|
422
|
+
{ name: "muted", type: "boolean", default: "true" },
|
|
423
|
+
{ name: "loop", type: "boolean", default: "true" },
|
|
424
|
+
{ name: "preload", type: "auto | metadata | none", default: "auto" },
|
|
425
|
+
{ name: "fontSize", type: "string | number", default: "20" },
|
|
426
|
+
{ name: "fontWeight", type: "string | number", default: "bold" },
|
|
427
|
+
{ name: "textAnchor", type: "string", default: "middle" },
|
|
428
|
+
{ name: "dominantBaseline", type: "string", default: "middle" },
|
|
429
|
+
{ name: "fontFamily", type: "string", default: "sans-serif" },
|
|
430
|
+
{ name: "as", type: "ElementType", default: "div" },
|
|
431
|
+
],
|
|
432
|
+
},
|
|
433
|
+
desc: null,
|
|
434
|
+
status: null,
|
|
435
|
+
lastUpdated: null
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
name: "Hyper Text",
|
|
439
|
+
value: "hyper-text",
|
|
440
|
+
importPath: "~/components/catalyst-ui/typography/hyper-text",
|
|
441
|
+
multiImport: null,
|
|
442
|
+
basicusage: `
|
|
443
|
+
<HyperText>
|
|
444
|
+
Hello World
|
|
445
|
+
</HyperText>
|
|
446
|
+
|
|
447
|
+
<HyperText
|
|
448
|
+
duration={800}
|
|
449
|
+
delay={0}
|
|
450
|
+
startOnView={false}
|
|
451
|
+
animateOnHover={true}
|
|
452
|
+
characterSet={["A","B","C"]}
|
|
453
|
+
className=""
|
|
454
|
+
>
|
|
455
|
+
Animated Text
|
|
456
|
+
</HyperText>`,
|
|
457
|
+
path: "/components/catalyst-ui/typography/hyper-text.tsx",
|
|
458
|
+
source: null,
|
|
459
|
+
usagePath: "/components/catalyst-ui/typography/hyper-text.tsx",
|
|
460
|
+
usage: null,
|
|
461
|
+
premium: true,
|
|
462
|
+
category: "Typography",
|
|
463
|
+
tags: ["animation", "text", "effects"],
|
|
464
|
+
features: ["TypeScript", "Accessible", "Customizable"],
|
|
465
|
+
dependencies: ["motion/react", "react"],
|
|
466
|
+
props: {
|
|
467
|
+
"HyperText": [
|
|
468
|
+
{ name: "children", type: "string", default: "null" },
|
|
469
|
+
{ name: "className", type: "string", default: "null" },
|
|
470
|
+
{ name: "duration", type: "number", default: "800" },
|
|
471
|
+
{ name: "delay", type: "number", default: "0" },
|
|
472
|
+
{ name: "as", type: "React.ElementType", default: "div" },
|
|
473
|
+
{ name: "startOnView", type: "boolean", default: "false" },
|
|
474
|
+
{ name: "animateOnHover", type: "boolean", default: "true" },
|
|
475
|
+
{ name: "characterSet", type: "CharacterSet", default: "DEFAULT_CHARACTER_SET" },
|
|
476
|
+
],
|
|
477
|
+
},
|
|
478
|
+
desc: null,
|
|
479
|
+
status: null,
|
|
480
|
+
lastUpdated: null
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: "Hyper Text",
|
|
484
|
+
value: "hyper-text",
|
|
485
|
+
importPath: "~/components/catalyst-ui/typography/hyper-text",
|
|
486
|
+
multiImport: null,
|
|
487
|
+
basicusage: `
|
|
488
|
+
<HyperText>
|
|
489
|
+
Interactive Text
|
|
490
|
+
</HyperText>
|
|
491
|
+
|
|
492
|
+
<HyperText
|
|
493
|
+
duration={1000}
|
|
494
|
+
className="text-4xl font-bold"
|
|
495
|
+
animateOnView={true}
|
|
496
|
+
>
|
|
497
|
+
Animated Text
|
|
498
|
+
</HyperText>`,
|
|
499
|
+
path: "/components/catalyst-ui/typography/hyper-text.tsx",
|
|
500
|
+
source: null,
|
|
501
|
+
usagePath: "/components/catalyst-ui/typography/hyper-text.tsx",
|
|
502
|
+
usage: null,
|
|
503
|
+
premium: true,
|
|
504
|
+
category: "Typography",
|
|
505
|
+
tags: ["typography", "animation", "interactive", "text"],
|
|
506
|
+
features: ["Character Animation", "Interactive", "Smooth Effects", "TypeScript"],
|
|
507
|
+
dependencies: ["motion", "react"],
|
|
508
|
+
props: {
|
|
509
|
+
"HyperText": [
|
|
510
|
+
{ name: "className", type: "string", default: "null" },
|
|
511
|
+
{ name: "duration", type: "number", default: "500" },
|
|
512
|
+
{ name: "animateOnView", type: "boolean", default: "false" }
|
|
513
|
+
]
|
|
514
|
+
},
|
|
515
|
+
desc: null,
|
|
516
|
+
status: null,
|
|
517
|
+
lastUpdated: null
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
name: "Comic Text",
|
|
521
|
+
value: "comic-text",
|
|
522
|
+
importPath: "~/components/catalyst-ui/typography/comic-text",
|
|
523
|
+
multiImport: null,
|
|
524
|
+
basicusage: `
|
|
525
|
+
<ComicText>BAM!</ComicText>
|
|
526
|
+
|
|
527
|
+
<ComicText
|
|
528
|
+
fontSize={3}
|
|
529
|
+
className="mx-auto"
|
|
530
|
+
style={{ color: '#FF0000' }}
|
|
531
|
+
>
|
|
532
|
+
POW!
|
|
533
|
+
</ComicText>`,
|
|
534
|
+
path: "/components/catalyst-ui/typography/comic-text.tsx",
|
|
535
|
+
source: null,
|
|
536
|
+
usagePath: "/components/catalyst-ui/typography/comic-text.tsx",
|
|
537
|
+
usage: null,
|
|
538
|
+
premium: true,
|
|
539
|
+
category: "Typography",
|
|
540
|
+
tags: ["typography", "comic", "animation", "text"],
|
|
541
|
+
features: ["Animated Entrance", "Comic Style", "Customizable", "TypeScript"],
|
|
542
|
+
dependencies: ["motion", "react"],
|
|
543
|
+
props: {
|
|
544
|
+
"ComicText": [
|
|
545
|
+
{ name: "className", type: "string", default: "null" },
|
|
546
|
+
{ name: "fontSize", type: "number", default: "5" },
|
|
547
|
+
{ name: "style", type: "CSSProperties", default: "null" }
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
desc: null,
|
|
551
|
+
status: null,
|
|
552
|
+
lastUpdated: null
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
name: "TextMorph",
|
|
556
|
+
value: "text-morph",
|
|
557
|
+
importPath: "~/components/catalyst-ui/typography/text-morph",
|
|
558
|
+
multiImport: null,
|
|
559
|
+
basicusage: null,
|
|
560
|
+
path: "/components/catalyst-ui/typography/text-morph.tsx",
|
|
561
|
+
source: null,
|
|
562
|
+
usagePath: "/components/catalyst-ui/typography/text-morph.tsx",
|
|
563
|
+
usage: null,
|
|
564
|
+
premium: true,
|
|
565
|
+
category: "Typography",
|
|
566
|
+
tags: ["components", "animation", "text", "morphing", "motion"],
|
|
567
|
+
features: ["Responsive", "TypeScript", "Accessible", "Smooth Animations", "Layout Transitions", "Spring Physics"],
|
|
568
|
+
dependencies: ["react", "motion/react", "~/components/catalyst-ui/utils"],
|
|
569
|
+
props: {
|
|
570
|
+
"TextMorph": [
|
|
571
|
+
{ name: "children", type: "string", default: "null" },
|
|
572
|
+
{ name: "as", type: "React.ElementType", default: "\"p\"" },
|
|
573
|
+
{ name: "className", type: "string", default: "null" },
|
|
574
|
+
{ name: "style", type: "React.CSSProperties", default: "null" },
|
|
575
|
+
{ name: "variants", type: "Variants", default: "null" },
|
|
576
|
+
{ name: "transition", type: "Transition", default: "null" },
|
|
577
|
+
],
|
|
578
|
+
},
|
|
579
|
+
desc: null,
|
|
580
|
+
status: null,
|
|
581
|
+
lastUpdated: null
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
name: "Scroll Text",
|
|
585
|
+
value: "scroll-text",
|
|
586
|
+
importPath: "~/components/catalyst-ui/typography/scroll-text",
|
|
587
|
+
multiImport: "ScrollText, ScrollTextWord, ScrollTextLetter",
|
|
588
|
+
basicusage: `
|
|
589
|
+
<ScrollText>
|
|
590
|
+
Content here
|
|
591
|
+
</ScrollText>
|
|
592
|
+
|
|
593
|
+
<ScrollText
|
|
594
|
+
animation="fadeUp"
|
|
595
|
+
delay="none"
|
|
596
|
+
threshold={0.1}
|
|
597
|
+
triggerOnce={true}
|
|
598
|
+
as="div"
|
|
599
|
+
className=""
|
|
600
|
+
>
|
|
601
|
+
Content here
|
|
602
|
+
</ScrollText>
|
|
603
|
+
|
|
604
|
+
<ScrollTextWord
|
|
605
|
+
text="Your text here"
|
|
606
|
+
animation="fadeUp"
|
|
607
|
+
wordDelay={50}
|
|
608
|
+
threshold={0.1}
|
|
609
|
+
triggerOnce={true}
|
|
610
|
+
as="div"
|
|
611
|
+
className=""
|
|
612
|
+
/>
|
|
613
|
+
|
|
614
|
+
<ScrollTextLetter
|
|
615
|
+
text="Your text here"
|
|
616
|
+
animation="fadeUp"
|
|
617
|
+
letterDelay={30}
|
|
618
|
+
threshold={0.1}
|
|
619
|
+
triggerOnce={true}
|
|
620
|
+
as="div"
|
|
621
|
+
className=""
|
|
622
|
+
/>`,
|
|
623
|
+
path: "/components/catalyst-ui/typography/typography/scroll-text.tsx",
|
|
624
|
+
source: null,
|
|
625
|
+
usagePath: "/components/catalyst-ui/typography/typography/scroll-text.tsx",
|
|
626
|
+
usage: null,
|
|
627
|
+
premium: true,
|
|
628
|
+
category: "Typography",
|
|
629
|
+
tags: ["ui", "components", "animation", "scroll", "text", "reveal"],
|
|
630
|
+
features: ["Responsive", "TypeScript", "Accessible", "Animated", "Intersection Observer"],
|
|
631
|
+
dependencies: ["react", "class-variance-authority"],
|
|
632
|
+
props: {
|
|
633
|
+
ScrollText: [
|
|
634
|
+
{ name: "className", type: "string", default: "null" },
|
|
635
|
+
{ name: "animation", type: "fadeUp | fadeDown | fadeLeft | fadeRight | scale | blur", default: "fadeUp" },
|
|
636
|
+
{ name: "delay", type: "none | sm | md | lg | xl", default: "none" },
|
|
637
|
+
{ name: "threshold", type: "number", default: "0.1" },
|
|
638
|
+
{ name: "triggerOnce", type: "boolean", default: "true" },
|
|
639
|
+
{ name: "as", type: "React.ElementType", default: "div" },
|
|
640
|
+
],
|
|
641
|
+
ScrollTextWord: [
|
|
642
|
+
{ name: "className", type: "string", default: "null" },
|
|
643
|
+
{ name: "animation", type: "fadeUp | fadeDown | fadeLeft | fadeRight | scale | blur", default: "fadeUp" },
|
|
644
|
+
{ name: "text", type: "string", default: "required" },
|
|
645
|
+
{ name: "wordDelay", type: "number", default: "50" },
|
|
646
|
+
{ name: "threshold", type: "number", default: "0.1" },
|
|
647
|
+
{ name: "triggerOnce", type: "boolean", default: "true" },
|
|
648
|
+
{ name: "as", type: "React.ElementType", default: "div" },
|
|
649
|
+
],
|
|
650
|
+
ScrollTextLetter: [
|
|
651
|
+
{ name: "className", type: "string", default: "null" },
|
|
652
|
+
{ name: "animation", type: "fadeUp | fadeDown | fadeLeft | fadeRight | scale | blur", default: "fadeUp" },
|
|
653
|
+
{ name: "text", type: "string", default: "required" },
|
|
654
|
+
{ name: "letterDelay", type: "number", default: "30" },
|
|
655
|
+
{ name: "threshold", type: "number", default: "0.1" },
|
|
656
|
+
{ name: "triggerOnce", type: "boolean", default: "true" },
|
|
657
|
+
{ name: "as", type: "React.ElementType", default: "div" },
|
|
658
|
+
],
|
|
659
|
+
},
|
|
660
|
+
desc: null,
|
|
661
|
+
status: null,
|
|
662
|
+
lastUpdated: null
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
name: "Typewriter",
|
|
666
|
+
value: "typewriter",
|
|
667
|
+
importPath: "~/components/catalyst-ui/typography/typewriter",
|
|
668
|
+
multiImport: "Typewriter, TypewriterOnce, TypewriterWord",
|
|
669
|
+
basicusage: `
|
|
670
|
+
<Typewriter text="Hello World" />
|
|
671
|
+
|
|
672
|
+
<Typewriter
|
|
673
|
+
cursor="default"
|
|
674
|
+
className=""
|
|
675
|
+
text="Single text"
|
|
676
|
+
texts={["Text 1", "Text 2"]}
|
|
677
|
+
speed={50}
|
|
678
|
+
deleteSpeed={30}
|
|
679
|
+
delayBetween={2000}
|
|
680
|
+
loop={false}
|
|
681
|
+
onComplete={() => {}}
|
|
682
|
+
showCursor={true}
|
|
683
|
+
as="span"
|
|
684
|
+
/>
|
|
685
|
+
|
|
686
|
+
<TypewriterOnce
|
|
687
|
+
text="Hello World"
|
|
688
|
+
cursor="default"
|
|
689
|
+
className=""
|
|
690
|
+
speed={50}
|
|
691
|
+
delay={0}
|
|
692
|
+
onComplete={() => {}}
|
|
693
|
+
showCursor={true}
|
|
694
|
+
as="span"
|
|
695
|
+
/>
|
|
696
|
+
|
|
697
|
+
<TypewriterWord
|
|
698
|
+
text="Hello World"
|
|
699
|
+
cursor="default"
|
|
700
|
+
className=""
|
|
701
|
+
speed={100}
|
|
702
|
+
delay={0}
|
|
703
|
+
onComplete={() => {}}
|
|
704
|
+
showCursor={true}
|
|
705
|
+
as="span"
|
|
706
|
+
/>`,
|
|
707
|
+
path: "/components/catalyst-ui/typography/typography/typewriter.tsx",
|
|
708
|
+
source: null,
|
|
709
|
+
usagePath: "/components/catalyst-ui/typography/typography/typewriter.tsx",
|
|
710
|
+
usage: null,
|
|
711
|
+
premium: true,
|
|
712
|
+
category: "Typography",
|
|
713
|
+
tags: ["ui", "components", "animation", "typewriter", "text", "typing"],
|
|
714
|
+
features: ["Responsive", "TypeScript", "Accessible", "Animated", "Multiple Modes"],
|
|
715
|
+
dependencies: ["react", "class-variance-authority"],
|
|
716
|
+
props: {
|
|
717
|
+
Typewriter: [
|
|
718
|
+
{ name: "className", type: "string", default: "null" },
|
|
719
|
+
{ name: "cursor", type: "default | block | underline | none", default: "default" },
|
|
720
|
+
{ name: "text", type: "string", default: "null" },
|
|
721
|
+
{ name: "texts", type: "string[]", default: "null" },
|
|
722
|
+
{ name: "speed", type: "number", default: "50" },
|
|
723
|
+
{ name: "deleteSpeed", type: "number", default: "30" },
|
|
724
|
+
{ name: "delayBetween", type: "number", default: "2000" },
|
|
725
|
+
{ name: "loop", type: "boolean", default: "false" },
|
|
726
|
+
{ name: "onComplete", type: "() => void", default: "null" },
|
|
727
|
+
{ name: "showCursor", type: "boolean", default: "true" },
|
|
728
|
+
{ name: "as", type: "React.ElementType", default: "span" },
|
|
729
|
+
],
|
|
730
|
+
TypewriterOnce: [
|
|
731
|
+
{ name: "className", type: "string", default: "null" },
|
|
732
|
+
{ name: "cursor", type: "default | block | underline | none", default: "default" },
|
|
733
|
+
{ name: "text", type: "string", default: "required" },
|
|
734
|
+
{ name: "speed", type: "number", default: "50" },
|
|
735
|
+
{ name: "delay", type: "number", default: "0" },
|
|
736
|
+
{ name: "onComplete", type: "() => void", default: "null" },
|
|
737
|
+
{ name: "showCursor", type: "boolean", default: "true" },
|
|
738
|
+
{ name: "as", type: "React.ElementType", default: "span" },
|
|
739
|
+
],
|
|
740
|
+
TypewriterWord: [
|
|
741
|
+
{ name: "className", type: "string", default: "null" },
|
|
742
|
+
{ name: "cursor", type: "default | block | underline | none", default: "default" },
|
|
743
|
+
{ name: "text", type: "string", default: "required" },
|
|
744
|
+
{ name: "speed", type: "number", default: "100" },
|
|
745
|
+
{ name: "delay", type: "number", default: "0" },
|
|
746
|
+
{ name: "onComplete", type: "() => void", default: "null" },
|
|
747
|
+
{ name: "showCursor", type: "boolean", default: "true" },
|
|
748
|
+
{ name: "as", type: "React.ElementType", default: "span" },
|
|
749
|
+
],
|
|
750
|
+
},
|
|
751
|
+
desc: null,
|
|
752
|
+
status: null,
|
|
753
|
+
lastUpdated: null
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
name: "Swoosh Text",
|
|
757
|
+
value: "swoosh-text",
|
|
758
|
+
importPath: "~/components/catalyst-ui/typography/swoosh-text",
|
|
759
|
+
multiImport: null,
|
|
760
|
+
basicusage: `
|
|
761
|
+
<SwooshText text="Swoosh Effect" />
|
|
762
|
+
|
|
763
|
+
<SwooshText
|
|
764
|
+
text="Custom Swoosh"
|
|
765
|
+
direction="left"
|
|
766
|
+
speed="medium"
|
|
767
|
+
trigger="auto"
|
|
768
|
+
fontSize="lg"
|
|
769
|
+
fontWeight="bold"
|
|
770
|
+
className=""
|
|
771
|
+
/>`,
|
|
772
|
+
path: "/components/catalyst-ui/typography/typography/swoosh-text.tsx",
|
|
773
|
+
source: null,
|
|
774
|
+
usagePath: "/components/catalyst-ui/typography/typography/swoosh-text.tsx",
|
|
775
|
+
usage: null,
|
|
776
|
+
premium: true,
|
|
777
|
+
category: "Typography",
|
|
778
|
+
tags: ["ui", "components", "effects", "animation", "text", "entrance", "motion"],
|
|
779
|
+
features: ["Responsive", "TypeScript", "Customizable", "Animated", "Interactive", "Multiple Triggers"],
|
|
780
|
+
dependencies: ["react"],
|
|
781
|
+
props: {
|
|
782
|
+
"SwooshText": [
|
|
783
|
+
{ name: "text", type: "string", default: "''" },
|
|
784
|
+
{ name: "className", type: "string", default: "null" },
|
|
785
|
+
{ name: "direction", type: "'left' | 'right' | 'up' | 'down'", default: "'left'" },
|
|
786
|
+
{ name: "speed", type: "'slow' | 'medium' | 'fast'", default: "'medium'" },
|
|
787
|
+
{ name: "trigger", type: "'auto' | 'hover' | 'click'", default: "'auto'" },
|
|
788
|
+
{ name: "fontSize", type: "'sm' | 'md' | 'lg' | 'xl' | '2xl'", default: "'md'" },
|
|
789
|
+
{ name: "fontWeight", type: "'normal' | 'medium' | 'semibold' | 'bold'", default: "'normal'" }
|
|
790
|
+
]
|
|
791
|
+
},
|
|
792
|
+
desc: null,
|
|
793
|
+
status: null,
|
|
794
|
+
lastUpdated: null
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
name: "Sliced Text",
|
|
798
|
+
value: "sliced-text",
|
|
799
|
+
importPath: "~/components/catalyst-ui/typography/sliced-text",
|
|
800
|
+
multiImport: null,
|
|
801
|
+
basicusage: `
|
|
802
|
+
<SlicedText text="Sliced Effect" />
|
|
803
|
+
|
|
804
|
+
<SlicedText
|
|
805
|
+
text="Custom Sliced"
|
|
806
|
+
variant="primary"
|
|
807
|
+
align="center"
|
|
808
|
+
fontSize="lg"
|
|
809
|
+
fontWeight="bold"
|
|
810
|
+
className=""
|
|
811
|
+
/>`,
|
|
812
|
+
path: "/components/catalyst-ui/typography/typography/sliced-text.tsx",
|
|
813
|
+
source: null,
|
|
814
|
+
usagePath: "/components/catalyst-ui/typography/typography/sliced-text.tsx",
|
|
815
|
+
usage: null,
|
|
816
|
+
premium: true,
|
|
817
|
+
category: "Typography",
|
|
818
|
+
tags: ["ui", "components", "effects", "text", "sliced", "3d", "layered"],
|
|
819
|
+
features: ["Responsive", "TypeScript", "Customizable", "Multi-layered", "Color Variants"],
|
|
820
|
+
dependencies: ["react"],
|
|
821
|
+
props: {
|
|
822
|
+
"SlicedText": [
|
|
823
|
+
{ name: "text", type: "string", default: "''" },
|
|
824
|
+
{ name: "className", type: "string", default: "null" },
|
|
825
|
+
{ name: "variant", type: "'default' | 'primary' | 'secondary' | 'accent'", default: "'default'" },
|
|
826
|
+
{ name: "align", type: "'left' | 'center' | 'right'", default: "'center'" },
|
|
827
|
+
{ name: "fontSize", type: "'sm' | 'md' | 'lg' | 'xl' | '2xl'", default: "'md'" },
|
|
828
|
+
{ name: "fontWeight", type: "'normal' | 'medium' | 'semibold' | 'bold'", default: "'bold'" }
|
|
829
|
+
]
|
|
830
|
+
},
|
|
831
|
+
desc: null,
|
|
832
|
+
status: null,
|
|
833
|
+
lastUpdated: null
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
name: "Shimmer Text",
|
|
837
|
+
value: "shimmer-text",
|
|
838
|
+
importPath: "~/components/catalyst-ui/typography/shimmer-text",
|
|
839
|
+
multiImport: null,
|
|
840
|
+
basicusage: `
|
|
841
|
+
<ShimmerText text="Shimmer Effect" />
|
|
842
|
+
|
|
843
|
+
<ShimmerText
|
|
844
|
+
text="Custom Shimmer"
|
|
845
|
+
shimmerColor="primary"
|
|
846
|
+
speed="medium"
|
|
847
|
+
fontSize="lg"
|
|
848
|
+
fontWeight="bold"
|
|
849
|
+
className=""
|
|
850
|
+
/>`,
|
|
851
|
+
path: "/components/catalyst-ui/typography/typography/shimmer-text.tsx",
|
|
852
|
+
source: null,
|
|
853
|
+
usagePath: "/components/catalyst-ui/typography/typography/shimmer-text.tsx",
|
|
854
|
+
usage: null,
|
|
855
|
+
premium: true,
|
|
856
|
+
category: "Typography",
|
|
857
|
+
tags: ["ui", "components", "effects", "animation", "text", "gradient", "shimmer"],
|
|
858
|
+
features: ["Responsive", "TypeScript", "Customizable", "Animated", "Color Variants"],
|
|
859
|
+
dependencies: ["react"],
|
|
860
|
+
props: {
|
|
861
|
+
"ShimmerText": [
|
|
862
|
+
{ name: "text", type: "string", default: "''" },
|
|
863
|
+
{ name: "className", type: "string", default: "null" },
|
|
864
|
+
{ name: "shimmerColor", type: "'default' | 'primary' | 'secondary' | 'accent'", default: "'default'" },
|
|
865
|
+
{ name: "speed", type: "'slow' | 'medium' | 'fast'", default: "'medium'" },
|
|
866
|
+
{ name: "fontSize", type: "'sm' | 'md' | 'lg' | 'xl' | '2xl'", default: "'md'" },
|
|
867
|
+
{ name: "fontWeight", type: "'normal' | 'medium' | 'semibold' | 'bold'", default: "'normal'" }
|
|
868
|
+
]
|
|
869
|
+
},
|
|
870
|
+
desc: null,
|
|
871
|
+
status: null,
|
|
872
|
+
lastUpdated: null
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
name: "Matrix Text",
|
|
876
|
+
value: "matrix-text",
|
|
877
|
+
importPath: "~/components/catalyst-ui/typography/matrix-text",
|
|
878
|
+
multiImport: null,
|
|
879
|
+
basicusage: `
|
|
880
|
+
<MatrixText text="Hello World" />
|
|
881
|
+
|
|
882
|
+
<MatrixText
|
|
883
|
+
text="Custom Text"
|
|
884
|
+
speed={50}
|
|
885
|
+
characters="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
886
|
+
loop={true}
|
|
887
|
+
fontSize="lg"
|
|
888
|
+
className="text-primary"
|
|
889
|
+
/>`,
|
|
890
|
+
path: "/components/catalyst-ui/typography/typography/matrix-text.tsx",
|
|
891
|
+
source: null,
|
|
892
|
+
usagePath: "/components/catalyst-ui/typography/typography/matrix-text.tsx",
|
|
893
|
+
usage: null,
|
|
894
|
+
premium: true,
|
|
895
|
+
category: "Typography",
|
|
896
|
+
tags: ["ui", "components", "effects", "animation", "text"],
|
|
897
|
+
features: ["Responsive", "TypeScript", "Customizable", "Animated"],
|
|
898
|
+
dependencies: ["react"],
|
|
899
|
+
props: {
|
|
900
|
+
"MatrixText": [
|
|
901
|
+
{ name: "text", type: "string", default: "''" },
|
|
902
|
+
{ name: "className", type: "string", default: "null" },
|
|
903
|
+
{ name: "speed", type: "number", default: "50" },
|
|
904
|
+
{ name: "characters", type: "string", default: "'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789$#@%&'" },
|
|
905
|
+
{ name: "loop", type: "boolean", default: "true" },
|
|
906
|
+
{ name: "fontSize", type: "'sm' | 'md' | 'lg' | 'xl' | '2xl'", default: "'md'" }
|
|
907
|
+
]
|
|
908
|
+
},
|
|
909
|
+
desc: null,
|
|
910
|
+
status: null,
|
|
911
|
+
lastUpdated: null
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
name: "Glitch Text",
|
|
915
|
+
value: "glitch-text",
|
|
916
|
+
importPath: "~/components/catalyst-ui/typography/glitch-text",
|
|
917
|
+
multiImport: null,
|
|
918
|
+
basicusage: `
|
|
919
|
+
<GlitchText text="Glitch Effect" />
|
|
920
|
+
|
|
921
|
+
<GlitchText
|
|
922
|
+
text="Custom Glitch"
|
|
923
|
+
intensity="high"
|
|
924
|
+
duration={2000}
|
|
925
|
+
enabled={true}
|
|
926
|
+
fontSize="lg"
|
|
927
|
+
className="font-bold"
|
|
928
|
+
/>`,
|
|
929
|
+
path: "/components/catalyst-ui/typography/typography/glitch-text.tsx",
|
|
930
|
+
source: null,
|
|
931
|
+
usagePath: "/components/catalyst-ui/typography/typography/glitch-text.tsx",
|
|
932
|
+
usage: null,
|
|
933
|
+
premium: true,
|
|
934
|
+
category: "Typography",
|
|
935
|
+
tags: ["ui", "components", "effects", "animation", "text", "glitch", "cyberpunk"],
|
|
936
|
+
features: ["Responsive", "TypeScript", "Customizable", "Animated", "Intensity Control"],
|
|
937
|
+
dependencies: ["react"],
|
|
938
|
+
props: {
|
|
939
|
+
"GlitchText": [
|
|
940
|
+
{ name: "text", type: "string", default: "''" },
|
|
941
|
+
{ name: "className", type: "string", default: "null" },
|
|
942
|
+
{ name: "intensity", type: "'low' | 'medium' | 'high'", default: "'medium'" },
|
|
943
|
+
{ name: "duration", type: "number", default: "2000" },
|
|
944
|
+
{ name: "enabled", type: "boolean", default: "true" },
|
|
945
|
+
{ name: "fontSize", type: "'sm' | 'md' | 'lg' | 'xl' | '2xl'", default: "'md'" }
|
|
946
|
+
]
|
|
947
|
+
},
|
|
948
|
+
desc: null,
|
|
949
|
+
status: null,
|
|
950
|
+
lastUpdated: null
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
name: "Dynamic Text",
|
|
954
|
+
value: "dynamic-text",
|
|
955
|
+
importPath: "~/components/catalyst-ui/typography/dynamic-text",
|
|
956
|
+
multiImport: null,
|
|
957
|
+
basicusage: `
|
|
958
|
+
<DynamicText texts={["First", "Second", "Third"]} />
|
|
959
|
+
|
|
960
|
+
<DynamicText
|
|
961
|
+
texts={["Option A", "Option B"]}
|
|
962
|
+
speed={100}
|
|
963
|
+
pauseBetween={2000}
|
|
964
|
+
loop={true}
|
|
965
|
+
fontSize="lg"
|
|
966
|
+
fontWeight="semibold"
|
|
967
|
+
className="text-primary"
|
|
968
|
+
/>`,
|
|
969
|
+
path: "/components/catalyst-ui/typography/typography/dynamic-text.tsx",
|
|
970
|
+
source: null,
|
|
971
|
+
usagePath: "/components/catalyst-ui/typography/typography/dynamic-text.tsx",
|
|
972
|
+
usage: null,
|
|
973
|
+
premium: true,
|
|
974
|
+
category: "Typography",
|
|
975
|
+
tags: ["ui", "components", "effects", "animation", "text", "typing"],
|
|
976
|
+
features: ["Responsive", "TypeScript", "Customizable", "Animated", "Looping"],
|
|
977
|
+
dependencies: ["react"],
|
|
978
|
+
props: {
|
|
979
|
+
"DynamicText": [
|
|
980
|
+
{ name: "texts", type: "string[]", default: "[]" },
|
|
981
|
+
{ name: "className", type: "string", default: "null" },
|
|
982
|
+
{ name: "speed", type: "number", default: "100" },
|
|
983
|
+
{ name: "pauseBetween", type: "number", default: "2000" },
|
|
984
|
+
{ name: "loop", type: "boolean", default: "true" },
|
|
985
|
+
{ name: "fontSize", type: "'sm' | 'md' | 'lg' | 'xl' | '2xl'", default: "'md'" },
|
|
986
|
+
{ name: "fontWeight", type: "'normal' | 'medium' | 'semibold' | 'bold'", default: "'normal'" }
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
desc: null,
|
|
990
|
+
status: null,
|
|
991
|
+
lastUpdated: null
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
name: "HighlightV1",
|
|
995
|
+
value: "highlight-1",
|
|
996
|
+
importPath: "~/components/catalyst-ui/typography/highlight-1",
|
|
997
|
+
multiImport: "Highlight, HighlightDemo, HighlightUsage",
|
|
998
|
+
path: "/components/catalyst-ui/typography/typography/highlight-1.tsx",
|
|
999
|
+
premium: true,
|
|
1000
|
+
source: null,
|
|
1001
|
+
category: "Typography",
|
|
1002
|
+
tags: ["ui", "components", "interactive"],
|
|
1003
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1004
|
+
dependencies: [],
|
|
1005
|
+
basicusage: `
|
|
1006
|
+
<Highlight>
|
|
1007
|
+
Content
|
|
1008
|
+
</Highlight>
|
|
1009
|
+
|
|
1010
|
+
<Highlight children="" query="" highlightStyles="bg-yellow-200 dark:bg-yellow-600" caseSensitive=false className="" props="">
|
|
1011
|
+
Content
|
|
1012
|
+
</Highlight>`,
|
|
1013
|
+
usage: null,
|
|
1014
|
+
usagePath: "/components/catalyst-ui/typography/typography/highlight-1.tsx",
|
|
1015
|
+
props: {
|
|
1016
|
+
"Highlight": [
|
|
1017
|
+
{ name: "children", type: "string", default: null },
|
|
1018
|
+
{ name: "query", type: "string", default: null },
|
|
1019
|
+
{ name: "highlightStyles", type: "string", default: "bg-yellow-200 dark:bg-yellow-600" },
|
|
1020
|
+
{ name: "caseSensitive", type: "boolean", default: false },
|
|
1021
|
+
{ name: "className", type: "string", default: null },
|
|
1022
|
+
{ name: "props", type: "any", default: null }
|
|
1023
|
+
],
|
|
1024
|
+
},
|
|
1025
|
+
desc: null,
|
|
1026
|
+
status: null,
|
|
1027
|
+
lastUpdated: null
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
name: "Prose",
|
|
1031
|
+
value: "prose",
|
|
1032
|
+
importPath: "~/components/catalyst-ui/typography/prose",
|
|
1033
|
+
multiImport: null,
|
|
1034
|
+
path: "/components/catalyst-ui/typography/typography/highlight-1.tsx",
|
|
1035
|
+
premium: true,
|
|
1036
|
+
source: `
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
export interface ProseProps {
|
|
1040
|
+
children: React.ReactNode;
|
|
1041
|
+
size?: "sm" | "base" | "lg" | "xl";
|
|
1042
|
+
className?: string;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
export function Prose({ children, size = "base", className, ...props }: ProseProps) {
|
|
1046
|
+
const sizeClasses = {
|
|
1047
|
+
sm: "prose-sm",
|
|
1048
|
+
base: "prose",
|
|
1049
|
+
lg: "prose-lg",
|
|
1050
|
+
xl: "prose-xl"
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
return (
|
|
1054
|
+
<div
|
|
1055
|
+
className={cn(
|
|
1056
|
+
"prose light:prose-gray max-w-none prose-invert",
|
|
1057
|
+
sizeClasses[size],
|
|
1058
|
+
className
|
|
1059
|
+
)}
|
|
1060
|
+
{...props}
|
|
1061
|
+
>
|
|
1062
|
+
{children}
|
|
1063
|
+
</div>
|
|
1064
|
+
);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
*
|
|
1070
|
+
* required
|
|
1071
|
+
* module.exports = {
|
|
1072
|
+
theme: {
|
|
1073
|
+
extend: {},
|
|
1074
|
+
},
|
|
1075
|
+
plugins: [
|
|
1076
|
+
require('@tailwindcss/typography'),
|
|
1077
|
+
],
|
|
1078
|
+
}
|
|
1079
|
+
*/
|
|
1080
|
+
export function ProseDemo() {
|
|
1081
|
+
return (
|
|
1082
|
+
<Prose>
|
|
1083
|
+
<h1>Heading 1</h1>
|
|
1084
|
+
<h2>Heading 2</h2>
|
|
1085
|
+
<h3>Heading 3</h3>
|
|
1086
|
+
|
|
1087
|
+
<p>This is a paragraph of text. It demonstrates how prose handles regular text content with proper spacing and typography.</p>
|
|
1088
|
+
|
|
1089
|
+
<p>Another paragraph to show the spacing between paragraphs and how the prose component maintains consistent vertical rhythm.</p>
|
|
1090
|
+
|
|
1091
|
+
<ul>
|
|
1092
|
+
<li>First list item</li>
|
|
1093
|
+
<li>Second list item</li>
|
|
1094
|
+
<li>Third list item with longer content to demonstrate wrapping behavior</li>
|
|
1095
|
+
</ul>
|
|
1096
|
+
|
|
1097
|
+
<ol>
|
|
1098
|
+
<li>First ordered item</li>
|
|
1099
|
+
<li>Second ordered item</li>
|
|
1100
|
+
<li>Third ordered item</li>
|
|
1101
|
+
</ol>
|
|
1102
|
+
|
|
1103
|
+
<blockquote>
|
|
1104
|
+
This is a blockquote demonstrating how quoted text appears within the prose component.
|
|
1105
|
+
</blockquote>
|
|
1106
|
+
|
|
1107
|
+
<p>Here's some <code>inline code</code> and a <a href="#demo">link example</a> to show how they're styled.</p>
|
|
1108
|
+
</Prose>
|
|
1109
|
+
);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
export function ProseUsage() {
|
|
1113
|
+
return (
|
|
1114
|
+
<div className="space-y-8">
|
|
1115
|
+
<div>
|
|
1116
|
+
<h3 className="font-medium mb-4">Small Prose</h3>
|
|
1117
|
+
<Prose size="sm">
|
|
1118
|
+
<h4>Small Heading</h4>
|
|
1119
|
+
<p>This is small prose text. Perfect for compact content areas or sidebar text.</p>
|
|
1120
|
+
<ul>
|
|
1121
|
+
<li>Compact list item</li>
|
|
1122
|
+
<li>Another compact item</li>
|
|
1123
|
+
</ul>
|
|
1124
|
+
</Prose>
|
|
1125
|
+
</div>
|
|
1126
|
+
|
|
1127
|
+
<div>
|
|
1128
|
+
<h3 className="font-medium mb-4">Large Prose</h3>
|
|
1129
|
+
<Prose size="lg">
|
|
1130
|
+
<h4>Large Heading</h4>
|
|
1131
|
+
<p>This is large prose text. Great for main content areas where readability is important.</p>
|
|
1132
|
+
<blockquote>
|
|
1133
|
+
Large blockquote for emphasis
|
|
1134
|
+
</blockquote>
|
|
1135
|
+
</Prose>
|
|
1136
|
+
</div>
|
|
1137
|
+
|
|
1138
|
+
<div>
|
|
1139
|
+
<h3 className="font-medium mb-4">Extra Large Prose</h3>
|
|
1140
|
+
<Prose size="xl">
|
|
1141
|
+
<h4>Extra Large Heading</h4>
|
|
1142
|
+
<p>This is extra large prose text. Ideal for presentations or when you need maximum readability.</p>
|
|
1143
|
+
</Prose>
|
|
1144
|
+
</div>
|
|
1145
|
+
|
|
1146
|
+
<div>
|
|
1147
|
+
<h3 className="font-medium mb-4">Custom Styled Prose</h3>
|
|
1148
|
+
<Prose className="prose-blue dark:prose-blue">
|
|
1149
|
+
<h4>Custom Color</h4>
|
|
1150
|
+
<p>This prose uses custom blue coloring for links and accents.</p>
|
|
1151
|
+
<a href="#custom">Custom styled link</a>
|
|
1152
|
+
</Prose>
|
|
1153
|
+
</div>
|
|
1154
|
+
</div>
|
|
1155
|
+
);
|
|
1156
|
+
}`,
|
|
1157
|
+
category: "Typography",
|
|
1158
|
+
tags: ["ui", "components", "interactive"],
|
|
1159
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1160
|
+
dependencies: [],
|
|
1161
|
+
basicusage: `
|
|
1162
|
+
<Prose>
|
|
1163
|
+
Content
|
|
1164
|
+
</Prose>
|
|
1165
|
+
|
|
1166
|
+
<Prose children="" size="base" className="" props="">
|
|
1167
|
+
Content
|
|
1168
|
+
</Prose>`,
|
|
1169
|
+
usage: null,
|
|
1170
|
+
usagePath: null,
|
|
1171
|
+
props: {
|
|
1172
|
+
"Prose": [
|
|
1173
|
+
{ name: "children", type: "string", default: null },
|
|
1174
|
+
{ name: "size", type: "string", default: "base" },
|
|
1175
|
+
{ name: "className", type: "string", default: null },
|
|
1176
|
+
{ name: "props", type: "any", default: null }
|
|
1177
|
+
],
|
|
1178
|
+
},
|
|
1179
|
+
desc: null,
|
|
1180
|
+
status: null,
|
|
1181
|
+
lastUpdated: null
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
name: "Highlight",
|
|
1185
|
+
value: "highlight",
|
|
1186
|
+
importPath: "~/components/catalyst-ui/typography/highlight",
|
|
1187
|
+
multiImport: null,
|
|
1188
|
+
path: "/components/catalyst-ui/typography/typography/highlight.tsx",
|
|
1189
|
+
premium: true,
|
|
1190
|
+
source: null,
|
|
1191
|
+
category: "Typography",
|
|
1192
|
+
tags: ["ui", "components", "interactive"],
|
|
1193
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1194
|
+
dependencies: [],
|
|
1195
|
+
basicusage: `
|
|
1196
|
+
<Highlight>
|
|
1197
|
+
Content
|
|
1198
|
+
</Highlight>
|
|
1199
|
+
|
|
1200
|
+
<Highlight children="" query="" highlightStyles="bg-yellow-200 dark:bg-yellow-600" caseSensitive=false className="" props="">
|
|
1201
|
+
Content
|
|
1202
|
+
</Highlight>`,
|
|
1203
|
+
usage: null,
|
|
1204
|
+
usagePath: null,
|
|
1205
|
+
props: {
|
|
1206
|
+
"Highlight": [
|
|
1207
|
+
{ name: "children", type: "string", default: null },
|
|
1208
|
+
{ name: "query", type: "string", default: null },
|
|
1209
|
+
{ name: "highlightStyles", type: "string", default: "bg-yellow-200 dark:bg-yellow-600" },
|
|
1210
|
+
{ name: "caseSensitive", type: "boolean", default: false },
|
|
1211
|
+
{ name: "className", type: "string", default: null },
|
|
1212
|
+
{ name: "props", type: "any", default: null }
|
|
1213
|
+
],
|
|
1214
|
+
},
|
|
1215
|
+
desc: null,
|
|
1216
|
+
status: null,
|
|
1217
|
+
lastUpdated: null
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
name: "h5",
|
|
1221
|
+
value: "h5",
|
|
1222
|
+
importPath: "~/components/catalyst-ui/typography/h5",
|
|
1223
|
+
multiImport: null,
|
|
1224
|
+
basicusage: `
|
|
1225
|
+
<H5>
|
|
1226
|
+
Text
|
|
1227
|
+
</H5>
|
|
1228
|
+
`,
|
|
1229
|
+
path: "/components/catalyst-ui/typography/typography/highlight.tsx",
|
|
1230
|
+
premium: true,
|
|
1231
|
+
source: `
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
export function H5({ children, className = "" }) {
|
|
1235
|
+
return (
|
|
1236
|
+
<h2 className={cn("scroll-m-20 pb-2 text-lg font-semibold tracking-tight first:mt-0", className)}>
|
|
1237
|
+
{children}
|
|
1238
|
+
</h2>
|
|
1239
|
+
)
|
|
1240
|
+
}`,
|
|
1241
|
+
usage: null,
|
|
1242
|
+
usagePath: null,
|
|
1243
|
+
category: "Typography",
|
|
1244
|
+
tags: ["ui", "components", "interactive"],
|
|
1245
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1246
|
+
dependencies: ["@radix-ui/react-aspect-ratio"],
|
|
1247
|
+
props: [
|
|
1248
|
+
{ name: "className", type: "string", default: "null" },
|
|
1249
|
+
],
|
|
1250
|
+
props2: [],
|
|
1251
|
+
desc: null,
|
|
1252
|
+
status: null,
|
|
1253
|
+
lastUpdated: null
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
name: "h4",
|
|
1257
|
+
value: "h4",
|
|
1258
|
+
importPath: "~/components/catalyst-ui/typography/h4",
|
|
1259
|
+
multiImport: null,
|
|
1260
|
+
basicusage: `
|
|
1261
|
+
<H4>
|
|
1262
|
+
Text
|
|
1263
|
+
</H4>
|
|
1264
|
+
`,
|
|
1265
|
+
path: "/components/catalyst-ui/typography/typography/h4.tsx",
|
|
1266
|
+
premium: true,
|
|
1267
|
+
source: `
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
export function H4({ children, className = "" }) {
|
|
1271
|
+
return (
|
|
1272
|
+
<h2 className={cn("scroll-m-20 pb-2 text-xl font-semibold tracking-tight first:mt-0 text-muted-foreground", className)}>
|
|
1273
|
+
{children}
|
|
1274
|
+
</h2>
|
|
1275
|
+
)
|
|
1276
|
+
}`,
|
|
1277
|
+
usage: null,
|
|
1278
|
+
usagePath: null,
|
|
1279
|
+
category: "Typography",
|
|
1280
|
+
tags: ["ui", "components", "interactive"],
|
|
1281
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1282
|
+
dependencies: ["@radix-ui/react-aspect-ratio"],
|
|
1283
|
+
props: [
|
|
1284
|
+
{ name: "className", type: "string", default: "null" },
|
|
1285
|
+
],
|
|
1286
|
+
props2: [],
|
|
1287
|
+
desc: null,
|
|
1288
|
+
status: null,
|
|
1289
|
+
lastUpdated: null
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
name: "h3",
|
|
1293
|
+
value: "h3",
|
|
1294
|
+
importPath: "~/components/catalyst-ui/typography/h3",
|
|
1295
|
+
multiImport: null,
|
|
1296
|
+
basicusage: `
|
|
1297
|
+
`,
|
|
1298
|
+
path: "/components/catalyst-ui/typography/typography/h3.tsx",
|
|
1299
|
+
premium: true,
|
|
1300
|
+
source: `
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
export function H3({ children, className = "" }) {
|
|
1304
|
+
return (
|
|
1305
|
+
<h2 className={cn("scroll-m-20 pb-2 text-2xl font-semibold tracking-tight first:mt-0", className)}>
|
|
1306
|
+
{children}
|
|
1307
|
+
</h2>
|
|
1308
|
+
)
|
|
1309
|
+
}`,
|
|
1310
|
+
usage: `
|
|
1311
|
+
<H3>
|
|
1312
|
+
Text
|
|
1313
|
+
</H3>
|
|
1314
|
+
`,
|
|
1315
|
+
usagePath: null,
|
|
1316
|
+
category: "Typography",
|
|
1317
|
+
tags: ["ui", "components", "interactive"],
|
|
1318
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1319
|
+
dependencies: ["@radix-ui/react-aspect-ratio"],
|
|
1320
|
+
props: [
|
|
1321
|
+
{ name: "className", type: "string", default: "null" },
|
|
1322
|
+
],
|
|
1323
|
+
props2: [],
|
|
1324
|
+
desc: null,
|
|
1325
|
+
status: null,
|
|
1326
|
+
lastUpdated: null
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
name: "Display Code",
|
|
1330
|
+
value: "display-code",
|
|
1331
|
+
importPath: "~/components/catalyst-ui/typography/code",
|
|
1332
|
+
multiImport: null,
|
|
1333
|
+
basicusage: null,
|
|
1334
|
+
path: "/components/catalyst-ui/typography/typography/code.tsx",
|
|
1335
|
+
premium: true,
|
|
1336
|
+
source: null,
|
|
1337
|
+
usage: null,
|
|
1338
|
+
usagePath: "/components/catalyst-ui/typography/typography/code.tsx",
|
|
1339
|
+
category: "Typography",
|
|
1340
|
+
tags: ["ui", "components", "interactive"],
|
|
1341
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1342
|
+
dependencies: ["@radix-ui/react-aspect-ratio"],
|
|
1343
|
+
desc: "This section seems kinda of stupid I know, but if like me, you have adhd just read this before dismissing it. Even as I was coding this, I thought I would never use it. The benefit, was visible extremely fast though. With the associated memory problems, I can't remember my styling that I coded two files ago. For that reason, my text always differ. I also find, I dont get as frustrated creating those types of pages, I used to get mad and frustrated due to not remembering how I did in the previous file. So it not only made me more efficient, by not having to write classnames for every single one of them, but it made every single page I do, consistant. All the while it's one less thing I have to think about or remember now. Trust me you will feel stupid trying this section of code out as its replacing such a simple piece of code. But I don't think I will ever code these sections without it, again. ",
|
|
1344
|
+
customize: null
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
name: "Typography",
|
|
1348
|
+
value: "typography",
|
|
1349
|
+
importPath: "~/components/catalyst-ui/typography/typography",
|
|
1350
|
+
multiImport: null,
|
|
1351
|
+
basicusage: null,
|
|
1352
|
+
path: "/components/catalyst-ui/typography/typography/code.tsx",
|
|
1353
|
+
premium: true,
|
|
1354
|
+
source: `
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
const TypographyExample = () => {
|
|
1367
|
+
const codingRequirements = [
|
|
1368
|
+
{ item: "Clean, readable code", checked: true },
|
|
1369
|
+
{ item: "Proper documentation", checked: true },
|
|
1370
|
+
{ item: "Zero bugs (wishful thinking)", checked: false },
|
|
1371
|
+
{ item: "Coffee supply maintained", checked: false },
|
|
1372
|
+
];
|
|
1373
|
+
|
|
1374
|
+
return (
|
|
1375
|
+
<DIV>
|
|
1376
|
+
{/* Heading */}
|
|
1377
|
+
<H1>The Developer's Journey: From Hello World to Production</H1>
|
|
1378
|
+
|
|
1379
|
+
{/* Subheading */}
|
|
1380
|
+
<H2>The Art of Programming</H2>
|
|
1381
|
+
|
|
1382
|
+
{/* Paragraph */}
|
|
1383
|
+
<P>
|
|
1384
|
+
Every developer starts with that magical first line of code, printing "Hello World" to the console. What begins as a simple curiosity soon becomes an obsession with solving problems, building applications, and constantly learning new technologies. But with great power comes great responsibility - and a lot of debugging sessions that last until 3 AM.
|
|
1385
|
+
</P>
|
|
1386
|
+
|
|
1387
|
+
{/* Blockquote */}
|
|
1388
|
+
<Blockquote>"There are only two hard things in Computer Science: cache invalidation and naming things."</Blockquote>
|
|
1389
|
+
|
|
1390
|
+
{/* Unordered List */}
|
|
1391
|
+
<UnorderedList>
|
|
1392
|
+
<li>Frontend: The pretty face everyone sees</li>
|
|
1393
|
+
<li>Backend: The brains behind the operation</li>
|
|
1394
|
+
<li>Database: Where all the important stuff lives</li>
|
|
1395
|
+
</UnorderedList>
|
|
1396
|
+
|
|
1397
|
+
{/* Checklist */}
|
|
1398
|
+
<Checklist items={codingRequirements} />
|
|
1399
|
+
|
|
1400
|
+
{/* Ordered List */}
|
|
1401
|
+
<OrderedList>
|
|
1402
|
+
<li>Write the code with confidence</li>
|
|
1403
|
+
<li>Test it thoroughly (or at least run it once)</li>
|
|
1404
|
+
<li>Deploy to production on a Friday</li>
|
|
1405
|
+
<li>Panic when everything breaks</li>
|
|
1406
|
+
</OrderedList>
|
|
1407
|
+
|
|
1408
|
+
{/* Code Block */}
|
|
1409
|
+
<P className="leading-7 [&:not(:first-child)]:mt-6">
|
|
1410
|
+
Every programmer's favorite error message is{" "}
|
|
1411
|
+
<Code variant="warning">It works on my machine</Code>{" "}
|
|
1412
|
+
followed closely by the classic "undefined is not a function."
|
|
1413
|
+
</P>
|
|
1414
|
+
|
|
1415
|
+
{/* Lead Text */}
|
|
1416
|
+
<P className="text-xl text-muted-foreground">The moral of the story is: embrace the bugs, celebrate the victories, and never forget to push your code to version control.</P>
|
|
1417
|
+
</DIV>
|
|
1418
|
+
);
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
export default TypographyExample;
|
|
1422
|
+
`,
|
|
1423
|
+
category: "Typography",
|
|
1424
|
+
tags: ["ui", "components", "interactive"],
|
|
1425
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1426
|
+
dependencies: ["lucide-react"],
|
|
1427
|
+
usage: `
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
const TypographyExample = () => {
|
|
1440
|
+
const codingRequirements = [
|
|
1441
|
+
{ item: "Clean, readable code", checked: true },
|
|
1442
|
+
{ item: "Proper documentation", checked: true },
|
|
1443
|
+
{ item: "Zero bugs (wishful thinking)", checked: false },
|
|
1444
|
+
{ item: "Coffee supply maintained", checked: false },
|
|
1445
|
+
];
|
|
1446
|
+
|
|
1447
|
+
return (
|
|
1448
|
+
<DIV>
|
|
1449
|
+
{/* Heading */}
|
|
1450
|
+
<H1>The Developer's Journey: From Hello World to Production</H1>
|
|
1451
|
+
|
|
1452
|
+
{/* Subheading */}
|
|
1453
|
+
<H2>The Art of Programming</H2>
|
|
1454
|
+
|
|
1455
|
+
{/* Paragraph */}
|
|
1456
|
+
<P>
|
|
1457
|
+
Every developer starts with that magical first line of code, printing "Hello World" to the console. What begins as a simple curiosity soon becomes an obsession with solving problems, building applications, and constantly learning new technologies. But with great power comes great responsibility - and a lot of debugging sessions that last until 3 AM.
|
|
1458
|
+
</P>
|
|
1459
|
+
|
|
1460
|
+
{/* Blockquote */}
|
|
1461
|
+
<Blockquote>"There are only two hard things in Computer Science: cache invalidation and naming things."</Blockquote>
|
|
1462
|
+
|
|
1463
|
+
{/* Unordered List */}
|
|
1464
|
+
<UnorderedList>
|
|
1465
|
+
<li>Frontend: The pretty face everyone sees</li>
|
|
1466
|
+
<li>Backend: The brains behind the operation</li>
|
|
1467
|
+
<li>Database: Where all the important stuff lives</li>
|
|
1468
|
+
</UnorderedList>
|
|
1469
|
+
|
|
1470
|
+
{/* Checklist */}
|
|
1471
|
+
<Checklist items={codingRequirements} />
|
|
1472
|
+
|
|
1473
|
+
{/* Ordered List */}
|
|
1474
|
+
<OrderedList>
|
|
1475
|
+
<li>Write the code with confidence</li>
|
|
1476
|
+
<li>Test it thoroughly (or at least run it once)</li>
|
|
1477
|
+
<li>Deploy to production on a Friday</li>
|
|
1478
|
+
<li>Panic when everything breaks</li>
|
|
1479
|
+
</OrderedList>
|
|
1480
|
+
|
|
1481
|
+
{/* Code Block */}
|
|
1482
|
+
<P className="leading-7 [&:not(:first-child)]:mt-6">
|
|
1483
|
+
Every programmer's favorite error message is{" "}
|
|
1484
|
+
<Code variant="warning">It works on my machine</Code>{" "}
|
|
1485
|
+
followed closely by the classic "undefined is not a function."
|
|
1486
|
+
</P>
|
|
1487
|
+
|
|
1488
|
+
{/* Lead Text */}
|
|
1489
|
+
<P className="text-xl text-muted-foreground">The moral of the story is: embrace the bugs, celebrate the victories, and never forget to push your code to version control.</P>
|
|
1490
|
+
</DIV>
|
|
1491
|
+
);
|
|
1492
|
+
};
|
|
1493
|
+
|
|
1494
|
+
export default TypographyExample;
|
|
1495
|
+
`,
|
|
1496
|
+
usagePath: null,
|
|
1497
|
+
props: [
|
|
1498
|
+
{ name: "className", type: "string", default: "null" },
|
|
1499
|
+
],
|
|
1500
|
+
props2: [],
|
|
1501
|
+
desc: null,
|
|
1502
|
+
status: null,
|
|
1503
|
+
lastUpdated: null
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
name: "ordered list",
|
|
1507
|
+
value: "ordered-list",
|
|
1508
|
+
importPath: "~/components/catalyst-ui/typography/ordered-list",
|
|
1509
|
+
multiImport: null,
|
|
1510
|
+
basicusage: `
|
|
1511
|
+
<OrderedList>
|
|
1512
|
+
<li>Write the code with confidence</li>
|
|
1513
|
+
<li>Test it thoroughly (or at least run it once)</li>
|
|
1514
|
+
<li>Deploy to production on a Friday</li>
|
|
1515
|
+
<li>Panic when everything breaks</li>
|
|
1516
|
+
</OrderedList>
|
|
1517
|
+
`,
|
|
1518
|
+
path: "/components/catalyst-ui/typography/typography/ordered-list.tsx",
|
|
1519
|
+
source: `
|
|
1520
|
+
|
|
1521
|
+
|
|
1522
|
+
export function OrderedList({ children, variant = "default", className = "" }) {
|
|
1523
|
+
const variants = {
|
|
1524
|
+
default: "list-decimal",
|
|
1525
|
+
lowerAlpha: "list-lower-alpha",
|
|
1526
|
+
upperAlpha: "list-upper-alpha",
|
|
1527
|
+
lowerRoman: "list-lower-roman",
|
|
1528
|
+
upperRoman: "list-upper-roman"
|
|
1529
|
+
};
|
|
1530
|
+
|
|
1531
|
+
return (
|
|
1532
|
+
<ol className={cn("my-6 ml-6 [&>li]:mt-2", variants[variant], className)}>
|
|
1533
|
+
{children}
|
|
1534
|
+
</ol>
|
|
1535
|
+
);
|
|
1536
|
+
}`,
|
|
1537
|
+
usagePath: null,
|
|
1538
|
+
usage: null,
|
|
1539
|
+
premium: true,
|
|
1540
|
+
category: "Typography",
|
|
1541
|
+
tags: ["ui", "components", "display"],
|
|
1542
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1543
|
+
dependencies: ["lucide-react"],
|
|
1544
|
+
props: [
|
|
1545
|
+
{ name: "className", type: "string", default: "null" },
|
|
1546
|
+
],
|
|
1547
|
+
props2: [],
|
|
1548
|
+
desc: null,
|
|
1549
|
+
status: null,
|
|
1550
|
+
lastUpdated: null
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
name: "p",
|
|
1554
|
+
value: "p",
|
|
1555
|
+
importPath: "~/components/catalyst-ui/typography/p",
|
|
1556
|
+
multiImport: null,
|
|
1557
|
+
basicusage: `
|
|
1558
|
+
<P>
|
|
1559
|
+
Every developer starts with that magical first line of code, printing "Hello World" to the console. What begins as a simple curiosity soon becomes an obsession with solving problems, building applications, and constantly learning new technologies. But with great power comes great responsibility - and a lot of debugging sessions that last until 3 AM.
|
|
1560
|
+
</P>
|
|
1561
|
+
`,
|
|
1562
|
+
path: "/components/catalyst-ui/typography/typography/p.tsx",
|
|
1563
|
+
source: `
|
|
1564
|
+
|
|
1565
|
+
|
|
1566
|
+
export function P({ children, className = "" }) {
|
|
1567
|
+
return (
|
|
1568
|
+
<blockquote className={cn("leading-7 [&:not(:first-child)]:mt-6", className)}>
|
|
1569
|
+
{children}
|
|
1570
|
+
</blockquote>
|
|
1571
|
+
)
|
|
1572
|
+
}
|
|
1573
|
+
`,
|
|
1574
|
+
usagePath: null,
|
|
1575
|
+
usage: null,
|
|
1576
|
+
premium: true,
|
|
1577
|
+
category: "Typography",
|
|
1578
|
+
tags: ["ui", "components", "display"],
|
|
1579
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1580
|
+
dependencies: ["lucide-react"],
|
|
1581
|
+
props: [
|
|
1582
|
+
{ name: "className", type: "string", default: "null" },
|
|
1583
|
+
],
|
|
1584
|
+
props2: [],
|
|
1585
|
+
desc: null,
|
|
1586
|
+
status: null,
|
|
1587
|
+
lastUpdated: null
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
name: "PM",
|
|
1591
|
+
value: "p-m",
|
|
1592
|
+
importPath: "~/components/catalyst-ui/typography/pm",
|
|
1593
|
+
multiImport: null,
|
|
1594
|
+
basicusage: `
|
|
1595
|
+
<PM>
|
|
1596
|
+
Every developer starts with that magical first line of code, printing "Hello World" to the console. What begins as a simple curiosity soon becomes an obsession with solving problems, building applications, and constantly learning new technologies. But with great power comes great responsibility - and a lot of debugging sessions that last until 3 AM.
|
|
1597
|
+
</PM>
|
|
1598
|
+
`,
|
|
1599
|
+
path: "/components/catalyst-ui/typography/typography/pm.tsx",
|
|
1600
|
+
source: `
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
export function PM({ children, className = "" }) {
|
|
1604
|
+
return (
|
|
1605
|
+
<blockquote className={cn("leading-7 [&:not(:first-child)]:mt-6 text-muted-foreground", className)}>
|
|
1606
|
+
{children}
|
|
1607
|
+
</blockquote>
|
|
1608
|
+
)
|
|
1609
|
+
}`,
|
|
1610
|
+
usagePath: null,
|
|
1611
|
+
usage: null,
|
|
1612
|
+
premium: true,
|
|
1613
|
+
category: "Typography",
|
|
1614
|
+
tags: ["ui", "components", "display"],
|
|
1615
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1616
|
+
dependencies: ["lucide-react"],
|
|
1617
|
+
props: [
|
|
1618
|
+
{ name: "className", type: "string", default: "null" },
|
|
1619
|
+
],
|
|
1620
|
+
props2: [],
|
|
1621
|
+
desc: null,
|
|
1622
|
+
status: null,
|
|
1623
|
+
lastUpdated: null
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
name: "unordered list",
|
|
1627
|
+
value: "unordered-list",
|
|
1628
|
+
importPath: "~/components/catalyst-ui/typography/unordered-list",
|
|
1629
|
+
multiImport: null,
|
|
1630
|
+
basicusage: `
|
|
1631
|
+
<UnorderedList>
|
|
1632
|
+
<li>Frontend: The pretty face everyone sees</li>
|
|
1633
|
+
<li>Backend: The brains behind the operation</li>
|
|
1634
|
+
<li>Database: Where all the important stuff lives</li>
|
|
1635
|
+
</UnorderedList>
|
|
1636
|
+
`,
|
|
1637
|
+
path: "/components/catalyst-ui/typography/typography/unordered-list.tsx",
|
|
1638
|
+
source: `
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
export function UnorderedList({ children, variant = "default", className = "" }) {
|
|
1642
|
+
const variants = {
|
|
1643
|
+
default: "list-disc",
|
|
1644
|
+
circle: "list-circle",
|
|
1645
|
+
square: "list-square",
|
|
1646
|
+
none: "list-none"
|
|
1647
|
+
};
|
|
1648
|
+
|
|
1649
|
+
return (
|
|
1650
|
+
<ul className={cn("my-6 ml-6 [&>li]:mt-2", variants[variant], className)}>
|
|
1651
|
+
<span className='text-muted-foreground'>{children}</span>
|
|
1652
|
+
</ul>
|
|
1653
|
+
);
|
|
1654
|
+
}
|
|
1655
|
+
`,
|
|
1656
|
+
usagePath: null,
|
|
1657
|
+
usage: null,
|
|
1658
|
+
premium: true,
|
|
1659
|
+
category: "Typography",
|
|
1660
|
+
tags: ["ui", "components", "display"],
|
|
1661
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1662
|
+
dependencies: ["lucide-react"],
|
|
1663
|
+
props: [
|
|
1664
|
+
{ name: "className", type: "string", default: "null" },
|
|
1665
|
+
],
|
|
1666
|
+
props2: [],
|
|
1667
|
+
desc: null,
|
|
1668
|
+
status: null,
|
|
1669
|
+
lastUpdated: null
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
name: "Block Quote",
|
|
1673
|
+
value: "block-quote",
|
|
1674
|
+
importPath: "~/components/catalyst-ui/typography/block-quote",
|
|
1675
|
+
multiImport: null,
|
|
1676
|
+
basicusage: `
|
|
1677
|
+
<Blockquote className="mt-4">
|
|
1678
|
+
Text
|
|
1679
|
+
</Blockquote>
|
|
1680
|
+
<Blockquote variant='success' className="mt-4">
|
|
1681
|
+
Text
|
|
1682
|
+
</Blockquote>
|
|
1683
|
+
<Blockquote variant='warning' className="mt-4">
|
|
1684
|
+
Text
|
|
1685
|
+
</Blockquote>
|
|
1686
|
+
<Blockquote variant='default' className="mt-4">
|
|
1687
|
+
Text
|
|
1688
|
+
</Blockquote>
|
|
1689
|
+
`,
|
|
1690
|
+
path: "/components/catalyst-ui/typography/typography/block-quote.tsx",
|
|
1691
|
+
source: `
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
export function Blockquote({ children, variant = "info", className = "" }) {
|
|
1695
|
+
const variants = {
|
|
1696
|
+
default: "border-border text-muted-foreground",
|
|
1697
|
+
success: "border-green-500 text-muted-foreground bg-green-900/20 py-2",
|
|
1698
|
+
warning: "border-yellow-500 text-muted-foreground bg-yellow-900/20 py-2",
|
|
1699
|
+
info: "border-blue-500 text-muted-foreground bg-blue-900/20 py-2"
|
|
1700
|
+
};
|
|
1701
|
+
|
|
1702
|
+
return (
|
|
1703
|
+
<blockquote className={cn("mt-4 border-l-4 pl-4 italic", variants[variant], className)}>
|
|
1704
|
+
{children}
|
|
1705
|
+
</blockquote>
|
|
1706
|
+
)
|
|
1707
|
+
}`,
|
|
1708
|
+
usagePath: null,
|
|
1709
|
+
usage: null,
|
|
1710
|
+
premium: true,
|
|
1711
|
+
category: "Typography",
|
|
1712
|
+
tags: ["ui", "components", "display"],
|
|
1713
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1714
|
+
dependencies: ["lucide-react"],
|
|
1715
|
+
props: [
|
|
1716
|
+
{ name: "className", type: "string", default: "null" },
|
|
1717
|
+
],
|
|
1718
|
+
props2: [],
|
|
1719
|
+
desc: null,
|
|
1720
|
+
status: null,
|
|
1721
|
+
lastUpdated: null
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
name: "check list",
|
|
1725
|
+
value: "check-list",
|
|
1726
|
+
importPath: "~/components/catalyst-ui/typography/check-list",
|
|
1727
|
+
multiImport: null,
|
|
1728
|
+
basicusage: `
|
|
1729
|
+
const codingRequirements = [
|
|
1730
|
+
{ item: "Clean, readable code", checked: true },
|
|
1731
|
+
{ item: "Proper documentation", checked: true },
|
|
1732
|
+
{ item: "Zero bugs (wishful thinking)", checked: false },
|
|
1733
|
+
{ item: "Coffee supply maintained", checked: false },
|
|
1734
|
+
]
|
|
1735
|
+
<Checklist items={codingRequirements} />
|
|
1736
|
+
`,
|
|
1737
|
+
path: "/components/catalyst-ui/typography/sections/check-list.tsx",
|
|
1738
|
+
source: null,
|
|
1739
|
+
usagePath: null,
|
|
1740
|
+
usage: null,
|
|
1741
|
+
premium: true,
|
|
1742
|
+
category: "Typography",
|
|
1743
|
+
tags: ["ui", "components", "display"],
|
|
1744
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1745
|
+
dependencies: ["lucide-react"],
|
|
1746
|
+
props: [
|
|
1747
|
+
{ name: "className", type: "string", default: "null" },
|
|
1748
|
+
],
|
|
1749
|
+
props2: [],
|
|
1750
|
+
desc: null,
|
|
1751
|
+
status: null,
|
|
1752
|
+
lastUpdated: null
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
name: "div",
|
|
1756
|
+
value: "div",
|
|
1757
|
+
importPath: "~/components/catalyst-ui/typography/div",
|
|
1758
|
+
multiImport: null,
|
|
1759
|
+
basicusage: `
|
|
1760
|
+
|
|
1761
|
+
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
<DIV>
|
|
1770
|
+
{/* Heading */}
|
|
1771
|
+
<H1>The Developer's Journey: From Hello World to Production</H1>
|
|
1772
|
+
|
|
1773
|
+
{/* Subheading */}
|
|
1774
|
+
<H2>The Art of Programming</H2>
|
|
1775
|
+
|
|
1776
|
+
{/* Paragraph */}
|
|
1777
|
+
<P>
|
|
1778
|
+
Every developer starts with that magical first line of code, printing "Hello World" to the console. What begins as a simple curiosity soon becomes an obsession with solving problems, building applications, and constantly learning new technologies. But with great power comes great responsibility - and a lot of debugging sessions that last until 3 AM.
|
|
1779
|
+
</P>
|
|
1780
|
+
|
|
1781
|
+
{/* Blockquote */}
|
|
1782
|
+
<Blockquote>"There are only two hard things in Computer Science: cache invalidation and naming things."</Blockquote>
|
|
1783
|
+
|
|
1784
|
+
{/* Unordered List */}
|
|
1785
|
+
<UnorderedList>
|
|
1786
|
+
<li>Frontend: The pretty face everyone sees</li>
|
|
1787
|
+
<li>Backend: The brains behind the operation</li>
|
|
1788
|
+
<li>Database: Where all the important stuff lives</li>
|
|
1789
|
+
</UnorderedList>
|
|
1790
|
+
|
|
1791
|
+
{/* Checklist */}
|
|
1792
|
+
<Checklist items={codingRequirements} />
|
|
1793
|
+
|
|
1794
|
+
{/* Ordered List */}
|
|
1795
|
+
<OrderedList>
|
|
1796
|
+
<li>Write the code with confidence</li>
|
|
1797
|
+
<li>Test it thoroughly (or at least run it once)</li>
|
|
1798
|
+
<li>Deploy to production on a Friday</li>
|
|
1799
|
+
<li>Panic when everything breaks</li>
|
|
1800
|
+
</OrderedList>
|
|
1801
|
+
|
|
1802
|
+
{/* Code Block */}
|
|
1803
|
+
<P className="leading-7 [&:not(:first-child)]:mt-6">
|
|
1804
|
+
Every programmer's favorite error message is{" "}
|
|
1805
|
+
<Code variant="warning">It works on my machine</Code>{" "}
|
|
1806
|
+
followed closely by the classic "undefined is not a function."
|
|
1807
|
+
</P>
|
|
1808
|
+
|
|
1809
|
+
{/* Lead Text */}
|
|
1810
|
+
<P className="text-xl text-muted-foreground">The moral of the story is: embrace the bugs, celebrate the victories, and never forget to push your code to version control.</P>
|
|
1811
|
+
</DIV>
|
|
1812
|
+
`,
|
|
1813
|
+
path: "/components/catalyst-ui/typography/typography/check-list.tsx",
|
|
1814
|
+
source: `
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
export function DIV({ children, className = "" }) {
|
|
1818
|
+
return (
|
|
1819
|
+
<div className={cn("max-w-3xl mx-auto p-6 space-y-6", className)}>
|
|
1820
|
+
{children}
|
|
1821
|
+
</div>
|
|
1822
|
+
)
|
|
1823
|
+
}
|
|
1824
|
+
`,
|
|
1825
|
+
usagePath: null,
|
|
1826
|
+
usage: null,
|
|
1827
|
+
premium: true,
|
|
1828
|
+
category: "Typography",
|
|
1829
|
+
tags: ["ui", "components", "display"],
|
|
1830
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1831
|
+
dependencies: ["lucide-react"],
|
|
1832
|
+
props: [
|
|
1833
|
+
{ name: "className", type: "string", default: "null" },
|
|
1834
|
+
],
|
|
1835
|
+
props2: [],
|
|
1836
|
+
desc: null,
|
|
1837
|
+
status: null,
|
|
1838
|
+
lastUpdated: null
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
name: "h1",
|
|
1842
|
+
value: "h1",
|
|
1843
|
+
importPath: "~/components/catalyst-ui/typography/h1",
|
|
1844
|
+
multiImport: null,
|
|
1845
|
+
basicusage: `
|
|
1846
|
+
<H1>The Developer's Journey: From Hello World to Production</H1>
|
|
1847
|
+
`,
|
|
1848
|
+
path: "/components/catalyst-ui/typography/typography/h1.tsx",
|
|
1849
|
+
source: `
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
export function H1({ children, className = "" }) {
|
|
1853
|
+
return (
|
|
1854
|
+
<h1 className={cn("scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl", className)}>
|
|
1855
|
+
{children}
|
|
1856
|
+
</h1>
|
|
1857
|
+
)
|
|
1858
|
+
}
|
|
1859
|
+
`,
|
|
1860
|
+
usagePath: null,
|
|
1861
|
+
usage: null,
|
|
1862
|
+
premium: true,
|
|
1863
|
+
category: "Typography",
|
|
1864
|
+
tags: ["ui", "components", "display"],
|
|
1865
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1866
|
+
dependencies: ["lucide-react"],
|
|
1867
|
+
props: [
|
|
1868
|
+
{ name: "className", type: "string", default: "null" },
|
|
1869
|
+
],
|
|
1870
|
+
props2: [],
|
|
1871
|
+
desc: null,
|
|
1872
|
+
status: null,
|
|
1873
|
+
lastUpdated: null
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
name: "h2",
|
|
1877
|
+
value: "h2",
|
|
1878
|
+
importPath: "~/components/catalyst-ui/typography/h2",
|
|
1879
|
+
multiImport: null,
|
|
1880
|
+
basicusage: `
|
|
1881
|
+
<H2>The Art of Programming</H2>
|
|
1882
|
+
`,
|
|
1883
|
+
path: "/components/catalyst-ui/typography/typography/h2.tsx",
|
|
1884
|
+
source: `
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
export function H2({ children, className = "" }) {
|
|
1888
|
+
return (
|
|
1889
|
+
<h2 className={cn("scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0", className)}>
|
|
1890
|
+
{children}
|
|
1891
|
+
</h2>
|
|
1892
|
+
)
|
|
1893
|
+
}
|
|
1894
|
+
`,
|
|
1895
|
+
usagePath: null,
|
|
1896
|
+
usage: null,
|
|
1897
|
+
premium: true,
|
|
1898
|
+
category: "Typography",
|
|
1899
|
+
tags: ["ui", "components", "display"],
|
|
1900
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1901
|
+
dependencies: ["lucide-react"],
|
|
1902
|
+
props: [
|
|
1903
|
+
{ name: "className", type: "string", default: "null" },
|
|
1904
|
+
],
|
|
1905
|
+
props2: [],
|
|
1906
|
+
desc: null,
|
|
1907
|
+
status: null,
|
|
1908
|
+
lastUpdated: null
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
name: "B",
|
|
1912
|
+
value: "b",
|
|
1913
|
+
importPath: "~/components/catalyst-ui/typography/b",
|
|
1914
|
+
multiImport: null,
|
|
1915
|
+
path: "/components/catalyst-ui/typography/typography/b.tsx",
|
|
1916
|
+
premium: true,
|
|
1917
|
+
source: `
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
|
|
1921
|
+
export function B({ children, className = "" }) {
|
|
1922
|
+
return (
|
|
1923
|
+
<strong className={cn("font-bold", className)}>
|
|
1924
|
+
{children}
|
|
1925
|
+
</strong>
|
|
1926
|
+
);
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
`,
|
|
1930
|
+
category: "Typography",
|
|
1931
|
+
tags: ["ui", "components", "interactive"],
|
|
1932
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1933
|
+
dependencies: ["react"],
|
|
1934
|
+
basicusage: `
|
|
1935
|
+
<B>
|
|
1936
|
+
Content
|
|
1937
|
+
</B>
|
|
1938
|
+
|
|
1939
|
+
<B className="">
|
|
1940
|
+
Content
|
|
1941
|
+
</B>`,
|
|
1942
|
+
usage: null,
|
|
1943
|
+
usagePath: null,
|
|
1944
|
+
props: {
|
|
1945
|
+
"B": [
|
|
1946
|
+
{ name: "children", type: "string", default: null },
|
|
1947
|
+
{ name: "className", type: "number", default: "" }
|
|
1948
|
+
],
|
|
1949
|
+
},
|
|
1950
|
+
desc: null,
|
|
1951
|
+
status: null,
|
|
1952
|
+
lastUpdated: null
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
name: "I",
|
|
1956
|
+
value: "i",
|
|
1957
|
+
importPath: "~/components/catalyst-ui/typography/i",
|
|
1958
|
+
multiImport: null,
|
|
1959
|
+
path: "/components/catalyst-ui/typography/typography/i.tsx",
|
|
1960
|
+
premium: true,
|
|
1961
|
+
source: `
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
export interface ItalicProps {
|
|
1966
|
+
children: React.ReactNode;
|
|
1967
|
+
className?: string;
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
export function I({ children, className = "" }: ItalicProps) {
|
|
1971
|
+
return (
|
|
1972
|
+
<span className={cn("italic", className)}>
|
|
1973
|
+
{children}
|
|
1974
|
+
</span>
|
|
1975
|
+
);
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
`,
|
|
1979
|
+
category: "Typography",
|
|
1980
|
+
tags: ["ui", "components", "interactive"],
|
|
1981
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
1982
|
+
dependencies: ["react"],
|
|
1983
|
+
basicusage: `
|
|
1984
|
+
<I>
|
|
1985
|
+
Content
|
|
1986
|
+
</I>
|
|
1987
|
+
|
|
1988
|
+
<I className="">
|
|
1989
|
+
Content
|
|
1990
|
+
</I>`,
|
|
1991
|
+
usage: null,
|
|
1992
|
+
usagePath: null,
|
|
1993
|
+
props: {
|
|
1994
|
+
"I": [
|
|
1995
|
+
{ name: "children", type: "string", default: null },
|
|
1996
|
+
{ name: "className", type: "number", default: "" }
|
|
1997
|
+
],
|
|
1998
|
+
},
|
|
1999
|
+
desc: null,
|
|
2000
|
+
status: null,
|
|
2001
|
+
lastUpdated: null
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
name: "IB",
|
|
2005
|
+
value: "ib",
|
|
2006
|
+
importPath: "~/components/catalyst-ui/typography/ib",
|
|
2007
|
+
multiImport: null,
|
|
2008
|
+
path: "/components/catalyst-ui/typography/typography/ib.tsx",
|
|
2009
|
+
premium: true,
|
|
2010
|
+
source: `
|
|
2011
|
+
|
|
2012
|
+
|
|
2013
|
+
|
|
2014
|
+
export interface ItalicProps {
|
|
2015
|
+
children: React.ReactNode;
|
|
2016
|
+
className?: string;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
export function IB({ children, className = "" }: ItalicProps) {
|
|
2020
|
+
return (
|
|
2021
|
+
<span className={cn("italic font-semibold", className)}>
|
|
2022
|
+
{children}
|
|
2023
|
+
</span>
|
|
2024
|
+
);
|
|
2025
|
+
}`,
|
|
2026
|
+
category: "Typography",
|
|
2027
|
+
tags: ["ui", "components", "interactive"],
|
|
2028
|
+
features: ["Responsive", "TypeScript", "Accessible"],
|
|
2029
|
+
dependencies: ["react"],
|
|
2030
|
+
basicusage: `
|
|
2031
|
+
<IB>
|
|
2032
|
+
Content
|
|
2033
|
+
</IB>
|
|
2034
|
+
|
|
2035
|
+
<IB className="">
|
|
2036
|
+
Content
|
|
2037
|
+
</IB>`,
|
|
2038
|
+
usage: null,
|
|
2039
|
+
usagePath: null,
|
|
2040
|
+
props: {
|
|
2041
|
+
"IB": [
|
|
2042
|
+
{ name: "children", type: "string", default: null },
|
|
2043
|
+
{ name: "className", type: "number", default: "" }
|
|
2044
|
+
],
|
|
2045
|
+
},
|
|
2046
|
+
desc: null,
|
|
2047
|
+
status: null,
|
|
2048
|
+
lastUpdated: null
|
|
2049
|
+
},
|
|
2050
|
+
];
|