@raketa-builder/image-input 0.4.0 → 0.6.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/index.js
CHANGED
|
@@ -394,18 +394,8 @@ var require_dist = __commonJS({
|
|
|
394
394
|
var import_react13 = __toESM2(require("react"));
|
|
395
395
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
396
396
|
var Stack3 = (_a) => {
|
|
397
|
-
var _b = _a, {
|
|
398
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
399
|
-
"div",
|
|
400
|
-
__spreadValues2({
|
|
401
|
-
style: {
|
|
402
|
-
justifyContent: h || "flex-start",
|
|
403
|
-
alignItems: v || "flex-start",
|
|
404
|
-
gap: g || "1em"
|
|
405
|
-
},
|
|
406
|
-
className: cn7("r-stack", className)
|
|
407
|
-
}, props)
|
|
408
|
-
);
|
|
397
|
+
var _b = _a, { className } = _b, props = __objRest2(_b, ["className"]);
|
|
398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", __spreadValues2({ className: cn7("r-stack", className) }, props));
|
|
409
399
|
};
|
|
410
400
|
var Stack_default = Stack3;
|
|
411
401
|
var import_react14 = __toESM2(require("react"));
|
|
@@ -1140,7 +1130,7 @@ var BrowseTab = ({
|
|
|
1140
1130
|
onSelect(newSelected);
|
|
1141
1131
|
};
|
|
1142
1132
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_react4.default.Fragment, { children: [
|
|
1143
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_ui3.Stack, {
|
|
1133
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_ui3.Stack, { className: "r-stack-align-center r-stack-justify-start", children: [
|
|
1144
1134
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1145
1135
|
TextInput_default,
|
|
1146
1136
|
{
|
|
@@ -1151,7 +1141,7 @@ var BrowseTab = ({
|
|
|
1151
1141
|
),
|
|
1152
1142
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_ui3.Button, { type: "button", variant: "secondary", onClick: () => onSearch(), children: "Search" })
|
|
1153
1143
|
] }),
|
|
1154
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_ui3.Stack, {
|
|
1144
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_ui3.Stack, { children: [
|
|
1155
1145
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ImageList, { children: images.map((image) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1156
1146
|
ImageItem,
|
|
1157
1147
|
{
|
|
@@ -1239,7 +1229,7 @@ var ProgressWrapper = (_a) => {
|
|
|
1239
1229
|
"div",
|
|
1240
1230
|
__spreadValues({
|
|
1241
1231
|
className: (0, import_ui5.cn)("r-reset", "r-image-picker-progress-wrapper", className)
|
|
1242
|
-
},
|
|
1232
|
+
}, rest)
|
|
1243
1233
|
);
|
|
1244
1234
|
};
|
|
1245
1235
|
var Progress = (_a) => {
|
|
@@ -1248,7 +1238,7 @@ var Progress = (_a) => {
|
|
|
1248
1238
|
"div",
|
|
1249
1239
|
__spreadValues({
|
|
1250
1240
|
className: (0, import_ui5.cn)("r-reset", "r-image-picker-progress", className)
|
|
1251
|
-
},
|
|
1241
|
+
}, rest)
|
|
1252
1242
|
);
|
|
1253
1243
|
};
|
|
1254
1244
|
var ProgressBar = ({ total, done }) => {
|
package/package.json
CHANGED
package/src/lib/ProgressBar.js
CHANGED
|
@@ -4,14 +4,14 @@ import { cn } from "@raketa-builder/ui";
|
|
|
4
4
|
const ProgressWrapper = ({ className, ...rest }) => (
|
|
5
5
|
<div
|
|
6
6
|
className={cn("r-reset", "r-image-picker-progress-wrapper", className)}
|
|
7
|
-
{...
|
|
7
|
+
{...rest}
|
|
8
8
|
/>
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
const Progress = ({ className, ...rest }) => (
|
|
12
12
|
<div
|
|
13
13
|
className={cn("r-reset", "r-image-picker-progress", className)}
|
|
14
|
-
{...
|
|
14
|
+
{...rest}
|
|
15
15
|
/>
|
|
16
16
|
);
|
|
17
17
|
|
|
@@ -143,7 +143,7 @@ const BrowseTab = ({
|
|
|
143
143
|
|
|
144
144
|
return (
|
|
145
145
|
<React.Fragment>
|
|
146
|
-
<Stack
|
|
146
|
+
<Stack className="r-stack-align-center r-stack-justify-start">
|
|
147
147
|
<TextInput
|
|
148
148
|
label="Search images"
|
|
149
149
|
value={q}
|
|
@@ -155,7 +155,7 @@ const BrowseTab = ({
|
|
|
155
155
|
</Button>
|
|
156
156
|
</Stack>
|
|
157
157
|
|
|
158
|
-
<Stack
|
|
158
|
+
<Stack>
|
|
159
159
|
<ImageList>
|
|
160
160
|
{images.map((image) => (
|
|
161
161
|
<ImageItem
|