@valbuild/ui 0.26.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/valbuild-ui.cjs.js +41 -15
  2. package/dist/valbuild-ui.esm.js +41 -15
  3. package/package.json +7 -3
  4. package/server/.tmp/assets/index-18cfa26c.css +1 -0
  5. package/server/.tmp/assets/index-513f7a9c.js +197 -0
  6. package/{index.html → server/.tmp/index.html} +3 -1
  7. package/server/dist/style.css +0 -3
  8. package/server/dist/valbuild-ui-main.cjs.js +60 -34
  9. package/server/dist/valbuild-ui-main.esm.js +60 -34
  10. package/server/dist/valbuild-ui-server.cjs.js +1 -1
  11. package/server/dist/valbuild-ui-server.esm.js +1 -1
  12. package/.babelrc.json +0 -10
  13. package/.storybook/main.js +0 -25
  14. package/.storybook/preview-head.html +0 -6
  15. package/.storybook/preview.js +0 -33
  16. package/.storybook/theme.css +0 -34
  17. package/CHANGELOG.md +0 -0
  18. package/components.json +0 -16
  19. package/fix-server-hack.js +0 -54
  20. package/fullscreen.vite.config.ts +0 -9
  21. package/jest.config.js +0 -4
  22. package/postcss.config.js +0 -6
  23. package/rollup.config.js +0 -23
  24. package/server.vite.config.ts +0 -31
  25. package/src/App.tsx +0 -73
  26. package/src/assets/icons/Bold.tsx +0 -23
  27. package/src/assets/icons/Chevron.tsx +0 -28
  28. package/src/assets/icons/FontColor.tsx +0 -30
  29. package/src/assets/icons/ImageIcon.tsx +0 -29
  30. package/src/assets/icons/Italic.tsx +0 -24
  31. package/src/assets/icons/Logo.tsx +0 -103
  32. package/src/assets/icons/Section.tsx +0 -41
  33. package/src/assets/icons/Strikethrough.tsx +0 -22
  34. package/src/assets/icons/TextIcon.tsx +0 -20
  35. package/src/assets/icons/Underline.tsx +0 -22
  36. package/src/assets/icons/Undo.tsx +0 -20
  37. package/src/components/Button.tsx +0 -68
  38. package/src/components/Checkbox.tsx +0 -51
  39. package/src/components/DraggableList.stories.tsx +0 -20
  40. package/src/components/DraggableList.tsx +0 -95
  41. package/src/components/Dropdown.tsx +0 -101
  42. package/src/components/EditButton.tsx +0 -10
  43. package/src/components/ErrorText.tsx +0 -3
  44. package/src/components/ExpandLogo.tsx +0 -72
  45. package/src/components/Grid.stories.tsx +0 -43
  46. package/src/components/Grid.tsx +0 -139
  47. package/src/components/RichTextEditor/ContentEditable.tsx +0 -117
  48. package/src/components/RichTextEditor/Nodes/ImageNode.tsx +0 -100
  49. package/src/components/RichTextEditor/Plugins/AutoFocus.tsx +0 -12
  50. package/src/components/RichTextEditor/Plugins/ImagePlugin.tsx +0 -45
  51. package/src/components/RichTextEditor/Plugins/LinkEditorPlugin.tsx +0 -58
  52. package/src/components/RichTextEditor/Plugins/Toolbar.tsx +0 -412
  53. package/src/components/RichTextEditor/RichTextEditor.tsx +0 -105
  54. package/src/components/UploadModal.tsx +0 -109
  55. package/src/components/User.tsx +0 -17
  56. package/src/components/ValFormField.tsx +0 -574
  57. package/src/components/ValFullscreen.tsx +0 -1278
  58. package/src/components/ValMenu.tsx +0 -92
  59. package/src/components/ValOverlay.tsx +0 -488
  60. package/src/components/ValOverlayContext.tsx +0 -80
  61. package/src/components/ValWindow.stories.tsx +0 -146
  62. package/src/components/ValWindow.tsx +0 -220
  63. package/src/components/dashboard/DashboardButton.tsx +0 -25
  64. package/src/components/dashboard/DashboardDropdown.tsx +0 -59
  65. package/src/components/dashboard/Dropdown.stories.tsx +0 -11
  66. package/src/components/dashboard/Dropdown.tsx +0 -70
  67. package/src/components/dashboard/FormGroup.stories.tsx +0 -37
  68. package/src/components/dashboard/FormGroup.tsx +0 -42
  69. package/src/components/dashboard/Grid2.stories.tsx +0 -56
  70. package/src/components/dashboard/Grid2.tsx +0 -72
  71. package/src/components/dashboard/Tree.stories.tsx +0 -91
  72. package/src/components/dashboard/Tree.tsx +0 -72
  73. package/src/components/dashboard/ValDashboardEditor.tsx +0 -269
  74. package/src/components/dashboard/ValDashboardGrid.tsx +0 -142
  75. package/src/components/dashboard/ValTreeNavigator.tsx +0 -253
  76. package/src/components/forms/Form.tsx +0 -126
  77. package/src/components/forms/FormContainer.tsx +0 -24
  78. package/src/components/forms/ImageForm.tsx +0 -195
  79. package/src/components/forms/TextArea.tsx +0 -24
  80. package/src/components/ui/accordion.tsx +0 -58
  81. package/src/components/ui/alert-dialog.tsx +0 -139
  82. package/src/components/ui/avatar.tsx +0 -48
  83. package/src/components/ui/button.tsx +0 -56
  84. package/src/components/ui/calendar.tsx +0 -62
  85. package/src/components/ui/card.tsx +0 -86
  86. package/src/components/ui/checkbox.tsx +0 -28
  87. package/src/components/ui/command.tsx +0 -153
  88. package/src/components/ui/dialog.tsx +0 -120
  89. package/src/components/ui/dropdown-menu.tsx +0 -198
  90. package/src/components/ui/form.tsx +0 -177
  91. package/src/components/ui/input.tsx +0 -24
  92. package/src/components/ui/label.tsx +0 -24
  93. package/src/components/ui/popover.tsx +0 -29
  94. package/src/components/ui/progress.tsx +0 -26
  95. package/src/components/ui/radio-group.tsx +0 -42
  96. package/src/components/ui/scroll-area.tsx +0 -51
  97. package/src/components/ui/select.tsx +0 -119
  98. package/src/components/ui/switch.tsx +0 -27
  99. package/src/components/ui/tabs.tsx +0 -53
  100. package/src/components/ui/toggle.tsx +0 -43
  101. package/src/components/ui/tooltip.tsx +0 -28
  102. package/src/components/usePatch.ts +0 -86
  103. package/src/components/useTheme.ts +0 -45
  104. package/src/dto/SerializedSchema.ts +0 -69
  105. package/src/dto/Session.ts +0 -12
  106. package/src/dto/SessionMode.ts +0 -5
  107. package/src/dto/Tree.ts +0 -18
  108. package/src/exports.ts +0 -6
  109. package/src/index.css +0 -115
  110. package/src/index.tsx +0 -14
  111. package/src/lib/IValStore.ts +0 -6
  112. package/src/lib/utils.ts +0 -6
  113. package/src/main.jsx +0 -10
  114. package/src/richtext/conversion/conversion.test.ts +0 -146
  115. package/src/richtext/conversion/lexicalToRichTextSource.test.ts +0 -89
  116. package/src/richtext/conversion/lexicalToRichTextSource.ts +0 -285
  117. package/src/richtext/conversion/parseRichTextSource.test.ts +0 -469
  118. package/src/richtext/conversion/parseRichTextSource.ts +0 -233
  119. package/src/richtext/conversion/richTextSourceToLexical.test.ts +0 -381
  120. package/src/richtext/conversion/richTextSourceToLexical.ts +0 -293
  121. package/src/richtext/shadowRootPolyFill.js +0 -115
  122. package/src/server.ts +0 -70
  123. package/src/stories/Button.stories.tsx +0 -20
  124. package/src/stories/Checkbox.stories.tsx +0 -14
  125. package/src/stories/Dropdown.stories.tsx +0 -23
  126. package/src/stories/Introduction.mdx +0 -221
  127. package/src/stories/RichTextEditor.stories.tsx +0 -24
  128. package/src/stories/assets/code-brackets.svg +0 -1
  129. package/src/stories/assets/colors.svg +0 -1
  130. package/src/stories/assets/comments.svg +0 -1
  131. package/src/stories/assets/direction.svg +0 -1
  132. package/src/stories/assets/flow.svg +0 -1
  133. package/src/stories/assets/plugin.svg +0 -1
  134. package/src/stories/assets/repo.svg +0 -1
  135. package/src/stories/assets/stackalt.svg +0 -1
  136. package/src/utils/Remote.ts +0 -15
  137. package/src/utils/imageMimeType.ts +0 -23
  138. package/src/utils/readImage.ts +0 -54
  139. package/src/utils/resolvePath.ts +0 -32
  140. package/src/vite-env.d.ts +0 -1
  141. package/src/vite-index.tsx +0 -7
  142. package/src/vite-server.ts +0 -42
  143. package/tailwind.config.js +0 -83
  144. package/tsconfig.json +0 -19
  145. package/vite.config.ts +0 -43
package/.babelrc.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-react",
5
- {
6
- "runtime": "automatic"
7
- }
8
- ]
9
- ]
10
- }
@@ -1,25 +0,0 @@
1
- /** @type { import('@storybook/react-vite').StorybookConfig } */
2
- const config = {
3
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
4
- addons: [
5
- "@storybook/addon-links",
6
- "@storybook/addon-essentials",
7
- "@storybook/addon-interactions",
8
- {
9
- name: "@storybook/addon-styling",
10
- options: {
11
- // Check out https://github.com/storybookjs/addon-styling/blob/main/docs/api.md
12
- // For more details on this addon's options.
13
- postCss: true,
14
- },
15
- },
16
- ],
17
- framework: {
18
- name: "@storybook/react-vite",
19
- options: {},
20
- },
21
- docs: {
22
- autodocs: "tag",
23
- },
24
- };
25
- export default config;
@@ -1,6 +0,0 @@
1
- <link rel="preconnect" href="https://fonts.googleapis.com" />
2
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
3
- <link
4
- href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,400;1,700&display=swap"
5
- rel="stylesheet"
6
- />
@@ -1,33 +0,0 @@
1
- import { withThemeByDataAttribute } from "@storybook/addon-styling";
2
-
3
- import "tailwindcss/tailwind.css";
4
- import "../src/index.css";
5
- import "./theme.css"; // The normal css has theming on :hover, but we need to have it on :root for stories to work
6
-
7
- /* snipped for brevity */
8
-
9
- export const decorators = [
10
- withThemeByDataAttribute({
11
- themes: {
12
- light: "light",
13
- dark: "dark",
14
- },
15
- defaultTheme: "dark",
16
- attributeName: "data-mode",
17
- }),
18
- ];
19
-
20
- /** @type { import('@storybook/react').Preview } */
21
- const preview = {
22
- parameters: {
23
- actions: { argTypesRegex: "^on[A-Z].*" },
24
- controls: {
25
- matchers: {
26
- color: /(background|color)$/i,
27
- date: /Date$/,
28
- },
29
- },
30
- },
31
- };
32
-
33
- export default preview;
@@ -1,34 +0,0 @@
1
- html {
2
- font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
3
- Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
4
- /* This must be identical to the theme in index.css */
5
- --val-theme-white: #fcfcfc;
6
- --val-theme-light-gray: #d6d6d6;
7
- --val-theme-medium-gray: #c9c9c9;
8
- --val-theme-dark-gray: #575757;
9
- --val-theme-medium-black: #303030;
10
- --val-theme-warm-black: #1a1a1a;
11
- --val-theme-yellow: #38cd98;
12
- --val-theme-red: #f02929;
13
- --val-theme-green: #1ced1c;
14
- --val-theme-full-black: black;
15
- --val-theme-full-white: white;
16
-
17
- /* light theme */
18
- --val-theme-base: var(--val-theme-white);
19
- --val-theme-highlight: var(--val-theme-yellow);
20
- --val-theme-border: var(--val-theme-medium-gray);
21
- --val-theme-fill: var(--val-theme-light-gray);
22
- --val-theme-primary: var(--val-theme-warm-black);
23
- --val-theme-full: var(--val-theme-full-black);
24
- }
25
-
26
- /* dark theme */
27
- *[data-mode="dark"] {
28
- --val-theme-base: var(--val-theme-warm-black);
29
- --val-theme-highlight: var(--val-theme-yellow);
30
- --val-theme-border: var(--val-theme-dark-gray);
31
- --val-theme-fill: var(--val-theme-medium-black);
32
- --val-theme-primary: var(--val-theme-white);
33
- --val-theme-full: var(--val-theme-full-white);
34
- }
package/CHANGELOG.md DELETED
File without changes
package/components.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "default",
4
- "rsc": false,
5
- "tsx": true,
6
- "tailwind": {
7
- "config": "tailwind.config.js",
8
- "css": "src/index.css",
9
- "baseColor": "slate",
10
- "cssVariables": true
11
- },
12
- "aliases": {
13
- "components": "@/components",
14
- "utils": "@/lib/utils"
15
- }
16
- }
@@ -1,54 +0,0 @@
1
- // We use this to inject the contents of main.jsx into the server
2
- // We want to use Vite / rollup to do this, but ran out of time and patience to do it
3
-
4
- /* eslint-disable @typescript-eslint/no-var-requires */
5
- const fs = require("fs");
6
- const path = require("path");
7
-
8
- const serverFiles = [
9
- "server/dist/valbuild-ui-server.esm.js",
10
- "server/dist/valbuild-ui-server.cjs.js",
11
- ];
12
- const inputDir = "server/.tmp";
13
- function walk(dir) {
14
- return fs.readdirSync(dir).reduce((files, fileOrDirName) => {
15
- const fileOrDirPath = path.join(dir, fileOrDirName);
16
- if (fs.statSync(fileOrDirPath).isDirectory()) {
17
- return {
18
- ...files,
19
- ...walk(fileOrDirPath),
20
- };
21
- }
22
- const fileContent = fs.readFileSync(fileOrDirPath, "utf-8");
23
- const encodedContent = Buffer.from(fileContent).toString("base64");
24
- return {
25
- ...files,
26
- [fileOrDirPath.replace(inputDir, "")]: encodedContent,
27
- };
28
- }, {});
29
- }
30
-
31
- const files = walk(inputDir);
32
- const stringifiedFiles = JSON.stringify(files);
33
-
34
- for (const serverFile of serverFiles) {
35
- const filePath = path.join(__dirname, serverFile);
36
- const replaceString = "BUILD_REPLACE_THIS_WITH_RECORD";
37
- fs.readFile(filePath, "utf-8", (err, data) => {
38
- if (err) {
39
- console.error("Error reading file:", err);
40
- return;
41
- }
42
-
43
- const result = data.replace(replaceString, stringifiedFiles);
44
-
45
- // Write the modified content back to the file
46
- fs.writeFile(filePath, result, "utf-8", (err) => {
47
- if (err) {
48
- console.error("Error writing file:", err);
49
- return;
50
- }
51
- console.log(`Replaced script in ${serverFile} with contents of build!`);
52
- });
53
- });
54
- }
@@ -1,9 +0,0 @@
1
- import { defineConfig } from "vite";
2
-
3
- // https://vitejs.dev/config/
4
- export default defineConfig({
5
- base: "/api/val/static", // TODO: needs to be configurable
6
- build: {
7
- outDir: "./server/.tmp",
8
- },
9
- });
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- /** @type {import("jest").Config} */
2
- module.exports = {
3
- preset: "../../jest.preset",
4
- };
package/postcss.config.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
package/rollup.config.js DELETED
@@ -1,23 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/no-var-requires
2
- const { default: dts } = require("rollup-plugin-dts");
3
-
4
- /**
5
- * This rollup config is used solely for bundling type definitions. Vite builds
6
- * the rest!
7
- *
8
- * @type{import("rollup").RollupOptions[]}
9
- */
10
- const config = [
11
- {
12
- input: "./src/vite-index.tsx",
13
- output: [{ file: "dist/valbuild-ui.cjs.d.ts", format: "es" }],
14
- plugins: [dts()],
15
- },
16
- {
17
- input: "./src/vite-server.ts",
18
- output: [{ file: "server/dist/valbuild-ui-server.cjs.d.ts", format: "es" }],
19
- plugins: [dts()],
20
- },
21
- ];
22
-
23
- module.exports = config;
@@ -1,31 +0,0 @@
1
- import { defineConfig } from "vite";
2
-
3
- // https://vitejs.dev/config/
4
- export default defineConfig({
5
- build: {
6
- outDir: "./server/dist",
7
- manifest: true,
8
- lib: {
9
- entry: {
10
- "valbuild-ui-server": "./src/vite-server.ts",
11
- "valbuild-ui-main": "./src/main.jsx",
12
- },
13
- formats: ["cjs", "es"],
14
- /**
15
- * Sets file names to match the output from Preconstruct
16
- */
17
- fileName(format, entryName) {
18
- switch (format) {
19
- case "es":
20
- return `${entryName}.esm.js`;
21
- case "cjs":
22
- return `${entryName}.cjs.js`;
23
- default:
24
- throw Error(`Unexpected format: ${format}`);
25
- }
26
- },
27
- },
28
- // Output semi-readable code and let consumers handle minification
29
- minify: false,
30
- },
31
- });
package/src/App.tsx DELETED
@@ -1,73 +0,0 @@
1
- import { ValApi } from "@valbuild/core";
2
- import { ValFullscreen } from "./components/ValFullscreen";
3
- import { ErrorBoundary } from "react-error-boundary";
4
-
5
- import {
6
- Accordion,
7
- AccordionItem,
8
- AccordionContent,
9
- AccordionTrigger,
10
- } from "./components/ui/accordion";
11
- import Logo from "./assets/icons/Logo";
12
- import { X } from "lucide-react";
13
- import { createBrowserRouter, RouterProvider } from "react-router-dom";
14
-
15
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
16
- function fallbackRender({ error, resetErrorBoundary }: any) {
17
- console.error(error);
18
- return (
19
- <div className="absolute top-0 left-0 flex items-center justify-center w-screen h-screen bg-card-foreground">
20
- <div className="w-full h-full p-10">
21
- <div className="w-full h-full p-10 bg-card text-primary">
22
- <div className="flex items-center justify-between">
23
- <div className="flex items-center gap-[0.5em] text-lg font-bold text-center py-2">
24
- <Logo /> encountered an error
25
- </div>
26
- <button onClick={resetErrorBoundary}>
27
- <X />
28
- </button>
29
- </div>
30
- <div className="text-4xl font-normal ">Message:</div>
31
- <pre>{error.message}</pre>
32
- {error.stack && (
33
- <Accordion
34
- type="single"
35
- className="font-serif"
36
- collapsible
37
- defaultValue="error"
38
- >
39
- <AccordionItem value={"error"}>
40
- <AccordionTrigger>Stack trace:</AccordionTrigger>
41
- <AccordionContent className="p-4 bg-popover text-popover-foreground">
42
- {error.stack && <pre>{error.stack}</pre>}
43
- </AccordionContent>
44
- </AccordionItem>
45
- </Accordion>
46
- )}
47
- </div>
48
- </div>
49
- </div>
50
- );
51
- }
52
-
53
- function App() {
54
- const router = createBrowserRouter(
55
- [
56
- {
57
- path: "/*",
58
- element: (
59
- <ErrorBoundary fallbackRender={fallbackRender}>
60
- <ValFullscreen valApi={new ValApi("/api/val")} />
61
- </ErrorBoundary>
62
- ),
63
- },
64
- ],
65
- {
66
- basename: "/api/val/static/edit",
67
- }
68
- );
69
-
70
- return <RouterProvider router={router} />;
71
- }
72
-
73
- export default App;
@@ -1,23 +0,0 @@
1
- import { FC } from "react";
2
-
3
- const Bold: FC<{ className?: string }> = ({ className }) => {
4
- return (
5
- <svg
6
- height={12}
7
- width={12}
8
- xmlns="http://www.w3.org/2000/svg"
9
- viewBox="0 0 24 24"
10
- fill="none"
11
- stroke="currentColor"
12
- strokeWidth="2"
13
- strokeLinecap="round"
14
- strokeLinejoin="round"
15
- className={className}
16
- >
17
- <path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>
18
- <path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>
19
- </svg>
20
- );
21
- };
22
-
23
- export default Bold;
@@ -1,28 +0,0 @@
1
- import { FC } from "react";
2
-
3
- const Chevron: FC<{ className?: string }> = ({ className }) => {
4
- return (
5
- <svg
6
- width="10"
7
- height="10"
8
- viewBox="0 0 12 12"
9
- xmlns="http://www.w3.org/2000/svg"
10
- className={className}
11
- >
12
- <path
13
- fillRule="evenodd"
14
- clipRule="evenodd"
15
- d="M3.70733 1.00015L8.7784 6.07121L8.07129 6.77832L3.00022 1.70725L3.70733 1.00015Z"
16
- fill="currentColor"
17
- />
18
- <path
19
- fillRule="evenodd"
20
- clipRule="evenodd"
21
- d="M3.00015 10.4709L8.07121 5.39983L8.77832 6.10693L3.70725 11.178L3.00015 10.4709Z"
22
- fill="currentColor"
23
- />
24
- </svg>
25
- );
26
- };
27
-
28
- export default Chevron;
@@ -1,30 +0,0 @@
1
- import { FC } from "react";
2
-
3
- const FontColor: FC<{ className?: string }> = ({ className }) => {
4
- return (
5
- <svg
6
- xmlns="http://www.w3.org/2000/svg"
7
- viewBox="0 0 24 24"
8
- fill="none"
9
- stroke="currentColor"
10
- strokeWidth="2"
11
- strokeLinecap="round"
12
- strokeLinejoin="round"
13
- className={className}
14
- width={25}
15
- height={25}
16
- >
17
- <g>
18
- <path d="M29,27H3c-0.6,0-1,0.4-1,1s0.4,1,1,1h26c0.6,0,1-0.4,1-1S29.6,27,29,27z" />
19
- <path
20
- d="M6.4,16.7C6.4,16.7,6.4,16.7,6.4,16.7l7,7c0.2,0.2,0.4,0.3,0.7,0.3s0.5-0.1,0.7-0.3l6.9-6.9c0,0,0,0,0,0l1.5-1.5
21
- c0.4-0.4,0.4-1,0-1.4l-8.9-9c0,0,0,0,0,0l-2.5-2.5c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l1.8,1.8l-7.7,7.7c-0.4,0.4-0.4,1,0,1.4
22
- L6.4,16.7z M13.6,7L14,7.5c0,0,0,0,0,0l7,7L20.6,15H7.5l-1-1L13.6,7z"
23
- />
24
- <path d="M25,24c1.7,0,3-1.3,3-3c0-1.4-1.8-3.2-2.3-3.7c-0.4-0.4-1-0.4-1.4,0C23.8,17.8,22,19.6,22,21C22,22.7,23.3,24,25,24z" />
25
- </g>
26
- </svg>
27
- );
28
- };
29
-
30
- export default FontColor;
@@ -1,29 +0,0 @@
1
- import { FC } from "react";
2
-
3
- const ImageIcon: FC<{ className?: string }> = ({ className }) => {
4
- return (
5
- <svg
6
- width="12"
7
- height="12"
8
- viewBox="0 0 9 10"
9
- fill="none"
10
- xmlns="http://www.w3.org/2000/svg"
11
- className={className}
12
- >
13
- <g clipPath="url(#clip0_1225_1638)">
14
- <rect y="0.5" width="9" height="9" />
15
-
16
- <path d="M0 7L8.5 5" stroke="currentColor" />
17
- <circle cx="3" cy="3.5" r="1" fill="currentColor" />
18
- </g>
19
- <rect x="0.5" y="1" width="8" height="8" stroke="currentColor" />
20
- <defs>
21
- <clipPath id="clip0_1225_1638">
22
- <rect y="0.5" width="9" height="9" fill="white" />
23
- </clipPath>
24
- </defs>
25
- </svg>
26
- );
27
- };
28
-
29
- export default ImageIcon;
@@ -1,24 +0,0 @@
1
- import { FC } from "react";
2
-
3
- const Italic: FC<{ className?: string }> = ({ className }) => {
4
- return (
5
- <svg
6
- xmlns="http://www.w3.org/2000/svg"
7
- viewBox="0 0 24 24"
8
- fill="none"
9
- stroke="currentColor"
10
- strokeWidth="2"
11
- strokeLinecap="round"
12
- strokeLinejoin="round"
13
- className={className}
14
- width={12}
15
- height={12}
16
- >
17
- <line x1="19" y1="4" x2="10" y2="4"></line>
18
- <line x1="14" y1="20" x2="5" y2="20"></line>
19
- <line x1="15" y1="4" x2="9" y2="20"></line>
20
- </svg>
21
- );
22
- };
23
-
24
- export default Italic;
@@ -1,103 +0,0 @@
1
- import { FC } from "react";
2
-
3
- const Logo: FC<{ className?: string }> = ({ className }) => {
4
- return (
5
- <svg
6
- width="58"
7
- height="34"
8
- viewBox="0 0 58 34"
9
- fill="none"
10
- xmlns="http://www.w3.org/2000/svg"
11
- className={className}
12
- >
13
- <g filter="url(#filter0_d_21_1677)">
14
- <path
15
- d="M5 5.36426C5 5.16309 5.16309 5 5.36426 5H17.6581C17.8593 5 18.0223 5.16309 18.0223 5.36426V28.4949C18.0223 28.696 17.8593 28.8591 17.6581 28.8591H5.36426C5.16309 28.8591 5 28.696 5 28.4949V5.36426Z"
16
- fill="#38CD98"
17
- />
18
- </g>
19
- <g filter="url(#filter1_i_21_1677)">
20
- <circle cx="11.4656" cy="23.7595" r="2.18557" fill="currentColor" />
21
- </g>
22
- <path
23
- fillRule="evenodd"
24
- clipRule="evenodd"
25
- d="M52.8588 23.839H48.7257H48.537H48.1128C47.6715 23.839 47.4508 23.5942 47.4508 23.1044V13.7293C47.4508 13.5784 47.3285 13.4561 47.1777 13.4561H45.8118C45.6609 13.4561 45.5386 13.5784 45.5386 13.7293V15.1836C45.5386 15.2844 45.4569 15.3661 45.3561 15.3661C45.2876 15.3661 45.225 15.3275 45.1924 15.2672C44.805 14.5503 44.283 14.02 43.6264 13.6765C42.9563 13.301 42.2045 13.1132 41.3709 13.1132C40.6028 13.1132 39.8755 13.252 39.189 13.5295C38.5026 13.8071 37.8979 14.2152 37.3748 14.7539C36.8682 15.2764 36.4678 15.9212 36.1736 16.6885C35.8794 17.4558 35.7323 18.3374 35.7323 19.3332V19.725C35.7323 20.7372 35.8794 21.627 36.1736 22.3942C36.4678 23.1615 36.8682 23.8146 37.3748 24.3533C37.8979 24.8757 38.5026 25.2757 39.189 25.5532C39.8755 25.8144 40.6191 25.945 41.42 25.945C42.1881 25.945 42.9154 25.7491 43.6019 25.3573C44.2751 24.982 44.8058 24.4119 45.1941 23.6471C45.2255 23.5852 45.2886 23.5452 45.358 23.5452H45.3917C45.4728 23.5452 45.5386 23.611 45.5386 23.6921C45.5386 23.7904 45.544 23.8856 45.5547 23.9777V25.1392C45.5547 25.3904 45.7584 25.5941 46.0096 25.5941H47.2261C47.2914 25.5995 47.3581 25.6022 47.4263 25.6022H48.537H48.7257H57.7268C57.8777 25.6022 58 25.4799 58 25.329V24.1122C58 23.9614 57.8777 23.839 57.7268 23.839H55.3174C55.1665 23.839 55.0442 23.7167 55.0442 23.5659V8.73368C55.0442 8.58279 54.9219 8.46048 54.771 8.46048H50.5054C50.3545 8.46048 50.2322 8.58279 50.2322 8.73368V9.95043C50.2322 10.1013 50.3545 10.2236 50.5054 10.2236H52.8588C53.0097 10.2236 53.132 10.3459 53.132 10.4968V23.5659C53.132 23.7167 53.0097 23.839 52.8588 23.839ZM41.6161 24.1329C42.1881 24.1329 42.7111 24.0268 43.1851 23.8146C43.6754 23.6023 44.0922 23.3003 44.4354 22.9085C44.7786 22.5167 45.0483 22.0514 45.2444 21.5127C45.4406 20.9576 45.5386 20.3454 45.5386 19.6761V19.3822C45.5386 18.7292 45.4406 18.1333 45.2444 17.5946C45.0483 17.0395 44.7705 16.5661 44.4109 16.1743C44.0677 15.7824 43.6509 15.4804 43.1606 15.2682C42.6866 15.0396 42.1718 14.9254 41.6161 14.9254C41.044 14.9254 40.521 15.0315 40.0471 15.2437C39.5731 15.4559 39.1563 15.758 38.7968 16.1498C38.4535 16.5252 38.1839 16.9905 37.9877 17.5456C37.7916 18.0843 37.6936 18.6802 37.6936 19.3332V19.725C37.6936 21.1127 38.0531 22.1983 38.7722 22.982C39.5077 23.7493 40.4557 24.1329 41.6161 24.1329ZM31.1115 25.4191C31.0732 25.5287 30.9698 25.6022 30.8536 25.6022H27.4661C27.35 25.6022 27.2465 25.5287 27.2082 25.4191L23.1578 13.8193C23.0958 13.6417 23.2276 13.4561 23.4157 13.4561H25.089C25.2068 13.4561 25.3114 13.5316 25.3484 13.6435L28.9666 24.581C28.9942 24.6643 29.0721 24.7206 29.1599 24.7206C29.2477 24.7206 29.3256 24.6643 29.3532 24.581L32.9714 13.6435C33.0084 13.5316 33.1129 13.4561 33.2308 13.4561H34.9041C35.0922 13.4561 35.224 13.6417 35.162 13.8193L31.1115 25.4191Z"
26
- fill="currentColor"
27
- />
28
- <defs>
29
- <filter
30
- id="filter0_d_21_1677"
31
- x="0.124722"
32
- y="0.124722"
33
- width="22.7729"
34
- height="33.6097"
35
- filterUnits="userSpaceOnUse"
36
- colorInterpolationFilters="sRGB"
37
- >
38
- <feFlood floodOpacity="0" result="BackgroundImageFix" />
39
- <feColorMatrix
40
- in="SourceAlpha"
41
- type="matrix"
42
- values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
43
- result="hardAlpha"
44
- />
45
- <feOffset />
46
- <feGaussianBlur stdDeviation="2.43764" />
47
- <feComposite in2="hardAlpha" operator="out" />
48
- <feColorMatrix
49
- type="matrix"
50
- values="0 0 0 0 0.219608 0 0 0 0 0.803922 0 0 0 0 0.501961 0 0 0 0.3 0"
51
- />
52
- <feBlend
53
- mode="normal"
54
- in2="BackgroundImageFix"
55
- result="effect1_dropShadow_21_1677"
56
- />
57
- <feBlend
58
- mode="normal"
59
- in="SourceGraphic"
60
- in2="effect1_dropShadow_21_1677"
61
- result="shape"
62
- />
63
- </filter>
64
- <filter
65
- id="filter1_i_21_1677"
66
- x="9.28003"
67
- y="21.5739"
68
- width="4.37112"
69
- height="4.37112"
70
- filterUnits="userSpaceOnUse"
71
- colorInterpolationFilters="sRGB"
72
- >
73
- <feFlood floodOpacity="0" result="BackgroundImageFix" />
74
- <feBlend
75
- mode="normal"
76
- in="SourceGraphic"
77
- in2="BackgroundImageFix"
78
- result="shape"
79
- />
80
- <feColorMatrix
81
- in="SourceAlpha"
82
- type="matrix"
83
- values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
84
- result="hardAlpha"
85
- />
86
- <feOffset />
87
- <feGaussianBlur stdDeviation="0.546392" />
88
- <feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1" />
89
- <feColorMatrix
90
- type="matrix"
91
- values="0 0 0 0 0.219608 0 0 0 0 0.803922 0 0 0 0 0.501961 0 0 0 0.3 0"
92
- />
93
- <feBlend
94
- mode="normal"
95
- in2="shape"
96
- result="effect1_innerShadow_21_1677"
97
- />
98
- </filter>
99
- </defs>
100
- </svg>
101
- );
102
- };
103
- export default Logo;
@@ -1,41 +0,0 @@
1
- import { FC } from "react";
2
-
3
- const Section: FC<{ className?: string }> = ({ className }) => {
4
- return (
5
- <svg
6
- width="9"
7
- height="10"
8
- viewBox="0 0 9 10"
9
- className={className}
10
- fill="currentColor"
11
- xmlns="http://www.w3.org/2000/svg"
12
- >
13
- <g clipPath="url(#clip0_1222_1618)">
14
- <path
15
- fillRule="evenodd"
16
- clipRule="evenodd"
17
- d="M9 1.5H0V0.5H9V1.5Z"
18
- fill="currentColor"
19
- />
20
- <path
21
- fillRule="evenodd"
22
- clipRule="evenodd"
23
- d="M9 9.5H0V8.5H9V9.5Z"
24
- fill="currentColor"
25
- />
26
- </g>
27
- <defs>
28
- <clipPath id="clip0_1222_1618">
29
- <rect
30
- width="9"
31
- height="9"
32
- fill="white"
33
- transform="translate(0 0.5)"
34
- />
35
- </clipPath>
36
- </defs>
37
- </svg>
38
- );
39
- };
40
-
41
- export default Section;
@@ -1,22 +0,0 @@
1
- import { FC } from "react";
2
-
3
- const Strikethrough: FC<{ className?: string }> = ({ className }) => {
4
- return (
5
- <svg
6
- xmlns="http://www.w3.org/2000/svg"
7
- viewBox="0 0 24 24"
8
- stroke="currentColor"
9
- strokeWidth="1"
10
- className={className}
11
- width={12}
12
- height={12}
13
- >
14
- <path
15
- fillRule="evenodd"
16
- d="M13,15 L13,21 C13,21.5522847 12.5522847,22 12,22 C11.4477153,22 11,21.5522847 11,21 L11,15 L13,15 Z M3,13 C2.44771525,13 2,12.5522847 2,12 C2,11.4477153 2.44771525,11 3,11 L21,11 C21.5522847,11 22,11.4477153 22,12 C22,12.5522847 21.5522847,13 21,13 L3,13 Z M19,2 C19.5522847,2 20,2.44771525 20,3 C20,3.55228475 19.5522847,4 19,4 L13,4 L13,9 L11,9 L11,4 L5,4 C4.44771525,4 4,3.55228475 4,3 C4,2.44771525 4.44771525,2 5,2 L19,2 Z"
17
- />
18
- </svg>
19
- );
20
- };
21
-
22
- export default Strikethrough;