@betterstart/cli 0.1.3 → 0.1.4

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 (234) hide show
  1. package/README.md +133 -0
  2. package/dist/cli.d.ts +1 -9
  3. package/dist/cli.js +13484 -367
  4. package/dist/cli.js.map +1 -1
  5. package/dist/index.d.ts +24 -266
  6. package/dist/index.js +4 -11378
  7. package/dist/index.js.map +1 -1
  8. package/package.json +29 -42
  9. package/templates/schema.json +959 -0
  10. package/templates/tiptap/hooks/use-composed-ref.ts +43 -0
  11. package/templates/tiptap/hooks/use-cursor-visibility.ts +68 -0
  12. package/templates/tiptap/hooks/use-element-rect.ts +166 -0
  13. package/templates/tiptap/hooks/use-is-breakpoint.ts +32 -0
  14. package/templates/tiptap/hooks/use-menu-navigation.ts +182 -0
  15. package/templates/tiptap/hooks/use-scrolling.ts +64 -0
  16. package/templates/tiptap/hooks/use-throttled-callback.ts +146 -0
  17. package/templates/tiptap/hooks/use-tiptap-editor.ts +46 -0
  18. package/templates/tiptap/hooks/use-unmount.ts +21 -0
  19. package/templates/tiptap/hooks/use-window-size.ts +87 -0
  20. package/templates/tiptap/lib/tiptap-utils.ts +587 -0
  21. package/templates/tiptap/styles/_keyframe-animations.scss +91 -0
  22. package/templates/tiptap/styles/_variables.scss +296 -0
  23. package/templates/tiptap/tiptap-extension/node-background-extension.ts +138 -0
  24. package/templates/tiptap/tiptap-icons/align-center-icon.tsx +38 -0
  25. package/templates/tiptap/tiptap-icons/align-justify-icon.tsx +38 -0
  26. package/templates/tiptap/tiptap-icons/align-left-icon.tsx +38 -0
  27. package/templates/tiptap/tiptap-icons/align-right-icon.tsx +38 -0
  28. package/templates/tiptap/tiptap-icons/arrow-left-icon.tsx +24 -0
  29. package/templates/tiptap/tiptap-icons/ban-icon.tsx +26 -0
  30. package/templates/tiptap/tiptap-icons/blockquote-icon.tsx +44 -0
  31. package/templates/tiptap/tiptap-icons/bold-icon.tsx +26 -0
  32. package/templates/tiptap/tiptap-icons/chevron-down-icon.tsx +26 -0
  33. package/templates/tiptap/tiptap-icons/close-icon.tsx +24 -0
  34. package/templates/tiptap/tiptap-icons/code-block-icon.tsx +38 -0
  35. package/templates/tiptap/tiptap-icons/code2-icon.tsx +32 -0
  36. package/templates/tiptap/tiptap-icons/corner-down-left-icon.tsx +26 -0
  37. package/templates/tiptap/tiptap-icons/external-link-icon.tsx +28 -0
  38. package/templates/tiptap/tiptap-icons/heading-five-icon.tsx +28 -0
  39. package/templates/tiptap/tiptap-icons/heading-four-icon.tsx +28 -0
  40. package/templates/tiptap/tiptap-icons/heading-icon.tsx +24 -0
  41. package/templates/tiptap/tiptap-icons/heading-one-icon.tsx +28 -0
  42. package/templates/tiptap/tiptap-icons/heading-six-icon.tsx +30 -0
  43. package/templates/tiptap/tiptap-icons/heading-three-icon.tsx +36 -0
  44. package/templates/tiptap/tiptap-icons/heading-two-icon.tsx +28 -0
  45. package/templates/tiptap/tiptap-icons/highlighter-icon.tsx +26 -0
  46. package/templates/tiptap/tiptap-icons/image-plus-icon.tsx +26 -0
  47. package/templates/tiptap/tiptap-icons/italic-icon.tsx +24 -0
  48. package/templates/tiptap/tiptap-icons/link-icon.tsx +28 -0
  49. package/templates/tiptap/tiptap-icons/list-icon.tsx +56 -0
  50. package/templates/tiptap/tiptap-icons/list-ordered-icon.tsx +56 -0
  51. package/templates/tiptap/tiptap-icons/list-todo-icon.tsx +50 -0
  52. package/templates/tiptap/tiptap-icons/moon-star-icon.tsx +30 -0
  53. package/templates/tiptap/tiptap-icons/redo2-icon.tsx +26 -0
  54. package/templates/tiptap/tiptap-icons/strike-icon.tsx +28 -0
  55. package/templates/tiptap/tiptap-icons/subscript-icon.tsx +38 -0
  56. package/templates/tiptap/tiptap-icons/sun-icon.tsx +58 -0
  57. package/templates/tiptap/tiptap-icons/superscript-icon.tsx +38 -0
  58. package/templates/tiptap/tiptap-icons/trash-icon.tsx +26 -0
  59. package/templates/tiptap/tiptap-icons/underline-icon.tsx +26 -0
  60. package/templates/tiptap/tiptap-icons/undo2-icon.tsx +26 -0
  61. package/templates/tiptap/tiptap-node/blockquote-node/blockquote-node.scss +37 -0
  62. package/templates/tiptap/tiptap-node/code-block-node/code-block-node.scss +54 -0
  63. package/templates/tiptap/tiptap-node/heading-node/heading-node.scss +45 -0
  64. package/templates/tiptap/tiptap-node/horizontal-rule-node/horizontal-rule-node-extension.ts +10 -0
  65. package/templates/tiptap/tiptap-node/horizontal-rule-node/horizontal-rule-node.scss +25 -0
  66. package/templates/tiptap/tiptap-node/image-node/image-node.scss +35 -0
  67. package/templates/tiptap/tiptap-node/image-upload-node/image-upload-node-extension.ts +154 -0
  68. package/templates/tiptap/tiptap-node/image-upload-node/image-upload-node.scss +249 -0
  69. package/templates/tiptap/tiptap-node/image-upload-node/image-upload-node.tsx +522 -0
  70. package/templates/tiptap/tiptap-node/image-upload-node/index.tsx +1 -0
  71. package/templates/tiptap/tiptap-node/list-node/list-node.scss +208 -0
  72. package/templates/tiptap/tiptap-node/paragraph-node/paragraph-node.scss +273 -0
  73. package/templates/tiptap/tiptap-ui/blockquote-button/blockquote-button.tsx +104 -0
  74. package/templates/tiptap/tiptap-ui/blockquote-button/index.tsx +2 -0
  75. package/templates/tiptap/tiptap-ui/blockquote-button/use-blockquote.ts +252 -0
  76. package/templates/tiptap/tiptap-ui/code-block-button/code-block-button.tsx +106 -0
  77. package/templates/tiptap/tiptap-ui/code-block-button/index.tsx +2 -0
  78. package/templates/tiptap/tiptap-ui/code-block-button/use-code-block.ts +261 -0
  79. package/templates/tiptap/tiptap-ui/color-highlight-button/color-highlight-button.scss +49 -0
  80. package/templates/tiptap/tiptap-ui/color-highlight-button/color-highlight-button.tsx +153 -0
  81. package/templates/tiptap/tiptap-ui/color-highlight-button/index.tsx +2 -0
  82. package/templates/tiptap/tiptap-ui/color-highlight-button/use-color-highlight.ts +345 -0
  83. package/templates/tiptap/tiptap-ui/color-highlight-popover/color-highlight-popover.tsx +207 -0
  84. package/templates/tiptap/tiptap-ui/color-highlight-popover/index.tsx +1 -0
  85. package/templates/tiptap/tiptap-ui/heading-button/heading-button.tsx +107 -0
  86. package/templates/tiptap/tiptap-ui/heading-button/index.tsx +2 -0
  87. package/templates/tiptap/tiptap-ui/heading-button/use-heading.ts +314 -0
  88. package/templates/tiptap/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.tsx +131 -0
  89. package/templates/tiptap/tiptap-ui/heading-dropdown-menu/index.tsx +2 -0
  90. package/templates/tiptap/tiptap-ui/heading-dropdown-menu/use-heading-dropdown-menu.ts +130 -0
  91. package/templates/tiptap/tiptap-ui/image-upload-button/image-upload-button.tsx +114 -0
  92. package/templates/tiptap/tiptap-ui/image-upload-button/index.tsx +2 -0
  93. package/templates/tiptap/tiptap-ui/image-upload-button/use-image-upload.ts +192 -0
  94. package/templates/tiptap/tiptap-ui/link-popover/index.tsx +2 -0
  95. package/templates/tiptap/tiptap-ui/link-popover/link-popover.tsx +285 -0
  96. package/templates/tiptap/tiptap-ui/link-popover/use-link-popover.ts +286 -0
  97. package/templates/tiptap/tiptap-ui/list-button/index.tsx +2 -0
  98. package/templates/tiptap/tiptap-ui/list-button/list-button.tsx +108 -0
  99. package/templates/tiptap/tiptap-ui/list-button/use-list.ts +329 -0
  100. package/templates/tiptap/tiptap-ui/list-dropdown-menu/index.tsx +1 -0
  101. package/templates/tiptap/tiptap-ui/list-dropdown-menu/list-dropdown-menu.tsx +123 -0
  102. package/templates/tiptap/tiptap-ui/list-dropdown-menu/use-list-dropdown-menu.ts +203 -0
  103. package/templates/tiptap/tiptap-ui/mark-button/index.tsx +2 -0
  104. package/templates/tiptap/tiptap-ui/mark-button/mark-button.tsx +107 -0
  105. package/templates/tiptap/tiptap-ui/mark-button/use-mark.ts +206 -0
  106. package/templates/tiptap/tiptap-ui/text-align-button/index.tsx +2 -0
  107. package/templates/tiptap/tiptap-ui/text-align-button/text-align-button.tsx +118 -0
  108. package/templates/tiptap/tiptap-ui/text-align-button/use-text-align.ts +212 -0
  109. package/templates/tiptap/tiptap-ui/undo-redo-button/index.tsx +2 -0
  110. package/templates/tiptap/tiptap-ui/undo-redo-button/undo-redo-button.tsx +105 -0
  111. package/templates/tiptap/tiptap-ui/undo-redo-button/use-undo-redo.ts +173 -0
  112. package/templates/tiptap/tiptap-ui-primitive/badge/badge-colors.scss +395 -0
  113. package/templates/tiptap/tiptap-ui-primitive/badge/badge-group.scss +16 -0
  114. package/templates/tiptap/tiptap-ui-primitive/badge/badge.scss +99 -0
  115. package/templates/tiptap/tiptap-ui-primitive/badge/badge.tsx +46 -0
  116. package/templates/tiptap/tiptap-ui-primitive/badge/index.tsx +1 -0
  117. package/templates/tiptap/tiptap-ui-primitive/button/button-colors.scss +429 -0
  118. package/templates/tiptap/tiptap-ui-primitive/button/button-group.scss +22 -0
  119. package/templates/tiptap/tiptap-ui-primitive/button/button.scss +314 -0
  120. package/templates/tiptap/tiptap-ui-primitive/button/button.tsx +102 -0
  121. package/templates/tiptap/tiptap-ui-primitive/button/index.tsx +1 -0
  122. package/templates/tiptap/tiptap-ui-primitive/card/card.scss +77 -0
  123. package/templates/tiptap/tiptap-ui-primitive/card/card.tsx +59 -0
  124. package/templates/tiptap/tiptap-ui-primitive/card/index.tsx +1 -0
  125. package/templates/tiptap/tiptap-ui-primitive/dropdown-menu/dropdown-menu.scss +63 -0
  126. package/templates/tiptap/tiptap-ui-primitive/dropdown-menu/dropdown-menu.tsx +95 -0
  127. package/templates/tiptap/tiptap-ui-primitive/dropdown-menu/index.tsx +1 -0
  128. package/templates/tiptap/tiptap-ui-primitive/input/index.tsx +1 -0
  129. package/templates/tiptap/tiptap-ui-primitive/input/input.scss +45 -0
  130. package/templates/tiptap/tiptap-ui-primitive/input/input.tsx +18 -0
  131. package/templates/tiptap/tiptap-ui-primitive/popover/index.tsx +1 -0
  132. package/templates/tiptap/tiptap-ui-primitive/popover/popover.scss +63 -0
  133. package/templates/tiptap/tiptap-ui-primitive/popover/popover.tsx +33 -0
  134. package/templates/tiptap/tiptap-ui-primitive/separator/index.tsx +1 -0
  135. package/templates/tiptap/tiptap-ui-primitive/separator/separator.scss +23 -0
  136. package/templates/tiptap/tiptap-ui-primitive/separator/separator.tsx +33 -0
  137. package/templates/tiptap/tiptap-ui-primitive/spacer/index.tsx +1 -0
  138. package/templates/tiptap/tiptap-ui-primitive/spacer/spacer.tsx +21 -0
  139. package/templates/tiptap/tiptap-ui-primitive/toolbar/index.tsx +1 -0
  140. package/templates/tiptap/tiptap-ui-primitive/toolbar/toolbar.scss +98 -0
  141. package/templates/tiptap/tiptap-ui-primitive/toolbar/toolbar.tsx +113 -0
  142. package/templates/tiptap/tiptap-ui-primitive/tooltip/index.tsx +1 -0
  143. package/templates/tiptap/tiptap-ui-primitive/tooltip/tooltip.scss +43 -0
  144. package/templates/tiptap/tiptap-ui-primitive/tooltip/tooltip.tsx +223 -0
  145. package/templates/ui/accordion.tsx +52 -0
  146. package/templates/ui/alert-dialog.tsx +116 -0
  147. package/templates/ui/alert.tsx +48 -0
  148. package/templates/ui/aspect-ratio.tsx +7 -0
  149. package/templates/ui/avatar.tsx +46 -0
  150. package/templates/ui/badge.tsx +32 -0
  151. package/templates/ui/breadcrumb.tsx +98 -0
  152. package/templates/ui/button-group.tsx +77 -0
  153. package/templates/ui/button.tsx +48 -0
  154. package/templates/ui/calendar.tsx +176 -0
  155. package/templates/ui/card.tsx +54 -0
  156. package/templates/ui/carousel.tsx +234 -0
  157. package/templates/ui/chart.tsx +349 -0
  158. package/templates/ui/checkbox.tsx +27 -0
  159. package/templates/ui/collapsible.tsx +11 -0
  160. package/templates/ui/command.tsx +142 -0
  161. package/templates/ui/context-menu.tsx +188 -0
  162. package/templates/ui/curriculum-editor.tsx +601 -0
  163. package/templates/ui/date-picker.tsx +70 -0
  164. package/templates/ui/dialog.tsx +103 -0
  165. package/templates/ui/drawer.tsx +99 -0
  166. package/templates/ui/dropdown-menu.tsx +185 -0
  167. package/templates/ui/dynamic-list-field.tsx +95 -0
  168. package/templates/ui/empty.tsx +90 -0
  169. package/templates/ui/field.tsx +231 -0
  170. package/templates/ui/file-upload-example.tsx +113 -0
  171. package/templates/ui/form.tsx +172 -0
  172. package/templates/ui/hover-card.tsx +28 -0
  173. package/templates/ui/icon-picker.tsx +435 -0
  174. package/templates/ui/icons-data.ts +6 -0
  175. package/templates/ui/image-upload-field.tsx +360 -0
  176. package/templates/ui/input-group.tsx +160 -0
  177. package/templates/ui/input-otp.tsx +70 -0
  178. package/templates/ui/input.tsx +21 -0
  179. package/templates/ui/item.tsx +171 -0
  180. package/templates/ui/kbd.tsx +28 -0
  181. package/templates/ui/label.tsx +20 -0
  182. package/templates/ui/logo.tsx +113 -0
  183. package/templates/ui/markdown-editor.tsx +303 -0
  184. package/templates/ui/markdown-utils.ts +128 -0
  185. package/templates/ui/media-upload-field.tsx +255 -0
  186. package/templates/ui/menubar.tsx +230 -0
  187. package/templates/ui/navigation-menu.tsx +119 -0
  188. package/templates/ui/pagination.tsx +96 -0
  189. package/templates/ui/placeholder.tsx +25 -0
  190. package/templates/ui/popover.tsx +32 -0
  191. package/templates/ui/progress.tsx +24 -0
  192. package/templates/ui/radio-group.tsx +37 -0
  193. package/templates/ui/resizable.tsx +41 -0
  194. package/templates/ui/rich-text-editor.tsx +374 -0
  195. package/templates/ui/scroll-area.tsx +45 -0
  196. package/templates/ui/select.tsx +151 -0
  197. package/templates/ui/separator.tsx +25 -0
  198. package/templates/ui/sheet.tsx +120 -0
  199. package/templates/ui/sidebar.tsx +684 -0
  200. package/templates/ui/skeleton.tsx +7 -0
  201. package/templates/ui/slider.tsx +24 -0
  202. package/templates/ui/sonner.tsx +29 -0
  203. package/templates/ui/spinner.tsx +15 -0
  204. package/templates/ui/switch.tsx +28 -0
  205. package/templates/ui/table.tsx +93 -0
  206. package/templates/ui/tabs.tsx +54 -0
  207. package/templates/ui/textarea.tsx +20 -0
  208. package/templates/ui/toast.tsx +127 -0
  209. package/templates/ui/toggle-group.tsx +56 -0
  210. package/templates/ui/toggle.tsx +43 -0
  211. package/templates/ui/tooltip.tsx +31 -0
  212. package/templates/ui/use-mobile.tsx +19 -0
  213. package/templates/ui/video-upload-field.tsx +368 -0
  214. package/dist/chunk-EIH4RRIJ.js +0 -183
  215. package/dist/chunk-EIH4RRIJ.js.map +0 -1
  216. package/dist/chunk-NKRQYAS6.js +0 -260
  217. package/dist/chunk-NKRQYAS6.js.map +0 -1
  218. package/dist/chunk-QLVSHP7X.js +0 -235
  219. package/dist/chunk-QLVSHP7X.js.map +0 -1
  220. package/dist/chunk-WY6BC55D.js +0 -357
  221. package/dist/chunk-WY6BC55D.js.map +0 -1
  222. package/dist/config/index.d.ts +0 -93
  223. package/dist/config/index.js +0 -58
  224. package/dist/config/index.js.map +0 -1
  225. package/dist/core/index.d.ts +0 -415
  226. package/dist/core/index.js +0 -906
  227. package/dist/core/index.js.map +0 -1
  228. package/dist/import-resolver-BaZ-rzkH.d.ts +0 -123
  229. package/dist/logger-awLb347n.d.ts +0 -81
  230. package/dist/plugins/index.d.ts +0 -213
  231. package/dist/plugins/index.js +0 -365
  232. package/dist/plugins/index.js.map +0 -1
  233. package/dist/types-ByX_gl6y.d.ts +0 -232
  234. package/dist/types-eI549DEG.d.ts +0 -331
@@ -0,0 +1,296 @@
1
+ :root {
2
+ /******************
3
+ Basics
4
+ ******************/
5
+
6
+ overflow-wrap: break-word;
7
+ text-size-adjust: none;
8
+ text-rendering: optimizeLegibility;
9
+ -webkit-font-smoothing: antialiased;
10
+ -moz-osx-font-smoothing: grayscale;
11
+
12
+ /******************
13
+ Colors variables
14
+ ******************/
15
+
16
+ /* Gray alpha (light mode) */
17
+ --tt-gray-light-a-50: rgba(56, 56, 56, 0.04);
18
+ --tt-gray-light-a-100: rgba(15, 22, 36, 0.05);
19
+ --tt-gray-light-a-200: rgba(37, 39, 45, 0.1);
20
+ --tt-gray-light-a-300: rgba(47, 50, 55, 0.2);
21
+ --tt-gray-light-a-400: rgba(40, 44, 51, 0.42);
22
+ --tt-gray-light-a-500: rgba(52, 55, 60, 0.64);
23
+ --tt-gray-light-a-600: rgba(36, 39, 46, 0.78);
24
+ --tt-gray-light-a-700: rgba(35, 37, 42, 0.87);
25
+ --tt-gray-light-a-800: rgba(30, 32, 36, 0.95);
26
+ --tt-gray-light-a-900: rgba(29, 30, 32, 0.98);
27
+
28
+ /* Gray (light mode) */
29
+ --tt-gray-light-50: rgba(250, 250, 250, 1);
30
+ --tt-gray-light-100: rgba(244, 244, 245, 1);
31
+ --tt-gray-light-200: rgba(234, 234, 235, 1);
32
+ --tt-gray-light-300: rgba(213, 214, 215, 1);
33
+ --tt-gray-light-400: rgba(166, 167, 171, 1);
34
+ --tt-gray-light-500: rgba(125, 127, 130, 1);
35
+ --tt-gray-light-600: rgba(83, 86, 90, 1);
36
+ --tt-gray-light-700: rgba(64, 65, 69, 1);
37
+ --tt-gray-light-800: rgba(44, 45, 48, 1);
38
+ --tt-gray-light-900: rgba(34, 35, 37, 1);
39
+
40
+ /* Gray alpha (dark mode) */
41
+ --tt-gray-dark-a-50: rgba(232, 232, 253, 0.05);
42
+ --tt-gray-dark-a-100: rgba(231, 231, 243, 0.07);
43
+ --tt-gray-dark-a-200: rgba(238, 238, 246, 0.11);
44
+ --tt-gray-dark-a-300: rgba(239, 239, 245, 0.22);
45
+ --tt-gray-dark-a-400: rgba(244, 244, 255, 0.37);
46
+ --tt-gray-dark-a-500: rgba(236, 238, 253, 0.5);
47
+ --tt-gray-dark-a-600: rgba(247, 247, 253, 0.64);
48
+ --tt-gray-dark-a-700: rgba(251, 251, 254, 0.75);
49
+ --tt-gray-dark-a-800: rgba(253, 253, 253, 0.88);
50
+ --tt-gray-dark-a-900: rgba(255, 255, 255, 0.96);
51
+
52
+ /* Gray (dark mode) */
53
+ --tt-gray-dark-50: rgba(25, 25, 26, 1);
54
+ --tt-gray-dark-100: rgba(32, 32, 34, 1);
55
+ --tt-gray-dark-200: rgba(45, 45, 47, 1);
56
+ --tt-gray-dark-300: rgba(70, 70, 73, 1);
57
+ --tt-gray-dark-400: rgba(99, 99, 105, 1);
58
+ --tt-gray-dark-500: rgba(124, 124, 131, 1);
59
+ --tt-gray-dark-600: rgba(163, 163, 168, 1);
60
+ --tt-gray-dark-700: rgba(192, 192, 195, 1);
61
+ --tt-gray-dark-800: rgba(224, 224, 225, 1);
62
+ --tt-gray-dark-900: rgba(245, 245, 245, 1);
63
+
64
+ /* Brand colors */
65
+ --tt-brand-color-50: rgba(239, 238, 255, 1);
66
+ --tt-brand-color-100: rgba(222, 219, 255, 1);
67
+ --tt-brand-color-200: rgba(195, 189, 255, 1);
68
+ --tt-brand-color-300: rgba(157, 138, 255, 1);
69
+ --tt-brand-color-400: rgba(122, 82, 255, 1);
70
+ --tt-brand-color-500: rgba(98, 41, 255, 1);
71
+ --tt-brand-color-600: rgba(84, 0, 229, 1);
72
+ --tt-brand-color-700: rgba(75, 0, 204, 1);
73
+ --tt-brand-color-800: rgba(56, 0, 153, 1);
74
+ --tt-brand-color-900: rgba(43, 25, 102, 1);
75
+ --tt-brand-color-950: hsla(257, 100%, 9%, 1);
76
+
77
+ /* Green */
78
+ --tt-color-green-inc-5: hsla(129, 100%, 97%, 1);
79
+ --tt-color-green-inc-4: hsla(129, 100%, 92%, 1);
80
+ --tt-color-green-inc-3: hsla(131, 100%, 86%, 1);
81
+ --tt-color-green-inc-2: hsla(133, 98%, 78%, 1);
82
+ --tt-color-green-inc-1: hsla(137, 99%, 70%, 1);
83
+ --tt-color-green-base: hsla(147, 99%, 50%, 1);
84
+ --tt-color-green-dec-1: hsla(147, 97%, 41%, 1);
85
+ --tt-color-green-dec-2: hsla(146, 98%, 32%, 1);
86
+ --tt-color-green-dec-3: hsla(146, 100%, 24%, 1);
87
+ --tt-color-green-dec-4: hsla(144, 100%, 16%, 1);
88
+ --tt-color-green-dec-5: hsla(140, 100%, 9%, 1);
89
+
90
+ /* Yellow */
91
+ --tt-color-yellow-inc-5: hsla(50, 100%, 97%, 1);
92
+ --tt-color-yellow-inc-4: hsla(50, 100%, 91%, 1);
93
+ --tt-color-yellow-inc-3: hsla(50, 100%, 84%, 1);
94
+ --tt-color-yellow-inc-2: hsla(50, 100%, 77%, 1);
95
+ --tt-color-yellow-inc-1: hsla(50, 100%, 68%, 1);
96
+ --tt-color-yellow-base: hsla(52, 100%, 50%, 1);
97
+ --tt-color-yellow-dec-1: hsla(52, 100%, 41%, 1);
98
+ --tt-color-yellow-dec-2: hsla(52, 100%, 32%, 1);
99
+ --tt-color-yellow-dec-3: hsla(52, 100%, 24%, 1);
100
+ --tt-color-yellow-dec-4: hsla(51, 100%, 16%, 1);
101
+ --tt-color-yellow-dec-5: hsla(50, 100%, 9%, 1);
102
+
103
+ /* Red */
104
+ --tt-color-red-inc-5: hsla(11, 100%, 96%, 1);
105
+ --tt-color-red-inc-4: hsla(11, 100%, 88%, 1);
106
+ --tt-color-red-inc-3: hsla(10, 100%, 80%, 1);
107
+ --tt-color-red-inc-2: hsla(9, 100%, 73%, 1);
108
+ --tt-color-red-inc-1: hsla(7, 100%, 64%, 1);
109
+ --tt-color-red-base: hsla(7, 100%, 54%, 1);
110
+ --tt-color-red-dec-1: hsla(7, 100%, 41%, 1);
111
+ --tt-color-red-dec-2: hsla(5, 100%, 32%, 1);
112
+ --tt-color-red-dec-3: hsla(4, 100%, 24%, 1);
113
+ --tt-color-red-dec-4: hsla(3, 100%, 16%, 1);
114
+ --tt-color-red-dec-5: hsla(1, 100%, 9%, 1);
115
+
116
+ /* Basic colors */
117
+ --white: rgba(255, 255, 255, 1);
118
+ --black: rgba(14, 14, 17, 1);
119
+ --transparent: rgba(255, 255, 255, 0);
120
+
121
+ /******************
122
+ Shadow variables
123
+ ******************/
124
+
125
+ /* Shadows Light */
126
+ --tt-shadow-elevated-md:
127
+ 0px 16px 48px 0px rgba(17, 24, 39, 0.04),
128
+ 0px 12px 24px 0px rgba(17, 24, 39, 0.04),
129
+ 0px 6px 8px 0px rgba(17, 24, 39, 0.02),
130
+ 0px 2px 3px 0px rgba(17, 24, 39, 0.02);
131
+
132
+ /**************************************************
133
+ Radius variables
134
+ **************************************************/
135
+
136
+ --tt-radius-xxs: 0.125rem; /* 2px */
137
+ --tt-radius-xs: 0.25rem; /* 4px */
138
+ --tt-radius-sm: 0.375rem; /* 6px */
139
+ --tt-radius-md: 0.5rem; /* 8px */
140
+ --tt-radius-lg: 0.75rem; /* 12px */
141
+ --tt-radius-xl: 1rem; /* 16px */
142
+
143
+ /**************************************************
144
+ Transition variables
145
+ **************************************************/
146
+
147
+ --tt-transition-duration-short: 0.1s;
148
+ --tt-transition-duration-default: 0.2s;
149
+ --tt-transition-duration-long: 0.64s;
150
+ --tt-transition-easing-default: cubic-bezier(0.46, 0.03, 0.52, 0.96);
151
+ --tt-transition-easing-cubic: cubic-bezier(0.65, 0.05, 0.36, 1);
152
+ --tt-transition-easing-quart: cubic-bezier(0.77, 0, 0.18, 1);
153
+ --tt-transition-easing-circ: cubic-bezier(0.79, 0.14, 0.15, 0.86);
154
+ --tt-transition-easing-back: cubic-bezier(0.68, -0.55, 0.27, 1.55);
155
+
156
+ /******************
157
+ Contrast variables
158
+ ******************/
159
+
160
+ --tt-accent-contrast: 8%;
161
+ --tt-destructive-contrast: 8%;
162
+ --tt-foreground-contrast: 8%;
163
+
164
+ &,
165
+ *,
166
+ ::before,
167
+ ::after {
168
+ box-sizing: border-box;
169
+ transition: none var(--tt-transition-duration-default)
170
+ var(--tt-transition-easing-default);
171
+ }
172
+ }
173
+
174
+ :root {
175
+ /**************************************************
176
+ Global colors
177
+ **************************************************/
178
+
179
+ /* Global colors - Light mode */
180
+ --tt-bg-color: var(--white);
181
+ --tt-border-color: var(--tt-gray-light-a-200);
182
+ --tt-border-color-tint: var(--tt-gray-light-a-100);
183
+ --tt-sidebar-bg-color: var(--tt-gray-light-100);
184
+ --tt-scrollbar-color: var(--tt-gray-light-a-200);
185
+ --tt-cursor-color: var(--tt-brand-color-500);
186
+ --tt-selection-color: rgba(157, 138, 255, 0.2);
187
+ --tt-card-bg-color: var(--white);
188
+ --tt-card-border-color: var(--tt-gray-light-a-100);
189
+ }
190
+
191
+ /* Global colors - Dark mode */
192
+ .dark {
193
+ --tt-bg-color: var(--black);
194
+ --tt-border-color: var(--tt-gray-dark-a-200);
195
+ --tt-border-color-tint: var(--tt-gray-dark-a-100);
196
+ --tt-sidebar-bg-color: var(--tt-gray-dark-100);
197
+ --tt-scrollbar-color: var(--tt-gray-dark-a-200);
198
+ --tt-cursor-color: var(--tt-brand-color-400);
199
+ --tt-selection-color: rgba(122, 82, 255, 0.2);
200
+ --tt-card-bg-color: var(--tt-gray-dark-50);
201
+ --tt-card-border-color: var(--tt-gray-dark-a-50);
202
+
203
+ --tt-shadow-elevated-md:
204
+ 0px 16px 48px 0px rgba(0, 0, 0, 0.5), 0px 12px 24px 0px rgba(0, 0, 0, 0.24),
205
+ 0px 6px 8px 0px rgba(0, 0, 0, 0.22), 0px 2px 3px 0px rgba(0, 0, 0, 0.12);
206
+ }
207
+
208
+ /* Text colors */
209
+ :root {
210
+ --tt-color-text-gray: hsl(45, 2%, 46%);
211
+ --tt-color-text-brown: hsl(19, 31%, 47%);
212
+ --tt-color-text-orange: hsl(30, 89%, 45%);
213
+ --tt-color-text-yellow: hsl(38, 62%, 49%);
214
+ --tt-color-text-green: hsl(148, 32%, 39%);
215
+ --tt-color-text-blue: hsl(202, 54%, 43%);
216
+ --tt-color-text-purple: hsl(274, 32%, 54%);
217
+ --tt-color-text-pink: hsl(328, 49%, 53%);
218
+ --tt-color-text-red: hsl(2, 62%, 55%);
219
+
220
+ --tt-color-text-gray-contrast: hsla(39, 26%, 26%, 0.15);
221
+ --tt-color-text-brown-contrast: hsla(18, 43%, 69%, 0.35);
222
+ --tt-color-text-orange-contrast: hsla(24, 73%, 55%, 0.27);
223
+ --tt-color-text-yellow-contrast: hsla(44, 82%, 59%, 0.39);
224
+ --tt-color-text-green-contrast: hsla(126, 29%, 60%, 0.27);
225
+ --tt-color-text-blue-contrast: hsla(202, 54%, 59%, 0.27);
226
+ --tt-color-text-purple-contrast: hsla(274, 37%, 64%, 0.27);
227
+ --tt-color-text-pink-contrast: hsla(331, 60%, 71%, 0.27);
228
+ --tt-color-text-red-contrast: hsla(8, 79%, 79%, 0.4);
229
+ }
230
+
231
+ .dark {
232
+ --tt-color-text-gray: hsl(0, 0%, 61%);
233
+ --tt-color-text-brown: hsl(18, 35%, 58%);
234
+ --tt-color-text-orange: hsl(25, 53%, 53%);
235
+ --tt-color-text-yellow: hsl(36, 54%, 55%);
236
+ --tt-color-text-green: hsl(145, 32%, 47%);
237
+ --tt-color-text-blue: hsl(202, 64%, 52%);
238
+ --tt-color-text-purple: hsl(270, 55%, 62%);
239
+ --tt-color-text-pink: hsl(329, 57%, 58%);
240
+ --tt-color-text-red: hsl(1, 69%, 60%);
241
+
242
+ --tt-color-text-gray-contrast: hsla(0, 0%, 100%, 0.09);
243
+ --tt-color-text-brown-contrast: hsla(17, 45%, 50%, 0.25);
244
+ --tt-color-text-orange-contrast: hsla(27, 82%, 53%, 0.2);
245
+ --tt-color-text-yellow-contrast: hsla(35, 49%, 47%, 0.2);
246
+ --tt-color-text-green-contrast: hsla(151, 55%, 39%, 0.2);
247
+ --tt-color-text-blue-contrast: hsla(202, 54%, 43%, 0.2);
248
+ --tt-color-text-purple-contrast: hsla(271, 56%, 60%, 0.18);
249
+ --tt-color-text-pink-contrast: hsla(331, 67%, 58%, 0.22);
250
+ --tt-color-text-red-contrast: hsla(0, 67%, 60%, 0.25);
251
+ }
252
+
253
+ /* Highlight colors */
254
+ :root {
255
+ --tt-color-highlight-yellow: #fef9c3;
256
+ --tt-color-highlight-green: #dcfce7;
257
+ --tt-color-highlight-blue: #e0f2fe;
258
+ --tt-color-highlight-purple: #f3e8ff;
259
+ --tt-color-highlight-red: #ffe4e6;
260
+ --tt-color-highlight-gray: rgb(248, 248, 247);
261
+ --tt-color-highlight-brown: rgb(244, 238, 238);
262
+ --tt-color-highlight-orange: rgb(251, 236, 221);
263
+ --tt-color-highlight-pink: rgb(252, 241, 246);
264
+
265
+ --tt-color-highlight-yellow-contrast: #fbe604;
266
+ --tt-color-highlight-green-contrast: #c7fad8;
267
+ --tt-color-highlight-blue-contrast: #ceeafd;
268
+ --tt-color-highlight-purple-contrast: #e4ccff;
269
+ --tt-color-highlight-red-contrast: #ffccd0;
270
+ --tt-color-highlight-gray-contrast: rgba(84, 72, 49, 0.15);
271
+ --tt-color-highlight-brown-contrast: rgba(210, 162, 141, 0.35);
272
+ --tt-color-highlight-orange-contrast: rgba(224, 124, 57, 0.27);
273
+ --tt-color-highlight-pink-contrast: rgba(225, 136, 179, 0.27);
274
+ }
275
+
276
+ .dark {
277
+ --tt-color-highlight-yellow: #6b6524;
278
+ --tt-color-highlight-green: #509568;
279
+ --tt-color-highlight-blue: #6e92aa;
280
+ --tt-color-highlight-purple: #583e74;
281
+ --tt-color-highlight-red: #743e42;
282
+ --tt-color-highlight-gray: rgb(47, 47, 47);
283
+ --tt-color-highlight-brown: rgb(74, 50, 40);
284
+ --tt-color-highlight-orange: rgb(92, 59, 35);
285
+ --tt-color-highlight-pink: rgb(78, 44, 60);
286
+
287
+ --tt-color-highlight-yellow-contrast: #58531e;
288
+ --tt-color-highlight-green-contrast: #47855d;
289
+ --tt-color-highlight-blue-contrast: #5e86a1;
290
+ --tt-color-highlight-purple-contrast: #4c3564;
291
+ --tt-color-highlight-red-contrast: #643539;
292
+ --tt-color-highlight-gray-contrast: rgba(255, 255, 255, 0.094);
293
+ --tt-color-highlight-brown-contrast: rgba(184, 101, 69, 0.25);
294
+ --tt-color-highlight-orange-contrast: rgba(233, 126, 37, 0.2);
295
+ --tt-color-highlight-pink-contrast: rgba(220, 76, 145, 0.22);
296
+ }
@@ -0,0 +1,138 @@
1
+ import type { NodeWithPos } from '@tiptap/core'
2
+ import { Extension } from '@tiptap/core'
3
+ import type { EditorState, Transaction } from '@tiptap/pm/state'
4
+ import { getSelectedNodesOfType, updateNodesAttr } from '../lib/tiptap-utils'
5
+
6
+ declare module '@tiptap/core' {
7
+ interface Commands<ReturnType> {
8
+ nodeBackground: {
9
+ setNodeBackgroundColor: (backgroundColor: string) => ReturnType
10
+ unsetNodeBackgroundColor: () => ReturnType
11
+ toggleNodeBackgroundColor: (backgroundColor: string) => ReturnType
12
+ }
13
+ }
14
+ }
15
+
16
+ export interface NodeBackgroundOptions {
17
+ /**
18
+ * Node types that should support background colors
19
+ * @default ["paragraph", "heading", "blockquote", "taskList", "bulletList", "orderedList", "tableCell", "tableHeader"]
20
+ */
21
+ types: string[]
22
+ /**
23
+ * Use inline style instead of data attribute
24
+ * @default true
25
+ */
26
+ useStyle?: boolean
27
+ }
28
+
29
+ /**
30
+ * Determines the target color for toggle operations
31
+ */
32
+ function getToggleColor(targets: NodeWithPos[], inputColor: string): string | null {
33
+ if (targets.length === 0) return null
34
+
35
+ for (const target of targets) {
36
+ const currentColor = target.node.attrs?.backgroundColor ?? null
37
+ if (currentColor !== inputColor) {
38
+ return inputColor
39
+ }
40
+ }
41
+
42
+ return null
43
+ }
44
+
45
+ export const NodeBackground = Extension.create<NodeBackgroundOptions>({
46
+ name: 'nodeBackground',
47
+
48
+ addOptions() {
49
+ return {
50
+ types: [
51
+ 'paragraph',
52
+ 'heading',
53
+ 'blockquote',
54
+ 'taskList',
55
+ 'bulletList',
56
+ 'orderedList',
57
+ 'tableCell',
58
+ 'tableHeader'
59
+ ],
60
+ useStyle: true
61
+ }
62
+ },
63
+
64
+ addGlobalAttributes() {
65
+ return [
66
+ {
67
+ types: this.options.types,
68
+ attributes: {
69
+ backgroundColor: {
70
+ default: null as string | null,
71
+
72
+ parseHTML: (element: HTMLElement) => {
73
+ const styleColor = element.style?.backgroundColor
74
+ if (styleColor) return styleColor
75
+
76
+ const dataColor = element.getAttribute('data-background-color')
77
+ return dataColor || null
78
+ },
79
+
80
+ renderHTML: (attributes) => {
81
+ const color = attributes.backgroundColor as string | null
82
+ if (!color) return {}
83
+
84
+ if (this.options.useStyle) {
85
+ return {
86
+ style: `background-color: ${color}`
87
+ }
88
+ } else {
89
+ return {
90
+ 'data-background-color': color
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ ]
98
+ },
99
+
100
+ addCommands() {
101
+ /**
102
+ * Generic command executor for background color operations
103
+ */
104
+ const executeBackgroundCommand = (
105
+ getTargetColor: (targets: NodeWithPos[], inputColor?: string) => string | null
106
+ ) => {
107
+ return (inputColor?: string) =>
108
+ ({ state, tr }: { state: EditorState; tr: Transaction }) => {
109
+ const targets = getSelectedNodesOfType(state.selection, this.options.types)
110
+
111
+ if (targets.length === 0) return false
112
+
113
+ const targetColor = getTargetColor(targets, inputColor)
114
+
115
+ return updateNodesAttr(tr, targets, 'backgroundColor', targetColor)
116
+ }
117
+ }
118
+
119
+ return {
120
+ /**
121
+ * Set background color to specific value
122
+ */
123
+ setNodeBackgroundColor: executeBackgroundCommand((_, inputColor) => inputColor || null),
124
+
125
+ /**
126
+ * Remove background color
127
+ */
128
+ unsetNodeBackgroundColor: executeBackgroundCommand(() => null),
129
+
130
+ /**
131
+ * Toggle background color (set if different/missing, unset if all have it)
132
+ */
133
+ toggleNodeBackgroundColor: executeBackgroundCommand((targets, inputColor) =>
134
+ getToggleColor(targets, inputColor || '')
135
+ )
136
+ }
137
+ }
138
+ })
@@ -0,0 +1,38 @@
1
+ import { memo } from 'react'
2
+
3
+ type SvgProps = React.ComponentPropsWithoutRef<'svg'>
4
+
5
+ export const AlignCenterIcon = memo(({ className, ...props }: SvgProps) => {
6
+ return (
7
+ <svg
8
+ width="24"
9
+ height="24"
10
+ className={className}
11
+ viewBox="0 0 24 24"
12
+ fill="currentColor"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M6 12C6 11.4477 6.44772 11 7 11H17C17.5523 11 18 11.4477 18 12C18 12.5523 17.5523 13 17 13H7C6.44772 13 6 12.5523 6 12Z"
26
+ fill="currentColor"
27
+ />
28
+ <path
29
+ fillRule="evenodd"
30
+ clipRule="evenodd"
31
+ d="M4 18C4 17.4477 4.44772 17 5 17H19C19.5523 17 20 17.4477 20 18C20 18.5523 19.5523 19 19 19H5C4.44772 19 4 18.5523 4 18Z"
32
+ fill="currentColor"
33
+ />
34
+ </svg>
35
+ )
36
+ })
37
+
38
+ AlignCenterIcon.displayName = 'AlignCenterIcon'
@@ -0,0 +1,38 @@
1
+ import { memo } from 'react'
2
+
3
+ type SvgProps = React.ComponentPropsWithoutRef<'svg'>
4
+
5
+ export const AlignJustifyIcon = memo(({ className, ...props }: SvgProps) => {
6
+ return (
7
+ <svg
8
+ width="24"
9
+ height="24"
10
+ className={className}
11
+ viewBox="0 0 24 24"
12
+ fill="currentColor"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M2 12C2 11.4477 2.44772 11 3 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H3C2.44772 13 2 12.5523 2 12Z"
26
+ fill="currentColor"
27
+ />
28
+ <path
29
+ fillRule="evenodd"
30
+ clipRule="evenodd"
31
+ d="M2 18C2 17.4477 2.44772 17 3 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H3C2.44772 19 2 18.5523 2 18Z"
32
+ fill="currentColor"
33
+ />
34
+ </svg>
35
+ )
36
+ })
37
+
38
+ AlignJustifyIcon.displayName = 'AlignJustifyIcon'
@@ -0,0 +1,38 @@
1
+ import { memo } from 'react'
2
+
3
+ type SvgProps = React.ComponentPropsWithoutRef<'svg'>
4
+
5
+ export const AlignLeftIcon = memo(({ className, ...props }: SvgProps) => {
6
+ return (
7
+ <svg
8
+ width="24"
9
+ height="24"
10
+ className={className}
11
+ viewBox="0 0 24 24"
12
+ fill="currentColor"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M2 12C2 11.4477 2.44772 11 3 11H15C15.5523 11 16 11.4477 16 12C16 12.5523 15.5523 13 15 13H3C2.44772 13 2 12.5523 2 12Z"
26
+ fill="currentColor"
27
+ />
28
+ <path
29
+ fillRule="evenodd"
30
+ clipRule="evenodd"
31
+ d="M2 18C2 17.4477 2.44772 17 3 17H17C17.5523 17 18 17.4477 18 18C18 18.5523 17.5523 19 17 19H3C2.44772 19 2 18.5523 2 18Z"
32
+ fill="currentColor"
33
+ />
34
+ </svg>
35
+ )
36
+ })
37
+
38
+ AlignLeftIcon.displayName = 'AlignLeftIcon'
@@ -0,0 +1,38 @@
1
+ import { memo } from 'react'
2
+
3
+ type SvgProps = React.ComponentPropsWithoutRef<'svg'>
4
+
5
+ export const AlignRightIcon = memo(({ className, ...props }: SvgProps) => {
6
+ return (
7
+ <svg
8
+ width="24"
9
+ height="24"
10
+ className={className}
11
+ viewBox="0 0 24 24"
12
+ fill="currentColor"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M2 6C2 5.44772 2.44772 5 3 5H21C21.5523 5 22 5.44772 22 6C22 6.55228 21.5523 7 21 7H3C2.44772 7 2 6.55228 2 6Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M8 12C8 11.4477 8.44772 11 9 11H21C21.5523 11 22 11.4477 22 12C22 12.5523 21.5523 13 21 13H9C8.44772 13 8 12.5523 8 12Z"
26
+ fill="currentColor"
27
+ />
28
+ <path
29
+ fillRule="evenodd"
30
+ clipRule="evenodd"
31
+ d="M6 18C6 17.4477 6.44772 17 7 17H21C21.5523 17 22 17.4477 22 18C22 18.5523 21.5523 19 21 19H7C6.44772 19 6 18.5523 6 18Z"
32
+ fill="currentColor"
33
+ />
34
+ </svg>
35
+ )
36
+ })
37
+
38
+ AlignRightIcon.displayName = 'AlignRightIcon'
@@ -0,0 +1,24 @@
1
+ import { memo } from 'react'
2
+
3
+ type SvgProps = React.ComponentPropsWithoutRef<'svg'>
4
+
5
+ export const ArrowLeftIcon = memo(({ className, ...props }: SvgProps) => {
6
+ return (
7
+ <svg
8
+ width="24"
9
+ height="24"
10
+ className={className}
11
+ viewBox="0 0 24 24"
12
+ fill="currentColor"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ d="M12.7071 5.70711C13.0976 5.31658 13.0976 4.68342 12.7071 4.29289C12.3166 3.90237 11.6834 3.90237 11.2929 4.29289L4.29289 11.2929C3.90237 11.6834 3.90237 12.3166 4.29289 12.7071L11.2929 19.7071C11.6834 20.0976 12.3166 20.0976 12.7071 19.7071C13.0976 19.3166 13.0976 18.6834 12.7071 18.2929L7.41421 13L19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11L7.41421 11L12.7071 5.70711Z"
18
+ fill="currentColor"
19
+ />
20
+ </svg>
21
+ )
22
+ })
23
+
24
+ ArrowLeftIcon.displayName = 'ArrowLeftIcon'
@@ -0,0 +1,26 @@
1
+ import { memo } from 'react'
2
+
3
+ type SvgProps = React.ComponentPropsWithoutRef<'svg'>
4
+
5
+ export const BanIcon = memo(({ className, ...props }: SvgProps) => {
6
+ return (
7
+ <svg
8
+ width="24"
9
+ height="24"
10
+ className={className}
11
+ viewBox="0 0 24 24"
12
+ fill="currentColor"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M4.43471 4.01458C4.34773 4.06032 4.26607 4.11977 4.19292 4.19292C4.11977 4.26607 4.06032 4.34773 4.01458 4.43471C2.14611 6.40628 1 9.0693 1 12C1 18.0751 5.92487 23 12 23C14.9306 23 17.5936 21.854 19.5651 19.9856C19.6522 19.9398 19.7339 19.8803 19.8071 19.8071C19.8803 19.7339 19.9398 19.6522 19.9856 19.5651C21.854 17.5936 23 14.9306 23 12C23 5.92487 18.0751 1 12 1C9.0693 1 6.40628 2.14611 4.43471 4.01458ZM6.38231 4.9681C7.92199 3.73647 9.87499 3 12 3C16.9706 3 21 7.02944 21 12C21 14.125 20.2635 16.078 19.0319 17.6177L6.38231 4.9681ZM17.6177 19.0319C16.078 20.2635 14.125 21 12 21C7.02944 21 3 16.9706 3 12C3 9.87499 3.73647 7.92199 4.9681 6.38231L17.6177 19.0319Z"
20
+ fill="currentColor"
21
+ />
22
+ </svg>
23
+ )
24
+ })
25
+
26
+ BanIcon.displayName = 'BanIcon'
@@ -0,0 +1,44 @@
1
+ import { memo } from 'react'
2
+
3
+ type SvgProps = React.ComponentPropsWithoutRef<'svg'>
4
+
5
+ export const BlockquoteIcon = memo(({ className, ...props }: SvgProps) => {
6
+ return (
7
+ <svg
8
+ width="24"
9
+ height="24"
10
+ className={className}
11
+ viewBox="0 0 24 24"
12
+ fill="currentColor"
13
+ xmlns="http://www.w3.org/2000/svg"
14
+ {...props}
15
+ >
16
+ <path
17
+ fillRule="evenodd"
18
+ clipRule="evenodd"
19
+ d="M8 6C8 5.44772 8.44772 5 9 5H16C16.5523 5 17 5.44772 17 6C17 6.55228 16.5523 7 16 7H9C8.44772 7 8 6.55228 8 6Z"
20
+ fill="currentColor"
21
+ />
22
+ <path
23
+ fillRule="evenodd"
24
+ clipRule="evenodd"
25
+ d="M4 3C4.55228 3 5 3.44772 5 4L5 20C5 20.5523 4.55229 21 4 21C3.44772 21 3 20.5523 3 20L3 4C3 3.44772 3.44772 3 4 3Z"
26
+ fill="currentColor"
27
+ />
28
+ <path
29
+ fillRule="evenodd"
30
+ clipRule="evenodd"
31
+ d="M8 12C8 11.4477 8.44772 11 9 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H9C8.44772 13 8 12.5523 8 12Z"
32
+ fill="currentColor"
33
+ />
34
+ <path
35
+ fillRule="evenodd"
36
+ clipRule="evenodd"
37
+ d="M8 18C8 17.4477 8.44772 17 9 17H16C16.5523 17 17 17.4477 17 18C17 18.5523 16.5523 19 16 19H9C8.44772 19 8 18.5523 8 18Z"
38
+ fill="currentColor"
39
+ />
40
+ </svg>
41
+ )
42
+ })
43
+
44
+ BlockquoteIcon.displayName = 'BlockquoteIcon'