@catalystsoftware/ui 1.0.4 → 1.0.5

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.
Files changed (157) hide show
  1. package/data/tailwind.config.js +261 -3821
  2. package/dist/components/catalyst-ui/buttons/burger.tsx +207 -0
  3. package/dist/components/catalyst-ui/core/data-display/timeline.tsx +210 -0
  4. package/dist/components/catalyst-ui/core/feedback/alert.tsx +491 -0
  5. package/dist/components/catalyst-ui/core/feedback/spinner-1.tsx +65 -0
  6. package/dist/components/catalyst-ui/core/feedback/toast.tsx +1857 -0
  7. package/dist/components/catalyst-ui/core/navigation/menu.tsx +164 -0
  8. package/dist/components/catalyst-ui/forms/toggle-class.tsx +176 -0
  9. package/dist/components/catalyst-ui/hooks/use-copy-to-clipboard.tsx +419 -0
  10. package/dist/components/catalyst-ui/hooks/use-counter.tsx +13 -0
  11. package/dist/components/catalyst-ui/hooks/use-event-listener.tsx +23 -0
  12. package/dist/components/catalyst-ui/hooks/use-export-markdown.tsx +47 -0
  13. package/dist/components/catalyst-ui/hooks/use-focus.tsx +17 -0
  14. package/dist/components/catalyst-ui/hooks/use-interval.tsx +23 -0
  15. package/dist/components/catalyst-ui/hooks/use-is-client.tsx +16 -0
  16. package/dist/components/catalyst-ui/hooks/use-media-query.tsx +19 -0
  17. package/dist/components/catalyst-ui/hooks/use-mobile.tsx +19 -0
  18. package/dist/components/catalyst-ui/hooks/use-resize-observer.tsx +81 -0
  19. package/dist/components/catalyst-ui/hooks/use-timeout.tsx +21 -0
  20. package/dist/components/catalyst-ui/hooks/use-timer.tsx +209 -0
  21. package/dist/components/catalyst-ui/hooks/use-toggle.tsx +12 -0
  22. package/dist/components/catalyst-ui/media/image.tsx +13 -0
  23. package/dist/components/catalyst-ui/overlays/dual-sidebar.tsx +4142 -0
  24. package/dist/components/catalyst-ui/overlays/sidebar-original.tsx +726 -0
  25. package/dist/components/catalyst-ui/primitives/accordion.tsx +250 -0
  26. package/dist/components/catalyst-ui/primitives/alert-dialog.tsx +126 -0
  27. package/dist/components/catalyst-ui/primitives/aspect-ratio.tsx +9 -0
  28. package/dist/components/catalyst-ui/primitives/avatar.tsx +296 -0
  29. package/dist/components/catalyst-ui/primitives/badge.tsx +57 -0
  30. package/dist/components/catalyst-ui/primitives/breadcrumb.tsx +101 -0
  31. package/dist/components/catalyst-ui/primitives/button.tsx +265 -0
  32. package/dist/components/catalyst-ui/primitives/calendar-v4.tsx +208 -0
  33. package/dist/components/catalyst-ui/primitives/calendar.tsx +295 -0
  34. package/dist/components/catalyst-ui/primitives/card.tsx +618 -0
  35. package/dist/components/catalyst-ui/primitives/carousel.tsx +238 -0
  36. package/dist/components/catalyst-ui/primitives/chart.tsx +347 -0
  37. package/dist/components/catalyst-ui/primitives/checkbox.tsx +225 -0
  38. package/dist/components/catalyst-ui/primitives/collapsible.tsx +212 -0
  39. package/dist/components/catalyst-ui/primitives/command.tsx +393 -0
  40. package/dist/components/catalyst-ui/primitives/context-menu.tsx +236 -0
  41. package/dist/components/catalyst-ui/primitives/dialog.tsx +471 -0
  42. package/dist/components/catalyst-ui/primitives/drawer.tsx +761 -0
  43. package/dist/components/catalyst-ui/primitives/dropdown-menu.tsx +290 -0
  44. package/dist/components/catalyst-ui/primitives/empty.tsx +104 -0
  45. package/dist/components/catalyst-ui/primitives/field.tsx +244 -0
  46. package/dist/components/catalyst-ui/primitives/hover-card.tsx +124 -0
  47. package/dist/components/catalyst-ui/primitives/input-otp.tsx +76 -0
  48. package/dist/components/catalyst-ui/primitives/input.tsx +64 -0
  49. package/dist/components/catalyst-ui/primitives/item.tsx +196 -0
  50. package/dist/components/catalyst-ui/primitives/kbd.tsx +75 -0
  51. package/dist/components/catalyst-ui/primitives/label.tsx +24 -0
  52. package/dist/components/catalyst-ui/primitives/navigation-menu.tsx +150 -0
  53. package/dist/components/catalyst-ui/primitives/pagination.tsx +198 -0
  54. package/dist/components/catalyst-ui/primitives/popover.tsx +232 -0
  55. package/dist/components/catalyst-ui/primitives/progress.tsx +34 -0
  56. package/dist/components/catalyst-ui/primitives/radio-group.tsx +43 -0
  57. package/dist/components/catalyst-ui/primitives/resizable.tsx +56 -0
  58. package/dist/components/catalyst-ui/primitives/select.tsx +155 -0
  59. package/dist/components/catalyst-ui/primitives/separator.tsx +74 -0
  60. package/dist/components/catalyst-ui/primitives/sheet.tsx +126 -0
  61. package/dist/components/catalyst-ui/primitives/skeleton.tsx +15 -0
  62. package/dist/components/catalyst-ui/primitives/slider.tsx +27 -0
  63. package/dist/components/catalyst-ui/primitives/switch.tsx +187 -0
  64. package/dist/components/catalyst-ui/primitives/tabs.tsx +335 -0
  65. package/dist/components/catalyst-ui/primitives/textarea.tsx +24 -0
  66. package/dist/components/catalyst-ui/primitives/toggle-group.tsx +55 -0
  67. package/dist/components/catalyst-ui/primitives/toggle.tsx +42 -0
  68. package/dist/components/catalyst-ui/primitives/tooltip.tsx +116 -0
  69. package/dist/components/catalyst-ui/utils/basic-auth.tsx +40 -0
  70. package/dist/components/catalyst-ui/utils/context-storage.tsx +19 -0
  71. package/dist/components/catalyst-ui/utils/cors-middleware.tsx +71 -0
  72. package/dist/components/catalyst-ui/utils/deferred-content.tsx +595 -0
  73. package/dist/components/catalyst-ui/utils/honeypot-middleware.tsx +38 -0
  74. package/dist/components/catalyst-ui/utils/incId.tsx +75 -0
  75. package/dist/components/catalyst-ui/utils/jwk-auth.tsx +36 -0
  76. package/dist/components/catalyst-ui/utils/request-id.tsx +14 -0
  77. package/dist/components/catalyst-ui/utils/secure-headers.tsx +37 -0
  78. package/dist/components/catalyst-ui/utils/server-timing.tsx +23 -0
  79. package/dist/components/catalyst-ui/utils/utils.ts +43 -0
  80. package/dist/components/catalyst-ui/utils/with-cookie.tsx +43 -0
  81. package/dist/components/catalyst-ui/x/accordian-x.tsx +428 -0
  82. package/dist/components/catalyst-ui/x/alert-x.tsx +413 -0
  83. package/dist/components/catalyst-ui/x/animated-text-x.tsx +2242 -0
  84. package/dist/components/catalyst-ui/x/avatar-x.tsx +515 -0
  85. package/dist/components/catalyst-ui/x/badge-x.tsx +670 -0
  86. package/dist/components/catalyst-ui/x/button-X.tsx +2857 -0
  87. package/dist/components/catalyst-ui/x/button-group-x.tsx +847 -0
  88. package/dist/components/catalyst-ui/x/calendar-x.tsx +1910 -0
  89. package/dist/components/catalyst-ui/x/card-x.tsx +2597 -0
  90. package/dist/components/catalyst-ui/x/checkbox-x.tsx +656 -0
  91. package/dist/components/catalyst-ui/x/collapsible-x.tsx +1360 -0
  92. package/dist/components/catalyst-ui/x/combobox-x.tsx +911 -0
  93. package/dist/components/catalyst-ui/x/data-table-x.tsx +1753 -0
  94. package/dist/components/catalyst-ui/x/date-picker-x.tsx +648 -0
  95. package/dist/components/catalyst-ui/x/dialog-x.tsx +659 -0
  96. package/dist/components/catalyst-ui/x/dropdown-menu-x.tsx +612 -0
  97. package/dist/components/catalyst-ui/x/hover-card-x.tsx +375 -0
  98. package/dist/components/catalyst-ui/x/icon-x.tsx +840 -0
  99. package/dist/components/catalyst-ui/x/input-mask-x.tsx +981 -0
  100. package/dist/components/catalyst-ui/x/input-otp-x.tsx +659 -0
  101. package/dist/components/catalyst-ui/x/loader-x.tsx +1757 -0
  102. package/dist/components/catalyst-ui/x/pagination-x.tsx +622 -0
  103. package/dist/components/catalyst-ui/x/popover-x.tsx +744 -0
  104. package/dist/components/catalyst-ui/x/radio-group-x.tsx +499 -0
  105. package/dist/components/catalyst-ui/x/select-x.tsx +1127 -0
  106. package/dist/components/catalyst-ui/x/sheet-x.tsx +668 -0
  107. package/dist/components/catalyst-ui/x/switch-x.tsx +681 -0
  108. package/dist/components/catalyst-ui/x/table-x.tsx +574 -0
  109. package/dist/components/catalyst-ui/x/tabs-x.tsx +839 -0
  110. package/dist/components/catalyst-ui/x/textarea-x.tsx +1263 -0
  111. package/dist/components/catalyst-ui/x/tooltip-x.tsx +396 -0
  112. package/dist/components/catalyst-ui/x/tracker-x.tsx +560 -0
  113. package/dist/data/bg-data.tsx +901 -0
  114. package/dist/data/buttons-data.tsx +2327 -0
  115. package/dist/data/charts-data.tsx +102 -0
  116. package/dist/data/chat-data.tsx +83 -0
  117. package/dist/data/code-data.tsx +1040 -0
  118. package/dist/data/comboboxes-data.tsx +1843 -0
  119. package/dist/data/command-data.tsx +1381 -0
  120. package/dist/data/core-data.tsx +15953 -0
  121. package/dist/data/crm-data.tsx +47 -0
  122. package/dist/data/data.tsx +159 -0
  123. package/dist/data/date-and-time-data.tsx +554 -0
  124. package/dist/data/dependencies.tsx +7 -0
  125. package/dist/data/ecommerce-data.tsx +1387 -0
  126. package/dist/data/forms-data.tsx +7890 -0
  127. package/dist/data/hooks-data.tsx +5487 -0
  128. package/dist/data/index.ts +34 -0
  129. package/dist/data/inputs-data.tsx +557 -0
  130. package/dist/data/interactive-data.tsx +5394 -0
  131. package/dist/data/lofi-data.tsx +18295 -0
  132. package/dist/data/marketing-data.tsx +2546 -0
  133. package/dist/data/media-data.tsx +1510 -0
  134. package/dist/data/motion-data.tsx +5801 -0
  135. package/dist/data/overlay-data.tsx +4136 -0
  136. package/dist/data/pdf-data.tsx +124 -0
  137. package/dist/data/pos-data.tsx +213 -0
  138. package/dist/data/postcss.config.js +6 -0
  139. package/dist/data/primitive-data.tsx +5170 -0
  140. package/dist/data/prompt-data.tsx +1226 -0
  141. package/dist/data/requiredLibs.ts +4 -0
  142. package/dist/data/sandbox-data.tsx +1 -0
  143. package/dist/data/sidebars-data.tsx +5421 -0
  144. package/dist/data/stacks-data.tsx +32 -0
  145. package/dist/data/table-data.tsx +706 -0
  146. package/dist/data/tailwind.config.js +270 -0
  147. package/dist/data/tailwind.config.ngin.js +3830 -0
  148. package/dist/data/tailwind.css +431 -0
  149. package/dist/data/tools-data.tsx +6910 -0
  150. package/dist/data/typography-data.tsx +2050 -0
  151. package/dist/data/utils-data.tsx +6500 -0
  152. package/dist/data/x-data.tsx +1171 -0
  153. package/dist/data.tsx +159 -0
  154. package/package.json +1 -1
  155. package/dist/index.d.ts +0 -3
  156. package/dist/index.d.ts.map +0 -1
  157. package/dist/index.js.map +0 -362
@@ -0,0 +1,270 @@
1
+ import type { Config } from "tailwindcss";
2
+
3
+ export default {
4
+ darkMode: ["class"],
5
+ content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"],
6
+ theme: {
7
+ extend: {
8
+ fontFamily: {
9
+ sans: [
10
+ 'Inter',
11
+ 'ui-sans-serif',
12
+ 'system-ui',
13
+ 'sans-serif',
14
+ 'Apple Color Emoji',
15
+ 'Segoe UI Emoji',
16
+ 'Segoe UI Symbol',
17
+ 'Noto Color Emoji'
18
+ ]
19
+ },
20
+ borderRadius: {
21
+ lg: 'var(--radius)',
22
+ md: 'calc(var(--radius) - 2px)',
23
+ sm: 'calc(var(--radius) - 4px)'
24
+ },
25
+ colors: {
26
+ border: 'hsl(var(--border))',
27
+ input: 'hsl(var(--input))',
28
+ ring: 'hsl(var(--ring))',
29
+ background: {
30
+ DEFAULT: 'hsl(var(--background))',
31
+ secondary: 'hsl(var(--background-secondary))'
32
+ },
33
+ foreground: 'hsl(var(--foreground))',
34
+ primary: {
35
+ DEFAULT: 'hsl(var(--primary))',
36
+ foreground: 'hsl(var(--primary-foreground))'
37
+ },
38
+ secondary: {
39
+ DEFAULT: 'hsl(var(--secondary))',
40
+ foreground: 'hsl(var(--secondary-foreground))'
41
+ },
42
+ destructive: {
43
+ DEFAULT: 'hsl(var(--destructive))',
44
+ foreground: 'hsl(var(--destructive-foreground))'
45
+ },
46
+ muted: {
47
+ DEFAULT: 'hsl(var(--muted))',
48
+ foreground: 'hsl(var(--muted-foreground))'
49
+ },
50
+ accent: {
51
+ DEFAULT: 'hsl(var(--accent))',
52
+ foreground: 'hsl(var(--accent-foreground))'
53
+ },
54
+ popover: {
55
+ DEFAULT: 'hsl(var(--popover))',
56
+ foreground: 'hsl(var(--popover-foreground))'
57
+ },
58
+ card: {
59
+ DEFAULT: 'hsl(var(--card))',
60
+ foreground: 'hsl(var(--card-foreground))'
61
+ },
62
+ sidebar: {
63
+ DEFAULT: 'hsl(var(--sidebar))',
64
+ foreground: 'hsl(var(--sidebar-foreground))',
65
+ primary: 'hsl(var(--sidebar-primary))',
66
+ 'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
67
+ accent: 'hsl(var(--sidebar-accent))',
68
+ 'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
69
+ border: 'hsl(var(--sidebar-border))',
70
+ ring: 'hsl(var(--sidebar-ring))'
71
+ },
72
+ chart: {
73
+ '1': 'hsl(var(--chart-1))',
74
+ '2': 'hsl(var(--chart-2))',
75
+ '3': 'hsl(var(--chart-3))',
76
+ '4': 'hsl(var(--chart-4))',
77
+ '5': 'hsl(var(--chart-5))'
78
+ },
79
+ special: {
80
+ DEFAULT: 'hsl(var(--special))',
81
+ 'muted-background': 'hsl(var(--special-muted-background))',
82
+ border: 'hsl(var(--special-border))',
83
+ foreground: 'hsl(var(--special-foreground))',
84
+ 'muted-foreground': 'hsl(var(--special-muted-foreground))'
85
+ }
86
+ },
87
+ backgroundColor: {
88
+ background: 'hsl(var(--background))'
89
+ },
90
+ keyframes: {
91
+ 'accordion-down': {
92
+ from: {
93
+ height: '0'
94
+ },
95
+ to: {
96
+ height: 'var(--radix-accordion-content-height)'
97
+ }
98
+ },
99
+ 'accordion-up': {
100
+ from: {
101
+ height: 'var(--radix-accordion-content-height)'
102
+ },
103
+ to: {
104
+ height: '0'
105
+ }
106
+ },
107
+ 'caret-blink': {
108
+ '0%,70%,100%': {
109
+ opacity: '1'
110
+ },
111
+ '20%,50%': {
112
+ opacity: '0'
113
+ }
114
+ },
115
+ float: {
116
+ '0%, 100%': {
117
+ transform: 'translateY(0px) scale(1)'
118
+ },
119
+ '50%': {
120
+ transform: 'translateY(-20px) scale(1.05)'
121
+ }
122
+ },
123
+ 'pulse-glow': {
124
+ '0%, 100%': {
125
+ opacity: '0.3',
126
+ transform: 'scale(1)'
127
+ },
128
+ '50%': {
129
+ opacity: '0.6',
130
+ transform: 'scale(1.1)'
131
+ }
132
+ },
133
+ shimmer: {
134
+ '0%': {
135
+ backgroundPosition: '-200% 0'
136
+ },
137
+ '100%': {
138
+ backgroundPosition: '200% 0'
139
+ }
140
+ },
141
+ 'spin-slow': {
142
+ '0%': {
143
+ transform: 'rotate(0deg)'
144
+ },
145
+ '100%': {
146
+ transform: 'rotate(360deg)'
147
+ }
148
+ },
149
+ 'spin-slower': {
150
+ '0%': {
151
+ transform: 'rotate(0deg)'
152
+ },
153
+ '100%': {
154
+ transform: 'rotate(-360deg)'
155
+ }
156
+ },
157
+ 'matrix-fade': {
158
+ '0%, 100%': {
159
+ opacity: '0'
160
+ },
161
+ '50%': {
162
+ opacity: '1'
163
+ }
164
+ },
165
+ click: {
166
+ '0%, 100%': {
167
+ transform: 'scale(1)'
168
+ },
169
+ '50%': {
170
+ transform: 'scale(0.95)'
171
+ }
172
+ },
173
+ move: {
174
+ '0%': {
175
+ transform: 'translateX(-200px)'
176
+ },
177
+ '100%': {
178
+ transform: 'translateX(200px)'
179
+ }
180
+ },
181
+ shine: {
182
+ '0%': {
183
+ backgroundPosition: '200% 0'
184
+ },
185
+ '25%': {
186
+ backgroundPosition: '-200% 0'
187
+ },
188
+ '100%': {
189
+ backgroundPosition: '-200% 0'
190
+ }
191
+ },
192
+ gradientFlow: {
193
+ '0%': {
194
+ backgroundPosition: '0% 50%'
195
+ },
196
+ '50%': {
197
+ backgroundPosition: '100% 50%'
198
+ },
199
+ '100%': {
200
+ backgroundPosition: '0% 50%'
201
+ }
202
+ }
203
+ },
204
+ animation: {
205
+ 'accordion-down': 'accordion-down 0.2s ease-out',
206
+ 'accordion-up': 'accordion-up 0.2s ease-out',
207
+ 'caret-blink': 'caret-blink 1.25s ease-out infinite',
208
+ float: 'float 6s ease-in-out infinite',
209
+ 'pulse-glow': 'pulse-glow 4s ease-in-out infinite',
210
+ shimmer: 'shimmer 2s infinite',
211
+ 'spin-slow': 'spin-slow 3s linear infinite',
212
+ 'spin-slower': 'spin-slower 6s linear infinite',
213
+ matrix: 'matrix-fade 0.5s ease-in-out infinite',
214
+ click: 'click 0.3s ease-in-out',
215
+ shine: 'shine 3s ease-out infinite',
216
+ 'gradient-flow': 'gradientFlow 10s ease 0s infinite normal none running',
217
+ move: 'move 5s linear infinite'
218
+ },
219
+ typography: {
220
+ DEFAULT: {
221
+ css: {
222
+ h1: {
223
+ fontSize: '1.875rem',
224
+ fontWeight: '700',
225
+ lineHeight: '1.25',
226
+ letterSpacing: '-0.025em',
227
+ textAlign: 'center',
228
+ '@media (min-width: 1024px)': {
229
+ lineHeight: '1.1'
230
+ }
231
+ },
232
+ h2: {
233
+ marginTop: '0.75rem',
234
+ color: 'hsl(var(--muted-foreground))',
235
+ fontWeight: '300',
236
+ textAlign: 'center'
237
+ },
238
+ h3: {
239
+ fontWeight: '600',
240
+ marginBottom: '1rem',
241
+ marginTop: '1rem'
242
+ },
243
+ h4: {
244
+ fontSize: '1.25rem',
245
+ fontWeight: '600',
246
+ marginBottom: '0.75rem',
247
+ marginTop: '0.75rem'
248
+ },
249
+ h5: {
250
+ fontSize: '1.125rem',
251
+ fontWeight: '500',
252
+ marginBottom: '0.5rem',
253
+ marginTop: '0.5rem'
254
+ },
255
+ p: {
256
+ textWrap: 'balance',
257
+ fontWeight: '300',
258
+ color: 'hsl(var(--foreground))',
259
+ fontSize: '0.875rem'
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ },
266
+ plugins: [
267
+ require("tailwindcss-animate"),
268
+ require("@tailwindcss/typography")
269
+ ]
270
+ } satisfies Config;