@widgetic/design-system 0.3.89 → 0.5.8

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 (223) hide show
  1. package/README.md +122 -690
  2. package/dist/components/CopyableHeader.svelte +11 -13
  3. package/dist/components/EmptyState.svelte +4 -2
  4. package/dist/components/EmptyState.svelte.d.ts +2 -1
  5. package/dist/components/GenerateLoader.svelte +50 -0
  6. package/dist/components/GenerateLoader.svelte.d.ts +21 -0
  7. package/dist/components/PasswordInput.svelte +5 -1
  8. package/dist/components/WScrollArea.svelte +3 -3
  9. package/dist/components/debug-grid/DebugGrid.svelte +1 -1
  10. package/dist/components/ic/browser/BrowserInputController.svelte +1 -1
  11. package/dist/components/index.d.ts +2 -2
  12. package/dist/components/index.js +2 -2
  13. package/dist/components/modals/BaseModal.svelte +1 -1
  14. package/dist/components/modals/BaseModal.svelte.d.ts +1 -1
  15. package/dist/components/modals/NewItemDialog.svelte +1 -1
  16. package/dist/components/modals/Portal.svelte +14 -15
  17. package/dist/components/modals/RenameDialog.svelte +7 -6
  18. package/dist/components/navigation/Breadcrumbs.svelte +65 -39
  19. package/dist/components/pdf/PDFViewer.svelte +10 -19
  20. package/dist/components/pdf/PDFViewer.svelte.d.ts +4 -4
  21. package/dist/components/search-input/SearchInput.svelte +3 -8
  22. package/dist/components/search-input/index.d.ts +3 -14
  23. package/dist/components/search-input/index.js +1 -2
  24. package/dist/components/search-input/index2.d.ts +14 -0
  25. package/dist/components/shad-editor/README.md +18 -0
  26. package/dist/components/shad-editor/colorpicker.svelte.d.ts +2 -2
  27. package/dist/components/shad-editor/custom/code-extended.svelte.d.ts +2 -2
  28. package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
  29. package/dist/components/shad-editor/custom/image-extended-component.svelte.d.ts +2 -2
  30. package/dist/components/shad-editor/editor-toolbar.svelte.d.ts +2 -2
  31. package/dist/components/shad-editor/editor.css +8 -4
  32. package/dist/components/shad-editor/icons/block-quote.svelte.d.ts +2 -2
  33. package/dist/components/shad-editor/icons/bold.svelte.d.ts +2 -2
  34. package/dist/components/shad-editor/icons/buttle-list.svelte.d.ts +2 -2
  35. package/dist/components/shad-editor/icons/code.svelte.d.ts +2 -2
  36. package/dist/components/shad-editor/icons/highlighter.svelte.d.ts +2 -2
  37. package/dist/components/shad-editor/icons/image.svelte.d.ts +2 -2
  38. package/dist/components/shad-editor/icons/italic.svelte.d.ts +2 -2
  39. package/dist/components/shad-editor/icons/link.svelte.d.ts +2 -2
  40. package/dist/components/shad-editor/icons/ordered-list.svelte.d.ts +2 -2
  41. package/dist/components/shad-editor/icons/quickcolor.svelte.d.ts +2 -2
  42. package/dist/components/shad-editor/icons/redo.svelte.d.ts +2 -2
  43. package/dist/components/shad-editor/icons/search-replace.svelte.d.ts +2 -2
  44. package/dist/components/shad-editor/icons/strikethrough.svelte.d.ts +2 -2
  45. package/dist/components/shad-editor/icons/subscript.svelte.d.ts +2 -2
  46. package/dist/components/shad-editor/icons/superscript.svelte.d.ts +2 -2
  47. package/dist/components/shad-editor/icons/table.svelte +3 -3
  48. package/dist/components/shad-editor/icons/table.svelte.d.ts +2 -2
  49. package/dist/components/shad-editor/icons/task-list.svelte.d.ts +2 -2
  50. package/dist/components/shad-editor/icons/text.svelte +1 -1
  51. package/dist/components/shad-editor/icons/text.svelte.d.ts +2 -2
  52. package/dist/components/shad-editor/icons/textalign.svelte.d.ts +2 -2
  53. package/dist/components/shad-editor/icons/textcolor.svelte.d.ts +2 -2
  54. package/dist/components/shad-editor/icons/underline.svelte.d.ts +2 -2
  55. package/dist/components/shad-editor/icons/undo.svelte.d.ts +2 -2
  56. package/dist/components/shad-editor/onedark.css +3 -0
  57. package/dist/components/shad-editor/shad-editor.svelte +1 -1
  58. package/dist/components/shad-editor/shad-editor.svelte.d.ts +2 -2
  59. package/dist/components/toast/ToasterModal.svelte +15 -9
  60. package/dist/components/toast/ToasterModal.svelte.d.ts +2 -2
  61. package/dist/components/ui/accordion/accordion-content.svelte.d.ts +4 -3
  62. package/dist/components/ui/accordion/accordion-item.svelte.d.ts +4 -3
  63. package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +6 -3
  64. package/dist/components/ui/alert/index.d.ts +2 -2
  65. package/dist/components/ui/badge/badge.svelte +1 -1
  66. package/dist/components/ui/badge/badge.svelte.d.ts +8 -55
  67. package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +2 -2
  68. package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +2 -2
  69. package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +8 -3
  70. package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +2 -2
  71. package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +2 -2
  72. package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +2 -2
  73. package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +2 -2
  74. package/dist/components/ui/button/button.svelte +1 -1
  75. package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +2 -2
  76. package/dist/components/ui/calendar/calendar-day.svelte +4 -4
  77. package/dist/components/ui/calendar/calendar-day.svelte.d.ts +2 -2
  78. package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +2 -2
  79. package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +2 -2
  80. package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +2 -2
  81. package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +2 -2
  82. package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +2 -2
  83. package/dist/components/ui/calendar/calendar-header.svelte.d.ts +2 -2
  84. package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +2 -2
  85. package/dist/components/ui/calendar/calendar-months.svelte.d.ts +2 -2
  86. package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +2 -2
  87. package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +2 -2
  88. package/dist/components/ui/calendar/calendar.svelte.d.ts +2 -2
  89. package/dist/components/ui/card/card-content.svelte.d.ts +2 -2
  90. package/dist/components/ui/card/card-description.svelte.d.ts +2 -2
  91. package/dist/components/ui/card/card-footer.svelte.d.ts +2 -2
  92. package/dist/components/ui/card/card-header.svelte.d.ts +2 -2
  93. package/dist/components/ui/card/card-title.svelte.d.ts +7 -3
  94. package/dist/components/ui/card/card.svelte +1 -1
  95. package/dist/components/ui/card/card.svelte.d.ts +2 -2
  96. package/dist/components/ui/checkbox/checkbox.svelte +1 -1
  97. package/dist/components/ui/checkbox/checkbox.svelte.d.ts +2 -2
  98. package/dist/components/ui/collapsible/index.d.ts +1 -12
  99. package/dist/components/ui/command/command-dialog.svelte +1 -1
  100. package/dist/components/ui/command/command-dialog.svelte.d.ts +11 -3
  101. package/dist/components/ui/command/command-empty.svelte.d.ts +2 -2
  102. package/dist/components/ui/command/command-group.svelte.d.ts +6 -3
  103. package/dist/components/ui/command/command-input.svelte +1 -1
  104. package/dist/components/ui/command/command-input.svelte.d.ts +2 -2
  105. package/dist/components/ui/command/command-item.svelte +1 -1
  106. package/dist/components/ui/command/command-item.svelte.d.ts +2 -2
  107. package/dist/components/ui/command/command-link-item.svelte +1 -1
  108. package/dist/components/ui/command/command-link-item.svelte.d.ts +2 -2
  109. package/dist/components/ui/command/command-list.svelte.d.ts +2 -2
  110. package/dist/components/ui/command/command-separator.svelte.d.ts +2 -2
  111. package/dist/components/ui/command/command-shortcut.svelte.d.ts +2 -2
  112. package/dist/components/ui/command/command.svelte.d.ts +2 -2
  113. package/dist/components/ui/dialog/dialog-content.svelte +1 -1
  114. package/dist/components/ui/dialog/dialog-content.svelte.d.ts +9 -3
  115. package/dist/components/ui/dialog/dialog-description.svelte.d.ts +2 -2
  116. package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +2 -2
  117. package/dist/components/ui/dialog/dialog-header.svelte.d.ts +2 -2
  118. package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +2 -2
  119. package/dist/components/ui/dialog/dialog-title.svelte.d.ts +2 -2
  120. package/dist/components/ui/drawer/drawer-content.svelte.d.ts +6 -3
  121. package/dist/components/ui/drawer/drawer-description.svelte.d.ts +2 -2
  122. package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +2 -2
  123. package/dist/components/ui/drawer/drawer-header.svelte.d.ts +2 -2
  124. package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +2 -2
  125. package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +2 -2
  126. package/dist/components/ui/drawer/drawer-title.svelte.d.ts +2 -2
  127. package/dist/components/ui/drawer/drawer.svelte.d.ts +2 -2
  128. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
  129. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +8 -3
  130. package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
  131. package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +6 -3
  132. package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +6 -3
  133. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
  134. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +6 -3
  135. package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +7 -3
  136. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
  137. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +2 -2
  138. package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +2 -2
  139. package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +2 -2
  140. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
  141. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +2 -2
  142. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
  143. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +6 -3
  144. package/dist/components/ui/dropdown-menu/index.d.ts +6 -14
  145. package/dist/components/ui/hover-card/hover-card-content.svelte +1 -1
  146. package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +6 -3
  147. package/dist/components/ui/input/input.svelte +1 -1
  148. package/dist/components/ui/input/input.svelte.d.ts +2 -2
  149. package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +2 -2
  150. package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +2 -2
  151. package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +2 -2
  152. package/dist/components/ui/input-otp/input-otp.svelte +1 -1
  153. package/dist/components/ui/input-otp/input-otp.svelte.d.ts +2 -2
  154. package/dist/components/ui/label/label.svelte.d.ts +2 -2
  155. package/dist/components/ui/popover/popover-content.svelte +1 -1
  156. package/dist/components/ui/popover/popover-content.svelte.d.ts +6 -3
  157. package/dist/components/ui/progress/progress.svelte.d.ts +2 -2
  158. package/dist/components/ui/radio-group/radio-group-item.svelte +1 -1
  159. package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +2 -2
  160. package/dist/components/ui/radio-group/radio-group.svelte.d.ts +2 -2
  161. package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +2 -2
  162. package/dist/components/ui/range-calendar/range-calendar-day.svelte +6 -6
  163. package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +2 -2
  164. package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +2 -2
  165. package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +2 -2
  166. package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +2 -2
  167. package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +2 -2
  168. package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +2 -2
  169. package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +2 -2
  170. package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +2 -2
  171. package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +2 -2
  172. package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +2 -2
  173. package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +2 -2
  174. package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +8 -3
  175. package/dist/components/ui/select/index.d.ts +1 -1
  176. package/dist/components/ui/select/select-content.svelte.d.ts +6 -3
  177. package/dist/components/ui/select/select-group-heading.svelte.d.ts +2 -2
  178. package/dist/components/ui/select/select-item.svelte +1 -1
  179. package/dist/components/ui/select/select-item.svelte.d.ts +2 -2
  180. package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +2 -2
  181. package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +2 -2
  182. package/dist/components/ui/select/select-separator.svelte.d.ts +2 -2
  183. package/dist/components/ui/select/select-trigger.svelte +1 -1
  184. package/dist/components/ui/select/select-trigger.svelte.d.ts +2 -2
  185. package/dist/components/ui/separator/separator.svelte.d.ts +2 -2
  186. package/dist/components/ui/slider/slider.svelte +1 -1
  187. package/dist/components/ui/slider/slider.svelte.d.ts +2 -2
  188. package/dist/components/ui/sonner/sonner.svelte.d.ts +5 -4
  189. package/dist/components/ui/switch/switch.svelte +1 -1
  190. package/dist/components/ui/switch/switch.svelte.d.ts +2 -2
  191. package/dist/components/ui/table/table-body.svelte.d.ts +2 -2
  192. package/dist/components/ui/table/table-caption.svelte.d.ts +2 -2
  193. package/dist/components/ui/table/table-cell.svelte.d.ts +2 -2
  194. package/dist/components/ui/table/table-footer.svelte.d.ts +2 -2
  195. package/dist/components/ui/table/table-head.svelte.d.ts +2 -2
  196. package/dist/components/ui/table/table-header.svelte.d.ts +2 -2
  197. package/dist/components/ui/table/table-row.svelte.d.ts +2 -2
  198. package/dist/components/ui/table/table.svelte.d.ts +2 -2
  199. package/dist/components/ui/tabs/tabs-content.svelte +1 -1
  200. package/dist/components/ui/tabs/tabs-content.svelte.d.ts +2 -2
  201. package/dist/components/ui/tabs/tabs-list.svelte.d.ts +2 -2
  202. package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
  203. package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +2 -2
  204. package/dist/components/ui/textarea/textarea.svelte +1 -1
  205. package/dist/components/ui/textarea/textarea.svelte.d.ts +2 -2
  206. package/dist/components/ui/toggle/toggle.svelte +1 -1
  207. package/dist/components/ui/toggle/toggle.svelte.d.ts +8 -78
  208. package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +2 -2
  209. package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +5 -6
  210. package/dist/components/ui/tooltip/index.d.ts +4 -4
  211. package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +2 -2
  212. package/dist/components/widget-system/Moveable.svelte +100 -23
  213. package/dist/components/widget-system/Moveable.svelte.d.ts +3 -1
  214. package/dist/icons/CheckerBoardBackground.svelte.d.ts +3 -3
  215. package/dist/icons/OpacitySliderArrows.svelte.d.ts +3 -3
  216. package/dist/icons/eye-off.svg +1 -0
  217. package/dist/icons/eye.svg +1 -0
  218. package/dist/shad-editor/index.d.ts +1 -0
  219. package/dist/shad-editor/index.js +1 -0
  220. package/dist/styles/fonts.css +59 -47
  221. package/dist/styles/global.css +119 -52
  222. package/package.json +164 -36
  223. package/tailwind.config.ts +13 -6
@@ -10,8 +10,8 @@
10
10
  * - Uses Widgetic design system styling
11
11
  -->
12
12
  <script lang="ts">
13
- import { X, IconSearch } from '@widgetic/design-system/icons';
14
-
13
+ // import { X, IconSearch } from '@widgetic/design-system/icons';
14
+ import { X, IconSearch } from '../../icons';
15
15
  /**
16
16
  * Placeholder text for the search input
17
17
  */
@@ -79,7 +79,7 @@
79
79
  onKeydown(e);
80
80
  }}
81
81
  onpaste={onPaste}
82
- class="w-full h-[38px] border-0 bg-transparent focus:outline-none focus:ring-0 focus-visible:ring-0 pl-9 pr-8 subtext
82
+ class="w-full h-[38px] border-0 bg-transparent focus:outline-hidden focus:ring-0 focus-visible:ring-0 pl-9 pr-8 subtext
83
83
  transition-all duration-300
84
84
  {value ? 'text-[hsl(var(--grey7))]' : 'text-[hsl(var(--grey3))] placeholder:text-[hsl(var(--grey3))] placeholder:transition-colors placeholder:duration-300 group-hover:text-[hsl(var(--grey7))] group-hover:placeholder:text-[hsl(var(--grey7))] group-focus-within:text-[hsl(var(--grey7))] group-focus-within:placeholder:text-[hsl(var(--grey7)))'}
85
85
  {inputClass}"
@@ -104,11 +104,6 @@
104
104
  transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease !important;
105
105
  }
106
106
 
107
- input::-moz-placeholder {
108
- -moz-transition: color 300ms ease !important;
109
- transition: color 300ms ease !important;
110
- }
111
-
112
107
  input::placeholder {
113
108
  transition: color 300ms ease !important;
114
109
  }
@@ -1,14 +1,3 @@
1
- import { SvelteComponent } from 'svelte';
2
-
3
- export interface SearchInputProps {
4
- placeholder?: string;
5
- value?: string;
6
- onInput?: (event: Event) => Promise<void> | void;
7
- onKeydown?: (event: KeyboardEvent) => void;
8
- onClear?: () => void;
9
- onPaste?: (event: ClipboardEvent) => void;
10
- containerClass?: string;
11
- inputClass?: string;
12
- }
13
-
14
- export default class SearchInput extends SvelteComponent<SearchInputProps> {}
1
+ import SearchInput from './SearchInput.svelte';
2
+ export { SearchInput };
3
+ export default SearchInput;
@@ -1,4 +1,3 @@
1
1
  import SearchInput from './SearchInput.svelte';
2
-
3
2
  export { SearchInput };
4
- export default SearchInput;
3
+ export default SearchInput;
@@ -0,0 +1,14 @@
1
+ import { SvelteComponent } from 'svelte';
2
+
3
+ export interface SearchInputProps {
4
+ placeholder?: string;
5
+ value?: string;
6
+ onInput?: (event: Event) => Promise<void> | void;
7
+ onKeydown?: (event: KeyboardEvent) => void;
8
+ onClear?: () => void;
9
+ onPaste?: (event: ClipboardEvent) => void;
10
+ containerClass?: string;
11
+ inputClass?: string;
12
+ }
13
+
14
+ export default class SearchInput extends SvelteComponent<SearchInputProps> {}
@@ -0,0 +1,18 @@
1
+ # ShadEditor Component
2
+
3
+ This directory contains the Svelte components for a rich text editor based on Tiptap and styled with shadcn-svelte UI elements.
4
+
5
+ ## Origin
6
+
7
+ The code was originally scaffolded using version `0.0.7` of the now-deprecated `shadeditor` CLI tool.
8
+
9
+ * Original (deprecated) npm package: [https://www.npmjs.com/package/shadeditor](https://www.npmjs.com/package/shadeditor)
10
+ * The author appears to have continued development under a new name/project called "Edra": [https://edra.tsuzat.com/](https://edra.tsuzat.com/)
11
+
12
+ ## Current Status
13
+
14
+ The components in this directory have been adapted to work within the Widgetic Design System after its migration to **Tailwind CSS v4**.
15
+
16
+ **Important:** Do not attempt to update or reinstall this component using the original `shadeditor` CLI (`npx shadeditor init`) or the new one from edra, as it is designed for Tailwind v3 and will likely break the current Tailwind v4 configuration and component adaptations.
17
+
18
+ Use the component as it exists within this design system project.
@@ -3,13 +3,13 @@ export type ColorpickerProps = {
3
3
  hex: string;
4
4
  };
5
5
  declare const __propDef: {
6
- props: Record<string, never>;
6
+ props: ColorpickerProps;
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
9
9
  };
10
10
  slots: {};
11
11
  };
12
- type ColorpickerProps_ = typeof __propDef.props;
12
+ type ColorpickerProps_ = ColorpickerProps;
13
13
  export type ColorpickerEvents = typeof __propDef.events;
14
14
  export type ColorpickerSlots = typeof __propDef.slots;
15
15
  export default class Colorpicker extends SvelteComponentTyped<ColorpickerProps_, ColorpickerEvents, ColorpickerSlots> {
@@ -2,13 +2,13 @@ import { SvelteComponentTyped } from "svelte";
2
2
  export type CodeExtendedProps = NodeViewProps;
3
3
  import type { NodeViewProps } from '@tiptap/core';
4
4
  declare const __propDef: {
5
- props: Record<string, never>;
5
+ props: CodeExtendedProps;
6
6
  events: {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  };
9
9
  slots: {};
10
10
  };
11
- type CodeExtendedProps_ = typeof __propDef.props;
11
+ type CodeExtendedProps_ = CodeExtendedProps;
12
12
  export type CodeExtendedEvents = typeof __propDef.events;
13
13
  export type CodeExtendedSlots = typeof __propDef.slots;
14
14
  export default class CodeExtended extends SvelteComponentTyped<CodeExtendedProps_, CodeExtendedEvents, CodeExtendedSlots> {
@@ -136,7 +136,7 @@
136
136
  <input
137
137
  value={node.attrs.title}
138
138
  type="text"
139
- class="my-1 w-full bg-transparent text-center text-sm text-muted-foreground outline-none"
139
+ class="my-1 w-full bg-transparent text-center text-sm text-muted-foreground outline-hidden"
140
140
  onchange={(e) => {
141
141
  if (e.target === null) return;
142
142
  //@ts-ignore
@@ -2,13 +2,13 @@ import { SvelteComponentTyped } from "svelte";
2
2
  export type ImageExtendedComponentProps = NodeViewProps;
3
3
  import type { NodeViewProps } from '@tiptap/core';
4
4
  declare const __propDef: {
5
- props: Record<string, never>;
5
+ props: ImageExtendedComponentProps;
6
6
  events: {
7
7
  [evt: string]: CustomEvent<any>;
8
8
  };
9
9
  slots: {};
10
10
  };
11
- type ImageExtendedComponentProps_ = typeof __propDef.props;
11
+ type ImageExtendedComponentProps_ = ImageExtendedComponentProps;
12
12
  export type ImageExtendedComponentEvents = typeof __propDef.events;
13
13
  export type ImageExtendedComponentSlots = typeof __propDef.slots;
14
14
  export default class ImageExtendedComponent extends SvelteComponentTyped<ImageExtendedComponentProps_, ImageExtendedComponentEvents, ImageExtendedComponentSlots> {
@@ -1,13 +1,13 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  export type EditorToolbarProps = Props;
3
3
  declare const __propDef: {
4
- props: Record<string, never>;
4
+ props: EditorToolbarProps;
5
5
  events: {
6
6
  [evt: string]: CustomEvent<any>;
7
7
  };
8
8
  slots: {};
9
9
  };
10
- type EditorToolbarProps_ = typeof __propDef.props;
10
+ type EditorToolbarProps_ = EditorToolbarProps;
11
11
  export type EditorToolbarEvents = typeof __propDef.events;
12
12
  export type EditorToolbarSlots = typeof __propDef.slots;
13
13
  export default class EditorToolbar extends SvelteComponentTyped<EditorToolbarProps_, EditorToolbarEvents, EditorToolbarSlots> {
@@ -1,11 +1,14 @@
1
+ /* @config "../../../../tailwind.config.ts"; */
2
+ @reference "../../styles/global.css";
3
+
1
4
  .tiptap :where(p):not(:where([class~='not-prose'], [class~='not-prose'] *)) {
2
5
  margin-top: 0 !important;
3
6
  margin-bottom: 0 !important;
4
7
  }
5
8
 
6
9
  .tiptap code:not(pre code) {
7
- /* Remove the before and after pseudo elements */
8
- @apply rounded border bg-muted/50 p-1 before:content-[''] after:content-[''];
10
+ /* Remove the before and after pseudo elements, replace rounded with rounded-sm */
11
+ @apply rounded-sm border bg-muted/50 p-1 before:content-[''] after:content-[''];
9
12
  }
10
13
 
11
14
  .tiptap blockquote p {
@@ -54,7 +57,7 @@ ul[data-type='taskList'] li[data-checked='true'] div {
54
57
  }
55
58
 
56
59
  input[type='checkbox'] {
57
- @apply size-4 cursor-pointer rounded !important;
60
+ @apply !size-4 !cursor-pointer !rounded-sm;
58
61
  }
59
62
 
60
63
  ul[data-type='taskList'] ul[data-type='taskList'] {
@@ -67,7 +70,8 @@ ul[data-type='taskList'] ul[data-type='taskList'] {
67
70
  }
68
71
 
69
72
  .color::before {
70
- @apply mb-[0.15rem] mr-[0.1rem] inline-block size-[1rem] rounded border border-muted align-middle;
73
+ /* Replace rounded with rounded-md */
74
+ @apply mb-[0.15rem] mr-[0.1rem] inline-block size-[1rem] rounded-md border border-muted align-middle;
71
75
  background-color: var(--color);
72
76
  content: ' ';
73
77
  }
@@ -4,13 +4,13 @@ export type BlockQuoteProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: BlockQuoteProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type BlockQuoteProps_ = typeof __propDef.props;
13
+ type BlockQuoteProps_ = BlockQuoteProps;
14
14
  export type BlockQuoteEvents = typeof __propDef.events;
15
15
  export type BlockQuoteSlots = typeof __propDef.slots;
16
16
  export default class BlockQuote extends SvelteComponentTyped<BlockQuoteProps_, BlockQuoteEvents, BlockQuoteSlots> {
@@ -4,13 +4,13 @@ export type BoldProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: BoldProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type BoldProps_ = typeof __propDef.props;
13
+ type BoldProps_ = BoldProps;
14
14
  export type BoldEvents = typeof __propDef.events;
15
15
  export type BoldSlots = typeof __propDef.slots;
16
16
  export default class Bold extends SvelteComponentTyped<BoldProps_, BoldEvents, BoldSlots> {
@@ -4,13 +4,13 @@ export type ButtleListProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: ButtleListProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type ButtleListProps_ = typeof __propDef.props;
13
+ type ButtleListProps_ = ButtleListProps;
14
14
  export type ButtleListEvents = typeof __propDef.events;
15
15
  export type ButtleListSlots = typeof __propDef.slots;
16
16
  export default class ButtleList extends SvelteComponentTyped<ButtleListProps_, ButtleListEvents, ButtleListSlots> {
@@ -4,13 +4,13 @@ export type CodeProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: CodeProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type CodeProps_ = typeof __propDef.props;
13
+ type CodeProps_ = CodeProps;
14
14
  export type CodeEvents = typeof __propDef.events;
15
15
  export type CodeSlots = typeof __propDef.slots;
16
16
  export default class Code extends SvelteComponentTyped<CodeProps_, CodeEvents, CodeSlots> {
@@ -1,13 +1,13 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  export type HighlighterProps = Props;
3
3
  declare const __propDef: {
4
- props: Record<string, never>;
4
+ props: HighlighterProps;
5
5
  events: {
6
6
  [evt: string]: CustomEvent<any>;
7
7
  };
8
8
  slots: {};
9
9
  };
10
- type HighlighterProps_ = typeof __propDef.props;
10
+ type HighlighterProps_ = HighlighterProps;
11
11
  export type HighlighterEvents = typeof __propDef.events;
12
12
  export type HighlighterSlots = typeof __propDef.slots;
13
13
  export default class Highlighter extends SvelteComponentTyped<HighlighterProps_, HighlighterEvents, HighlighterSlots> {
@@ -4,13 +4,13 @@ export type ImageProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: ImageProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type ImageProps_ = typeof __propDef.props;
13
+ type ImageProps_ = ImageProps;
14
14
  export type ImageEvents = typeof __propDef.events;
15
15
  export type ImageSlots = typeof __propDef.slots;
16
16
  export default class Image extends SvelteComponentTyped<ImageProps_, ImageEvents, ImageSlots> {
@@ -4,13 +4,13 @@ export type ItalicProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: ItalicProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type ItalicProps_ = typeof __propDef.props;
13
+ type ItalicProps_ = ItalicProps;
14
14
  export type ItalicEvents = typeof __propDef.events;
15
15
  export type ItalicSlots = typeof __propDef.slots;
16
16
  export default class Italic extends SvelteComponentTyped<ItalicProps_, ItalicEvents, ItalicSlots> {
@@ -4,13 +4,13 @@ export type LinkProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: LinkProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type LinkProps_ = typeof __propDef.props;
13
+ type LinkProps_ = LinkProps;
14
14
  export type LinkEvents = typeof __propDef.events;
15
15
  export type LinkSlots = typeof __propDef.slots;
16
16
  export default class Link extends SvelteComponentTyped<LinkProps_, LinkEvents, LinkSlots> {
@@ -4,13 +4,13 @@ export type OrderedListProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: OrderedListProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type OrderedListProps_ = typeof __propDef.props;
13
+ type OrderedListProps_ = OrderedListProps;
14
14
  export type OrderedListEvents = typeof __propDef.events;
15
15
  export type OrderedListSlots = typeof __propDef.slots;
16
16
  export default class OrderedList extends SvelteComponentTyped<OrderedListProps_, OrderedListEvents, OrderedListSlots> {
@@ -4,13 +4,13 @@ export type QuickcolorProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: QuickcolorProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type QuickcolorProps_ = typeof __propDef.props;
13
+ type QuickcolorProps_ = QuickcolorProps;
14
14
  export type QuickcolorEvents = typeof __propDef.events;
15
15
  export type QuickcolorSlots = typeof __propDef.slots;
16
16
  export default class Quickcolor extends SvelteComponentTyped<QuickcolorProps_, QuickcolorEvents, QuickcolorSlots> {
@@ -4,13 +4,13 @@ export type RedoProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: RedoProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type RedoProps_ = typeof __propDef.props;
13
+ type RedoProps_ = RedoProps;
14
14
  export type RedoEvents = typeof __propDef.events;
15
15
  export type RedoSlots = typeof __propDef.slots;
16
16
  export default class Redo extends SvelteComponentTyped<RedoProps_, RedoEvents, RedoSlots> {
@@ -4,13 +4,13 @@ export type SearchReplaceProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: SearchReplaceProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type SearchReplaceProps_ = typeof __propDef.props;
13
+ type SearchReplaceProps_ = SearchReplaceProps;
14
14
  export type SearchReplaceEvents = typeof __propDef.events;
15
15
  export type SearchReplaceSlots = typeof __propDef.slots;
16
16
  export default class SearchReplace extends SvelteComponentTyped<SearchReplaceProps_, SearchReplaceEvents, SearchReplaceSlots> {
@@ -4,13 +4,13 @@ export type StrikethroughProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: StrikethroughProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type StrikethroughProps_ = typeof __propDef.props;
13
+ type StrikethroughProps_ = StrikethroughProps;
14
14
  export type StrikethroughEvents = typeof __propDef.events;
15
15
  export type StrikethroughSlots = typeof __propDef.slots;
16
16
  export default class Strikethrough extends SvelteComponentTyped<StrikethroughProps_, StrikethroughEvents, StrikethroughSlots> {
@@ -4,13 +4,13 @@ export type SubscriptProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: SubscriptProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type SubscriptProps_ = typeof __propDef.props;
13
+ type SubscriptProps_ = SubscriptProps;
14
14
  export type SubscriptEvents = typeof __propDef.events;
15
15
  export type SubscriptSlots = typeof __propDef.slots;
16
16
  export default class Subscript extends SvelteComponentTyped<SubscriptProps_, SubscriptEvents, SubscriptSlots> {
@@ -4,13 +4,13 @@ export type SuperscriptProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: SuperscriptProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type SuperscriptProps_ = typeof __propDef.props;
13
+ type SuperscriptProps_ = SuperscriptProps;
14
14
  export type SuperscriptEvents = typeof __propDef.events;
15
15
  export type SuperscriptSlots = typeof __propDef.slots;
16
16
  export default class Superscript extends SvelteComponentTyped<SuperscriptProps_, SuperscriptEvents, SuperscriptSlots> {
@@ -75,7 +75,7 @@
75
75
  </DropdownMenu.Item>
76
76
  <DropdownMenu.Item
77
77
  onclick={() => editor.chain().focus().deleteRow().run()}
78
- class="text-destructive hover:text-foreground data-[highlighted]:bg-destructive"
78
+ class="text-destructive hover:text-foreground data-highlighted:bg-destructive"
79
79
  >
80
80
  <span>Delete Row</span>
81
81
  </DropdownMenu.Item>
@@ -94,7 +94,7 @@
94
94
  </DropdownMenu.Item>
95
95
  <DropdownMenu.Item
96
96
  onclick={() => editor.chain().focus().deleteColumn().run()}
97
- class="text-destructive hover:text-foreground data-[highlighted]:bg-destructive"
97
+ class="text-destructive hover:text-foreground data-highlighted:bg-destructive"
98
98
  >
99
99
  <span>Delete</span>
100
100
  </DropdownMenu.Item>
@@ -102,7 +102,7 @@
102
102
  </DropdownMenu.Sub>
103
103
  <DropdownMenu.Item
104
104
  onclick={() => editor.chain().focus().deleteTable().run()}
105
- class="text-destructive hover:text-foreground data-[highlighted]:bg-destructive"
105
+ class="text-destructive hover:text-foreground data-highlighted:bg-destructive"
106
106
  >
107
107
  <span>Delete</span>
108
108
  </DropdownMenu.Item>
@@ -4,13 +4,13 @@ export type TableProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: TableProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type TableProps_ = typeof __propDef.props;
13
+ type TableProps_ = TableProps;
14
14
  export type TableEvents = typeof __propDef.events;
15
15
  export type TableSlots = typeof __propDef.slots;
16
16
  export default class Table extends SvelteComponentTyped<TableProps_, TableEvents, TableSlots> {
@@ -4,13 +4,13 @@ export type TaskListProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: TaskListProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type TaskListProps_ = typeof __propDef.props;
13
+ type TaskListProps_ = TaskListProps;
14
14
  export type TaskListEvents = typeof __propDef.events;
15
15
  export type TaskListSlots = typeof __propDef.slots;
16
16
  export default class TaskList extends SvelteComponentTyped<TaskListProps_, TaskListEvents, TaskListSlots> {
@@ -78,7 +78,7 @@
78
78
  >
79
79
  <Pilcrow /> Paragraph
80
80
  {#if editor.isActive('paragraph')}
81
- <Check class="absolute right-2 !size-3 text-muted-foreground" />
81
+ <Check class="absolute right-2 size-3! text-muted-foreground" />
82
82
  {/if}
83
83
  </DropdownMenu.Item>
84
84
  <DropdownMenu.Item
@@ -4,13 +4,13 @@ export type TextProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: TextProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type TextProps_ = typeof __propDef.props;
13
+ type TextProps_ = TextProps;
14
14
  export type TextEvents = typeof __propDef.events;
15
15
  export type TextSlots = typeof __propDef.slots;
16
16
  export default class Text extends SvelteComponentTyped<TextProps_, TextEvents, TextSlots> {
@@ -4,13 +4,13 @@ export type TextalignProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: TextalignProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type TextalignProps_ = typeof __propDef.props;
13
+ type TextalignProps_ = TextalignProps;
14
14
  export type TextalignEvents = typeof __propDef.events;
15
15
  export type TextalignSlots = typeof __propDef.slots;
16
16
  export default class Textalign extends SvelteComponentTyped<TextalignProps_, TextalignEvents, TextalignSlots> {
@@ -1,13 +1,13 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  export type TextcolorProps = Props;
3
3
  declare const __propDef: {
4
- props: Record<string, never>;
4
+ props: TextcolorProps;
5
5
  events: {
6
6
  [evt: string]: CustomEvent<any>;
7
7
  };
8
8
  slots: {};
9
9
  };
10
- type TextcolorProps_ = typeof __propDef.props;
10
+ type TextcolorProps_ = TextcolorProps;
11
11
  export type TextcolorEvents = typeof __propDef.events;
12
12
  export type TextcolorSlots = typeof __propDef.slots;
13
13
  export default class Textcolor extends SvelteComponentTyped<TextcolorProps_, TextcolorEvents, TextcolorSlots> {
@@ -4,13 +4,13 @@ export type UnderlineProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: UnderlineProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type UnderlineProps_ = typeof __propDef.props;
13
+ type UnderlineProps_ = UnderlineProps;
14
14
  export type UnderlineEvents = typeof __propDef.events;
15
15
  export type UnderlineSlots = typeof __propDef.slots;
16
16
  export default class Underline extends SvelteComponentTyped<UnderlineProps_, UnderlineEvents, UnderlineSlots> {
@@ -4,13 +4,13 @@ export type UndoProps = {
4
4
  };
5
5
  import { type Editor } from '@tiptap/core';
6
6
  declare const __propDef: {
7
- props: Record<string, never>;
7
+ props: UndoProps;
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
10
10
  };
11
11
  slots: {};
12
12
  };
13
- type UndoProps_ = typeof __propDef.props;
13
+ type UndoProps_ = UndoProps;
14
14
  export type UndoEvents = typeof __propDef.events;
15
15
  export type UndoSlots = typeof __propDef.slots;
16
16
  export default class Undo extends SvelteComponentTyped<UndoProps_, UndoEvents, UndoSlots> {
@@ -1,3 +1,6 @@
1
+ /* @config "../../../../tailwind.config.ts"; */
2
+ @reference "../../styles/global.css";
3
+
1
4
  /* One Dark and Light Theme for Highlight.js using Tailwind CSS */
2
5
  .tiptap pre code {
3
6
  @apply text-[#383a42] dark:text-[#abb2bf];
@@ -67,7 +67,7 @@
67
67
  editorProps: {
68
68
  attributes: {
69
69
  class:
70
- 'm-auto p-2 focus:outline-none flex-1 prose text-foreground min-w-full max-h-full overflow-auto dark:prose-invert *:my-2'
70
+ 'm-auto p-2 focus:outline-hidden flex-1 prose text-foreground min-w-full max-h-full overflow-auto dark:prose-invert *:my-2'
71
71
  }
72
72
  },
73
73
  extensions: [