@box/metadata-filter 2.2.25 → 2.2.27
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.
|
@@ -5,11 +5,10 @@ import { useCallback as i, useState as a } from "react";
|
|
|
5
5
|
import { useIntl as o } from "react-intl";
|
|
6
6
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
7
7
|
import '../styles/advanced-filter-select.css';var u = {
|
|
8
|
-
noAttributesText: "
|
|
9
|
-
fieldLabel: "
|
|
10
|
-
selectContainer: "
|
|
11
|
-
|
|
12
|
-
modifiedIcon: "_modifiedIcon_2lw3u_19"
|
|
8
|
+
noAttributesText: "_noAttributesText_19mt4_1",
|
|
9
|
+
fieldLabel: "_fieldLabel_19mt4_5",
|
|
10
|
+
selectContainer: "_selectContainer_19mt4_10",
|
|
11
|
+
modifiedIcon: "_modifiedIcon_19mt4_15"
|
|
13
12
|
}, d = ({ label: d, fieldNamePrefix: f, fieldAdvancedFilterOptions: p, filterOptionsMap: m, disableForm: h, portalElement: g, onAdvancedFilterOptionChange: _, onValueChange: v, defaultValue: y = "", showLabel: b = !0, advancedFilterFieldName: x = `${f}.value.advancedFilterOption`, value: S, labelClassName: C = u.fieldLabel, labelAs: w = "div", open: T, onOpenChange: E, isModified: D }) => {
|
|
14
13
|
let O = o(), [k, A] = a(p || y), j = S === void 0 ? k : S, M = i((e, ...t) => {
|
|
15
14
|
S === void 0 && A(e), _ && _(f, e), v(e, ...t);
|
|
@@ -11,12 +11,10 @@ import { useCallback as p, useState as m } from "react";
|
|
|
11
11
|
import { useIntl as h } from "react-intl";
|
|
12
12
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
13
13
|
import '../styles/metadata-float-field-advanced.css';var y = {
|
|
14
|
-
container: "
|
|
15
|
-
rangeInputsContainer: "
|
|
16
|
-
inputContainer: "
|
|
17
|
-
advancedFilterContainer: "
|
|
18
|
-
fieldLabel: "_fieldLabel_uvlwq_44",
|
|
19
|
-
selectContainer: "_selectContainer_uvlwq_49"
|
|
14
|
+
container: "_container_jjzra_1",
|
|
15
|
+
rangeInputsContainer: "_rangeInputsContainer_jjzra_6",
|
|
16
|
+
inputContainer: "_inputContainer_jjzra_16",
|
|
17
|
+
advancedFilterContainer: "_advancedFilterContainer_jjzra_23"
|
|
20
18
|
}, b = ({ label: b, fieldNamePrefix: x, disableForm: S, onAdvancedFilterOptionChange: C, fieldAdvancedFilterOptions: w, filterOptionsMap: T, hasAccordion: E, isModified: D }) => {
|
|
21
19
|
let O = h(), k = `${x}.value.enum[0]`, [A, j] = m(e.FROM), [M, N] = m(w || t.EQUALS), { validateFloats: P } = u(), F = p((e, t, n, r) => c(k, C, N)(e, t, n, r), [
|
|
22
20
|
k,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._noAttributesText_19mt4_1{text-align:center}._fieldLabel_19mt4_5{margin-bottom:var(--space-2);align-self:flex-start}._selectContainer_19mt4_10{min-width:17.75rem;margin-bottom:var(--space-3)}._modifiedIcon_19mt4_15{width:var(--size-2);height:var(--size-2);margin-left:var(--space-2);background-color:var(--bp-surface-badge-surface-modified);border-radius:50%;justify-content:center;align-items:center;display:inline-flex}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_jjzra_1{gap:var(--space-2);flex-direction:column;display:flex}._container_jjzra_1 ._rangeInputsContainer_jjzra_6{gap:var(--space-1);display:flex}@media (width<=374px){._container_jjzra_1 ._rangeInputsContainer_jjzra_6{gap:var(--space-4);flex-direction:column}}._container_jjzra_1 ._rangeInputsContainer_jjzra_6 ._inputContainer_jjzra_16{flex-direction:column;width:100%;min-width:0;display:flex}._advancedFilterContainer_jjzra_23{flex-direction:column;display:flex}._advancedFilterContainer_jjzra_23 ._rangeInputsContainer_jjzra_6{gap:var(--space-1);display:flex}@media (width<=374px){._advancedFilterContainer_jjzra_23 ._rangeInputsContainer_jjzra_6{gap:var(--space-4);flex-direction:column}}._advancedFilterContainer_jjzra_23 ._rangeInputsContainer_jjzra_6 ._inputContainer_jjzra_16{flex-direction:column;width:100%;min-width:0;display:flex}
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/metadata-filter",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.27",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@box/blueprint-web": "^16.12.
|
|
6
|
-
"@box/blueprint-web-assets": "^5.5.
|
|
7
|
-
"@box/combobox-with-api": "^2.1.
|
|
8
|
-
"@box/metadata-taxonomy-picker": "^3.1.
|
|
5
|
+
"@box/blueprint-web": "^16.12.1",
|
|
6
|
+
"@box/blueprint-web-assets": "^5.5.8",
|
|
7
|
+
"@box/combobox-with-api": "^2.1.35",
|
|
8
|
+
"@box/metadata-taxonomy-picker": "^3.1.35",
|
|
9
9
|
"formik": "^2.0.3",
|
|
10
10
|
"react": "^17.0.0 || ^18.0.0",
|
|
11
11
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
12
12
|
"react-intl": "^6.4.2"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@box/blueprint-web": "^16.12.
|
|
16
|
-
"@box/blueprint-web-assets": "^5.5.
|
|
17
|
-
"@box/metadata-taxonomy-picker": "^3.1.
|
|
18
|
-
"@box/storybook-utils": "^1.1.
|
|
15
|
+
"@box/blueprint-web": "^16.12.1",
|
|
16
|
+
"@box/blueprint-web-assets": "^5.5.8",
|
|
17
|
+
"@box/metadata-taxonomy-picker": "^3.1.35",
|
|
18
|
+
"@box/storybook-utils": "^1.1.32",
|
|
19
19
|
"react": "^18.3.0",
|
|
20
20
|
"react-dom": "^18.3.0",
|
|
21
21
|
"react-intl": "^6.4.2"
|