@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
|
|
3
|
-
import { useIntl as
|
|
4
|
-
import { Modal as
|
|
5
|
-
import { UnifiedShareForm as
|
|
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
|
|
8
|
-
import { CollaboratorList as
|
|
9
|
-
import { useUnifiedShareFormContext as
|
|
10
|
-
import { useUnifiedShareModalContext as
|
|
11
|
-
import { ClassificationStatus as
|
|
12
|
-
import '../../../../styles/unified-share-form-modal.css';const
|
|
13
|
-
content:
|
|
14
|
-
isFullscreen:
|
|
15
|
-
body:
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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:
|
|
29
|
-
} =
|
|
28
|
+
formatMessage: n
|
|
29
|
+
} = N(), {
|
|
30
30
|
setContainerRef: F,
|
|
31
31
|
setForm: d
|
|
32
|
-
} =
|
|
32
|
+
} = h(), {
|
|
33
33
|
isFetching: f,
|
|
34
|
-
isSubmitting:
|
|
35
|
-
item:
|
|
36
|
-
variant:
|
|
37
|
-
} =
|
|
34
|
+
isSubmitting: s,
|
|
35
|
+
item: C,
|
|
36
|
+
variant: b
|
|
37
|
+
} = U(), {
|
|
38
38
|
form: u
|
|
39
|
-
} =
|
|
40
|
-
name:
|
|
41
|
-
} =
|
|
42
|
-
|
|
43
|
-
}, [
|
|
44
|
-
|
|
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__ */
|
|
47
|
-
onOpenChange:
|
|
46
|
+
return /* @__PURE__ */ i(e, {
|
|
47
|
+
onOpenChange: L,
|
|
48
48
|
open: p,
|
|
49
|
-
children: [!!m && /* @__PURE__ */ o(
|
|
49
|
+
children: [!!m && /* @__PURE__ */ o(e.Trigger, {
|
|
50
50
|
children: m
|
|
51
|
-
}), /* @__PURE__ */
|
|
51
|
+
}), /* @__PURE__ */ i(e.Content, {
|
|
52
52
|
ref: F,
|
|
53
|
-
className: a(
|
|
54
|
-
onPointerDownOutside:
|
|
53
|
+
className: a(t.content, _ && t.isFullscreen),
|
|
54
|
+
onPointerDownOutside: x,
|
|
55
55
|
size: "medium",
|
|
56
|
-
children: [/* @__PURE__ */
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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:
|
|
65
|
-
children: /* @__PURE__ */ o(
|
|
66
|
-
"aria-label":
|
|
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(
|
|
71
|
-
children: u === "collaborators" ? /* @__PURE__ */ o(
|
|
72
|
+
className: a(t.form, f && t.isLoading),
|
|
73
|
+
children: u === "collaborators" ? /* @__PURE__ */ o(M, {}) : /* @__PURE__ */ o(D, {})
|
|
72
74
|
})]
|
|
73
|
-
}), !
|
|
74
|
-
"aria-label":
|
|
75
|
+
}), !s && !_ && g && /* @__PURE__ */ o(e.Close, {
|
|
76
|
+
"aria-label": n(l.closeButton)
|
|
75
77
|
})]
|
|
76
78
|
})]
|
|
77
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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.
|
|
3
|
+
"version": "2.6.7",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^13.5.
|
|
7
|
-
"@box/blueprint-web-assets": "^4.101.
|
|
8
|
-
"@box/copy-input": "^1.39.
|
|
9
|
-
"@box/user-selector": "^1.73.
|
|
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.
|
|
17
|
-
"@box/blueprint-web-assets": "^4.101.
|
|
18
|
-
"@box/copy-input": "^1.39.
|
|
19
|
-
"@box/storybook-utils": "0.16.
|
|
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
|
},
|