@box/metadata-editor 0.99.0 → 0.99.2
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/chunks/filter-dropdown-menu.module.js +11 -11
- package/dist/chunks/metadata-instance-form-card-wrapper.js +7 -7
- package/dist/chunks/utils2.js +22 -22
- package/dist/esm/lib/components/filter-instances-dropdown/filter-instances-dropdown.js +33 -33
- package/dist/esm/lib/components/interactive-header-text/interactive-header-text.js +6 -6
- package/dist/esm/lib/components/interactive-text/interactive-text.js +7 -7
- package/dist/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.js +17 -17
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/autofill-overlay.js +28 -28
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.js +16 -16
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js +10 -10
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js +12 -12
- package/dist/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +19 -19
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/metadata-instance-footer.js +9 -9
- package/dist/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js +17 -17
- package/dist/styles/ai-suggestion-field.css +1 -1
- package/dist/styles/autofill-overlay.css +1 -1
- package/dist/styles/custom-instance-new-field.css +1 -1
- package/dist/styles/filter-dropdown-menu.css +1 -1
- package/dist/styles/filter-instances-dropdown.css +1 -1
- package/dist/styles/interactive-header-text.css +1 -1
- package/dist/styles/interactive-text.css +1 -1
- package/dist/styles/metadata-instance-footer.css +1 -1
- package/dist/styles/metadata-instance-form-autofill-button.css +1 -1
- package/dist/styles/metadata-instance-form-card-wrapper.css +1 -1
- package/dist/styles/metadata-instance-form-footer.css +1 -1
- package/dist/styles/metadata-instance-form-header.css +1 -1
- package/dist/styles/metadata-instance-header.css +1 -1
- package/dist/styles/utils.css +1 -1
- package/package.json +4 -4
@@ -1,17 +1,17 @@
|
|
1
|
-
import '../styles/filter-dropdown-menu.css';const c = "
|
1
|
+
import '../styles/filter-dropdown-menu.css';const c = "_content_3uvu2_1", e = "_scrollableContainer_3uvu2_20", o = "_item_3uvu2_25", t = "_option_3uvu2_35", n = "_search_3uvu2_56", _ = "_searchIcon_3uvu2_61", a = "_global_3uvu2_70", r = "_clearSearchIcon_3uvu2_75", s = "_searchInput_3uvu2_83", i = "_firefoxDefaultOpacityFix_3uvu2_115", u = "_divider_3uvu2_133", l = "_searchDivider_3uvu2_137", v = {
|
2
2
|
content: c,
|
3
3
|
scrollableContainer: e,
|
4
|
-
item:
|
5
|
-
option:
|
6
|
-
search:
|
7
|
-
searchIcon:
|
8
|
-
global:
|
9
|
-
clearSearchIcon:
|
10
|
-
searchInput:
|
4
|
+
item: o,
|
5
|
+
option: t,
|
6
|
+
search: n,
|
7
|
+
searchIcon: _,
|
8
|
+
global: a,
|
9
|
+
clearSearchIcon: r,
|
10
|
+
searchInput: s,
|
11
11
|
firefoxDefaultOpacityFix: i,
|
12
|
-
divider:
|
13
|
-
searchDivider:
|
12
|
+
divider: u,
|
13
|
+
searchDivider: l
|
14
14
|
};
|
15
15
|
export {
|
16
|
-
|
16
|
+
v as s
|
17
17
|
};
|
@@ -4,7 +4,7 @@ import { TEMPLATE_CUSTOM_PROPERTIES as w } from "../esm/lib/constants.js";
|
|
4
4
|
import { MetadataInstanceFormFooter as A } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js";
|
5
5
|
import { MetadataInstanceFormHeader as E } from "../esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
|
6
6
|
import { jsx as t, jsxs as M } from "react/jsx-runtime";
|
7
|
-
import '../styles/metadata-instance-form-card-wrapper.css';const b = "
|
7
|
+
import '../styles/metadata-instance-form-card-wrapper.css';const b = "_metadataInstanceForm_1e6l2_1", v = "_wrapperGradient_1e6l2_7", D = "_suggestionsFetching_1e6l2_12", I = "_metadataInstanceFormContent_1e6l2_18", L = "_showOverlay_1e6l2_25", s = {
|
8
8
|
metadataInstanceForm: b,
|
9
9
|
wrapperGradient: v,
|
10
10
|
suggestionsFetching: D,
|
@@ -17,9 +17,9 @@ import '../styles/metadata-instance-form-card-wrapper.css';const b = "_metadataI
|
|
17
17
|
className: i,
|
18
18
|
formRef: g,
|
19
19
|
isAiSuggestionsFeatureEnabled: m,
|
20
|
-
isBetaLanguageEnabled:
|
21
|
-
isLargeFile:
|
22
|
-
isDeleteButtonDisabled:
|
20
|
+
isBetaLanguageEnabled: l,
|
21
|
+
isLargeFile: d = !1,
|
22
|
+
isDeleteButtonDisabled: c,
|
23
23
|
suggestions: F,
|
24
24
|
isFetchingSuggestions: e,
|
25
25
|
isFormDirty: u = !1,
|
@@ -39,13 +39,13 @@ import '../styles/metadata-instance-form-card-wrapper.css';const b = "_metadataI
|
|
39
39
|
areAiSuggestionsAvailable: o,
|
40
40
|
hasSuggestions: C,
|
41
41
|
isAiSuggestionsFeatureEnabled: m && !f,
|
42
|
-
isBetaLanguageEnabled:
|
43
|
-
isLargeFile:
|
42
|
+
isBetaLanguageEnabled: l,
|
43
|
+
isLargeFile: d,
|
44
44
|
isLoading: e,
|
45
45
|
onAutofill: _,
|
46
46
|
templateName: a == null ? void 0 : a.displayName
|
47
47
|
}), a && r, /* @__PURE__ */ t(A, {
|
48
|
-
isDeleteButtonDisabled:
|
48
|
+
isDeleteButtonDisabled: c,
|
49
49
|
isLoading: e,
|
50
50
|
onCancel: () => p(u),
|
51
51
|
onDelete: h
|
package/dist/chunks/utils2.js
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
-
import { BoxAiLogo as
|
2
|
-
import
|
3
|
-
import { convertISOStringToUTCDate as
|
4
|
-
import { jsxs as
|
5
|
-
import '../styles/utils.css';const
|
6
|
-
noAttributesText:
|
7
|
-
fieldWrapper:
|
8
|
-
hasSuggestion:
|
1
|
+
import { BoxAiLogo as n } from "@box/blueprint-web-assets/icons/Logo";
|
2
|
+
import i from "../esm/lib/components/interactive-text/interactive-text.js";
|
3
|
+
import { convertISOStringToUTCDate as c } from "../esm/lib/utils/convertDate.js";
|
4
|
+
import { jsxs as _, jsx as o } from "react/jsx-runtime";
|
5
|
+
import '../styles/utils.css';const b = "_noAttributesText_1wv72_2", p = "_fieldWrapper_1wv72_6", g = "_hasSuggestion_1wv72_11", x = "_error_1wv72_19", d = "_dateField_1wv72_31", m = "_suggestionApplied_1wv72_35", u = "_comboboxContainer_1wv72_35", v = "_labelWrapper_1wv72_49", T = "_labelText_1wv72_55", w = "_labelIcon_1wv72_58", t = {
|
6
|
+
noAttributesText: b,
|
7
|
+
fieldWrapper: p,
|
8
|
+
hasSuggestion: g,
|
9
9
|
error: x,
|
10
10
|
dateField: d,
|
11
11
|
suggestionApplied: m,
|
12
12
|
comboboxContainer: u,
|
13
|
-
labelWrapper:
|
14
|
-
labelText:
|
15
|
-
labelIcon:
|
16
|
-
},
|
13
|
+
labelWrapper: v,
|
14
|
+
labelText: T,
|
15
|
+
labelIcon: w
|
16
|
+
}, W = (e, r, a = !1, s = "label") => (l) => /* @__PURE__ */ _("div", {
|
17
17
|
className: t.labelWrapper,
|
18
|
-
children: [
|
19
|
-
as:
|
18
|
+
children: [r ? /* @__PURE__ */ o(i, {
|
19
|
+
as: s,
|
20
20
|
className: t.labelText,
|
21
|
-
tooltipText:
|
22
|
-
...
|
21
|
+
tooltipText: r,
|
22
|
+
...l,
|
23
23
|
children: e
|
24
24
|
}) : /* @__PURE__ */ o("label", {
|
25
25
|
className: t.labelText,
|
26
|
-
...
|
26
|
+
...l,
|
27
27
|
children: e
|
28
|
-
}),
|
28
|
+
}), a && /* @__PURE__ */ o(n, {
|
29
29
|
className: t.labelIcon
|
30
30
|
})]
|
31
|
-
}),
|
31
|
+
}), f = (e) => {
|
32
32
|
try {
|
33
|
-
return
|
33
|
+
return c(e).toISOString();
|
34
34
|
} catch {
|
35
35
|
return null;
|
36
36
|
}
|
37
37
|
};
|
38
38
|
export {
|
39
|
-
|
39
|
+
W as g,
|
40
40
|
t as s,
|
41
|
-
|
41
|
+
f as t
|
42
42
|
};
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { TriggerButton as
|
2
|
-
import { useIntl as
|
3
|
-
import { SelectProvider as
|
1
|
+
import { TriggerButton as f, Text as v, ScrollableContainer as C, Divider as N } from "@box/blueprint-web";
|
2
|
+
import { useIntl as x } from "react-intl";
|
3
|
+
import { SelectProvider as B, Select as I, SelectPopover as k, SelectItem as g, SelectItemCheck as M } from "@ariakit/react";
|
4
4
|
import { Space1 as S } from "@box/blueprint-web-assets/tokens/px-tokens";
|
5
5
|
import { useEffect as y } from "react";
|
6
6
|
import D from "clsx";
|
7
7
|
import { Checkmark as p } from "@box/blueprint-web-assets/icons/Fill";
|
8
8
|
import { getVisibleTemplates as j, getTemplateDisplayName as _ } from "../../utils/utils.js";
|
9
9
|
import s from "./messages.js";
|
10
|
-
import { jsxs as o, jsx as
|
11
|
-
import '../../../../styles/filter-instances-dropdown.css';const w = "
|
10
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
11
|
+
import '../../../../styles/filter-instances-dropdown.css';const w = "_details_18edb_1", F = "_triggerContainer_18edb_5", O = "_triggerButton_18edb_10", P = "_popover_18edb_16", L = "_divider_18edb_33", V = "_scrollableContainer_18edb_36", z = "_item_18edb_40", E = "_indicator_18edb_67", G = "_indicatorIcon_18edb_76", R = "_testContainer_18edb_80", e = {
|
12
12
|
details: w,
|
13
13
|
triggerContainer: F,
|
14
14
|
triggerButton: O,
|
@@ -21,69 +21,69 @@ import '../../../../styles/filter-instances-dropdown.css';const w = "_details_19
|
|
21
21
|
testContainer: R
|
22
22
|
}, q = parseInt(S, 10);
|
23
23
|
function $({
|
24
|
-
appliedTemplates:
|
24
|
+
appliedTemplates: u,
|
25
25
|
selectedTemplates: c,
|
26
26
|
setSelectedTemplates: l
|
27
27
|
}) {
|
28
|
-
const a =
|
28
|
+
const a = x(), m = a.formatMessage(s.customMetadataName), n = j(u), i = c.length, d = n.length, b = i === 0 ? a.formatMessage(s.allTemplatesTriggerButtonText) : a.formatMessage(s.selectedTemplatesTriggerButtonText, {
|
29
29
|
selectedTemplatesNumber: i,
|
30
|
-
visibleTemplatesNumber:
|
30
|
+
visibleTemplatesNumber: d
|
31
31
|
}), h = () => {
|
32
32
|
l([]);
|
33
33
|
};
|
34
34
|
return y(() => {
|
35
|
-
i ===
|
36
|
-
}, [i,
|
35
|
+
i === d && l([]);
|
36
|
+
}, [i, d]), /* @__PURE__ */ o(B, {
|
37
37
|
setValue: l,
|
38
38
|
value: c,
|
39
39
|
children: [/* @__PURE__ */ o("div", {
|
40
|
-
className:
|
41
|
-
children: [/* @__PURE__ */
|
42
|
-
render: /* @__PURE__ */
|
40
|
+
className: e.triggerContainer,
|
41
|
+
children: [/* @__PURE__ */ t(I, {
|
42
|
+
render: /* @__PURE__ */ t(f, {
|
43
43
|
caretDirection: "down",
|
44
|
-
className:
|
45
|
-
label:
|
44
|
+
className: e.triggerButton,
|
45
|
+
label: b,
|
46
46
|
size: "small",
|
47
47
|
variant: "tertiary",
|
48
48
|
"data-target-id": "TriggerButton-allTemplatesTriggerButtonText|selectedTemplatesTriggerButtonText"
|
49
49
|
})
|
50
|
-
}), n.length > 0 && /* @__PURE__ */
|
50
|
+
}), n.length > 0 && /* @__PURE__ */ t(v, {
|
51
51
|
as: "p",
|
52
|
-
className:
|
52
|
+
className: e.details,
|
53
53
|
color: "textOnLightSecondary",
|
54
54
|
"data-testid": "detailsList",
|
55
55
|
variant: "caption",
|
56
|
-
children: n.filter((r) => c.some((T) => T === r.id)).map((r) => _(r,
|
56
|
+
children: n.filter((r) => c.some((T) => T === r.id)).map((r) => _(r, m)).join(", ")
|
57
57
|
})]
|
58
|
-
}), /* @__PURE__ */
|
59
|
-
className:
|
58
|
+
}), /* @__PURE__ */ t(k, {
|
59
|
+
className: e.popover,
|
60
60
|
gutter: q,
|
61
|
-
children: /* @__PURE__ */ o(
|
62
|
-
className:
|
61
|
+
children: /* @__PURE__ */ o(C, {
|
62
|
+
className: e.scrollableContainer,
|
63
63
|
children: [/* @__PURE__ */ o(g, {
|
64
64
|
autoFocus: i === 0,
|
65
|
-
className:
|
65
|
+
className: e.item,
|
66
66
|
hideOnClick: !0,
|
67
67
|
onClick: h,
|
68
|
-
children: [i === 0 && /* @__PURE__ */
|
69
|
-
className: D(
|
68
|
+
children: [i === 0 && /* @__PURE__ */ t(p, {
|
69
|
+
className: D(e.indicator, e.indicatorIcon)
|
70
70
|
}), a.formatMessage(s.allTemplatesTriggerButtonText)]
|
71
|
-
}), /* @__PURE__ */
|
72
|
-
className:
|
71
|
+
}), /* @__PURE__ */ t(N, {
|
72
|
+
className: e.divider
|
73
73
|
}), n.map((r) => /* @__PURE__ */ o(g, {
|
74
|
-
className:
|
74
|
+
className: e.item,
|
75
75
|
hideOnClick: !0,
|
76
76
|
value: r.id,
|
77
|
-
children: [/* @__PURE__ */
|
78
|
-
className:
|
77
|
+
children: [/* @__PURE__ */ t(M, {
|
78
|
+
className: e.indicator,
|
79
79
|
style: {
|
80
80
|
width: "none",
|
81
81
|
height: "none"
|
82
82
|
},
|
83
|
-
children: /* @__PURE__ */
|
84
|
-
className:
|
83
|
+
children: /* @__PURE__ */ t(p, {
|
84
|
+
className: e.indicatorIcon
|
85
85
|
})
|
86
|
-
}), _(r,
|
86
|
+
}), _(r, m)]
|
87
87
|
}, r.id))]
|
88
88
|
})
|
89
89
|
})]
|
@@ -1,22 +1,22 @@
|
|
1
1
|
import { Focusable as l } from "@ariakit/react";
|
2
2
|
import { useFullTextTooltip as n, Text as i } from "@box/blueprint-web";
|
3
3
|
import m from "clsx";
|
4
|
-
import { useRef as
|
5
|
-
import { jsx as e, Fragment as
|
6
|
-
import '../../../../styles/interactive-header-text.css';const
|
7
|
-
header:
|
4
|
+
import { useRef as c } from "react";
|
5
|
+
import { jsx as e, Fragment as d } from "react/jsx-runtime";
|
6
|
+
import '../../../../styles/interactive-header-text.css';const p = "_header_qqeyd_1", f = {
|
7
|
+
header: p
|
8
8
|
}, _ = ({
|
9
9
|
className: o,
|
10
10
|
title: r
|
11
11
|
}) => {
|
12
|
-
const t =
|
12
|
+
const t = c(null), {
|
13
13
|
Wrapper: a,
|
14
14
|
wrapperProps: s
|
15
15
|
} = n({
|
16
16
|
ref: t,
|
17
17
|
textValue: r
|
18
18
|
});
|
19
|
-
return /* @__PURE__ */ e(
|
19
|
+
return /* @__PURE__ */ e(d, {
|
20
20
|
children: /* @__PURE__ */ e(a, {
|
21
21
|
...s,
|
22
22
|
children: /* @__PURE__ */ e(l, {
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { Focusable as o } from "@ariakit/react";
|
2
2
|
import { Tooltip as a, Text as s } from "@box/blueprint-web";
|
3
|
-
import
|
3
|
+
import l from "clsx";
|
4
4
|
import { jsx as t } from "react/jsx-runtime";
|
5
|
-
import '../../../../styles/interactive-text.css';const
|
6
|
-
interactiveText:
|
5
|
+
import '../../../../styles/interactive-text.css';const m = "_interactiveText_1i8lr_1", x = {
|
6
|
+
interactiveText: m
|
7
7
|
}, _ = ({
|
8
8
|
tooltipText: r,
|
9
|
-
className:
|
10
|
-
children:
|
9
|
+
className: i,
|
10
|
+
children: c,
|
11
11
|
...e
|
12
12
|
}) => {
|
13
13
|
const {
|
@@ -19,9 +19,9 @@ import '../../../../styles/interactive-text.css';const x = "_interactiveText_2jv
|
|
19
19
|
children: /* @__PURE__ */ t(o, {
|
20
20
|
render: /* @__PURE__ */ t(s, {
|
21
21
|
as: n,
|
22
|
-
className:
|
22
|
+
className: l(x.interactiveText, i),
|
23
23
|
...e,
|
24
|
-
children:
|
24
|
+
children: c
|
25
25
|
})
|
26
26
|
})
|
27
27
|
});
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { Text as
|
2
|
-
import { Checkmark as
|
1
|
+
import { Text as l, IconButton as c, DropdownMenu as a } from "@box/blueprint-web";
|
2
|
+
import { Checkmark as u, Ellipsis as f } from "@box/blueprint-web-assets/icons/Fill";
|
3
3
|
import { useIntl as I, FormattedMessage as r } from "react-intl";
|
4
4
|
import t from "./messages.js";
|
5
5
|
import { formatSuggestionValue as w } from "./utils.js";
|
6
|
-
import { jsx as e, jsxs as i, Fragment as
|
7
|
-
import '../../../../../../styles/ai-suggestion-field.css';const C = "
|
6
|
+
import { jsx as e, jsxs as i, Fragment as m } from "react/jsx-runtime";
|
7
|
+
import '../../../../../../styles/ai-suggestion-field.css';const C = "_wrapperGradient_z7sut_1", _ = "_wrapper_z7sut_1", b = "_buttons_z7sut_18", x = "_selectTrigger_z7sut_22", o = {
|
8
8
|
wrapperGradient: C,
|
9
9
|
wrapper: _,
|
10
10
|
buttons: b,
|
11
|
-
selectTrigger:
|
11
|
+
selectTrigger: x
|
12
12
|
};
|
13
13
|
function N({
|
14
14
|
aiSuggestion: S,
|
@@ -18,13 +18,13 @@ function N({
|
|
18
18
|
type: n,
|
19
19
|
isSameValue: h
|
20
20
|
}) {
|
21
|
-
const
|
21
|
+
const s = I();
|
22
22
|
return /* @__PURE__ */ e("div", {
|
23
23
|
className: o.wrapperGradient,
|
24
24
|
children: /* @__PURE__ */ e("div", {
|
25
25
|
className: o.wrapper,
|
26
|
-
children: h ? /* @__PURE__ */ i(
|
27
|
-
children: [/* @__PURE__ */ e(
|
26
|
+
children: h ? /* @__PURE__ */ i(m, {
|
27
|
+
children: [/* @__PURE__ */ e(l, {
|
28
28
|
as: "p",
|
29
29
|
color: "textOnLightSecondary",
|
30
30
|
variant: "caption",
|
@@ -34,42 +34,42 @@ function N({
|
|
34
34
|
}), /* @__PURE__ */ e("div", {
|
35
35
|
className: o.buttons,
|
36
36
|
children: /* @__PURE__ */ e(c, {
|
37
|
-
"aria-label":
|
38
|
-
icon:
|
37
|
+
"aria-label": s.formatMessage(t.aiSuggestionConfirm),
|
38
|
+
icon: u,
|
39
39
|
onClick: p,
|
40
40
|
size: "x-small",
|
41
41
|
"data-target-id": "IconButton-aiSuggestionConfirm"
|
42
42
|
})
|
43
43
|
})]
|
44
|
-
}) : /* @__PURE__ */ i(
|
44
|
+
}) : /* @__PURE__ */ i(m, {
|
45
45
|
children: [/* @__PURE__ */ i("div", {
|
46
|
-
children: [/* @__PURE__ */ e(
|
46
|
+
children: [/* @__PURE__ */ e(l, {
|
47
47
|
as: "p",
|
48
48
|
color: "textOnLightSecondary",
|
49
49
|
variant: "caption",
|
50
50
|
children: /* @__PURE__ */ e(r, {
|
51
51
|
...t.aiSuggestionCaption
|
52
52
|
})
|
53
|
-
}), /* @__PURE__ */ e(
|
53
|
+
}), /* @__PURE__ */ e(l, {
|
54
54
|
as: "p",
|
55
55
|
children: w(S, {
|
56
56
|
type: n,
|
57
|
-
locale:
|
57
|
+
locale: s.locale
|
58
58
|
})
|
59
59
|
})]
|
60
60
|
}), /* @__PURE__ */ i("div", {
|
61
61
|
className: o.buttons,
|
62
62
|
children: [/* @__PURE__ */ e(c, {
|
63
|
-
"aria-label":
|
63
|
+
"aria-label": s.formatMessage(n === "multiSelect" ? t.aiSuggestionAppend : t.aiSuggestionClearAndReplace),
|
64
64
|
"data-target-id": n === "multiSelect" ? "IconButton-aiSuggestionAppend" : "IconButton-aiSuggestionClearAndReplace",
|
65
|
-
icon:
|
65
|
+
icon: u,
|
66
66
|
onClick: n === "multiSelect" ? g : d,
|
67
67
|
size: "x-small"
|
68
68
|
}), /* @__PURE__ */ i(a.Root, {
|
69
69
|
children: [/* @__PURE__ */ e(a.Trigger, {
|
70
70
|
className: o.selectTrigger,
|
71
71
|
children: /* @__PURE__ */ e(c, {
|
72
|
-
"aria-label":
|
72
|
+
"aria-label": s.formatMessage(t.aiSuggestionOptions),
|
73
73
|
icon: f,
|
74
74
|
"data-target-id": "IconButton-aiSuggestionOptions"
|
75
75
|
})
|
@@ -3,57 +3,57 @@ import { LoadingIndicator as y, Text as n, TextButton as g } from "@box/blueprin
|
|
3
3
|
import { useIntl as v } from "react-intl";
|
4
4
|
import { AlertTriangle as _ } from "@box/blueprint-web-assets/icons/Line";
|
5
5
|
import { SurfaceStatusSurfaceError as p, Size5 as m } from "@box/blueprint-web-assets/tokens/tokens";
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import { jsxs as
|
9
|
-
import '../../../../../../styles/autofill-overlay.css';const O = "
|
6
|
+
import x from "clsx";
|
7
|
+
import i from "./messages.js";
|
8
|
+
import { jsxs as h, jsx as a } from "react/jsx-runtime";
|
9
|
+
import '../../../../../../styles/autofill-overlay.css';const O = "_autofillOverlay_1xnil_1", T = "_withError_1xnil_15", S = "_autofillOverlayTitle_1xnil_19", B = "_dismissButton_1xnil_24", I = "_overlayIcon_1xnil_28", M = "_testContainerStyle_1xnil_34", s = {
|
10
10
|
autofillOverlay: O,
|
11
11
|
withError: T,
|
12
12
|
autofillOverlayTitle: S,
|
13
|
-
dismissButton:
|
14
|
-
overlayIcon:
|
15
|
-
testContainerStyle:
|
16
|
-
},
|
17
|
-
errorCode:
|
13
|
+
dismissButton: B,
|
14
|
+
overlayIcon: I,
|
15
|
+
testContainerStyle: M
|
16
|
+
}, z = ({
|
17
|
+
errorCode: e,
|
18
18
|
isFetchingSuggestions: c,
|
19
|
-
isLongLoading:
|
19
|
+
isLongLoading: o
|
20
20
|
}) => {
|
21
21
|
const t = v(), [f, u] = d(!1);
|
22
|
-
let
|
23
|
-
|
24
|
-
const r =
|
25
|
-
return !c && !
|
26
|
-
className:
|
27
|
-
children: [
|
28
|
-
className:
|
22
|
+
let l = t.formatMessage(i.defaultLoadingMessage);
|
23
|
+
e && (l = t.formatMessage(i.errorTitle)), o && (l = t.formatMessage(i.longLoadingTitle));
|
24
|
+
const r = o ? t.formatMessage(i.longLoadingDescription) : e && t.formatMessage(i.errorDescription);
|
25
|
+
return !c && !e || f ? null : /* @__PURE__ */ h("div", {
|
26
|
+
className: x(s.autofillOverlay, e && s.withError),
|
27
|
+
children: [e ? /* @__PURE__ */ a(_, {
|
28
|
+
className: s.overlayIcon,
|
29
29
|
color: p,
|
30
30
|
height: m,
|
31
31
|
role: "presentation",
|
32
32
|
width: m
|
33
|
-
}) : /* @__PURE__ */
|
34
|
-
"aria-label": t.formatMessage(
|
33
|
+
}) : /* @__PURE__ */ a(y, {
|
34
|
+
"aria-label": t.formatMessage(i.loadingAriaLabel),
|
35
35
|
"aria-live": "polite",
|
36
|
-
className:
|
36
|
+
className: s.overlayIcon,
|
37
37
|
size: "large",
|
38
38
|
variant: "default"
|
39
|
-
}), /* @__PURE__ */
|
39
|
+
}), /* @__PURE__ */ a(n, {
|
40
40
|
as: "p",
|
41
|
-
className:
|
41
|
+
className: s.autofillOverlayTitle,
|
42
42
|
variant: "subtitle",
|
43
|
-
children:
|
44
|
-
}), r && /* @__PURE__ */
|
43
|
+
children: l
|
44
|
+
}), r && /* @__PURE__ */ a(n, {
|
45
45
|
as: "p",
|
46
46
|
color: "textOnLightSecondary",
|
47
47
|
variant: "bodyDefault",
|
48
48
|
children: r
|
49
|
-
}),
|
50
|
-
className:
|
49
|
+
}), e && /* @__PURE__ */ a(g, {
|
50
|
+
className: s.dismissButton,
|
51
51
|
onClick: () => u(!0),
|
52
52
|
"data-target-id": "TextButton-dismissButton",
|
53
|
-
children: t.formatMessage(
|
53
|
+
children: t.formatMessage(i.dismissButton)
|
54
54
|
})]
|
55
55
|
});
|
56
56
|
};
|
57
57
|
export {
|
58
|
-
|
58
|
+
z as AutofillOverlay
|
59
59
|
};
|
@@ -1,23 +1,23 @@
|
|
1
|
-
import { Card as
|
1
|
+
import { Card as y, TextInput as u, Button as m } from "@box/blueprint-web";
|
2
2
|
import { useState as l } from "react";
|
3
|
-
import { useIntl as
|
3
|
+
import { useIntl as v } from "react-intl";
|
4
4
|
import t from "./messages.js";
|
5
5
|
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
6
|
-
import '../../../../../../styles/custom-instance-new-field.css';const M = "
|
6
|
+
import '../../../../../../styles/custom-instance-new-field.css';const M = "_customInstanceNewFieldCard_fcftk_1", _ = "_customInstanceNewFieldFooter_fcftk_6", b = "_inputWrapper_fcftk_13", n = {
|
7
7
|
customInstanceNewFieldCard: M,
|
8
8
|
customInstanceNewFieldFooter: _,
|
9
9
|
inputWrapper: b
|
10
|
-
}, x = (
|
10
|
+
}, x = (f) => {
|
11
11
|
const {
|
12
|
-
onAdd:
|
13
|
-
onCancel:
|
12
|
+
onAdd: g,
|
13
|
+
onCancel: F,
|
14
14
|
formKeys: c = []
|
15
|
-
} =
|
16
|
-
|
17
|
-
},
|
18
|
-
r ? r.startsWith("$") ? o(e.formatMessage(t.customErrorInternalKey)) : c.includes(r) ? o(e.formatMessage(t.customErrorDuplicateKey)) :
|
15
|
+
} = f, e = v(), [r, h] = l(""), [d, C] = l(""), [i, o] = l(""), N = c.length !== 0, I = (s) => {
|
16
|
+
h(s), i && o("");
|
17
|
+
}, w = () => {
|
18
|
+
r ? r.startsWith("$") ? o(e.formatMessage(t.customErrorInternalKey)) : c.includes(r) ? o(e.formatMessage(t.customErrorDuplicateKey)) : g(r, d) : o(e.formatMessage(t.keyFieldRequiredError));
|
19
19
|
};
|
20
|
-
return /* @__PURE__ */ p(
|
20
|
+
return /* @__PURE__ */ p(y, {
|
21
21
|
"aria-label": e.formatMessage(t.addAttributeGroupAriaLabel),
|
22
22
|
className: n.customInstanceNewFieldCard,
|
23
23
|
"data-testid": "customInstanceNewField",
|
@@ -26,9 +26,9 @@ import '../../../../../../styles/custom-instance-new-field.css';const M = "_cust
|
|
26
26
|
className: n.inputWrapper,
|
27
27
|
children: /* @__PURE__ */ a(u, {
|
28
28
|
autoFocus: !0,
|
29
|
-
error:
|
29
|
+
error: i,
|
30
30
|
label: e.formatMessage(t.customKeyLabel),
|
31
|
-
onChange: (s) =>
|
31
|
+
onChange: (s) => I(s.target.value),
|
32
32
|
placeholder: e.formatMessage(t.customKeyPlaceholder),
|
33
33
|
required: !0,
|
34
34
|
value: r
|
@@ -39,17 +39,17 @@ import '../../../../../../styles/custom-instance-new-field.css';const M = "_cust
|
|
39
39
|
label: e.formatMessage(t.valueLabel),
|
40
40
|
onChange: (s) => C(s.target.value),
|
41
41
|
placeholder: e.formatMessage(t.valuePlaceholder),
|
42
|
-
value:
|
42
|
+
value: d
|
43
43
|
})
|
44
44
|
}), /* @__PURE__ */ p("div", {
|
45
45
|
className: n.customInstanceNewFieldFooter,
|
46
46
|
children: [N && /* @__PURE__ */ a(m, {
|
47
|
-
onClick:
|
47
|
+
onClick: F,
|
48
48
|
variant: "secondary",
|
49
49
|
"data-target-id": "Button-cancelCTA",
|
50
50
|
children: e.formatMessage(t.cancelCTA)
|
51
51
|
}), /* @__PURE__ */ a(m, {
|
52
|
-
onClick:
|
52
|
+
onClick: w,
|
53
53
|
variant: "primary",
|
54
54
|
"data-target-id": "Button-addNewFieldCTA",
|
55
55
|
children: e.formatMessage(t.addNewFieldCTA)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LoadingIndicator as
|
1
|
+
import { LoadingIndicator as k, IconButton as v, Tooltip as x, Button as K } from "@box/blueprint-web";
|
2
2
|
import { BoxAiLogo as p } from "@box/blueprint-web-assets/icons/Logo";
|
3
3
|
import { useFormikContext as L, getIn as i } from "formik";
|
4
4
|
import { useEffect as h } from "react";
|
@@ -6,7 +6,7 @@ import { useIntl as C } from "react-intl";
|
|
6
6
|
import { useAutofill as F } from "../../../../utils/autofill-context.js";
|
7
7
|
import n from "./messages.js";
|
8
8
|
import { jsx as l } from "react/jsx-runtime";
|
9
|
-
import '../../../../../../styles/metadata-instance-form-autofill-button.css';const T = "
|
9
|
+
import '../../../../../../styles/metadata-instance-form-autofill-button.css';const T = "_loadingIndicator_baqvi_1", _ = {
|
10
10
|
loadingIndicator: T
|
11
11
|
}, w = ({
|
12
12
|
areAiSuggestionsAvailable: B,
|
@@ -18,14 +18,14 @@ import '../../../../../../styles/metadata-instance-form-autofill-button.css';con
|
|
18
18
|
const {
|
19
19
|
isSubmitting: A,
|
20
20
|
values: e,
|
21
|
-
setFieldValue:
|
21
|
+
setFieldValue: m
|
22
22
|
} = L(), t = C(), {
|
23
23
|
suggestions: o
|
24
24
|
} = F();
|
25
25
|
h(() => {
|
26
26
|
if (o) {
|
27
27
|
const a = i(e, "metadata.fields"), r = i(e, "metadata.templateKey");
|
28
|
-
|
28
|
+
m("metadata.fields", a == null ? void 0 : a.map((s) => {
|
29
29
|
var g;
|
30
30
|
const f = (g = o == null ? void 0 : o[r]) == null ? void 0 : g[s.key];
|
31
31
|
return f ? {
|
@@ -34,18 +34,18 @@ import '../../../../../../styles/metadata-instance-form-autofill-button.css';con
|
|
34
34
|
} : s;
|
35
35
|
}));
|
36
36
|
}
|
37
|
-
}, [o,
|
38
|
-
const
|
37
|
+
}, [o, m]);
|
38
|
+
const u = () => {
|
39
39
|
const a = i(e, "metadata.templateKey"), r = i(e, "metadata.scope");
|
40
40
|
y(a, r);
|
41
|
-
}, d = !B || A || c, M = c ? /* @__PURE__ */ l(
|
41
|
+
}, d = !B || A || c, M = c ? /* @__PURE__ */ l(k, {
|
42
42
|
"aria-label": t.formatMessage(n.loadingButtonAriaLabel),
|
43
43
|
className: _.loadingIndicator
|
44
|
-
}) : /* @__PURE__ */ l(
|
44
|
+
}) : /* @__PURE__ */ l(v, {
|
45
45
|
"aria-label": t.formatMessage(n.autofillButtonAriaLabel),
|
46
46
|
disabled: d,
|
47
47
|
icon: p,
|
48
|
-
onClick:
|
48
|
+
onClick: u,
|
49
49
|
variant: "icon-logo",
|
50
50
|
"data-target-id": "IconButton-autofillButtonAriaLabel"
|
51
51
|
});
|
@@ -54,7 +54,7 @@ import '../../../../../../styles/metadata-instance-form-autofill-button.css';con
|
|
54
54
|
children: I === "secondary-button" ? /* @__PURE__ */ l(K, {
|
55
55
|
disabled: d,
|
56
56
|
icon: p,
|
57
|
-
onClick:
|
57
|
+
onClick: u,
|
58
58
|
variant: "secondary",
|
59
59
|
"data-target-id": "Button-autofillButton",
|
60
60
|
children: t.formatMessage(n.autofillButton)
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { TextButton as
|
2
|
-
import { useFormikContext as
|
1
|
+
import { TextButton as b, Button as r } from "@box/blueprint-web";
|
2
|
+
import { useFormikContext as g } from "formik";
|
3
3
|
import { useIntl as B } from "react-intl";
|
4
4
|
import o from "./messages.js";
|
5
5
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
6
|
-
import '../../../../../../styles/metadata-instance-form-footer.css';const F = "
|
6
|
+
import '../../../../../../styles/metadata-instance-form-footer.css';const F = "_metadataInstanceFormFooter_sqpiw_1", f = "_buttonsContainer_sqpiw_7", p = "_buttons_sqpiw_7", n = {
|
7
7
|
metadataInstanceFormFooter: F,
|
8
8
|
buttonsContainer: f,
|
9
|
-
buttons:
|
9
|
+
buttons: p
|
10
10
|
}, I = ({
|
11
11
|
isDeleteButtonDisabled: d,
|
12
12
|
isLoading: m,
|
@@ -16,27 +16,27 @@ import '../../../../../../styles/metadata-instance-form-footer.css';const F = "_
|
|
16
16
|
const t = B(), {
|
17
17
|
isSubmitting: s,
|
18
18
|
submitForm: u
|
19
|
-
} =
|
19
|
+
} = g(), a = m || s;
|
20
20
|
return /* @__PURE__ */ e("div", {
|
21
|
-
className:
|
21
|
+
className: n.metadataInstanceFormFooter,
|
22
22
|
children: /* @__PURE__ */ i("div", {
|
23
|
-
className:
|
24
|
-
children: [/* @__PURE__ */ e(
|
25
|
-
disabled:
|
23
|
+
className: n.buttonsContainer,
|
24
|
+
children: [/* @__PURE__ */ e(b, {
|
25
|
+
disabled: a || d,
|
26
26
|
onClick: l,
|
27
27
|
"data-target-id": "TextButton-deleteButton",
|
28
28
|
children: t.formatMessage(o.deleteButton)
|
29
29
|
}), /* @__PURE__ */ i("div", {
|
30
|
-
className:
|
30
|
+
className: n.buttons,
|
31
31
|
children: [/* @__PURE__ */ e(r, {
|
32
|
-
disabled:
|
32
|
+
disabled: a,
|
33
33
|
onClick: c,
|
34
34
|
size: "large",
|
35
35
|
variant: "secondary",
|
36
36
|
"data-target-id": "Button-cancelButton",
|
37
37
|
children: t.formatMessage(o.cancelButton)
|
38
38
|
}), /* @__PURE__ */ e(r, {
|
39
|
-
disabled:
|
39
|
+
disabled: a,
|
40
40
|
loading: s,
|
41
41
|
loadingAriaLabel: t.formatMessage(o.loadingAriaLabel),
|
42
42
|
onClick: u,
|
@@ -1,41 +1,41 @@
|
|
1
1
|
import { useIntl as F } from "react-intl";
|
2
2
|
import p from "../../../interactive-header-text/interactive-header-text.js";
|
3
|
-
import { MetadataInstanceFormAutofillButton as
|
4
|
-
import
|
5
|
-
import { MetadataInstanceFormInlineNotice as
|
6
|
-
import { jsxs as
|
7
|
-
import '../../../../../../styles/metadata-instance-form-header.css';const
|
8
|
-
metadataInstanceFormHeader:
|
9
|
-
title:
|
10
|
-
},
|
3
|
+
import { MetadataInstanceFormAutofillButton as H } from "../metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js";
|
4
|
+
import _ from "./messages.js";
|
5
|
+
import { MetadataInstanceFormInlineNotice as h } from "../metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.js";
|
6
|
+
import { jsxs as o, Fragment as u, jsx as t } from "react/jsx-runtime";
|
7
|
+
import '../../../../../../styles/metadata-instance-form-header.css';const x = "_metadataInstanceFormHeader_1hzt2_1", M = "_title_1hzt2_9", n = {
|
8
|
+
metadataInstanceFormHeader: x,
|
9
|
+
title: M
|
10
|
+
}, y = ({
|
11
11
|
areAiSuggestionsAvailable: e,
|
12
|
-
hasSuggestions:
|
12
|
+
hasSuggestions: r,
|
13
13
|
isAiSuggestionsFeatureEnabled: m,
|
14
14
|
isBetaLanguageEnabled: a,
|
15
15
|
isLargeFile: s,
|
16
16
|
isLoading: c,
|
17
17
|
templateName: i,
|
18
|
-
onAutofill:
|
18
|
+
onAutofill: d
|
19
19
|
}) => {
|
20
|
-
const
|
21
|
-
return /* @__PURE__ */
|
22
|
-
children: [/* @__PURE__ */
|
23
|
-
className:
|
20
|
+
const l = F(), I = i ?? l.formatMessage(_.customInstanceTitle), f = r && e;
|
21
|
+
return /* @__PURE__ */ o(u, {
|
22
|
+
children: [/* @__PURE__ */ o("div", {
|
23
|
+
className: n.metadataInstanceFormHeader,
|
24
24
|
children: [/* @__PURE__ */ t(p, {
|
25
|
-
className:
|
25
|
+
className: n.title,
|
26
26
|
title: I
|
27
|
-
}), m ? /* @__PURE__ */ t(
|
27
|
+
}), m ? /* @__PURE__ */ t(H, {
|
28
28
|
areAiSuggestionsAvailable: e,
|
29
29
|
isBetaLanguageEnabled: a,
|
30
30
|
isLoading: c,
|
31
|
-
onAutofill:
|
31
|
+
onAutofill: d
|
32
32
|
}) : null]
|
33
|
-
}), f && /* @__PURE__ */ t(
|
33
|
+
}), f && /* @__PURE__ */ t(h, {
|
34
34
|
isBetaLanguageEnabled: a,
|
35
35
|
isLargeFile: s
|
36
36
|
})]
|
37
37
|
});
|
38
38
|
};
|
39
39
|
export {
|
40
|
-
|
40
|
+
y as MetadataInstanceFormHeader
|
41
41
|
};
|
@@ -2,27 +2,27 @@ import { TextButton as o } from "@box/blueprint-web";
|
|
2
2
|
import { useIntl as c } from "react-intl";
|
3
3
|
import s from "./messages.js";
|
4
4
|
import { jsx as t } from "react/jsx-runtime";
|
5
|
-
import '../../../../../../styles/metadata-instance-footer.css';const
|
6
|
-
metadataInstanceFooter:
|
7
|
-
button:
|
5
|
+
import '../../../../../../styles/metadata-instance-footer.css';const d = "_metadataInstanceFooter_r5r5c_1", i = "_button_r5r5c_5", e = {
|
6
|
+
metadataInstanceFooter: d,
|
7
|
+
button: i
|
8
8
|
}, T = ({
|
9
9
|
isAnyEmptyValueHidden: n,
|
10
10
|
onHideEmptyValues: r,
|
11
11
|
onShowEmptyValues: m
|
12
12
|
}) => {
|
13
|
-
const
|
13
|
+
const a = c();
|
14
14
|
return /* @__PURE__ */ t("div", {
|
15
|
-
className:
|
15
|
+
className: e.metadataInstanceFooter,
|
16
16
|
children: n ? /* @__PURE__ */ t(o, {
|
17
|
-
className:
|
17
|
+
className: e.button,
|
18
18
|
onClick: m,
|
19
19
|
"data-target-id": "TextButton-showEmptyValuesCTA",
|
20
|
-
children:
|
20
|
+
children: a.formatMessage(s.showEmptyValuesCTA)
|
21
21
|
}) : /* @__PURE__ */ t(o, {
|
22
|
-
className:
|
22
|
+
className: e.button,
|
23
23
|
onClick: r,
|
24
24
|
"data-target-id": "TextButton-hideEmptyValuesCTA",
|
25
|
-
children:
|
25
|
+
children: a.formatMessage(s.hideEmptyValuesCTA)
|
26
26
|
})
|
27
27
|
});
|
28
28
|
};
|
@@ -1,39 +1,39 @@
|
|
1
1
|
import { Tooltip as i, IconButton as s } from "@box/blueprint-web";
|
2
|
-
import { Pencil as
|
3
|
-
import { BoxAiLogo as
|
4
|
-
import { useIntl as
|
5
|
-
import
|
2
|
+
import { Pencil as I } from "@box/blueprint-web-assets/icons/Line";
|
3
|
+
import { BoxAiLogo as b } from "@box/blueprint-web-assets/icons/Logo";
|
4
|
+
import { useIntl as p } from "react-intl";
|
5
|
+
import _ from "../../../interactive-header-text/interactive-header-text.js";
|
6
6
|
import o from "./messages.js";
|
7
7
|
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
8
|
-
import '../../../../../../styles/metadata-instance-header.css';const
|
9
|
-
metadataInstanceHeader:
|
10
|
-
iconButtonsContainer:
|
11
|
-
title:
|
8
|
+
import '../../../../../../styles/metadata-instance-header.css';const A = "_metadataInstanceHeader_17bsu_1", M = "_iconButtonsContainer_17bsu_6", C = "_title_17bsu_14", e = {
|
9
|
+
metadataInstanceHeader: A,
|
10
|
+
iconButtonsContainer: M,
|
11
|
+
title: C
|
12
12
|
}, k = ({
|
13
13
|
areAiSuggestionsAvailable: c,
|
14
14
|
canEdit: l,
|
15
15
|
isAiSuggestionsFeatureEnabled: d,
|
16
|
-
isBetaLanguageEnabled:
|
17
|
-
onEdit:
|
16
|
+
isBetaLanguageEnabled: u,
|
17
|
+
onEdit: m,
|
18
18
|
onAutofill: f,
|
19
19
|
templateName: n
|
20
20
|
}) => {
|
21
|
-
const t =
|
21
|
+
const t = p(), B = n || t.formatMessage(o.customInstanceTitle), g = d && n;
|
22
22
|
return /* @__PURE__ */ r("div", {
|
23
23
|
className: e.metadataInstanceHeader,
|
24
|
-
children: [/* @__PURE__ */ a(
|
24
|
+
children: [/* @__PURE__ */ a(_, {
|
25
25
|
className: e.title,
|
26
26
|
title: B
|
27
27
|
}), l && /* @__PURE__ */ r("div", {
|
28
28
|
className: e.iconButtonsContainer,
|
29
|
-
children: [
|
30
|
-
content:
|
29
|
+
children: [g && /* @__PURE__ */ a(i, {
|
30
|
+
content: u ? t.formatMessage(o.autofillButtonTooltip) : t.formatMessage(o.autofillButtonTooltipGA),
|
31
31
|
children: /* @__PURE__ */ a(s, {
|
32
32
|
"aria-label": t.formatMessage(o.autofillButtonAriaLabel, {
|
33
33
|
templateName: n
|
34
34
|
}),
|
35
35
|
disabled: !c,
|
36
|
-
icon:
|
36
|
+
icon: b,
|
37
37
|
onClick: f,
|
38
38
|
variant: "icon-logo",
|
39
39
|
"data-target-id": "IconButton-autofillButtonAriaLabel"
|
@@ -44,8 +44,8 @@ import '../../../../../../styles/metadata-instance-header.css';const b = "_metad
|
|
44
44
|
"aria-label": t.formatMessage(o.editButtonAriaLabel, {
|
45
45
|
templateName: n
|
46
46
|
}),
|
47
|
-
icon:
|
48
|
-
onClick:
|
47
|
+
icon: I,
|
48
|
+
onClick: m,
|
49
49
|
"data-target-id": "IconButton-editButtonAriaLabel"
|
50
50
|
})
|
51
51
|
})]
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._wrapperGradient_z7sut_1{background:linear-gradient(135deg,#fe03dc,#2784fa);border-radius:0 0 var(--radius-2) var(--radius-2)}._wrapperGradient_z7sut_1 ._wrapper_z7sut_1{position:relative;display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding:var(--space-2) var(--space-3);background:var(--box-blue-02);background-clip:padding-box;border:var(--border-1) solid transparent;border-radius:inherit;-webkit-user-select:none;user-select:none}._wrapperGradient_z7sut_1 ._wrapper_z7sut_1 ._buttons_z7sut_18{display:flex;gap:var(--space-1)}._wrapperGradient_z7sut_1 ._wrapper_z7sut_1 ._selectTrigger_z7sut_22{width:var(--size-6);height:var(--size-6)}._wrapperGradient_z7sut_1 ._wrapper_z7sut_1>div>p{overflow-wrap:anywhere}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._autofillOverlay_1xnil_1{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;display:flex;flex-direction:column;align-items:center;padding:var(--space-4) var(--space-4) 0 var(--space-4);background:#fafcfee6}._withError_1xnil_15{background-color:#ffffffe6}._autofillOverlayTitle_1xnil_19{margin-top:var(--space-4);text-align:center}._dismissButton_1xnil_24{margin-top:var(--space-4)}._overlayIcon_1xnil_28{position:relative;display:block;margin-top:var(--space-4)}._testContainerStyle_1xnil_34{position:relative;width:380px;height:600px;padding:var(--space-4);border:1px solid #000}
|
@@ -1 +1 @@
|
|
1
|
-
div.
|
1
|
+
div._customInstanceNewFieldCard_fcftk_1{background-color:var(--box-blue-02);border-color:var(--box-blue-50)}._customInstanceNewFieldFooter_fcftk_6{display:flex;gap:var(--space-3);justify-content:flex-end;margin-top:var(--space-6)}._inputWrapper_fcftk_13{margin-bottom:var(--space-3)}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._content_3uvu2_1{font-weight:400;font-size:.875rem;font-family:Lato,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.25rem;letter-spacing:.01875rem;text-transform:none;text-decoration:none;z-index:2147483647;box-sizing:border-box;width:17.75rem;padding:0;color:var(--text-text-on-light);background-color:var(--surface-menu-surface);border:var(--border-1) solid var(--border-card-border);border-radius:var(--radius-3);box-shadow:var(--dropshadow-3)}._scrollableContainer_3uvu2_20{max-height:22.5rem;padding:var(--space-3)}._item_3uvu2_25{position:relative;align-items:center;padding:var(--border-8);border:var(--border-2) solid transparent;border-radius:var(--radius-3);outline:none;-webkit-user-select:none;user-select:none}._option_3uvu2_35{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}._option_3uvu2_35[aria-disabled]{color:var(--gray-65);pointer-events:none}._option_3uvu2_35[data-active-item]:not(:hover),._option_3uvu2_35[data-highlighted]:not(:hover){background-color:var(--surface-menu-surface-hover);border:var(--border-2) solid var(--border-input-border-focus)}._option_3uvu2_35[data-state=open],._option_3uvu2_35:hover{background-color:var(--surface-menu-surface-hover)}._search_3uvu2_56{position:relative;height:fit-content;padding:var(--space-3)}._search_3uvu2_56 ._searchIcon_3uvu2_61{position:absolute;top:var(--space-8);left:var(--space-6);width:var(--size-4);height:var(--size-4);transform:translateY(-50%);pointer-events:none}._search_3uvu2_56 ._searchIcon_3uvu2_61._global_3uvu2_70{left:var(--space-4);width:var(--size-5);height:var(--size-5)}._search_3uvu2_56 ._clearSearchIcon_3uvu2_75{position:absolute;top:var(--space-8);right:var(--space-6);width:var(--size-4);height:var(--size-4);transform:translateY(-50%)}._search_3uvu2_56 ._searchInput_3uvu2_83{font-weight:400;font-size:.875rem;font-family:Lato,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.25rem;letter-spacing:.01875rem;text-transform:none;text-decoration:none;box-sizing:border-box;width:100%;height:var(--size-10);padding-inline:var(--space-9) var(--space-6);padding-block:0;color:var(--text-text-on-light);background-color:var(--surface-search-surface);border:var(--border-1) solid transparent;border-radius:var(--radius-2);outline:0;box-shadow:unset;transition:border-color .15s ease,background-color .15s ease}._search_3uvu2_56 ._searchInput_3uvu2_83._global_3uvu2_70{height:var(--size-12);border-radius:var(--radius-7);padding-inline:var(--space-12) var(--space-6)}._search_3uvu2_56 ._searchInput_3uvu2_83::-webkit-search-decoration,._search_3uvu2_56 ._searchInput_3uvu2_83::-webkit-search-cancel-button,._search_3uvu2_56 ._searchInput_3uvu2_83::-webkit-search-results-button,._search_3uvu2_56 ._searchInput_3uvu2_83::-webkit-search-results-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}._search_3uvu2_56 ._searchInput_3uvu2_83:hover{box-shadow:unset}._search_3uvu2_56 ._searchInput_3uvu2_83 ._firefoxDefaultOpacityFix_3uvu2_115,._search_3uvu2_56 ._searchInput_3uvu2_83 ._searchInput_3uvu2_83::placeholder{opacity:1}._search_3uvu2_56 ._searchInput_3uvu2_83::placeholder{color:var(--text-text-on-light-secondary)}._search_3uvu2_56 ._searchInput_3uvu2_83:not(:placeholder-shown){padding-inline-end:var(--space-8)}._search_3uvu2_56 ._searchInput_3uvu2_83:focus-visible{padding-inline-start:calc(var(--space-9) - var(--border-1));background-color:var(--surface-search-surface-focused);border:var(--border-2) solid #2486fc}._search_3uvu2_56 ._searchInput_3uvu2_83:not(:focus-visible):not(:disabled):hover{background-color:var(--surface-search-surface-hover);border-color:#6f6f6f}._search_3uvu2_56 ._divider_3uvu2_133{box-shadow:var(--dropshadow-3)}._searchDivider_3uvu2_137{box-shadow:var(--dropshadow-1)}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._details_18edb_1{padding-inline:var(--size-1)}._triggerContainer_18edb_5{display:flex;flex-direction:column}._triggerButton_18edb_10{max-width:max-content;min-height:var(--size-6)!important;padding:0 var(--space-1)!important}._popover_18edb_16{font-weight:400;font-size:.875rem;font-family:Lato,-apple-system,BlinkMacSystemFont,San Francisco,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.25rem;letter-spacing:.01875rem;text-transform:none;text-decoration:none;z-index:var(--z-index-popover);box-sizing:border-box;max-width:17.75rem;padding:0;background-color:var(--surface-menu-surface);border:var(--border-1) solid var(--border-card-border);border-radius:var(--radius-3);box-shadow:var(--dropshadow-3)}._popover_18edb_16 ._divider_18edb_33{margin-block:var(--space-2)}._popover_18edb_16 ._scrollableContainer_18edb_36{max-height:22.5rem;padding:var(--space-3)}._popover_18edb_16 ._item_18edb_40{position:relative;align-items:center;padding:var(--border-8) var(--space-2) var(--border-8) var(--space-10);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:var(--border-2) solid transparent;border-radius:var(--radius-3);outline:none;cursor:pointer;-webkit-user-select:none;user-select:none}._popover_18edb_16 ._item_18edb_40[aria-disabled]{color:var(--gray-65);pointer-events:none}._popover_18edb_16 ._item_18edb_40[data-active-item]:not(:hover),._popover_18edb_16 ._item_18edb_40[data-highlighted]:not(:hover){background-color:var(--surface-menu-surface-hover);border:var(--border-2) solid var(--border-input-border-focus)}._popover_18edb_16 ._item_18edb_40[data-state=open],._popover_18edb_16 ._item_18edb_40:hover{background-color:var(--surface-menu-surface-hover)}._popover_18edb_16 ._indicator_18edb_67{position:absolute;top:0;left:var(--space-2);display:flex;align-items:center;justify-content:center;height:var(--size-9)}._popover_18edb_16 ._indicatorIcon_18edb_76 path{fill:var(--icon-icon-on-light)}._testContainer_18edb_80{display:flex;align-items:center;width:340px;height:56px;border:2px #9f3fed dashed}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._header_qqeyd_1{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._interactiveText_1i8lr_1{width:fit-content;text-decoration:dashed underline var(--gray-50) .5px!important;text-underline-offset:2px}._interactiveText_1i8lr_1:hover{color:var(--gray-100);text-decoration-color:var(--gray-100)!important}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._metadataInstanceFooter_r5r5c_1{display:flex;justify-content:flex-end}._metadataInstanceFooter_r5r5c_1 ._button_r5r5c_5{width:100%;margin-top:var(--space-4);color:var(--text-text-on-light-secondary);font-weight:400;font-size:var(--body-default-font-size)}._metadataInstanceFooter_r5r5c_1 ._button_r5r5c_5:hover{color:var(--text-text-on-light-secondary-hover)}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._loadingIndicator_baqvi_1{position:relative;display:flex;align-items:center;justify-content:center;width:var(--size-8);height:var(--size-8);margin:unset}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._metadataInstanceForm_1e6l2_1{display:flex;flex-direction:column;gap:var(--space-3)}._wrapperGradient_1e6l2_7{background:linear-gradient(135deg,#fe03dc,#2784fa);border-radius:var(--radius-4)}._suggestionsFetching_1e6l2_12{background:var(--box-blue-02);background-clip:padding-box;border:var(--border-1) solid transparent}._metadataInstanceFormContent_1e6l2_18{position:relative;display:flex;flex-direction:column;gap:var(--space-3)}._showOverlay_1e6l2_25{min-height:172px}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._metadataInstanceFormFooter_sqpiw_1{width:calc(100% + 2 * var(--space-4));margin:0 calc(-1 * var(--space-4));padding-top:var(--space-4);border-top:solid var(--gray-10) var(--border-1)}._metadataInstanceFormFooter_sqpiw_1 ._buttonsContainer_sqpiw_7{display:flex;justify-content:space-between;padding:0 var(--space-4)}._metadataInstanceFormFooter_sqpiw_1 ._buttons_sqpiw_7{display:flex;gap:var(--space-2)}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._metadataInstanceFormHeader_1hzt2_1{display:flex;gap:var(--space-2);align-items:center;justify-content:space-between;padding-block-end:var(--space-4);border-block-end:solid var(--gray-10) var(--border-1)}._metadataInstanceFormHeader_1hzt2_1 ._title_1hzt2_9{width:100%}
|
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._metadataInstanceHeader_17bsu_1{display:flex;justify-content:space-between;height:var(--size-10)}._metadataInstanceHeader_17bsu_1 ._iconButtonsContainer_17bsu_6{display:flex;gap:var(--space-1);align-self:center;justify-content:flex-end;padding-left:var(--space-2);margin-block:0 var(--space-2)}._metadataInstanceHeader_17bsu_1 ._title_17bsu_14{margin-block:var(--space-1) var(--space-3)}
|
package/dist/styles/utils.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.
|
1
|
+
._noAttributesText_1wv72_2{text-align:center}._fieldWrapper_1wv72_6{position:relative;isolation:isolate}._fieldWrapper_1wv72_6 ._hasSuggestion_1wv72_11>input,._fieldWrapper_1wv72_6 ._hasSuggestion_1wv72_11>button,._fieldWrapper_1wv72_6 ._hasSuggestion_1wv72_11>div[role=group]>div,._fieldWrapper_1wv72_6 ._hasSuggestion_1wv72_11>div>div{border-bottom:none!important;border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}._fieldWrapper_1wv72_6 ._hasSuggestion_1wv72_11>input:not(:disabled):not(:focus-visible):not(._error_1wv72_19):hover,._fieldWrapper_1wv72_6 ._hasSuggestion_1wv72_11>button:not(:disabled):not(:focus-visible):not(._error_1wv72_19):hover,._fieldWrapper_1wv72_6 ._hasSuggestion_1wv72_11>div[role=group]>div:not(:disabled):not(:focus-visible):not(._error_1wv72_19):hover,._fieldWrapper_1wv72_6 ._hasSuggestion_1wv72_11>div>div:not(:disabled):not(:focus-visible):not(._error_1wv72_19):hover{border-bottom:none}._fieldWrapper_1wv72_6 ._hasSuggestion_1wv72_11 div[role=group]>div{margin-right:var(--border-1);margin-left:var(--border-1)}._fieldWrapper_1wv72_6 ._dateField_1wv72_31>div[role=group]>div{padding-inline:.75rem}._fieldWrapper_1wv72_6 ._suggestionApplied_1wv72_35>._comboboxContainer_1wv72_35,._fieldWrapper_1wv72_6 ._suggestionApplied_1wv72_35>input,._fieldWrapper_1wv72_6 ._suggestionApplied_1wv72_35>button,._fieldWrapper_1wv72_6 ._suggestionApplied_1wv72_35>div[role=group]>div,._fieldWrapper_1wv72_6 ._suggestionApplied_1wv72_35>div>div{box-sizing:border-box!important;background-image:linear-gradient(#fff,#fff),linear-gradient(135deg,#fe03dc,#2784fa)!important;background-clip:padding-box,border-box!important;background-origin:border-box!important;border:double var(--border-1) transparent!important;border-radius:var(--radius-2);outline:none}._labelWrapper_1wv72_49{display:flex;align-items:baseline;justify-content:space-between;width:100%}._labelWrapper_1wv72_49 ._labelText_1wv72_55{flex:unset!important}._labelWrapper_1wv72_49 ._labelIcon_1wv72_58{width:var(--space-4);height:var(--space-4);margin-inline-end:var(--space-3);margin-inline-start:var(--space-3)}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@box/metadata-editor",
|
3
|
-
"version": "0.99.
|
3
|
+
"version": "0.99.2",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@ariakit/react": "0.4.15",
|
6
6
|
"@box/blueprint-web": "^7.30.3",
|
@@ -15,9 +15,9 @@
|
|
15
15
|
"devDependencies": {
|
16
16
|
"@ariakit/react": "0.4.15",
|
17
17
|
"@box/babel-plugin-target-attributes": "1.3.0",
|
18
|
-
"@box/blueprint-web": "^11.0.
|
19
|
-
"@box/blueprint-web-assets": "^4.
|
20
|
-
"@box/storybook-utils": "^0.9.
|
18
|
+
"@box/blueprint-web": "^11.0.2",
|
19
|
+
"@box/blueprint-web-assets": "^4.40.0",
|
20
|
+
"@box/storybook-utils": "^0.9.2",
|
21
21
|
"@testing-library/react": "^15.0.6",
|
22
22
|
"react": "^18.3.0",
|
23
23
|
"react-dom": "^18.3.0",
|