@mdxeditor/editor 0.10.1 → 0.11.1-alpha.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 (293) hide show
  1. package/README.md +4 -3
  2. package/dist/FormatConstants.d.ts +9 -0
  3. package/dist/FormatConstants.js +10 -0
  4. package/dist/MDXEditor.d.ts +60 -0
  5. package/dist/MDXEditor.js +105 -0
  6. package/dist/directive-editors/AdmonitionDirectiveDescriptor.d.ts +17 -0
  7. package/dist/directive-editors/AdmonitionDirectiveDescriptor.js +29 -0
  8. package/dist/directive-editors/GenericDirectiveEditor.d.ts +8 -0
  9. package/dist/directive-editors/GenericDirectiveEditor.js +32 -0
  10. package/dist/exportMarkdownFromLexical.d.ts +114 -0
  11. package/dist/exportMarkdownFromLexical.js +199 -0
  12. package/dist/gurx/index.d.ts +3 -0
  13. package/dist/gurx/react.d.ts +121 -0
  14. package/dist/gurx/react.js +198 -0
  15. package/dist/gurx/realm.d.ts +133 -0
  16. package/dist/gurx/realm.js +491 -0
  17. package/dist/gurx/realmFactory.d.ts +58 -0
  18. package/dist/gurx/realmFactory.js +32 -0
  19. package/dist/icons/add_column.svg.js +8 -0
  20. package/dist/icons/add_photo.svg.js +8 -0
  21. package/dist/icons/add_row.svg.js +8 -0
  22. package/dist/icons/arrow_drop_down.svg.js +8 -0
  23. package/dist/icons/arrow_right.svg.js +8 -0
  24. package/dist/icons/check.svg.js +8 -0
  25. package/dist/icons/close.svg.js +8 -0
  26. package/dist/icons/code.svg.js +8 -0
  27. package/dist/icons/content_copy.svg.js +8 -0
  28. package/dist/icons/delete.svg.js +8 -0
  29. package/dist/icons/delete_small.svg.js +8 -0
  30. package/dist/icons/deployed_code.svg.js +8 -0
  31. package/dist/icons/difference.svg.js +8 -0
  32. package/dist/icons/edit.svg.js +8 -0
  33. package/dist/icons/emergency_home.svg.js +8 -0
  34. package/dist/icons/format_align_center.svg.js +8 -0
  35. package/dist/icons/format_align_left.svg.js +8 -0
  36. package/dist/icons/format_align_right.svg.js +8 -0
  37. package/dist/icons/format_bold.svg.js +8 -0
  38. package/dist/icons/format_italic.svg.js +8 -0
  39. package/dist/icons/format_list_bulleted.svg.js +8 -0
  40. package/dist/icons/format_list_numbered.svg.js +8 -0
  41. package/dist/icons/format_underlined.svg.js +8 -0
  42. package/dist/icons/frame_source.svg.js +8 -0
  43. package/dist/icons/frontmatter.svg.js +8 -0
  44. package/dist/icons/horizontal_rule.svg.js +8 -0
  45. package/dist/icons/insert_col_left.svg.js +8 -0
  46. package/dist/icons/insert_col_right.svg.js +8 -0
  47. package/dist/icons/insert_row_above.svg.js +8 -0
  48. package/dist/icons/insert_row_below.svg.js +8 -0
  49. package/dist/icons/link.svg.js +8 -0
  50. package/dist/icons/link_off.svg.js +8 -0
  51. package/dist/icons/markdown.svg.js +8 -0
  52. package/dist/icons/more_horiz.svg.js +8 -0
  53. package/dist/icons/open_in_new.svg.js +8 -0
  54. package/dist/icons/redo.svg.js +8 -0
  55. package/dist/icons/rich_text.svg.js +8 -0
  56. package/dist/icons/settings.svg.js +8 -0
  57. package/dist/icons/table.svg.js +8 -0
  58. package/dist/icons/undo.svg.js +8 -0
  59. package/dist/importMarkdownToLexical.d.ts +84 -0
  60. package/dist/importMarkdownToLexical.js +65 -0
  61. package/dist/index.d.ts +53 -1105
  62. package/dist/index.js +170 -72
  63. package/dist/jsx-editors/GenericJsxEditor.d.ts +8 -0
  64. package/dist/jsx-editors/GenericJsxEditor.js +56 -0
  65. package/dist/node_modules/react-diff-view/style/index.css.js +4 -0
  66. package/dist/plugins/codeblock/CodeBlockNode.d.ts +99 -0
  67. package/dist/plugins/codeblock/CodeBlockNode.js +155 -0
  68. package/dist/plugins/codeblock/CodeBlockVisitor.d.ts +4 -0
  69. package/dist/plugins/codeblock/CodeBlockVisitor.js +14 -0
  70. package/dist/plugins/codeblock/MdastCodeVisitor.d.ts +3 -0
  71. package/dist/plugins/codeblock/MdastCodeVisitor.js +16 -0
  72. package/dist/plugins/codeblock/index.d.ts +616 -0
  73. package/dist/plugins/codeblock/index.js +73 -0
  74. package/dist/plugins/codemirror/CodeMirrorEditor.d.ts +3 -0
  75. package/dist/plugins/codemirror/CodeMirrorEditor.js +33 -0
  76. package/dist/plugins/codemirror/index.d.ts +799 -0
  77. package/dist/plugins/codemirror/index.js +62 -0
  78. package/dist/plugins/core/LexicalLinebreakVisitor.d.ts +4 -0
  79. package/dist/plugins/core/LexicalLinebreakVisitor.js +10 -0
  80. package/dist/plugins/core/LexicalParagraphVisitor.d.ts +4 -0
  81. package/dist/plugins/core/LexicalParagraphVisitor.js +10 -0
  82. package/dist/plugins/core/LexicalRootVisitor.d.ts +4 -0
  83. package/dist/plugins/core/LexicalRootVisitor.js +10 -0
  84. package/dist/plugins/core/LexicalTextVisitor.d.ts +5 -0
  85. package/dist/plugins/core/LexicalTextVisitor.js +85 -0
  86. package/dist/plugins/core/MdastFormattingVisitor.d.ts +4 -0
  87. package/dist/plugins/core/MdastFormattingVisitor.js +36 -0
  88. package/dist/plugins/core/MdastInlineCodeVisitor.d.ts +3 -0
  89. package/dist/plugins/core/MdastInlineCodeVisitor.js +11 -0
  90. package/dist/plugins/core/MdastParagraphVisitor.d.ts +3 -0
  91. package/dist/plugins/core/MdastParagraphVisitor.js +15 -0
  92. package/dist/plugins/core/MdastRootVisitor.d.ts +3 -0
  93. package/dist/plugins/core/MdastRootVisitor.js +9 -0
  94. package/dist/plugins/core/MdastTextVisitor.d.ts +3 -0
  95. package/dist/plugins/core/MdastTextVisitor.js +10 -0
  96. package/dist/plugins/core/NestedLexicalEditor.d.ts +96 -0
  97. package/dist/plugins/core/NestedLexicalEditor.js +181 -0
  98. package/dist/plugins/core/PropertyPopover.d.ts +23 -0
  99. package/dist/plugins/core/PropertyPopover.js +36 -0
  100. package/dist/plugins/core/SharedHistoryPlugin.d.ts +2 -0
  101. package/dist/plugins/core/SharedHistoryPlugin.js +10 -0
  102. package/dist/plugins/core/index.d.ts +423 -0
  103. package/dist/plugins/core/index.js +346 -0
  104. package/dist/plugins/core/ui/PopoverUtils.d.ts +4 -0
  105. package/dist/plugins/core/ui/PopoverUtils.js +17 -0
  106. package/dist/plugins/diff-source/DiffSourceWrapper.d.ts +4 -0
  107. package/dist/plugins/diff-source/DiffSourceWrapper.js +11 -0
  108. package/dist/plugins/diff-source/DiffViewer.d.ts +2 -0
  109. package/dist/plugins/diff-source/DiffViewer.js +18 -0
  110. package/dist/plugins/diff-source/SourceEditor.d.ts +2 -0
  111. package/dist/plugins/diff-source/SourceEditor.js +27 -0
  112. package/dist/plugins/diff-source/index.d.ts +543 -0
  113. package/dist/plugins/diff-source/index.js +55 -0
  114. package/dist/plugins/directives/DirectiveNode.d.ts +51 -0
  115. package/dist/plugins/directives/DirectiveNode.js +92 -0
  116. package/dist/plugins/directives/DirectiveVisitor.d.ts +4 -0
  117. package/dist/plugins/directives/DirectiveVisitor.js +10 -0
  118. package/dist/plugins/directives/MdastDirectiveVisitor.d.ts +3 -0
  119. package/dist/plugins/directives/MdastDirectiveVisitor.js +13 -0
  120. package/dist/plugins/directives/index.d.ts +602 -0
  121. package/dist/plugins/directives/index.js +53 -0
  122. package/dist/plugins/frontmatter/FrontmatterEditor.d.ts +6 -0
  123. package/dist/plugins/frontmatter/FrontmatterEditor.js +69 -0
  124. package/dist/plugins/frontmatter/FrontmatterNode.d.ts +35 -0
  125. package/dist/plugins/frontmatter/FrontmatterNode.js +71 -0
  126. package/dist/plugins/frontmatter/LexicalFrontmatterVisitor.d.ts +4 -0
  127. package/dist/plugins/frontmatter/LexicalFrontmatterVisitor.js +10 -0
  128. package/dist/plugins/frontmatter/MdastFrontmatterVisitor.d.ts +3 -0
  129. package/dist/plugins/frontmatter/MdastFrontmatterVisitor.js +10 -0
  130. package/dist/plugins/frontmatter/index.d.ts +522 -0
  131. package/dist/plugins/frontmatter/index.js +53 -0
  132. package/dist/plugins/headings/LexicalHeadingVisitor.d.ts +4 -0
  133. package/dist/plugins/headings/LexicalHeadingVisitor.js +11 -0
  134. package/dist/plugins/headings/MdastHeadingVisitor.d.ts +3 -0
  135. package/dist/plugins/headings/MdastHeadingVisitor.js +10 -0
  136. package/dist/plugins/headings/index.d.ts +117 -0
  137. package/dist/plugins/headings/index.js +20 -0
  138. package/dist/plugins/image/ImageEditor.d.ts +9 -0
  139. package/dist/{ImageEditor-8db2f131.js → plugins/image/ImageEditor.js} +40 -52
  140. package/dist/plugins/image/ImageNode.d.ts +63 -0
  141. package/dist/plugins/image/ImageNode.js +136 -0
  142. package/dist/plugins/image/ImageResizer.d.ts +18 -0
  143. package/dist/plugins/image/ImageResizer.js +214 -0
  144. package/dist/plugins/image/LexicalImageVisitor.d.ts +4 -0
  145. package/dist/plugins/image/LexicalImageVisitor.js +36 -0
  146. package/dist/plugins/image/MdastImageVisitor.d.ts +6 -0
  147. package/dist/plugins/image/MdastImageVisitor.js +87 -0
  148. package/dist/plugins/image/index.d.ts +556 -0
  149. package/dist/plugins/image/index.js +249 -0
  150. package/dist/plugins/jsx/LexicalJsxNode.d.ts +54 -0
  151. package/dist/plugins/jsx/LexicalJsxNode.js +102 -0
  152. package/dist/plugins/jsx/LexicalJsxVisitor.d.ts +4 -0
  153. package/dist/plugins/jsx/LexicalJsxVisitor.js +12 -0
  154. package/dist/plugins/jsx/MdastMdxJsEsmVisitor.d.ts +3 -0
  155. package/dist/plugins/jsx/MdastMdxJsEsmVisitor.js +8 -0
  156. package/dist/plugins/jsx/MdastMdxJsxElementVisitor.d.ts +3 -0
  157. package/dist/plugins/jsx/MdastMdxJsxElementVisitor.js +12 -0
  158. package/dist/plugins/jsx/index.d.ts +598 -0
  159. package/dist/plugins/jsx/index.js +59 -0
  160. package/dist/plugins/link/LexicalLinkVisitor.d.ts +4 -0
  161. package/dist/plugins/link/LexicalLinkVisitor.js +10 -0
  162. package/dist/plugins/link/MdastLinkVisitor.d.ts +3 -0
  163. package/dist/plugins/link/MdastLinkVisitor.js +14 -0
  164. package/dist/plugins/link/index.d.ts +67 -0
  165. package/dist/plugins/link/index.js +22 -0
  166. package/dist/plugins/link-dialog/LinkDialog.d.ts +12 -0
  167. package/dist/plugins/link-dialog/LinkDialog.js +174 -0
  168. package/dist/plugins/link-dialog/index.d.ts +507 -0
  169. package/dist/plugins/link-dialog/index.js +242 -0
  170. package/dist/plugins/lists/LexicalListItemVisitor.d.ts +4 -0
  171. package/dist/plugins/lists/LexicalListItemVisitor.js +22 -0
  172. package/dist/plugins/lists/LexicalListVisitor.d.ts +4 -0
  173. package/dist/plugins/lists/LexicalListVisitor.js +13 -0
  174. package/dist/plugins/lists/MdastListItemVisitor.d.ts +3 -0
  175. package/dist/plugins/lists/MdastListItemVisitor.js +10 -0
  176. package/dist/plugins/lists/MdastListVisitor.d.ts +3 -0
  177. package/dist/plugins/lists/MdastListVisitor.js +18 -0
  178. package/dist/plugins/lists/index.d.ts +532 -0
  179. package/dist/plugins/lists/index.js +111 -0
  180. package/dist/plugins/markdown-shortcut/index.d.ts +62 -0
  181. package/dist/plugins/markdown-shortcut/index.js +34 -0
  182. package/dist/plugins/quote/LexicalQuoteVisitor.d.ts +4 -0
  183. package/dist/plugins/quote/LexicalQuoteVisitor.js +12 -0
  184. package/dist/plugins/quote/MdastBlockQuoteVisitor.d.ts +3 -0
  185. package/dist/plugins/quote/MdastBlockQuoteVisitor.js +10 -0
  186. package/dist/plugins/quote/index.d.ts +360 -0
  187. package/dist/plugins/quote/index.js +26 -0
  188. package/dist/plugins/sandpack/SandpackEditor.d.ts +7 -0
  189. package/dist/plugins/sandpack/SandpackEditor.js +35 -0
  190. package/dist/plugins/sandpack/index.d.ts +838 -0
  191. package/dist/plugins/sandpack/index.js +93 -0
  192. package/dist/plugins/sandpack/useCodeMirrorRef.d.ts +4 -0
  193. package/dist/{useCodeMirrorRef-5356dfa5.js → plugins/sandpack/useCodeMirrorRef.js} +22 -10
  194. package/dist/plugins/table/LexicalTableVisitor.d.ts +4 -0
  195. package/dist/plugins/table/LexicalTableVisitor.js +10 -0
  196. package/dist/plugins/table/MdastTableVisitor.d.ts +3 -0
  197. package/dist/plugins/table/MdastTableVisitor.js +10 -0
  198. package/dist/plugins/table/TableEditor.d.ts +21 -0
  199. package/dist/plugins/table/TableEditor.js +384 -0
  200. package/dist/plugins/table/TableNode.d.ts +52 -0
  201. package/dist/plugins/table/TableNode.js +147 -0
  202. package/dist/plugins/table/index.d.ts +522 -0
  203. package/dist/plugins/table/index.js +59 -0
  204. package/dist/plugins/thematic-break/LexicalThematicBreakVisitor.d.ts +4 -0
  205. package/dist/plugins/thematic-break/LexicalThematicBreakVisitor.js +10 -0
  206. package/dist/plugins/thematic-break/MdastThematicBreakVisitor.d.ts +3 -0
  207. package/dist/plugins/thematic-break/MdastThematicBreakVisitor.js +10 -0
  208. package/dist/plugins/thematic-break/index.d.ts +522 -0
  209. package/dist/plugins/thematic-break/index.js +39 -0
  210. package/dist/plugins/toolbar/components/BlockTypeSelect.d.ts +6 -0
  211. package/dist/plugins/toolbar/components/BlockTypeSelect.js +52 -0
  212. package/dist/plugins/toolbar/components/BoldItalicUnderlineToggles.d.ts +5 -0
  213. package/dist/plugins/toolbar/components/BoldItalicUnderlineToggles.js +35 -0
  214. package/dist/plugins/toolbar/components/ChangeAdmonitionType.d.ts +6 -0
  215. package/dist/plugins/toolbar/components/ChangeAdmonitionType.js +30 -0
  216. package/dist/plugins/toolbar/components/ChangeCodeMirrorLanguage.d.ts +7 -0
  217. package/dist/plugins/toolbar/components/ChangeCodeMirrorLanguage.js +32 -0
  218. package/dist/plugins/toolbar/components/CodeToggle.d.ts +6 -0
  219. package/dist/plugins/toolbar/components/CodeToggle.js +20 -0
  220. package/dist/plugins/toolbar/components/CreateLink.d.ts +6 -0
  221. package/dist/plugins/toolbar/components/CreateLink.js +11 -0
  222. package/dist/plugins/toolbar/components/DiffSourceToggleWrapper.d.ts +18 -0
  223. package/dist/plugins/toolbar/components/DiffSourceToggleWrapper.js +27 -0
  224. package/dist/plugins/toolbar/components/InsertAdmonition.d.ts +6 -0
  225. package/dist/plugins/toolbar/components/InsertAdmonition.js +29 -0
  226. package/dist/plugins/toolbar/components/InsertCodeBlock.d.ts +7 -0
  227. package/dist/plugins/toolbar/components/InsertCodeBlock.js +20 -0
  228. package/dist/plugins/toolbar/components/InsertFrontmatter.d.ts +6 -0
  229. package/dist/plugins/toolbar/components/InsertFrontmatter.js +11 -0
  230. package/dist/plugins/toolbar/components/InsertImage.d.ts +6 -0
  231. package/dist/plugins/toolbar/components/InsertImage.js +23 -0
  232. package/dist/plugins/toolbar/components/InsertSandpack.d.ts +6 -0
  233. package/dist/plugins/toolbar/components/InsertSandpack.js +13 -0
  234. package/dist/plugins/toolbar/components/InsertTable.d.ts +6 -0
  235. package/dist/plugins/toolbar/components/InsertTable.js +20 -0
  236. package/dist/plugins/toolbar/components/InsertThematicBreak.d.ts +6 -0
  237. package/dist/plugins/toolbar/components/InsertThematicBreak.js +11 -0
  238. package/dist/plugins/toolbar/components/KitchenSinkToolbar.d.ts +7 -0
  239. package/dist/plugins/toolbar/components/KitchenSinkToolbar.js +58 -0
  240. package/dist/plugins/toolbar/components/ListsToggle.d.ts +7 -0
  241. package/dist/plugins/toolbar/components/ListsToggle.js +23 -0
  242. package/dist/plugins/toolbar/components/ShowSandpackInfo.d.ts +7 -0
  243. package/dist/plugins/toolbar/components/ShowSandpackInfo.js +32 -0
  244. package/dist/plugins/toolbar/components/UndoRedo.d.ts +5 -0
  245. package/dist/plugins/toolbar/components/UndoRedo.js +59 -0
  246. package/dist/plugins/toolbar/index.d.ts +427 -0
  247. package/dist/plugins/toolbar/index.js +39 -0
  248. package/dist/plugins/toolbar/primitives/DialogButton.d.ts +40 -0
  249. package/dist/plugins/toolbar/primitives/DialogButton.js +115 -0
  250. package/dist/plugins/toolbar/primitives/TooltipWrap.d.ts +8 -0
  251. package/dist/plugins/toolbar/primitives/TooltipWrap.js +12 -0
  252. package/dist/plugins/toolbar/primitives/select.d.ts +50 -0
  253. package/dist/plugins/toolbar/primitives/select.js +44 -0
  254. package/dist/plugins/toolbar/primitives/toolbar.d.ts +160 -0
  255. package/dist/plugins/toolbar/primitives/toolbar.js +111 -0
  256. package/dist/style.css +556 -249
  257. package/dist/styles/globals.css.js +4 -0
  258. package/dist/styles/lexical-theme.module.css.js +53 -0
  259. package/dist/styles/lexicalTheme.d.ts +2 -0
  260. package/dist/styles/lexicalTheme.js +28 -0
  261. package/dist/styles/ui.module.css.js +254 -0
  262. package/dist/utils/detectMac.d.ts +2 -0
  263. package/dist/utils/detectMac.js +6 -0
  264. package/dist/utils/fp.d.ts +47 -0
  265. package/dist/utils/fp.js +14 -0
  266. package/dist/utils/isPartOftheEditorUI.d.ts +1 -0
  267. package/dist/utils/isPartOftheEditorUI.js +12 -0
  268. package/dist/utils/lexicalHelpers.d.ts +11 -0
  269. package/dist/utils/lexicalHelpers.js +49 -0
  270. package/dist/utils/uuid4.d.ts +1 -0
  271. package/dist/utils/uuid4.js +10 -0
  272. package/dist/utils/voidEmitter.d.ts +14 -0
  273. package/dist/utils/voidEmitter.js +15 -0
  274. package/package.json +261 -14
  275. package/dist/CodeBlockEditor-02116cba.js +0 -79
  276. package/dist/CodeBlockEditor-1c7b46dc.cjs +0 -1
  277. package/dist/FrontmatterEditor-37a4c091.cjs +0 -1
  278. package/dist/FrontmatterEditor-988a8fb6.js +0 -118
  279. package/dist/ImageEditor-524159e9.cjs +0 -1
  280. package/dist/JsxEditor-606e9d86.js +0 -108
  281. package/dist/JsxEditor-98a94a9d.cjs +0 -1
  282. package/dist/LeafDirectiveEditor-38a73f5c.js +0 -59
  283. package/dist/LeafDirectiveEditor-dfa1ce78.cjs +0 -1
  284. package/dist/SandpackEditor-90425f26.cjs +0 -1
  285. package/dist/SandpackEditor-c771b4d0.js +0 -100
  286. package/dist/SourceEditor-19eb2c9e.js +0 -64
  287. package/dist/SourceEditor-46ed1f77.cjs +0 -1
  288. package/dist/TableEditor-4a993dab.cjs +0 -1
  289. package/dist/TableEditor-c28b3ca2.js +0 -426
  290. package/dist/index-1ab1a12e.js +0 -4363
  291. package/dist/index-8217810f.cjs +0 -1
  292. package/dist/index.cjs +0 -1
  293. package/dist/useCodeMirrorRef-7055e7de.cjs +0 -1
@@ -0,0 +1,491 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ import { tap } from "../utils/fp.js";
8
+ import { uuidv4 } from "../utils/uuid4.js";
9
+ function defaultComparator(current, next) {
10
+ return current === next;
11
+ }
12
+ class SetMap {
13
+ constructor() {
14
+ __publicField(this, "map", /* @__PURE__ */ new Map());
15
+ }
16
+ getOrCreate(key) {
17
+ let record = this.map.get(key);
18
+ if (!record) {
19
+ record = /* @__PURE__ */ new Set();
20
+ this.map.set(key, record);
21
+ }
22
+ return record;
23
+ }
24
+ get(key) {
25
+ return this.map.get(key);
26
+ }
27
+ use(key, cb) {
28
+ const set = this.get(key);
29
+ if (set !== void 0) {
30
+ cb(set);
31
+ }
32
+ }
33
+ delete(key) {
34
+ return this.map.delete(key);
35
+ }
36
+ }
37
+ class RefCount {
38
+ constructor(map = /* @__PURE__ */ new Map()) {
39
+ __publicField(this, "map");
40
+ this.map = map;
41
+ }
42
+ clone() {
43
+ return new RefCount(new Map(this.map));
44
+ }
45
+ increment(key) {
46
+ const counter = this.map.get(key) ?? 0;
47
+ this.map.set(key, counter + 1);
48
+ }
49
+ decrement(key, ifZero) {
50
+ let counter = this.map.get(key);
51
+ if (counter !== void 0) {
52
+ counter -= 1;
53
+ this.map.set(key, counter);
54
+ if (counter === 0) {
55
+ ifZero();
56
+ }
57
+ }
58
+ }
59
+ }
60
+ const NO_VALUE = Symbol("NO_VALUE");
61
+ function realm() {
62
+ const subscriptions = new SetMap();
63
+ const singletonSubscriptions = /* @__PURE__ */ new Map();
64
+ const graph = new SetMap();
65
+ const state = /* @__PURE__ */ new Map();
66
+ const distinctNodes = /* @__PURE__ */ new Map();
67
+ const labels = {};
68
+ function node(value = NO_VALUE, distinct = false) {
69
+ const key = uuidv4();
70
+ if (value !== NO_VALUE) {
71
+ state.set(key, value);
72
+ }
73
+ if (distinct !== false) {
74
+ distinctNodes.set(key, distinct === true ? defaultComparator : distinct);
75
+ }
76
+ return { key, toString: () => key };
77
+ }
78
+ function subSingle({ key }, subscription) {
79
+ const nodeSubscriptions = subscriptions.getOrCreate(key);
80
+ nodeSubscriptions.add(subscription);
81
+ return () => nodeSubscriptions.delete(subscription);
82
+ }
83
+ function singletonSub({ key }, subscription) {
84
+ singletonSubscriptions.set(key, subscription);
85
+ return () => singletonSubscriptions.delete(key);
86
+ }
87
+ function singletonSubKey(key, subscription) {
88
+ return singletonSub(labels[key], subscription);
89
+ }
90
+ function resetSingletonSubs() {
91
+ singletonSubscriptions.clear();
92
+ }
93
+ function subMultiple(sources, cb) {
94
+ const sink = node();
95
+ connect({
96
+ map: (done) => (...args) => {
97
+ done(args);
98
+ },
99
+ sink,
100
+ sources
101
+ });
102
+ return subSingle(sink, cb);
103
+ }
104
+ function sub(...args) {
105
+ const [subscription] = args.slice(-1);
106
+ const nodes = args.slice(0, -1);
107
+ if (nodes.length === 1) {
108
+ return subSingle(nodes[0], subscription);
109
+ } else {
110
+ return subMultiple(nodes, subscription);
111
+ }
112
+ }
113
+ function calculateExecutionMap(keys) {
114
+ const participatingNodeKeys = [];
115
+ const visitedNodes = /* @__PURE__ */ new Set();
116
+ const pendingPulls = new SetMap();
117
+ const refCount = new RefCount();
118
+ const projections = new SetMap();
119
+ function visit(key, insertIndex = 0) {
120
+ refCount.increment(key);
121
+ if (visitedNodes.has(key)) {
122
+ return;
123
+ }
124
+ pendingPulls.use(key, (pulls) => {
125
+ insertIndex = Math.max(...Array.from(pulls).map((key2) => participatingNodeKeys.indexOf(key2))) + 1;
126
+ });
127
+ graph.use(key, (sinkProjections) => {
128
+ sinkProjections.forEach((projection) => {
129
+ if (projection.sources.has(key)) {
130
+ projections.getOrCreate(projection.sink).add(projection);
131
+ visit(projection.sink, insertIndex);
132
+ } else {
133
+ pendingPulls.getOrCreate(projection.sink).add(key);
134
+ }
135
+ });
136
+ });
137
+ visitedNodes.add(key);
138
+ participatingNodeKeys.splice(insertIndex, 0, key);
139
+ }
140
+ keys.forEach((key) => visit(key));
141
+ return { participatingNodeKeys, pendingPulls, projections, refCount };
142
+ }
143
+ const executionMaps = /* @__PURE__ */ new Map();
144
+ function pubIn(values) {
145
+ var _a;
146
+ const keys = Object.keys(values);
147
+ const executionMapKey = keys.join(",");
148
+ if (!executionMaps.has(executionMapKey)) {
149
+ executionMaps.set(executionMapKey, calculateExecutionMap(keys));
150
+ }
151
+ const map2 = executionMaps.get(executionMapKey);
152
+ const refCount = map2.refCount.clone();
153
+ const participatingNodeKeys = map2.participatingNodeKeys.slice();
154
+ const transientState = new Map(state);
155
+ function nodeWillNotEmit(key) {
156
+ graph.use(key, (projections) => {
157
+ projections.forEach(({ sources, sink }) => {
158
+ if (sources.has(key)) {
159
+ refCount.decrement(sink, () => {
160
+ participatingNodeKeys.splice(participatingNodeKeys.indexOf(sink), 1);
161
+ nodeWillNotEmit(sink);
162
+ });
163
+ }
164
+ });
165
+ });
166
+ }
167
+ let nodeKey;
168
+ while (nodeKey = participatingNodeKeys.shift()) {
169
+ let resolved = false;
170
+ const done = (value) => {
171
+ if (distinctNodes.has(nodeKey) && distinctNodes.get(nodeKey)(state.get(nodeKey), value)) {
172
+ resolved = false;
173
+ return;
174
+ }
175
+ resolved = true;
176
+ transientState.set(nodeKey, value);
177
+ if (state.has(nodeKey)) {
178
+ state.set(nodeKey, value);
179
+ }
180
+ };
181
+ if (Object.prototype.hasOwnProperty.call(values, nodeKey)) {
182
+ done(values[nodeKey]);
183
+ } else {
184
+ map2.projections.use(nodeKey, (nodeProjections) => {
185
+ nodeProjections.forEach((projection) => {
186
+ const args = [...Array.from(projection.sources), ...Array.from(projection.pulls)].map((id) => transientState.get(id));
187
+ projection.map(done)(...args);
188
+ });
189
+ });
190
+ }
191
+ if (resolved) {
192
+ const value = transientState.get(nodeKey);
193
+ subscriptions.use(nodeKey, (nodeSubscriptions) => {
194
+ nodeSubscriptions.forEach((subscription) => subscription(value));
195
+ });
196
+ (_a = singletonSubscriptions.get(nodeKey)) == null ? void 0 : _a(value);
197
+ } else {
198
+ nodeWillNotEmit(nodeKey);
199
+ }
200
+ }
201
+ }
202
+ function nodesToKeySet(nodes) {
203
+ return new Set(nodes.map((s) => s.key));
204
+ }
205
+ function connect({ sources, pulls = [], map: map2, sink: { key: sink } }) {
206
+ const dependency = {
207
+ map: map2,
208
+ pulls: nodesToKeySet(pulls),
209
+ sink,
210
+ sources: nodesToKeySet(sources)
211
+ };
212
+ [...sources, ...pulls].forEach(({ key: sourceKey }) => {
213
+ graph.getOrCreate(sourceKey).add(dependency);
214
+ });
215
+ executionMaps.clear();
216
+ }
217
+ function debug() {
218
+ Object.entries(labels).forEach(([name, value]) => {
219
+ state.get(value.key);
220
+ });
221
+ }
222
+ function pub(...args) {
223
+ const map2 = {};
224
+ for (let index = 0; index < args.length; index += 2) {
225
+ const node2 = args[index];
226
+ map2[node2.key] = args[index + 1];
227
+ }
228
+ pubIn(map2);
229
+ }
230
+ function label(newLabels) {
231
+ Object.assign(labels, newLabels);
232
+ }
233
+ function pipe(source, ...operators) {
234
+ for (const operator of operators) {
235
+ source = operator(source);
236
+ }
237
+ return source;
238
+ }
239
+ function spread(source, initialValues) {
240
+ return initialValues.map((initialValue, index) => {
241
+ return tap(node(initialValue, true), (sink) => {
242
+ connect({
243
+ map: (done) => (sourceValue) => {
244
+ done(sourceValue[index]);
245
+ },
246
+ sink,
247
+ sources: [source]
248
+ });
249
+ });
250
+ });
251
+ }
252
+ function link(source, sink) {
253
+ connect({ map: (done) => (value) => done(value), sink, sources: [source] });
254
+ }
255
+ function derive(source, initial) {
256
+ return tap(node(initial, true), (sink) => {
257
+ connect({ map: (done) => (value) => done(value), sink, sources: [source] });
258
+ });
259
+ }
260
+ function map(mapFunction) {
261
+ return (source) => {
262
+ const sink = node();
263
+ connect({
264
+ map: (done) => (value) => {
265
+ done(mapFunction(value));
266
+ },
267
+ sink,
268
+ sources: [source]
269
+ });
270
+ return sink;
271
+ };
272
+ }
273
+ function mapTo(value) {
274
+ return (source) => {
275
+ const sink = node();
276
+ connect({ map: (done) => () => done(value), sink, sources: [source] });
277
+ return sink;
278
+ };
279
+ }
280
+ function filter(predicate) {
281
+ return (source) => {
282
+ const sink = node();
283
+ connect({ map: (done) => (value) => predicate(value) && done(value), sink, sources: [source] });
284
+ return sink;
285
+ };
286
+ }
287
+ function once() {
288
+ return (source) => {
289
+ const sink = node();
290
+ let passed = false;
291
+ connect({
292
+ map: (done) => (value) => {
293
+ if (!passed) {
294
+ passed = true;
295
+ done(value);
296
+ }
297
+ },
298
+ sink,
299
+ sources: [source]
300
+ });
301
+ return sink;
302
+ };
303
+ }
304
+ function scan(accumulator, seed) {
305
+ return (source) => {
306
+ const sink = node();
307
+ connect({ map: (done) => (value) => done(seed = accumulator(seed, value)), sink, sources: [source] });
308
+ return sink;
309
+ };
310
+ }
311
+ function throttleTime(delay) {
312
+ return (source) => {
313
+ const sink = node();
314
+ let currentValue;
315
+ let timeout;
316
+ sub(source, (value) => {
317
+ currentValue = value;
318
+ if (timeout) {
319
+ return;
320
+ }
321
+ timeout = setTimeout(() => {
322
+ timeout = void 0;
323
+ pub(sink, currentValue);
324
+ }, delay);
325
+ });
326
+ return sink;
327
+ };
328
+ }
329
+ function delayWithMicrotask() {
330
+ return (source) => {
331
+ const sink = node();
332
+ sub(source, (value) => queueMicrotask(() => pub(sink, value)));
333
+ return sink;
334
+ };
335
+ }
336
+ function debounceTime(delay) {
337
+ return (source) => {
338
+ const sink = node();
339
+ let currentValue;
340
+ let timeout;
341
+ sub(source, (value) => {
342
+ currentValue = value;
343
+ if (timeout) {
344
+ clearTimeout(timeout);
345
+ }
346
+ timeout = setTimeout(() => {
347
+ pub(sink, currentValue);
348
+ }, delay);
349
+ });
350
+ return sink;
351
+ };
352
+ }
353
+ function onNext(bufNode) {
354
+ return (source) => {
355
+ const sink = node();
356
+ let pendingValue = NO_VALUE;
357
+ sub(source, (value) => pendingValue = value);
358
+ connect({
359
+ map: (done) => (value) => {
360
+ if (pendingValue !== NO_VALUE) {
361
+ done([pendingValue, value]);
362
+ pendingValue = NO_VALUE;
363
+ }
364
+ },
365
+ sink,
366
+ sources: [bufNode]
367
+ });
368
+ return sink;
369
+ };
370
+ }
371
+ function passOnlyAfterNodeHasEmittedBefore(starterNode, durationNode) {
372
+ return (source) => {
373
+ const sink = node();
374
+ let startTime = 0;
375
+ sub(starterNode, () => startTime = Date.now());
376
+ connect({
377
+ map: (done) => (value) => {
378
+ if (Date.now() < startTime + state.get(durationNode.key)) {
379
+ done(value);
380
+ }
381
+ },
382
+ sink,
383
+ sources: [source]
384
+ });
385
+ return sink;
386
+ };
387
+ }
388
+ function withLatestFrom(...nodes) {
389
+ return (source) => {
390
+ const sink = node();
391
+ connect({
392
+ map: (done) => (...args) => done(args),
393
+ pulls: nodes,
394
+ sink,
395
+ sources: [source]
396
+ });
397
+ return sink;
398
+ };
399
+ }
400
+ function combine(...nodes) {
401
+ const sink = node();
402
+ connect({
403
+ map: (done) => (...args) => done(args),
404
+ sink,
405
+ sources: nodes
406
+ });
407
+ return sink;
408
+ }
409
+ function subKey(key, subscription) {
410
+ return sub(labels[key], subscription);
411
+ }
412
+ function subKeys(keys, subscription) {
413
+ const nodes = keys.map((key) => labels[key]);
414
+ return sub(...nodes.concat(subscription));
415
+ }
416
+ function pubKey(key, value) {
417
+ pubKeys({ [key]: value });
418
+ }
419
+ function pubKeys(values) {
420
+ const valuesWithInternalKeys = Object.entries(values).reduce(
421
+ (acc, [key, value]) => tap(acc, (acc2) => {
422
+ const label2 = labels[key];
423
+ if (!label2) {
424
+ throw new Error(`No label for key ${key}. Do you miss a plugin?`);
425
+ }
426
+ acc2[label2.key] = value;
427
+ return value;
428
+ }),
429
+ {}
430
+ );
431
+ pubIn(valuesWithInternalKeys);
432
+ }
433
+ function getKeyValue(key) {
434
+ return state.get(labels[key].key);
435
+ }
436
+ function getValue(node2) {
437
+ return state.get(node2.key);
438
+ }
439
+ function getKeyValues(keys) {
440
+ return keys.map((key) => {
441
+ const label2 = labels[key];
442
+ if (!label2) {
443
+ throw new Error(`No label for key ${key}. Do you miss a plugin?`);
444
+ }
445
+ return state.get(label2.key);
446
+ });
447
+ }
448
+ return {
449
+ combine,
450
+ connect,
451
+ debug,
452
+ derive,
453
+ getKeyValue,
454
+ getValue,
455
+ getKeyValues,
456
+ label,
457
+ labels,
458
+ link,
459
+ node,
460
+ o: {
461
+ delayWithMicrotask,
462
+ debounceTime,
463
+ filter,
464
+ map,
465
+ mapTo,
466
+ onNext,
467
+ scan,
468
+ throttleTime,
469
+ withLatestFrom,
470
+ once,
471
+ passOnlyAfterNodeHasEmittedBefore
472
+ },
473
+ pipe,
474
+ pub,
475
+ pubIn,
476
+ pubKey,
477
+ pubKeys,
478
+ resetSingletonSubs,
479
+ singletonSub,
480
+ singletonSubKey,
481
+ spread,
482
+ sub,
483
+ subKey,
484
+ subKeys
485
+ };
486
+ }
487
+ export {
488
+ RefCount,
489
+ defaultComparator,
490
+ realm
491
+ };
@@ -0,0 +1,58 @@
1
+ import { Realm, RealmNode, Subscription, UnsubscribeHandle } from './realm';
2
+ export interface System {
3
+ [key: string]: RealmNode<any>;
4
+ }
5
+ /**
6
+ * a SystemSpec is the result from a [[system]] call. To obtain the [[system]], pass the spec to [[init]].
7
+ * @typeParam Dependencies - The dependencies of the system.
8
+ * @typeParam Constructor - The system constructor.
9
+ */
10
+ export interface SystemSpec<Dependencies extends AnySystemSpecs, /** @internal */ Constructor extends SystemConstructor<Dependencies>> {
11
+ id: string;
12
+ constructor: Constructor;
13
+ dependencies: Dependencies;
14
+ }
15
+ export interface AnySystemSpec extends SystemSpec<AnySystemSpecs, any> {
16
+ id: string;
17
+ }
18
+ export interface AnySystemSpecs extends Array<AnySystemSpec> {
19
+ }
20
+ export type SystemOfSpec<Spec extends AnySystemSpec> = ReturnType<Spec['constructor']>;
21
+ /** @internal **/
22
+ export type SSR<Spec extends AnySystemSpec> = SystemOfSpec<Spec>;
23
+ /** @internal **/
24
+ export type SystemsFromSpecs<ST extends AnySystemSpecs> = ST extends unknown[] ? SystemsFromSpecsRec<ST, []> : never;
25
+ type SystemsFromSpecsRec<ST extends unknown[], Acc extends unknown[]> = ST extends [infer Head, ...infer Tail] ? SystemsFromSpecsRec<Tail, [...Acc, Head extends AnySystemSpec ? SystemOfSpec<Head> : never]> : Acc;
26
+ /**
27
+ * The system constructor is a function which initializes and connects nodes and returns them as a [[system]].
28
+ * If the [[system]] call specifies system dependencies, the constructor receives the dependencies as an array argument.
29
+ */
30
+ export interface SystemConstructor<D extends AnySystemSpecs> {
31
+ (r: Realm, dependencies: SystemsFromSpecs<D>): System;
32
+ }
33
+ export declare function system<Dependencies extends LongTuple<AnySystemSpec>, Constructor extends SystemConstructor<Dependencies>>(constructor: Constructor, dependencies?: Dependencies): SystemSpec<Dependencies, Constructor>;
34
+ type SystemKey<S extends System> = Extract<keyof S, string>;
35
+ export type ValuesForKeys<S extends System, K extends SystemKey<S>[]> = K extends unknown[] ? ValuesForKeysRec<S, K, []> : never;
36
+ type ValuesForKeysRec<S extends Record<any, RealmNode>, K extends unknown[], Acc extends unknown[]> = K extends [infer Head, ...infer Tail] ? ValuesForKeysRec<S, Tail, [...Acc, S[Head] extends RealmNode<infer R> ? R : never]> : Acc;
37
+ export type SystemOfSpecs<Specs extends AnySystemSpec[]> = Specs extends unknown[] ? SystemOfSpecsRec<Specs, {}> : Specs;
38
+ type SystemOfSpecsRec<Specs extends unknown[], Acc extends {}> = Specs extends [infer Head, ...infer Tail] ? SystemOfSpecsRec<Tail, Head extends AnySystemSpec ? Acc & SystemOfSpec<Head> : never> : Acc;
39
+ export type LongTuple<K> = [] | [K] | [K, K] | [K, K, K] | [K, K, K, K] | [K, K, K, K, K] | [K, K, K, K, K, K] | [K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K] | [K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K, K];
40
+ export type SystemKeys<S extends System, K extends Extract<keyof S, string> = Extract<keyof S, string>> = LongTuple<K>;
41
+ export type ValueForKey<S extends System, K extends keyof S> = S[K] extends RealmNode<infer V> ? V : never;
42
+ export type SystemDict<S extends System> = {
43
+ [K in keyof S]?: ValueForKey<S, K>;
44
+ };
45
+ export type SystemKeysArray<S extends System> = Array<keyof S>;
46
+ export interface TypedRealm<S extends System> extends Pick<Realm, 'sub' | 'pub' | 'spread' | 'derive' | 'singletonSubKey' | 'resetSingletonSubs'> {
47
+ getKeyValues<K extends SystemKeys<S>>(keys: K): ValuesForKeys<S, K>;
48
+ getKeyValue<K extends keyof S>(key: K): ValueForKey<S, K>;
49
+ labels: S;
50
+ pubKey<K extends keyof S>(key: K, value: ValueForKey<S, K>): void;
51
+ pubKeys: (values: SystemDict<S>) => void;
52
+ subKey<K extends keyof S>(key: K, subscription: Subscription<ValueForKey<S, K>>): UnsubscribeHandle;
53
+ subKeys<K extends SystemKeys<S>>(keys: K, subscription: Subscription<ValuesForKeys<S, K>>): UnsubscribeHandle;
54
+ }
55
+ export declare function realmFactory<Specs extends LongTuple<AnySystemSpec>>(...specs: Specs): TypedRealm<SystemOfSpecs<Specs>>;
56
+ export type RealmFactory<Sys extends System> = () => TypedRealm<Sys>;
57
+ export declare function getRealmFactory<Specs extends LongTuple<AnySystemSpec>>(...specs: Specs): () => TypedRealm<SystemOfSpecs<[...Specs]>>;
58
+ export {};
@@ -0,0 +1,32 @@
1
+ import { uuidv4 } from "../utils/uuid4.js";
2
+ import { realm } from "./realm.js";
3
+ function system(constructor, dependencies = []) {
4
+ return {
5
+ constructor,
6
+ dependencies,
7
+ id: uuidv4()
8
+ };
9
+ }
10
+ function realmFactory(...specs) {
11
+ const singletons = /* @__PURE__ */ new Map();
12
+ const r = realm();
13
+ const _init = ({ id, constructor, dependencies }) => {
14
+ if (singletons.has(id)) {
15
+ return singletons.get(id);
16
+ }
17
+ const system2 = constructor(r, dependencies.map((t) => _init(specs.find((spec) => spec.id === t.id))));
18
+ r.label(system2);
19
+ singletons.set(id, system2);
20
+ return system2;
21
+ };
22
+ specs.forEach(_init);
23
+ return r;
24
+ }
25
+ function getRealmFactory(...specs) {
26
+ return () => realmFactory(...specs);
27
+ }
28
+ export {
29
+ getRealmFactory,
30
+ realmFactory,
31
+ system
32
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgAddColumn = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "currentColor", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 20, height: 20, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
+ maskType: "alpha"
4
+ } }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h20v20H0z", transform: "matrix(0 -1 -1 0 20 20)" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "M3.25 10.5H6v2.75h1.5V10.5h2.75V9H7.5V6.25H6V9H3.25v1.5ZM6 17h8V3H6v2.5h1.5v-1h5v11h-5V14H6v3Z" })));
5
+ const AddColumnIcon = SvgAddColumn;
6
+ export {
7
+ AddColumnIcon as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgAddPhoto = (props) => /* @__PURE__ */ React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "mask0_343_38", style: {
3
+ maskType: "alpha"
4
+ }, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 24, height: 24 }, /* @__PURE__ */ React.createElement("rect", { width: 24, height: 24, fill: "#D9D9D9" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#mask0_343_38)" }, /* @__PURE__ */ React.createElement("path", { d: "M3 21V3H14V5H5V19H19V10H21V21H3ZM17 9V7H15V5H17V3H19V5H21V7H19V9H17ZM6 17H18L14.25 12L11.25 16L9 13L6 17Z", fill: "currentColor" })));
5
+ const AddPhotoIcon = SvgAddPhoto;
6
+ export {
7
+ AddPhotoIcon as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgAddRow = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 20, fill: "currentColor", viewBox: "0 0 20 20", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 20, height: 20, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
+ maskType: "alpha"
4
+ } }, /* @__PURE__ */ React.createElement("path", { d: "M20 20h20v20H20z", transform: "rotate(180 20 20)" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "M10.5 3.25V6h2.75v1.5H10.5v2.75H9V7.5H6.25V6H9V3.25h1.5ZM17 6v8H3V6h2.5v1.5h-1v5h11v-5H14V6h3Z" })));
5
+ const AddRowIcon = SvgAddRow;
6
+ export {
7
+ AddRowIcon as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgArrowDropDown = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "currentColor", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 24, height: 24, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
+ maskType: "alpha"
4
+ } }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h24v24H0z" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "m12 15-5-5h10l-5 5Z" })));
5
+ const DropDownIcon = SvgArrowDropDown;
6
+ export {
7
+ DropDownIcon as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgArrowRight = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "currentColor", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 24, height: 24, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
+ maskType: "alpha"
4
+ } }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h24v24H0z" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "M10 17V7l5 5-5 5Z" })));
5
+ const ArrowRight = SvgArrowRight;
6
+ export {
7
+ ArrowRight as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgCheck = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "currentColor", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 24, height: 24, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
+ maskType: "alpha"
4
+ } }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h24v24H0z" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "m9.55 18-5.7-5.7 1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4 9.55 18Z" })));
5
+ const CheckIcon = SvgCheck;
6
+ export {
7
+ CheckIcon as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgClose = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "currentColor", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 24, height: 24, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
+ maskType: "alpha"
4
+ } }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h24v24H0z" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "M6.4 19 5 17.6l5.6-5.6L5 6.4 6.4 5l5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19Z" })));
5
+ const CloseIcon = SvgClose;
6
+ export {
7
+ CloseIcon as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgCode = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "currentColor", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 24, height: 24, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
+ maskType: "alpha"
4
+ } }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h24v24H0z" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "m8 18-6-6 6-6 1.425 1.425-4.6 4.6L9.4 16.6 8 18Zm8 0-1.425-1.425 4.6-4.6L14.6 7.4 16 6l6 6-6 6Z" })));
5
+ const CodeIcon = SvgCode;
6
+ export {
7
+ CodeIcon as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgContentCopy = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "currentColor", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 24, height: 24, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
+ maskType: "alpha"
4
+ } }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h24v24H0z" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "M7 18V2h13v16H7Zm2-2h9V4H9v12Zm-6 6V6h2v14h11v2H3Z" })));
5
+ const CopyIcon = SvgContentCopy;
6
+ export {
7
+ CopyIcon as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ const SvgDelete = (props) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "currentColor", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "a", width: 24, height: 24, x: 0, y: 0, maskUnits: "userSpaceOnUse", style: {
3
+ maskType: "alpha"
4
+ } }, /* @__PURE__ */ React.createElement("path", { d: "M0 0h24v24H0z" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#a)" }, /* @__PURE__ */ React.createElement("path", { d: "M5 21V6H4V4h5V3h6v1h5v2h-1v15H5Zm2-2h10V6H7v13Zm2-2h2V8H9v9Zm4 0h2V8h-2v9Z" })));
5
+ const DeleteIcon = SvgDelete;
6
+ export {
7
+ DeleteIcon as default
8
+ };