@box/box-item-type-selector 2.1.30 → 2.1.32

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,12 +5,12 @@ import { forwardRef as a, useCallback as o } from "react";
5
5
  import { useIntl as s } from "react-intl";
6
6
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
7
  import '../styles/box-item-type-selector.css';var u = {
8
- boxItemTypeSelectorContainer: "_boxItemTypeSelectorContainer_10aek_27",
9
- parentItemTypeSelectorContainer: "_parentItemTypeSelectorContainer_10aek_31",
10
- itemTypeSelector: "_itemTypeSelector_10aek_41",
11
- selectorLabel: "_selectorLabel_10aek_47",
12
- disabled: "_disabled_10aek_61",
13
- childItemTypeSelectorContainer: "_childItemTypeSelectorContainer_10aek_64"
8
+ boxItemTypeSelectorContainer: "_boxItemTypeSelectorContainer_8fq6i_1",
9
+ parentItemTypeSelectorContainer: "_parentItemTypeSelectorContainer_8fq6i_5",
10
+ itemTypeSelector: "_itemTypeSelector_8fq6i_15",
11
+ selectorLabel: "_selectorLabel_8fq6i_21",
12
+ disabled: "_disabled_8fq6i_28",
13
+ childItemTypeSelectorContainer: "_childItemTypeSelectorContainer_8fq6i_31"
14
14
  }, d = (e, t) => {
15
15
  let n = [...t];
16
16
  return e.forEach((e) => {
@@ -26,14 +26,14 @@ import '../styles/box-item-type-selector.css';var u = {
26
26
  let r = [...n];
27
27
  return e ? r.push(t) : r = r.filter((e) => e !== t), r;
28
28
  }, m = /*#__PURE__*/ a((a, m) => {
29
- let { className: h, onSelectionChange: g, selected: _, disabled: v = !1, ...y } = a, b = s(), x = (e) => e.children ? e.children.every((e) => _.includes(e.value)) ? !0 : e.children.every((e) => !_.includes(e.value)) ? !1 : t : _.includes(e.value), S = o((e, t) => {
29
+ let { className: h, onSelectionChange: g, selected: _, disabled: v = !1, ...y } = a, { formatMessage: b } = s(), x = (e) => e.children ? e.children.every((e) => _.includes(e.value)) ? !0 : e.children.every((e) => !_.includes(e.value)) ? !1 : t : _.includes(e.value), S = o((e, t) => {
30
30
  let n = [..._];
31
31
  n = t.children ? e ? d(t.children, n) : f(t.children, n) : p(e, t.value, n), g(n);
32
32
  }, [g, _]), C = (e) => /* @__PURE__ */ l("span", {
33
33
  className: i(u.selectorLabel, { [u.disabled]: v }),
34
34
  children: [e.icon, /* @__PURE__ */ c(r, {
35
35
  as: "span",
36
- children: b.formatMessage(e.title)
36
+ children: b(e.title)
37
37
  })]
38
38
  });
39
39
  return /* @__PURE__ */ c("div", {
@@ -1 +1 @@
1
- ._boxItemTypeSelectorContainer_10aek_27{flex-direction:column;display:flex}._boxItemTypeSelectorContainer_10aek_27 ._parentItemTypeSelectorContainer_10aek_31{flex-direction:column;min-height:0;display:flex}@container (width>=374px){._boxItemTypeSelectorContainer_10aek_27 ._parentItemTypeSelectorContainer_10aek_31{max-height:255px}}._boxItemTypeSelectorContainer_10aek_27 ._itemTypeSelector_10aek_41{margin:var(--space-1) 0}._boxItemTypeSelectorContainer_10aek_27 ._itemTypeSelector_10aek_41 label{gap:var(--space-2)}._boxItemTypeSelectorContainer_10aek_27 ._selectorLabel_10aek_47{font-weight:var(--body-default-font-weight);font-size:var(--body-default-font-size);font-family:var(--body-default-font-family);line-height:var(--body-default-line-height);letter-spacing:var(--body-default-letter-spacing);text-transform:var(--body-default-text-case);-webkit-text-decoration:var(--body-default-text-decoration);text-decoration:var(--body-default-text-decoration);display:flex}._boxItemTypeSelectorContainer_10aek_27 ._selectorLabel_10aek_47 svg{font-size:var(--size-5);margin-inline-end:var(--space-2)}._boxItemTypeSelectorContainer_10aek_27 ._selectorLabel_10aek_47._disabled_10aek_61{opacity:.6}._boxItemTypeSelectorContainer_10aek_27 ._childItemTypeSelectorContainer_10aek_64{flex-flow:column wrap;min-height:0;margin-inline-start:var(--space-7);display:flex}._boxItemTypeSelectorContainer_10aek_27 ul,._boxItemTypeSelectorContainer_10aek_27 li{margin:0;padding:0;display:contents}
1
+ ._boxItemTypeSelectorContainer_8fq6i_1{flex-direction:column;display:flex}._boxItemTypeSelectorContainer_8fq6i_1 ._parentItemTypeSelectorContainer_8fq6i_5{flex-direction:column;min-height:0;display:flex}@container (width>=374px){._boxItemTypeSelectorContainer_8fq6i_1 ._parentItemTypeSelectorContainer_8fq6i_5{max-height:255px}}._boxItemTypeSelectorContainer_8fq6i_1 ._itemTypeSelector_8fq6i_15{margin:var(--space-1) 0}._boxItemTypeSelectorContainer_8fq6i_1 ._itemTypeSelector_8fq6i_15 label{gap:var(--space-2)}._boxItemTypeSelectorContainer_8fq6i_1 ._selectorLabel_8fq6i_21{display:flex}._boxItemTypeSelectorContainer_8fq6i_1 ._selectorLabel_8fq6i_21 svg{font-size:var(--size-5);margin-inline-end:var(--space-2)}._boxItemTypeSelectorContainer_8fq6i_1 ._selectorLabel_8fq6i_21._disabled_8fq6i_28{opacity:.6}._boxItemTypeSelectorContainer_8fq6i_1 ._childItemTypeSelectorContainer_8fq6i_31{flex-flow:column wrap;min-height:0;margin-inline-start:var(--space-7);display:flex}._boxItemTypeSelectorContainer_8fq6i_1 ul,._boxItemTypeSelectorContainer_8fq6i_1 li{margin:0;padding:0;display:contents}
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@box/box-item-type-selector",
3
- "version": "2.1.30",
3
+ "version": "2.1.32",
4
4
  "peerDependencies": {
5
- "@box/blueprint-web": "^16.10.0",
6
- "@box/blueprint-web-assets": "^5.5.5",
5
+ "@box/blueprint-web": "^16.11.0",
6
+ "@box/blueprint-web-assets": "^5.5.6",
7
7
  "react": "^17.0.0 || ^18.0.0",
8
8
  "react-dom": "^17.0.0 || ^18.0.0",
9
9
  "react-intl": "^6.4.2"
10
10
  },
11
11
  "devDependencies": {
12
- "@box/blueprint-web": "^16.10.0",
13
- "@box/blueprint-web-assets": "^5.5.5",
14
- "@box/storybook-utils": "^1.1.29",
12
+ "@box/blueprint-web": "^16.11.0",
13
+ "@box/blueprint-web-assets": "^5.5.6",
14
+ "@box/storybook-utils": "^1.1.30",
15
15
  "react": "^18.3.0",
16
16
  "react-dom": "^18.3.0",
17
17
  "react-intl": "^6.4.2"