@fluentui-copilot/react-attachments 0.13.2 → 0.13.3

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 (133) hide show
  1. package/CHANGELOG.json +16 -1
  2. package/CHANGELOG.md +11 -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/components/AgentTag/AgentTag.js +4 -5
  10. package/lib/components/AgentTag/AgentTag.types.js +1 -2
  11. package/lib/components/AgentTag/index.js +0 -1
  12. package/lib/components/AgentTag/renderAgentTag.js +3 -5
  13. package/lib/components/AgentTag/useAgentTag.js +7 -9
  14. package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js +66 -0
  15. package/lib/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
  16. package/lib/components/Attachment/Attachment.js +5 -6
  17. package/lib/components/Attachment/Attachment.types.js +1 -2
  18. package/lib/components/Attachment/index.js +0 -1
  19. package/lib/components/Attachment/renderAttachment.js +36 -31
  20. package/lib/components/Attachment/useAttachment.js +85 -95
  21. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js +317 -0
  22. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  23. package/lib/components/AttachmentList/AttachmentList.js +6 -7
  24. package/lib/components/AttachmentList/AttachmentList.types.js +1 -2
  25. package/lib/components/AttachmentList/index.js +0 -1
  26. package/lib/components/AttachmentList/renderAttachmentList.js +25 -25
  27. package/lib/components/AttachmentList/useAttachmentList.js +113 -124
  28. package/lib/components/AttachmentList/useAttachmentListContextValues.js +10 -15
  29. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js +44 -0
  30. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  31. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +8 -9
  32. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +1 -2
  33. package/lib/components/AttachmentOverflowMenu/index.js +0 -1
  34. package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +8 -13
  35. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +9 -15
  36. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +10 -15
  37. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +5 -6
  38. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +1 -2
  39. package/lib/components/AttachmentOverflowMenuButton/index.js +0 -1
  40. package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +11 -10
  41. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +51 -59
  42. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +102 -0
  43. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  44. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +4 -5
  45. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +1 -2
  46. package/lib/components/AttachmentOverflowMenuItem/index.js +0 -1
  47. package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +9 -8
  48. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +41 -49
  49. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +57 -0
  50. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  51. package/lib/components/index.js +0 -1
  52. package/lib/components/utils/useProgressBarStyles.styles.raw.js +42 -0
  53. package/lib/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  54. package/lib/contexts/attachmentListContext.js +4 -5
  55. package/lib/contexts/attachmentOverflowMenuContext.js +4 -5
  56. package/lib/index.js +0 -1
  57. package/lib-commonjs/AgentTag.js +0 -1
  58. package/lib-commonjs/Attachment.js +0 -1
  59. package/lib-commonjs/AttachmentList.js +0 -1
  60. package/lib-commonjs/AttachmentOverflowMenu.js +0 -1
  61. package/lib-commonjs/AttachmentOverflowMenuButton.js +0 -1
  62. package/lib-commonjs/AttachmentOverflowMenuItem.js +0 -1
  63. package/lib-commonjs/components/AgentTag/AgentTag.js +1 -1
  64. package/lib-commonjs/components/AgentTag/AgentTag.js.map +1 -1
  65. package/lib-commonjs/components/AgentTag/AgentTag.types.js +0 -1
  66. package/lib-commonjs/components/AgentTag/index.js +0 -1
  67. package/lib-commonjs/components/AgentTag/renderAgentTag.js +1 -1
  68. package/lib-commonjs/components/AgentTag/renderAgentTag.js.map +1 -1
  69. package/lib-commonjs/components/AgentTag/useAgentTag.js +1 -1
  70. package/lib-commonjs/components/AgentTag/useAgentTag.js.map +1 -1
  71. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js +82 -0
  72. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
  73. package/lib-commonjs/components/Attachment/Attachment.js +1 -1
  74. package/lib-commonjs/components/Attachment/Attachment.js.map +1 -1
  75. package/lib-commonjs/components/Attachment/Attachment.types.js +0 -1
  76. package/lib-commonjs/components/Attachment/index.js +0 -1
  77. package/lib-commonjs/components/Attachment/renderAttachment.js +1 -1
  78. package/lib-commonjs/components/Attachment/renderAttachment.js.map +1 -1
  79. package/lib-commonjs/components/Attachment/useAttachment.js +1 -1
  80. package/lib-commonjs/components/Attachment/useAttachment.js.map +1 -1
  81. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js +336 -0
  82. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  83. package/lib-commonjs/components/AttachmentList/AttachmentList.js +1 -1
  84. package/lib-commonjs/components/AttachmentList/AttachmentList.js.map +1 -1
  85. package/lib-commonjs/components/AttachmentList/AttachmentList.types.js +0 -1
  86. package/lib-commonjs/components/AttachmentList/index.js +0 -1
  87. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js +1 -1
  88. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js.map +1 -1
  89. package/lib-commonjs/components/AttachmentList/useAttachmentList.js +1 -1
  90. package/lib-commonjs/components/AttachmentList/useAttachmentList.js.map +1 -1
  91. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js +1 -1
  92. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js.map +1 -1
  93. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js +60 -0
  94. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  95. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +1 -1
  96. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -1
  97. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +0 -1
  98. package/lib-commonjs/components/AttachmentOverflowMenu/index.js +0 -1
  99. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +1 -1
  100. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -1
  101. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +1 -1
  102. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -1
  103. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +1 -1
  104. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -1
  105. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +1 -1
  106. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -1
  107. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +0 -1
  108. package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js +0 -1
  109. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +1 -1
  110. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -1
  111. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +1 -1
  112. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -1
  113. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +118 -0
  114. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  115. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +1 -1
  116. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -1
  117. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +0 -1
  118. package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js +0 -1
  119. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +1 -1
  120. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -1
  121. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +1 -1
  122. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -1
  123. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +73 -0
  124. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  125. package/lib-commonjs/components/index.js +0 -1
  126. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js +50 -0
  127. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  128. package/lib-commonjs/contexts/attachmentListContext.js +1 -1
  129. package/lib-commonjs/contexts/attachmentListContext.js.map +1 -1
  130. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js +1 -1
  131. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js.map +1 -1
  132. package/lib-commonjs/index.js +0 -1
  133. package/package.json +4 -4
@@ -0,0 +1,317 @@
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
+ },
88
+ ':active': {
89
+ backgroundColor: tokens.colorSubtleBackgroundPressed,
90
+ color: tokens.colorNeutralForeground2BrandPressed
91
+ },
92
+ '@media (forced-colors: active)': {
93
+ ':hover': {
94
+ backgroundColor: 'HighlightText'
95
+ },
96
+ ':active': {
97
+ backgroundColor: 'HighlightText'
98
+ }
99
+ }
100
+ });
101
+ const useDismissButtonCurrentStyles = makeStyles({
102
+ root: {
103
+ ':hover': {
104
+ [`& .${attachmentClassNames.dismissIcon}`]: {
105
+ color: tokens.colorBrandForegroundLinkHover
106
+ }
107
+ }
108
+ }
109
+ });
110
+ const useMediaBaseClassName = makeResetStyles({
111
+ alignItems: 'center',
112
+ display: 'inline-flex',
113
+ fontSize: ATTACHMENT_SIZE,
114
+ height: ATTACHMENT_SIZE,
115
+ lineHeight: ATTACHMENT_SIZE,
116
+ width: ATTACHMENT_SIZE
117
+ });
118
+ const useContentBaseClassName = makeResetStyles({
119
+ overflowX: 'hidden',
120
+ textOverflow: 'ellipsis',
121
+ whiteSpace: 'nowrap',
122
+ ...typographyStyles.body1
123
+ });
124
+ const useDismissIconBaseClassName = makeResetStyles({
125
+ alignItems: 'center',
126
+ borderRadius: tokens.borderRadiusCircular,
127
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,
128
+ boxSizing: 'border-box',
129
+ color: tokens.colorNeutralForeground1,
130
+ display: 'inline-flex',
131
+ fontSize: ATTACHMENT_SIZE,
132
+ height: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,
133
+ justifyContent: 'center',
134
+ maxWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,
135
+ minWidth: `calc(${ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,
136
+ padding: `calc(${tokens.spacingVerticalXXS} / 2) calc(${tokens.spacingHorizontalXXS} / 2)`
137
+ });
138
+ const useDismissIconNextStyles = makeStyles({
139
+ dismissOnly: {
140
+ ':hover': {
141
+ color: tokens.colorNeutralForeground2BrandHover
142
+ },
143
+ ':active': {
144
+ color: tokens.colorNeutralForeground2BrandPressed
145
+ }
146
+ }
147
+ });
148
+ const useImageOnlyStyles = makeStyles({
149
+ primaryAction: {
150
+ padding: 0
151
+ },
152
+ content: {
153
+ lineHeight: 0
154
+ }
155
+ });
156
+ export const useOverflowStyles = makeStyles({
157
+ overflow: {
158
+ maxWidth: '100%',
159
+ width: '100%'
160
+ }
161
+ });
162
+ const useSmallStyles = makeStyles({
163
+ primaryAction: {
164
+ maxWidth: `calc(${ATTACHMENT_MAXWIDTH} - ${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS} - ${tokens.spacingHorizontalXS})`,
165
+ padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalSNudge} ${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalSNudge}`
166
+ },
167
+ media: {
168
+ fontSize: SMALL_ATTACHMENT_SIZE,
169
+ height: SMALL_ATTACHMENT_SIZE,
170
+ lineHeight: SMALL_ATTACHMENT_SIZE,
171
+ width: SMALL_ATTACHMENT_SIZE
172
+ },
173
+ content: {
174
+ ...typographyStyles.caption1
175
+ },
176
+ dismissButton: {
177
+ padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalXXS}`,
178
+ maxWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`,
179
+ minWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS}) + ${tokens.spacingHorizontalXS}`
180
+ },
181
+ dismissIcon: {
182
+ fontSize: SMALL_ATTACHMENT_SIZE,
183
+ height: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,
184
+ maxWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,
185
+ minWidth: `calc(${SMALL_ATTACHMENT_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`
186
+ }
187
+ });
188
+ const usePrimaryActionNextStyles = makeStyles({
189
+ root: {
190
+ borderTopLeftRadius: tokens.borderRadiusXLarge,
191
+ borderBottomLeftRadius: tokens.borderRadiusXLarge
192
+ },
193
+ canvas: {
194
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,
195
+ minHeight: '40px'
196
+ },
197
+ sidecar: {
198
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,
199
+ minHeight: '32px'
200
+ }
201
+ });
202
+ const useDismissButtonNextStyles = makeStyles({
203
+ root: {
204
+ borderTopRightRadius: tokens.borderRadiusXLarge,
205
+ borderBottomRightRadius: tokens.borderRadiusXLarge,
206
+ ':hover': {
207
+ color: tokens.colorNeutralForeground2
208
+ },
209
+ ':active': {
210
+ color: tokens.colorNeutralForeground2Pressed
211
+ },
212
+ borderLeftColor: tokens.colorNeutralStroke1,
213
+ borderLeftWidth: tokens.strokeWidthThin,
214
+ borderLeftStyle: 'solid'
215
+ },
216
+ withPrimary: {
217
+ ':hover': {
218
+ [`& .${attachmentClassNames.dismissIcon}`]: {
219
+ color: tokens.colorNeutralForeground2
220
+ }
221
+ },
222
+ ':active': {
223
+ [`& .${attachmentClassNames.dismissIcon}`]: {
224
+ color: tokens.colorNeutralForeground2Pressed
225
+ }
226
+ }
227
+ },
228
+ canvas: {
229
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalS}`,
230
+ minHeight: '40px',
231
+ width: '40px'
232
+ },
233
+ sidecar: {
234
+ padding: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalMNudge}`,
235
+ minHeight: '32px',
236
+ width: '32px'
237
+ },
238
+ dismissOnly: {
239
+ borderRadius: tokens.borderRadiusXLarge,
240
+ width: 'unset',
241
+ borderLeftColor: tokens.colorTransparentStroke,
242
+ backgroundColor: tokens.colorNeutralBackground3,
243
+ ':hover': {
244
+ backgroundColor: tokens.colorNeutralBackground3
245
+ },
246
+ ':active': {
247
+ backgroundColor: tokens.colorNeutralBackground3
248
+ }
249
+ }
250
+ });
251
+ const usePrimaryDismissNextStyles = makeStyles({
252
+ sharedStyles: {
253
+ border: 'none',
254
+ backgroundColor: tokens.colorNeutralBackground3,
255
+ ':hover': {
256
+ backgroundColor: tokens.colorNeutralBackground3Hover
257
+ },
258
+ ':active': {
259
+ backgroundColor: tokens.colorNeutralBackground3Pressed
260
+ },
261
+ ':focus-visible': {
262
+ borderRadius: tokens.borderRadiusLarge
263
+ }
264
+ }
265
+ });
266
+ const useRootNextStyles = makeStyles({
267
+ root: {
268
+ outline: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,
269
+ borderRadius: tokens.borderRadiusXLarge
270
+ }
271
+ });
272
+ /**
273
+ * Apply styling to the Attachment slots based on the state
274
+ */ export const useAttachmentStyles_unstable = (state)=>{
275
+ 'use no memo';
276
+ const rootBaseClassName = useRootBaseClassName();
277
+ const primaryActionBaseClassName = usePrimaryActionBaseClassName();
278
+ const dismissButtonBaseClassName = useDismissButtonBaseClassName();
279
+ const dismissButtonCurrentStyles = useDismissButtonCurrentStyles();
280
+ const mediaBaseClassName = useMediaBaseClassName();
281
+ const contentBaseClassName = useContentBaseClassName();
282
+ const dismissIconBaseClassName = useDismissIconBaseClassName();
283
+ const dismissIconNextStyles = useDismissIconNextStyles();
284
+ const progressBarStyles = useProgressBarStyles();
285
+ const primaryActionStyles = usePrimaryActionStyles();
286
+ const imageOnlyStyles = useImageOnlyStyles();
287
+ const smallStyles = useSmallStyles();
288
+ const primaryActionNextStyles = usePrimaryActionNextStyles();
289
+ const dismissButtonNextStyles = useDismissButtonNextStyles();
290
+ const primaryDismissNextStyles = usePrimaryDismissNextStyles();
291
+ const rootNextStyles = useRootNextStyles();
292
+ const { imageOnly, primaryAction, size, mode, designVersion, dismissOnly } = state;
293
+ state.root.className = mergeClasses(attachmentClassNames.root, rootBaseClassName, designVersion === 'next' && rootNextStyles.root, state.root.className);
294
+ 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);
295
+ state.dismissButton.className = mergeClasses(attachmentClassNames.dismissButton, dismissButtonBaseClassName, designVersion === 'current' && dismissButtonCurrentStyles.root, size === 'small' && smallStyles.dismissButton, designVersion === 'next' && primaryDismissNextStyles.sharedStyles, designVersion === 'next' && dismissButtonNextStyles.root, designVersion === 'next' && dismissButtonNextStyles[mode], designVersion === 'next' && dismissOnly && dismissButtonNextStyles.dismissOnly, designVersion === 'next' && !dismissOnly && dismissButtonNextStyles.withPrimary, state.dismissButton.className);
296
+ if (state.media) {
297
+ state.media.className = mergeClasses(attachmentClassNames.media, mediaBaseClassName, size === 'small' && smallStyles.media, state.media.className);
298
+ }
299
+ state.content.className = mergeClasses(attachmentClassNames.content, contentBaseClassName, size === 'small' && smallStyles.content, imageOnly && imageOnlyStyles.content, state.content.className);
300
+ state.dismissIcon.className = mergeClasses(attachmentClassNames.dismissIcon, dismissIconBaseClassName, size === 'small' && smallStyles.dismissIcon, designVersion === 'next' && dismissOnly && dismissIconNextStyles.dismissOnly, state.dismissIcon.className);
301
+ if (state.progress) {
302
+ state.progress.className = mergeClasses(attachmentClassNames.progress, progressBarStyles.progress, state.progress.className);
303
+ const bar = slot.optional(state.progress.bar, {
304
+ elementType: 'div',
305
+ renderByDefault: true
306
+ });
307
+ if (bar) {
308
+ if (state.progress.value === undefined) {
309
+ bar.className = mergeClasses(progressBarStyles.indeterminateProgressBar, bar.className);
310
+ } else {
311
+ bar.className = mergeClasses(progressBarStyles.regularProgressBar, bar.className);
312
+ }
313
+ state.progress.bar = bar;
314
+ }
315
+ }
316
+ return state;
317
+ };
@@ -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 },\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n '@media (forced-colors: active)': {\n ':hover': {\n backgroundColor: 'HighlightText',\n },\n ':active': {\n backgroundColor: 'HighlightText',\n },\n },\n});\n\nconst useDismissButtonCurrentStyles = makeStyles({\n root: {\n ':hover': {\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorBrandForegroundLinkHover,\n },\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 useDismissIconNextStyles = makeStyles({\n dismissOnly: {\n ':hover': {\n color: tokens.colorNeutralForeground2BrandHover,\n },\n ':active': {\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\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 },\n ':active': {\n color: tokens.colorNeutralForeground2Pressed,\n },\n\n borderLeftColor: tokens.colorNeutralStroke1,\n borderLeftWidth: tokens.strokeWidthThin,\n borderLeftStyle: 'solid',\n },\n withPrimary: {\n ':hover': {\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorNeutralForeground2,\n },\n },\n ':active': {\n [`& .${attachmentClassNames.dismissIcon}`]: {\n color: tokens.colorNeutralForeground2Pressed,\n },\n },\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 backgroundColor: tokens.colorNeutralBackground3,\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground3,\n },\n ':active': {\n backgroundColor: tokens.colorNeutralBackground3,\n },\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 dismissButtonCurrentStyles = useDismissButtonCurrentStyles();\n const mediaBaseClassName = useMediaBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const dismissIconBaseClassName = useDismissIconBaseClassName();\n const dismissIconNextStyles = useDismissIconNextStyles();\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 designVersion === 'current' && dismissButtonCurrentStyles.root,\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 designVersion === 'next' && !dismissOnly && dismissButtonNextStyles.withPrimary,\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 designVersion === 'next' && dismissOnly && dismissIconNextStyles.dismissOnly,\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","colorNeutralForeground2BrandPressed","useDismissButtonCurrentStyles","colorBrandForegroundLinkHover","useMediaBaseClassName","fontSize","height","lineHeight","useContentBaseClassName","overflowX","textOverflow","whiteSpace","body1","useDismissIconBaseClassName","borderRadiusCircular","colorTransparentStroke","spacingVerticalXXS","useDismissIconNextStyles","dismissOnly","useImageOnlyStyles","useOverflowStyles","overflow","useSmallStyles","caption1","usePrimaryActionNextStyles","borderRadiusXLarge","canvas","spacingVerticalNone","minHeight","sidecar","useDismissButtonNextStyles","colorNeutralForeground2","borderLeftWidth","borderLeftStyle","withPrimary","spacingHorizontalMNudge","colorNeutralBackground3","usePrimaryDismissNextStyles","sharedStyles","colorNeutralBackground3Hover","colorNeutralBackground3Pressed","borderRadiusLarge","useRootNextStyles","useAttachmentStyles_unstable","state","rootBaseClassName","primaryActionBaseClassName","dismissButtonBaseClassName","dismissButtonCurrentStyles","mediaBaseClassName","contentBaseClassName","dismissIconBaseClassName","dismissIconNextStyles","progressBarStyles","primaryActionStyles","imageOnlyStyles","smallStyles","primaryActionNextStyles","dismissButtonNextStyles","primaryDismissNextStyles","rootNextStyles","imageOnly","size","mode","designVersion","className","as","isLoading","bar","optional","elementType","renderByDefault","value","undefined","indeterminateProgressBar","regularProgressBar"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SACEA,+BAA+B,EAC/BC,eAAe,EACfC,UAAU,EACVC,YAAY,EACZC,IAAI,EACJC,gBAAgB,QACX,6BAA6B;AACpC,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,oBAAoB,QAAQ,uCAAuC;AAI5E,OAAO,MAAMC,uBAAwD;IACnEC,MAAM;IACNC,eAAe;IACfC,eAAe;IACfC,OAAO;IACPC,SAAS;IACTC,aAAa;IACbC,UAAU;AACZ,EAAE;AAEF,MAAMC,sBAAsB;AAC5B,MAAMC,wBAAwB;AAC9B,MAAMC,kBAAkB;AAExB,MAAMC,uBAAuBlB,gBAAgB;IAC3CmB,SAAS;IACTC,UAAU;IACVC,eAAe;IACfC,WAAW;IACXC,OAAO;IACPC,WAAW;IACXC,UAAU;AACZ;AAEA,MAAMC,mBAAsC;IAC1CC,YAAY;IACZC,iBAAiBvB,OAAOwB,qBAAqB;IAC7CC,QAAQ,CAAC,EAAEzB,OAAO0B,eAAe,CAAC,OAAO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les_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