@box/unified-share-modal 2.6.5 → 2.6.7

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,23 +1,23 @@
1
1
  import a from "clsx";
2
- import { useCallback as x } from "react";
3
- import { useIntl as y } from "react-intl";
4
- import { Modal as n, LoadingIndicator as N } from "@box/blueprint-web";
5
- import { UnifiedShareForm as S } from "./unified-share-form.js";
2
+ import { useCallback as y } from "react";
3
+ import { useIntl as N } from "react-intl";
4
+ import { Modal as e, LoadingIndicator as v } from "@box/blueprint-web";
5
+ import { UnifiedShareForm as D } from "./unified-share-form.js";
6
6
  import l from "./messages.js";
7
- import { jsxs as t, jsx as o } from "react/jsx-runtime";
8
- import { CollaboratorList as D } from "./collaborator-list/collaborator-list.js";
9
- import { useUnifiedShareFormContext as g } from "../../contexts/unified-share-form-context.js";
10
- import { useUnifiedShareModalContext as v } from "../../contexts/unified-share-modal-context.js";
11
- import { ClassificationStatus as M } from "../classification-status/classification-status.js";
12
- import '../../../../styles/unified-share-form-modal.css';const U = "_content_uk5qn_1", O = "_isFullscreen_uk5qn_4", j = "_body_uk5qn_13", w = "_header_uk5qn_17", z = "_hasFooter_uk5qn_37", B = "_loading_uk5qn_41", I = "_form_uk5qn_49", P = "_isLoading_uk5qn_54", e = {
13
- content: U,
14
- isFullscreen: O,
15
- body: j,
16
- header: w,
7
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
8
+ import { CollaboratorList as M } from "./collaborator-list/collaborator-list.js";
9
+ import { useUnifiedShareFormContext as h } from "../../contexts/unified-share-form-context.js";
10
+ import { useUnifiedShareModalContext as U } from "../../contexts/unified-share-modal-context.js";
11
+ import { ClassificationStatus as k } from "../classification-status/classification-status.js";
12
+ import '../../../../styles/unified-share-form-modal.css';const O = "_content_17drm_1", j = "_isFullscreen_17drm_4", w = "_body_17drm_13", z = "_hasFooter_17drm_30", B = "_classificationStatusContainer_17drm_34", I = "_loading_17drm_39", P = "_form_17drm_47", H = "_isLoading_17drm_52", t = {
13
+ content: O,
14
+ isFullscreen: j,
15
+ body: w,
17
16
  hasFooter: z,
18
- loading: B,
19
- form: I,
20
- isLoading: P
17
+ classificationStatusContainer: B,
18
+ loading: I,
19
+ form: P,
20
+ isLoading: H
21
21
  };
22
22
  function X({
23
23
  children: m,
@@ -25,53 +25,55 @@ function X({
25
25
  onOpenChange: c
26
26
  }) {
27
27
  const {
28
- formatMessage: s
29
- } = y(), {
28
+ formatMessage: n
29
+ } = N(), {
30
30
  setContainerRef: F,
31
31
  setForm: d
32
- } = g(), {
32
+ } = h(), {
33
33
  isFetching: f,
34
- isSubmitting: r,
35
- item: b,
36
- variant: k
37
- } = v(), {
34
+ isSubmitting: s,
35
+ item: C,
36
+ variant: b
37
+ } = U(), {
38
38
  form: u
39
- } = g(), {
40
- name: C
41
- } = b, _ = k === "desktop", h = u === "default", q = x((i) => {
42
- r || (d("default"), c(i));
43
- }, [r, c, d]), L = (i) => {
44
- i.preventDefault();
39
+ } = h(), {
40
+ name: S
41
+ } = C, _ = b === "desktop", g = u === "default", L = y((r) => {
42
+ s || (d("default"), c(r));
43
+ }, [s, c, d]), x = (r) => {
44
+ r.preventDefault();
45
45
  };
46
- return /* @__PURE__ */ t(n, {
47
- onOpenChange: q,
46
+ return /* @__PURE__ */ i(e, {
47
+ onOpenChange: L,
48
48
  open: p,
49
- children: [!!m && /* @__PURE__ */ o(n.Trigger, {
49
+ children: [!!m && /* @__PURE__ */ o(e.Trigger, {
50
50
  children: m
51
- }), /* @__PURE__ */ t(n.Content, {
51
+ }), /* @__PURE__ */ i(e.Content, {
52
52
  ref: F,
53
- className: a(e.content, _ && e.isFullscreen),
54
- onPointerDownOutside: L,
53
+ className: a(t.content, _ && t.isFullscreen),
54
+ onPointerDownOutside: x,
55
55
  size: "medium",
56
- children: [/* @__PURE__ */ t(n.Header, {
57
- className: e.header,
58
- children: [s(l.title, {
59
- itemName: C
60
- }), /* @__PURE__ */ o(M, {})]
61
- }), /* @__PURE__ */ t(n.Body, {
62
- className: a(e.body, !h && e.hasFooter),
56
+ children: [/* @__PURE__ */ i(e.Header, {
57
+ children: [n(l.title, {
58
+ itemName: S
59
+ }), /* @__PURE__ */ o("div", {
60
+ className: t.classificationStatusContainer,
61
+ children: /* @__PURE__ */ o(k, {})
62
+ })]
63
+ }), /* @__PURE__ */ i(e.Body, {
64
+ className: a(t.body, !g && t.hasFooter),
63
65
  children: [f && /* @__PURE__ */ o("div", {
64
- className: e.loading,
65
- children: /* @__PURE__ */ o(N, {
66
- "aria-label": s(l.loadingLabel),
66
+ className: t.loading,
67
+ children: /* @__PURE__ */ o(v, {
68
+ "aria-label": n(l.loadingLabel),
67
69
  size: "large"
68
70
  })
69
71
  }), /* @__PURE__ */ o("div", {
70
- className: a(e.form, f && e.isLoading),
71
- children: u === "collaborators" ? /* @__PURE__ */ o(D, {}) : /* @__PURE__ */ o(S, {})
72
+ className: a(t.form, f && t.isLoading),
73
+ children: u === "collaborators" ? /* @__PURE__ */ o(M, {}) : /* @__PURE__ */ o(D, {})
72
74
  })]
73
- }), !r && !_ && h && /* @__PURE__ */ o(n.Close, {
74
- "aria-label": s(l.closeButton)
75
+ }), !s && !_ && g && /* @__PURE__ */ o(e.Close, {
76
+ "aria-label": n(l.closeButton)
75
77
  })]
76
78
  })]
77
79
  });
@@ -1 +1 @@
1
- ._content_uk5qn_1._content_uk5qn_1{max-width:480px}._content_uk5qn_1._content_uk5qn_1._isFullscreen_uk5qn_4{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;border-radius:0;animation:none}._content_uk5qn_1._content_uk5qn_1._isFullscreen_uk5qn_4 ._body_uk5qn_13{overflow:hidden auto}._header_uk5qn_17._header_uk5qn_17{display:flex;flex-wrap:wrap;gap:var(--bp-space-020);align-items:center}._body_uk5qn_13._body_uk5qn_13{position:relative;display:flex;flex-direction:column;flex-grow:1;padding-top:0;padding-bottom:var(--bp-space-080)}._body_uk5qn_13._body_uk5qn_13:before{display:block;width:100vw;content:""}._body_uk5qn_13._body_uk5qn_13._hasFooter_uk5qn_37{padding-bottom:0}._loading_uk5qn_41{position:absolute;inset:0;display:flex;align-items:center;padding-bottom:var(--bp-space-080)}._form_uk5qn_49{display:flex;flex-direction:column;flex-grow:1}._form_uk5qn_49._isLoading_uk5qn_54{visibility:hidden}@media not (max-width:374px){._content_uk5qn_1._content_uk5qn_1{overflow:auto}}@media not (max-width:459px){:has(>._content_uk5qn_1._content_uk5qn_1:not(._isFullscreen_uk5qn_4)){display:flex;padding:var(--bp-space-080);overflow:auto}._content_uk5qn_1._content_uk5qn_1{max-height:none;margin:auto;overflow:visible}}
1
+ ._content_17drm_1._content_17drm_1{max-width:480px}._content_17drm_1._content_17drm_1._isFullscreen_17drm_4{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;border-radius:0;animation:none}._content_17drm_1._content_17drm_1._isFullscreen_17drm_4 ._body_17drm_13{overflow:hidden auto}._body_17drm_13._body_17drm_13{position:relative;display:flex;flex-direction:column;flex-grow:1;padding-top:0;padding-bottom:var(--bp-space-080)}._body_17drm_13._body_17drm_13:before{display:block;width:100vw;content:""}._body_17drm_13._body_17drm_13._hasFooter_17drm_30{padding-bottom:0}._classificationStatusContainer_17drm_34{display:inline-flex;margin-left:var(--bp-space-010)}._loading_17drm_39{position:absolute;inset:0;display:flex;align-items:center;padding-bottom:var(--bp-space-080)}._form_17drm_47{display:flex;flex-direction:column;flex-grow:1}._form_17drm_47._isLoading_17drm_52{visibility:hidden}@media not (max-width:374px){._content_17drm_1._content_17drm_1{overflow:auto}}@media not (max-width:459px){:has(>._content_17drm_1._content_17drm_1:not(._isFullscreen_17drm_4)){display:flex;padding:var(--bp-space-080);overflow:auto}._content_17drm_1._content_17drm_1{max-height:none;margin:auto;overflow:visible}}
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@box/unified-share-modal",
3
- "version": "2.6.5",
3
+ "version": "2.6.7",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "peerDependencies": {
6
- "@box/blueprint-web": "^13.5.0",
7
- "@box/blueprint-web-assets": "^4.101.19",
8
- "@box/copy-input": "^1.39.5",
9
- "@box/user-selector": "^1.73.6",
6
+ "@box/blueprint-web": "^13.5.1",
7
+ "@box/blueprint-web-assets": "^4.101.20",
8
+ "@box/copy-input": "^1.39.6",
9
+ "@box/user-selector": "^1.73.7",
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": "^13.5.0",
17
- "@box/blueprint-web-assets": "^4.101.19",
18
- "@box/copy-input": "^1.39.5",
19
- "@box/storybook-utils": "0.16.56",
16
+ "@box/blueprint-web": "^13.5.1",
17
+ "@box/blueprint-web-assets": "^4.101.20",
18
+ "@box/copy-input": "^1.39.6",
19
+ "@box/storybook-utils": "0.16.57",
20
20
  "@box/eslint-plugin-blueprint": "1.1.1",
21
21
  "react-intl": "^6.4.2"
22
22
  },