@yoopta/themes-material 6.0.0-beta.1

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 (101) hide show
  1. package/LICENSE +21 -0
  2. package/dist/accordion/elements/accordion-item-content.d.ts +3 -0
  3. package/dist/accordion/elements/accordion-item-content.d.ts.map +1 -0
  4. package/dist/accordion/elements/accordion-item-heading.d.ts +3 -0
  5. package/dist/accordion/elements/accordion-item-heading.d.ts.map +1 -0
  6. package/dist/accordion/elements/accordion-list-item.d.ts +3 -0
  7. package/dist/accordion/elements/accordion-list-item.d.ts.map +1 -0
  8. package/dist/accordion/elements/accordion-list.d.ts +3 -0
  9. package/dist/accordion/elements/accordion-list.d.ts.map +1 -0
  10. package/dist/accordion/index.d.ts +15 -0
  11. package/dist/accordion/index.d.ts.map +1 -0
  12. package/dist/blockquote/elements/blockquote.d.ts +3 -0
  13. package/dist/blockquote/elements/blockquote.d.ts.map +1 -0
  14. package/dist/blockquote/index.d.ts +6 -0
  15. package/dist/blockquote/index.d.ts.map +1 -0
  16. package/dist/callout/elements/callout.d.ts +3 -0
  17. package/dist/callout/elements/callout.d.ts.map +1 -0
  18. package/dist/callout/index.d.ts +6 -0
  19. package/dist/callout/index.d.ts.map +1 -0
  20. package/dist/code/elements/code.d.ts +3 -0
  21. package/dist/code/elements/code.d.ts.map +1 -0
  22. package/dist/code/elements/language-select.d.ts +13 -0
  23. package/dist/code/elements/language-select.d.ts.map +1 -0
  24. package/dist/code/elements/theme-select.d.ts +13 -0
  25. package/dist/code/elements/theme-select.d.ts.map +1 -0
  26. package/dist/code/index.d.ts +7 -0
  27. package/dist/code/index.d.ts.map +1 -0
  28. package/dist/headings/heading-one/elements/heading-one.d.ts +3 -0
  29. package/dist/headings/heading-one/elements/heading-one.d.ts.map +1 -0
  30. package/dist/headings/heading-one/index.d.ts +6 -0
  31. package/dist/headings/heading-one/index.d.ts.map +1 -0
  32. package/dist/headings/heading-three/elements/heading-three.d.ts +3 -0
  33. package/dist/headings/heading-three/elements/heading-three.d.ts.map +1 -0
  34. package/dist/headings/heading-three/index.d.ts +6 -0
  35. package/dist/headings/heading-three/index.d.ts.map +1 -0
  36. package/dist/headings/heading-two/elements/heading-two.d.ts +3 -0
  37. package/dist/headings/heading-two/elements/heading-two.d.ts.map +1 -0
  38. package/dist/headings/heading-two/index.d.ts +6 -0
  39. package/dist/headings/heading-two/index.d.ts.map +1 -0
  40. package/dist/headings/index.d.ts +18 -0
  41. package/dist/headings/index.d.ts.map +1 -0
  42. package/dist/image/elements/image/image-element.d.ts +3 -0
  43. package/dist/image/elements/image/image-element.d.ts.map +1 -0
  44. package/dist/image/elements/image/image-inline-toolbar-settings.d.ts +10 -0
  45. package/dist/image/elements/image/image-inline-toolbar-settings.d.ts.map +1 -0
  46. package/dist/image/elements/image/image-inline-toolbar.d.ts +12 -0
  47. package/dist/image/elements/image/image-inline-toolbar.d.ts.map +1 -0
  48. package/dist/image/elements/image/image-placeholder.d.ts +18 -0
  49. package/dist/image/elements/image/image-placeholder.d.ts.map +1 -0
  50. package/dist/image/elements/image/image-render.d.ts +15 -0
  51. package/dist/image/elements/image/image-render.d.ts.map +1 -0
  52. package/dist/image/index.d.ts +6 -0
  53. package/dist/image/index.d.ts.map +1 -0
  54. package/dist/image/types.d.ts +14 -0
  55. package/dist/image/types.d.ts.map +1 -0
  56. package/dist/index.d.ts +13 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +161 -0
  59. package/dist/link/elements/link/link-element.d.ts +4 -0
  60. package/dist/link/elements/link/link-element.d.ts.map +1 -0
  61. package/dist/link/elements/link/link-hover-edit.d.ts +16 -0
  62. package/dist/link/elements/link/link-hover-edit.d.ts.map +1 -0
  63. package/dist/link/elements/link/link-hover-popover.d.ts +12 -0
  64. package/dist/link/elements/link/link-hover-popover.d.ts.map +1 -0
  65. package/dist/link/index.d.ts +6 -0
  66. package/dist/link/index.d.ts.map +1 -0
  67. package/dist/lists/bulleted-list/elements/bulleted-list-item.d.ts +3 -0
  68. package/dist/lists/bulleted-list/elements/bulleted-list-item.d.ts.map +1 -0
  69. package/dist/lists/bulleted-list/elements/bulleted-list.d.ts +3 -0
  70. package/dist/lists/bulleted-list/elements/bulleted-list.d.ts.map +1 -0
  71. package/dist/lists/bulleted-list/index.d.ts +9 -0
  72. package/dist/lists/bulleted-list/index.d.ts.map +1 -0
  73. package/dist/lists/index.d.ts +27 -0
  74. package/dist/lists/index.d.ts.map +1 -0
  75. package/dist/lists/numbered-list/elements/numbered-list-item.d.ts +3 -0
  76. package/dist/lists/numbered-list/elements/numbered-list-item.d.ts.map +1 -0
  77. package/dist/lists/numbered-list/elements/numbered-list.d.ts +3 -0
  78. package/dist/lists/numbered-list/elements/numbered-list.d.ts.map +1 -0
  79. package/dist/lists/numbered-list/index.d.ts +9 -0
  80. package/dist/lists/numbered-list/index.d.ts.map +1 -0
  81. package/dist/lists/todo-list/elements/todo-list-item.d.ts +3 -0
  82. package/dist/lists/todo-list/elements/todo-list-item.d.ts.map +1 -0
  83. package/dist/lists/todo-list/elements/todo-list.d.ts +3 -0
  84. package/dist/lists/todo-list/elements/todo-list.d.ts.map +1 -0
  85. package/dist/lists/todo-list/index.d.ts +9 -0
  86. package/dist/lists/todo-list/index.d.ts.map +1 -0
  87. package/dist/paragraph/elements/paragraph.d.ts +3 -0
  88. package/dist/paragraph/elements/paragraph.d.ts.map +1 -0
  89. package/dist/paragraph/index.d.ts +6 -0
  90. package/dist/paragraph/index.d.ts.map +1 -0
  91. package/dist/table/elements/table-data-cell.d.ts +3 -0
  92. package/dist/table/elements/table-data-cell.d.ts.map +1 -0
  93. package/dist/table/elements/table-row.d.ts +3 -0
  94. package/dist/table/elements/table-row.d.ts.map +1 -0
  95. package/dist/table/elements/table.d.ts +3 -0
  96. package/dist/table/elements/table.d.ts.map +1 -0
  97. package/dist/table/index.d.ts +12 -0
  98. package/dist/table/index.d.ts.map +1 -0
  99. package/dist/withMaterialUI.d.ts +31 -0
  100. package/dist/withMaterialUI.d.ts.map +1 -0
  101. package/package.json +48 -0
@@ -0,0 +1,4 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ declare const Link: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Link };
4
+ //# sourceMappingURL=link-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-element.d.ts","sourceRoot":"","sources":["../../../../src/link/elements/link/link-element.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAkB/D,QAAA,MAAM,IAAI,UAAW,wBAAwB,4CAiF5C,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ type LinkHoverEditProps = {
3
+ textInputRef: React.RefObject<HTMLInputElement>;
4
+ urlInputRef: React.RefObject<HTMLInputElement>;
5
+ editedText: string;
6
+ editedUrl: string;
7
+ onChangeLinkText: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
+ onChangeLinkUrl: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
+ onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
10
+ saveEdit: (e: React.MouseEvent) => void;
11
+ cancelEdit: (e: React.MouseEvent) => void;
12
+ deleteLink: (e: React.MouseEvent) => void;
13
+ };
14
+ declare const LinkHoverEdit: ({ textInputRef, urlInputRef, editedText, editedUrl, onChangeLinkText, onChangeLinkUrl, onKeyDown, saveEdit, cancelEdit, deleteLink, }: LinkHoverEditProps) => import("react/jsx-runtime").JSX.Element;
15
+ export { LinkHoverEdit };
16
+ //# sourceMappingURL=link-hover-edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-hover-edit.d.ts","sourceRoot":"","sources":["../../../../src/link/elements/link/link-hover-edit.tsx"],"names":[],"mappings":";AAQA,KAAK,kBAAkB,GAAG;IACxB,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAChD,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACnE,eAAe,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAClE,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC9D,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC1C,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,QAAA,MAAM,aAAa,0IAWhB,kBAAkB,4CAyDpB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import type { LinkElementProps } from '@yoopta/link';
3
+ type LinkHoverPopoverProps = {
4
+ elementProps: LinkElementProps;
5
+ linkText: string;
6
+ onUpdate: (props: Partial<LinkElementProps>, newText?: string) => void;
7
+ onDelete: () => void;
8
+ children: React.ReactNode;
9
+ };
10
+ export declare const LinkHoverPopover: ({ elementProps, linkText, onUpdate, onDelete, children, }: LinkHoverPopoverProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=link-hover-popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-hover-popover.d.ts","sourceRoot":"","sources":["../../../../src/link/elements/link/link-hover-popover.tsx"],"names":[],"mappings":";AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAMrD,KAAK,qBAAqB,GAAG;IAC3B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACvE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,8DAM1B,qBAAqB,4CA4NvB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const LinkUI: {
2
+ link: {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/link/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;CAIlB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const BulletedListItem: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=bulleted-list-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulleted-list-item.d.ts","sourceRoot":"","sources":["../../../../src/lists/bulleted-list/elements/bulleted-list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,gBAAgB,UAAW,wBAAwB,4CAc/D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const BulletedList: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=bulleted-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulleted-list.d.ts","sourceRoot":"","sources":["../../../../src/lists/bulleted-list/elements/bulleted-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,YAAY,UAAW,wBAAwB,4CAkB3D,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const BulletedListUI: {
2
+ 'bulleted-list': {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ 'bulleted-list-item': {
6
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lists/bulleted-list/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;;;;;CAO1B,CAAC"}
@@ -0,0 +1,27 @@
1
+ export declare const ListsUI: {
2
+ BulletedList: {
3
+ 'bulleted-list': {
4
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
5
+ };
6
+ 'bulleted-list-item': {
7
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
8
+ };
9
+ };
10
+ NumberedList: {
11
+ 'numbered-list': {
12
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
13
+ };
14
+ 'numbered-list-item': {
15
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
16
+ };
17
+ };
18
+ TodoList: {
19
+ 'todo-list': {
20
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
21
+ };
22
+ 'todo-list-item': {
23
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
24
+ };
25
+ };
26
+ };
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lists/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;CAInB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const NumberedListItem: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=numbered-list-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numbered-list-item.d.ts","sourceRoot":"","sources":["../../../../src/lists/numbered-list/elements/numbered-list-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,gBAAgB,UAAW,wBAAwB,4CAc/D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const NumberedList: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=numbered-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numbered-list.d.ts","sourceRoot":"","sources":["../../../../src/lists/numbered-list/elements/numbered-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,YAAY,UAAW,wBAAwB,4CAkB3D,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const NumberedListUI: {
2
+ 'numbered-list': {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ 'numbered-list-item': {
6
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lists/numbered-list/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;;;;;;CAO1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const TodoListItem: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=todo-list-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todo-list-item.d.ts","sourceRoot":"","sources":["../../../../src/lists/todo-list/elements/todo-list-item.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAgB,MAAM,gBAAgB,CAAC;AAK7E,eAAO,MAAM,YAAY,UAAW,wBAAwB,4CAiE3D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const TodoList: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=todo-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"todo-list.d.ts","sourceRoot":"","sources":["../../../../src/lists/todo-list/elements/todo-list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,QAAQ,UAAW,wBAAwB,4CAkBvD,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const TodoListUI: {
2
+ 'todo-list': {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ 'todo-list-item': {
6
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lists/todo-list/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const Paragraph: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=paragraph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/paragraph/elements/paragraph.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,SAAS,UAAW,wBAAwB,4CAiBxD,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const ParagraphUI: {
2
+ paragraph: {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ };
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/paragraph/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;CAIvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const TableDataCell: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=table-data-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-data-cell.d.ts","sourceRoot":"","sources":["../../../src/table/elements/table-data-cell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAgB,MAAM,gBAAgB,CAAC;AAK7E,eAAO,MAAM,aAAa,UAAW,wBAAwB,4CAkF5D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const TableRow: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=table-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-row.d.ts","sourceRoot":"","sources":["../../../src/table/elements/table-row.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,QAAQ,UAAW,wBAAwB,4CAcvD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const Table: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/table/elements/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,KAAK,UAAW,wBAAwB,4CAiBpD,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const TableUI: {
2
+ table: {
3
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
4
+ };
5
+ 'table-row': {
6
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
7
+ };
8
+ 'table-data-cell': {
9
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
10
+ };
11
+ };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/table/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;;;;;;;;CAUnB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { YooptaPlugin } from '@yoopta/editor';
2
+ type PluginWithUI = YooptaPlugin<any, any>;
3
+ type PluginExtensions = Record<string, {
4
+ injectElementsFromPlugins?: PluginWithUI[];
5
+ events?: any;
6
+ options?: any;
7
+ elements?: any;
8
+ }>;
9
+ /**
10
+ * Applies Material UI components to plugins automatically
11
+ *
12
+ * @param plugins - Array of plugins to apply UI to
13
+ * @param extensions - Optional object with additional extensions per plugin type
14
+ * @returns Array of plugins with Material UI applied
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * const plugins = withMaterialUI([
19
+ * Accordion,
20
+ * Paragraph,
21
+ * Headings.HeadingOne,
22
+ * ], {
23
+ * Accordion: {
24
+ * injectElementsFromPlugins: [Paragraph, Headings.HeadingOne]
25
+ * }
26
+ * });
27
+ * ```
28
+ */
29
+ export declare function withMaterialUI(plugins: PluginWithUI[], extensions?: PluginExtensions): PluginWithUI[];
30
+ export {};
31
+ //# sourceMappingURL=withMaterialUI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withMaterialUI.d.ts","sourceRoot":"","sources":["../src/withMaterialUI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAanD,KAAK,YAAY,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAE3C,KAAK,gBAAgB,GAAG,MAAM,CAC5B,MAAM,EACN;IACE,yBAAyB,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3C,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,YAAY,EAAE,EACvB,UAAU,CAAC,EAAE,gBAAgB,GAC5B,YAAY,EAAE,CA6ChB"}
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@yoopta/themes-material",
3
+ "version": "6.0.0-beta.1",
4
+ "description": "Material UI theme for Yoopta Editor plugins",
5
+ "author": "Darginec05 <devopsbanda@gmail.com>",
6
+ "homepage": "https://github.com/Darginec05/Yoopta-Editor#readme",
7
+ "license": "MIT",
8
+ "main": "dist/index.js",
9
+ "type": "module",
10
+ "module": "dist/index.js",
11
+ "types": "./dist/index.d.ts",
12
+ "files": [
13
+ "dist/"
14
+ ],
15
+ "peerDependencies": {
16
+ "@yoopta/editor": ">=4.9.9",
17
+ "react": ">=18.2.0",
18
+ "react-dom": ">=18.2.0"
19
+ },
20
+ "dependencies": {
21
+ "@emotion/react": "^11.11.4",
22
+ "@emotion/styled": "^11.11.5",
23
+ "@mui/icons-material": "^7.3.6",
24
+ "@mui/material": "^5.16.0",
25
+ "@yoopta/code": "^6.0.0-beta.1",
26
+ "@yoopta/image": "^6.0.0-beta.1",
27
+ "copy-to-clipboard": "^3.3.3",
28
+ "react-rnd": "^10.5.2"
29
+ },
30
+ "publishConfig": {
31
+ "registry": "https://registry.npmjs.org",
32
+ "access": "public"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/Darginec05/Yoopta-Editor.git"
37
+ },
38
+ "scripts": {
39
+ "test": "node ./__tests__/yoopta-themes-material.test.js",
40
+ "start": "rollup --config rollup.config.js --watch --bundleConfigAsCjs --environment NODE_ENV:development",
41
+ "prepublishOnly": "yarn build",
42
+ "build": "rollup --config rollup.config.js --bundleConfigAsCjs --environment NODE_ENV:production"
43
+ },
44
+ "bugs": {
45
+ "url": "https://github.com/Darginec05/Yoopta-Editor/issues"
46
+ },
47
+ "gitHead": "ff6a5ae2937a56e0d1820df29fdfd6356171786c"
48
+ }