@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
@@ -0,0 +1,293 @@
1
+ import { createCustomFocusIndicatorStyle, 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 attachmentClassNames = {
5
+ root: 'fai-Attachment',
6
+ primaryAction: 'fai-Attachment__primaryAction',
7
+ dismissButton: 'fai-Attachment__dismissButton',
8
+ media: 'fai-Attachment__media',
9
+ content: 'fai-Attachment__content',
10
+ dismissIcon: 'fai-Attachment__dismissIcon',
11
+ progress: 'fai-Attachment__progress'
12
+ };
13
+ const ATTACHMENT_MAXWIDTH = '180px';
14
+ const SMALL_ATTACHMENT_SIZE = '16px';
15
+ const ATTACHMENT_SIZE = '20px';
16
+ const useRootBaseClassName = makeResetStyles({
17
+ display: 'inline-flex',
18
+ flexWrap: 'nowrap',
19
+ verticalAlign: 'middle',
20
+ boxSizing: 'border-box',
21
+ width: 'fit-content',
22
+ alignSelf: 'end',
23
+ position: 'relative'
24
+ });
25
+ const buttonBaseStyles = {
26
+ alignItems: 'center',
27
+ backgroundColor: tokens.colorSubtleBackground,
28
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,
29
+ borderRadius: tokens.borderRadiusMedium,
30
+ boxSizing: 'border-box',
31
+ columnGap: tokens.spacingHorizontalSNudge,
32
+ color: tokens.colorNeutralForeground1,
33
+ cursor: 'pointer',
34
+ display: 'inline-flex',
35
+ flexWrap: 'nowrap',
36
+ justifyContent: 'center',
37
+ ...createCustomFocusIndicatorStyle({
38
+ outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,
39
+ zIndex: 1
40
+ }),
41
+ verticalAlign: 'middle'
42
+ };
43
+ const usePrimaryActionBaseClassName = makeResetStyles({
44
+ ...buttonBaseStyles,
45
+ borderTopRightRadius: tokens.borderRadiusNone,
46
+ borderBottomRightRadius: tokens.borderRadiusNone,
47
+ borderRightStyle: 'none',
48
+ maxWidth: `calc(${ATTACHMENT_MAXWIDTH} - ${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS} - ${tokens.spacingHorizontalXS})`,
49
+ padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`
50
+ });
51
+ const usePrimaryActionStyles = makeStyles({
52
+ button: {
53
+ ':hover': {
54
+ cursor: 'pointer',
55
+ backgroundColor: tokens.colorSubtleBackgroundHover,
56
+ color: tokens.colorNeutralForeground2Hover
57
+ },
58
+ ':active': {
59
+ backgroundColor: tokens.colorSubtleBackgroundPressed,
60
+ color: tokens.colorNeutralForeground2Pressed
61
+ },
62
+ '@media (forced-colors: active)': {
63
+ ':hover': {
64
+ backgroundColor: 'HighlightText'
65
+ },
66
+ ':active': {
67
+ backgroundColor: 'HighlightText'
68
+ }
69
+ }
70
+ }
71
+ });
72
+ const useDismissButtonBaseClassName = makeResetStyles({
73
+ ...buttonBaseStyles,
74
+ padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,
75
+ maxWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,
76
+ minWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,
77
+ // divider:
78
+ borderLeftColor: tokens.colorNeutralStroke1,
79
+ borderTopLeftRadius: tokens.borderRadiusNone,
80
+ borderBottomLeftRadius: tokens.borderRadiusNone,
81
+ borderTopRightRadius: tokens.borderRadiusMedium,
82
+ borderBottomRightRadius: tokens.borderRadiusMedium,
83
+ ':hover': {
84
+ cursor: 'pointer',
85
+ backgroundColor: tokens.colorSubtleBackgroundHover,
86
+ color: tokens.colorNeutralForeground2BrandHover,
87
+ [`& .${attachmentClassNames.dismissIcon}`]: {
88
+ color: tokens.colorBrandForegroundLinkHover
89
+ }
90
+ },
91
+ ':active': {
92
+ backgroundColor: tokens.colorSubtleBackgroundPressed,
93
+ color: tokens.colorNeutralForeground2BrandPressed
94
+ },
95
+ ':focus': {
96
+ [`& .${attachmentClassNames.dismissIcon}`]: {
97
+ color: tokens.colorNeutralForeground2BrandHover
98
+ }
99
+ },
100
+ '@media (forced-colors: active)': {
101
+ ':hover': {
102
+ backgroundColor: 'HighlightText'
103
+ },
104
+ ':active': {
105
+ backgroundColor: 'HighlightText'
106
+ }
107
+ }
108
+ });
109
+ const useMediaBaseClassName = makeResetStyles({
110
+ alignItems: 'center',
111
+ display: 'inline-flex',
112
+ fontSize: ATTACHMENT_SIZE,
113
+ height: ATTACHMENT_SIZE,
114
+ lineHeight: ATTACHMENT_SIZE,
115
+ width: ATTACHMENT_SIZE
116
+ });
117
+ const useContentBaseClassName = makeResetStyles({
118
+ overflowX: 'hidden',
119
+ textOverflow: 'ellipsis',
120
+ whiteSpace: 'nowrap',
121
+ ...typographyStyles.body1
122
+ });
123
+ const useDismissIconBaseClassName = makeResetStyles({
124
+ alignItems: 'center',
125
+ borderRadius: tokens.borderRadiusCircular,
126
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,
127
+ boxSizing: 'border-box',
128
+ color: tokens.colorNeutralForeground1,
129
+ display: 'inline-flex',
130
+ fontSize: ATTACHMENT_SIZE,
131
+ height: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,
132
+ justifyContent: 'center',
133
+ maxWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,
134
+ minWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,
135
+ padding: `calc(${tokens.spacingVerticalXXS} / 2) calc(${tokens.spacingHorizontalXXS} / 2)`
136
+ });
137
+ const useImageOnlyStyles = makeStyles({
138
+ primaryAction: {
139
+ padding: 0
140
+ },
141
+ content: {
142
+ lineHeight: 0
143
+ }
144
+ });
145
+ export const useOverflowStyles = makeStyles({
146
+ overflow: {
147
+ maxWidth: '100%',
148
+ width: '100%'
149
+ }
150
+ });
151
+ const useSmallStyles = makeStyles({
152
+ primaryAction: {
153
+ maxWidth: `calc(${ATTACHMENT_MAXWIDTH} - ${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS} - ${tokens.spacingHorizontalXS})`,
154
+ padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalSNudge} ${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalSNudge}`
155
+ },
156
+ media: {
157
+ fontSize: SMALL_ATTACHMENT_SIZE,
158
+ height: SMALL_ATTACHMENT_SIZE,
159
+ lineHeight: SMALL_ATTACHMENT_SIZE,
160
+ width: SMALL_ATTACHMENT_SIZE
161
+ },
162
+ content: {
163
+ ...typographyStyles.caption1
164
+ },
165
+ dismissButton: {
166
+ padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalXXS}`,
167
+ maxWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,
168
+ minWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`
169
+ },
170
+ dismissIcon: {
171
+ fontSize: SMALL_ATTACHMENT_SIZE,
172
+ height: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,
173
+ maxWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,
174
+ minWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`
175
+ }
176
+ });
177
+ const usePrimaryActionNextStyles = makeStyles({
178
+ root: {
179
+ borderTopLeftRadius: tokens.borderRadiusXLarge,
180
+ borderBottomLeftRadius: tokens.borderRadiusXLarge
181
+ },
182
+ canvas: {
183
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,
184
+ minHeight: '40px'
185
+ },
186
+ sidecar: {
187
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,
188
+ minHeight: '32px'
189
+ }
190
+ });
191
+ const useDismissButtonNextStyles = makeStyles({
192
+ root: {
193
+ borderTopRightRadius: tokens.borderRadiusXLarge,
194
+ borderBottomRightRadius: tokens.borderRadiusXLarge,
195
+ ':hover': {
196
+ color: tokens.colorNeutralForeground2,
197
+ [`& .${attachmentClassNames.dismissIcon}`]: {
198
+ color: tokens.colorNeutralForeground2
199
+ }
200
+ },
201
+ ':active': {
202
+ color: tokens.colorNeutralForeground2Pressed
203
+ },
204
+ ':focus': {
205
+ [`& .${attachmentClassNames.dismissIcon}`]: {
206
+ color: tokens.colorNeutralForeground2Hover
207
+ }
208
+ },
209
+ borderLeftColor: tokens.colorNeutralStroke1,
210
+ borderLeftWidth: tokens.strokeWidthThin,
211
+ borderLeftStyle: 'solid'
212
+ },
213
+ canvas: {
214
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,
215
+ minHeight: '40px',
216
+ width: '40px'
217
+ },
218
+ sidecar: {
219
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalMNudge}`,
220
+ minHeight: '32px',
221
+ width: '32px'
222
+ },
223
+ dismissOnly: {
224
+ borderRadius: tokens.borderRadiusXLarge,
225
+ width: 'unset',
226
+ borderLeftColor: tokens.colorTransparentStroke
227
+ }
228
+ });
229
+ const usePrimaryDismissNextStyles = makeStyles({
230
+ sharedStyles: {
231
+ border: 'none',
232
+ backgroundColor: tokens.colorNeutralBackground3,
233
+ ':hover': {
234
+ backgroundColor: tokens.colorNeutralBackground3Hover
235
+ },
236
+ ':active': {
237
+ backgroundColor: tokens.colorNeutralBackground3Pressed
238
+ },
239
+ ':focus-visible': {
240
+ borderRadius: tokens.borderRadiusLarge
241
+ }
242
+ }
243
+ });
244
+ const useRootNextStyles = makeStyles({
245
+ root: {
246
+ outline: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,
247
+ borderRadius: tokens.borderRadiusXLarge
248
+ }
249
+ });
250
+ /**
251
+ * Apply styling to the Attachment slots based on the state
252
+ */ export const useAttachmentStyles_unstable = (state)=>{
253
+ 'use no memo';
254
+ const rootBaseClassName = useRootBaseClassName();
255
+ const primaryActionBaseClassName = usePrimaryActionBaseClassName();
256
+ const dismissButtonBaseClassName = useDismissButtonBaseClassName();
257
+ const mediaBaseClassName = useMediaBaseClassName();
258
+ const contentBaseClassName = useContentBaseClassName();
259
+ const dismissIconBaseClassName = useDismissIconBaseClassName();
260
+ const progressBarStyles = useProgressBarStyles();
261
+ const primaryActionStyles = usePrimaryActionStyles();
262
+ const imageOnlyStyles = useImageOnlyStyles();
263
+ const smallStyles = useSmallStyles();
264
+ const primaryActionNextStyles = usePrimaryActionNextStyles();
265
+ const dismissButtonNextStyles = useDismissButtonNextStyles();
266
+ const primaryDismissNextStyles = usePrimaryDismissNextStyles();
267
+ const rootNextStyles = useRootNextStyles();
268
+ const { imageOnly, primaryAction, size, mode, designVersion, dismissOnly } = state;
269
+ state.root.className = mergeClasses(attachmentClassNames.root, rootBaseClassName, designVersion === 'next' && rootNextStyles.root, state.root.className);
270
+ state.primaryAction.className = mergeClasses(attachmentClassNames.primaryAction, primaryActionBaseClassName, size === 'small' && smallStyles.primaryAction, primaryAction.as !== 'span' && !state.isLoading && primaryActionStyles.button, imageOnly && imageOnlyStyles.primaryAction, designVersion === 'next' && primaryDismissNextStyles.sharedStyles, designVersion === 'next' && primaryActionNextStyles.root, designVersion === 'next' && primaryActionNextStyles[mode], state.primaryAction.className);
271
+ state.dismissButton.className = mergeClasses(attachmentClassNames.dismissButton, dismissButtonBaseClassName, size === 'small' && smallStyles.dismissButton, designVersion === 'next' && primaryDismissNextStyles.sharedStyles, designVersion === 'next' && dismissButtonNextStyles.root, designVersion === 'next' && dismissButtonNextStyles[mode], designVersion === 'next' && dismissOnly && dismissButtonNextStyles.dismissOnly, state.dismissButton.className);
272
+ if (state.media) {
273
+ state.media.className = mergeClasses(attachmentClassNames.media, mediaBaseClassName, size === 'small' && smallStyles.media, state.media.className);
274
+ }
275
+ state.content.className = mergeClasses(attachmentClassNames.content, contentBaseClassName, size === 'small' && smallStyles.content, imageOnly && imageOnlyStyles.content, state.content.className);
276
+ state.dismissIcon.className = mergeClasses(attachmentClassNames.dismissIcon, dismissIconBaseClassName, size === 'small' && smallStyles.dismissIcon, state.dismissIcon.className);
277
+ if (state.progress) {
278
+ state.progress.className = mergeClasses(attachmentClassNames.progress, progressBarStyles.progress, state.progress.className);
279
+ const bar = slot.optional(state.progress.bar, {
280
+ elementType: 'div',
281
+ renderByDefault: true
282
+ });
283
+ if (bar) {
284
+ if (state.progress.value === undefined) {
285
+ bar.className = mergeClasses(progressBarStyles.indeterminateProgressBar, bar.className);
286
+ } else {
287
+ bar.className = mergeClasses(progressBarStyles.regularProgressBar, bar.className);
288
+ }
289
+ state.progress.bar = bar;
290
+ }
291
+ }
292
+ return state;
293
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentStyles.styles.ts"],"sourcesContent":["import {\n createCustomFocusIndicatorStyle,\n makeResetStyles,\n makeStyles,\n mergeClasses,\n slot,\n typographyStyles,\n} from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport { useProgressBarStyles } from '../utils/useProgressBarStyles.styles';\nimport type { AttachmentSlots, AttachmentState } from './Attachment.types';\nimport type { GriffelResetStyle, SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentClassNames: SlotClassNames<AttachmentSlots> = {\n root: 'fai-Attachment',\n primaryAction: 'fai-Attachment__primaryAction',\n dismissButton: 'fai-Attachment__dismissButton',\n media: 'fai-Attachment__media',\n content: 'fai-Attachment__content',\n dismissIcon: 'fai-Attachment__dismissIcon',\n progress: 'fai-Attachment__progress',\n};\n\nconst ATTACHMENT_MAXWIDTH = '180px';\nconst SMALL_ATTACHMENT_SIZE = '16px';\nconst ATTACHMENT_SIZE = '20px';\n\nconst useRootBaseClassName = makeResetStyles({\n display: 'inline-flex',\n flexWrap: 'nowrap',\n verticalAlign: 'middle',\n boxSizing: 'border-box',\n width: 'fit-content',\n alignSelf: 'end',\n position: 'relative',\n});\n\nconst buttonBaseStyles: GriffelResetStyle = {\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 color: tokens.colorNeutralForeground1,\n cursor: 'pointer',\n display: 'inline-flex',\n flexWrap: 'nowrap',\n justifyContent: 'center',\n ...createCustomFocusIndicatorStyle({\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n zIndex: 1,\n }),\n verticalAlign: 'middle',\n};\n\nconst usePrimaryActionBaseClassName = makeResetStyles({\n ...buttonBaseStyles,\n borderTopRightRadius: tokens.borderRadiusNone,\n borderBottomRightRadius: tokens.borderRadiusNone,\n borderRightStyle: 'none',\n maxWidth: `calc(${ATTACHMENT_MAXWIDTH} - ${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS} - ${tokens.spacingHorizontalXS})`,\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`,\n});\n\nconst usePrimaryActionStyles = makeStyles({\n button: {\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});\n\nconst useDismissButtonBaseClassName = makeResetStyles({\n ...buttonBaseStyles,\n\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n maxWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n minWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n\n // divider:\n borderLeftColor: tokens.colorNeutralStroke1,\n borderTopLeftRadius: tokens.borderRadiusNone,\n borderBottomLeftRadius: tokens.borderRadiusNone,\n\n borderTopRightRadius: tokens.borderRadiusMedium,\n borderBottomRightRadius: tokens.borderRadiusMedium,\n\n ':hover': {\n cursor: 'pointer',\n backgroundColor: tokens.colorSubtleBackgroundHover,\n color: tokens.colorNeutralForeground2BrandHover,\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorBrandForegroundLinkHover,\n },\n },\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n ':focus': {\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorNeutralForeground2BrandHover,\n },\n },\n '@media (forced-colors: active)': {\n ':hover': {\n backgroundColor: 'HighlightText',\n },\n ':active': {\n backgroundColor: 'HighlightText',\n },\n },\n});\n\nconst useMediaBaseClassName = makeResetStyles({\n alignItems: 'center',\n display: 'inline-flex',\n fontSize: ATTACHMENT_SIZE,\n height: ATTACHMENT_SIZE,\n lineHeight: ATTACHMENT_SIZE,\n width: ATTACHMENT_SIZE,\n});\n\nconst useContentBaseClassName = makeResetStyles({\n overflowX: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n ...typographyStyles.body1,\n});\n\nconst useDismissIconBaseClassName = 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: ATTACHMENT_SIZE,\n height: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,\n justifyContent: 'center',\n maxWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n minWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n padding: `calc(${tokens.spacingVerticalXXS} / 2) calc(${tokens.spacingHorizontalXXS} / 2)`,\n});\n\nconst useImageOnlyStyles = makeStyles({\n primaryAction: {\n padding: 0,\n },\n content: {\n lineHeight: 0,\n },\n});\n\nexport const useOverflowStyles = makeStyles({\n overflow: {\n maxWidth: '100%',\n width: '100%',\n },\n});\n\nconst useSmallStyles = makeStyles({\n primaryAction: {\n maxWidth: `calc(${ATTACHMENT_MAXWIDTH} - ${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS} - ${tokens.spacingHorizontalXS})`,\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalSNudge} ${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalSNudge}`,\n },\n media: {\n fontSize: SMALL_ATTACHMENT_SIZE,\n height: SMALL_ATTACHMENT_SIZE,\n lineHeight: SMALL_ATTACHMENT_SIZE,\n width: SMALL_ATTACHMENT_SIZE,\n },\n content: {\n ...typographyStyles.caption1,\n },\n dismissButton: {\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalXXS}`,\n maxWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n minWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,\n },\n dismissIcon: {\n fontSize: SMALL_ATTACHMENT_SIZE,\n height: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,\n maxWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n minWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n },\n});\n\nconst usePrimaryActionNextStyles = makeStyles({\n root: {\n borderTopLeftRadius: tokens.borderRadiusXLarge,\n borderBottomLeftRadius: tokens.borderRadiusXLarge,\n },\n canvas: {\n padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,\n minHeight: '40px',\n },\n\n sidecar: {\n padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,\n minHeight: '32px',\n },\n});\n\nconst useDismissButtonNextStyles = makeStyles({\n root: {\n borderTopRightRadius: tokens.borderRadiusXLarge,\n borderBottomRightRadius: tokens.borderRadiusXLarge,\n ':hover': {\n color: tokens.colorNeutralForeground2,\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorNeutralForeground2,\n },\n },\n ':active': {\n color: tokens.colorNeutralForeground2Pressed,\n },\n ':focus': {\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorNeutralForeground2Hover,\n },\n },\n\n borderLeftColor: tokens.colorNeutralStroke1,\n borderLeftWidth: tokens.strokeWidthThin,\n borderLeftStyle: 'solid',\n },\n canvas: {\n padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,\n minHeight: '40px',\n width: '40px',\n },\n sidecar: {\n padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalMNudge}`,\n minHeight: '32px',\n width: '32px',\n },\n dismissOnly: {\n borderRadius: tokens.borderRadiusXLarge,\n width: 'unset',\n borderLeftColor: tokens.colorTransparentStroke,\n },\n});\n\nconst usePrimaryDismissNextStyles = makeStyles({\n sharedStyles: {\n border: 'none',\n backgroundColor: tokens.colorNeutralBackground3,\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground3Hover,\n },\n ':active': {\n backgroundColor: tokens.colorNeutralBackground3Pressed,\n },\n ':focus-visible': {\n borderRadius: tokens.borderRadiusLarge,\n },\n },\n});\n\nconst useRootNextStyles = makeStyles({\n root: {\n outline: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n borderRadius: tokens.borderRadiusXLarge,\n },\n});\n\n/**\n * Apply styling to the Attachment slots based on the state\n */\nexport const useAttachmentStyles_unstable = (state: AttachmentState): AttachmentState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n const primaryActionBaseClassName = usePrimaryActionBaseClassName();\n const dismissButtonBaseClassName = useDismissButtonBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const dismissIconBaseClassName = useDismissIconBaseClassName();\n const progressBarStyles = useProgressBarStyles();\n const primaryActionStyles = usePrimaryActionStyles();\n const imageOnlyStyles = useImageOnlyStyles();\n const smallStyles = useSmallStyles();\n const primaryActionNextStyles = usePrimaryActionNextStyles();\n const dismissButtonNextStyles = useDismissButtonNextStyles();\n const primaryDismissNextStyles = usePrimaryDismissNextStyles();\n const rootNextStyles = useRootNextStyles();\n const { imageOnly, primaryAction, size, mode, designVersion, dismissOnly } = state;\n\n state.root.className = mergeClasses(\n attachmentClassNames.root,\n rootBaseClassName,\n designVersion === 'next' && rootNextStyles.root,\n state.root.className,\n );\n state.primaryAction.className = mergeClasses(\n attachmentClassNames.primaryAction,\n primaryActionBaseClassName,\n size === 'small' && smallStyles.primaryAction,\n primaryAction.as !== 'span' && !state.isLoading && primaryActionStyles.button,\n imageOnly && imageOnlyStyles.primaryAction,\n designVersion === 'next' && primaryDismissNextStyles.sharedStyles,\n designVersion === 'next' && primaryActionNextStyles.root,\n designVersion === 'next' && primaryActionNextStyles[mode],\n state.primaryAction.className,\n );\n state.dismissButton.className = mergeClasses(\n attachmentClassNames.dismissButton,\n dismissButtonBaseClassName,\n size === 'small' && smallStyles.dismissButton,\n designVersion === 'next' && primaryDismissNextStyles.sharedStyles,\n designVersion === 'next' && dismissButtonNextStyles.root,\n designVersion === 'next' && dismissButtonNextStyles[mode],\n designVersion === 'next' && dismissOnly && dismissButtonNextStyles.dismissOnly,\n state.dismissButton.className,\n );\n if (state.media) {\n state.media.className = mergeClasses(\n attachmentClassNames.media,\n mediaBaseClassName,\n size === 'small' && smallStyles.media,\n state.media.className,\n );\n }\n state.content.className = mergeClasses(\n attachmentClassNames.content,\n contentBaseClassName,\n size === 'small' && smallStyles.content,\n imageOnly && imageOnlyStyles.content,\n state.content.className,\n );\n state.dismissIcon.className = mergeClasses(\n attachmentClassNames.dismissIcon,\n dismissIconBaseClassName,\n size === 'small' && smallStyles.dismissIcon,\n state.dismissIcon.className,\n );\n\n if (state.progress) {\n state.progress.className = mergeClasses(\n attachmentClassNames.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":["createCustomFocusIndicatorStyle","makeResetStyles","makeStyles","mergeClasses","slot","typographyStyles","tokens","useProgressBarStyles","attachmentClassNames","root","primaryAction","dismissButton","media","content","dismissIcon","progress","ATTACHMENT_MAXWIDTH","SMALL_ATTACHMENT_SIZE","ATTACHMENT_SIZE","useRootBaseClassName","display","flexWrap","verticalAlign","boxSizing","width","alignSelf","position","buttonBaseStyles","alignItems","backgroundColor","colorSubtleBackground","border","strokeWidthThin","colorNeutralStroke1","borderRadius","borderRadiusMedium","columnGap","spacingHorizontalSNudge","color","colorNeutralForeground1","cursor","justifyContent","outline","strokeWidthThick","colorStrokeFocus2","zIndex","usePrimaryActionBaseClassName","borderTopRightRadius","borderRadiusNone","borderBottomRightRadius","borderRightStyle","maxWidth","spacingHorizontalXXS","spacingHorizontalXS","padding","spacingVerticalXS","spacingHorizontalS","usePrimaryActionStyles","button","colorSubtleBackgroundHover","colorNeutralForeground2Hover","colorSubtleBackgroundPressed","colorNeutralForeground2Pressed","useDismissButtonBaseClassName","minWidth","borderLeftColor","borderTopLeftRadius","borderBottomLeftRadius","colorNeutralForeground2BrandHover","colorBrandForegroundLinkHover","colorNeutralForeground2BrandPressed","useMediaBaseClassName","fontSize","height","lineHeight","useContentBaseClassName","overflowX","textOverflow","whiteSpace","body1","useDismissIconBaseClassName","borderRadiusCircular","colorTransparentStroke","spacingVerticalXXS","useImageOnlyStyles","useOverflowStyles","overflow","useSmallStyles","caption1","usePrimaryActionNextStyles","borderRadiusXLarge","canvas","spacingVerticalNone","minHeight","sidecar","useDismissButtonNextStyles","colorNeutralForeground2","borderLeftWidth","borderLeftStyle","spacingHorizontalMNudge","dismissOnly","usePrimaryDismissNextStyles","sharedStyles","colorNeutralBackground3","colorNeutralBackground3Hover","colorNeutralBackground3Pressed","borderRadiusLarge","useRootNextStyles","useAttachmentStyles_unstable","state","rootBaseClassName","primaryActionBaseClassName","dismissButtonBaseClassName","mediaBaseClassName","contentBaseClassName","dismissIconBaseClassName","progressBarStyles","primaryActionStyles","imageOnlyStyles","smallStyles","primaryActionNextStyles","dismissButtonNextStyles","primaryDismissNextStyles","rootNextStyles","imageOnly","size","mode","designVersion","className","as","isLoading","bar","optional","elementType","renderByDefault","value","undefined","indeterminateProgressBar","regularProgressBar"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AItB,MAAM9F,QAAQ,CAACwH,KAAK,KAAKC,WAAW;gBACtCL,IAAIH,SAAS,GAAG7H,aAAaiH,kBAAkBqB,wBAAwB,EAAEN,IAAIH,SAAS;YACxF,OAAO;gBACLG,IAAIH,SAAS,GAAG7H,aAAaiH,kBAAkBsB,kBAAkB,EAAEP,IAAIH,SAAS;YAClF;YACAnB,MAAM9F,QAAQ,CAACoH,GAAG,GAAGA;QACvB;IACF;IAEA,OAAOtB;AACT,EAAE"}
@@ -4,12 +4,11 @@ import { renderAttachmentList_unstable } from './renderAttachmentList';
4
4
  import { useAttachmentListStyles_unstable } from './useAttachmentListStyles.styles';
5
5
  import { useAttachmentListContextValues_unstable } from './useAttachmentListContextValues';
6
6
  import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
7
- export const AttachmentList = /*#__PURE__*/React.forwardRef((props, ref) => {
8
- const state = useAttachmentList_unstable(props, ref);
9
- const contextValues = useAttachmentListContextValues_unstable(state);
10
- useAttachmentListStyles_unstable(state);
11
- useCustomStyleHook('useAttachmentListStyles')(state);
12
- return renderAttachmentList_unstable(state, contextValues);
7
+ export const AttachmentList = /*#__PURE__*/ React.forwardRef((props, ref)=>{
8
+ const state = useAttachmentList_unstable(props, ref);
9
+ const contextValues = useAttachmentListContextValues_unstable(state);
10
+ useAttachmentListStyles_unstable(state);
11
+ useCustomStyleHook('useAttachmentListStyles')(state);
12
+ return renderAttachmentList_unstable(state, contextValues);
13
13
  });
14
14
  AttachmentList.displayName = 'AttachmentList';
15
- //# sourceMappingURL=AttachmentList.js.map
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=AttachmentList.types.js.map
1
+ export { };
@@ -2,4 +2,3 @@ export { AttachmentList } from './AttachmentList';
2
2
  export { renderAttachmentList_unstable } from './renderAttachmentList';
3
3
  export { useAttachmentList_unstable } from './useAttachmentList';
4
4
  export { attachmentListClassNames, useAttachmentListStyles_unstable } from './useAttachmentListStyles.styles';
5
- //# sourceMappingURL=index.js.map
@@ -1,31 +1,31 @@
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 { Overflow, assertSlots } from '@fluentui/react-components';
3
3
  import { AttachmentListProvider } from '../../contexts/attachmentListContext';
4
4
  import { AttachmentOverflowMenu } from '../AttachmentOverflowMenu';
5
5
  /**
6
6
  * Render the final JSX of AttachmentList
7
- */
8
- export const renderAttachmentList_unstable = (state, contextValues) => {
9
- assertSlots(state);
10
- const {
11
- overflowMenuProps,
12
- root,
13
- shouldUseOverflow
14
- } = state;
15
- return /*#__PURE__*/_jsx(AttachmentListProvider, {
16
- value: contextValues.attachmentList,
17
- children: shouldUseOverflow && state.overflowMenuButton && state.menuList && state.menuPopover ? /*#__PURE__*/_jsx(Overflow, {
18
- ref: root.ref,
19
- children: /*#__PURE__*/_jsxs(state.root, {
20
- children: [root.children, /*#__PURE__*/_jsxs(AttachmentOverflowMenu, {
21
- positioning: 'above',
22
- ...overflowMenuProps,
23
- children: [/*#__PURE__*/_jsx(state.overflowMenuButton, {}), /*#__PURE__*/_jsx(state.menuPopover, {
24
- children: /*#__PURE__*/_jsx(state.menuList, {})
25
- })]
26
- })]
27
- })
28
- }) : /*#__PURE__*/_jsx(state.root, {})
29
- });
7
+ */ export const renderAttachmentList_unstable = (state, contextValues)=>{
8
+ assertSlots(state);
9
+ const { overflowMenuProps, root, shouldUseOverflow } = state;
10
+ return /*#__PURE__*/ _jsx(AttachmentListProvider, {
11
+ value: contextValues.attachmentList,
12
+ children: shouldUseOverflow && state.overflowMenuButton && state.menuList && state.menuPopover ? /*#__PURE__*/ _jsx(Overflow, {
13
+ ref: root.ref,
14
+ children: /*#__PURE__*/ _jsxs(state.root, {
15
+ children: [
16
+ root.children,
17
+ /*#__PURE__*/ _jsxs(AttachmentOverflowMenu, {
18
+ positioning: 'above',
19
+ ...overflowMenuProps,
20
+ children: [
21
+ /*#__PURE__*/ _jsx(state.overflowMenuButton, {}),
22
+ /*#__PURE__*/ _jsx(state.menuPopover, {
23
+ children: /*#__PURE__*/ _jsx(state.menuList, {})
24
+ })
25
+ ]
26
+ })
27
+ ]
28
+ })
29
+ }) : /*#__PURE__*/ _jsx(state.root, {})
30
+ });
30
31
  };
31
- //# sourceMappingURL=renderAttachmentList.js.map