@raketa-builder/builder 1.3.5 → 1.3.8
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/AdminForm/SchemaInput.js +1 -0
- package/dist/AdminForm/SimpleInput.js +26 -0
- package/dist/AdminForm/index.js +136 -0
- package/dist/AutoSaveNotification.js +20 -0
- package/dist/Canvas.js +67 -0
- package/{src → dist}/ErrorBoundary/ErrorBoundary.js +7 -9
- package/dist/ErrorBoundary/index.js +6 -0
- package/dist/HostContext.js +7 -0
- package/dist/LibraryContext.js +7 -0
- package/dist/List.js +255 -0
- package/dist/ListInput.js +9 -0
- package/dist/MediaManager.js +19 -0
- package/dist/PageBuilder.js +312 -0
- package/dist/chunk-BBZEL7EG.js +53 -0
- package/dist/contexts/BuilderContext.js +10 -0
- package/dist/dialogs/Dialog.js +50 -0
- package/dist/dialogs/ReorderDialog.js +164 -0
- package/dist/dialogs/SettingsDialog.js +57 -0
- package/{src → dist}/forms/Button.js +16 -16
- package/dist/forms/ButtonSettings.js +121 -0
- package/dist/forms/LinkSettings.js +105 -0
- package/dist/forms/SelectMenu.js +55 -0
- package/dist/forms/TextArea.js +12 -0
- package/dist/forms/TextInput.js +44 -0
- package/dist/helpers/humanize.js +10 -0
- package/{src → dist}/helpers/imageSrc.js +5 -8
- package/{src → dist}/helpers/widgetData.js +5 -8
- package/dist/icons/IconCopy.js +41 -0
- package/dist/icons/IconDelete.js +48 -0
- package/dist/icons/index.js +3 -0
- package/dist/index.js +17 -2508
- package/dist/lib/AdminSidebar.js +149 -0
- package/dist/lib/AdminWidget.js +102 -0
- package/dist/lib/AdminWidgetLabel.js +16 -0
- package/dist/lib/AdminWidgetToolbar.js +16 -0
- package/dist/lib/AdminWidgetWrapper.js +11 -0
- package/dist/lib/IconButton.js +45 -0
- package/{src → dist}/lib/Image.js +30 -54
- package/dist/lib/LanguageSwitcher.js +86 -0
- package/dist/lib/Link.js +21 -0
- package/dist/lib/ModalSelectedWidgetsToolbar.js +63 -0
- package/dist/lib/SelectedWidgetsToolbar.js +36 -0
- package/dist/lib/SideNav.js +134 -0
- package/dist/lib/SidebarItem.js +21 -0
- package/{src → dist}/lists/index.js +17 -32
- package/package.json +19 -5
- package/CHANGELOG.md +0 -26
- package/biome.json +0 -3
- package/src/AdminForm/SchemaInput.js +0 -0
- package/src/AdminForm/SimpleInput.js +0 -28
- package/src/AdminForm/index.js +0 -141
- package/src/AutoSaveNotification.js +0 -24
- package/src/Canvas.js +0 -85
- package/src/ErrorBoundary/index.js +0 -3
- package/src/HostContext.js +0 -5
- package/src/LibraryContext.js +0 -5
- package/src/List.js +0 -302
- package/src/ListInput.js +0 -6
- package/src/MediaManager.js +0 -15
- package/src/PageBuilder.js +0 -407
- package/src/contexts/BuilderContext.js +0 -8
- package/src/dialogs/Dialog.js +0 -61
- package/src/dialogs/ReorderDialog.js +0 -173
- package/src/dialogs/SettingsDialog.js +0 -56
- package/src/forms/ButtonSettings.js +0 -115
- package/src/forms/LinkSettings.js +0 -96
- package/src/forms/SelectMenu.js +0 -69
- package/src/forms/TextArea.js +0 -10
- package/src/forms/TextInput.js +0 -41
- package/src/helpers/humanize.js +0 -9
- package/src/icons/IconCopy.js +0 -33
- package/src/icons/IconDelete.js +0 -33
- package/src/icons/index.js +0 -4
- package/src/index.js +0 -36
- package/src/lib/AdminSidebar.js +0 -210
- package/src/lib/AdminWidget.js +0 -118
- package/src/lib/AdminWidgetLabel.js +0 -10
- package/src/lib/AdminWidgetToolbar.js +0 -10
- package/src/lib/AdminWidgetWrapper.js +0 -7
- package/src/lib/IconButton.js +0 -45
- package/src/lib/LanguageSwitcher.js +0 -87
- package/src/lib/Link.js +0 -19
- package/src/lib/ModalSelectedWidgetsToolbar.js +0 -51
- package/src/lib/SelectedWidgetsToolbar.js +0 -28
- package/src/lib/SideNav.js +0 -118
- package/src/lib/SidebarItem.js +0 -14
- package/src/styles.css +0 -649
- package/tsconfig.json +0 -5
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { __objRest, __spreadValues } from '../chunk-BBZEL7EG.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { FormGroup, Hint, cn } from '@raketa-builder/ui';
|
|
5
|
+
import BuilderContext from '../contexts/BuilderContext';
|
|
6
|
+
import TextInput from './TextInput';
|
|
7
|
+
import SelectMenu from './SelectMenu';
|
|
8
|
+
|
|
9
|
+
const SettingsIcon = (_a) => {
|
|
10
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
11
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn("r-settings-icon", className) }, props));
|
|
12
|
+
};
|
|
13
|
+
const ThreeColumns = (_c) => {
|
|
14
|
+
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
15
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn("r-reset", "r-three-columns", className) }, props));
|
|
16
|
+
};
|
|
17
|
+
const FormSectionTitle = (_e) => {
|
|
18
|
+
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
"div",
|
|
21
|
+
__spreadValues({
|
|
22
|
+
className: cn("r-reset", "r-form-section-title", className)
|
|
23
|
+
}, props)
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
const DEFAULT_BUTTON_STYLES = [
|
|
27
|
+
["primary", "Primary"],
|
|
28
|
+
["secondary", "Secondary"],
|
|
29
|
+
["text", "Text"]
|
|
30
|
+
];
|
|
31
|
+
const mergeSettings = (settings, key, value) => Object.assign({}, settings, { [key]: value });
|
|
32
|
+
const DEFAULTS = {
|
|
33
|
+
label: "Button",
|
|
34
|
+
link: "#",
|
|
35
|
+
id: "",
|
|
36
|
+
type: "primary",
|
|
37
|
+
target: "_self",
|
|
38
|
+
rel: "follow"
|
|
39
|
+
};
|
|
40
|
+
const ButtonSettings = ({
|
|
41
|
+
label = "Button",
|
|
42
|
+
hint,
|
|
43
|
+
value = DEFAULTS,
|
|
44
|
+
onChange
|
|
45
|
+
}) => {
|
|
46
|
+
const { buttonStyles } = React.useContext(BuilderContext) || DEFAULT_BUTTON_STYLES;
|
|
47
|
+
return /* @__PURE__ */ jsxs(FormGroup, { children: [
|
|
48
|
+
/* @__PURE__ */ jsxs(FormSectionTitle, { children: [
|
|
49
|
+
/* @__PURE__ */ jsx(SettingsIcon, {}),
|
|
50
|
+
" ",
|
|
51
|
+
label
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ jsxs(ThreeColumns, { children: [
|
|
54
|
+
/* @__PURE__ */ jsx(
|
|
55
|
+
TextInput,
|
|
56
|
+
{
|
|
57
|
+
label: "Label",
|
|
58
|
+
value: value.label,
|
|
59
|
+
onChange: (label2) => onChange(mergeSettings(value, "label", label2))
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ jsx(
|
|
63
|
+
TextInput,
|
|
64
|
+
{
|
|
65
|
+
label: "Link",
|
|
66
|
+
value: value.link,
|
|
67
|
+
onChange: (link) => onChange(mergeSettings(value, "link", link))
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ jsx(
|
|
71
|
+
TextInput,
|
|
72
|
+
{
|
|
73
|
+
label: "ID",
|
|
74
|
+
value: value.id,
|
|
75
|
+
onChange: (id) => onChange(mergeSettings(value, "id", id))
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ jsxs(ThreeColumns, { children: [
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
SelectMenu,
|
|
82
|
+
{
|
|
83
|
+
label: "Type",
|
|
84
|
+
options: buttonStyles,
|
|
85
|
+
value: value.type,
|
|
86
|
+
onChange: (type) => onChange(mergeSettings(value, "type", type))
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ jsx(
|
|
90
|
+
SelectMenu,
|
|
91
|
+
{
|
|
92
|
+
label: "Target",
|
|
93
|
+
options: [
|
|
94
|
+
["_self", "Self"],
|
|
95
|
+
["_blank", "New Tab"]
|
|
96
|
+
],
|
|
97
|
+
value: value.target,
|
|
98
|
+
onChange: (target) => onChange(mergeSettings(value, "target", target))
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ jsx(
|
|
102
|
+
SelectMenu,
|
|
103
|
+
{
|
|
104
|
+
label: "Follow Link",
|
|
105
|
+
options: [
|
|
106
|
+
["follow", "Follow"],
|
|
107
|
+
["nofollow", "No Follow"]
|
|
108
|
+
],
|
|
109
|
+
value: value.rel,
|
|
110
|
+
onChange: (rel) => onChange(mergeSettings(value, "rel", rel))
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] }),
|
|
114
|
+
hint ? /* @__PURE__ */ jsx(Hint, { children: hint }) : ""
|
|
115
|
+
] });
|
|
116
|
+
};
|
|
117
|
+
ButtonSettings.defaults = DEFAULTS;
|
|
118
|
+
ButtonSettings.defaultButtonStyles = DEFAULT_BUTTON_STYLES;
|
|
119
|
+
var ButtonSettings_default = ButtonSettings;
|
|
120
|
+
|
|
121
|
+
export { ButtonSettings_default as default };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { __objRest, __spreadValues } from '../chunk-BBZEL7EG.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import { FormGroup, Hint, cn } from '@raketa-builder/ui';
|
|
5
|
+
import TextInput from './TextInput';
|
|
6
|
+
import SelectMenu from './SelectMenu';
|
|
7
|
+
|
|
8
|
+
const SettingsIcon = (_a) => {
|
|
9
|
+
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
10
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn("r-settings-icon", className) }, props));
|
|
11
|
+
};
|
|
12
|
+
const ThreeColumns = (_c) => {
|
|
13
|
+
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
14
|
+
return /* @__PURE__ */ jsx("div", __spreadValues({ className: cn("r-reset", "r-three-columns", className) }, props));
|
|
15
|
+
};
|
|
16
|
+
const FormSectionTitle = (_e) => {
|
|
17
|
+
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
"div",
|
|
20
|
+
__spreadValues({
|
|
21
|
+
className: cn("r-reset", "r-form-section-title", className)
|
|
22
|
+
}, props)
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
const mergeSettings = (settings, key, value) => Object.assign({}, settings, { [key]: value });
|
|
26
|
+
const DEFAULTS = {
|
|
27
|
+
label: "link",
|
|
28
|
+
link: "#",
|
|
29
|
+
id: "",
|
|
30
|
+
className: "",
|
|
31
|
+
target: "_self",
|
|
32
|
+
rel: "follow"
|
|
33
|
+
};
|
|
34
|
+
const LinkSettings = ({ label = "Link", hint, value = DEFAULTS, onChange }) => /* @__PURE__ */ jsxs(FormGroup, { children: [
|
|
35
|
+
/* @__PURE__ */ jsxs(FormSectionTitle, { children: [
|
|
36
|
+
/* @__PURE__ */ jsx(SettingsIcon, {}),
|
|
37
|
+
" ",
|
|
38
|
+
label
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ jsxs(ThreeColumns, { children: [
|
|
41
|
+
/* @__PURE__ */ jsx(
|
|
42
|
+
TextInput,
|
|
43
|
+
{
|
|
44
|
+
label: "Label",
|
|
45
|
+
value: value.label,
|
|
46
|
+
onChange: (label2) => onChange(mergeSettings(value, "label", label2))
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
50
|
+
TextInput,
|
|
51
|
+
{
|
|
52
|
+
label: "Link",
|
|
53
|
+
value: value.link,
|
|
54
|
+
onChange: (link) => onChange(mergeSettings(value, "link", link))
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ jsx(
|
|
58
|
+
TextInput,
|
|
59
|
+
{
|
|
60
|
+
label: "ID",
|
|
61
|
+
value: value.id,
|
|
62
|
+
onChange: (id) => onChange(mergeSettings(value, "id", id))
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] }),
|
|
66
|
+
/* @__PURE__ */ jsxs(ThreeColumns, { children: [
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
TextInput,
|
|
69
|
+
{
|
|
70
|
+
label: "CSS Class",
|
|
71
|
+
value: value.className,
|
|
72
|
+
onChange: (className) => onChange(mergeSettings(value, "className", className))
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsx(
|
|
76
|
+
SelectMenu,
|
|
77
|
+
{
|
|
78
|
+
label: "Target",
|
|
79
|
+
options: [
|
|
80
|
+
["_self", "Self"],
|
|
81
|
+
["_blank", "New Tab"]
|
|
82
|
+
],
|
|
83
|
+
value: value.target,
|
|
84
|
+
onChange: (target) => onChange(mergeSettings(value, "target", target))
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
/* @__PURE__ */ jsx(
|
|
88
|
+
SelectMenu,
|
|
89
|
+
{
|
|
90
|
+
label: "Follow Link",
|
|
91
|
+
options: [
|
|
92
|
+
["follow", "Follow"],
|
|
93
|
+
["nofollow", "No Follow"]
|
|
94
|
+
],
|
|
95
|
+
value: value.rel,
|
|
96
|
+
onChange: (rel) => onChange(mergeSettings(value, "rel", rel))
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] }),
|
|
100
|
+
hint ? /* @__PURE__ */ jsx(Hint, { children: hint }) : ""
|
|
101
|
+
] });
|
|
102
|
+
LinkSettings.defaults = DEFAULTS;
|
|
103
|
+
var LinkSettings_default = LinkSettings;
|
|
104
|
+
|
|
105
|
+
export { LinkSettings_default as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { __spreadProps, __spreadValues } from '../chunk-BBZEL7EG.js';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import { FormGroup, Label, Select, Hint } from '@raketa-builder/ui';
|
|
5
|
+
import { randomString } from '../lists';
|
|
6
|
+
|
|
7
|
+
const getOptions = (options, placeholder) => {
|
|
8
|
+
const initialOptions = placeholder ? [{ value: "", text: placeholder }] : [];
|
|
9
|
+
const preparedOptions = options.map((o) => ({ value: o[0], text: o[1] }));
|
|
10
|
+
return [...initialOptions, ...preparedOptions];
|
|
11
|
+
};
|
|
12
|
+
const SelectField = (props) => {
|
|
13
|
+
const id = props.id || randomString();
|
|
14
|
+
const { label, hint, options, placeholder, onChange } = props;
|
|
15
|
+
const inputProps = Object.assign({}, props);
|
|
16
|
+
delete inputProps.label;
|
|
17
|
+
delete inputProps.hint;
|
|
18
|
+
delete inputProps.options;
|
|
19
|
+
delete inputProps.placeholder;
|
|
20
|
+
delete inputProps.onChange;
|
|
21
|
+
return /* @__PURE__ */ jsxs(FormGroup, { children: [
|
|
22
|
+
label ? /* @__PURE__ */ jsx(Label, { htmlFor: id, error: props.error, children: label }) : "",
|
|
23
|
+
/* @__PURE__ */ jsxs(
|
|
24
|
+
Select,
|
|
25
|
+
__spreadProps(__spreadValues({
|
|
26
|
+
id,
|
|
27
|
+
onChange: (e) => onChange(e.target.value)
|
|
28
|
+
}, inputProps), {
|
|
29
|
+
children: [
|
|
30
|
+
placeholder ? /* @__PURE__ */ jsx("option", { value: null, children: placeholder }, "placeholder") : "",
|
|
31
|
+
options.map((o) => /* @__PURE__ */ jsx("option", { value: o.value, children: o.text }, o.value))
|
|
32
|
+
]
|
|
33
|
+
})
|
|
34
|
+
),
|
|
35
|
+
hint ? /* @__PURE__ */ jsx(Hint, { children: hint }) : ""
|
|
36
|
+
] });
|
|
37
|
+
};
|
|
38
|
+
const SelectMenu = ({
|
|
39
|
+
label,
|
|
40
|
+
options,
|
|
41
|
+
placeholder = "Please select...",
|
|
42
|
+
onChange,
|
|
43
|
+
value = ""
|
|
44
|
+
}) => /* @__PURE__ */ jsx(
|
|
45
|
+
SelectField,
|
|
46
|
+
{
|
|
47
|
+
label,
|
|
48
|
+
options: getOptions(options, placeholder),
|
|
49
|
+
value,
|
|
50
|
+
onChange
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
var SelectMenu_default = SelectMenu;
|
|
54
|
+
|
|
55
|
+
export { SelectMenu_default as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __objRest, __spreadValues } from '../chunk-BBZEL7EG.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import TextInput from './TextInput';
|
|
5
|
+
|
|
6
|
+
function TextArea(_a) {
|
|
7
|
+
var _b = _a, { value = "", placeholder = "" } = _b, rest = __objRest(_b, ["value", "placeholder"]);
|
|
8
|
+
return /* @__PURE__ */ jsx(TextInput, __spreadValues({ multiline: true, value, placeholder }, rest));
|
|
9
|
+
}
|
|
10
|
+
var TextArea_default = TextArea;
|
|
11
|
+
|
|
12
|
+
export { TextArea_default as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { __spreadValues, __objRest } from '../chunk-BBZEL7EG.js';
|
|
2
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
+
import 'react';
|
|
4
|
+
import { FormGroup, Label, Textarea, Input, Hint } from '@raketa-builder/ui';
|
|
5
|
+
import { randomString } from '../lists';
|
|
6
|
+
|
|
7
|
+
const TextField = (_a) => {
|
|
8
|
+
var _b = _a, {
|
|
9
|
+
label,
|
|
10
|
+
hint,
|
|
11
|
+
multiline,
|
|
12
|
+
error,
|
|
13
|
+
onChange,
|
|
14
|
+
value = "",
|
|
15
|
+
placeholder = ""
|
|
16
|
+
} = _b, rest = __objRest(_b, [
|
|
17
|
+
"label",
|
|
18
|
+
"hint",
|
|
19
|
+
"multiline",
|
|
20
|
+
"error",
|
|
21
|
+
"onChange",
|
|
22
|
+
"value",
|
|
23
|
+
"placeholder"
|
|
24
|
+
]);
|
|
25
|
+
const id = randomString();
|
|
26
|
+
const Component = multiline ? Textarea : Input;
|
|
27
|
+
return /* @__PURE__ */ jsxs(FormGroup, { children: [
|
|
28
|
+
label ? /* @__PURE__ */ jsx(Label, { htmlFor: id, error, children: label }) : "",
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
Component,
|
|
31
|
+
__spreadValues({
|
|
32
|
+
id,
|
|
33
|
+
onChange: (e) => onChange(e.target.value),
|
|
34
|
+
value,
|
|
35
|
+
placeholder
|
|
36
|
+
}, rest)
|
|
37
|
+
),
|
|
38
|
+
hint ? /* @__PURE__ */ jsx(Hint, { children: hint }) : ""
|
|
39
|
+
] });
|
|
40
|
+
};
|
|
41
|
+
const TextInput = (props) => /* @__PURE__ */ jsx(TextField, __spreadValues({}, props));
|
|
42
|
+
var TextInput_default = TextInput;
|
|
43
|
+
|
|
44
|
+
export { TextInput_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../chunk-BBZEL7EG.js';
|
|
2
|
+
|
|
3
|
+
const toUnderscore = (string) => string.replace(/([A-Z])/g, ($1) => `_${$1.toLowerCase()}`);
|
|
4
|
+
const humanize = (string) => toUnderscore(string).replace(/_/g, " ");
|
|
5
|
+
const capitalize = (s) => {
|
|
6
|
+
if (typeof s !== "string") return "";
|
|
7
|
+
return s.charAt(0).toUpperCase() + s.slice(1);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { capitalize, humanize, toUnderscore };
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
+
import '../chunk-BBZEL7EG.js';
|
|
2
|
+
|
|
1
3
|
const imgageSrc = (src, variant) => {
|
|
2
4
|
if (typeof src === "object" && !("name" in src))
|
|
3
5
|
console.warn(`WARNING: Image with empty {}: ${variant}`);
|
|
4
|
-
|
|
5
|
-
if (
|
|
6
|
-
typeof src === "object" &&
|
|
7
|
-
"name" in src &&
|
|
8
|
-
(src.name.includes(".svg") || src.name.includes(".gif"))
|
|
9
|
-
)
|
|
6
|
+
if (typeof src === "object" && "name" in src && (src.name.includes(".svg") || src.name.includes(".gif")))
|
|
10
7
|
return src.urls.original;
|
|
11
8
|
if (typeof src === "object" && "name" in src) return src.urls[variant];
|
|
12
9
|
if (typeof src === "string") return src;
|
|
13
|
-
|
|
14
10
|
return null;
|
|
15
11
|
};
|
|
12
|
+
var imageSrc_default = imgageSrc;
|
|
16
13
|
|
|
17
|
-
export default
|
|
14
|
+
export { imageSrc_default as default };
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
+
import '../chunk-BBZEL7EG.js';
|
|
2
|
+
|
|
1
3
|
const title = (widget) => {
|
|
2
4
|
return widget.Config.title;
|
|
3
5
|
};
|
|
4
|
-
|
|
5
6
|
const adminFields = (widget) => {
|
|
6
7
|
return widget.Admin;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
9
|
const category = (widget) => {
|
|
10
10
|
return widget.Config.category;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
12
|
const deprecated = (widget) => {
|
|
14
13
|
return widget.Config.deprecated;
|
|
15
14
|
};
|
|
16
|
-
|
|
17
15
|
const primaryField = (widget) => {
|
|
18
16
|
return widget.Config.primaryField;
|
|
19
17
|
};
|
|
20
|
-
|
|
21
18
|
const defaults = (widget) => {
|
|
22
19
|
return widget.Defaults;
|
|
23
20
|
};
|
|
24
|
-
|
|
25
21
|
const widgetData = {
|
|
26
22
|
title,
|
|
27
23
|
adminFields,
|
|
28
24
|
category,
|
|
29
25
|
deprecated,
|
|
30
26
|
defaults,
|
|
31
|
-
primaryField
|
|
27
|
+
primaryField
|
|
32
28
|
};
|
|
29
|
+
var widgetData_default = widgetData;
|
|
33
30
|
|
|
34
|
-
export default
|
|
31
|
+
export { widgetData_default as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import '../chunk-BBZEL7EG.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
const IconCopy = () => /* @__PURE__ */ jsxs(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "16",
|
|
9
|
+
height: "16",
|
|
10
|
+
viewBox: "0 0 16 16",
|
|
11
|
+
fill: "none",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_2312_498)", children: [
|
|
14
|
+
/* @__PURE__ */ jsx(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
d: "M13.3334 5.33331H6.66671C5.93033 5.33331 5.33337 5.93027 5.33337 6.66665V13.3333C5.33337 14.0697 5.93033 14.6666 6.66671 14.6666H13.3334C14.0698 14.6666 14.6667 14.0697 14.6667 13.3333V6.66665C14.6667 5.93027 14.0698 5.33331 13.3334 5.33331Z",
|
|
18
|
+
stroke: "white",
|
|
19
|
+
strokeWidth: "2",
|
|
20
|
+
strokeLinecap: "round",
|
|
21
|
+
strokeLinejoin: "round"
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ jsx(
|
|
25
|
+
"path",
|
|
26
|
+
{
|
|
27
|
+
d: "M2.66671 10.6666C1.93337 10.6666 1.33337 10.0666 1.33337 9.33331V2.66665C1.33337 1.93331 1.93337 1.33331 2.66671 1.33331H9.33337C10.0667 1.33331 10.6667 1.93331 10.6667 2.66665",
|
|
28
|
+
stroke: "white",
|
|
29
|
+
strokeWidth: "2",
|
|
30
|
+
strokeLinecap: "round",
|
|
31
|
+
strokeLinejoin: "round"
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_2312_498", children: /* @__PURE__ */ jsx("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
var IconCopy_default = IconCopy;
|
|
40
|
+
|
|
41
|
+
export { IconCopy_default as default };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import '../chunk-BBZEL7EG.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
const IconDelete = () => /* @__PURE__ */ jsxs(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "16",
|
|
9
|
+
height: "16",
|
|
10
|
+
viewBox: "0 0 16 16",
|
|
11
|
+
fill: "none",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ jsx(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
d: "M2 4H14",
|
|
17
|
+
stroke: "white",
|
|
18
|
+
strokeWidth: "2",
|
|
19
|
+
strokeLinecap: "round",
|
|
20
|
+
strokeLinejoin: "round"
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
/* @__PURE__ */ jsx(
|
|
24
|
+
"path",
|
|
25
|
+
{
|
|
26
|
+
d: "M12.6667 4V13.3333C12.6667 14 12 14.6667 11.3334 14.6667H4.66671C4.00004 14.6667 3.33337 14 3.33337 13.3333V4",
|
|
27
|
+
stroke: "white",
|
|
28
|
+
strokeWidth: "2",
|
|
29
|
+
strokeLinecap: "round",
|
|
30
|
+
strokeLinejoin: "round"
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
"path",
|
|
35
|
+
{
|
|
36
|
+
d: "M5.33337 3.99998V2.66665C5.33337 1.99998 6.00004 1.33331 6.66671 1.33331H9.33337C10 1.33331 10.6667 1.99998 10.6667 2.66665V3.99998",
|
|
37
|
+
stroke: "white",
|
|
38
|
+
strokeWidth: "2",
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round"
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
var IconDelete_default = IconDelete;
|
|
47
|
+
|
|
48
|
+
export { IconDelete_default as default };
|