@overmap-ai/core 1.0.34-image-preview.3 → 1.0.34-image-preview.5
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UploadField } from "./UploadField";
|
|
3
3
|
import { ComponentProps } from "../typings";
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const UploadInput: import("react").MemoExoticComponent<(props: ComponentProps<UploadField>) => import("react/jsx-runtime").JSX.Element>;
|
package/dist/overmap-core.js
CHANGED
|
@@ -8190,7 +8190,7 @@ const Tabs = Object.assign({}, {
|
|
|
8190
8190
|
Trigger: TabsTrigger,
|
|
8191
8191
|
Content: TabsContent
|
|
8192
8192
|
});
|
|
8193
|
-
const NumberInput
|
|
8193
|
+
const NumberInput = memo((props) => {
|
|
8194
8194
|
const [{ inputId, labelId, size, severity, showInputOnly, fieldProps, field }, rest] = useFormikInput(props);
|
|
8195
8195
|
let [{ helpText, label }] = useFormikInput(props);
|
|
8196
8196
|
helpText = showInputOnly ? null : helpText;
|
|
@@ -8211,7 +8211,7 @@ const NumberInput$1 = memo((props) => {
|
|
|
8211
8211
|
}
|
|
8212
8212
|
) }) });
|
|
8213
8213
|
});
|
|
8214
|
-
NumberInput
|
|
8214
|
+
NumberInput.displayName = "NumberInput";
|
|
8215
8215
|
const emptyNumberField = {
|
|
8216
8216
|
...emptyBaseField,
|
|
8217
8217
|
type: "number",
|
|
@@ -8321,7 +8321,7 @@ const _NumberField = class _NumberField extends BaseField {
|
|
|
8321
8321
|
return new _NumberField(data);
|
|
8322
8322
|
}
|
|
8323
8323
|
getInput(props) {
|
|
8324
|
-
return /* @__PURE__ */ jsx(NumberInput
|
|
8324
|
+
return /* @__PURE__ */ jsx(NumberInput, { field: this, ...props });
|
|
8325
8325
|
}
|
|
8326
8326
|
};
|
|
8327
8327
|
__publicField(_NumberField, "fieldTypeName", "Number");
|
|
@@ -9221,7 +9221,7 @@ const convertBytesToLargestUnit = (bytes) => {
|
|
|
9221
9221
|
});
|
|
9222
9222
|
return formatter.format(sizeInUnit);
|
|
9223
9223
|
};
|
|
9224
|
-
const
|
|
9224
|
+
const UploadInput = memo((props) => {
|
|
9225
9225
|
var _a2;
|
|
9226
9226
|
const [{ inputId, labelId, size, severity, helpText, showInputOnly, fieldProps, field }, rest] = useFormikInput(props);
|
|
9227
9227
|
const { onChange } = fieldProps;
|
|
@@ -9258,7 +9258,7 @@ const NumberInput = memo((props) => {
|
|
|
9258
9258
|
const buttonText = field.maxFiles > 1 ? multipleButtonText : singleButtonText;
|
|
9259
9259
|
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
|
|
9260
9260
|
/* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText: updatedHelpText, severity, children: /* @__PURE__ */ jsxs(InputWithLabel, { size, severity, inputId, labelId, label, children: [
|
|
9261
|
-
/* @__PURE__ */ jsx(Flex, { direction: "row", gap: "2", children: /* @__PURE__ */ jsx(Box, { width: "max-content", asChild: true, children: /* @__PURE__ */ jsxs(Button, { ...rest, variant: "soft", onClick: handleClick, children: [
|
|
9261
|
+
/* @__PURE__ */ jsx(Flex, { direction: "row", gap: "2", children: /* @__PURE__ */ jsx(Box, { width: "max-content", asChild: true, children: /* @__PURE__ */ jsxs(Button, { ...rest, variant: "soft", onClick: handleClick, id: "upload-input-upload-button", children: [
|
|
9262
9262
|
/* @__PURE__ */ jsx(UploadIcon, {}),
|
|
9263
9263
|
" ",
|
|
9264
9264
|
buttonText
|
|
@@ -9293,7 +9293,7 @@ const NumberInput = memo((props) => {
|
|
|
9293
9293
|
)) })
|
|
9294
9294
|
] });
|
|
9295
9295
|
});
|
|
9296
|
-
|
|
9296
|
+
UploadInput.displayName = "UploadInput";
|
|
9297
9297
|
const DisplayFile = memo((props) => {
|
|
9298
9298
|
const { file, field, onRemove, disabled } = props;
|
|
9299
9299
|
const [resolvedFile, setResolvedFile] = useState(null);
|
|
@@ -9553,7 +9553,7 @@ const _UploadField = class _UploadField extends BaseField {
|
|
|
9553
9553
|
return new _UploadField(data);
|
|
9554
9554
|
}
|
|
9555
9555
|
getInput(props) {
|
|
9556
|
-
return /* @__PURE__ */ jsx(
|
|
9556
|
+
return /* @__PURE__ */ jsx(UploadInput, { field: this, ...props });
|
|
9557
9557
|
}
|
|
9558
9558
|
};
|
|
9559
9559
|
__publicField(_UploadField, "fieldTypeName", "Upload");
|
|
@@ -10338,11 +10338,11 @@ const FieldActions = memo((props) => {
|
|
|
10338
10338
|
] });
|
|
10339
10339
|
});
|
|
10340
10340
|
FieldActions.displayName = "FieldActions";
|
|
10341
|
-
const popoverInputsContainer = "
|
|
10342
|
-
const typeBadge = "
|
|
10343
|
-
const previewInput = "
|
|
10344
|
-
const directInput = "
|
|
10345
|
-
const grow = "
|
|
10341
|
+
const popoverInputsContainer = "_popoverInputsContainer_1orlt_1";
|
|
10342
|
+
const typeBadge = "_typeBadge_1orlt_5";
|
|
10343
|
+
const previewInput = "_previewInput_1orlt_10";
|
|
10344
|
+
const directInput = "_directInput_1orlt_14";
|
|
10345
|
+
const grow = "_grow_1orlt_18";
|
|
10346
10346
|
const styles = {
|
|
10347
10347
|
popoverInputsContainer,
|
|
10348
10348
|
typeBadge,
|
|
@@ -10516,7 +10516,7 @@ const FieldBuilder = memo((props) => {
|
|
|
10516
10516
|
const deserializedField = useMemo(() => deserialize(initial), [initial]);
|
|
10517
10517
|
const previewInput2 = useFieldInput(deserializedField, { formId, disabled: true, showInputOnly: true });
|
|
10518
10518
|
return /* @__PURE__ */ jsxs(Flex, { align: "center", grow: "1", children: [
|
|
10519
|
-
/* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
|
|
10519
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", width: "100%", mr: "3", children: [
|
|
10520
10520
|
fieldCls === FieldSection && /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "1", children: [
|
|
10521
10521
|
directlyShownFields.length > 0 && directlyShownInputs,
|
|
10522
10522
|
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", children: [
|
|
@@ -10573,7 +10573,7 @@ const FieldBuilder = memo((props) => {
|
|
|
10573
10573
|
)
|
|
10574
10574
|
}
|
|
10575
10575
|
),
|
|
10576
|
-
fieldCls !== FieldSection && /* @__PURE__ */ jsx("div", { className: styles.previewInput, children: previewInput2 }),
|
|
10576
|
+
fieldCls !== FieldSection && fieldCls !== BooleanField && /* @__PURE__ */ jsx("div", { className: styles.previewInput, children: previewInput2 }),
|
|
10577
10577
|
/* @__PURE__ */ jsx(
|
|
10578
10578
|
PatchField,
|
|
10579
10579
|
{
|
|
@@ -11185,7 +11185,7 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
11185
11185
|
MultiStringField,
|
|
11186
11186
|
MultiStringInput,
|
|
11187
11187
|
NumberField,
|
|
11188
|
-
NumberInput
|
|
11188
|
+
NumberInput,
|
|
11189
11189
|
PatchField,
|
|
11190
11190
|
PatchFormProvider,
|
|
11191
11191
|
SelectField,
|
|
@@ -11257,7 +11257,7 @@ export {
|
|
|
11257
11257
|
MultiStringField,
|
|
11258
11258
|
MultiStringInput,
|
|
11259
11259
|
NumberField,
|
|
11260
|
-
NumberInput
|
|
11260
|
+
NumberInput,
|
|
11261
11261
|
OUTBOX_RETRY_DELAY,
|
|
11262
11262
|
OrganizationAccessLevel,
|
|
11263
11263
|
OrganizationAccessService,
|