@fluentui-copilot/react-attachments 0.0.0-nightly-20251010-0406-7df7c6d1.1 → 0.0.0-nightly-20251013-0406-7c7739c8.1
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.
- package/CHANGELOG.json +3 -3
- package/CHANGELOG.md +4 -4
- package/dist/index.d.ts +379 -0
- package/lib/AgentTag.js +1 -0
- package/lib/AgentTag.js.map +1 -0
- package/lib/Attachment.js +1 -0
- package/lib/Attachment.js.map +1 -0
- package/lib/AttachmentList.js +1 -0
- package/lib/AttachmentList.js.map +1 -0
- package/lib/AttachmentOverflowMenu.js +1 -0
- package/lib/AttachmentOverflowMenu.js.map +1 -0
- package/lib/AttachmentOverflowMenuButton.js +1 -0
- package/lib/AttachmentOverflowMenuButton.js.map +1 -0
- package/lib/AttachmentOverflowMenuItem.js +1 -0
- package/lib/AttachmentOverflowMenuItem.js.map +1 -0
- package/lib/components/AgentTag/AgentTag.js +11 -0
- package/lib/components/AgentTag/AgentTag.js.map +1 -0
- package/lib/components/AgentTag/AgentTag.types.js +3 -0
- package/lib/components/AgentTag/AgentTag.types.js.map +1 -0
- package/lib/components/AgentTag/index.js +4 -0
- package/lib/components/AgentTag/index.js.map +1 -0
- package/lib/components/AgentTag/renderAgentTag.js +6 -0
- package/lib/components/AgentTag/renderAgentTag.js.map +1 -0
- package/lib/components/AgentTag/useAgentTag.js +18 -0
- package/lib/components/AgentTag/useAgentTag.js.map +1 -0
- package/lib/components/AgentTag/useAgentTagStyles.styles.js +95 -0
- package/lib/components/AgentTag/useAgentTagStyles.styles.js.map +1 -0
- package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js +66 -0
- package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
- package/lib/components/Attachment/Attachment.js +13 -0
- package/lib/components/Attachment/Attachment.js.map +1 -0
- package/lib/components/Attachment/Attachment.types.js +3 -0
- package/lib/components/Attachment/Attachment.types.js.map +1 -0
- package/lib/components/Attachment/index.js +4 -0
- package/lib/components/Attachment/index.js.map +1 -0
- package/lib/components/Attachment/renderAttachment.js +42 -0
- package/lib/components/Attachment/renderAttachment.js.map +1 -0
- package/lib/components/Attachment/useAttachment.js +103 -0
- package/lib/components/Attachment/useAttachment.js.map +1 -0
- package/lib/components/Attachment/useAttachmentStyles.styles.js +348 -0
- package/lib/components/Attachment/useAttachmentStyles.styles.js.map +1 -0
- package/lib/components/Attachment/useAttachmentStyles.styles.raw.js +328 -0
- package/lib/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
- package/lib/components/AttachmentList/AttachmentList.js +14 -0
- package/lib/components/AttachmentList/AttachmentList.js.map +1 -0
- package/lib/components/AttachmentList/AttachmentList.types.js +1 -0
- package/lib/components/AttachmentList/AttachmentList.types.js.map +1 -0
- package/lib/components/AttachmentList/index.js +4 -0
- package/lib/components/AttachmentList/index.js.map +1 -0
- package/lib/components/AttachmentList/renderAttachmentList.js +31 -0
- package/lib/components/AttachmentList/renderAttachmentList.js.map +1 -0
- package/lib/components/AttachmentList/useAttachmentList.js +134 -0
- package/lib/components/AttachmentList/useAttachmentList.js.map +1 -0
- package/lib/components/AttachmentList/useAttachmentListContextValues.js +12 -0
- package/lib/components/AttachmentList/useAttachmentListContextValues.js.map +1 -0
- package/lib/components/AttachmentList/useAttachmentListStyles.styles.js +48 -0
- package/lib/components/AttachmentList/useAttachmentListStyles.styles.js.map +1 -0
- package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js +44 -0
- package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
- package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +14 -0
- package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -0
- package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +1 -0
- package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js.map +1 -0
- package/lib/components/AttachmentOverflowMenu/index.js +4 -0
- package/lib/components/AttachmentOverflowMenu/index.js.map +1 -0
- package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +13 -0
- package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -0
- package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +18 -0
- package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -0
- package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +12 -0
- package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +12 -0
- package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +3 -0
- package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuButton/index.js +4 -0
- package/lib/components/AttachmentOverflowMenuButton/index.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +15 -0
- package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +69 -0
- package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js +116 -0
- package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +102 -0
- package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +10 -0
- package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +3 -0
- package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuItem/index.js +4 -0
- package/lib/components/AttachmentOverflowMenuItem/index.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +13 -0
- package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +56 -0
- package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.js +84 -0
- package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.js.map +1 -0
- package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +59 -0
- package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/utils/useProgressBarStyles.styles.js +54 -0
- package/lib/components/utils/useProgressBarStyles.styles.js.map +1 -0
- package/lib/components/utils/useProgressBarStyles.styles.raw.js +42 -0
- package/lib/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
- package/lib/contexts/attachmentListContext.js +9 -0
- package/lib/contexts/attachmentListContext.js.map +1 -0
- package/lib/contexts/attachmentOverflowMenuContext.js +9 -0
- package/lib/contexts/attachmentOverflowMenuContext.js.map +1 -0
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -0
- package/lib-commonjs/AgentTag.js +28 -0
- package/lib-commonjs/AgentTag.js.map +1 -0
- package/lib-commonjs/Attachment.js +31 -0
- package/lib-commonjs/Attachment.js.map +1 -0
- package/lib-commonjs/AttachmentList.js +28 -0
- package/lib-commonjs/AttachmentList.js.map +1 -0
- package/lib-commonjs/AttachmentOverflowMenu.js +25 -0
- package/lib-commonjs/AttachmentOverflowMenu.js.map +1 -0
- package/lib-commonjs/AttachmentOverflowMenuButton.js +28 -0
- package/lib-commonjs/AttachmentOverflowMenuButton.js.map +1 -0
- package/lib-commonjs/AttachmentOverflowMenuItem.js +28 -0
- package/lib-commonjs/AttachmentOverflowMenuItem.js.map +1 -0
- package/lib-commonjs/components/AgentTag/AgentTag.js +21 -0
- package/lib-commonjs/components/AgentTag/AgentTag.js.map +1 -0
- package/lib-commonjs/components/AgentTag/AgentTag.types.js +6 -0
- package/lib-commonjs/components/AgentTag/AgentTag.types.js.map +1 -0
- package/lib-commonjs/components/AgentTag/index.js +31 -0
- package/lib-commonjs/components/AgentTag/index.js.map +1 -0
- package/lib-commonjs/components/AgentTag/renderAgentTag.js +14 -0
- package/lib-commonjs/components/AgentTag/renderAgentTag.js.map +1 -0
- package/lib-commonjs/components/AgentTag/useAgentTag.js +19 -0
- package/lib-commonjs/components/AgentTag/useAgentTag.js.map +1 -0
- package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.js +145 -0
- package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.js.map +1 -0
- package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js +82 -0
- package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Attachment/Attachment.js +23 -0
- package/lib-commonjs/components/Attachment/Attachment.js.map +1 -0
- package/lib-commonjs/components/Attachment/Attachment.types.js +6 -0
- package/lib-commonjs/components/Attachment/Attachment.types.js.map +1 -0
- package/lib-commonjs/components/Attachment/index.js +34 -0
- package/lib-commonjs/components/Attachment/index.js.map +1 -0
- package/lib-commonjs/components/Attachment/renderAttachment.js +50 -0
- package/lib-commonjs/components/Attachment/renderAttachment.js.map +1 -0
- package/lib-commonjs/components/Attachment/useAttachment.js +105 -0
- package/lib-commonjs/components/Attachment/useAttachment.js.map +1 -0
- package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js +550 -0
- package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js.map +1 -0
- package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js +347 -0
- package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/AttachmentList/AttachmentList.js +25 -0
- package/lib-commonjs/components/AttachmentList/AttachmentList.js.map +1 -0
- package/lib-commonjs/components/AttachmentList/AttachmentList.types.js +4 -0
- package/lib-commonjs/components/AttachmentList/AttachmentList.types.js.map +1 -0
- package/lib-commonjs/components/AttachmentList/index.js +31 -0
- package/lib-commonjs/components/AttachmentList/index.js.map +1 -0
- package/lib-commonjs/components/AttachmentList/renderAttachmentList.js +39 -0
- package/lib-commonjs/components/AttachmentList/renderAttachmentList.js.map +1 -0
- package/lib-commonjs/components/AttachmentList/useAttachmentList.js +137 -0
- package/lib-commonjs/components/AttachmentList/useAttachmentList.js.map +1 -0
- package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js +22 -0
- package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js.map +1 -0
- package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.js +67 -0
- package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.js.map +1 -0
- package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js +60 -0
- package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +24 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +4 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/index.js +28 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/index.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +21 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +21 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +22 -0
- package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +23 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +6 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js +31 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +23 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +72 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js +178 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +118 -0
- package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +21 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +6 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js +31 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +21 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +59 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.js +109 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.js.map +1 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +75 -0
- package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/index.js +92 -0
- package/lib-commonjs/components/index.js.map +1 -0
- package/lib-commonjs/components/utils/useProgressBarStyles.styles.js +103 -0
- package/lib-commonjs/components/utils/useProgressBarStyles.styles.js.map +1 -0
- package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js +50 -0
- package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/contexts/attachmentListContext.js +30 -0
- package/lib-commonjs/contexts/attachmentListContext.js.map +1 -0
- package/lib-commonjs/contexts/attachmentOverflowMenuContext.js +30 -0
- package/lib-commonjs/contexts/attachmentOverflowMenuContext.js.map +1 -0
- package/lib-commonjs/index.js +122 -0
- package/lib-commonjs/index.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
attachmentOverflowMenuItemClassNames: function() {
|
|
13
|
+
return attachmentOverflowMenuItemClassNames;
|
|
14
|
+
},
|
|
15
|
+
useAttachmentOverflowMenuItemStyles_unstable: function() {
|
|
16
|
+
return useAttachmentOverflowMenuItemStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
+
const _useProgressBarStylesstyles = require("../utils/useProgressBarStyles.styles");
|
|
21
|
+
const attachmentOverflowMenuItemClassNames = {
|
|
22
|
+
root: 'fai-AttachmentOverflowMenuItem',
|
|
23
|
+
progress: 'fai-AttachmentOverflowMenuItem__progress'
|
|
24
|
+
};
|
|
25
|
+
const FOCUS_VISIBLE_ATTR = 'data-fui-focus-visible';
|
|
26
|
+
const useStyles = (0, _reactcomponents.__styles)({
|
|
27
|
+
imageOnly: {
|
|
28
|
+
Bt984gj: "f122n59"
|
|
29
|
+
},
|
|
30
|
+
secondaryContent: {
|
|
31
|
+
mc9l5x: "f22iagw",
|
|
32
|
+
Bt984gj: "f122n59"
|
|
33
|
+
}
|
|
34
|
+
}, {
|
|
35
|
+
d: [
|
|
36
|
+
".f122n59{align-items:center;}",
|
|
37
|
+
".f22iagw{display:flex;}"
|
|
38
|
+
]
|
|
39
|
+
});
|
|
40
|
+
const useNextStyles = (0, _reactcomponents.__styles)({
|
|
41
|
+
nextStyles: {
|
|
42
|
+
Beyfa6y: 0,
|
|
43
|
+
Bbmb7ep: 0,
|
|
44
|
+
Btl43ni: 0,
|
|
45
|
+
B7oj6ja: 0,
|
|
46
|
+
Dimara: "fxe958b",
|
|
47
|
+
Dah5zi: 0,
|
|
48
|
+
B1tsrr9: 0,
|
|
49
|
+
qqdqy8: 0,
|
|
50
|
+
Bkh64rk: 0,
|
|
51
|
+
e3fwne: "f8ydpu5",
|
|
52
|
+
Bw0xxkn: 0,
|
|
53
|
+
oeaueh: 0,
|
|
54
|
+
Bpd4iqm: 0,
|
|
55
|
+
Befb4lg: "f1bars0k"
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
d: [
|
|
59
|
+
[
|
|
60
|
+
".fxe958b{border-radius:20px;}",
|
|
61
|
+
{
|
|
62
|
+
p: -1
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
".f8ydpu5[data-fui-focus-visible]::after{border-radius:20px;}",
|
|
67
|
+
{
|
|
68
|
+
p: -1
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
[
|
|
72
|
+
".f1bars0k{outline:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",
|
|
73
|
+
{
|
|
74
|
+
p: -1
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
const useAttachmentOverflowMenuItemStyles_unstable = (state)=>{
|
|
80
|
+
'use no memo';
|
|
81
|
+
const { imageOnly, designVersion } = state;
|
|
82
|
+
const styles = useStyles();
|
|
83
|
+
const nextStyles = useNextStyles();
|
|
84
|
+
const progressBarStyles = (0, _useProgressBarStylesstyles.useProgressBarStyles)();
|
|
85
|
+
state.root.className = (0, _reactcomponents.mergeClasses)(attachmentOverflowMenuItemClassNames.root, imageOnly && styles.imageOnly, designVersion === 'next' && nextStyles.nextStyles, state.root.className);
|
|
86
|
+
const secondaryContent = _reactcomponents.slot.optional(state.root.secondaryContent, {
|
|
87
|
+
elementType: 'span'
|
|
88
|
+
});
|
|
89
|
+
if (secondaryContent) {
|
|
90
|
+
secondaryContent.className = (0, _reactcomponents.mergeClasses)(styles.secondaryContent, secondaryContent.className);
|
|
91
|
+
state.root.secondaryContent = secondaryContent;
|
|
92
|
+
}
|
|
93
|
+
if (state.progress) {
|
|
94
|
+
state.progress.className = (0, _reactcomponents.mergeClasses)(attachmentOverflowMenuItemClassNames.progress, progressBarStyles.progress, state.progress.className);
|
|
95
|
+
const bar = _reactcomponents.slot.optional(state.progress.bar, {
|
|
96
|
+
elementType: 'div',
|
|
97
|
+
renderByDefault: true
|
|
98
|
+
});
|
|
99
|
+
if (bar) {
|
|
100
|
+
if (state.progress.value === undefined) {
|
|
101
|
+
bar.className = (0, _reactcomponents.mergeClasses)(progressBarStyles.indeterminateProgressBar, bar.className);
|
|
102
|
+
} else {
|
|
103
|
+
bar.className = (0, _reactcomponents.mergeClasses)(progressBarStyles.regularProgressBar, bar.className);
|
|
104
|
+
}
|
|
105
|
+
state.progress.bar = bar;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return state;
|
|
109
|
+
}; //# sourceMappingURL=useAttachmentOverflowMenuItemStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useAttachmentOverflowMenuItemStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, slot } from '@fluentui/react-components';\nimport { useProgressBarStyles } from '../utils/useProgressBarStyles.styles';\nimport type {\n AttachmentOverflowMenuItemSlots,\n AttachmentOverflowMenuItemState,\n} from './AttachmentOverflowMenuItem.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\n\nexport const attachmentOverflowMenuItemClassNames: SlotClassNames<AttachmentOverflowMenuItemSlots> = {\n root: 'fai-AttachmentOverflowMenuItem',\n progress: 'fai-AttachmentOverflowMenuItem__progress',\n};\n\nconst FOCUS_VISIBLE_ATTR = 'data-fui-focus-visible';\n\nconst useStyles = makeStyles({\n imageOnly: {\n alignItems: 'center',\n },\n secondaryContent: {\n display: 'flex',\n alignItems: 'center',\n },\n});\n\nconst useNextStyles = makeStyles({\n nextStyles: {\n borderRadius: '20px',\n [`[${FOCUS_VISIBLE_ATTR}]::after`]: {\n borderRadius: '20px',\n },\n outline: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n },\n});\n\n/**\n * Apply styling to the AttachmentList slots based on the state\n */\nexport const useAttachmentOverflowMenuItemStyles_unstable = (\n state: AttachmentOverflowMenuItemState,\n): AttachmentOverflowMenuItemState => {\n 'use no memo';\n\n const { imageOnly, designVersion } = state;\n const styles = useStyles();\n const nextStyles = useNextStyles();\n const progressBarStyles = useProgressBarStyles();\n\n state.root.className = mergeClasses(\n attachmentOverflowMenuItemClassNames.root,\n imageOnly && styles.imageOnly,\n designVersion === 'next' && nextStyles.nextStyles,\n state.root.className,\n );\n\n const secondaryContent = slot.optional(state.root.secondaryContent, {\n elementType: 'span',\n });\n if (secondaryContent) {\n secondaryContent.className = mergeClasses(styles.secondaryContent, secondaryContent.className);\n state.root.secondaryContent = secondaryContent;\n }\n\n if (state.progress) {\n state.progress.className = mergeClasses(\n attachmentOverflowMenuItemClassNames.progress,\n progressBarStyles.progress,\n state.progress.className,\n );\n\n const bar = slot.optional(state.progress.bar, { elementType: 'div', renderByDefault: true });\n if (bar) {\n if (state.progress.value === undefined) {\n bar.className = mergeClasses(progressBarStyles.indeterminateProgressBar, bar.className);\n } else {\n bar.className = mergeClasses(progressBarStyles.regularProgressBar, bar.className);\n }\n state.progress.bar = bar;\n }\n }\n\n return state;\n};\n"],"names":["attachmentOverflowMenuItemClassNames","bar","root","progress","FOCUS_VISIBLE_ATTR","useStyles","makeStyles","imageOnly","alignItems","secondaryContent","display","d","useNextStyles","__styles","borderRadius","outline","B7oj6ja","Dimara","Dah5zi","qqdqy8","Bkh64rk","e3fwne","Bw0xxkn","styles","oeaueh","nextStyles","Bpd4iqm","progressBarStyles","state","p","className","mergeClasses","designVersion"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IASaA,oCAAAA;eAAAA;;IA+DLC,4CAAK;eAALA;;;iCAxE+B;4CACF;AAQ9B,MAAMD,uCAAwF;UACnGE;cACAC;AACF;AAEA,MAAMC,qBAAqB;AAE3B,MAAMC,YAAYC,IAAAA,yBAAAA,EAAAA;eAChBC;iBACEC;;sBAEFC;gBACEC;iBACAF;;AAEJ,GAAA;IAEAG,GAAA;QAAMC;QAA2B;KAAA;;sBAEfC,IAAAA,yBAAA,EAAA;gBACTT;iBACHU;iBACF;iBACAC;QACFC,SAAA;QACFC,QAAA;QAEAC,QAAA;;QAGAC,QAAO;QAGLC,SAAA;QAEAC,QAAQd;QACRe,SAAMC;QACNC,QAAMC;QACNC,SAAMC;QAENC,SAAM1B;;;OASN;QAAA;YAAA;YAAA;gBACA2B,GAAA,CAAIpB;;;;;YAC+CA;oBACjDmB;;SACF;QAAA;YAAA;YAAA;gBAEAC,GAAA,CAAID;;;;;MAQE3B,+CAAK2B,CAAAA;;oCAKP;UAEFL,SAAAlB;UACFoB,aAAAb;UAEAe,oBAAOC,IAAAA,gDAAAA;IACPA,MAAA1B,IAAA,CAAA4B,SAAA,GAAAC,IAAAA,6BAAA,EAAA/B,qCAAAE,IAAA,EAAAK,aAAAgB,OAAAhB,SAAA,EAAAyB,kBAAA,UAAAP,WAAAA,UAAA,EAAAG,MAAA1B,IAAA,CAAA4B,SAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
attachmentOverflowMenuItemClassNames: function() {
|
|
13
|
+
return attachmentOverflowMenuItemClassNames;
|
|
14
|
+
},
|
|
15
|
+
useAttachmentOverflowMenuItemStyles_unstable: function() {
|
|
16
|
+
return useAttachmentOverflowMenuItemStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
+
const _useProgressBarStylesstyles = require("../utils/useProgressBarStyles.styles");
|
|
21
|
+
const _tokens = require("@fluentui-copilot/tokens");
|
|
22
|
+
const attachmentOverflowMenuItemClassNames = {
|
|
23
|
+
root: 'fai-AttachmentOverflowMenuItem',
|
|
24
|
+
progress: 'fai-AttachmentOverflowMenuItem__progress'
|
|
25
|
+
};
|
|
26
|
+
const FOCUS_VISIBLE_ATTR = 'data-fui-focus-visible';
|
|
27
|
+
const useStyles = (0, _reactcomponents.makeStyles)({
|
|
28
|
+
imageOnly: {
|
|
29
|
+
alignItems: 'center'
|
|
30
|
+
},
|
|
31
|
+
secondaryContent: {
|
|
32
|
+
display: 'flex',
|
|
33
|
+
alignItems: 'center'
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const useNextStyles = (0, _reactcomponents.makeStyles)({
|
|
37
|
+
nextStyles: {
|
|
38
|
+
borderRadius: '20px',
|
|
39
|
+
[`[${FOCUS_VISIBLE_ATTR}]::after`]: {
|
|
40
|
+
borderRadius: '20px'
|
|
41
|
+
},
|
|
42
|
+
outline: `${_tokens.tokens.strokeWidthThin} solid ${_tokens.tokens.colorTransparentStroke}`
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const useAttachmentOverflowMenuItemStyles_unstable = (state)=>{
|
|
46
|
+
'use no memo';
|
|
47
|
+
const { imageOnly, designVersion } = state;
|
|
48
|
+
const styles = useStyles();
|
|
49
|
+
const nextStyles = useNextStyles();
|
|
50
|
+
const progressBarStyles = (0, _useProgressBarStylesstyles.useProgressBarStyles)();
|
|
51
|
+
state.root.className = (0, _reactcomponents.mergeClasses)(attachmentOverflowMenuItemClassNames.root, imageOnly && styles.imageOnly, designVersion === 'next' && nextStyles.nextStyles, state.root.className);
|
|
52
|
+
const secondaryContent = _reactcomponents.slot.optional(state.root.secondaryContent, {
|
|
53
|
+
elementType: 'span'
|
|
54
|
+
});
|
|
55
|
+
if (secondaryContent) {
|
|
56
|
+
secondaryContent.className = (0, _reactcomponents.mergeClasses)(styles.secondaryContent, secondaryContent.className);
|
|
57
|
+
state.root.secondaryContent = secondaryContent;
|
|
58
|
+
}
|
|
59
|
+
if (state.progress) {
|
|
60
|
+
state.progress.className = (0, _reactcomponents.mergeClasses)(attachmentOverflowMenuItemClassNames.progress, progressBarStyles.progress, state.progress.className);
|
|
61
|
+
const bar = _reactcomponents.slot.optional(state.progress.bar, {
|
|
62
|
+
elementType: 'div',
|
|
63
|
+
renderByDefault: true
|
|
64
|
+
});
|
|
65
|
+
if (bar) {
|
|
66
|
+
if (state.progress.value === undefined) {
|
|
67
|
+
bar.className = (0, _reactcomponents.mergeClasses)(progressBarStyles.indeterminateProgressBar, bar.className);
|
|
68
|
+
} else {
|
|
69
|
+
bar.className = (0, _reactcomponents.mergeClasses)(progressBarStyles.regularProgressBar, bar.className);
|
|
70
|
+
}
|
|
71
|
+
state.progress.bar = bar;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return state;
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useAttachmentOverflowMenuItemStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, slot } from '@fluentui/react-components';\nimport { useProgressBarStyles } from '../utils/useProgressBarStyles.styles';\nimport type {\n AttachmentOverflowMenuItemSlots,\n AttachmentOverflowMenuItemState,\n} from './AttachmentOverflowMenuItem.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\n\nexport const attachmentOverflowMenuItemClassNames: SlotClassNames<AttachmentOverflowMenuItemSlots> = {\n root: 'fai-AttachmentOverflowMenuItem',\n progress: 'fai-AttachmentOverflowMenuItem__progress',\n};\n\nconst FOCUS_VISIBLE_ATTR = 'data-fui-focus-visible';\n\nconst useStyles = makeStyles({\n imageOnly: {\n alignItems: 'center',\n },\n secondaryContent: {\n display: 'flex',\n alignItems: 'center',\n },\n});\n\nconst useNextStyles = makeStyles({\n nextStyles: {\n borderRadius: '20px',\n [`[${FOCUS_VISIBLE_ATTR}]::after`]: {\n borderRadius: '20px',\n },\n outline: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n },\n});\n\n/**\n * Apply styling to the AttachmentList slots based on the state\n */\nexport const useAttachmentOverflowMenuItemStyles_unstable = (\n state: AttachmentOverflowMenuItemState,\n): AttachmentOverflowMenuItemState => {\n 'use no memo';\n\n const { imageOnly, designVersion } = state;\n const styles = useStyles();\n const nextStyles = useNextStyles();\n const progressBarStyles = useProgressBarStyles();\n\n state.root.className = mergeClasses(\n attachmentOverflowMenuItemClassNames.root,\n imageOnly && styles.imageOnly,\n designVersion === 'next' && nextStyles.nextStyles,\n state.root.className,\n );\n\n const secondaryContent = slot.optional(state.root.secondaryContent, {\n elementType: 'span',\n });\n if (secondaryContent) {\n secondaryContent.className = mergeClasses(styles.secondaryContent, secondaryContent.className);\n state.root.secondaryContent = secondaryContent;\n }\n\n if (state.progress) {\n state.progress.className = mergeClasses(\n attachmentOverflowMenuItemClassNames.progress,\n progressBarStyles.progress,\n state.progress.className,\n );\n\n const bar = slot.optional(state.progress.bar, { elementType: 'div', renderByDefault: true });\n if (bar) {\n if (state.progress.value === undefined) {\n bar.className = mergeClasses(progressBarStyles.indeterminateProgressBar, bar.className);\n } else {\n bar.className = mergeClasses(progressBarStyles.regularProgressBar, bar.className);\n }\n state.progress.bar = bar;\n }\n }\n\n return state;\n};\n"],"names":["attachmentOverflowMenuItemClassNames","useAttachmentOverflowMenuItemStyles_unstable","root","progress","FOCUS_VISIBLE_ATTR","useStyles","makeStyles","imageOnly","alignItems","secondaryContent","display","useNextStyles","nextStyles","borderRadius","outline","tokens","strokeWidthThin","colorTransparentStroke","state","designVersion","styles","progressBarStyles","useProgressBarStyles","className","mergeClasses","slot","optional","elementType","bar","renderByDefault","value","undefined","indeterminateProgressBar","regularProgressBar"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IASaA,oCAAAA;eAAAA;;IA8BAC,4CAAAA;eAAAA;;;iCAvCkC;4CACV;wBAMd;AAEhB,MAAMD,uCAAwF;IACnGE,MAAM;IACNC,UAAU;AACZ;AAEA,MAAMC,qBAAqB;AAE3B,MAAMC,YAAYC,IAAAA,2BAAAA,EAAW;IAC3BC,WAAW;QACTC,YAAY;IACd;IACAC,kBAAkB;QAChBC,SAAS;QACTF,YAAY;IACd;AACF;AAEA,MAAMG,gBAAgBL,IAAAA,2BAAAA,EAAW;IAC/BM,YAAY;QACVC,cAAc;QACd,CAAC,CAAC,CAAC,EAAET,mBAAmB,QAAQ,CAAC,CAAC,EAAE;YAClCS,cAAc;QAChB;QACAC,SAAS,CAAC,EAAEC,cAAAA,CAAOC,eAAe,CAAC,OAAO,EAAED,cAAAA,CAAOE,sBAAsB,CAAC,CAAC;IAC7E;AACF;AAKO,MAAMhB,+CAA+C,CAC1DiB;IAEA;IAEA,MAAM,EAAEX,SAAS,EAAEY,aAAa,EAAE,GAAGD;IACrC,MAAME,SAASf;IACf,MAAMO,aAAaD;IACnB,MAAMU,oBAAoBC,IAAAA,gDAAAA;IAE1BJ,MAAMhB,IAAI,CAACqB,SAAS,GAAGC,IAAAA,6BAAAA,EACrBxB,qCAAqCE,IAAI,EACzCK,aAAaa,OAAOb,SAAS,EAC7BY,kBAAkB,UAAUP,WAAWA,UAAU,EACjDM,MAAMhB,IAAI,CAACqB,SAAS;IAGtB,MAAMd,mBAAmBgB,qBAAAA,CAAKC,QAAQ,CAACR,MAAMhB,IAAI,CAACO,gBAAgB,EAAE;QAClEkB,aAAa;IACf;IACA,IAAIlB,kBAAkB;QACpBA,iBAAiBc,SAAS,GAAGC,IAAAA,6BAAAA,EAAaJ,OAAOX,gBAAgB,EAAEA,iBAAiBc,SAAS;QAC7FL,MAAMhB,IAAI,CAACO,gBAAgB,GAAGA;IAChC;IAEA,IAAIS,MAAMf,QAAQ,EAAE;QAClBe,MAAMf,QAAQ,CAACoB,SAAS,GAAGC,IAAAA,6BAAAA,EACzBxB,qCAAqCG,QAAQ,EAC7CkB,kBAAkBlB,QAAQ,EAC1Be,MAAMf,QAAQ,CAACoB,SAAS;QAG1B,MAAMK,MAAMH,qBAAAA,CAAKC,QAAQ,CAACR,MAAMf,QAAQ,CAACyB,GAAG,EAAE;YAAED,aAAa;YAAOE,iBAAiB;QAAK;QAC1F,IAAID,KAAK;YACP,IAAIV,MAAMf,QAAQ,CAAC2B,KAAK,KAAKC,WAAW;gBACtCH,IAAIL,SAAS,GAAGC,IAAAA,6BAAAA,EAAaH,kBAAkBW,wBAAwB,EAAEJ,IAAIL,SAAS;YACxF,OAAO;gBACLK,IAAIL,SAAS,GAAGC,IAAAA,6BAAAA,EAAaH,kBAAkBY,kBAAkB,EAAEL,IAAIL,SAAS;YAClF;YACAL,MAAMf,QAAQ,CAACyB,GAAG,GAAGA;QACvB;IACF;IAEA,OAAOV;AACT"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
Attachment: function() {
|
|
13
|
+
return _Attachment.Attachment;
|
|
14
|
+
},
|
|
15
|
+
AttachmentList: function() {
|
|
16
|
+
return _AttachmentList.AttachmentList;
|
|
17
|
+
},
|
|
18
|
+
AttachmentOverflowMenu: function() {
|
|
19
|
+
return _AttachmentOverflowMenu.AttachmentOverflowMenu;
|
|
20
|
+
},
|
|
21
|
+
AttachmentOverflowMenuButton: function() {
|
|
22
|
+
return _AttachmentOverflowMenuButton.AttachmentOverflowMenuButton;
|
|
23
|
+
},
|
|
24
|
+
AttachmentOverflowMenuItem: function() {
|
|
25
|
+
return _AttachmentOverflowMenuItem.AttachmentOverflowMenuItem;
|
|
26
|
+
},
|
|
27
|
+
attachmentClassNames: function() {
|
|
28
|
+
return _Attachment.attachmentClassNames;
|
|
29
|
+
},
|
|
30
|
+
attachmentListClassNames: function() {
|
|
31
|
+
return _AttachmentList.attachmentListClassNames;
|
|
32
|
+
},
|
|
33
|
+
attachmentOverflowMenuButtonClassNames: function() {
|
|
34
|
+
return _AttachmentOverflowMenuButton.attachmentOverflowMenuButtonClassNames;
|
|
35
|
+
},
|
|
36
|
+
attachmentOverflowMenuItemClassNames: function() {
|
|
37
|
+
return _AttachmentOverflowMenuItem.attachmentOverflowMenuItemClassNames;
|
|
38
|
+
},
|
|
39
|
+
renderAttachmentList_unstable: function() {
|
|
40
|
+
return _AttachmentList.renderAttachmentList_unstable;
|
|
41
|
+
},
|
|
42
|
+
renderAttachmentOverflowMenuButton_unstable: function() {
|
|
43
|
+
return _AttachmentOverflowMenuButton.renderAttachmentOverflowMenuButton_unstable;
|
|
44
|
+
},
|
|
45
|
+
renderAttachmentOverflowMenuItem_unstable: function() {
|
|
46
|
+
return _AttachmentOverflowMenuItem.renderAttachmentOverflowMenuItem_unstable;
|
|
47
|
+
},
|
|
48
|
+
renderAttachmentOverflowMenu_unstable: function() {
|
|
49
|
+
return _AttachmentOverflowMenu.renderAttachmentOverflowMenu_unstable;
|
|
50
|
+
},
|
|
51
|
+
renderAttachment_unstable: function() {
|
|
52
|
+
return _Attachment.renderAttachment_unstable;
|
|
53
|
+
},
|
|
54
|
+
useAttachmentListStyles_unstable: function() {
|
|
55
|
+
return _AttachmentList.useAttachmentListStyles_unstable;
|
|
56
|
+
},
|
|
57
|
+
useAttachmentList_unstable: function() {
|
|
58
|
+
return _AttachmentList.useAttachmentList_unstable;
|
|
59
|
+
},
|
|
60
|
+
useAttachmentOverflowMenuButtonStyles_unstable: function() {
|
|
61
|
+
return _AttachmentOverflowMenuButton.useAttachmentOverflowMenuButtonStyles_unstable;
|
|
62
|
+
},
|
|
63
|
+
useAttachmentOverflowMenuButton_unstable: function() {
|
|
64
|
+
return _AttachmentOverflowMenuButton.useAttachmentOverflowMenuButton_unstable;
|
|
65
|
+
},
|
|
66
|
+
useAttachmentOverflowMenuContextValues_unstable: function() {
|
|
67
|
+
return _AttachmentOverflowMenu.useAttachmentOverflowMenuContextValues_unstable;
|
|
68
|
+
},
|
|
69
|
+
useAttachmentOverflowMenuItemStyles_unstable: function() {
|
|
70
|
+
return _AttachmentOverflowMenuItem.useAttachmentOverflowMenuItemStyles_unstable;
|
|
71
|
+
},
|
|
72
|
+
useAttachmentOverflowMenuItem_unstable: function() {
|
|
73
|
+
return _AttachmentOverflowMenuItem.useAttachmentOverflowMenuItem_unstable;
|
|
74
|
+
},
|
|
75
|
+
useAttachmentOverflowMenu_unstable: function() {
|
|
76
|
+
return _AttachmentOverflowMenu.useAttachmentOverflowMenu_unstable;
|
|
77
|
+
},
|
|
78
|
+
useAttachmentStyles_unstable: function() {
|
|
79
|
+
return _Attachment.useAttachmentStyles_unstable;
|
|
80
|
+
},
|
|
81
|
+
useAttachment_unstable: function() {
|
|
82
|
+
return _Attachment.useAttachment_unstable;
|
|
83
|
+
},
|
|
84
|
+
useOverflowStyles: function() {
|
|
85
|
+
return _Attachment.useOverflowStyles;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
const _Attachment = require("./Attachment");
|
|
89
|
+
const _AttachmentList = require("./AttachmentList");
|
|
90
|
+
const _AttachmentOverflowMenu = require("./AttachmentOverflowMenu");
|
|
91
|
+
const _AttachmentOverflowMenuButton = require("./AttachmentOverflowMenuButton");
|
|
92
|
+
const _AttachmentOverflowMenuItem = require("./AttachmentOverflowMenuItem");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export type { AttachmentProps, AttachmentSlots, AttachmentState } from './Attachment';\nexport {\n Attachment,\n attachmentClassNames,\n renderAttachment_unstable,\n useAttachmentStyles_unstable,\n useAttachment_unstable,\n useOverflowStyles,\n} from './Attachment';\nexport type {\n AttachmentDismissedData,\n AttachmentListContextValues,\n AttachmentListProps,\n AttachmentListSlots,\n AttachmentListState,\n} from './AttachmentList';\nexport {\n AttachmentList,\n attachmentListClassNames,\n renderAttachmentList_unstable,\n useAttachmentListStyles_unstable,\n useAttachmentList_unstable,\n} from './AttachmentList';\nexport type {\n AttachmentOverflowMenuContextValues,\n AttachmentOverflowMenuProps,\n AttachmentOverflowMenuSlots,\n AttachmentOverflowMenuState,\n} from './AttachmentOverflowMenu';\nexport {\n AttachmentOverflowMenu,\n renderAttachmentOverflowMenu_unstable,\n useAttachmentOverflowMenuContextValues_unstable,\n useAttachmentOverflowMenu_unstable,\n} from './AttachmentOverflowMenu';\nexport type {\n AttachmentOverflowMenuButtonProps,\n AttachmentOverflowMenuButtonSlots,\n AttachmentOverflowMenuButtonState,\n} from './AttachmentOverflowMenuButton';\nexport {\n AttachmentOverflowMenuButton,\n attachmentOverflowMenuButtonClassNames,\n renderAttachmentOverflowMenuButton_unstable,\n useAttachmentOverflowMenuButtonStyles_unstable,\n useAttachmentOverflowMenuButton_unstable,\n} from './AttachmentOverflowMenuButton';\nexport type {\n AttachmentOverflowMenuItemProps,\n AttachmentOverflowMenuItemSlots,\n AttachmentOverflowMenuItemState,\n} from './AttachmentOverflowMenuItem';\nexport {\n AttachmentOverflowMenuItem,\n attachmentOverflowMenuItemClassNames,\n renderAttachmentOverflowMenuItem_unstable,\n useAttachmentOverflowMenuItemStyles_unstable,\n useAttachmentOverflowMenuItem_unstable,\n} from './AttachmentOverflowMenuItem';\n"],"names":["Attachment","AttachmentList","AttachmentOverflowMenu","AttachmentOverflowMenuButton","AttachmentOverflowMenuItem","attachmentClassNames","attachmentListClassNames","attachmentOverflowMenuButtonClassNames","attachmentOverflowMenuItemClassNames","renderAttachmentList_unstable","renderAttachmentOverflowMenuButton_unstable","renderAttachmentOverflowMenuItem_unstable","renderAttachmentOverflowMenu_unstable","renderAttachment_unstable","useAttachmentListStyles_unstable","useAttachmentList_unstable","useAttachmentOverflowMenuButtonStyles_unstable","useAttachmentOverflowMenuButton_unstable","useAttachmentOverflowMenuContextValues_unstable","useAttachmentOverflowMenuItemStyles_unstable","useAttachmentOverflowMenuItem_unstable","useAttachmentOverflowMenu_unstable","useAttachmentStyles_unstable","useAttachment_unstable","useOverflowStyles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAEEA,UAAU;eAAVA,sBAAU;;IAeVC,cAAc;eAAdA,8BAAc;;IAadC,sBAAsB;eAAtBA,8CAAsB;;IAWtBC,4BAA4B;eAA5BA,0DAA4B;;IAY5BC,0BAA0B;eAA1BA,sDAA0B;;IAlD1BC,oBAAoB;eAApBA,gCAAoB;;IAepBC,wBAAwB;eAAxBA,wCAAwB;;IAwBxBC,sCAAsC;eAAtCA,oEAAsC;;IAYtCC,oCAAoC;eAApCA,gEAAoC;;IAnCpCC,6BAA6B;eAA7BA,6CAA6B;;IAwB7BC,2CAA2C;eAA3CA,yEAA2C;;IAY3CC,yCAAyC;eAAzCA,qEAAyC;;IAxBzCC,qCAAqC;eAArCA,6DAAqC;;IA3BrCC,yBAAyB;eAAzBA,qCAAyB;;IAgBzBC,gCAAgC;eAAhCA,gDAAgC;;IAChCC,0BAA0B;eAA1BA,0CAA0B;;IAuB1BC,8CAA8C;eAA9CA,4EAA8C;;IAC9CC,wCAAwC;eAAxCA,sEAAwC;;IAbxCC,+CAA+C;eAA/CA,uEAA+C;;IAwB/CC,4CAA4C;eAA5CA,wEAA4C;;IAC5CC,sCAAsC;eAAtCA,kEAAsC;;IAxBtCC,kCAAkC;eAAlCA,0DAAkC;;IA5BlCC,4BAA4B;eAA5BA,wCAA4B;;IAC5BC,sBAAsB;eAAtBA,kCAAsB;;IACtBC,iBAAiB;eAAjBA,6BAAiB;;;4BACZ;gCAcA;wCAYA;8CAYA;4CAYA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useProgressBarStyles", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return useProgressBarStyles;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
12
|
+
const indeterminateProgressBarReducedMotion = {
|
|
13
|
+
'0%': {
|
|
14
|
+
opacity: '.2'
|
|
15
|
+
},
|
|
16
|
+
'50%': {
|
|
17
|
+
opacity: '1'
|
|
18
|
+
},
|
|
19
|
+
'100%': {
|
|
20
|
+
opacity: '.2'
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const useProgressBarStyles = (0, _reactcomponents.__styles)({
|
|
24
|
+
progress: {
|
|
25
|
+
a9b677: "fly5x3f",
|
|
26
|
+
qhf8xq: "f1euv43f",
|
|
27
|
+
B5kzvoi: "f1yab3r1",
|
|
28
|
+
oyh7mz: [
|
|
29
|
+
"f1vgc2s3",
|
|
30
|
+
"f1e31b4d"
|
|
31
|
+
],
|
|
32
|
+
j35jbq: [
|
|
33
|
+
"f1e31b4d",
|
|
34
|
+
"f1vgc2s3"
|
|
35
|
+
],
|
|
36
|
+
Bqenvij: "f6ywr7j",
|
|
37
|
+
Beyfa6y: [
|
|
38
|
+
"f16jpd5f",
|
|
39
|
+
"f1aa9q02"
|
|
40
|
+
],
|
|
41
|
+
Bbmb7ep: [
|
|
42
|
+
"f1aa9q02",
|
|
43
|
+
"f16jpd5f"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
regularProgressBar: {
|
|
47
|
+
Bqenvij: "f1l02sjl",
|
|
48
|
+
Bcmaq0h: "ffso0f9"
|
|
49
|
+
},
|
|
50
|
+
indeterminateProgressBar: {
|
|
51
|
+
Bqenvij: "f1l02sjl",
|
|
52
|
+
De3pzq: "f1c21dwh",
|
|
53
|
+
Bcmaq0h: "fc9jjzv",
|
|
54
|
+
jpy9cc: "f3z2g5w",
|
|
55
|
+
Bqo2lbl: "fz5izi4",
|
|
56
|
+
B6plc1d: "fv40pdu",
|
|
57
|
+
I82g5a: "f1uj6jbf"
|
|
58
|
+
}
|
|
59
|
+
}, {
|
|
60
|
+
d: [
|
|
61
|
+
".fly5x3f{width:100%;}",
|
|
62
|
+
".f1euv43f{position:absolute;}",
|
|
63
|
+
".f1yab3r1{bottom:0;}",
|
|
64
|
+
".f1vgc2s3{left:0;}",
|
|
65
|
+
".f1e31b4d{right:0;}",
|
|
66
|
+
".f6ywr7j{height:4px;}",
|
|
67
|
+
".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",
|
|
68
|
+
".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",
|
|
69
|
+
".f1l02sjl{height:100%;}",
|
|
70
|
+
".ffso0f9{background-image:linear-gradient(90deg, var(--colorBrandFlair1) 35%, var(--colorBrandFlair2) 70%, var(--colorBrandFlair3) 92%);}",
|
|
71
|
+
".f1c21dwh{background-color:var(--colorTransparentBackground);}",
|
|
72
|
+
".fc9jjzv{background-image:linear-gradient(90deg, rgba(0,0,0,0) 0%, var(--colorBrandFlair1) 35%, var(--colorBrandFlair2) 70%, var(--colorBrandFlair3) 92%, rgba(0,0,0,0));}"
|
|
73
|
+
],
|
|
74
|
+
m: [
|
|
75
|
+
[
|
|
76
|
+
"@media screen and (prefers-reduced-motion: reduce){.f3z2g5w{max-width:100%;}}",
|
|
77
|
+
{
|
|
78
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
"@media screen and (prefers-reduced-motion: reduce){.fz5izi4{animation-iteration-count:infinite;}}",
|
|
83
|
+
{
|
|
84
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
[
|
|
88
|
+
"@media screen and (prefers-reduced-motion: reduce){.fv40pdu{animation-duration:3s;}}",
|
|
89
|
+
{
|
|
90
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
"@media screen and (prefers-reduced-motion: reduce){.f1uj6jbf{animation-name:ftc26vs;}}",
|
|
95
|
+
{
|
|
96
|
+
m: "screen and (prefers-reduced-motion: reduce)"
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
],
|
|
100
|
+
k: [
|
|
101
|
+
"@keyframes ftc26vs{0%{opacity:.2;}50%{opacity:1;}100%{opacity:.2;}}"
|
|
102
|
+
]
|
|
103
|
+
}); //# sourceMappingURL=useProgressBarStyles.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useProgressBarStyles.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\n\nconst indeterminateProgressBarReducedMotion = {\n '0%': {\n opacity: '.2', // matches indeterminate bar width\n },\n '50%': {\n opacity: '1',\n },\n '100%': {\n opacity: '.2',\n },\n};\n\n/**\n * @internal\n */\nexport const useProgressBarStyles = makeStyles({\n progress: {\n width: '100%',\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n height: '4px',\n borderBottomLeftRadius: tokens.borderRadiusMedium,\n borderBottomRightRadius: tokens.borderRadiusMedium,\n },\n regularProgressBar: {\n height: '100%',\n backgroundImage: `linear-gradient(90deg, ${tokens.colorBrandFlair1} 35%, ${tokens.colorBrandFlair2} 70%, ${tokens.colorBrandFlair3} 92%)`,\n },\n indeterminateProgressBar: {\n height: '100%',\n backgroundColor: tokens.colorTransparentBackground,\n backgroundImage: `linear-gradient(90deg, rgba(0,0,0,0) 0%, ${tokens.colorBrandFlair1} 35%, ${tokens.colorBrandFlair2} 70%, ${tokens.colorBrandFlair3} 92%, rgba(0,0,0,0))`,\n '@media screen and (prefers-reduced-motion: reduce)': {\n maxWidth: '100%',\n animationIterationCount: 'infinite',\n animationDuration: '3s',\n animationName: indeterminateProgressBarReducedMotion,\n },\n },\n});\n"],"names":["progress","indeterminateProgressBarReducedMotion","opacity","__styles","width","position","bottom","left","right","height","borderBottomLeftRadius","borderBottomRightRadius","tokens","Bbmb7ep","backgroundImage","Bcmaq0h","backgroundColor","maxWidth","animationIterationCount","animationDuration","animationName","d"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAmBEA;;;eAAAA;;;iCAnBiB;AAGnB,MAAMC,wCAAwC;UAC5C;iBACEC;;WAEF;iBACEA;;YAEF;iBACEA;;AAEJ;AAMEF,MAAAA,uBAAUG,IAAAA,yBAAA,EAAA;cACRC;gBACAC;gBACAC;iBACAC;gBACAC;YAAAA;YAAO;SAAA;gBACPC;YAAAA;YAAQ;SAAA;iBACRC;iBACAC;YAAAA;YAAAA;SAAyBC;QAC3BC,SAAA;YAAA;YAAA;SAAA;;wBAEU;iBACRC;QACFC,SAAA;;8BAEU;iBACRC;gBACAF;iBACA;gBACEG;iBACAC;iBACAC;gBACAC;;;IAGNC,GAAG;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;QAAA;KAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "useProgressBarStyles", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return useProgressBarStyles;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
12
|
+
const _tokens = require("@fluentui-copilot/tokens");
|
|
13
|
+
const indeterminateProgressBarReducedMotion = {
|
|
14
|
+
'0%': {
|
|
15
|
+
opacity: '.2'
|
|
16
|
+
},
|
|
17
|
+
'50%': {
|
|
18
|
+
opacity: '1'
|
|
19
|
+
},
|
|
20
|
+
'100%': {
|
|
21
|
+
opacity: '.2'
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const useProgressBarStyles = (0, _reactcomponents.makeStyles)({
|
|
25
|
+
progress: {
|
|
26
|
+
width: '100%',
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
bottom: 0,
|
|
29
|
+
left: 0,
|
|
30
|
+
right: 0,
|
|
31
|
+
height: '4px',
|
|
32
|
+
borderBottomLeftRadius: _tokens.tokens.borderRadiusMedium,
|
|
33
|
+
borderBottomRightRadius: _tokens.tokens.borderRadiusMedium
|
|
34
|
+
},
|
|
35
|
+
regularProgressBar: {
|
|
36
|
+
height: '100%',
|
|
37
|
+
backgroundImage: `linear-gradient(90deg, ${_tokens.tokens.colorBrandFlair1} 35%, ${_tokens.tokens.colorBrandFlair2} 70%, ${_tokens.tokens.colorBrandFlair3} 92%)`
|
|
38
|
+
},
|
|
39
|
+
indeterminateProgressBar: {
|
|
40
|
+
height: '100%',
|
|
41
|
+
backgroundColor: _tokens.tokens.colorTransparentBackground,
|
|
42
|
+
backgroundImage: `linear-gradient(90deg, rgba(0,0,0,0) 0%, ${_tokens.tokens.colorBrandFlair1} 35%, ${_tokens.tokens.colorBrandFlair2} 70%, ${_tokens.tokens.colorBrandFlair3} 92%, rgba(0,0,0,0))`,
|
|
43
|
+
'@media screen and (prefers-reduced-motion: reduce)': {
|
|
44
|
+
maxWidth: '100%',
|
|
45
|
+
animationIterationCount: 'infinite',
|
|
46
|
+
animationDuration: '3s',
|
|
47
|
+
animationName: indeterminateProgressBarReducedMotion
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["useProgressBarStyles.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\n\nconst indeterminateProgressBarReducedMotion = {\n '0%': {\n opacity: '.2', // matches indeterminate bar width\n },\n '50%': {\n opacity: '1',\n },\n '100%': {\n opacity: '.2',\n },\n};\n\n/**\n * @internal\n */\nexport const useProgressBarStyles = makeStyles({\n progress: {\n width: '100%',\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n height: '4px',\n borderBottomLeftRadius: tokens.borderRadiusMedium,\n borderBottomRightRadius: tokens.borderRadiusMedium,\n },\n regularProgressBar: {\n height: '100%',\n backgroundImage: `linear-gradient(90deg, ${tokens.colorBrandFlair1} 35%, ${tokens.colorBrandFlair2} 70%, ${tokens.colorBrandFlair3} 92%)`,\n },\n indeterminateProgressBar: {\n height: '100%',\n backgroundColor: tokens.colorTransparentBackground,\n backgroundImage: `linear-gradient(90deg, rgba(0,0,0,0) 0%, ${tokens.colorBrandFlair1} 35%, ${tokens.colorBrandFlair2} 70%, ${tokens.colorBrandFlair3} 92%, rgba(0,0,0,0))`,\n '@media screen and (prefers-reduced-motion: reduce)': {\n maxWidth: '100%',\n animationIterationCount: 'infinite',\n animationDuration: '3s',\n animationName: indeterminateProgressBarReducedMotion,\n },\n },\n});\n"],"names":["useProgressBarStyles","indeterminateProgressBarReducedMotion","opacity","makeStyles","progress","width","position","bottom","left","right","height","borderBottomLeftRadius","tokens","borderRadiusMedium","borderBottomRightRadius","regularProgressBar","backgroundImage","colorBrandFlair1","colorBrandFlair2","colorBrandFlair3","indeterminateProgressBar","backgroundColor","colorTransparentBackground","maxWidth","animationIterationCount","animationDuration","animationName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAkBaA;;;eAAAA;;;iCAlBc;wBACJ;AAEvB,MAAMC,wCAAwC;IAC5C,MAAM;QACJC,SAAS;IACX;IACA,OAAO;QACLA,SAAS;IACX;IACA,QAAQ;QACNA,SAAS;IACX;AACF;AAKO,MAAMF,uBAAuBG,IAAAA,2BAAAA,EAAW;IAC7CC,UAAU;QACRC,OAAO;QACPC,UAAU;QACVC,QAAQ;QACRC,MAAM;QACNC,OAAO;QACPC,QAAQ;QACRC,wBAAwBC,cAAAA,CAAOC,kBAAkB;QACjDC,yBAAyBF,cAAAA,CAAOC,kBAAkB;IACpD;IACAE,oBAAoB;QAClBL,QAAQ;QACRM,iBAAiB,CAAC,uBAAuB,EAAEJ,cAAAA,CAAOK,gBAAgB,CAAC,MAAM,EAAEL,cAAAA,CAAOM,gBAAgB,CAAC,MAAM,EAAEN,cAAAA,CAAOO,gBAAgB,CAAC,KAAK,CAAC;IAC3I;IACAC,0BAA0B;QACxBV,QAAQ;QACRW,iBAAiBT,cAAAA,CAAOU,0BAA0B;QAClDN,iBAAiB,CAAC,yCAAyC,EAAEJ,cAAAA,CAAOK,gBAAgB,CAAC,MAAM,EAAEL,cAAAA,CAAOM,gBAAgB,CAAC,MAAM,EAAEN,cAAAA,CAAOO,gBAAgB,CAAC,qBAAqB,CAAC;QAC3K,sDAAsD;YACpDI,UAAU;YACVC,yBAAyB;YACzBC,mBAAmB;YACnBC,eAAezB;QACjB;IACF;AACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
AttachmentListContext: function() {
|
|
13
|
+
return AttachmentListContext;
|
|
14
|
+
},
|
|
15
|
+
AttachmentListProvider: function() {
|
|
16
|
+
return AttachmentListProvider;
|
|
17
|
+
},
|
|
18
|
+
useAttachmentListContext_unstable: function() {
|
|
19
|
+
return useAttachmentListContext_unstable;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _reactcontextselector = require("@fluentui/react-context-selector");
|
|
23
|
+
const AttachmentListContext = (0, _reactcontextselector.createContext)(undefined);
|
|
24
|
+
const attachmentListContextDefaultValue = {
|
|
25
|
+
onAttachmentDismiss: ()=>null,
|
|
26
|
+
shouldUseOverflow: false,
|
|
27
|
+
numberOfAttachments: 0
|
|
28
|
+
};
|
|
29
|
+
const AttachmentListProvider = AttachmentListContext.Provider;
|
|
30
|
+
const useAttachmentListContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(AttachmentListContext, (ctx = attachmentListContextDefaultValue)=>selector(ctx));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["attachmentListContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentListState } from '../components/index';\n\nexport const AttachmentListContext: Context<AttachmentListContextValue> = createContext<\n AttachmentListContextValue | undefined\n>(undefined) as Context<AttachmentListContextValue>;\n\nconst attachmentListContextDefaultValue: AttachmentListContextValue = {\n onAttachmentDismiss: () => null,\n shouldUseOverflow: false,\n numberOfAttachments: 0,\n};\n\n/**\n * Context shared between AttachmentList and its children components\n */\nexport type AttachmentListContextValue = Pick<\n AttachmentListState,\n 'onAttachmentDismiss' | 'shouldUseOverflow' | 'numberOfAttachments'\n>;\n\nexport const AttachmentListProvider = AttachmentListContext.Provider;\n\nexport const useAttachmentListContext_unstable = <T>(selector: ContextSelector<AttachmentListContextValue, T>): T =>\n useContextSelector(AttachmentListContext, (ctx = attachmentListContextDefaultValue) => selector(ctx));\n"],"names":["AttachmentListContext","AttachmentListProvider","useAttachmentListContext_unstable","createContext","undefined","attachmentListContextDefaultValue","onAttachmentDismiss","shouldUseOverflow","numberOfAttachments","Provider","selector","useContextSelector","ctx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIaA,qBAAAA;eAAAA;;IAkBAC,sBAAAA;eAAAA;;IAEAC,iCAAAA;eAAAA;;;sCAxBqC;AAI3C,MAAMF,wBAA6DG,IAAAA,mCAAAA,EAExEC;AAEF,MAAMC,oCAAgE;IACpEC,qBAAqB,IAAM;IAC3BC,mBAAmB;IACnBC,qBAAqB;AACvB;AAUO,MAAMP,yBAAyBD,sBAAsBS,QAAQ;AAE7D,MAAMP,oCAAoC,CAAIQ,WACnDC,IAAAA,wCAAAA,EAAmBX,uBAAuB,CAACY,MAAMP,iCAAiC,GAAKK,SAASE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
AttachmentOverflowMenuContext: function() {
|
|
13
|
+
return AttachmentOverflowMenuContext;
|
|
14
|
+
},
|
|
15
|
+
AttachmentOverflowMenuProvider: function() {
|
|
16
|
+
return AttachmentOverflowMenuProvider;
|
|
17
|
+
},
|
|
18
|
+
useAttachmentOverflowMenuContext_unstable: function() {
|
|
19
|
+
return useAttachmentOverflowMenuContext_unstable;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _reactcontextselector = require("@fluentui/react-context-selector");
|
|
23
|
+
const AttachmentOverflowMenuContext = (0, _reactcontextselector.createContext)(undefined);
|
|
24
|
+
const overflowMenuContextDefaultValue = {
|
|
25
|
+
isOverflowing: false,
|
|
26
|
+
overflowButtonRef: undefined,
|
|
27
|
+
overflowCount: 0
|
|
28
|
+
};
|
|
29
|
+
const AttachmentOverflowMenuProvider = AttachmentOverflowMenuContext.Provider;
|
|
30
|
+
const useAttachmentOverflowMenuContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(AttachmentOverflowMenuContext, (ctx = overflowMenuContextDefaultValue)=>selector(ctx));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["attachmentOverflowMenuContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentOverflowMenuState } from '../components/index';\n\nexport const AttachmentOverflowMenuContext: Context<AttachmentOverflowMenuContextValue> = createContext<\n AttachmentOverflowMenuContextValue | undefined\n>(undefined) as Context<AttachmentOverflowMenuContextValue>;\n\nconst overflowMenuContextDefaultValue: AttachmentOverflowMenuContextValue = {\n isOverflowing: false,\n overflowButtonRef: undefined,\n overflowCount: 0,\n};\n\n/**\n * Context shared between AttachmentOverflowMenu and its children components\n */\nexport type AttachmentOverflowMenuContextValue = Pick<\n AttachmentOverflowMenuState,\n 'isOverflowing' | 'overflowButtonRef' | 'overflowCount'\n>;\nexport const AttachmentOverflowMenuProvider = AttachmentOverflowMenuContext.Provider;\n\nexport const useAttachmentOverflowMenuContext_unstable = <T>(\n selector: ContextSelector<AttachmentOverflowMenuContextValue, T>,\n): T => useContextSelector(AttachmentOverflowMenuContext, (ctx = overflowMenuContextDefaultValue) => selector(ctx));\n"],"names":["AttachmentOverflowMenuContext","AttachmentOverflowMenuProvider","useAttachmentOverflowMenuContext_unstable","createContext","undefined","overflowMenuContextDefaultValue","isOverflowing","overflowButtonRef","overflowCount","Provider","selector","useContextSelector","ctx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIaA,6BAAAA;eAAAA;;IAiBAC,8BAAAA;eAAAA;;IAEAC,yCAAAA;eAAAA;;;sCAvBqC;AAI3C,MAAMF,gCAA6EG,IAAAA,mCAAAA,EAExFC;AAEF,MAAMC,kCAAsE;IAC1EC,eAAe;IACfC,mBAAmBH;IACnBI,eAAe;AACjB;AASO,MAAMP,iCAAiCD,8BAA8BS,QAAQ;AAE7E,MAAMP,4CAA4C,CACvDQ,WACMC,IAAAA,wCAAAA,EAAmBX,+BAA+B,CAACY,MAAMP,+BAA+B,GAAKK,SAASE"}
|