@hanzo/ui 4.6.0 → 4.7.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.
Files changed (290) hide show
  1. package/dist/index.d.mts +16 -0
  2. package/dist/index.d.ts +16 -0
  3. package/dist/index.js +9458 -0
  4. package/dist/index.mjs +9449 -0
  5. package/dist/lib/utils.d.mts +2 -0
  6. package/dist/lib/utils.d.ts +2 -0
  7. package/dist/lib/utils.js +47 -0
  8. package/dist/lib/utils.mjs +28 -0
  9. package/dist/src/utils.d.mts +7 -0
  10. package/dist/src/utils.d.ts +7 -0
  11. package/dist/src/utils.js +47 -0
  12. package/dist/src/utils.mjs +28 -0
  13. package/dist/tailwind/index.d.mts +2 -0
  14. package/dist/tailwind/index.d.ts +2 -0
  15. package/dist/tailwind/index.js +2048 -0
  16. package/dist/tailwind/index.mjs +2017 -0
  17. package/dist/types/index.d.mts +12 -0
  18. package/dist/types/index.d.ts +12 -0
  19. package/dist/types/index.js +79 -0
  20. package/dist/types/index.mjs +56 -0
  21. package/package.json +151 -25
  22. package/MCP-INSTRUCTIONS.md +0 -73
  23. package/README-MCP.md +0 -175
  24. package/assets/ai-icons.tsx +0 -207
  25. package/assets/crypto.tsx +0 -33
  26. package/assets/file-type-icon.tsx +0 -66
  27. package/assets/file.tsx +0 -45
  28. package/assets/general.tsx +0 -2318
  29. package/assets/hanzo-logo.svg +0 -9
  30. package/assets/hanzo-logo.tsx +0 -15
  31. package/assets/index.ts +0 -8
  32. package/assets/index.tsx +0 -4
  33. package/assets/llm-provider.tsx +0 -1094
  34. package/blocks/components/accordian-block.tsx +0 -48
  35. package/blocks/components/block-component-props.ts +0 -11
  36. package/blocks/components/bullet-cards-block.tsx +0 -46
  37. package/blocks/components/card-block/index.tsx +0 -171
  38. package/blocks/components/card-block/link-out-button.tsx +0 -20
  39. package/blocks/components/card-block/util.ts +0 -28
  40. package/blocks/components/carte-blanche-block/index.tsx +0 -127
  41. package/blocks/components/carte-blanche-block/variant-content-left.tsx +0 -49
  42. package/blocks/components/content.tsx +0 -70
  43. package/blocks/components/cta-block.tsx +0 -115
  44. package/blocks/components/enh-heading-block.tsx +0 -204
  45. package/blocks/components/grid-block/grid-block-mutator.ts +0 -12
  46. package/blocks/components/grid-block/index.tsx +0 -83
  47. package/blocks/components/grid-block/mutator-registry.ts +0 -10
  48. package/blocks/components/grid-block/table-borders.mutator.ts +0 -47
  49. package/blocks/components/group-block.tsx +0 -83
  50. package/blocks/components/heading-block.tsx +0 -88
  51. package/blocks/components/image-block.tsx +0 -111
  52. package/blocks/components/index.ts +0 -30
  53. package/blocks/components/screenful-block/content.tsx +0 -123
  54. package/blocks/components/screenful-block/index.tsx +0 -107
  55. package/blocks/components/screenful-block/poster-background.tsx +0 -34
  56. package/blocks/components/screenful-block/video-background.tsx +0 -45
  57. package/blocks/components/space-block.tsx +0 -66
  58. package/blocks/components/video-block.tsx +0 -138
  59. package/blocks/def/accordian-block.ts +0 -14
  60. package/blocks/def/block.ts +0 -7
  61. package/blocks/def/bullet-cards-block.ts +0 -22
  62. package/blocks/def/card-block.ts +0 -22
  63. package/blocks/def/carte-blanche-block.ts +0 -21
  64. package/blocks/def/cta-block.ts +0 -19
  65. package/blocks/def/element-block.ts +0 -11
  66. package/blocks/def/enh-heading-block.ts +0 -44
  67. package/blocks/def/grid-block.ts +0 -16
  68. package/blocks/def/group-block.ts +0 -11
  69. package/blocks/def/heading-block.ts +0 -15
  70. package/blocks/def/image-block.ts +0 -31
  71. package/blocks/def/index.ts +0 -35
  72. package/blocks/def/screenful-block.ts +0 -54
  73. package/blocks/def/space-block.ts +0 -64
  74. package/blocks/def/video-block.ts +0 -9
  75. package/blocks/index.ts +0 -2
  76. package/components/index.ts +0 -56
  77. package/dist/button.d.ts +0 -1
  78. package/dist/button.js +0 -1
  79. package/dist/hooks/index.d.ts +0 -7
  80. package/dist/hooks/index.js +0 -7
  81. package/dist/hooks/use-click-away.d.ts +0 -2
  82. package/dist/hooks/use-click-away.js +0 -23
  83. package/dist/hooks/use-combined-refs.d.ts +0 -3
  84. package/dist/hooks/use-combined-refs.js +0 -18
  85. package/dist/hooks/use-copy-clipboard.d.ts +0 -9
  86. package/dist/hooks/use-copy-clipboard.js +0 -21
  87. package/dist/hooks/use-debounce.d.ts +0 -1
  88. package/dist/hooks/use-debounce.js +0 -13
  89. package/dist/hooks/use-fill-ids.d.ts +0 -8
  90. package/dist/hooks/use-fill-ids.js +0 -20
  91. package/dist/hooks/use-map.d.ts +0 -1
  92. package/dist/hooks/use-map.js +0 -20
  93. package/dist/hooks/use-measure.d.ts +0 -8
  94. package/dist/hooks/use-measure.js +0 -25
  95. package/dist/hooks/use-reverse-video-playback.d.ts +0 -1
  96. package/dist/hooks/use-reverse-video-playback.js +0 -41
  97. package/dist/hooks/use-scroll-restoration.d.ts +0 -8
  98. package/dist/hooks/use-scroll-restoration.js +0 -36
  99. package/dist/mcp/enhanced-server.d.ts +0 -29
  100. package/dist/mcp/enhanced-server.js +0 -1128
  101. package/dist/mcp/index.d.ts +0 -28
  102. package/dist/mcp/index.js +0 -436
  103. package/dist/registry/api.d.ts +0 -37
  104. package/dist/registry/api.js +0 -129
  105. package/dist/registry/index.d.ts +0 -353
  106. package/dist/registry/index.js +0 -45
  107. package/dist/utils.d.ts +0 -1
  108. package/dist/utils.js +0 -1
  109. package/environment.d.ts +0 -6
  110. package/helpers/file.ts +0 -33
  111. package/helpers/memoization.ts +0 -40
  112. package/primitives/accordion.tsx +0 -74
  113. package/primitives/action-button.tsx +0 -42
  114. package/primitives/alert-dialog.tsx +0 -185
  115. package/primitives/alert.tsx +0 -74
  116. package/primitives/apply-typography.tsx +0 -55
  117. package/primitives/aspect-ratio.tsx +0 -5
  118. package/primitives/avatar.tsx +0 -57
  119. package/primitives/background-beams.tsx +0 -142
  120. package/primitives/badge.tsx +0 -44
  121. package/primitives/breadcrumb.tsx +0 -130
  122. package/primitives/breakpoint-indicator.tsx +0 -19
  123. package/primitives/button.tsx +0 -82
  124. package/primitives/calendar.tsx +0 -72
  125. package/primitives/card.tsx +0 -97
  126. package/primitives/carousel.tsx +0 -237
  127. package/primitives/chat/chat-input-area.tsx +0 -87
  128. package/primitives/chat/chat-input.tsx +0 -71
  129. package/primitives/chat/files-preview.tsx +0 -330
  130. package/primitives/chat/index.ts +0 -6
  131. package/primitives/chat/json-form.tsx +0 -8
  132. package/primitives/chat/message-list.tsx +0 -307
  133. package/primitives/chat/message.tsx +0 -569
  134. package/primitives/chat/sqlite-preview.tsx +0 -215
  135. package/primitives/checkbox.tsx +0 -31
  136. package/primitives/collapsible.tsx +0 -9
  137. package/primitives/combobox.tsx +0 -239
  138. package/primitives/command.tsx +0 -149
  139. package/primitives/context-menu.tsx +0 -206
  140. package/primitives/copy-to-clipboard-icon.tsx +0 -60
  141. package/primitives/dialog-video-controller.tsx +0 -38
  142. package/primitives/dialog.tsx +0 -123
  143. package/primitives/dot-pattern.tsx +0 -57
  144. package/primitives/dots-loader.tsx +0 -13
  145. package/primitives/drawer.tsx +0 -110
  146. package/primitives/dropdown-menu.tsx +0 -199
  147. package/primitives/error-message.tsx +0 -19
  148. package/primitives/file-uploader.tsx +0 -200
  149. package/primitives/form.tsx +0 -183
  150. package/primitives/hover-card.tsx +0 -28
  151. package/primitives/icons/github.tsx +0 -14
  152. package/primitives/icons/index.ts +0 -18
  153. package/primitives/icons/youtube-logo.tsx +0 -59
  154. package/primitives/index-common.ts +0 -303
  155. package/primitives/index-next.ts +0 -4
  156. package/primitives/input-otp.tsx +0 -65
  157. package/primitives/input.tsx +0 -125
  158. package/primitives/label.tsx +0 -20
  159. package/primitives/list-adaptor.ts +0 -12
  160. package/primitives/list-box.tsx +0 -74
  161. package/primitives/loading-spinner.tsx +0 -33
  162. package/primitives/markdown-preview.tsx +0 -609
  163. package/primitives/mermaid.tsx +0 -196
  164. package/primitives/navigation-menu.tsx +0 -147
  165. package/primitives/next/image.tsx +0 -90
  166. package/primitives/next/index.ts +0 -7
  167. package/primitives/next/inline-icon.tsx +0 -36
  168. package/primitives/next/link-element.tsx +0 -109
  169. package/primitives/next/mdx-link.tsx +0 -22
  170. package/primitives/next/media-stack.tsx +0 -69
  171. package/primitives/next/nav-items.tsx +0 -45
  172. package/primitives/next/youtube-embed.tsx +0 -83
  173. package/primitives/pagination.tsx +0 -117
  174. package/primitives/popover.tsx +0 -32
  175. package/primitives/pretty-json-print.tsx +0 -28
  176. package/primitives/progress.tsx +0 -26
  177. package/primitives/prompt-textarea.tsx +0 -72
  178. package/primitives/qr-code.tsx +0 -112
  179. package/primitives/radio-group.tsx +0 -42
  180. package/primitives/resizable.tsx +0 -47
  181. package/primitives/scroll-area.tsx +0 -57
  182. package/primitives/search-input.tsx +0 -66
  183. package/primitives/select.tsx +0 -122
  184. package/primitives/separator.tsx +0 -25
  185. package/primitives/sheet.tsx +0 -139
  186. package/primitives/skeleton.tsx +0 -17
  187. package/primitives/slider.tsx +0 -62
  188. package/primitives/sonner.tsx +0 -35
  189. package/primitives/step-indicator.tsx +0 -69
  190. package/primitives/stepper.tsx +0 -272
  191. package/primitives/switch.tsx +0 -26
  192. package/primitives/table.tsx +0 -105
  193. package/primitives/tabs.tsx +0 -50
  194. package/primitives/text-area.tsx +0 -26
  195. package/primitives/text-link.tsx +0 -25
  196. package/primitives/textarea.tsx +0 -61
  197. package/primitives/textfield.tsx +0 -75
  198. package/primitives/toast.tsx +0 -30
  199. package/primitives/toggle-group.tsx +0 -63
  200. package/primitives/toggle.tsx +0 -44
  201. package/primitives/tooltip.tsx +0 -47
  202. package/primitives/video-player.tsx +0 -23
  203. package/public/r/accordion.json +0 -11
  204. package/public/r/alert.json +0 -11
  205. package/public/r/avatar.json +0 -11
  206. package/public/r/badge.json +0 -11
  207. package/public/r/button.json +0 -11
  208. package/public/r/card.json +0 -11
  209. package/public/r/checkbox.json +0 -11
  210. package/public/r/default.json +0 -6
  211. package/public/r/dialog.json +0 -11
  212. package/public/r/input.json +0 -11
  213. package/public/r/label.json +0 -11
  214. package/public/r/new-york.json +0 -6
  215. package/public/r/popover.json +0 -11
  216. package/public/r/select.json +0 -11
  217. package/public/r/table.json +0 -11
  218. package/public/r/tabs.json +0 -11
  219. package/public/r/toast.json +0 -11
  220. package/registry.json +0 -184
  221. package/src/button.ts +0 -1
  222. package/src/hooks/index.ts +0 -7
  223. package/src/hooks/use-click-away.ts +0 -31
  224. package/src/hooks/use-combined-refs.ts +0 -22
  225. package/src/hooks/use-copy-clipboard.ts +0 -30
  226. package/src/hooks/use-debounce.ts +0 -17
  227. package/src/hooks/use-fill-ids.ts +0 -25
  228. package/src/hooks/use-map.ts +0 -26
  229. package/src/hooks/use-measure.ts +0 -42
  230. package/src/hooks/use-reverse-video-playback.ts +0 -43
  231. package/src/hooks/use-scroll-restoration.ts +0 -50
  232. package/src/mcp/README.md +0 -141
  233. package/src/mcp/enhanced-server.ts +0 -1208
  234. package/src/mcp/index.ts +0 -518
  235. package/src/mcp/package.json +0 -10
  236. package/src/registry/api.ts +0 -164
  237. package/src/registry/index.ts +0 -60
  238. package/src/registry/package.json +0 -10
  239. package/src/utils.ts +0 -1
  240. package/tailwind/colors.tailwind.js +0 -53
  241. package/tailwind/fontFamily.tailwind.ts +0 -7
  242. package/tailwind/fontSize.tailwind.ts +0 -13
  243. package/tailwind/index.ts +0 -7
  244. package/tailwind/safelist.tailwind.js +0 -26
  245. package/tailwind/screens.tailwind.js +0 -8
  246. package/tailwind/spacing.tailwind.js +0 -65
  247. package/tailwind/tailwind.config.hanzo-preset.d.ts +0 -5
  248. package/tailwind/tailwind.config.hanzo-preset.js +0 -915
  249. package/tailwind/tw-font-desc.ts +0 -15
  250. package/tailwind/typo-plugin/get-plugin-styles.js +0 -679
  251. package/tailwind/typo-plugin/index.d.ts +0 -9
  252. package/tailwind/typo-plugin/index.js +0 -141
  253. package/tailwind/typo-plugin/utils.js +0 -60
  254. package/tailwind/typography-test.mdx +0 -35
  255. package/tailwind/z-index.tailwind.js +0 -71
  256. package/test/test-registry.js +0 -73
  257. package/test-imports.mjs +0 -19
  258. package/tsconfig.json +0 -22
  259. package/types/animation-def.ts +0 -3
  260. package/types/breakpoints.ts +0 -11
  261. package/types/bullet-item.ts +0 -10
  262. package/types/button-def.ts +0 -39
  263. package/types/dimensions.ts +0 -8
  264. package/types/grid-def.ts +0 -56
  265. package/types/image-def.ts +0 -32
  266. package/types/index.ts +0 -29
  267. package/types/link-def.ts +0 -56
  268. package/types/media-stack-def.ts +0 -31
  269. package/types/t-shirt-size.ts +0 -5
  270. package/types/tshirt-dimensions.ts +0 -20
  271. package/types/video-def.ts +0 -25
  272. package/util/blob.ts +0 -28
  273. package/util/copy-to-clipboard.ts +0 -17
  274. package/util/create-shadow-root.ts +0 -22
  275. package/util/date.ts +0 -83
  276. package/util/debounce.ts +0 -11
  277. package/util/file.ts +0 -15
  278. package/util/format-and-abbreviate-as-currency.ts +0 -125
  279. package/util/format-text.ts +0 -33
  280. package/util/format-to-max-char.ts +0 -68
  281. package/util/index-client.ts +0 -3
  282. package/util/index.ts +0 -9
  283. package/util/number-abbreviate.ts +0 -49
  284. package/util/specifier.ts +0 -43
  285. package/util/spread-to-transform.ts +0 -24
  286. package/util/step-animation.ts +0 -90
  287. package/util/timing.ts +0 -3
  288. package/util/toasts.tsx +0 -17
  289. package/util/two-way-map.ts +0 -19
  290. package/utils.ts +0 -9
@@ -1,915 +0,0 @@
1
- import animatePlugin from 'tailwindcss-animate'
2
- import containerQueriesPlugin from '@tailwindcss/container-queries'
3
- import tailwindInteractionMediaPlugin from 'tailwindcss-interaction-media'
4
-
5
- import colors from './colors.tailwind'
6
- import safelist from './safelist.tailwind'
7
- import screens from './screens.tailwind'
8
- import spacing from './spacing.tailwind'
9
- import fontSize from './fontSize.tailwind'
10
- import fontFamily from './fontFamily.tailwind'
11
- import zIndex from './z-index.tailwind'
12
- import typographyPlugin from './typo-plugin'
13
-
14
- export default {
15
- darkMode: ["class"],
16
- content: [],
17
- safelist,
18
- plugins: [
19
- animatePlugin,
20
- typographyPlugin({ className: 'typography', base: 16 }),
21
- containerQueriesPlugin,
22
- tailwindInteractionMediaPlugin,
23
- ],
24
- theme: {
25
-
26
- accentColor: ({ theme }) => ({
27
- ...theme('colors'),
28
- auto: 'auto',
29
- }),
30
- animation: {
31
- none: 'none',
32
- spin: 'spin 1s linear infinite',
33
- ping: 'ping 1s cubic-bezier(0, 0, 0.2, 1) infinite',
34
- pulse: 'pulse 2s linear(0, 1) infinite', // cubic-bezier(0.4, 0, 0.6, 1)
35
- pulsereverse: 'pulse 2s linear(1, 0) infinite',
36
- bounce: 'bounce 1s infinite',
37
- "accordion-down": "accordion-down 0.2s ease-out",
38
- "accordion-up": "accordion-up 0.2s ease-out",
39
- "mobile-menu-open": "opacity-in 300ms ease-in",
40
- },
41
- aria: {
42
- checked: 'checked="true"',
43
- disabled: 'disabled="true"',
44
- expanded: 'expanded="true"',
45
- hidden: 'hidden="true"',
46
- pressed: 'pressed="true"',
47
- readonly: 'readonly="true"',
48
- required: 'required="true"',
49
- selected: 'selected="true"',
50
- },
51
- aspectRatio: {
52
- auto: 'auto',
53
- square: '1 / 1',
54
- video: '16 / 9',
55
- },
56
- backdropBlur: ({ theme }) => theme('blur'),
57
- backdropBrightness: ({ theme }) => theme('brightness'),
58
- backdropContrast: ({ theme }) => theme('contrast'),
59
- backdropGrayscale: ({ theme }) => theme('grayscale'),
60
- backdropHueRotate: ({ theme }) => theme('hueRotate'),
61
- backdropInvert: ({ theme }) => theme('invert'),
62
- backdropOpacity: ({ theme }) => theme('opacity'),
63
- backdropSaturate: ({ theme }) => theme('saturate'),
64
- backdropSepia: ({ theme }) => theme('sepia'),
65
- backgroundColor: ({ theme }) => theme('colors'),
66
- backgroundImage: {
67
- none: 'none',
68
- 'gradient-to-t': 'linear-gradient(to top, var(--tw-gradient-stops))',
69
- 'gradient-to-tr': 'linear-gradient(to top right, var(--tw-gradient-stops))',
70
- 'gradient-to-r': 'linear-gradient(to right, var(--tw-gradient-stops))',
71
- 'gradient-to-br': 'linear-gradient(to bottom right, var(--tw-gradient-stops))',
72
- 'gradient-to-b': 'linear-gradient(to bottom, var(--tw-gradient-stops))',
73
- 'gradient-to-bl': 'linear-gradient(to bottom left, var(--tw-gradient-stops))',
74
- 'gradient-to-l': 'linear-gradient(to left, var(--tw-gradient-stops))',
75
- 'gradient-to-tl': 'linear-gradient(to top left, var(--tw-gradient-stops))',
76
- },
77
- backgroundOpacity: ({ theme }) => theme('opacity'),
78
- backgroundPosition: {
79
- bottom: 'bottom',
80
- center: 'center',
81
- left: 'left',
82
- 'left-bottom': 'left bottom',
83
- 'left-top': 'left top',
84
- right: 'right',
85
- 'right-bottom': 'right bottom',
86
- 'right-top': 'right top',
87
- top: 'top',
88
- },
89
- backgroundSize: {
90
- auto: 'auto',
91
- cover: 'cover',
92
- contain: 'contain',
93
- },
94
- blur: {
95
- 0: '0',
96
- none: '0',
97
- sm: '4px',
98
- DEFAULT: '8px',
99
- md: '12px',
100
- lg: '16px',
101
- xl: '24px',
102
- '2xl': '40px',
103
- '3xl': '64px',
104
- },
105
- borderColor: ({ theme }) => ({
106
- ...theme('colors'),
107
- DEFAULT: theme('colors.muted.3'),
108
- }),
109
- borderOpacity: ({ theme }) => theme('opacity'),
110
- borderRadius: {
111
- none: '0px',
112
- sm: '0.25rem',
113
- DEFAULT: '0.5rem',
114
- md: '0.5rem',
115
- lg: '0.75rem',
116
- xl: '1rem',
117
- '2xl': '1.5rem',
118
- '3xl': '2rem',
119
- full: '9999px',
120
- },
121
- borderSpacing: spacing,
122
- borderWidth: {
123
- DEFAULT: '1px',
124
- 0: '0px',
125
- 2: '2px',
126
- 4: '4px',
127
- 8: '8px',
128
- },
129
- boxShadow: {
130
- sm: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
131
- DEFAULT: '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
132
- md: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
133
- lg: '0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)',
134
- xl: '0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)',
135
- '2xl': '0 25px 50px -12px rgb(0 0 0 / 0.25)',
136
- inner: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.05)',
137
- none: 'none',
138
- },
139
- boxShadowColor: ({ theme }) => theme('colors'),
140
- brightness: {
141
- 0: '0',
142
- 50: '.5',
143
- 75: '.75',
144
- 90: '.9',
145
- 95: '.95',
146
- 100: '1',
147
- 105: '1.05',
148
- 110: '1.1',
149
- 125: '1.25',
150
- 150: '1.5',
151
- 200: '2',
152
- },
153
- caretColor: ({ theme }) => theme('colors'),
154
- colors,
155
- columns: {
156
- auto: 'auto',
157
- 1: '1',
158
- 2: '2',
159
- 3: '3',
160
- 4: '4',
161
- 5: '5',
162
- 6: '6',
163
- 7: '7',
164
- 8: '8',
165
- 9: '9',
166
- 10: '10',
167
- 11: '11',
168
- 12: '12',
169
- '3xs': '16rem',
170
- '2xs': '18rem',
171
- xs: '20rem',
172
- sm: '24rem',
173
- md: '28rem',
174
- lg: '32rem',
175
- xl: '36rem',
176
- '2xl': '42rem',
177
- '3xl': '48rem',
178
- '4xl': '56rem',
179
- '5xl': '64rem',
180
- '6xl': '72rem',
181
- '7xl': '80rem',
182
- },
183
- container: {
184
- center: true,
185
- padding: "2rem",
186
- },
187
- content: {
188
- none: 'none',
189
- },
190
- contrast: {
191
- 0: '0',
192
- 50: '.5',
193
- 75: '.75',
194
- 100: '1',
195
- 125: '1.25',
196
- 150: '1.5',
197
- 200: '2',
198
- },
199
- cursor: {
200
- auto: 'auto',
201
- default: 'default',
202
- pointer: 'pointer',
203
- wait: 'wait',
204
- text: 'text',
205
- move: 'move',
206
- help: 'help',
207
- 'not-allowed': 'not-allowed',
208
- none: 'none',
209
- 'context-menu': 'context-menu',
210
- progress: 'progress',
211
- cell: 'cell',
212
- crosshair: 'crosshair',
213
- 'vertical-text': 'vertical-text',
214
- alias: 'alias',
215
- copy: 'copy',
216
- 'no-drop': 'no-drop',
217
- grab: 'grab',
218
- grabbing: 'grabbing',
219
- 'all-scroll': 'all-scroll',
220
- 'col-resize': 'col-resize',
221
- 'row-resize': 'row-resize',
222
- 'n-resize': 'n-resize',
223
- 'e-resize': 'e-resize',
224
- 's-resize': 's-resize',
225
- 'w-resize': 'w-resize',
226
- 'ne-resize': 'ne-resize',
227
- 'nw-resize': 'nw-resize',
228
- 'se-resize': 'se-resize',
229
- 'sw-resize': 'sw-resize',
230
- 'ew-resize': 'ew-resize',
231
- 'ns-resize': 'ns-resize',
232
- 'nesw-resize': 'nesw-resize',
233
- 'nwse-resize': 'nwse-resize',
234
- 'zoom-in': 'zoom-in',
235
- 'zoom-out': 'zoom-out',
236
- },
237
- divideColor: ({ theme }) => theme('borderColor'),
238
- divideOpacity: ({ theme }) => theme('borderOpacity'),
239
- divideWidth: ({ theme }) => theme('borderWidth'),
240
- dropShadow: {
241
- sm: '0 1px 1px rgb(0 0 0 / 0.05)',
242
- DEFAULT: ['0 1px 2px rgb(0 0 0 / 0.1)', '0 1px 1px rgb(0 0 0 / 0.06)'],
243
- md: ['0 4px 3px rgb(0 0 0 / 0.07)', '0 2px 2px rgb(0 0 0 / 0.06)'],
244
- lg: ['0 10px 8px rgb(0 0 0 / 0.04)', '0 4px 3px rgb(0 0 0 / 0.1)'],
245
- xl: ['0 20px 13px rgb(0 0 0 / 0.03)', '0 8px 5px rgb(0 0 0 / 0.08)'],
246
- '2xl': '0 25px 25px rgb(0 0 0 / 0.15)',
247
- none: '0 0 #0000',
248
- },
249
- fill: ({ theme }) => ({
250
- none: 'none',
251
- ...theme('colors'),
252
- }),
253
- flex: {
254
- 1: '1 1 0%',
255
- auto: '1 1 auto',
256
- initial: '0 1 auto',
257
- none: 'none',
258
- },
259
- flexBasis: {
260
- auto: 'auto',
261
- ...spacing,
262
- '1/2': '50%',
263
- '1/3': '33.333333%',
264
- '2/3': '66.666667%',
265
- '1/4': '25%',
266
- '2/4': '50%',
267
- '3/4': '75%',
268
- '1/5': '20%',
269
- '2/5': '40%',
270
- '3/5': '60%',
271
- '4/5': '80%',
272
- '1/6': '16.666667%',
273
- '2/6': '33.333333%',
274
- '3/6': '50%',
275
- '4/6': '66.666667%',
276
- '5/6': '83.333333%',
277
- '1/12': '8.333333%',
278
- '2/12': '16.666667%',
279
- '3/12': '25%',
280
- '4/12': '33.333333%',
281
- '5/12': '41.666667%',
282
- '6/12': '50%',
283
- '7/12': '58.333333%',
284
- '8/12': '66.666667%',
285
- '9/12': '75%',
286
- '10/12': '83.333333%',
287
- '11/12': '91.666667%',
288
- full: '100%',
289
- },
290
- flexGrow: {
291
- 0: '0',
292
- DEFAULT: '1',
293
- },
294
- flexShrink: {
295
- 0: '0',
296
- DEFAULT: '1',
297
- },
298
- fontFamily,
299
- fontSize,
300
- fontWeight: {
301
- thin: '100',
302
- extralight: '200',
303
- light: '300',
304
- normal: '400',
305
- medium: '500',
306
- semibold: '600',
307
- bold: '700',
308
- extrabold: '800',
309
- black: '900',
310
- },
311
- gap: spacing,
312
- gradientColorStops: ({ theme }) => theme('colors'),
313
- gradientColorStopPositions: {
314
- '0%': '0%',
315
- '5%': '5%',
316
- '10%': '10%',
317
- '15%': '15%',
318
- '20%': '20%',
319
- '25%': '25%',
320
- '30%': '30%',
321
- '35%': '35%',
322
- '40%': '40%',
323
- '45%': '45%',
324
- '50%': '50%',
325
- '55%': '55%',
326
- '60%': '60%',
327
- '65%': '65%',
328
- '70%': '70%',
329
- '75%': '75%',
330
- '80%': '80%',
331
- '85%': '85%',
332
- '90%': '90%',
333
- '95%': '95%',
334
- '100%': '100%',
335
- },
336
- grayscale: {
337
- 0: '0',
338
- DEFAULT: '100%',
339
- },
340
- gridAutoColumns: {
341
- auto: 'auto',
342
- min: 'min-content',
343
- max: 'max-content',
344
- fr: 'minmax(0, 1fr)',
345
- },
346
- gridAutoRows: {
347
- auto: 'auto',
348
- min: 'min-content',
349
- max: 'max-content',
350
- fr: 'minmax(0, 1fr)',
351
- },
352
- gridColumn: {
353
- auto: 'auto',
354
- 'span-1': 'span 1 / span 1',
355
- 'span-2': 'span 2 / span 2',
356
- 'span-3': 'span 3 / span 3',
357
- 'span-4': 'span 4 / span 4',
358
- 'span-5': 'span 5 / span 5',
359
- 'span-6': 'span 6 / span 6',
360
- 'span-7': 'span 7 / span 7',
361
- 'span-8': 'span 8 / span 8',
362
- 'span-9': 'span 9 / span 9',
363
- 'span-10': 'span 10 / span 10',
364
- 'span-11': 'span 11 / span 11',
365
- 'span-12': 'span 12 / span 12',
366
- 'span-full': '1 / -1',
367
- },
368
- gridColumnEnd: {
369
- auto: 'auto',
370
- 1: '1',
371
- 2: '2',
372
- 3: '3',
373
- 4: '4',
374
- 5: '5',
375
- 6: '6',
376
- 7: '7',
377
- 8: '8',
378
- 9: '9',
379
- 10: '10',
380
- 11: '11',
381
- 12: '12',
382
- 13: '13',
383
- },
384
- gridColumnStart: {
385
- auto: 'auto',
386
- 1: '1',
387
- 2: '2',
388
- 3: '3',
389
- 4: '4',
390
- 5: '5',
391
- 6: '6',
392
- 7: '7',
393
- 8: '8',
394
- 9: '9',
395
- 10: '10',
396
- 11: '11',
397
- 12: '12',
398
- 13: '13',
399
- },
400
- gridRow: {
401
- auto: 'auto',
402
- 'span-1': 'span 1 / span 1',
403
- 'span-2': 'span 2 / span 2',
404
- 'span-3': 'span 3 / span 3',
405
- 'span-4': 'span 4 / span 4',
406
- 'span-5': 'span 5 / span 5',
407
- 'span-6': 'span 6 / span 6',
408
- 'span-full': '1 / -1',
409
- },
410
- gridRowEnd: {
411
- auto: 'auto',
412
- 1: '1',
413
- 2: '2',
414
- 3: '3',
415
- 4: '4',
416
- 5: '5',
417
- 6: '6',
418
- 7: '7',
419
- },
420
- gridRowStart: {
421
- auto: 'auto',
422
- 1: '1',
423
- 2: '2',
424
- 3: '3',
425
- 4: '4',
426
- 5: '5',
427
- 6: '6',
428
- 7: '7',
429
- },
430
- gridTemplateColumns: {
431
- none: 'none',
432
- 1: 'repeat(1, minmax(0, 1fr))',
433
- 2: 'repeat(2, minmax(0, 1fr))',
434
- 3: 'repeat(3, minmax(0, 1fr))',
435
- 4: 'repeat(4, minmax(0, 1fr))',
436
- 5: 'repeat(5, minmax(0, 1fr))',
437
- 6: 'repeat(6, minmax(0, 1fr))',
438
- 7: 'repeat(7, minmax(0, 1fr))',
439
- 8: 'repeat(8, minmax(0, 1fr))',
440
- 9: 'repeat(9, minmax(0, 1fr))',
441
- 10: 'repeat(10, minmax(0, 1fr))',
442
- 11: 'repeat(11, minmax(0, 1fr))',
443
- 12: 'repeat(12, minmax(0, 1fr))',
444
- },
445
- gridTemplateRows: {
446
- none: 'none',
447
- 1: 'repeat(1, minmax(0, 1fr))',
448
- 2: 'repeat(2, minmax(0, 1fr))',
449
- 3: 'repeat(3, minmax(0, 1fr))',
450
- 4: 'repeat(4, minmax(0, 1fr))',
451
- 5: 'repeat(5, minmax(0, 1fr))',
452
- 6: 'repeat(6, minmax(0, 1fr))',
453
- },
454
- height: {
455
- auto: 'auto',
456
- ...spacing,
457
- '1/2': '50%',
458
- '1/3': '33.333333%',
459
- '2/3': '66.666667%',
460
- '1/4': '25%',
461
- '2/4': '50%',
462
- '3/4': '75%',
463
- '1/5': '20%',
464
- '2/5': '40%',
465
- '3/5': '60%',
466
- '4/5': '80%',
467
- '1/6': '16.666667%',
468
- '2/6': '33.333333%',
469
- '3/6': '50%',
470
- '4/6': '66.666667%',
471
- '5/6': '83.333333%',
472
- full: '100%',
473
- screen: '100vh',
474
- min: 'min-content',
475
- max: 'max-content',
476
- fit: 'fit-content',
477
- },
478
- hueRotate: {
479
- 0: '0deg',
480
- 15: '15deg',
481
- 30: '30deg',
482
- 60: '60deg',
483
- 90: '90deg',
484
- 180: '180deg',
485
- },
486
- inset: {
487
- auto: 'auto',
488
- ...spacing,
489
- '1/2': '50%',
490
- '1/3': '33.333333%',
491
- '2/3': '66.666667%',
492
- '1/4': '25%',
493
- '2/4': '50%',
494
- '3/4': '75%',
495
- full: '100%',
496
- },
497
- invert: {
498
- 0: '0',
499
- DEFAULT: '100%',
500
- },
501
- keyframes: {
502
- spin: {
503
- to: {
504
- transform: 'rotate(360deg)',
505
- },
506
- },
507
- ping: {
508
- '75%, 100%': {
509
- transform: 'scale(2)',
510
- opacity: '0',
511
- },
512
- },
513
- pulse: {
514
- '50%': {
515
- opacity: '.5',
516
- },
517
- },
518
- bounce: {
519
- '0%, 100%': {
520
- transform: 'translateY(-25%)',
521
- animationTimingFunction: 'cubic-bezier(0.8,0,1,1)',
522
- },
523
- '50%': {
524
- transform: 'none',
525
- animationTimingFunction: 'cubic-bezier(0,0,0.2,1)',
526
- },
527
- },
528
- "accordion-down": {
529
- from: { height: 0 },
530
- to: { height: "var(--radix-accordion-content-height)" },
531
- },
532
- "accordion-up": {
533
- from: { height: "var(--radix-accordion-content-height)" },
534
- to: { height: 0 },
535
- },
536
- "opacity-in": {
537
- from: { opacity: '0' },
538
- to: { opacity: '1' }
539
- },
540
- },
541
- letterSpacing: {
542
- tighter: '-0.05em',
543
- tight: '-0.025em',
544
- normal: '0em',
545
- wide: '0.025em',
546
- wider: '0.05em',
547
- widest: '0.1em',
548
- },
549
- lineHeight: {
550
- none: '1',
551
- tight: '1.25',
552
- snug: '1.375',
553
- normal: '1.5',
554
- relaxed: '1.625',
555
- loose: '2',
556
- 3: '.75rem',
557
- 4: '1rem',
558
- 5: '1.25rem',
559
- 6: '1.5rem',
560
- 7: '1.75rem',
561
- 8: '2rem',
562
- 9: '2.25rem',
563
- 10: '2.5rem',
564
- },
565
- listStyleType: {
566
- none: 'none',
567
- disc: 'disc',
568
- decimal: 'decimal',
569
- },
570
- listStyleImage: {
571
- none: 'none',
572
- },
573
- margin: {
574
- auto: 'auto',
575
- ...spacing,
576
- },
577
- lineClamp: {
578
- 1: '1',
579
- 2: '2',
580
- 3: '3',
581
- 4: '4',
582
- 5: '5',
583
- 6: '6',
584
- },
585
- maxHeight: {
586
- ...spacing,
587
- none: 'none',
588
- full: '100%',
589
- screen: '100vh',
590
- min: 'min-content',
591
- max: 'max-content',
592
- fit: 'fit-content',
593
- },
594
- maxWidth: ({ theme, breakpoints }) => ({
595
- ...spacing,
596
- none: 'none',
597
- 0: '0rem',
598
- xs: '20rem',
599
- sm: '24rem',
600
- md: '28rem',
601
- lg: '32rem',
602
- xl: '36rem',
603
- '2xl': '42rem',
604
- '3xl': '48rem',
605
- '4xl': '56rem',
606
- '5xl': '64rem',
607
- '6xl': '72rem',
608
- '7xl': '80rem',
609
- full: '100%',
610
- min: 'min-content',
611
- max: 'max-content',
612
- fit: 'fit-content',
613
- prose: '65ch',
614
- ...breakpoints(theme('screens')),
615
- }),
616
- minHeight: {
617
- ...spacing,
618
- 0: '0px',
619
- full: '100%',
620
- screen: '100vh',
621
- min: 'min-content',
622
- max: 'max-content',
623
- fit: 'fit-content',
624
- },
625
- minWidth: ({ theme, breakpoints }) => ({
626
- ...spacing,
627
- 0: '0px',
628
- full: '100%',
629
- min: 'min-content',
630
- max: 'max-content',
631
- fit: 'fit-content',
632
- ...breakpoints(theme('screens')),
633
- }),
634
- objectPosition: {
635
- bottom: 'bottom',
636
- center: 'center',
637
- left: 'left',
638
- 'left-bottom': 'left bottom',
639
- 'left-top': 'left top',
640
- right: 'right',
641
- 'right-bottom': 'right bottom',
642
- 'right-top': 'right top',
643
- top: 'top',
644
- },
645
- opacity: {
646
- 0: '0',
647
- 5: '0.05',
648
- 10: '0.1',
649
- 20: '0.2',
650
- 25: '0.25',
651
- 30: '0.3',
652
- 35: '0.35',
653
- 40: '0.4',
654
- 45: '0.45',
655
- 50: '0.5',
656
- 55: '0.55',
657
- 60: '0.6',
658
- 65: '0.65',
659
- 70: '0.7',
660
- 75: '0.75',
661
- 80: '0.8',
662
- 85: '0.85',
663
- 90: '0.9',
664
- 95: '0.95',
665
- 100: '1',
666
- },
667
- order: {
668
- first: '-9999',
669
- last: '9999',
670
- none: '0',
671
- 1: '1',
672
- 2: '2',
673
- 3: '3',
674
- 4: '4',
675
- 5: '5',
676
- 6: '6',
677
- 7: '7',
678
- 8: '8',
679
- 9: '9',
680
- 10: '10',
681
- 11: '11',
682
- 12: '12',
683
- },
684
- outlineColor: ({ theme }) => theme('colors'),
685
- outlineOffset: {
686
- 0: '0px',
687
- 1: '1px',
688
- 2: '2px',
689
- 4: '4px',
690
- 8: '8px',
691
- },
692
- outlineWidth: {
693
- 0: '0px',
694
- 1: '1px',
695
- 2: '2px',
696
- 4: '4px',
697
- 8: '8px',
698
- },
699
- padding: spacing,
700
- placeholderColor: ({ theme }) => theme('colors'),
701
- placeholderOpacity: ({ theme }) => theme('opacity'),
702
- ringColor: ({ theme }) => ({
703
- DEFAULT: theme('colors.blue.500', '#3b82f6'),
704
- ...theme('colors'),
705
- }),
706
- ringOffsetColor: ({ theme }) => theme('colors'),
707
- ringOffsetWidth: {
708
- 0: '0px',
709
- 1: '1px',
710
- 2: '2px',
711
- 4: '4px',
712
- 8: '8px',
713
- },
714
- ringOpacity: ({ theme }) => ({
715
- DEFAULT: '0.5',
716
- ...theme('opacity'),
717
- }),
718
- ringWidth: {
719
- DEFAULT: '3px',
720
- 0: '0px',
721
- 1: '1px',
722
- 2: '2px',
723
- 4: '4px',
724
- 8: '8px',
725
- },
726
- rotate: {
727
- 0: '0deg',
728
- 1: '1deg',
729
- 2: '2deg',
730
- 3: '3deg',
731
- 6: '6deg',
732
- 12: '12deg',
733
- 45: '45deg',
734
- 90: '90deg',
735
- 180: '180deg',
736
- },
737
- saturate: {
738
- 0: '0',
739
- 50: '.5',
740
- 100: '1',
741
- 150: '1.5',
742
- 200: '2',
743
- },
744
- scale: {
745
- 0: '0',
746
- 50: '.5',
747
- 75: '.75',
748
- 90: '.9',
749
- 95: '.95',
750
- 100: '1',
751
- 105: '1.05',
752
- 110: '1.1',
753
- 125: '1.25',
754
- 150: '1.5',
755
- },
756
- screens,
757
- scrollMargin: spacing,
758
- scrollPadding: spacing,
759
- sepia: {
760
- 0: '0',
761
- DEFAULT: '100%',
762
- },
763
- skew: {
764
- 0: '0deg',
765
- 1: '1deg',
766
- 2: '2deg',
767
- 3: '3deg',
768
- 6: '6deg',
769
- 12: '12deg',
770
- },
771
- space: spacing,
772
- spacing,
773
- stroke: ({ theme }) => ({
774
- none: 'none',
775
- ...theme('colors'),
776
- }),
777
- strokeWidth: {
778
- 0: '0',
779
- 1: '1',
780
- 2: '2',
781
- },
782
- supports: {},
783
- data: {
784
- on: 'state~="on"',
785
- off: 'state~="off"',
786
- },
787
- textColor: ({ theme }) => theme('colors'),
788
- textDecorationColor: ({ theme }) => theme('colors'),
789
- textDecorationThickness: {
790
- auto: 'auto',
791
- 'from-font': 'from-font',
792
- 0: '0px',
793
- 1: '1px',
794
- 2: '2px',
795
- 4: '4px',
796
- 8: '8px',
797
- },
798
- textIndent: spacing,
799
- textOpacity: ({ theme }) => theme('opacity'),
800
- textUnderlineOffset: {
801
- auto: 'auto',
802
- 0: '0px',
803
- 1: '1px',
804
- 2: '2px',
805
- 4: '4px',
806
- 8: '8px',
807
- },
808
- transformOrigin: {
809
- center: 'center',
810
- top: 'top',
811
- 'top-right': 'top right',
812
- right: 'right',
813
- 'bottom-right': 'bottom right',
814
- bottom: 'bottom',
815
- 'bottom-left': 'bottom left',
816
- left: 'left',
817
- 'top-left': 'top left',
818
- },
819
- transitionDelay: {
820
- 0: '0s',
821
- 75: '75ms',
822
- 100: '100ms',
823
- 150: '150ms',
824
- 200: '200ms',
825
- 300: '300ms',
826
- 500: '500ms',
827
- 700: '700ms',
828
- 1000: '1000ms',
829
- },
830
- transitionDuration: {
831
- DEFAULT: '150ms',
832
- 0: '0s',
833
- 75: '75ms',
834
- 100: '100ms',
835
- 150: '150ms',
836
- 200: '200ms',
837
- 300: '300ms',
838
- 500: '500ms',
839
- 700: '700ms',
840
- 1000: '1000ms',
841
- },
842
- transitionProperty: {
843
- none: 'none',
844
- all: 'all',
845
- DEFAULT:
846
- 'color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter',
847
- colors: 'color, background-color, border-color, text-decoration-color, fill, stroke',
848
- opacity: 'opacity',
849
- shadow: 'box-shadow',
850
- transform: 'transform',
851
- height: 'height',
852
- spacing: 'margin, padding',
853
- },
854
- transitionTimingFunction: {
855
- DEFAULT: 'cubic-bezier(0.4, 0, 0.2, 1)',
856
- linear: 'linear',
857
- in: 'cubic-bezier(0.4, 0, 1, 1)',
858
- out: 'cubic-bezier(0, 0, 0.2, 1)',
859
- 'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
860
- },
861
- translate: {
862
- ...spacing,
863
- '1/2': '50%',
864
- '1/3': '33.333333%',
865
- '2/3': '66.666667%',
866
- '1/4': '25%',
867
- '2/4': '50%',
868
- '3/4': '75%',
869
- full: '100%',
870
- },
871
- width: ({ theme, breakpoints }) => ({
872
- auto: 'auto',
873
- ...spacing,
874
- '1/2': '50%',
875
- '1/3': '33.333333%',
876
- '2/3': '66.666667%',
877
- '1/4': '25%',
878
- '2/4': '50%',
879
- '3/4': '75%',
880
- '1/5': '20%',
881
- '2/5': '40%',
882
- '3/5': '60%',
883
- '4/5': '80%',
884
- '1/6': '16.666667%',
885
- '2/6': '33.333333%',
886
- '3/6': '50%',
887
- '4/6': '66.666667%',
888
- '5/6': '83.333333%',
889
- '1/12': '8.333333%',
890
- '2/12': '16.666667%',
891
- '3/12': '25%',
892
- '4/12': '33.333333%',
893
- '5/12': '41.666667%',
894
- '6/12': '50%',
895
- '7/12': '58.333333%',
896
- '8/12': '66.666667%',
897
- '9/12': '75%',
898
- '10/12': '83.333333%',
899
- '11/12': '91.666667%',
900
- full: '100%',
901
- screen: '100vw',
902
- min: 'min-content',
903
- max: 'max-content',
904
- fit: 'fit-content',
905
- ...breakpoints(theme('screens')),
906
- }),
907
- willChange: {
908
- auto: 'auto',
909
- scroll: 'scroll-position',
910
- contents: 'contents',
911
- transform: 'transform',
912
- },
913
- zIndex,
914
- },
915
- }