@fluentui-copilot/react-attachments 0.12.2 → 0.12.3-hotfix.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.
Files changed (200) hide show
  1. package/CHANGELOG.json +45 -1
  2. package/CHANGELOG.md +21 -2
  3. package/lib/AgentTag.js +0 -1
  4. package/lib/Attachment.js +0 -1
  5. package/lib/AttachmentList.js +0 -1
  6. package/lib/AttachmentOverflowMenu.js +0 -1
  7. package/lib/AttachmentOverflowMenuButton.js +0 -1
  8. package/lib/AttachmentOverflowMenuItem.js +0 -1
  9. package/lib/AttachmentTag.js +0 -1
  10. package/lib/AttachmentTagItem.js +0 -1
  11. package/lib/AttachmentTagList.js +0 -1
  12. package/lib/components/AgentTag/AgentTag.js +4 -5
  13. package/lib/components/AgentTag/AgentTag.types.js +1 -2
  14. package/lib/components/AgentTag/index.js +0 -1
  15. package/lib/components/AgentTag/renderAgentTag.js +3 -5
  16. package/lib/components/AgentTag/useAgentTag.js +7 -9
  17. package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js +66 -0
  18. package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
  19. package/lib/components/Attachment/Attachment.js +5 -6
  20. package/lib/components/Attachment/Attachment.types.js +1 -2
  21. package/lib/components/Attachment/index.js +0 -1
  22. package/lib/components/Attachment/renderAttachment.js +36 -31
  23. package/lib/components/Attachment/useAttachment.js +85 -95
  24. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js +293 -0
  25. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  26. package/lib/components/AttachmentList/AttachmentList.js +6 -7
  27. package/lib/components/AttachmentList/AttachmentList.types.js +1 -2
  28. package/lib/components/AttachmentList/index.js +0 -1
  29. package/lib/components/AttachmentList/renderAttachmentList.js +25 -25
  30. package/lib/components/AttachmentList/useAttachmentList.js +112 -119
  31. package/lib/components/AttachmentList/useAttachmentList.js.map +1 -1
  32. package/lib/components/AttachmentList/useAttachmentListContextValues.js +9 -13
  33. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js +44 -0
  34. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  35. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +8 -9
  36. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +1 -2
  37. package/lib/components/AttachmentOverflowMenu/index.js +0 -1
  38. package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +8 -13
  39. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +9 -15
  40. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +10 -15
  41. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +5 -6
  42. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +1 -2
  43. package/lib/components/AttachmentOverflowMenuButton/index.js +0 -1
  44. package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +11 -10
  45. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +36 -45
  46. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +94 -0
  47. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  48. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +4 -5
  49. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +1 -2
  50. package/lib/components/AttachmentOverflowMenuItem/index.js +0 -1
  51. package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +9 -8
  52. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +41 -49
  53. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +57 -0
  54. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  55. package/lib/components/AttachmentTag/AttachmentTag.js +5 -7
  56. package/lib/components/AttachmentTag/AttachmentTag.types.js +1 -2
  57. package/lib/components/AttachmentTag/index.js +0 -1
  58. package/lib/components/AttachmentTag/renderAttachmentTag.js +10 -8
  59. package/lib/components/AttachmentTag/useAttachmentTag.js +9 -11
  60. package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js +98 -0
  61. package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js.map +1 -0
  62. package/lib/components/AttachmentTagItem/AttachmentTagItem.js +4 -6
  63. package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js +1 -2
  64. package/lib/components/AttachmentTagItem/index.js +0 -1
  65. package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js +10 -8
  66. package/lib/components/AttachmentTagItem/useAttachmentTagItem.js +9 -11
  67. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js +34 -0
  68. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js.map +1 -0
  69. package/lib/components/AttachmentTagList/AttachmentTagList.js +6 -8
  70. package/lib/components/AttachmentTagList/AttachmentTagList.types.js +1 -2
  71. package/lib/components/AttachmentTagList/index.js +0 -1
  72. package/lib/components/AttachmentTagList/renderAttachmentTagList.js +7 -9
  73. package/lib/components/AttachmentTagList/useAttachmentTagList.js +21 -25
  74. package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js +8 -11
  75. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js +21 -0
  76. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js.map +1 -0
  77. package/lib/components/index.js +0 -1
  78. package/lib/components/utils/useAttachmentTagSlots.js +45 -52
  79. package/lib/components/utils/useProgressBarStyles.styles.raw.js +42 -0
  80. package/lib/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  81. package/lib/contexts/attachmentListContext.js +3 -4
  82. package/lib/contexts/attachmentOverflowMenuContext.js +4 -5
  83. package/lib/contexts/attachmentTagListContext.js +2 -3
  84. package/lib/index.js +0 -1
  85. package/lib-commonjs/AgentTag.js +0 -1
  86. package/lib-commonjs/Attachment.js +0 -1
  87. package/lib-commonjs/AttachmentList.js +0 -1
  88. package/lib-commonjs/AttachmentOverflowMenu.js +0 -1
  89. package/lib-commonjs/AttachmentOverflowMenuButton.js +0 -1
  90. package/lib-commonjs/AttachmentOverflowMenuItem.js +0 -1
  91. package/lib-commonjs/AttachmentTag.js +0 -1
  92. package/lib-commonjs/AttachmentTagItem.js +0 -1
  93. package/lib-commonjs/AttachmentTagList.js +0 -1
  94. package/lib-commonjs/components/AgentTag/AgentTag.js +1 -1
  95. package/lib-commonjs/components/AgentTag/AgentTag.js.map +1 -1
  96. package/lib-commonjs/components/AgentTag/AgentTag.types.js +0 -1
  97. package/lib-commonjs/components/AgentTag/index.js +0 -1
  98. package/lib-commonjs/components/AgentTag/renderAgentTag.js +1 -1
  99. package/lib-commonjs/components/AgentTag/renderAgentTag.js.map +1 -1
  100. package/lib-commonjs/components/AgentTag/useAgentTag.js +1 -1
  101. package/lib-commonjs/components/AgentTag/useAgentTag.js.map +1 -1
  102. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js +82 -0
  103. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
  104. package/lib-commonjs/components/Attachment/Attachment.js +1 -1
  105. package/lib-commonjs/components/Attachment/Attachment.js.map +1 -1
  106. package/lib-commonjs/components/Attachment/Attachment.types.js +0 -1
  107. package/lib-commonjs/components/Attachment/index.js +0 -1
  108. package/lib-commonjs/components/Attachment/renderAttachment.js +1 -1
  109. package/lib-commonjs/components/Attachment/renderAttachment.js.map +1 -1
  110. package/lib-commonjs/components/Attachment/useAttachment.js +1 -1
  111. package/lib-commonjs/components/Attachment/useAttachment.js.map +1 -1
  112. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js +312 -0
  113. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  114. package/lib-commonjs/components/AttachmentList/AttachmentList.js +1 -1
  115. package/lib-commonjs/components/AttachmentList/AttachmentList.js.map +1 -1
  116. package/lib-commonjs/components/AttachmentList/AttachmentList.types.js +0 -1
  117. package/lib-commonjs/components/AttachmentList/index.js +0 -1
  118. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js +1 -1
  119. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js.map +1 -1
  120. package/lib-commonjs/components/AttachmentList/useAttachmentList.js +6 -2
  121. package/lib-commonjs/components/AttachmentList/useAttachmentList.js.map +1 -1
  122. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js +1 -1
  123. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js.map +1 -1
  124. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js +60 -0
  125. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  126. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +1 -1
  127. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -1
  128. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +0 -1
  129. package/lib-commonjs/components/AttachmentOverflowMenu/index.js +0 -1
  130. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +1 -1
  131. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -1
  132. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +1 -1
  133. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -1
  134. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +1 -1
  135. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -1
  136. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +1 -1
  137. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -1
  138. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +0 -1
  139. package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js +0 -1
  140. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +1 -1
  141. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -1
  142. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +1 -1
  143. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -1
  144. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +110 -0
  145. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  146. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +1 -1
  147. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -1
  148. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +0 -1
  149. package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js +0 -1
  150. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +1 -1
  151. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -1
  152. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +1 -1
  153. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -1
  154. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +73 -0
  155. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  156. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js +1 -1
  157. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js.map +1 -1
  158. package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js +0 -1
  159. package/lib-commonjs/components/AttachmentTag/index.js +0 -1
  160. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js +1 -1
  161. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js.map +1 -1
  162. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js +1 -1
  163. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js.map +1 -1
  164. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js +118 -0
  165. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js.map +1 -0
  166. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js +1 -1
  167. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js.map +1 -1
  168. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js +0 -1
  169. package/lib-commonjs/components/AttachmentTagItem/index.js +0 -1
  170. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js +1 -1
  171. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js.map +1 -1
  172. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js +1 -1
  173. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js.map +1 -1
  174. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js +50 -0
  175. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js.map +1 -0
  176. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js +1 -1
  177. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js.map +1 -1
  178. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js +0 -1
  179. package/lib-commonjs/components/AttachmentTagList/index.js +0 -1
  180. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js +1 -1
  181. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js.map +1 -1
  182. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js +1 -1
  183. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js.map +1 -1
  184. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js +1 -1
  185. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +1 -1
  186. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js +37 -0
  187. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js.map +1 -0
  188. package/lib-commonjs/components/index.js +0 -1
  189. package/lib-commonjs/components/utils/useAttachmentTagSlots.js +1 -1
  190. package/lib-commonjs/components/utils/useAttachmentTagSlots.js.map +1 -1
  191. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js +50 -0
  192. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  193. package/lib-commonjs/contexts/attachmentListContext.js +1 -1
  194. package/lib-commonjs/contexts/attachmentListContext.js.map +1 -1
  195. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js +1 -1
  196. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js.map +1 -1
  197. package/lib-commonjs/contexts/attachmentTagListContext.js +1 -1
  198. package/lib-commonjs/contexts/attachmentTagListContext.js.map +1 -1
  199. package/lib-commonjs/index.js +0 -1
  200. package/package.json +11 -15
@@ -9,49 +9,40 @@ import { useAttachmentOverflowMenuContext_unstable } from '../../contexts/attach
9
9
  *
10
10
  * @param props - props from this instance of AttachmentOverflowMenuButton
11
11
  * @param ref - reference to root HTMLElement of AttachmentOverflowMenuButton
12
- */
13
- export const useAttachmentOverflowMenuButton_unstable = (props, ref) => {
14
- const {
15
- children,
16
- text
17
- } = props;
18
- const {
19
- isOverflowing,
20
- overflowCount,
21
- overflowButtonRef
22
- } = useAttachmentOverflowMenuContext_unstable(context => context);
23
- const isLoading = !!props.isLoading;
24
- const designVersion = useDesignVersion(props.designVersion);
25
- const mode = useCopilotMode(props.mode);
26
- const processedText = children !== null && children !== void 0 ? children : typeof text === 'function' ? text(overflowCount) : text;
27
- return {
28
- components: {
29
- root: 'button',
30
- progress: ProgressBar
31
- },
32
- root: slot.always(getIntrinsicElementProps('button', {
33
- ref: useMergedRefs(ref, overflowButtonRef),
34
- ...props
35
- }), {
36
- defaultProps: {
37
- children: processedText !== null && processedText !== void 0 ? processedText : `+${overflowCount}`
38
- },
39
- elementType: 'button'
40
- }),
41
- progress: slot.always(props.progress, {
42
- defaultProps: {
43
- value: undefined,
44
- shape: 'square',
45
- thickness: 'large',
46
- 'aria-label': 'Loading'
47
- },
48
- elementType: ProgressBar
49
- }),
50
- isOverflowing,
51
- overflowCount,
52
- isLoading,
53
- designVersion,
54
- mode
55
- };
12
+ */ export const useAttachmentOverflowMenuButton_unstable = (props, ref)=>{
13
+ const { children, text } = props;
14
+ const { isOverflowing, overflowCount, overflowButtonRef } = useAttachmentOverflowMenuContext_unstable((context)=>context);
15
+ const isLoading = !!props.isLoading;
16
+ const designVersion = useDesignVersion(props.designVersion);
17
+ const mode = useCopilotMode(props.mode);
18
+ const processedText = children !== null && children !== void 0 ? children : typeof text === 'function' ? text(overflowCount) : text;
19
+ return {
20
+ components: {
21
+ root: 'button',
22
+ progress: ProgressBar
23
+ },
24
+ root: slot.always(getIntrinsicElementProps('button', {
25
+ ref: useMergedRefs(ref, overflowButtonRef),
26
+ ...props
27
+ }), {
28
+ defaultProps: {
29
+ children: processedText !== null && processedText !== void 0 ? processedText : `+${overflowCount}`
30
+ },
31
+ elementType: 'button'
32
+ }),
33
+ progress: slot.always(props.progress, {
34
+ defaultProps: {
35
+ value: undefined,
36
+ shape: 'square',
37
+ thickness: 'large',
38
+ 'aria-label': 'Loading'
39
+ },
40
+ elementType: ProgressBar
41
+ }),
42
+ isOverflowing,
43
+ overflowCount,
44
+ isLoading,
45
+ designVersion,
46
+ mode
47
+ };
56
48
  };
57
- //# sourceMappingURL=useAttachmentOverflowMenuButton.js.map
@@ -0,0 +1,94 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses, slot, typographyStyles } from '@fluentui/react-components';
2
+ import { tokens } from '@fluentui-copilot/tokens';
3
+ import { useProgressBarStyles } from '../utils/useProgressBarStyles.styles';
4
+ export const attachmentOverflowMenuButtonClassNames = {
5
+ root: 'fai-AttachmentOverflowMenuButton',
6
+ progress: 'fai-AttachmentOverflowMenuButton__progress'
7
+ };
8
+ const useRootBaseClassName = makeResetStyles({
9
+ color: tokens.colorNeutralForeground1,
10
+ alignItems: 'center',
11
+ backgroundColor: tokens.colorSubtleBackground,
12
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,
13
+ borderRadius: tokens.borderRadiusMedium,
14
+ boxSizing: 'border-box',
15
+ columnGap: tokens.spacingHorizontalSNudge,
16
+ cursor: 'pointer',
17
+ display: 'inline-flex',
18
+ flexWrap: 'nowrap',
19
+ fontFamily: typographyStyles.body1.fontFamily,
20
+ fontSize: typographyStyles.body1.fontSize,
21
+ fontWeight: typographyStyles.body1.fontWeight,
22
+ justifyContent: 'center',
23
+ padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`,
24
+ verticalAlign: 'middle',
25
+ position: 'relative',
26
+ ':hover': {
27
+ cursor: 'pointer',
28
+ backgroundColor: tokens.colorSubtleBackgroundHover,
29
+ color: tokens.colorNeutralForeground2Hover
30
+ },
31
+ ':active': {
32
+ backgroundColor: tokens.colorSubtleBackgroundPressed,
33
+ color: tokens.colorNeutralForeground2Pressed
34
+ },
35
+ '@media (forced-colors: active)': {
36
+ ':hover': {
37
+ backgroundColor: 'HighlightText'
38
+ },
39
+ ':active': {
40
+ backgroundColor: 'HighlightText'
41
+ }
42
+ }
43
+ });
44
+ const useNextStyles = makeStyles({
45
+ root: {
46
+ borderRadius: tokens.borderRadiusXLarge,
47
+ border: 'none',
48
+ color: tokens.colorNeutralForeground2,
49
+ backgroundColor: tokens.colorNeutralBackground3,
50
+ ':hover': {
51
+ cursor: 'pointer',
52
+ color: tokens.colorNeutralForeground2Hover,
53
+ backgroundColor: tokens.colorNeutralBackground3Hover
54
+ },
55
+ ':active': {
56
+ color: tokens.colorNeutralForeground2Pressed,
57
+ backgroundColor: tokens.colorNeutralBackground3Pressed
58
+ }
59
+ },
60
+ canvas: {
61
+ minHeight: '40px',
62
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`
63
+ },
64
+ sidecar: {
65
+ minHeight: '32px',
66
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`
67
+ }
68
+ });
69
+ /**
70
+ * Apply styling to the AttachmentOverflowMenuButton slots based on the state
71
+ */ export const useAttachmentOverflowMenuButtonStyles_unstable = (state)=>{
72
+ 'use no memo';
73
+ const { designVersion, mode } = state;
74
+ const rootBaseClassName = useRootBaseClassName();
75
+ const progressBarStyles = useProgressBarStyles();
76
+ const nextStyles = useNextStyles();
77
+ state.root.className = mergeClasses(attachmentOverflowMenuButtonClassNames.root, rootBaseClassName, designVersion === 'next' && nextStyles.root, designVersion === 'next' && nextStyles[mode], state.root.className);
78
+ if (state.progress) {
79
+ state.progress.className = mergeClasses(attachmentOverflowMenuButtonClassNames.progress, progressBarStyles.progress, state.progress.className);
80
+ const bar = slot.optional(state.progress.bar, {
81
+ elementType: 'div',
82
+ renderByDefault: true
83
+ });
84
+ if (bar) {
85
+ if (state.progress.value === undefined) {
86
+ bar.className = mergeClasses(progressBarStyles.indeterminateProgressBar, bar.className);
87
+ } else {
88
+ bar.className = mergeClasses(progressBarStyles.regularProgressBar, bar.className);
89
+ }
90
+ state.progress.bar = bar;
91
+ }
92
+ }
93
+ return state;
94
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentOverflowMenuButtonStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses, slot, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport { useProgressBarStyles } from '../utils/useProgressBarStyles.styles';\nimport type {\n AttachmentOverflowMenuButtonSlots,\n AttachmentOverflowMenuButtonState,\n} from './AttachmentOverflowMenuButton.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentOverflowMenuButtonClassNames: SlotClassNames<AttachmentOverflowMenuButtonSlots> = {\n root: 'fai-AttachmentOverflowMenuButton',\n progress: 'fai-AttachmentOverflowMenuButton__progress',\n};\n\nconst useRootBaseClassName = makeResetStyles({\n color: tokens.colorNeutralForeground1,\n alignItems: 'center',\n backgroundColor: tokens.colorSubtleBackground,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n columnGap: tokens.spacingHorizontalSNudge,\n cursor: 'pointer',\n display: 'inline-flex',\n flexWrap: 'nowrap',\n fontFamily: typographyStyles.body1.fontFamily,\n fontSize: typographyStyles.body1.fontSize,\n fontWeight: typographyStyles.body1.fontWeight,\n justifyContent: 'center',\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`,\n verticalAlign: 'middle',\n position: 'relative',\n\n ':hover': {\n cursor: 'pointer',\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground2Hover,\n },\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground2Pressed,\n },\n '@media (forced-colors: active)': {\n ':hover': {\n backgroundColor: 'HighlightText',\n },\n ':active': {\n backgroundColor: 'HighlightText',\n },\n },\n});\n\nconst useNextStyles = makeStyles({\n root: {\n borderRadius: tokens.borderRadiusXLarge,\n border: 'none',\n color: tokens.colorNeutralForeground2,\n backgroundColor: tokens.colorNeutralBackground3,\n ':hover': {\n cursor: 'pointer',\n color: tokens.colorNeutralForeground2Hover,\n backgroundColor: tokens.colorNeutralBackground3Hover,\n },\n ':active': {\n color: tokens.colorNeutralForeground2Pressed,\n backgroundColor: tokens.colorNeutralBackground3Pressed,\n },\n },\n canvas: {\n minHeight: '40px',\n padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,\n },\n sidecar: {\n minHeight: '32px',\n padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,\n },\n});\n\n/**\n * Apply styling to the AttachmentOverflowMenuButton slots based on the state\n */\nexport const useAttachmentOverflowMenuButtonStyles_unstable = (\n state: AttachmentOverflowMenuButtonState,\n): AttachmentOverflowMenuButtonState => {\n 'use no memo';\n\n const { designVersion, mode } = state;\n\n const rootBaseClassName = useRootBaseClassName();\n const progressBarStyles = useProgressBarStyles();\n const nextStyles = useNextStyles();\n\n state.root.className = mergeClasses(\n attachmentOverflowMenuButtonClassNames.root,\n rootBaseClassName,\n designVersion === 'next' && nextStyles.root,\n designVersion === 'next' && nextStyles[mode],\n state.root.className,\n );\n\n if (state.progress) {\n state.progress.className = mergeClasses(\n attachmentOverflowMenuButtonClassNames.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":["makeResetStyles","makeStyles","mergeClasses","slot","typographyStyles","tokens","useProgressBarStyles","attachmentOverflowMenuButtonClassNames","root","progress","useRootBaseClassName","color","colorNeutralForeground1","alignItems","backgroundColor","colorSubtleBackground","border","strokeWidthThin","colorNeutralStroke1","borderRadius","borderRadiusMedium","boxSizing","columnGap","spacingHorizontalSNudge","cursor","display","flexWrap","fontFamily","body1","fontSize","fontWeight","justifyContent","padding","spacingVerticalXS","spacingHorizontalS","verticalAlign","position","colorSubtleBackgroundHover","colorNeutralForeground2Hover","colorSubtleBackgroundPressed","colorNeutralForeground2Pressed","useNextStyles","borderRadiusXLarge","colorNeutralForeground2","colorNeutralBackground3","colorNeutralBackground3Hover","colorNeutralBackground3Pressed","canvas","minHeight","spacingVerticalNone","sidecar","useAttachmentOverflowMenuButtonStyles_unstable","state","designVersion","mode","rootBaseClassName","progressBarStyles","nextStyles","className","bar","optional","elementType","renderByDefault","value","undefined","indeterminateProgressBar","regularProgressBar"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,6BAA6B;AAC/G,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,oBAAoB,QAAQ,uCAAuC;AAO5E,OAAO,MAAMC,yCAA4F;IACvGC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF,MAAMC,uBAAuBV,gBAAgB;IAC3CW,OAAON,OAAOO,uBAAuB;IACrCC,YAAY;IACZC,iBAAiBT,OAAOU,qBAAqB;IAC7CC,QAAQ,CAAC,EAAEX,OAAOY,eAAe,CAAC,OAAO,EAAEZ,OAAOa,mBAAmB,CAAC,CAAC;IACvEC,cAAcd,OAAOe,kBAAkB;IACvCC,WAAW;IACXC,WAAWjB,OAAOkB,uBAAuB;IACzCC,QAAQ;IACRC,SAAS;IACTC,UAAU;IACVC,YAAYvB,iBAAiBwB,KAAK,CAACD,UAAU;IAC7CE,UAAUzB,iBAAiBwB,KAAK,CAACC,QAAQ;IACzCC,YAAY1B,iBAAiBwB,KAAK,CAACE,UAAU;IAC7CC,gBAAgB;IAChBC,SAAS,CAAC,EAAE3B,OAAO4B,iBAAiB,CAAC,CAAC,EAAE5B,OAAO6B,kBAAkB,CAAC,CAAC;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C5CF,MAAM5C,IAAI,CAACkD,SAAS;IAGtB,IAAIN,MAAM3C,QAAQ,EAAE;QAClB2C,MAAM3C,QAAQ,CAACiD,SAAS,GAAGxD,aACzBK,uCAAuCE,QAAQ,EAC/C+C,kBAAkB/C,QAAQ,EAC1B2C,MAAM3C,QAAQ,CAACiD,SAAS;QAG1B,MAAMC,MAAMxD,KAAKyD,QAAQ,CAACR,MAAM3C,QAAQ,CAACkD,GAAG,EAAE;YAAEE,aAAa;YAAOC,iBAAiB;QAAK;QAC1F,IAAIH,KAAK;YACP,IAAIP,MAAM3C,QAAQ,CAACsD,KAAK,KAAKC,WAAW;gBACtCL,IAAID,SAAS,GAAGxD,aAAasD,kBAAkBS,wBAAwB,EAAEN,IAAID,SAAS;YACxF,OAAO;gBACLC,IAAID,SAAS,GAAGxD,aAAasD,kBAAkBU,kBAAkB,EAAEP,IAAID,SAAS;YAClF;YACAN,MAAM3C,QAAQ,CAACkD,GAAG,GAAGA;QACvB;IACF;IAEA,OAAOP;AACT,EAAE"}
@@ -2,10 +2,9 @@ import * as React from 'react';
2
2
  import { useAttachmentOverflowMenuItem_unstable } from './useAttachmentOverflowMenuItem';
3
3
  import { renderAttachmentOverflowMenuItem_unstable } from './renderAttachmentOverflowMenuItem';
4
4
  import { useAttachmentOverflowMenuItemStyles_unstable } from './useAttachmentOverflowMenuItemStyles.styles';
5
- export const AttachmentOverflowMenuItem = /*#__PURE__*/React.forwardRef((props, ref) => {
6
- const state = useAttachmentOverflowMenuItem_unstable(props, ref);
7
- useAttachmentOverflowMenuItemStyles_unstable(state);
8
- return renderAttachmentOverflowMenuItem_unstable(state);
5
+ export const AttachmentOverflowMenuItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{
6
+ const state = useAttachmentOverflowMenuItem_unstable(props, ref);
7
+ useAttachmentOverflowMenuItemStyles_unstable(state);
8
+ return renderAttachmentOverflowMenuItem_unstable(state);
9
9
  });
10
10
  AttachmentOverflowMenuItem.displayName = 'AttachmentOverflowMenuItem';
11
- //# sourceMappingURL=AttachmentOverflowMenuItem.js.map
@@ -1,4 +1,3 @@
1
1
  /**
2
2
  * State used in rendering AttachmentOverflowMenuItem
3
- */export {};
4
- //# sourceMappingURL=AttachmentOverflowMenuItem.types.js.map
3
+ */ export { };
@@ -2,4 +2,3 @@ export { AttachmentOverflowMenuItem } from './AttachmentOverflowMenuItem';
2
2
  export { renderAttachmentOverflowMenuItem_unstable } from './renderAttachmentOverflowMenuItem';
3
3
  export { useAttachmentOverflowMenuItem_unstable } from './useAttachmentOverflowMenuItem';
4
4
  export { attachmentOverflowMenuItemClassNames, useAttachmentOverflowMenuItemStyles_unstable } from './useAttachmentOverflowMenuItemStyles.styles';
5
- //# sourceMappingURL=index.js.map
@@ -1,12 +1,13 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots } from '@fluentui/react-components';
3
3
  /**
4
4
  * Render the final JSX of AttachmentOverflowMenuItem
5
- */
6
- export const renderAttachmentOverflowMenuItem_unstable = state => {
7
- assertSlots(state);
8
- return !state.isVisible ? /*#__PURE__*/_jsxs(state.root, {
9
- children: [state.root.children, state.progress && /*#__PURE__*/_jsx(state.progress, {})]
10
- }) : null;
5
+ */ export const renderAttachmentOverflowMenuItem_unstable = (state)=>{
6
+ assertSlots(state);
7
+ return !state.isVisible ? /*#__PURE__*/ _jsxs(state.root, {
8
+ children: [
9
+ state.root.children,
10
+ state.progress && /*#__PURE__*/ _jsx(state.progress, {})
11
+ ]
12
+ }) : null;
11
13
  };
12
- //# sourceMappingURL=renderAttachmentOverflowMenuItem.js.map
@@ -11,54 +11,46 @@ import { useDesignVersion } from '@fluentui-copilot/react-provider';
11
11
  *
12
12
  * @param props - props from this instance of AttachmentOverflowMenuItem
13
13
  * @param ref - reference to root HTMLElement of AttachmentOverflowMenuItem
14
- */
15
- export const useAttachmentOverflowMenuItem_unstable = (props, ref) => {
16
- 'use no memo';
17
-
18
- const {
19
- imageOnly,
20
- media
21
- } = props;
22
- const menuItemId = useId('attachment-', props.id);
23
- const isVisible = useIsOverflowItemVisible(menuItemId);
24
- const {
25
- onAttachmentDismiss
26
- } = useAttachmentListContext_unstable(context => context);
27
- const designVersion = useDesignVersion(props.designVersion);
28
- const root = slot.always({
29
- ref,
30
- icon: media,
31
- secondaryContent: /*#__PURE__*/React.createElement(Dismiss20Regular, null),
32
- ...props,
33
- id: menuItemId
34
- }, {
35
- elementType: MenuItem
36
- });
37
- root.onClick = mergeCallbacks(root.onClick, ev => {
38
- onAttachmentDismiss === null || onAttachmentDismiss === void 0 ? void 0 : onAttachmentDismiss(ev, {
39
- content: props.children,
40
- media,
41
- id: menuItemId
14
+ */ export const useAttachmentOverflowMenuItem_unstable = (props, ref)=>{
15
+ 'use no memo';
16
+ const { imageOnly, media } = props;
17
+ const menuItemId = useId('attachment-', props.id);
18
+ const isVisible = useIsOverflowItemVisible(menuItemId);
19
+ const { onAttachmentDismiss } = useAttachmentListContext_unstable((context)=>context);
20
+ const designVersion = useDesignVersion(props.designVersion);
21
+ const root = slot.always({
22
+ ref,
23
+ icon: media,
24
+ secondaryContent: /*#__PURE__*/ React.createElement(Dismiss20Regular, null),
25
+ ...props,
26
+ id: menuItemId
27
+ }, {
28
+ elementType: MenuItem
42
29
  });
43
- });
44
- const progress = slot.optional(props.progress, {
45
- defaultProps: {
46
- shape: 'square',
47
- thickness: 'large',
48
- 'aria-labelledby': props.id
49
- },
50
- elementType: ProgressBar
51
- });
52
- return {
53
- components: {
54
- root: MenuItem,
55
- progress: ProgressBar
56
- },
57
- root,
58
- progress,
59
- isVisible,
60
- imageOnly,
61
- designVersion
62
- };
30
+ root.onClick = mergeCallbacks(root.onClick, (ev)=>{
31
+ onAttachmentDismiss === null || onAttachmentDismiss === void 0 ? void 0 : onAttachmentDismiss(ev, {
32
+ content: props.children,
33
+ media,
34
+ id: menuItemId
35
+ });
36
+ });
37
+ const progress = slot.optional(props.progress, {
38
+ defaultProps: {
39
+ shape: 'square',
40
+ thickness: 'large',
41
+ 'aria-labelledby': props.id
42
+ },
43
+ elementType: ProgressBar
44
+ });
45
+ return {
46
+ components: {
47
+ root: MenuItem,
48
+ progress: ProgressBar
49
+ },
50
+ root,
51
+ progress,
52
+ isVisible,
53
+ imageOnly,
54
+ designVersion
55
+ };
63
56
  };
64
- //# sourceMappingURL=useAttachmentOverflowMenuItem.js.map
@@ -0,0 +1,57 @@
1
+ import { makeStyles, mergeClasses, slot, tokens } from '@fluentui/react-components';
2
+ import { useProgressBarStyles } from '../utils/useProgressBarStyles.styles';
3
+ export const attachmentOverflowMenuItemClassNames = {
4
+ root: 'fai-AttachmentOverflowMenuItem',
5
+ progress: 'fai-AttachmentOverflowMenuItem__progress'
6
+ };
7
+ const FOCUS_VISIBLE_ATTR = 'data-fui-focus-visible';
8
+ const useStyles = makeStyles({
9
+ imageOnly: {
10
+ alignItems: 'center'
11
+ },
12
+ secondaryContent: {
13
+ display: 'flex',
14
+ alignItems: 'center'
15
+ }
16
+ });
17
+ const useNextStyles = makeStyles({
18
+ nextStyles: {
19
+ [`[${FOCUS_VISIBLE_ATTR}]::after`]: {
20
+ borderRadius: tokens.borderRadiusXLarge
21
+ },
22
+ outline: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`
23
+ }
24
+ });
25
+ /**
26
+ * Apply styling to the AttachmentList slots based on the state
27
+ */ export const useAttachmentOverflowMenuItemStyles_unstable = (state)=>{
28
+ 'use no memo';
29
+ const { imageOnly, designVersion } = state;
30
+ const styles = useStyles();
31
+ const nextStyles = useNextStyles();
32
+ const progressBarStyles = useProgressBarStyles();
33
+ state.root.className = mergeClasses(attachmentOverflowMenuItemClassNames.root, imageOnly && styles.imageOnly, designVersion === 'next' && nextStyles.nextStyles, state.root.className);
34
+ const secondaryContent = slot.optional(state.root.secondaryContent, {
35
+ elementType: 'span'
36
+ });
37
+ if (secondaryContent) {
38
+ secondaryContent.className = mergeClasses(styles.secondaryContent, secondaryContent.className);
39
+ state.root.secondaryContent = secondaryContent;
40
+ }
41
+ if (state.progress) {
42
+ state.progress.className = mergeClasses(attachmentOverflowMenuItemClassNames.progress, progressBarStyles.progress, state.progress.className);
43
+ const bar = slot.optional(state.progress.bar, {
44
+ elementType: 'div',
45
+ renderByDefault: true
46
+ });
47
+ if (bar) {
48
+ if (state.progress.value === undefined) {
49
+ bar.className = mergeClasses(progressBarStyles.indeterminateProgressBar, bar.className);
50
+ } else {
51
+ bar.className = mergeClasses(progressBarStyles.regularProgressBar, bar.className);
52
+ }
53
+ state.progress.bar = bar;
54
+ }
55
+ }
56
+ return state;
57
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentOverflowMenuItemStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, slot, tokens } 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';\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 [`[${FOCUS_VISIBLE_ATTR}]::after`]: {\n borderRadius: tokens.borderRadiusXLarge,\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":["makeStyles","mergeClasses","slot","tokens","useProgressBarStyles","attachmentOverflowMenuItemClassNames","root","progress","FOCUS_VISIBLE_ATTR","useStyles","imageOnly","alignItems","secondaryContent","display","useNextStyles","nextStyles","borderRadius","borderRadiusXLarge","outline","strokeWidthThin","colorTransparentStroke","useAttachmentOverflowMenuItemStyles_unstable","state","designVersion","styles","progressBarStyles","className","optional","elementType","bar","renderByDefault","value","undefined","indeterminateProgressBar","regularProgressBar"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,EAAEC,IAAI,EAAEC,MAAM,QAAQ,6BAA6B;AACpF,SAASC,oBAAoB,QAAQ,uCAAuC;AAO5E,OAAO,MAAMC,uCAAwF;IACnGC,MAAM;IACNC,UAAU;AACZ,EAAE;AAEF,MAAMC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1F,IAAID,KAAK;YACP,IAAIP,MAAMf,QAAQ,CAACwB,KAAK,KAAKC,WAAW;gBACtCH,IAAIH,SAAS,GAAGzB,aAAawB,kBAAkBQ,wBAAwB,EAAEJ,IAAIH,SAAS;YACxF,OAAO;gBACLG,IAAIH,SAAS,GAAGzB,aAAawB,kBAAkBS,kBAAkB,EAAEL,IAAIH,SAAS;YAClF;YACAJ,MAAMf,QAAQ,CAACsB,GAAG,GAAGA;QACvB;IACF;IAEA,OAAOP;AACT,EAAE"}
@@ -6,12 +6,10 @@ import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
6
6
  /**
7
7
  * @deprecated use new Attachment component exported from \@fluentui-copilot/react-attachments package instead.
8
8
  * Deprecated on 4/9/2024.
9
- */
10
- export const AttachmentTag = /*#__PURE__*/React.forwardRef((props, ref) => {
11
- const state = useAttachmentTag_unstable(props, ref);
12
- useAttachmentTagStyles_unstable(state);
13
- useCustomStyleHook('useAttachmentTagStyles')(state);
14
- return renderAttachmentTag_unstable(state);
9
+ */ export const AttachmentTag = /*#__PURE__*/ React.forwardRef((props, ref)=>{
10
+ const state = useAttachmentTag_unstable(props, ref);
11
+ useAttachmentTagStyles_unstable(state);
12
+ useCustomStyleHook('useAttachmentTagStyles')(state);
13
+ return renderAttachmentTag_unstable(state);
15
14
  });
16
15
  AttachmentTag.displayName = 'AttachmentTag';
17
- //# sourceMappingURL=AttachmentTag.js.map
@@ -1,4 +1,3 @@
1
1
  /**
2
2
  * State used in rendering AttachmentTag
3
- */export {};
4
- //# sourceMappingURL=AttachmentTag.types.js.map
3
+ */ export { };
@@ -2,4 +2,3 @@ export { AttachmentTag } from './AttachmentTag';
2
2
  export { renderAttachmentTag_unstable } from './renderAttachmentTag';
3
3
  export { useAttachmentTag_unstable } from './useAttachmentTag';
4
4
  export { ATTACHMENTTAG_MAXWIDTH, attachmentTagClassNames, useAttachmentTagStyles_unstable, useContentBaseClassName, useIconBaseClassName, useMediaBaseClassName } from './useAttachmentTagStyles.styles';
5
- //# sourceMappingURL=index.js.map
@@ -1,12 +1,14 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots } from '@fluentui/react-components';
3
3
  /**
4
4
  * Render the final JSX of AttachmentTag
5
- */
6
- export const renderAttachmentTag_unstable = state => {
7
- assertSlots(state);
8
- return /*#__PURE__*/_jsxs(state.root, {
9
- children: [state.media && /*#__PURE__*/_jsx(state.media, {}), /*#__PURE__*/_jsx(state.content, {}), /*#__PURE__*/_jsx(state.icon, {})]
10
- });
5
+ */ export const renderAttachmentTag_unstable = (state)=>{
6
+ assertSlots(state);
7
+ return /*#__PURE__*/ _jsxs(state.root, {
8
+ children: [
9
+ state.media && /*#__PURE__*/ _jsx(state.media, {}),
10
+ /*#__PURE__*/ _jsx(state.content, {}),
11
+ /*#__PURE__*/ _jsx(state.icon, {})
12
+ ]
13
+ });
11
14
  };
12
- //# sourceMappingURL=renderAttachmentTag.js.map
@@ -7,15 +7,13 @@ import { useAttachmentTagSlots } from '../utils/useAttachmentTagSlots';
7
7
  *
8
8
  * @param props - props from this instance of AttachmentTag
9
9
  * @param ref - reference to root HTMLElement of AttachmentTag
10
- */
11
- export const useAttachmentTag_unstable = (props, ref) => {
12
- return useAttachmentTagSlots(props, ref, {
13
- elementType: {
14
- root: 'button',
15
- media: 'span',
16
- content: 'span',
17
- icon: 'span'
18
- }
19
- });
10
+ */ export const useAttachmentTag_unstable = (props, ref)=>{
11
+ return useAttachmentTagSlots(props, ref, {
12
+ elementType: {
13
+ root: 'button',
14
+ media: 'span',
15
+ content: 'span',
16
+ icon: 'span'
17
+ }
18
+ });
20
19
  };
21
- //# sourceMappingURL=useAttachmentTag.js.map
@@ -0,0 +1,98 @@
1
+ import { makeResetStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';
2
+ import { tokens } from '@fluentui-copilot/tokens';
3
+ export const attachmentTagClassNames = {
4
+ root: 'fai-AttachmentTag',
5
+ media: 'fai-AttachmentTag__media',
6
+ content: 'fai-AttachmentTag__content',
7
+ icon: 'fai-AttachmentTag__icon'
8
+ };
9
+ /**
10
+ * @internal
11
+ */ export const ATTACHMENTTAG_MAXWIDTH = '180px';
12
+ const ATTACHMENTTAG_SIZE = '20px';
13
+ const useRootBaseClassName = makeResetStyles({
14
+ color: tokens.colorNeutralForeground1,
15
+ alignItems: 'center',
16
+ backgroundColor: tokens.colorNeutralBackground1,
17
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,
18
+ borderRadius: tokens.borderRadiusMedium,
19
+ boxSizing: 'border-box',
20
+ columnGap: tokens.spacingHorizontalSNudge,
21
+ cursor: 'pointer',
22
+ display: 'inline-flex',
23
+ flexWrap: 'nowrap',
24
+ justifyContent: 'center',
25
+ maxWidth: ATTACHMENTTAG_MAXWIDTH,
26
+ padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`,
27
+ verticalAlign: 'middle',
28
+ ':hover': {
29
+ borderColor: tokens.colorNeutralStroke1Hover,
30
+ [`& .${attachmentTagClassNames.icon}`]: {
31
+ color: tokens.colorBrandForegroundLinkHover
32
+ }
33
+ },
34
+ ':hover:active': {
35
+ borderColor: tokens.colorNeutralStroke1Pressed,
36
+ [`& .${attachmentTagClassNames.icon}`]: {
37
+ color: tokens.colorNeutralForeground2BrandPressed
38
+ }
39
+ },
40
+ ':focus': {
41
+ [`& .${attachmentTagClassNames.icon}`]: {
42
+ color: tokens.colorNeutralForeground2BrandHover
43
+ }
44
+ },
45
+ ':focus:active': {
46
+ [`& .${attachmentTagClassNames.icon}`]: {
47
+ color: tokens.colorNeutralForeground2BrandPressed
48
+ }
49
+ }
50
+ });
51
+ /**
52
+ * @internal
53
+ */ export const useMediaBaseClassName = makeResetStyles({
54
+ fontSize: ATTACHMENTTAG_SIZE,
55
+ height: ATTACHMENTTAG_SIZE,
56
+ lineHeight: ATTACHMENTTAG_SIZE,
57
+ width: ATTACHMENTTAG_SIZE
58
+ });
59
+ /**
60
+ * @internal
61
+ */ export const useContentBaseClassName = makeResetStyles({
62
+ overflowX: 'hidden',
63
+ textOverflow: 'ellipsis',
64
+ whiteSpace: 'nowrap',
65
+ ...typographyStyles.body1
66
+ });
67
+ /**
68
+ * @internal
69
+ */ export const useIconBaseClassName = makeResetStyles({
70
+ alignItems: 'center',
71
+ borderRadius: tokens.borderRadiusCircular,
72
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,
73
+ boxSizing: 'border-box',
74
+ color: tokens.colorNeutralForeground1,
75
+ display: 'inline-flex',
76
+ fontSize: ATTACHMENTTAG_SIZE,
77
+ height: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,
78
+ justifyContent: 'center',
79
+ maxWidth: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,
80
+ minWidth: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,
81
+ padding: `calc(${tokens.spacingVerticalXXS} / 2) calc(${tokens.spacingHorizontalXXS} / 2)`
82
+ });
83
+ /**
84
+ * Apply styling to the AttachmentTag slots based on the state
85
+ */ export const useAttachmentTagStyles_unstable = (state)=>{
86
+ 'use no memo';
87
+ const rootBaseClassName = useRootBaseClassName();
88
+ const mediaBaseClassName = useMediaBaseClassName();
89
+ const contentBaseClassName = useContentBaseClassName();
90
+ const iconBaseClassName = useIconBaseClassName();
91
+ state.root.className = mergeClasses(attachmentTagClassNames.root, rootBaseClassName, state.root.className);
92
+ if (state.media) {
93
+ state.media.className = mergeClasses(attachmentTagClassNames.media, mediaBaseClassName, state.media.className);
94
+ }
95
+ state.content.className = mergeClasses(attachmentTagClassNames.content, contentBaseClassName, state.content.className);
96
+ state.icon.className = mergeClasses(attachmentTagClassNames.icon, iconBaseClassName, state.icon.className);
97
+ return state;
98
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentTagStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { AttachmentTagSlots, AttachmentTagState } from './AttachmentTag.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentTagClassNames: SlotClassNames<AttachmentTagSlots> = {\n root: 'fai-AttachmentTag',\n media: 'fai-AttachmentTag__media',\n content: 'fai-AttachmentTag__content',\n icon: 'fai-AttachmentTag__icon',\n};\n\n/**\n * @internal\n */\nexport const ATTACHMENTTAG_MAXWIDTH = '180px';\nconst ATTACHMENTTAG_SIZE = '20px';\n\nconst useRootBaseClassName = makeResetStyles({\n color: tokens.colorNeutralForeground1,\n alignItems: 'center',\n backgroundColor: tokens.colorNeutralBackground1,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n columnGap: tokens.spacingHorizontalSNudge,\n cursor: 'pointer',\n display: 'inline-flex',\n flexWrap: 'nowrap',\n justifyContent: 'center',\n maxWidth: ATTACHMENTTAG_MAXWIDTH,\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`,\n verticalAlign: 'middle',\n\n ':hover': {\n borderColor: tokens.colorNeutralStroke1Hover,\n\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorBrandForegroundLinkHover,\n },\n },\n\n ':hover:active': {\n borderColor: tokens.colorNeutralStroke1Pressed,\n\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n\n ':focus': {\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandHover,\n },\n },\n\n ':focus:active': {\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n});\n\n/**\n * @internal\n */\nexport const useMediaBaseClassName = makeResetStyles({\n fontSize: ATTACHMENTTAG_SIZE,\n height: ATTACHMENTTAG_SIZE,\n lineHeight: ATTACHMENTTAG_SIZE,\n width: ATTACHMENTTAG_SIZE,\n});\n\n/**\n * @internal\n */\nexport const useContentBaseClassName = makeResetStyles({\n overflowX: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n ...typographyStyles.body1,\n});\n\n/**\n * @internal\n */\nexport const useIconBaseClassName = makeResetStyles({\n alignItems: 'center',\n borderRadius: tokens.borderRadiusCircular,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n boxSizing: 'border-box',\n color: tokens.colorNeutralForeground1,\n display: 'inline-flex',\n fontSize: ATTACHMENTTAG_SIZE,\n height: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,\n justifyContent: 'center',\n maxWidth: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n minWidth: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n padding: `calc(${tokens.spacingVerticalXXS} / 2) calc(${tokens.spacingHorizontalXXS} / 2)`,\n});\n\n/**\n * Apply styling to the AttachmentTag slots based on the state\n */\nexport const useAttachmentTagStyles_unstable = (state: AttachmentTagState): AttachmentTagState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const iconBaseClassName = useIconBaseClassName();\n\n state.root.className = mergeClasses(attachmentTagClassNames.root, rootBaseClassName, state.root.className);\n\n if (state.media) {\n state.media.className = mergeClasses(attachmentTagClassNames.media, mediaBaseClassName, state.media.className);\n }\n\n state.content.className = mergeClasses(\n attachmentTagClassNames.content,\n contentBaseClassName,\n state.content.className,\n );\n\n state.icon.className = mergeClasses(attachmentTagClassNames.icon, iconBaseClassName, state.icon.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","typographyStyles","tokens","attachmentTagClassNames","root","media","content","icon","ATTACHMENTTAG_MAXWIDTH","ATTACHMENTTAG_SIZE","useRootBaseClassName","color","colorNeutralForeground1","alignItems","backgroundColor","colorNeutralBackground1","border","strokeWidthThin","colorNeutralStroke1","borderRadius","borderRadiusMedium","boxSizing","columnGap","spacingHorizontalSNudge","cursor","display","flexWrap","justifyContent","maxWidth","padding","spacingVerticalXS","spacingHorizontalXS","spacingHorizontalS","verticalAlign","borderColor","colorNeutralStroke1Hover","colorBrandForegroundLinkHover","colorNeutralStroke1Pressed","colorNeutralForeground2BrandPressed","colorNeutralForeground2BrandHover","useMediaBaseClassName","fontSize","height","lineHeight","width","useContentBaseClassName","overflowX","textOverflow","whiteSpace","body1","useIconBaseClassName","borderRadiusCircular","colorTransparentStroke","spacingVerticalXXS","spacingHorizontalXXS","minWidth","useAttachmentTagStyles_unstable","state","rootBaseClassName","mediaBaseClassName","contentBaseClassName","iconBaseClassName","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,EAAEC,gBAAgB,QAAQ,6BAA6B;AAC7F,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,0BAA8D;IACzEC,MAAM;IACNC,OAAO;IACPC,SAAS;IACTC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,OAAO,MAAMC,yBAAyB,QAAQ;AAC9C,MAAMC,qBAAqB;AAE3B,MAAMC,uBAAuBX,gBAAgB;IAC3CY,OA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oBF,MAAMpD,KAAK,CAACyD,SAAS;IAC/G;IAEAL,MAAMnD,OAAO,CAACwD,SAAS,GAAG9D,aACxBG,wBAAwBG,OAAO,EAC/BsD,sBACAH,MAAMnD,OAAO,CAACwD,SAAS;IAGzBL,MAAMlD,IAAI,CAACuD,SAAS,GAAG9D,aAAaG,wBAAwBI,IAAI,EAAEsD,mBAAmBJ,MAAMlD,IAAI,CAACuD,SAAS;IAEzG,OAAOL;AACT,EAAE"}
@@ -5,11 +5,9 @@ import { useAttachmentTagItemStyles_unstable } from './useAttachmentTagItemStyle
5
5
  /**
6
6
  * @deprecated use new AttachmentOverflowMenuItem component exported from \@fluentui-copilot/react-attachments package instead.
7
7
  * Deprecated on 4/9/2024.
8
- */
9
- export const AttachmentTagItem = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useAttachmentTagItem_unstable(props, ref);
11
- useAttachmentTagItemStyles_unstable(state);
12
- return renderAttachmentTagItem_unstable(state);
8
+ */ export const AttachmentTagItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{
9
+ const state = useAttachmentTagItem_unstable(props, ref);
10
+ useAttachmentTagItemStyles_unstable(state);
11
+ return renderAttachmentTagItem_unstable(state);
13
12
  });
14
13
  AttachmentTagItem.displayName = 'AttachmentTagItem';
15
- //# sourceMappingURL=AttachmentTagItem.js.map