notra-editor 0.6.0 → 0.7.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.
- package/dist/components/blockquote-button/blockquote-button.d.cts +2 -2
- package/dist/components/blockquote-button/blockquote-button.d.ts +2 -2
- package/dist/components/code-block-button/code-block-button.d.cts +2 -2
- package/dist/components/code-block-button/code-block-button.d.ts +2 -2
- package/dist/components/heading-dropdown-menu/heading-dropdown-menu.d.cts +2 -2
- package/dist/components/heading-dropdown-menu/heading-dropdown-menu.d.ts +2 -2
- package/dist/components/heading-dropdown-menu/heading-menu-item.d.cts +2 -2
- package/dist/components/heading-dropdown-menu/heading-menu-item.d.ts +2 -2
- package/dist/components/image-popover/image-popover.d.cts +2 -2
- package/dist/components/image-popover/image-popover.d.ts +2 -2
- package/dist/components/image-popover/use-image-popover.d.cts +3 -3
- package/dist/components/image-popover/use-image-popover.d.ts +3 -3
- package/dist/components/link-popover/link-popover.d.cts +2 -2
- package/dist/components/link-popover/link-popover.d.ts +2 -2
- package/dist/components/link-popover/use-link-popover.d.cts +2 -2
- package/dist/components/link-popover/use-link-popover.d.ts +2 -2
- package/dist/components/list-dropdown-menu/list-dropdown-menu.d.cts +2 -2
- package/dist/components/list-dropdown-menu/list-dropdown-menu.d.ts +2 -2
- package/dist/components/list-dropdown-menu/list-menu-item.d.cts +2 -2
- package/dist/components/list-dropdown-menu/list-menu-item.d.ts +2 -2
- package/dist/components/mark-button/mark-button.d.cts +2 -2
- package/dist/components/mark-button/mark-button.d.ts +2 -2
- package/dist/components/toolbar/toolbar.d.cts +2 -2
- package/dist/components/toolbar/toolbar.d.ts +2 -2
- package/dist/components/ui/button.d.cts +2 -2
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/command.cjs +92 -29
- package/dist/components/ui/command.cjs.map +1 -1
- package/dist/components/ui/command.d.cts +18 -8
- package/dist/components/ui/command.d.ts +18 -8
- package/dist/components/ui/command.mjs +95 -29
- package/dist/components/ui/command.mjs.map +1 -1
- package/dist/components/ui/dialog.cjs +188 -0
- package/dist/components/ui/dialog.cjs.map +1 -0
- package/dist/components/ui/dialog.d.cts +20 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.mjs +155 -0
- package/dist/components/ui/dialog.mjs.map +1 -0
- package/dist/components/ui/dropdown-menu.cjs +3 -2
- package/dist/components/ui/dropdown-menu.cjs.map +1 -1
- package/dist/components/ui/dropdown-menu.d.cts +16 -16
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/dropdown-menu.mjs +3 -2
- package/dist/components/ui/dropdown-menu.mjs.map +1 -1
- package/dist/components/ui/input-group.cjs +175 -0
- package/dist/components/ui/input-group.cjs.map +1 -0
- package/dist/components/ui/input-group.d.cts +20 -0
- package/dist/components/ui/input-group.d.ts +20 -0
- package/dist/components/ui/input-group.mjs +146 -0
- package/dist/components/ui/input-group.mjs.map +1 -0
- package/dist/components/ui/input.cjs +1 -1
- package/dist/components/ui/input.cjs.map +1 -1
- package/dist/components/ui/input.d.cts +2 -2
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/input.mjs +1 -1
- package/dist/components/ui/input.mjs.map +1 -1
- package/dist/components/ui/popover.cjs +46 -6
- package/dist/components/ui/popover.cjs.map +1 -1
- package/dist/components/ui/popover.d.cts +9 -6
- package/dist/components/ui/popover.d.ts +9 -6
- package/dist/components/ui/popover.mjs +43 -6
- package/dist/components/ui/popover.mjs.map +1 -1
- package/dist/components/ui/separator.cjs +2 -1
- package/dist/components/ui/separator.cjs.map +1 -1
- package/dist/components/ui/separator.d.cts +2 -2
- package/dist/components/ui/separator.d.ts +2 -2
- package/dist/components/ui/separator.mjs +2 -1
- package/dist/components/ui/separator.mjs.map +1 -1
- package/dist/components/ui/textarea.cjs +43 -0
- package/dist/components/ui/textarea.cjs.map +1 -0
- package/dist/components/ui/textarea.d.cts +6 -0
- package/dist/components/ui/textarea.d.ts +6 -0
- package/dist/components/ui/textarea.mjs +19 -0
- package/dist/components/ui/textarea.mjs.map +1 -0
- package/dist/components/undo-redo-button/undo-redo-button.d.cts +2 -2
- package/dist/components/undo-redo-button/undo-redo-button.d.ts +2 -2
- package/dist/components/undo-redo-button/use-undo-redo.d.cts +2 -2
- package/dist/components/undo-redo-button/use-undo-redo.d.ts +2 -2
- package/dist/extensions/code-block.cjs.map +1 -1
- package/dist/extensions/code-block.mjs.map +1 -1
- package/dist/styles/globals.css +953 -205
- package/dist/themes/default/editor.css +69 -0
- package/dist/themes/default/shared.css +33 -0
- package/package.json +3 -1
- package/dist/icons/redo-icon.cjs +0 -54
- package/dist/icons/redo-icon.cjs.map +0 -1
- package/dist/icons/redo-icon.d.cts +0 -7
- package/dist/icons/redo-icon.d.ts +0 -7
- package/dist/icons/redo-icon.mjs +0 -30
- package/dist/icons/redo-icon.mjs.map +0 -1
- package/dist/icons/undo-icon.cjs +0 -54
- package/dist/icons/undo-icon.cjs.map +0 -1
- package/dist/icons/undo-icon.d.cts +0 -7
- package/dist/icons/undo-icon.d.ts +0 -7
- package/dist/icons/undo-icon.mjs +0 -30
- package/dist/icons/undo-icon.mjs.map +0 -1
|
@@ -27,9 +27,25 @@
|
|
|
27
27
|
--tt-gray-light-a-800: rgba(30, 32, 36, 0.95);
|
|
28
28
|
--tt-gray-light-a-900: rgba(29, 30, 32, 0.98);
|
|
29
29
|
|
|
30
|
+
/* Gray alpha scale (dark mode) */
|
|
31
|
+
--tt-gray-dark-a-50: rgba(232, 232, 253, 0.05);
|
|
32
|
+
--tt-gray-dark-a-100: rgba(231, 231, 243, 0.07);
|
|
33
|
+
--tt-gray-dark-a-200: rgba(238, 238, 246, 0.11);
|
|
34
|
+
--tt-gray-dark-a-300: rgba(239, 239, 245, 0.22);
|
|
35
|
+
--tt-gray-dark-a-400: rgba(244, 244, 255, 0.37);
|
|
36
|
+
--tt-gray-dark-a-500: rgba(236, 238, 253, 0.5);
|
|
37
|
+
--tt-gray-dark-a-600: rgba(247, 247, 253, 0.64);
|
|
38
|
+
--tt-gray-dark-a-700: rgba(251, 251, 254, 0.75);
|
|
39
|
+
--tt-gray-dark-a-800: rgba(253, 253, 253, 0.88);
|
|
40
|
+
--tt-gray-dark-a-900: rgba(255, 255, 255, 0.96);
|
|
41
|
+
|
|
30
42
|
/* Gray solid scale (light mode) */
|
|
31
43
|
--tt-gray-light-200: rgba(234, 234, 235, 1);
|
|
32
44
|
|
|
45
|
+
/* Gray solid scale (dark mode) */
|
|
46
|
+
--tt-gray-dark-50: rgba(25, 25, 26, 1);
|
|
47
|
+
--tt-gray-dark-200: rgba(45, 45, 47, 1);
|
|
48
|
+
|
|
33
49
|
/* Radius & transitions */
|
|
34
50
|
--tt-radius-lg: 0.75rem;
|
|
35
51
|
--tt-transition-duration-default: 0.2s;
|
|
@@ -245,6 +261,7 @@
|
|
|
245
261
|
Additional Variables
|
|
246
262
|
===================== */
|
|
247
263
|
.notra-editor {
|
|
264
|
+
--tt-brand-color-400: rgba(122, 82, 255, 1);
|
|
248
265
|
--tt-brand-color-500: rgba(98, 41, 255, 1);
|
|
249
266
|
--tt-shadow-elevated-md:
|
|
250
267
|
0px 16px 48px 0px rgba(17, 24, 39, 0.04),
|
|
@@ -314,3 +331,55 @@
|
|
|
314
331
|
transform: translateX(-50%) scale(1) translateY(0);
|
|
315
332
|
}
|
|
316
333
|
}
|
|
334
|
+
|
|
335
|
+
/* =====================
|
|
336
|
+
Dark Mode Overrides
|
|
337
|
+
===================== */
|
|
338
|
+
.dark .notra-editor {
|
|
339
|
+
--notra-cursor-color: var(--tt-brand-color-400);
|
|
340
|
+
--notra-selection-color: rgba(122, 82, 255, 0.2);
|
|
341
|
+
--notra-placeholder-color: var(--tt-gray-dark-a-400);
|
|
342
|
+
|
|
343
|
+
/* Toolbar */
|
|
344
|
+
--tt-toolbar-bg-color: var(--black);
|
|
345
|
+
--tt-toolbar-border-color: var(--tt-gray-dark-a-50);
|
|
346
|
+
|
|
347
|
+
/* Ghost button colors */
|
|
348
|
+
--tt-button-hover-bg-color: var(--tt-gray-dark-200);
|
|
349
|
+
--tt-button-default-icon-color: var(--tt-gray-dark-a-600);
|
|
350
|
+
--tt-button-hover-icon-color: var(--tt-gray-dark-a-900);
|
|
351
|
+
--tt-button-disabled-icon-color: var(--tt-gray-dark-a-400);
|
|
352
|
+
|
|
353
|
+
/* Separator */
|
|
354
|
+
--tt-separator-color: var(--tt-gray-dark-a-200);
|
|
355
|
+
|
|
356
|
+
/* Shadow */
|
|
357
|
+
--tt-shadow-elevated-md:
|
|
358
|
+
0px 16px 48px 0px rgba(0, 0, 0, 0.5), 0px 12px 24px 0px rgba(0, 0, 0, 0.24),
|
|
359
|
+
0px 6px 8px 0px rgba(0, 0, 0, 0.22), 0px 2px 3px 0px rgba(0, 0, 0, 0.12);
|
|
360
|
+
|
|
361
|
+
/* Dropdown menu */
|
|
362
|
+
--tt-dropdown-menu-bg-color: var(--tt-gray-dark-50);
|
|
363
|
+
--tt-dropdown-menu-text-color: var(--tt-gray-dark-a-600);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/* =====================
|
|
367
|
+
Button Active State (dark)
|
|
368
|
+
===================== */
|
|
369
|
+
.dark .notra-editor .tiptap-button[data-active-state='on'] {
|
|
370
|
+
background-color: var(--tt-gray-dark-a-100);
|
|
371
|
+
color: var(--tt-brand-color-400);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.dark
|
|
375
|
+
.notra-editor
|
|
376
|
+
.tiptap-button[data-active-state='on']:hover:not([disabled]) {
|
|
377
|
+
background-color: var(--tt-gray-dark-200);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* =====================
|
|
381
|
+
Button Extras (dark)
|
|
382
|
+
===================== */
|
|
383
|
+
.dark .notra-editor .tiptap-button-dropdown-arrows {
|
|
384
|
+
color: var(--tt-gray-dark-a-600);
|
|
385
|
+
}
|
|
@@ -38,6 +38,39 @@
|
|
|
38
38
|
--notra-radius: 6px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/* =====================
|
|
42
|
+
Dark Mode Overrides
|
|
43
|
+
===================== */
|
|
44
|
+
.dark .notra {
|
|
45
|
+
/* Dark mode colors */
|
|
46
|
+
--notra-color-text: rgba(255, 255, 255, 0.96);
|
|
47
|
+
--notra-color-bg: rgba(14, 14, 17, 1);
|
|
48
|
+
--notra-color-border: rgba(238, 238, 246, 0.11);
|
|
49
|
+
--notra-color-link: rgba(122, 82, 255, 1);
|
|
50
|
+
|
|
51
|
+
/* Code */
|
|
52
|
+
--notra-code-bg: rgba(231, 231, 243, 0.07);
|
|
53
|
+
--notra-code-text: rgba(251, 251, 254, 0.75);
|
|
54
|
+
--notra-code-border: rgba(238, 238, 246, 0.11);
|
|
55
|
+
--notra-codeblock-bg: rgba(232, 232, 253, 0.05);
|
|
56
|
+
--notra-codeblock-text: rgba(253, 253, 253, 0.88);
|
|
57
|
+
--notra-codeblock-border: rgba(238, 238, 246, 0.11);
|
|
58
|
+
|
|
59
|
+
/* Blockquote */
|
|
60
|
+
--notra-blockquote-bar: rgba(245, 245, 245, 1);
|
|
61
|
+
|
|
62
|
+
/* Horizontal rule */
|
|
63
|
+
--notra-hr-color: rgba(238, 238, 246, 0.11);
|
|
64
|
+
|
|
65
|
+
/* Task list */
|
|
66
|
+
--notra-checklist-bg: rgba(231, 231, 243, 0.07);
|
|
67
|
+
--notra-checklist-bg-active: rgba(255, 255, 255, 0.96);
|
|
68
|
+
--notra-checklist-border: rgba(238, 238, 246, 0.11);
|
|
69
|
+
--notra-checklist-border-active: rgba(255, 255, 255, 0.96);
|
|
70
|
+
--notra-checklist-check-color: rgba(14, 14, 17, 1);
|
|
71
|
+
--notra-checklist-text-active: rgba(236, 238, 253, 0.5);
|
|
72
|
+
}
|
|
73
|
+
|
|
41
74
|
/* =====================
|
|
42
75
|
Base Typography
|
|
43
76
|
===================== */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notra-editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"description": "A Markdown-first rich text editor for React",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -71,8 +71,10 @@
|
|
|
71
71
|
"postcss-cli": "^11.0.1",
|
|
72
72
|
"react": "^19.2.0",
|
|
73
73
|
"react-dom": "^19.2.0",
|
|
74
|
+
"shadcn": "^4.6.0",
|
|
74
75
|
"tailwindcss": "^4.2.4",
|
|
75
76
|
"tsup": "^8.4.0",
|
|
77
|
+
"tw-animate-css": "^1.4.0",
|
|
76
78
|
"typescript": "^5.8.0",
|
|
77
79
|
"vitest": "^4.0.18"
|
|
78
80
|
},
|
package/dist/icons/redo-icon.cjs
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var redo_icon_exports = {};
|
|
20
|
-
__export(redo_icon_exports, {
|
|
21
|
-
RedoIcon: () => RedoIcon
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(redo_icon_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
const RedoIcon = (0, import_react.memo)(({ className, ...props }) => {
|
|
27
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
28
|
-
"svg",
|
|
29
|
-
{
|
|
30
|
-
className,
|
|
31
|
-
fill: "currentColor",
|
|
32
|
-
height: "24",
|
|
33
|
-
viewBox: "0 0 24 24",
|
|
34
|
-
width: "24",
|
|
35
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
-
...props,
|
|
37
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
38
|
-
"path",
|
|
39
|
-
{
|
|
40
|
-
clipRule: "evenodd",
|
|
41
|
-
d: "M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z",
|
|
42
|
-
fill: "currentColor",
|
|
43
|
-
fillRule: "evenodd"
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
});
|
|
49
|
-
RedoIcon.displayName = "RedoIcon";
|
|
50
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
-
0 && (module.exports = {
|
|
52
|
-
RedoIcon
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL=redo-icon.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/icons/redo-icon.tsx"],"sourcesContent":["import { memo } from 'react';\n\ntype SvgProps = React.ComponentPropsWithoutRef<'svg'>;\n\nexport const RedoIcon = memo(({ className, ...props }: SvgProps) => {\n\treturn (\n\t\t<svg\n\t\t\tclassName={className}\n\t\t\tfill=\"currentColor\"\n\t\t\theight=\"24\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\twidth=\"24\"\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<path\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t/>\n\t\t</svg>\n\t);\n});\n\nRedoIcon.displayName = 'RedoIcon';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeG;AAfH,mBAAqB;AAId,MAAM,eAAW,mBAAK,CAAC,EAAE,WAAW,GAAG,MAAM,MAAgB;AACnE,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA,MAAK;AAAA,MACL,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,OAAM;AAAA,MACN,OAAM;AAAA,MACL,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACA,UAAS;AAAA,UACT,GAAE;AAAA,UACF,MAAK;AAAA,UACL,UAAS;AAAA;AAAA,MACV;AAAA;AAAA,EACD;AAEF,CAAC;AAED,SAAS,cAAc;","names":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
type SvgProps = React.ComponentPropsWithoutRef<'svg'>;
|
|
5
|
-
declare const RedoIcon: react.MemoExoticComponent<({ className, ...props }: SvgProps) => react_jsx_runtime.JSX.Element>;
|
|
6
|
-
|
|
7
|
-
export { RedoIcon };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
type SvgProps = React.ComponentPropsWithoutRef<'svg'>;
|
|
5
|
-
declare const RedoIcon: react.MemoExoticComponent<({ className, ...props }: SvgProps) => react_jsx_runtime.JSX.Element>;
|
|
6
|
-
|
|
7
|
-
export { RedoIcon };
|
package/dist/icons/redo-icon.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from "react";
|
|
3
|
-
const RedoIcon = memo(({ className, ...props }) => {
|
|
4
|
-
return /* @__PURE__ */ jsx(
|
|
5
|
-
"svg",
|
|
6
|
-
{
|
|
7
|
-
className,
|
|
8
|
-
fill: "currentColor",
|
|
9
|
-
height: "24",
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
width: "24",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
...props,
|
|
14
|
-
children: /* @__PURE__ */ jsx(
|
|
15
|
-
"path",
|
|
16
|
-
{
|
|
17
|
-
clipRule: "evenodd",
|
|
18
|
-
d: "M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z",
|
|
19
|
-
fill: "currentColor",
|
|
20
|
-
fillRule: "evenodd"
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
});
|
|
26
|
-
RedoIcon.displayName = "RedoIcon";
|
|
27
|
-
export {
|
|
28
|
-
RedoIcon
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=redo-icon.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/icons/redo-icon.tsx"],"sourcesContent":["import { memo } from 'react';\n\ntype SvgProps = React.ComponentPropsWithoutRef<'svg'>;\n\nexport const RedoIcon = memo(({ className, ...props }: SvgProps) => {\n\treturn (\n\t\t<svg\n\t\t\tclassName={className}\n\t\t\tfill=\"currentColor\"\n\t\t\theight=\"24\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\twidth=\"24\"\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<path\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M15.7071 2.29289C15.3166 1.90237 14.6834 1.90237 14.2929 2.29289C13.9024 2.68342 13.9024 3.31658 14.2929 3.70711L17.5858 7H9.5C7.77609 7 6.12279 7.68482 4.90381 8.90381C3.68482 10.1228 3 11.7761 3 13.5C3 14.3536 3.16813 15.1988 3.49478 15.9874C3.82144 16.7761 4.30023 17.4926 4.90381 18.0962C6.12279 19.3152 7.77609 20 9.5 20H13C13.5523 20 14 19.5523 14 19C14 18.4477 13.5523 18 13 18H9.5C8.30653 18 7.16193 17.5259 6.31802 16.682C5.90016 16.2641 5.56869 15.768 5.34254 15.2221C5.1164 14.6761 5 14.0909 5 13.5C5 12.3065 5.47411 11.1619 6.31802 10.318C7.16193 9.47411 8.30653 9 9.5 9H17.5858L14.2929 12.2929C13.9024 12.6834 13.9024 13.3166 14.2929 13.7071C14.6834 14.0976 15.3166 14.0976 15.7071 13.7071L20.7071 8.70711C21.0976 8.31658 21.0976 7.68342 20.7071 7.29289L15.7071 2.29289Z\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t/>\n\t\t</svg>\n\t);\n});\n\nRedoIcon.displayName = 'RedoIcon';\n"],"mappings":"AAeG;AAfH,SAAS,YAAY;AAId,MAAM,WAAW,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,MAAgB;AACnE,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA,MAAK;AAAA,MACL,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,OAAM;AAAA,MACN,OAAM;AAAA,MACL,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACA,UAAS;AAAA,UACT,GAAE;AAAA,UACF,MAAK;AAAA,UACL,UAAS;AAAA;AAAA,MACV;AAAA;AAAA,EACD;AAEF,CAAC;AAED,SAAS,cAAc;","names":[]}
|
package/dist/icons/undo-icon.cjs
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var undo_icon_exports = {};
|
|
20
|
-
__export(undo_icon_exports, {
|
|
21
|
-
UndoIcon: () => UndoIcon
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(undo_icon_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
const UndoIcon = (0, import_react.memo)(({ className, ...props }) => {
|
|
27
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
28
|
-
"svg",
|
|
29
|
-
{
|
|
30
|
-
className,
|
|
31
|
-
fill: "currentColor",
|
|
32
|
-
height: "24",
|
|
33
|
-
viewBox: "0 0 24 24",
|
|
34
|
-
width: "24",
|
|
35
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
-
...props,
|
|
37
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
38
|
-
"path",
|
|
39
|
-
{
|
|
40
|
-
clipRule: "evenodd",
|
|
41
|
-
d: "M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.0126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z",
|
|
42
|
-
fill: "currentColor",
|
|
43
|
-
fillRule: "evenodd"
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
});
|
|
49
|
-
UndoIcon.displayName = "UndoIcon";
|
|
50
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
-
0 && (module.exports = {
|
|
52
|
-
UndoIcon
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL=undo-icon.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/icons/undo-icon.tsx"],"sourcesContent":["import { memo } from 'react';\n\ntype SvgProps = React.ComponentPropsWithoutRef<'svg'>;\n\nexport const UndoIcon = memo(({ className, ...props }: SvgProps) => {\n\treturn (\n\t\t<svg\n\t\t\tclassName={className}\n\t\t\tfill=\"currentColor\"\n\t\t\theight=\"24\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\twidth=\"24\"\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<path\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.0126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t/>\n\t\t</svg>\n\t);\n});\n\nUndoIcon.displayName = 'UndoIcon';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeG;AAfH,mBAAqB;AAId,MAAM,eAAW,mBAAK,CAAC,EAAE,WAAW,GAAG,MAAM,MAAgB;AACnE,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA,MAAK;AAAA,MACL,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,OAAM;AAAA,MACN,OAAM;AAAA,MACL,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACA,UAAS;AAAA,UACT,GAAE;AAAA,UACF,MAAK;AAAA,UACL,UAAS;AAAA;AAAA,MACV;AAAA;AAAA,EACD;AAEF,CAAC;AAED,SAAS,cAAc;","names":[]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
type SvgProps = React.ComponentPropsWithoutRef<'svg'>;
|
|
5
|
-
declare const UndoIcon: react.MemoExoticComponent<({ className, ...props }: SvgProps) => react_jsx_runtime.JSX.Element>;
|
|
6
|
-
|
|
7
|
-
export { UndoIcon };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
type SvgProps = React.ComponentPropsWithoutRef<'svg'>;
|
|
5
|
-
declare const UndoIcon: react.MemoExoticComponent<({ className, ...props }: SvgProps) => react_jsx_runtime.JSX.Element>;
|
|
6
|
-
|
|
7
|
-
export { UndoIcon };
|
package/dist/icons/undo-icon.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { memo } from "react";
|
|
3
|
-
const UndoIcon = memo(({ className, ...props }) => {
|
|
4
|
-
return /* @__PURE__ */ jsx(
|
|
5
|
-
"svg",
|
|
6
|
-
{
|
|
7
|
-
className,
|
|
8
|
-
fill: "currentColor",
|
|
9
|
-
height: "24",
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
width: "24",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
...props,
|
|
14
|
-
children: /* @__PURE__ */ jsx(
|
|
15
|
-
"path",
|
|
16
|
-
{
|
|
17
|
-
clipRule: "evenodd",
|
|
18
|
-
d: "M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.0126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z",
|
|
19
|
-
fill: "currentColor",
|
|
20
|
-
fillRule: "evenodd"
|
|
21
|
-
}
|
|
22
|
-
)
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
});
|
|
26
|
-
UndoIcon.displayName = "UndoIcon";
|
|
27
|
-
export {
|
|
28
|
-
UndoIcon
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=undo-icon.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/icons/undo-icon.tsx"],"sourcesContent":["import { memo } from 'react';\n\ntype SvgProps = React.ComponentPropsWithoutRef<'svg'>;\n\nexport const UndoIcon = memo(({ className, ...props }: SvgProps) => {\n\treturn (\n\t\t<svg\n\t\t\tclassName={className}\n\t\t\tfill=\"currentColor\"\n\t\t\theight=\"24\"\n\t\t\tviewBox=\"0 0 24 24\"\n\t\t\twidth=\"24\"\n\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<path\n\t\t\t\tclipRule=\"evenodd\"\n\t\t\t\td=\"M9.70711 3.70711C10.0976 3.31658 10.0976 2.68342 9.70711 2.29289C9.31658 1.90237 8.68342 1.90237 8.29289 2.29289L3.29289 7.29289C2.90237 7.68342 2.90237 8.31658 3.29289 8.70711L8.29289 13.7071C8.68342 14.0976 9.31658 14.0976 9.70711 13.7071C10.0976 13.3166 10.0976 12.6834 9.70711 12.2929L6.41421 9H14.5C15.0909 9 15.6761 9.1164 16.2221 9.34254C16.768 9.56869 17.2641 9.90016 17.682 10.318C18.0998 10.7359 18.4313 11.232 18.6575 11.7779C18.8836 12.3239 19 12.9091 19 13.5C19 14.0909 18.8836 14.6761 18.6575 15.2221C18.4313 15.768 18.0998 16.2641 17.682 16.682C17.2641 17.0998 16.768 17.4313 16.2221 17.6575C15.6761 17.8836 15.0909 18 14.5 18H11C10.4477 18 10 18.4477 10 19C10 19.5523 10.4477 20 11 20H14.5C15.3536 20 16.1988 19.8319 16.9874 19.5052C17.7761 19.1786 18.4926 18.6998 19.0962 18.0962C19.6998 17.4926 20.1786 16.7761 20.5052 15.9874C20.8319 15.1988 21 14.3536 21 13.5C21 12.6464 20.8319 11.8012 20.5052 11.0126C20.1786 10.2239 19.6998 9.50739 19.0962 8.90381C18.4926 8.30022 17.7761 7.82144 16.9874 7.49478C16.1988 7.16813 15.3536 7 14.5 7H6.41421L9.70711 3.70711Z\"\n\t\t\t\tfill=\"currentColor\"\n\t\t\t\tfillRule=\"evenodd\"\n\t\t\t/>\n\t\t</svg>\n\t);\n});\n\nUndoIcon.displayName = 'UndoIcon';\n"],"mappings":"AAeG;AAfH,SAAS,YAAY;AAId,MAAM,WAAW,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,MAAgB;AACnE,SACC;AAAA,IAAC;AAAA;AAAA,MACA;AAAA,MACA,MAAK;AAAA,MACL,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,OAAM;AAAA,MACN,OAAM;AAAA,MACL,GAAG;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UACA,UAAS;AAAA,UACT,GAAE;AAAA,UACF,MAAK;AAAA,UACL,UAAS;AAAA;AAAA,MACV;AAAA;AAAA,EACD;AAEF,CAAC;AAED,SAAS,cAAc;","names":[]}
|