@ixo/editor 1.0.0 → 1.1.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/README.md +160 -136
- package/dist/chunk-57TP5N42.mjs +1784 -0
- package/dist/chunk-57TP5N42.mjs.map +1 -0
- package/dist/chunk-MXVDN3FO.mjs +169 -0
- package/dist/chunk-MXVDN3FO.mjs.map +1 -0
- package/dist/graphql-client-BmODcqPE.d.mts +135 -0
- package/dist/index.d.mts +1328 -0
- package/dist/index.mjs +27 -0
- package/dist/index.mjs.map +1 -0
- package/dist/mantine/index.d.mts +1253 -0
- package/dist/mantine/index.mjs +413 -0
- package/dist/mantine/index.mjs.map +1 -0
- package/dist/shadcn/index.d.mts +6 -0
- package/dist/shadcn/index.mjs +27 -0
- package/dist/shadcn/index.mjs.map +1 -0
- package/fonts/inter-v12-latin/inter-v12-latin-100.woff +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-100.woff2 +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-200.woff +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-200.woff2 +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-300.woff +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-300.woff2 +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-500.woff +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-500.woff2 +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-600.woff +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-600.woff2 +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-700.woff +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-700.woff2 +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-800.woff +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-800.woff2 +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-900.woff +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-900.woff2 +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-regular.woff +0 -0
- package/fonts/inter-v12-latin/inter-v12-latin-regular.woff2 +0 -0
- package/package.json +32 -9
- package/style-core.css +243 -0
- package/style-mantine.css +340 -0
- package/style-shadcn.css +340 -0
- package/style.css +94 -0
- package/dist/blocks/index.d.ts +0 -85
- package/dist/blocks/index.d.ts.map +0 -1
- package/dist/blocks/index.js +0 -50
- package/dist/blocks/list/ListBlock.d.ts +0 -59
- package/dist/blocks/list/ListBlock.d.ts.map +0 -1
- package/dist/blocks/list/ListBlock.js +0 -51
- package/dist/blocks/list/ListBlockToolbar.d.ts +0 -9
- package/dist/blocks/list/ListBlockToolbar.d.ts.map +0 -1
- package/dist/blocks/list/ListBlockToolbar.js +0 -26
- package/dist/blocks/list/ListContainer.d.ts +0 -5
- package/dist/blocks/list/ListContainer.d.ts.map +0 -1
- package/dist/blocks/list/ListContainer.js +0 -10
- package/dist/blocks/list/ListGeneralTab.d.ts +0 -11
- package/dist/blocks/list/ListGeneralTab.d.ts.map +0 -1
- package/dist/blocks/list/ListGeneralTab.js +0 -134
- package/dist/blocks/list/ListItem.d.ts +0 -8
- package/dist/blocks/list/ListItem.d.ts.map +0 -1
- package/dist/blocks/list/ListItem.js +0 -24
- package/dist/blocks/list/ListPreviewTab.d.ts +0 -9
- package/dist/blocks/list/ListPreviewTab.d.ts.map +0 -1
- package/dist/blocks/list/ListPreviewTab.js +0 -51
- package/dist/blocks/list/ListSettings.d.ts +0 -3
- package/dist/blocks/list/ListSettings.d.ts.map +0 -1
- package/dist/blocks/list/ListSettings.js +0 -115
- package/dist/blocks/list/ListSettingsTab.d.ts +0 -10
- package/dist/blocks/list/ListSettingsTab.d.ts.map +0 -1
- package/dist/blocks/list/ListSettingsTab.js +0 -64
- package/dist/blocks/list/index.d.ts +0 -3
- package/dist/blocks/list/index.d.ts.map +0 -1
- package/dist/blocks/list/index.js +0 -5
- package/dist/blocks/list/useList.d.ts +0 -5
- package/dist/blocks/list/useList.d.ts.map +0 -1
- package/dist/blocks/list/useList.js +0 -11
- package/dist/blocks/overview/OverviewBlock.d.ts +0 -33
- package/dist/blocks/overview/OverviewBlock.d.ts.map +0 -1
- package/dist/blocks/overview/OverviewBlock.js +0 -34
- package/dist/blocks/overview/OverviewBlockToolbar.d.ts +0 -8
- package/dist/blocks/overview/OverviewBlockToolbar.d.ts.map +0 -1
- package/dist/blocks/overview/OverviewBlockToolbar.js +0 -16
- package/dist/blocks/overview/OverviewGeneralTab.d.ts +0 -11
- package/dist/blocks/overview/OverviewGeneralTab.d.ts.map +0 -1
- package/dist/blocks/overview/OverviewGeneralTab.js +0 -134
- package/dist/blocks/overview/OverviewPreviewTab.d.ts +0 -10
- package/dist/blocks/overview/OverviewPreviewTab.d.ts.map +0 -1
- package/dist/blocks/overview/OverviewPreviewTab.js +0 -30
- package/dist/blocks/overview/OverviewSettings.d.ts +0 -3
- package/dist/blocks/overview/OverviewSettings.d.ts.map +0 -1
- package/dist/blocks/overview/OverviewSettings.js +0 -114
- package/dist/blocks/overview/index.d.ts +0 -3
- package/dist/blocks/overview/index.d.ts.map +0 -1
- package/dist/blocks/overview/index.js +0 -5
- package/dist/blocks/overview/useOverview.d.ts +0 -11
- package/dist/blocks/overview/useOverview.d.ts.map +0 -1
- package/dist/blocks/overview/useOverview.js +0 -61
- package/dist/components/GlobeIcon.d.ts +0 -9
- package/dist/components/GlobeIcon.d.ts.map +0 -1
- package/dist/components/GlobeIcon.js +0 -20
- package/dist/components/IxoEditor.d.ts +0 -14
- package/dist/components/IxoEditor.d.ts.map +0 -1
- package/dist/components/IxoEditor.js +0 -41
- package/dist/components/PenIcon.d.ts +0 -9
- package/dist/components/PenIcon.d.ts.map +0 -1
- package/dist/components/PenIcon.js +0 -20
- package/dist/components/SettingsIcon.d.ts +0 -9
- package/dist/components/SettingsIcon.d.ts.map +0 -1
- package/dist/components/SettingsIcon.js +0 -21
- package/dist/components/SettingsModal/AdvancedTab.d.ts +0 -8
- package/dist/components/SettingsModal/AdvancedTab.d.ts.map +0 -1
- package/dist/components/SettingsModal/AdvancedTab.js +0 -14
- package/dist/components/SettingsModal/DomainPreview.d.ts +0 -7
- package/dist/components/SettingsModal/DomainPreview.d.ts.map +0 -1
- package/dist/components/SettingsModal/DomainPreview.js +0 -22
- package/dist/components/SettingsModal/FeatureASettings.d.ts +0 -3
- package/dist/components/SettingsModal/FeatureASettings.d.ts.map +0 -1
- package/dist/components/SettingsModal/FeatureASettings.js +0 -74
- package/dist/components/SettingsModal/GeneralTab.d.ts +0 -10
- package/dist/components/SettingsModal/GeneralTab.d.ts.map +0 -1
- package/dist/components/SettingsModal/GeneralTab.js +0 -111
- package/dist/components/SettingsModal/PreviewTab.d.ts +0 -8
- package/dist/components/SettingsModal/PreviewTab.d.ts.map +0 -1
- package/dist/components/SettingsModal/PreviewTab.js +0 -14
- package/dist/components/SettingsModal/SettingsModal.d.ts +0 -16
- package/dist/components/SettingsModal/SettingsModal.d.ts.map +0 -1
- package/dist/components/SettingsModal/SettingsModal.js +0 -61
- package/dist/components/SettingsModal/SettingsNavigation.d.ts +0 -15
- package/dist/components/SettingsModal/SettingsNavigation.d.ts.map +0 -1
- package/dist/components/SettingsModal/SettingsNavigation.js +0 -21
- package/dist/components/SettingsModal/index.d.ts +0 -8
- package/dist/components/SettingsModal/index.d.ts.map +0 -1
- package/dist/components/SettingsModal/index.js +0 -17
- package/dist/components/SwitchOption.d.ts +0 -9
- package/dist/components/SwitchOption.d.ts.map +0 -1
- package/dist/components/SwitchOption.js +0 -45
- package/dist/components/icons/ArchiveIcon.d.ts +0 -9
- package/dist/components/icons/ArchiveIcon.d.ts.map +0 -1
- package/dist/components/icons/ArchiveIcon.js +0 -18
- package/dist/components/icons/AudioIcon.d.ts +0 -9
- package/dist/components/icons/AudioIcon.d.ts.map +0 -1
- package/dist/components/icons/AudioIcon.js +0 -17
- package/dist/components/icons/DefaultIcon.d.ts +0 -9
- package/dist/components/icons/DefaultIcon.d.ts.map +0 -1
- package/dist/components/icons/DefaultIcon.js +0 -17
- package/dist/components/icons/DocumentIcon.d.ts +0 -9
- package/dist/components/icons/DocumentIcon.d.ts.map +0 -1
- package/dist/components/icons/DocumentIcon.js +0 -20
- package/dist/components/icons/ImageIcon.d.ts +0 -9
- package/dist/components/icons/ImageIcon.d.ts.map +0 -1
- package/dist/components/icons/ImageIcon.js +0 -18
- package/dist/components/icons/JsonIcon.d.ts +0 -9
- package/dist/components/icons/JsonIcon.d.ts.map +0 -1
- package/dist/components/icons/JsonIcon.js +0 -19
- package/dist/components/icons/PdfIcon.d.ts +0 -9
- package/dist/components/icons/PdfIcon.d.ts.map +0 -1
- package/dist/components/icons/PdfIcon.js +0 -20
- package/dist/components/icons/VideoIcon.d.ts +0 -9
- package/dist/components/icons/VideoIcon.d.ts.map +0 -1
- package/dist/components/icons/VideoIcon.js +0 -17
- package/dist/components/icons/XmlIcon.d.ts +0 -9
- package/dist/components/icons/XmlIcon.d.ts.map +0 -1
- package/dist/components/icons/XmlIcon.js +0 -19
- package/dist/components/icons/index.d.ts +0 -10
- package/dist/components/icons/index.d.ts.map +0 -1
- package/dist/components/icons/index.js +0 -24
- package/dist/components/ui/button.d.ts +0 -11
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -68
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/card.js +0 -56
- package/dist/components/ui/dialog.d.ts +0 -16
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dialog.js +0 -85
- package/dist/components/ui/dropdown-menu.d.ts +0 -26
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.js +0 -110
- package/dist/components/ui/input.d.ts +0 -4
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/input.js +0 -41
- package/dist/components/ui/label.d.ts +0 -5
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -42
- package/dist/components/ui/switch.d.ts +0 -5
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/switch.js +0 -44
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/tabs.js +0 -54
- package/dist/components/ui/toggle-group.d.ts +0 -8
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/toggle-group.js +0 -57
- package/dist/components/ui/toggle.d.ts +0 -10
- package/dist/components/ui/toggle.d.ts.map +0 -1
- package/dist/components/ui/toggle.js +0 -62
- package/dist/hooks/useCollaborativeIxoEditor.d.ts +0 -571
- package/dist/hooks/useCollaborativeIxoEditor.d.ts.map +0 -1
- package/dist/hooks/useCollaborativeIxoEditor.js +0 -127
- package/dist/hooks/useCreateIxoEditor.d.ts +0 -568
- package/dist/hooks/useCreateIxoEditor.d.ts.map +0 -1
- package/dist/hooks/useCreateIxoEditor.js +0 -62
- package/dist/hooks/useMatrixProvider.d.ts +0 -13
- package/dist/hooks/useMatrixProvider.d.ts.map +0 -1
- package/dist/hooks/useMatrixProvider.js +0 -147
- package/dist/index.d.ts +0 -12
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -24
- package/dist/lib/graphql-client.d.ts +0 -27
- package/dist/lib/graphql-client.d.ts.map +0 -1
- package/dist/lib/graphql-client.js +0 -36
- package/dist/lib/graphql-queries.d.ts +0 -31
- package/dist/lib/graphql-queries.d.ts.map +0 -1
- package/dist/lib/graphql-queries.js +0 -40
- package/dist/lib/utils/getMediaTypeIcon.d.ts +0 -20
- package/dist/lib/utils/getMediaTypeIcon.d.ts.map +0 -1
- package/dist/lib/utils/getMediaTypeIcon.js +0 -96
- package/dist/lib/utils/index.d.ts +0 -4
- package/dist/lib/utils/index.d.ts.map +0 -1
- package/dist/lib/utils/index.js +0 -12
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -8
- package/dist/types/Domain.d.ts +0 -18
- package/dist/types/Domain.d.ts.map +0 -1
- package/dist/types/Domain.js +0 -2
- package/dist/types/index.d.ts +0 -77
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -2
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.GeneralTab = GeneralTab;
|
|
37
|
-
const react_1 = __importStar(require("react"));
|
|
38
|
-
const input_1 = require("../ui/input");
|
|
39
|
-
const label_1 = require("../ui/label");
|
|
40
|
-
const tabs_1 = require("../ui/tabs");
|
|
41
|
-
const lucide_react_1 = require("lucide-react");
|
|
42
|
-
function GeneralTab({ block: _block, editor: _editor, domainValue: _domainValue, onDomainChange, }) {
|
|
43
|
-
const [domainType, setDomainType] = (0, react_1.useState)("this-domain");
|
|
44
|
-
const [isValidDomain, setIsValidDomain] = (0, react_1.useState)(true);
|
|
45
|
-
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
46
|
-
const [customDomainValue, setCustomDomainValue] = (0, react_1.useState)("");
|
|
47
|
-
// Known domain value for "this-domain" tab
|
|
48
|
-
const thisDomainValue = "did:ixo:entity:example123";
|
|
49
|
-
const handleCustomDomainChange = async (did) => {
|
|
50
|
-
setCustomDomainValue(did);
|
|
51
|
-
if (!did) {
|
|
52
|
-
setIsValidDomain(false);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
// Basic validation for DID format
|
|
56
|
-
const isValid = did.startsWith("did:") && did.length > 10;
|
|
57
|
-
if (isValid) {
|
|
58
|
-
setIsLoading(true);
|
|
59
|
-
try {
|
|
60
|
-
// Simulate async fetch request
|
|
61
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
62
|
-
setIsValidDomain(true);
|
|
63
|
-
onDomainChange(did);
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
setIsValidDomain(false);
|
|
67
|
-
}
|
|
68
|
-
finally {
|
|
69
|
-
setIsLoading(false);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
setIsValidDomain(false);
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
const handleTabChange = (value) => {
|
|
77
|
-
setDomainType(value);
|
|
78
|
-
if (value === "this-domain") {
|
|
79
|
-
// Use known domain value
|
|
80
|
-
setIsValidDomain(true);
|
|
81
|
-
onDomainChange(thisDomainValue);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
// Reset for custom domain
|
|
85
|
-
setIsValidDomain(false);
|
|
86
|
-
onDomainChange("");
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
return (react_1.default.createElement("div", { className: "space-y-6" },
|
|
90
|
-
react_1.default.createElement("div", null,
|
|
91
|
-
react_1.default.createElement("h2", { className: "text-2xl font-semibold" }, "Overview"),
|
|
92
|
-
react_1.default.createElement("p", { className: "text-muted-foreground mt-1" }, "Add a domain overview to your page")),
|
|
93
|
-
react_1.default.createElement(tabs_1.Tabs, { defaultValue: "this-domain", value: domainType, onValueChange: handleTabChange },
|
|
94
|
-
react_1.default.createElement(tabs_1.TabsList, null,
|
|
95
|
-
react_1.default.createElement(tabs_1.TabsTrigger, { value: "this-domain" }, "This domain"),
|
|
96
|
-
react_1.default.createElement(tabs_1.TabsTrigger, { value: "custom-domain" }, "Custom domain")),
|
|
97
|
-
react_1.default.createElement(tabs_1.TabsContent, { value: "this-domain", className: "space-y-4" },
|
|
98
|
-
react_1.default.createElement("div", { className: "space-y-2" },
|
|
99
|
-
react_1.default.createElement(label_1.Label, { htmlFor: "this-domain-input" }, "Domain"),
|
|
100
|
-
react_1.default.createElement("div", { className: "relative" },
|
|
101
|
-
react_1.default.createElement(input_1.Input, { id: "this-domain-input", value: thisDomainValue, disabled: true, className: "pr-10", placeholder: "Enter domain DID" }),
|
|
102
|
-
isValidDomain && (react_1.default.createElement(lucide_react_1.CheckIcon, { className: "absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-green-500" }))))),
|
|
103
|
-
react_1.default.createElement(tabs_1.TabsContent, { value: "custom-domain", className: "space-y-4" },
|
|
104
|
-
react_1.default.createElement("div", { className: "space-y-2" },
|
|
105
|
-
react_1.default.createElement(label_1.Label, { htmlFor: "custom-domain-input" }, "Domain"),
|
|
106
|
-
react_1.default.createElement("div", { className: "relative" },
|
|
107
|
-
react_1.default.createElement(input_1.Input, { id: "custom-domain-input", value: customDomainValue, onChange: (e) => handleCustomDomainChange(e.target.value), className: "pr-10", placeholder: "Enter domain DID", disabled: isLoading }),
|
|
108
|
-
isLoading ? (react_1.default.createElement("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2" },
|
|
109
|
-
react_1.default.createElement("div", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-gray-900" }))) : (isValidDomain &&
|
|
110
|
-
customDomainValue && (react_1.default.createElement(lucide_react_1.CheckIcon, { className: "absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-green-500" })))))))));
|
|
111
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreviewTab.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsModal/PreviewTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,eAAe;IACvB,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,GAAG,CAAC;CACb;AAED,wBAAgB,UAAU,CAAC,EACzB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,OAAO,GAChB,EAAE,eAAe,qBAcjB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PreviewTab = PreviewTab;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
function PreviewTab({ block: _block, editor: _editor, }) {
|
|
9
|
-
return (react_1.default.createElement("div", { className: "space-y-6" },
|
|
10
|
-
react_1.default.createElement("div", null,
|
|
11
|
-
react_1.default.createElement("h2", { className: "text-2xl font-semibold" }, "Preview"),
|
|
12
|
-
react_1.default.createElement("p", { className: "text-muted-foreground mt-1" }, "Preview how your block will appear")),
|
|
13
|
-
react_1.default.createElement("p", { className: "text-muted-foreground" }, "Preview functionality coming soon...")));
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface TabConfig {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
content: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
interface SettingsModalProps {
|
|
8
|
-
tabs: TabConfig[];
|
|
9
|
-
onAddToPage: () => void;
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
open?: boolean;
|
|
12
|
-
onOpenChange?: (open: boolean) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function SettingsModal({ tabs, onAddToPage, loading, open, onOpenChange, }: SettingsModalProps): React.JSX.Element;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=SettingsModal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsModal.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsModal/SettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,OAAe,EACf,IAAI,EACJ,YAAY,GACb,EAAE,kBAAkB,qBAiCpB"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.SettingsModal = SettingsModal;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
|
-
const button_1 = require("../ui/button");
|
|
42
|
-
const dialog_1 = require("../ui/dialog");
|
|
43
|
-
const PenIcon_1 = __importDefault(require("../PenIcon"));
|
|
44
|
-
const SettingsNavigation_1 = require("./SettingsNavigation");
|
|
45
|
-
function SettingsModal({ tabs, onAddToPage, loading = false, open, onOpenChange, }) {
|
|
46
|
-
const [activeTab, setActiveTab] = (0, react_1.useState)(tabs[0]?.id || "general");
|
|
47
|
-
const navigationItems = tabs.map((tab) => ({
|
|
48
|
-
id: tab.id,
|
|
49
|
-
label: tab.label,
|
|
50
|
-
}));
|
|
51
|
-
const activeTabContent = tabs.find((tab) => tab.id === activeTab)?.content;
|
|
52
|
-
return (react_1.default.createElement(dialog_1.Dialog, { open: open, onOpenChange: onOpenChange },
|
|
53
|
-
react_1.default.createElement(dialog_1.DialogTrigger, { asChild: true },
|
|
54
|
-
react_1.default.createElement(button_1.Button, { variant: "secondary", className: "font-semibold" },
|
|
55
|
-
react_1.default.createElement(PenIcon_1.default, null),
|
|
56
|
-
" Edit")),
|
|
57
|
-
react_1.default.createElement(dialog_1.DialogContent, { className: "max-w-4xl h-[600px] p-0 rounded-2xl" },
|
|
58
|
-
react_1.default.createElement("div", { className: "flex h-full overflow-hidden" },
|
|
59
|
-
react_1.default.createElement(SettingsNavigation_1.SettingsNavigation, { activeTab: activeTab, onTabChange: setActiveTab, onAddToPage: onAddToPage, navigationItems: navigationItems, loading: loading }),
|
|
60
|
-
react_1.default.createElement("div", { className: "flex-1 p-6 overflow-y-auto" }, activeTabContent)))));
|
|
61
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface NavigationItem {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
interface SettingsNavigationProps {
|
|
7
|
-
activeTab: string;
|
|
8
|
-
onTabChange: (tabId: string) => void;
|
|
9
|
-
onAddToPage: () => void;
|
|
10
|
-
navigationItems: NavigationItem[];
|
|
11
|
-
loading?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function SettingsNavigation({ activeTab, onTabChange, onAddToPage, navigationItems, loading, }: SettingsNavigationProps): React.JSX.Element;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=SettingsNavigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsModal/SettingsNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,uBAAuB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,WAAW,EACX,WAAW,EACX,eAAe,EACf,OAAe,GAChB,EAAE,uBAAuB,qBAoCzB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SettingsNavigation = SettingsNavigation;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const button_1 = require("../ui/button");
|
|
9
|
-
const lucide_react_1 = require("lucide-react");
|
|
10
|
-
function SettingsNavigation({ activeTab, onTabChange, onAddToPage, navigationItems, loading = false, }) {
|
|
11
|
-
return (react_1.default.createElement("div", { className: "w-56 border-r bg-muted/50 p-6 flex flex-col" },
|
|
12
|
-
react_1.default.createElement("nav", { className: "space-y-2 flex-1" }, navigationItems.map((item) => (react_1.default.createElement("button", { key: item.id, onClick: () => !loading && onTabChange(item.id), disabled: loading, className: `w-full text-left px-3 py-2 rounded-md text-sm font-medium transition-colors ${activeTab === item.id
|
|
13
|
-
? "bg-primary text-primary-foreground"
|
|
14
|
-
: "text-muted-foreground hover:text-foreground hover:bg-muted"} ${loading ? "opacity-50 cursor-not-allowed" : ""}` },
|
|
15
|
-
item.label,
|
|
16
|
-
loading && item.id !== activeTab && (react_1.default.createElement("div", { className: "inline-block ml-2 animate-spin rounded-full h-3 w-3 border-b border-current opacity-50" })))))),
|
|
17
|
-
react_1.default.createElement("div", { className: "mt-auto pt-4" },
|
|
18
|
-
react_1.default.createElement(button_1.Button, { onClick: onAddToPage, disabled: loading, className: "w-full bg-black hover:bg-black/90 text-white rounded-md justify-start px-3 py-2 disabled:opacity-50 disabled:cursor-not-allowed" },
|
|
19
|
-
react_1.default.createElement(lucide_react_1.CheckIcon, { className: "mr-2 h-4 w-4" }),
|
|
20
|
-
"Add to page"))));
|
|
21
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { SettingsModal, type TabConfig } from "./SettingsModal";
|
|
2
|
-
export { SettingsNavigation } from "./SettingsNavigation";
|
|
3
|
-
export { GeneralTab } from "./GeneralTab";
|
|
4
|
-
export { AdvancedTab } from "./AdvancedTab";
|
|
5
|
-
export { PreviewTab } from "./PreviewTab";
|
|
6
|
-
export { DomainPreview } from "./DomainPreview";
|
|
7
|
-
export { FeatureASettings } from "./FeatureASettings";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FeatureASettings = exports.DomainPreview = exports.PreviewTab = exports.AdvancedTab = exports.GeneralTab = exports.SettingsNavigation = exports.SettingsModal = void 0;
|
|
4
|
-
var SettingsModal_1 = require("./SettingsModal");
|
|
5
|
-
Object.defineProperty(exports, "SettingsModal", { enumerable: true, get: function () { return SettingsModal_1.SettingsModal; } });
|
|
6
|
-
var SettingsNavigation_1 = require("./SettingsNavigation");
|
|
7
|
-
Object.defineProperty(exports, "SettingsNavigation", { enumerable: true, get: function () { return SettingsNavigation_1.SettingsNavigation; } });
|
|
8
|
-
var GeneralTab_1 = require("./GeneralTab");
|
|
9
|
-
Object.defineProperty(exports, "GeneralTab", { enumerable: true, get: function () { return GeneralTab_1.GeneralTab; } });
|
|
10
|
-
var AdvancedTab_1 = require("./AdvancedTab");
|
|
11
|
-
Object.defineProperty(exports, "AdvancedTab", { enumerable: true, get: function () { return AdvancedTab_1.AdvancedTab; } });
|
|
12
|
-
var PreviewTab_1 = require("./PreviewTab");
|
|
13
|
-
Object.defineProperty(exports, "PreviewTab", { enumerable: true, get: function () { return PreviewTab_1.PreviewTab; } });
|
|
14
|
-
var DomainPreview_1 = require("./DomainPreview");
|
|
15
|
-
Object.defineProperty(exports, "DomainPreview", { enumerable: true, get: function () { return DomainPreview_1.DomainPreview; } });
|
|
16
|
-
var FeatureASettings_1 = require("./FeatureASettings");
|
|
17
|
-
Object.defineProperty(exports, "FeatureASettings", { enumerable: true, get: function () { return FeatureASettings_1.FeatureASettings; } });
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface SwitchOptionProps {
|
|
3
|
-
label: string;
|
|
4
|
-
description: string;
|
|
5
|
-
checked: boolean;
|
|
6
|
-
onChange: (checked: boolean) => void;
|
|
7
|
-
}
|
|
8
|
-
export default function SwitchOption({ label, description, checked, onChange, }: SwitchOptionProps): React.JSX.Element;
|
|
9
|
-
//# sourceMappingURL=SwitchOption.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchOption.d.ts","sourceRoot":"","sources":["../../src/components/SwitchOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,GACT,EAAE,iBAAiB,qBAkBnB"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.default = SwitchOption;
|
|
37
|
-
const React = __importStar(require("react"));
|
|
38
|
-
const switch_1 = require("./ui/switch");
|
|
39
|
-
function SwitchOption({ label, description, checked, onChange, }) {
|
|
40
|
-
return (React.createElement("div", { className: "flex w-full max-w-md items-start justify-between gap-4 py-2" },
|
|
41
|
-
React.createElement("div", { className: "flex flex-col" },
|
|
42
|
-
React.createElement("span", { className: "text-sm font-medium leading-none" }, label),
|
|
43
|
-
React.createElement("span", { className: "mt-1 text-sm text-muted-foreground" }, description)),
|
|
44
|
-
React.createElement(switch_1.Switch, { id: label, "aria-label": label, checked: checked, onCheckedChange: onChange })));
|
|
45
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ArchiveIconProps {
|
|
3
|
-
size?: number;
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: "primary" | "secondary" | "accent";
|
|
6
|
-
}
|
|
7
|
-
export default function ArchiveIcon({ size, className, color, }: ArchiveIconProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=ArchiveIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArchiveIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ArchiveIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAS,EACT,SAAc,EACd,KAAmB,GACpB,EAAE,gBAAgB,qBAyBlB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = ArchiveIcon;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
function ArchiveIcon({ size = 16, className = "", color = "secondary", }) {
|
|
9
|
-
const colors = {
|
|
10
|
-
primary: "#2F2F2F",
|
|
11
|
-
secondary: "#9B9B9B",
|
|
12
|
-
accent: "#1976D2",
|
|
13
|
-
};
|
|
14
|
-
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: colors[color], strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: `transition-colors duration-200 ${className}` },
|
|
15
|
-
react_1.default.createElement("rect", { width: "20", height: "5", x: "2", y: "3", rx: "1" }),
|
|
16
|
-
react_1.default.createElement("path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" }),
|
|
17
|
-
react_1.default.createElement("path", { d: "M10 12h4" })));
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface AudioIconProps {
|
|
3
|
-
size?: number;
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: "primary" | "secondary" | "accent";
|
|
6
|
-
}
|
|
7
|
-
export default function AudioIcon({ size, className, color, }: AudioIconProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=AudioIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AudioIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AudioIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,IAAS,EACT,SAAc,EACd,KAAmB,GACpB,EAAE,cAAc,qBAwBhB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = AudioIcon;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
function AudioIcon({ size = 16, className = "", color = "secondary", }) {
|
|
9
|
-
const colors = {
|
|
10
|
-
primary: "#2F2F2F",
|
|
11
|
-
secondary: "#9B9B9B",
|
|
12
|
-
accent: "#1976D2",
|
|
13
|
-
};
|
|
14
|
-
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: colors[color], strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: `transition-colors duration-200 ${className}` },
|
|
15
|
-
react_1.default.createElement("polygon", { points: "11 5 6 9 2 9 2 15 6 15 11 19 11 5" }),
|
|
16
|
-
react_1.default.createElement("path", { d: "m19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07" })));
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface DefaultIconProps {
|
|
3
|
-
size?: number;
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: "primary" | "secondary" | "accent";
|
|
6
|
-
}
|
|
7
|
-
export default function DefaultIcon({ size, className, color, }: DefaultIconProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=DefaultIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/DefaultIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAS,EACT,SAAc,EACd,KAAmB,GACpB,EAAE,gBAAgB,qBAwBlB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = DefaultIcon;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
function DefaultIcon({ size = 16, className = "", color = "secondary", }) {
|
|
9
|
-
const colors = {
|
|
10
|
-
primary: "#2F2F2F",
|
|
11
|
-
secondary: "#9B9B9B",
|
|
12
|
-
accent: "#1976D2",
|
|
13
|
-
};
|
|
14
|
-
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: colors[color], strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: `transition-colors duration-200 ${className}` },
|
|
15
|
-
react_1.default.createElement("path", { d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" }),
|
|
16
|
-
react_1.default.createElement("polyline", { points: "14,2 14,8 20,8" })));
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface DocumentIconProps {
|
|
3
|
-
size?: number;
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: "primary" | "secondary" | "accent";
|
|
6
|
-
}
|
|
7
|
-
export default function DocumentIcon({ size, className, color, }: DocumentIconProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=DocumentIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/DocumentIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,IAAS,EACT,SAAc,EACd,KAAmB,GACpB,EAAE,iBAAiB,qBA2BnB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = DocumentIcon;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
function DocumentIcon({ size = 16, className = "", color = "secondary", }) {
|
|
9
|
-
const colors = {
|
|
10
|
-
primary: "#2F2F2F",
|
|
11
|
-
secondary: "#9B9B9B",
|
|
12
|
-
accent: "#1976D2",
|
|
13
|
-
};
|
|
14
|
-
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: colors[color], strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: `transition-colors duration-200 ${className}` },
|
|
15
|
-
react_1.default.createElement("path", { d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" }),
|
|
16
|
-
react_1.default.createElement("polyline", { points: "14,2 14,8 20,8" }),
|
|
17
|
-
react_1.default.createElement("line", { x1: "16", y1: "13", x2: "8", y2: "13" }),
|
|
18
|
-
react_1.default.createElement("line", { x1: "16", y1: "17", x2: "8", y2: "17" }),
|
|
19
|
-
react_1.default.createElement("polyline", { points: "10,9 9,9 8,9" })));
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ImageIconProps {
|
|
3
|
-
size?: number;
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: "primary" | "secondary" | "accent";
|
|
6
|
-
}
|
|
7
|
-
export default function ImageIcon({ size, className, color, }: ImageIconProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=ImageIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ImageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,IAAS,EACT,SAAc,EACd,KAAmB,GACpB,EAAE,cAAc,qBAyBhB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = ImageIcon;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
function ImageIcon({ size = 16, className = "", color = "secondary", }) {
|
|
9
|
-
const colors = {
|
|
10
|
-
primary: "#2F2F2F",
|
|
11
|
-
secondary: "#9B9B9B",
|
|
12
|
-
accent: "#1976D2",
|
|
13
|
-
};
|
|
14
|
-
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: colors[color], strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: `transition-colors duration-200 ${className}` },
|
|
15
|
-
react_1.default.createElement("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2" }),
|
|
16
|
-
react_1.default.createElement("circle", { cx: "9", cy: "9", r: "2" }),
|
|
17
|
-
react_1.default.createElement("path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" })));
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface JsonIconProps {
|
|
3
|
-
size?: number;
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: "primary" | "secondary" | "accent";
|
|
6
|
-
}
|
|
7
|
-
export default function JsonIcon({ size, className, color, }: JsonIconProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=JsonIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JsonIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/JsonIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,IAAS,EACT,SAAc,EACd,KAAmB,GACpB,EAAE,aAAa,qBA0Bf"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = JsonIcon;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
function JsonIcon({ size = 16, className = "", color = "secondary", }) {
|
|
9
|
-
const colors = {
|
|
10
|
-
primary: "#2F2F2F",
|
|
11
|
-
secondary: "#9B9B9B",
|
|
12
|
-
accent: "#1976D2",
|
|
13
|
-
};
|
|
14
|
-
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: colors[color], strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: `transition-colors duration-200 ${className}` },
|
|
15
|
-
react_1.default.createElement("path", { d: "M5 12s2.545-5 7-5c4.454 0 7 5 7 5s-2.546 5-7 5c-4.455 0-7-5-7-5z" }),
|
|
16
|
-
react_1.default.createElement("path", { d: "M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2z" }),
|
|
17
|
-
react_1.default.createElement("path", { d: "M21 17v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2" }),
|
|
18
|
-
react_1.default.createElement("path", { d: "M21 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2" })));
|
|
19
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface PdfIconProps {
|
|
3
|
-
size?: number;
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: "primary" | "secondary" | "accent";
|
|
6
|
-
}
|
|
7
|
-
export default function PdfIcon({ size, className, color, }: PdfIconProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=PdfIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PdfIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/PdfIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,IAAS,EACT,SAAc,EACd,KAAmB,GACpB,EAAE,YAAY,qBA2Bd"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.default = PdfIcon;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
function PdfIcon({ size = 16, className = "", color = "secondary", }) {
|
|
9
|
-
const colors = {
|
|
10
|
-
primary: "#2F2F2F",
|
|
11
|
-
secondary: "#9B9B9B",
|
|
12
|
-
accent: "#1976D2",
|
|
13
|
-
};
|
|
14
|
-
return (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: colors[color], strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: `transition-colors duration-200 ${className}` },
|
|
15
|
-
react_1.default.createElement("path", { d: "M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" }),
|
|
16
|
-
react_1.default.createElement("polyline", { points: "14,2 14,8 20,8" }),
|
|
17
|
-
react_1.default.createElement("path", { d: "M10 12h4" }),
|
|
18
|
-
react_1.default.createElement("path", { d: "M10 16h2" }),
|
|
19
|
-
react_1.default.createElement("path", { d: "M8 12v4" })));
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface VideoIconProps {
|
|
3
|
-
size?: number;
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: "primary" | "secondary" | "accent";
|
|
6
|
-
}
|
|
7
|
-
export default function VideoIcon({ size, className, color, }: VideoIconProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=VideoIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VideoIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/VideoIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,IAAS,EACT,SAAc,EACd,KAAmB,GACpB,EAAE,cAAc,qBAwBhB"}
|