@box/metadata-filter 1.48.3 → 1.49.1

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
- import { Text as J, DateI18nProvider as K, DatePicker as k } from "@box/blueprint-web";
1
+ import { Text as J, DateI18nProvider as K, DatePicker as N } from "@box/blueprint-web";
2
2
  import { useFormikContext as Q, Field as P } from "formik";
3
3
  import { useState as W, useRef as y, useMemo as E } from "react";
4
4
  import { useIntl as Y } from "react-intl";
@@ -8,108 +8,110 @@ import { DEFAULT_MAX_DATE as I } from "./constants.js";
8
8
  import { convertToFormikValueRanged as $ } from "./date-conversion-utils.js";
9
9
  import { MetadataDateFieldRelative as Z } from "./metadata-date-field-relative.js";
10
10
  import { s as i } from "../../../../../../chunks/metadata-date-field.module.js";
11
- import { E as g } from "../../../../../../chunks/types2.js";
11
+ import { E as p } from "../../../../../../chunks/types2.js";
12
12
  import { useDateValidation as ee } from "./use-date-validation.js";
13
13
  import { getDynamicMaxMinValue as B } from "./utils.js";
14
- import { jsx as t, jsxs as w } from "react/jsx-runtime";
14
+ import { jsx as t, jsxs as _ } from "react/jsx-runtime";
15
15
  const Fe = ({
16
- canUseRelativeDates: f,
16
+ canUseRelativeDates: M,
17
17
  ...s
18
- }) => f ? /* @__PURE__ */ t(Z, {
18
+ }) => M ? /* @__PURE__ */ t(Z, {
19
19
  ...s
20
20
  }) : /* @__PURE__ */ t(ae, {
21
21
  ...s
22
22
  }), ae = ({
23
- customFieldLabels: f = [],
23
+ customFieldLabels: M = [],
24
24
  direction: s = "horizontal",
25
- disableForm: p,
26
- fieldNamePrefix: v,
27
- label: D,
28
- locale: O,
29
- portalElement: L,
30
- hasAccordion: S
25
+ disableForm: D,
26
+ fieldNamePrefix: d,
27
+ label: v,
28
+ locale: T,
29
+ portalElement: O,
30
+ hasAccordion: w
31
31
  }) => {
32
- const [R, M] = W(a.FROM), m = `${v}.value.range.gt`, d = `${v}.value.range.lt`, {
33
- values: j,
34
- setFieldTouched: G,
35
- setFieldValue: T
32
+ const [L, h] = W(a.FROM), m = `${d}.value.range.gt`, c = `${d}.value.range.lt`, {
33
+ values: S,
34
+ setFieldTouched: j,
35
+ setFieldValue: R
36
36
  } = Q(), {
37
37
  validateDates: V,
38
- fromDatePickerValue: c,
39
- toDatePickerValue: u,
38
+ fromDatePickerValue: u,
39
+ toDatePickerValue: f,
40
40
  fromErrorType: b,
41
- toErrorType: x
42
- } = ee(j, m, d, O, !0), o = Y(), h = y(c), F = y(u), A = {
41
+ toErrorType: A
42
+ } = ee(S, m, c, T, !0), o = Y(), F = y(u), g = y(f), C = {
43
43
  clearDatePickerAriaLabel: o.formatMessage(n.clearSelectedDate),
44
44
  nextMonthAriaLabel: o.formatMessage(n.switchToNextMonth),
45
45
  openCalendarDropdownAriaLabel: o.formatMessage(n.openCalendar),
46
46
  previousMonthAriaLabel: o.formatMessage(n.switchToNextMonth)
47
- }, [X, _] = f, z = (e) => {
47
+ }, [G, X] = M, z = (e) => {
48
48
  const r = $(e, a.FROM);
49
- h.current = e, T(m, r), M(a.FROM);
49
+ F.current = e, R(m, r), h(a.FROM);
50
50
  }, H = (e) => {
51
51
  const r = $(e, a.TO);
52
- F.current = e, T(d, r), M(a.TO);
53
- }, C = (e) => {
54
- const r = e === a.FROM ? m : d;
55
- G(r, !0), M(e);
56
- }, U = E(() => B(u, I), [u]), q = E(() => B(c), [c]), N = (e, r, l) => !!(r === g.MAX && e === g.OVERLAPPING || e === g.OVERLAPPING && l);
57
- return /* @__PURE__ */ w("div", {
52
+ g.current = e, R(c, r), h(a.TO);
53
+ }, k = (e) => {
54
+ const r = e === a.FROM ? m : c;
55
+ j(r, !0), h(e);
56
+ }, U = E(() => B(f, I), [f]), q = E(() => B(u), [u]), x = (e, r, l) => !!(r === p.MAX && e === p.OVERLAPPING || e === p.OVERLAPPING && l);
57
+ return /* @__PURE__ */ _("div", {
58
58
  className: i.container,
59
- "data-testid": `${D}-field`,
60
- children: [!S && /* @__PURE__ */ t(J, {
59
+ "data-testid": `${v}-field`,
60
+ children: [!w && /* @__PURE__ */ t(J, {
61
61
  as: "span",
62
62
  className: i.rangeFieldLabel,
63
63
  color: "textOnLightSecondary",
64
64
  variant: "bodyDefaultBold",
65
- children: D
65
+ children: v
66
66
  }), /* @__PURE__ */ t(K, {
67
- locale: O,
68
- children: /* @__PURE__ */ w("div", {
67
+ locale: T,
68
+ children: /* @__PURE__ */ _("div", {
69
69
  className: `${i.rangeInputsContainer} ${s === "vertical" ? i.verticalLayout : ""}`,
70
70
  children: [/* @__PURE__ */ t(P, {
71
71
  name: m,
72
- validate: (e) => V(h.current, F.current, a.FROM),
72
+ validate: (e) => V(F.current, g.current, a.FROM),
73
73
  children: ({
74
74
  field: e,
75
75
  meta: r
76
76
  }) => /* @__PURE__ */ t("div", {
77
77
  className: i.inputContainer,
78
- children: /* @__PURE__ */ t(k, {
78
+ children: /* @__PURE__ */ t(N, {
79
79
  ...e,
80
- ...A,
80
+ ...C,
81
81
  calendarAriaLabel: o.formatMessage(n.selectFromDate),
82
- error: N(b, x, R !== a.FROM) ? void 0 : r.error,
83
- isDisabled: p,
84
- label: X || o.formatMessage(n.fieldFromLabel),
82
+ dataTargetId: `DatePicker-${d}_from`,
83
+ error: x(b, A, L !== a.FROM) ? void 0 : r.error,
84
+ isDisabled: D,
85
+ label: G || o.formatMessage(n.fieldFromLabel),
85
86
  maxValue: U,
86
- onBlur: () => C(a.FROM),
87
+ onBlur: () => k(a.FROM),
87
88
  onChange: (l) => z(l),
88
- portalElement: L,
89
- value: c
89
+ portalElement: O,
90
+ value: u
90
91
  })
91
92
  })
92
93
  }), /* @__PURE__ */ t(P, {
93
- name: d,
94
- validate: (e) => V(h.current, F.current, a.TO),
94
+ name: c,
95
+ validate: (e) => V(F.current, g.current, a.TO),
95
96
  children: ({
96
97
  field: e,
97
98
  meta: r
98
99
  }) => /* @__PURE__ */ t("div", {
99
100
  className: i.inputContainer,
100
- children: /* @__PURE__ */ t(k, {
101
+ children: /* @__PURE__ */ t(N, {
101
102
  ...e,
102
- ...A,
103
+ ...C,
103
104
  calendarAriaLabel: o.formatMessage(n.selectToDate),
104
- error: N(x, b, R !== a.TO) ? void 0 : r.error,
105
- isDisabled: p,
106
- label: _ || o.formatMessage(n.fieldToLabel),
105
+ dataTargetId: `DatePicker-${d}_to`,
106
+ error: x(A, b, L !== a.TO) ? void 0 : r.error,
107
+ isDisabled: D,
108
+ label: X || o.formatMessage(n.fieldToLabel),
107
109
  maxValue: I,
108
110
  minValue: q,
109
- onBlur: () => C(a.TO),
111
+ onBlur: () => k(a.TO),
110
112
  onChange: (l) => H(l),
111
- portalElement: L,
112
- value: u
113
+ portalElement: O,
114
+ value: f
113
115
  })
114
116
  })
115
117
  })]
@@ -1,11 +1,11 @@
1
- import { Select as l, SELECT_EMPTY_VALUE as n } from "@box/blueprint-web";
2
- import { useFormikContext as x, getIn as E, Field as F } from "formik";
3
- import { useIntl as M, FormattedMessage as V } from "react-intl";
4
- import m from "../../../../messages.js";
1
+ import { Select as l, SELECT_EMPTY_VALUE as o } from "@box/blueprint-web";
2
+ import { useFormikContext as E, getIn as F, Field as M } from "formik";
3
+ import { useIntl as V, FormattedMessage as x } from "react-intl";
4
+ import i from "../../../../messages.js";
5
5
  import { jsx as t, jsxs as C } from "react/jsx-runtime";
6
- const P = ({
7
- disableForm: u,
8
- fieldNamePrefix: o,
6
+ const O = ({
7
+ disableForm: m,
8
+ fieldNamePrefix: s,
9
9
  label: d,
10
10
  portalElement: h,
11
11
  hasAccordion: p,
@@ -13,35 +13,36 @@ const P = ({
13
13
  }) => {
14
14
  const {
15
15
  setFieldValue: c,
16
- values: f
17
- } = x(), g = M(), s = `${o}.value.enum[0]`, r = E(f, `${o}.options`, []).map(({
16
+ values: g
17
+ } = E(), f = V(), r = `${s}.value.enum[0]`, n = F(g, `${s}.options`, []).map(({
18
18
  key: a
19
- }) => a), i = v || g.formatMessage(m.selectValuePlaceholder);
19
+ }) => a), u = v || f.formatMessage(i.selectValuePlaceholder);
20
20
  return /* @__PURE__ */ t("div", {
21
21
  "data-testid": `${d}-field`,
22
- children: /* @__PURE__ */ t(F, {
23
- name: s,
22
+ children: /* @__PURE__ */ t(M, {
23
+ name: r,
24
24
  children: ({
25
25
  field: a
26
26
  }) => /* @__PURE__ */ t(l, {
27
- disabled: u,
27
+ "data-target-id": `Select-${s}`,
28
+ disabled: m,
28
29
  hideLabel: p,
29
30
  label: d,
30
31
  onValueChange: (e) => {
31
- e === n ? c(s, "") : c(s, e);
32
+ e === o ? c(r, "") : c(r, e);
32
33
  },
33
- placeholder: i,
34
+ placeholder: u,
34
35
  ...a,
35
- value: a.value === n ? "" : a.value,
36
+ value: a.value === o ? "" : a.value,
36
37
  children: /* @__PURE__ */ C(l.Content, {
37
38
  container: h,
38
39
  children: [/* @__PURE__ */ t(l.Option, {
39
- text: i,
40
- value: n,
41
- children: /* @__PURE__ */ t(V, {
42
- ...m.selectValuePlaceholder
40
+ text: u,
41
+ value: o,
42
+ children: /* @__PURE__ */ t(x, {
43
+ ...i.selectValuePlaceholder
43
44
  })
44
- }), r == null ? void 0 : r.map((e) => /* @__PURE__ */ t(l.Option, {
45
+ }), n == null ? void 0 : n.map((e) => /* @__PURE__ */ t(l.Option, {
45
46
  text: e,
46
47
  value: e,
47
48
  children: e
@@ -52,6 +53,6 @@ const P = ({
52
53
  });
53
54
  };
54
55
  export {
55
- P as MetadataEnumField,
56
- P as default
56
+ O as MetadataEnumField,
57
+ O as default
57
58
  };
@@ -1,58 +1,59 @@
1
- import { Text as P, TextInput as y } from "@box/blueprint-web";
2
- import { useFormikContext as S, getIn as M, Field as E } from "formik";
3
- import { useState as k, useRef as V } from "react";
1
+ import { Text as S, TextInput as y } from "@box/blueprint-web";
2
+ import { useFormikContext as _, getIn as M, Field as E } from "formik";
3
+ import { useState as k, useRef as I } from "react";
4
4
  import { useIntl as A } from "react-intl";
5
- import x from "../../../../messages.js";
5
+ import V from "../../../../messages.js";
6
6
  import { R as r } from "../../../../../../chunks/types.js";
7
- import { fieldDefaultProps as L } from "../constants.js";
8
- import { s as i } from "../../../../../../chunks/metadata-float-field.module.js";
7
+ import { fieldDefaultProps as $ } from "../constants.js";
8
+ import { s as d } from "../../../../../../chunks/metadata-float-field.module.js";
9
9
  import { u as G, E as H } from "../../../../../../chunks/use-float-validation.js";
10
- import { jsxs as N, jsx as t } from "react/jsx-runtime";
11
- const Z = ({
10
+ import { jsxs as x, jsx as t } from "react/jsx-runtime";
11
+ const Y = ({
12
12
  label: n,
13
- fieldNamePrefix: m,
14
- disableForm: f,
15
- hasAccordion: I
13
+ fieldNamePrefix: s,
14
+ disableForm: p,
15
+ hasAccordion: L
16
16
  }) => {
17
- const p = A(), [h, d] = k(r.FROM), {
17
+ const f = A(), [h, c] = k(r.FROM), {
18
18
  values: g,
19
19
  setFieldValue: F,
20
- setFieldTouched: $
21
- } = S(), l = `${m}.value.range.gt`, s = `${m}.value.range.lt`, b = M(g, l), B = M(g, s), c = V(b), u = V(B), {
20
+ setFieldTouched: b
21
+ } = _(), l = `${s}.value.range.gt`, i = `${s}.value.range.lt`, B = M(g, l), N = M(g, i), u = I(B), m = I(N), {
22
22
  validateFloats: T,
23
23
  fromErrorType: O,
24
24
  toErrorType: v
25
25
  } = G(), j = (e) => {
26
- c.current = e, F(l, e), d(r.FROM);
26
+ u.current = e, F(l, e), c(r.FROM);
27
27
  }, D = (e) => {
28
- u.current = e, F(s, e), d(r.TO);
28
+ m.current = e, F(i, e), c(r.TO);
29
29
  }, R = (e, o) => {
30
- $(e, !0), d(o);
30
+ b(e, !0), c(o);
31
31
  }, C = (e, o, a) => !!(e === H.OVERLAPPING && a);
32
- return /* @__PURE__ */ N("div", {
33
- className: i.container,
32
+ return /* @__PURE__ */ x("div", {
33
+ className: d.container,
34
34
  "data-testid": `${n}-field`,
35
- children: [!I && /* @__PURE__ */ t(P, {
35
+ children: [!L && /* @__PURE__ */ t(S, {
36
36
  as: "span",
37
37
  color: "textOnLightSecondary",
38
38
  variant: "bodyDefaultBold",
39
39
  children: n
40
- }), /* @__PURE__ */ N("div", {
41
- className: i.rangeInputsContainer,
40
+ }), /* @__PURE__ */ x("div", {
41
+ className: d.rangeInputsContainer,
42
42
  children: [/* @__PURE__ */ t(E, {
43
43
  name: `${l}`,
44
- validate: () => T(c.current, u.current, r.FROM),
44
+ validate: () => T(u.current, m.current, r.FROM),
45
45
  children: ({
46
46
  field: e,
47
47
  meta: o
48
48
  }) => /* @__PURE__ */ t("div", {
49
- className: i.inputContainer,
49
+ className: d.inputContainer,
50
50
  children: /* @__PURE__ */ t(y, {
51
- ...L,
51
+ ...$,
52
52
  ...e,
53
- disabled: f,
53
+ "data-target-id": `TextInput-${s}_from`,
54
+ disabled: p,
54
55
  error: C(O, v, h !== r.FROM) ? void 0 : o.error,
55
- label: p.formatMessage(x.fieldFromLabel, {
56
+ label: f.formatMessage(V.fieldFromLabel, {
56
57
  label: n
57
58
  }),
58
59
  onBlur: () => R(l, r.FROM),
@@ -61,22 +62,23 @@ const Z = ({
61
62
  })
62
63
  })
63
64
  }), /* @__PURE__ */ t(E, {
64
- name: `${s}`,
65
- validate: () => T(c.current, u.current, r.TO),
65
+ name: `${i}`,
66
+ validate: () => T(u.current, m.current, r.TO),
66
67
  children: ({
67
68
  field: e,
68
69
  meta: o
69
70
  }) => /* @__PURE__ */ t("div", {
70
- className: i.inputContainer,
71
+ className: d.inputContainer,
71
72
  children: /* @__PURE__ */ t(y, {
72
- ...L,
73
+ ...$,
73
74
  ...e,
74
- disabled: f,
75
+ "data-target-id": `TextInput-${s}_to`,
76
+ disabled: p,
75
77
  error: C(v, O, h !== r.TO) ? void 0 : o.error,
76
- label: p.formatMessage(x.fieldToLabel, {
78
+ label: f.formatMessage(V.fieldToLabel, {
77
79
  label: n
78
80
  }),
79
- onBlur: () => R(s, r.TO),
81
+ onBlur: () => R(i, r.TO),
80
82
  onChange: (a) => D(a.currentTarget.value),
81
83
  placeholder: "0"
82
84
  })
@@ -86,6 +88,6 @@ const Z = ({
86
88
  });
87
89
  };
88
90
  export {
89
- Z as MetadataFloatField,
90
- Z as default
91
+ Y as MetadataFloatField,
92
+ Y as default
91
93
  };
@@ -1,48 +1,49 @@
1
- import { TooltipProvider as h, Combobox as v } from "@box/blueprint-web";
2
- import { useFormikContext as F, getIn as g, Field as C } from "formik";
1
+ import { TooltipProvider as f, Combobox as v } from "@box/blueprint-web";
2
+ import { useFormikContext as g, getIn as C, Field as F } from "formik";
3
3
  import { useIntl as b } from "react-intl";
4
- import x from "../../../../messages.js";
5
- import { fieldDefaultProps as L } from "../constants.js";
4
+ import $ from "../../../../messages.js";
5
+ import { fieldDefaultProps as x } from "../constants.js";
6
6
  import { jsx as o } from "react/jsx-runtime";
7
- const j = ({
8
- disableForm: i,
9
- fieldNamePrefix: l,
10
- label: r,
11
- portalElement: n,
12
- hasAccordion: s
7
+ const k = ({
8
+ disableForm: n,
9
+ fieldNamePrefix: a,
10
+ label: l,
11
+ portalElement: s,
12
+ hasAccordion: i
13
13
  }) => {
14
14
  const {
15
15
  setFieldValue: m,
16
16
  values: u
17
- } = F(), d = b(), a = `${l}.value.enum`, c = g(u, `${l}.options`, []).map(({
17
+ } = g(), d = b(), r = `${a}.value.enum`, c = C(u, `${a}.options`, []).map(({
18
18
  key: e
19
19
  }) => e), p = (e, t) => t.toLowerCase().includes(e.toLowerCase());
20
20
  return /* @__PURE__ */ o("div", {
21
- "data-testid": `${r}-field`,
22
- children: /* @__PURE__ */ o(C, {
23
- name: a,
21
+ "data-testid": `${l}-field`,
22
+ children: /* @__PURE__ */ o(F, {
23
+ name: r,
24
24
  children: ({
25
25
  field: e
26
26
  }) => {
27
27
  var t;
28
- return /* @__PURE__ */ o(h, {
28
+ return /* @__PURE__ */ o(f, {
29
29
  children: /* @__PURE__ */ o(v, {
30
- ...L,
30
+ ...x,
31
31
  as: "input",
32
- disabled: i,
32
+ "data-target-id": `Combobox-${a}`,
33
+ disabled: n,
33
34
  filterFn: p,
34
- hideLabel: s,
35
- label: r,
35
+ hideLabel: i,
36
+ label: l,
36
37
  multiselect: !0,
37
38
  name: e.name,
38
- onValueChange: (f) => m(a, f),
39
+ onValueChange: (h) => m(r, h),
39
40
  options: c,
40
41
  placeholder: (
41
42
  // Empty array must be substituded if there is no value found
42
43
  // Otherwise an no placeholder appears despite no selection
43
- ((t = e.value || []) == null ? void 0 : t.length) === 0 ? d.formatMessage(x.multiselectPlaceholder) : ""
44
+ ((t = e.value || []) == null ? void 0 : t.length) === 0 ? d.formatMessage($.multiselectPlaceholder) : ""
44
45
  ),
45
- portalElement: n,
46
+ portalElement: s,
46
47
  value: e.value
47
48
  })
48
49
  });
@@ -51,6 +52,6 @@ const j = ({
51
52
  });
52
53
  };
53
54
  export {
54
- j as MetadataMultiSelectField,
55
- j as default
55
+ k as MetadataMultiSelectField,
56
+ k as default
56
57
  };
@@ -1,75 +1,76 @@
1
- import { TextInput as $ } from "@box/blueprint-web";
1
+ import { TextInput as j } from "@box/blueprint-web";
2
2
  import { Field as k } from "formik";
3
- import { useState as y, useCallback as n } from "react";
3
+ import { useState as y, useCallback as x } from "react";
4
4
  import { useIntl as D } from "react-intl";
5
- import x from "../../../../messages.js";
5
+ import i from "../../../../messages.js";
6
6
  import { fieldDefaultProps as H } from "../constants.js";
7
- import { getInitialAdvancedFilterValue as N, createFieldValue as w, getInputValue as P, shouldHideTextInput as q } from "./utils.js";
8
- import { jsx as p, jsxs as z, Fragment as B } from "react/jsx-runtime";
9
- import { A as G } from "../../../../../../chunks/index.js";
10
- const J = ({
11
- label: s,
12
- fieldNamePrefix: f,
7
+ import { getInitialAdvancedFilterValue as q, createFieldValue as w, getInputValue as z, shouldHideTextInput as B } from "./utils.js";
8
+ import { jsx as p, jsxs as G, Fragment as J } from "react/jsx-runtime";
9
+ import { A as K } from "../../../../../../chunks/index.js";
10
+ const N = ({
11
+ label: m,
12
+ fieldNamePrefix: V,
13
13
  disableForm: g,
14
14
  isAdvancedFilterEnabled: t,
15
15
  onAdvancedFilterOptionChange: o,
16
- fieldAdvancedFilterOptions: h,
17
- filterOptionsMap: I,
16
+ fieldAdvancedFilterOptions: I,
17
+ filterOptionsMap: h,
18
18
  hasAccordion: c,
19
19
  isModified: S,
20
- placeholder: L
20
+ placeholder: T
21
21
  }) => {
22
- const i = D(), r = `${f}.value.enum[0]`, [l, M] = y(N(h, I)), T = n((e, m, u) => {
23
- M(e), o == null || o(r, e);
24
- const a = w(m, e, t);
25
- u.setFieldValue(r, a);
26
- }, [r, t, o]), j = n((e, m) => {
27
- const u = e.target.value, a = w(u, l, t);
28
- m.setFieldValue(r, a);
29
- }, [l, t, r]);
22
+ const n = D(), a = `${V}.value.enum[0]`, [l, L] = y(q(I, h)), M = x((e, s, u) => {
23
+ L(e), o == null || o(a, e);
24
+ const r = w(s, e, t);
25
+ u.setFieldValue(a, r);
26
+ }, [a, t, o]), $ = x((e, s) => {
27
+ const u = e.target.value, r = w(u, l, t);
28
+ s.setFieldValue(a, r);
29
+ }, [l, t, a]);
30
30
  return /* @__PURE__ */ p("div", {
31
- "data-testid": `${s}-field`,
31
+ "data-testid": `${m}-field`,
32
32
  children: /* @__PURE__ */ p(k, {
33
- name: r,
33
+ name: a,
34
34
  children: ({
35
35
  field: e,
36
- meta: m,
36
+ meta: s,
37
37
  form: u
38
38
  }) => {
39
- const a = P(e.value, t);
40
- return /* @__PURE__ */ z(B, {
41
- children: [t && /* @__PURE__ */ p(G, {
39
+ const r = z(e.value, t);
40
+ return /* @__PURE__ */ G(J, {
41
+ children: [t && /* @__PURE__ */ p(K, {
42
42
  disableForm: g,
43
- fieldAdvancedFilterOptions: h,
44
- fieldNamePrefix: f,
45
- filterOptionsMap: I,
43
+ fieldAdvancedFilterOptions: I,
44
+ fieldNamePrefix: V,
45
+ filterOptionsMap: h,
46
46
  isModified: S,
47
- label: s,
47
+ label: m,
48
48
  onAdvancedFilterOptionChange: o,
49
- onValueChange: (V) => T(V, a, u),
49
+ onValueChange: (f) => M(f, r, u),
50
50
  showLabel: t && !c,
51
51
  value: l
52
- }), !q(t, l) && /* @__PURE__ */ p($, {
52
+ }), !B(t, l) && /* @__PURE__ */ p(j, {
53
53
  ...H,
54
54
  ...e,
55
- "aria-label": i.formatMessage(x.enterValueAriaLabel, {
56
- label: s
55
+ "aria-label": n.formatMessage(i.enterValueAriaLabel, {
56
+ label: m
57
57
  }),
58
+ "data-target-id": `TextInput-${V}`,
58
59
  disabled: g,
59
- error: m.error,
60
+ error: s.error,
60
61
  hideLabel: t || c,
61
- label: s,
62
- onChange: (V) => j(V, u),
63
- placeholder: L || i.formatMessage(x.setValuePlaceholder),
64
- value: a
62
+ label: m,
63
+ onChange: (f) => $(f, u),
64
+ placeholder: T || n.formatMessage(i.setValuePlaceholder),
65
+ value: r
65
66
  })]
66
67
  });
67
68
  }
68
69
  })
69
70
  });
70
71
  };
71
- J.displayName = "MetadataStringField";
72
+ N.displayName = "MetadataStringField";
72
73
  export {
73
- J as MetadataStringField,
74
- J as default
74
+ N as MetadataStringField,
75
+ N as default
75
76
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-filter",
3
- "version": "1.48.3",
3
+ "version": "1.49.1",
4
4
  "peerDependencies": {
5
5
  "@box/blueprint-web": "^7.8.0",
6
6
  "@box/blueprint-web-assets": "^4.16.0",
@@ -11,7 +11,7 @@
11
11
  "react-intl": "6.4.2"
12
12
  },
13
13
  "devDependencies": {
14
- "@box/blueprint-web": "^12.98.3",
14
+ "@box/blueprint-web": "^12.99.0",
15
15
  "@box/blueprint-web-assets": "^4.82.0",
16
16
  "@box/storybook-utils": "^0.14.19",
17
17
  "react": "^18.3.0",