@box/unified-share-modal 1.35.0 → 1.35.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.
@@ -8,7 +8,7 @@ import l from "./messages.js";
8
8
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
9
9
  import { UnifiedShareFormProvider as O } from "../../contexts/unified-share-form-context.js";
10
10
  import { useUnifiedShareModalContext as V } from "../../contexts/unified-share-modal-context.js";
11
- import '../../../../styles/unified-share-form-modal.css';const j = "_content_1tnt5_1", z = "_header_1tnt5_5", B = "_body_1tnt5_12", L = "_hasFooter_1tnt5_23", R = "_loading_1tnt5_27", t = {
11
+ import '../../../../styles/unified-share-form-modal.css';const j = "_content_1xtsr_1", z = "_header_1xtsr_5", B = "_body_1xtsr_12", L = "_hasFooter_1xtsr_23", R = "_loading_1xtsr_27", t = {
12
12
  content: j,
13
13
  header: z,
14
14
  body: B,
@@ -18,21 +18,21 @@ import '../../../../styles/unified-share-form-modal.css';const j = "_content_1tn
18
18
  function W({
19
19
  children: d,
20
20
  isOpen: p,
21
- onOpenChange: a,
21
+ onOpenChange: r,
22
22
  onModalViewChange: u
23
23
  }) {
24
24
  const {
25
- formatMessage: r
25
+ formatMessage: a
26
26
  } = U(), {
27
27
  initialContacts: _,
28
- isFetching: C,
29
- item: F
28
+ isFetching: x,
29
+ item: C
30
30
  } = V(), {
31
31
  classification: i,
32
- name: S
33
- } = F, [b, x] = g(null), [c, m] = g("default"), M = !!d, h = c !== "default", f = N((s) => {
34
- m("default"), a && a(s);
35
- }, [a]), y = (s) => {
32
+ name: F
33
+ } = C, [S, b] = g(null), [c, m] = g("default"), M = !!d, h = c !== "default", f = N((s) => {
34
+ m("default"), r && r(s);
35
+ }, [r]), y = (s) => {
36
36
  s.preventDefault();
37
37
  };
38
38
  return /* @__PURE__ */ n(o, {
@@ -41,14 +41,14 @@ function W({
41
41
  children: [M && /* @__PURE__ */ e(o.Trigger, {
42
42
  children: d
43
43
  }), /* @__PURE__ */ n(o.Content, {
44
- ref: x,
44
+ ref: b,
45
45
  className: t.content,
46
46
  onPointerDownOutside: y,
47
47
  size: "medium",
48
48
  children: [/* @__PURE__ */ n(o.Header, {
49
49
  className: t.header,
50
- children: [r(l.title, {
51
- itemName: S
50
+ children: [a(l.title, {
51
+ itemName: F
52
52
  }), i && /* @__PURE__ */ e(I, {
53
53
  colorIndex: i.colorId + 1,
54
54
  icon: v,
@@ -58,22 +58,22 @@ function W({
58
58
  }), /* @__PURE__ */ e(o.Body, {
59
59
  className: w(t.body, h && t.hasFooter),
60
60
  children: /* @__PURE__ */ n(O, {
61
- container: b,
61
+ container: S,
62
62
  initialContacts: _,
63
63
  onModalOpenChange: f,
64
64
  onModalViewChange: u,
65
65
  onShareViewChange: m,
66
66
  shareView: c,
67
- children: [C && /* @__PURE__ */ e("div", {
67
+ children: [x && /* @__PURE__ */ e("div", {
68
68
  className: t.loading,
69
69
  children: /* @__PURE__ */ e(P, {
70
- "aria-label": r(l.loadingLabel),
70
+ "aria-label": a(l.loadingLabel),
71
71
  size: "large"
72
72
  })
73
73
  }), /* @__PURE__ */ e(D, {})]
74
74
  })
75
75
  }), !h && /* @__PURE__ */ e(o.Close, {
76
- "aria-label": r(l.closeButton)
76
+ "aria-label": a(l.closeButton)
77
77
  })]
78
78
  })]
79
79
  });
@@ -1 +1 @@
1
- ._content_1tnt5_1._content_1tnt5_1{max-width:480px}._header_1tnt5_5{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}._body_1tnt5_12._body_1tnt5_12{position:relative;max-width:432px;padding-top:0;padding-bottom:var(--space-8)}._body_1tnt5_12._body_1tnt5_12:before{display:block;width:100vw;content:""}._body_1tnt5_12._body_1tnt5_12._hasFooter_1tnt5_23{padding-bottom:0}._loading_1tnt5_27{position:absolute;inset:0;z-index:1001;display:flex;align-items:center;padding-bottom:var(--space-8);background-color:var(--gray-white)}@media not (max-width:374px){._content_1tnt5_1{overflow:auto}}@media not (max-width:459px){div:has(>._content_1tnt5_1){display:flex;padding:var(--space-8);overflow:auto}._content_1tnt5_1{max-height:none;margin:auto}}
1
+ ._content_1xtsr_1._content_1xtsr_1{max-width:480px}._header_1xtsr_5{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}._body_1xtsr_12._body_1xtsr_12{position:relative;max-width:432px;padding-top:0;padding-bottom:var(--space-8)}._body_1xtsr_12._body_1xtsr_12:before{display:block;width:100vw;content:""}._body_1xtsr_12._body_1xtsr_12._hasFooter_1xtsr_23{padding-bottom:0}._loading_1xtsr_27{position:absolute;inset:0;z-index:1001;display:flex;align-items:center;padding-bottom:var(--space-8);background-color:var(--gray-white)}@media not (max-width:374px){._content_1xtsr_1{overflow:visible}}@media not (max-width:459px){div:has(>._content_1xtsr_1){display:flex;padding:var(--space-8);overflow:auto}._content_1xtsr_1{max-height:none;margin:auto}}
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@box/unified-share-modal",
3
- "version": "1.35.0",
3
+ "version": "1.35.2",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
- "@box/blueprint-web": "^12.112.0",
7
- "@box/blueprint-web-assets": "^4.91.0",
8
- "@box/copy-input": "^1.22.0",
9
- "@box/user-selector": "^1.55.0",
6
+ "@box/blueprint-web": "^12.112.1",
7
+ "@box/blueprint-web-assets": "^4.91.1",
8
+ "@box/copy-input": "^1.22.1",
9
+ "@box/user-selector": "^1.55.1",
10
10
  "lodash": "^4.17.15",
11
11
  "react": "^18.0.0",
12
12
  "react-dom": "^18.0.0",
13
13
  "react-intl": "^6.4.2"
14
14
  },
15
15
  "devDependencies": {
16
- "@box/blueprint-web": "^12.112.0",
17
- "@box/blueprint-web-assets": "^4.91.0",
18
- "@box/copy-input": "^1.22.0",
19
- "@box/storybook-utils": "0.15.0",
16
+ "@box/blueprint-web": "^12.112.1",
17
+ "@box/blueprint-web-assets": "^4.91.1",
18
+ "@box/copy-input": "^1.22.1",
19
+ "@box/storybook-utils": "0.15.1",
20
20
  "@box/eslint-plugin-blueprint": "1.0.5",
21
21
  "react-intl": "^6.4.2"
22
22
  },