@fluentui-copilot/react-attachments 0.12.4 → 0.12.5-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 (203) hide show
  1. package/CHANGELOG.json +46 -1
  2. package/CHANGELOG.md +20 -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.js +34 -12
  25. package/lib/components/Attachment/useAttachmentStyles.styles.js.map +1 -1
  26. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js +317 -0
  27. package/lib/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  28. package/lib/components/AttachmentList/AttachmentList.js +6 -7
  29. package/lib/components/AttachmentList/AttachmentList.types.js +1 -2
  30. package/lib/components/AttachmentList/index.js +0 -1
  31. package/lib/components/AttachmentList/renderAttachmentList.js +25 -25
  32. package/lib/components/AttachmentList/useAttachmentList.js +113 -124
  33. package/lib/components/AttachmentList/useAttachmentListContextValues.js +10 -15
  34. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js +44 -0
  35. package/lib/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  36. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +8 -9
  37. package/lib/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +1 -2
  38. package/lib/components/AttachmentOverflowMenu/index.js +0 -1
  39. package/lib/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +8 -13
  40. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +9 -15
  41. package/lib/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +10 -15
  42. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +5 -6
  43. package/lib/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +1 -2
  44. package/lib/components/AttachmentOverflowMenuButton/index.js +0 -1
  45. package/lib/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +11 -10
  46. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +51 -59
  47. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +102 -0
  48. package/lib/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  49. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +4 -5
  50. package/lib/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +1 -2
  51. package/lib/components/AttachmentOverflowMenuItem/index.js +0 -1
  52. package/lib/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +9 -8
  53. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +41 -49
  54. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +57 -0
  55. package/lib/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  56. package/lib/components/AttachmentTag/AttachmentTag.js +5 -7
  57. package/lib/components/AttachmentTag/AttachmentTag.types.js +1 -2
  58. package/lib/components/AttachmentTag/index.js +0 -1
  59. package/lib/components/AttachmentTag/renderAttachmentTag.js +10 -8
  60. package/lib/components/AttachmentTag/useAttachmentTag.js +9 -11
  61. package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js +98 -0
  62. package/lib/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js.map +1 -0
  63. package/lib/components/AttachmentTagItem/AttachmentTagItem.js +4 -6
  64. package/lib/components/AttachmentTagItem/AttachmentTagItem.types.js +1 -2
  65. package/lib/components/AttachmentTagItem/index.js +0 -1
  66. package/lib/components/AttachmentTagItem/renderAttachmentTagItem.js +10 -8
  67. package/lib/components/AttachmentTagItem/useAttachmentTagItem.js +9 -11
  68. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js +34 -0
  69. package/lib/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js.map +1 -0
  70. package/lib/components/AttachmentTagList/AttachmentTagList.js +6 -8
  71. package/lib/components/AttachmentTagList/AttachmentTagList.types.js +1 -2
  72. package/lib/components/AttachmentTagList/index.js +0 -1
  73. package/lib/components/AttachmentTagList/renderAttachmentTagList.js +7 -9
  74. package/lib/components/AttachmentTagList/useAttachmentTagList.js +21 -25
  75. package/lib/components/AttachmentTagList/useAttachmentTagListContextValues.js +8 -11
  76. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js +21 -0
  77. package/lib/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js.map +1 -0
  78. package/lib/components/index.js +0 -1
  79. package/lib/components/utils/useAttachmentTagSlots.js +45 -52
  80. package/lib/components/utils/useProgressBarStyles.styles.raw.js +42 -0
  81. package/lib/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  82. package/lib/contexts/attachmentListContext.js +4 -5
  83. package/lib/contexts/attachmentOverflowMenuContext.js +4 -5
  84. package/lib/contexts/attachmentTagListContext.js +2 -3
  85. package/lib/index.js +0 -1
  86. package/lib-commonjs/AgentTag.js +0 -1
  87. package/lib-commonjs/Attachment.js +0 -1
  88. package/lib-commonjs/AttachmentList.js +0 -1
  89. package/lib-commonjs/AttachmentOverflowMenu.js +0 -1
  90. package/lib-commonjs/AttachmentOverflowMenuButton.js +0 -1
  91. package/lib-commonjs/AttachmentOverflowMenuItem.js +0 -1
  92. package/lib-commonjs/AttachmentTag.js +0 -1
  93. package/lib-commonjs/AttachmentTagItem.js +0 -1
  94. package/lib-commonjs/AttachmentTagList.js +0 -1
  95. package/lib-commonjs/components/AgentTag/AgentTag.js +1 -1
  96. package/lib-commonjs/components/AgentTag/AgentTag.js.map +1 -1
  97. package/lib-commonjs/components/AgentTag/AgentTag.types.js +0 -1
  98. package/lib-commonjs/components/AgentTag/index.js +0 -1
  99. package/lib-commonjs/components/AgentTag/renderAgentTag.js +1 -1
  100. package/lib-commonjs/components/AgentTag/renderAgentTag.js.map +1 -1
  101. package/lib-commonjs/components/AgentTag/useAgentTag.js +1 -1
  102. package/lib-commonjs/components/AgentTag/useAgentTag.js.map +1 -1
  103. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js +82 -0
  104. package/lib-commonjs/components/AgentTag/useAgentTagStyles.styles.raw.js.map +1 -0
  105. package/lib-commonjs/components/Attachment/Attachment.js +1 -1
  106. package/lib-commonjs/components/Attachment/Attachment.js.map +1 -1
  107. package/lib-commonjs/components/Attachment/Attachment.types.js +0 -1
  108. package/lib-commonjs/components/Attachment/index.js +0 -1
  109. package/lib-commonjs/components/Attachment/renderAttachment.js +1 -1
  110. package/lib-commonjs/components/Attachment/renderAttachment.js.map +1 -1
  111. package/lib-commonjs/components/Attachment/useAttachment.js +1 -1
  112. package/lib-commonjs/components/Attachment/useAttachment.js.map +1 -1
  113. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js +52 -26
  114. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.js.map +1 -1
  115. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js +336 -0
  116. package/lib-commonjs/components/Attachment/useAttachmentStyles.styles.raw.js.map +1 -0
  117. package/lib-commonjs/components/AttachmentList/AttachmentList.js +1 -1
  118. package/lib-commonjs/components/AttachmentList/AttachmentList.js.map +1 -1
  119. package/lib-commonjs/components/AttachmentList/AttachmentList.types.js +0 -1
  120. package/lib-commonjs/components/AttachmentList/index.js +0 -1
  121. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js +1 -1
  122. package/lib-commonjs/components/AttachmentList/renderAttachmentList.js.map +1 -1
  123. package/lib-commonjs/components/AttachmentList/useAttachmentList.js +1 -1
  124. package/lib-commonjs/components/AttachmentList/useAttachmentList.js.map +1 -1
  125. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js +1 -1
  126. package/lib-commonjs/components/AttachmentList/useAttachmentListContextValues.js.map +1 -1
  127. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js +60 -0
  128. package/lib-commonjs/components/AttachmentList/useAttachmentListStyles.styles.raw.js.map +1 -0
  129. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js +1 -1
  130. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.js.map +1 -1
  131. package/lib-commonjs/components/AttachmentOverflowMenu/AttachmentOverflowMenu.types.js +0 -1
  132. package/lib-commonjs/components/AttachmentOverflowMenu/index.js +0 -1
  133. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js +1 -1
  134. package/lib-commonjs/components/AttachmentOverflowMenu/renderAttachmentOverflowMenu.js.map +1 -1
  135. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js +1 -1
  136. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenu.js.map +1 -1
  137. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js +1 -1
  138. package/lib-commonjs/components/AttachmentOverflowMenu/useAttachmentOverflowMenuContextValues.js.map +1 -1
  139. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js +1 -1
  140. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.js.map +1 -1
  141. package/lib-commonjs/components/AttachmentOverflowMenuButton/AttachmentOverflowMenuButton.types.js +0 -1
  142. package/lib-commonjs/components/AttachmentOverflowMenuButton/index.js +0 -1
  143. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js +1 -1
  144. package/lib-commonjs/components/AttachmentOverflowMenuButton/renderAttachmentOverflowMenuButton.js.map +1 -1
  145. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js +1 -1
  146. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButton.js.map +1 -1
  147. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js +118 -0
  148. package/lib-commonjs/components/AttachmentOverflowMenuButton/useAttachmentOverflowMenuButtonStyles.styles.raw.js.map +1 -0
  149. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js +1 -1
  150. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.js.map +1 -1
  151. package/lib-commonjs/components/AttachmentOverflowMenuItem/AttachmentOverflowMenuItem.types.js +0 -1
  152. package/lib-commonjs/components/AttachmentOverflowMenuItem/index.js +0 -1
  153. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js +1 -1
  154. package/lib-commonjs/components/AttachmentOverflowMenuItem/renderAttachmentOverflowMenuItem.js.map +1 -1
  155. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js +1 -1
  156. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItem.js.map +1 -1
  157. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js +73 -0
  158. package/lib-commonjs/components/AttachmentOverflowMenuItem/useAttachmentOverflowMenuItemStyles.styles.raw.js.map +1 -0
  159. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js +1 -1
  160. package/lib-commonjs/components/AttachmentTag/AttachmentTag.js.map +1 -1
  161. package/lib-commonjs/components/AttachmentTag/AttachmentTag.types.js +0 -1
  162. package/lib-commonjs/components/AttachmentTag/index.js +0 -1
  163. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js +1 -1
  164. package/lib-commonjs/components/AttachmentTag/renderAttachmentTag.js.map +1 -1
  165. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js +1 -1
  166. package/lib-commonjs/components/AttachmentTag/useAttachmentTag.js.map +1 -1
  167. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js +118 -0
  168. package/lib-commonjs/components/AttachmentTag/useAttachmentTagStyles.styles.raw.js.map +1 -0
  169. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js +1 -1
  170. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.js.map +1 -1
  171. package/lib-commonjs/components/AttachmentTagItem/AttachmentTagItem.types.js +0 -1
  172. package/lib-commonjs/components/AttachmentTagItem/index.js +0 -1
  173. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js +1 -1
  174. package/lib-commonjs/components/AttachmentTagItem/renderAttachmentTagItem.js.map +1 -1
  175. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js +1 -1
  176. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItem.js.map +1 -1
  177. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js +50 -0
  178. package/lib-commonjs/components/AttachmentTagItem/useAttachmentTagItemStyles.styles.raw.js.map +1 -0
  179. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js +1 -1
  180. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.js.map +1 -1
  181. package/lib-commonjs/components/AttachmentTagList/AttachmentTagList.types.js +0 -1
  182. package/lib-commonjs/components/AttachmentTagList/index.js +0 -1
  183. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js +1 -1
  184. package/lib-commonjs/components/AttachmentTagList/renderAttachmentTagList.js.map +1 -1
  185. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js +1 -1
  186. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagList.js.map +1 -1
  187. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js +1 -1
  188. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListContextValues.js.map +1 -1
  189. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js +37 -0
  190. package/lib-commonjs/components/AttachmentTagList/useAttachmentTagListStyles.styles.raw.js.map +1 -0
  191. package/lib-commonjs/components/index.js +0 -1
  192. package/lib-commonjs/components/utils/useAttachmentTagSlots.js +1 -1
  193. package/lib-commonjs/components/utils/useAttachmentTagSlots.js.map +1 -1
  194. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js +50 -0
  195. package/lib-commonjs/components/utils/useProgressBarStyles.styles.raw.js.map +1 -0
  196. package/lib-commonjs/contexts/attachmentListContext.js +1 -1
  197. package/lib-commonjs/contexts/attachmentListContext.js.map +1 -1
  198. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js +1 -1
  199. package/lib-commonjs/contexts/attachmentOverflowMenuContext.js.map +1 -1
  200. package/lib-commonjs/contexts/attachmentTagListContext.js +1 -1
  201. package/lib-commonjs/contexts/attachmentTagListContext.js.map +1 -1
  202. package/lib-commonjs/index.js +0 -1
  203. package/package.json +5 -9
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ ATTACHMENTTAG_MAXWIDTH: function() {
13
+ return ATTACHMENTTAG_MAXWIDTH;
14
+ },
15
+ attachmentTagClassNames: function() {
16
+ return attachmentTagClassNames;
17
+ },
18
+ useAttachmentTagStyles_unstable: function() {
19
+ return useAttachmentTagStyles_unstable;
20
+ },
21
+ useContentBaseClassName: function() {
22
+ return useContentBaseClassName;
23
+ },
24
+ useIconBaseClassName: function() {
25
+ return useIconBaseClassName;
26
+ },
27
+ useMediaBaseClassName: function() {
28
+ return useMediaBaseClassName;
29
+ }
30
+ });
31
+ const _reactcomponents = require("@fluentui/react-components");
32
+ const _tokens = require("@fluentui-copilot/tokens");
33
+ const attachmentTagClassNames = {
34
+ root: 'fai-AttachmentTag',
35
+ media: 'fai-AttachmentTag__media',
36
+ content: 'fai-AttachmentTag__content',
37
+ icon: 'fai-AttachmentTag__icon'
38
+ };
39
+ const ATTACHMENTTAG_MAXWIDTH = '180px';
40
+ const ATTACHMENTTAG_SIZE = '20px';
41
+ const useRootBaseClassName = (0, _reactcomponents.makeResetStyles)({
42
+ color: _tokens.tokens.colorNeutralForeground1,
43
+ alignItems: 'center',
44
+ backgroundColor: _tokens.tokens.colorNeutralBackground1,
45
+ border: `${_tokens.tokens.strokeWidthThin} solid ${_tokens.tokens.colorNeutralStroke1}`,
46
+ borderRadius: _tokens.tokens.borderRadiusMedium,
47
+ boxSizing: 'border-box',
48
+ columnGap: _tokens.tokens.spacingHorizontalSNudge,
49
+ cursor: 'pointer',
50
+ display: 'inline-flex',
51
+ flexWrap: 'nowrap',
52
+ justifyContent: 'center',
53
+ maxWidth: ATTACHMENTTAG_MAXWIDTH,
54
+ padding: `${_tokens.tokens.spacingVerticalXS} ${_tokens.tokens.spacingHorizontalXS} ${_tokens.tokens.spacingVerticalXS} ${_tokens.tokens.spacingHorizontalS}`,
55
+ verticalAlign: 'middle',
56
+ ':hover': {
57
+ borderColor: _tokens.tokens.colorNeutralStroke1Hover,
58
+ [`& .${attachmentTagClassNames.icon}`]: {
59
+ color: _tokens.tokens.colorBrandForegroundLinkHover
60
+ }
61
+ },
62
+ ':hover:active': {
63
+ borderColor: _tokens.tokens.colorNeutralStroke1Pressed,
64
+ [`& .${attachmentTagClassNames.icon}`]: {
65
+ color: _tokens.tokens.colorNeutralForeground2BrandPressed
66
+ }
67
+ },
68
+ ':focus': {
69
+ [`& .${attachmentTagClassNames.icon}`]: {
70
+ color: _tokens.tokens.colorNeutralForeground2BrandHover
71
+ }
72
+ },
73
+ ':focus:active': {
74
+ [`& .${attachmentTagClassNames.icon}`]: {
75
+ color: _tokens.tokens.colorNeutralForeground2BrandPressed
76
+ }
77
+ }
78
+ });
79
+ const useMediaBaseClassName = (0, _reactcomponents.makeResetStyles)({
80
+ fontSize: ATTACHMENTTAG_SIZE,
81
+ height: ATTACHMENTTAG_SIZE,
82
+ lineHeight: ATTACHMENTTAG_SIZE,
83
+ width: ATTACHMENTTAG_SIZE
84
+ });
85
+ const useContentBaseClassName = (0, _reactcomponents.makeResetStyles)({
86
+ overflowX: 'hidden',
87
+ textOverflow: 'ellipsis',
88
+ whiteSpace: 'nowrap',
89
+ ..._reactcomponents.typographyStyles.body1
90
+ });
91
+ const useIconBaseClassName = (0, _reactcomponents.makeResetStyles)({
92
+ alignItems: 'center',
93
+ borderRadius: _tokens.tokens.borderRadiusCircular,
94
+ border: `${_tokens.tokens.strokeWidthThin} solid ${_tokens.tokens.colorTransparentStroke}`,
95
+ boxSizing: 'border-box',
96
+ color: _tokens.tokens.colorNeutralForeground1,
97
+ display: 'inline-flex',
98
+ fontSize: ATTACHMENTTAG_SIZE,
99
+ height: `calc(${ATTACHMENTTAG_SIZE} + ${_tokens.tokens.strokeWidthThin} * 2 + ${_tokens.tokens.spacingVerticalXXS})`,
100
+ justifyContent: 'center',
101
+ maxWidth: `calc(${ATTACHMENTTAG_SIZE} + ${_tokens.tokens.strokeWidthThin} * 2 + ${_tokens.tokens.spacingHorizontalXXS})`,
102
+ minWidth: `calc(${ATTACHMENTTAG_SIZE} + ${_tokens.tokens.strokeWidthThin} * 2 + ${_tokens.tokens.spacingHorizontalXXS})`,
103
+ padding: `calc(${_tokens.tokens.spacingVerticalXXS} / 2) calc(${_tokens.tokens.spacingHorizontalXXS} / 2)`
104
+ });
105
+ const useAttachmentTagStyles_unstable = (state)=>{
106
+ 'use no memo';
107
+ const rootBaseClassName = useRootBaseClassName();
108
+ const mediaBaseClassName = useMediaBaseClassName();
109
+ const contentBaseClassName = useContentBaseClassName();
110
+ const iconBaseClassName = useIconBaseClassName();
111
+ state.root.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.root, rootBaseClassName, state.root.className);
112
+ if (state.media) {
113
+ state.media.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.media, mediaBaseClassName, state.media.className);
114
+ }
115
+ state.content.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.content, contentBaseClassName, state.content.className);
116
+ state.icon.className = (0, _reactcomponents.mergeClasses)(attachmentTagClassNames.icon, iconBaseClassName, state.icon.className);
117
+ return state;
118
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentTagStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { AttachmentTagSlots, AttachmentTagState } from './AttachmentTag.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentTagClassNames: SlotClassNames<AttachmentTagSlots> = {\n root: 'fai-AttachmentTag',\n media: 'fai-AttachmentTag__media',\n content: 'fai-AttachmentTag__content',\n icon: 'fai-AttachmentTag__icon',\n};\n\n/**\n * @internal\n */\nexport const ATTACHMENTTAG_MAXWIDTH = '180px';\nconst ATTACHMENTTAG_SIZE = '20px';\n\nconst useRootBaseClassName = makeResetStyles({\n color: tokens.colorNeutralForeground1,\n alignItems: 'center',\n backgroundColor: tokens.colorNeutralBackground1,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n columnGap: tokens.spacingHorizontalSNudge,\n cursor: 'pointer',\n display: 'inline-flex',\n flexWrap: 'nowrap',\n justifyContent: 'center',\n maxWidth: ATTACHMENTTAG_MAXWIDTH,\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS} ${tokens.spacingVerticalXS} ${tokens.spacingHorizontalS}`,\n verticalAlign: 'middle',\n\n ':hover': {\n borderColor: tokens.colorNeutralStroke1Hover,\n\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorBrandForegroundLinkHover,\n },\n },\n\n ':hover:active': {\n borderColor: tokens.colorNeutralStroke1Pressed,\n\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n\n ':focus': {\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandHover,\n },\n },\n\n ':focus:active': {\n [`& .${attachmentTagClassNames.icon}`]: {\n color: tokens.colorNeutralForeground2BrandPressed,\n },\n },\n});\n\n/**\n * @internal\n */\nexport const useMediaBaseClassName = makeResetStyles({\n fontSize: ATTACHMENTTAG_SIZE,\n height: ATTACHMENTTAG_SIZE,\n lineHeight: ATTACHMENTTAG_SIZE,\n width: ATTACHMENTTAG_SIZE,\n});\n\n/**\n * @internal\n */\nexport const useContentBaseClassName = makeResetStyles({\n overflowX: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n ...typographyStyles.body1,\n});\n\n/**\n * @internal\n */\nexport const useIconBaseClassName = makeResetStyles({\n alignItems: 'center',\n borderRadius: tokens.borderRadiusCircular,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorTransparentStroke}`,\n boxSizing: 'border-box',\n color: tokens.colorNeutralForeground1,\n display: 'inline-flex',\n fontSize: ATTACHMENTTAG_SIZE,\n height: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingVerticalXXS})`,\n justifyContent: 'center',\n maxWidth: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n minWidth: `calc(${ATTACHMENTTAG_SIZE} + ${tokens.strokeWidthThin} * 2 + ${tokens.spacingHorizontalXXS})`,\n padding: `calc(${tokens.spacingVerticalXXS} / 2) calc(${tokens.spacingHorizontalXXS} / 2)`,\n});\n\n/**\n * Apply styling to the AttachmentTag slots based on the state\n */\nexport const useAttachmentTagStyles_unstable = (state: AttachmentTagState): AttachmentTagState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const iconBaseClassName = useIconBaseClassName();\n\n state.root.className = mergeClasses(attachmentTagClassNames.root, rootBaseClassName, state.root.className);\n\n if (state.media) {\n state.media.className = mergeClasses(attachmentTagClassNames.media, mediaBaseClassName, state.media.className);\n }\n\n state.content.className = mergeClasses(\n attachmentTagClassNames.content,\n contentBaseClassName,\n state.content.className,\n );\n\n state.icon.className = mergeClasses(attachmentTagClassNames.icon, iconBaseClassName, state.icon.className);\n\n return state;\n};\n"],"names":["ATTACHMENTTAG_MAXWIDTH","attachmentTagClassNames","useAttachmentTagStyles_unstable","useContentBaseClassName","useIconBaseClassName","useMediaBaseClassName","root","media","content","icon","ATTACHMENTTAG_SIZE","useRootBaseClassName","makeResetStyles","color","tokens","colorNeutralForeground1","alignItems","backgroundColor","colorNeutralBackground1","border","strokeWidthThin","colorNeutralStroke1","borderRadius","borderRadiusMedium","boxSizing","columnGap","spacingHorizontalSNudge","cursor","display","flexWrap","justifyContent","maxWidth","padding","spacingVerticalXS","spacingHorizontalXS","spacingHorizontalS","verticalAlign","borderColor","colorNeutralStroke1Hover","colorBrandForegroundLinkHover","colorNeutralStroke1Pressed","colorNeutralForeground2BrandPressed","colorNeutralForeground2BrandHover","fontSize","height","lineHeight","width","overflowX","textOverflow","whiteSpace","typographyStyles","body1","borderRadiusCircular","colorTransparentStroke","spacingVerticalXXS","spacingHorizontalXXS","minWidth","state","rootBaseClassName","mediaBaseClassName","contentBaseClassName","iconBaseClassName","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAeaA,sBAAAA;eAAAA;;IAVAC,uBAAAA;eAAAA;;IAmGAC,+BAAAA;eAAAA;;IA5BAC,uBAAAA;eAAAA;;IAUAC,oBAAAA;eAAAA;;IApBAC,qBAAAA;eAAAA;;;iCAlEmD;wBACzC;AAIhB,MAAMJ,0BAA8D;IACzEK,MAAM;IACNC,OAAO;IACPC,SAAS;IACTC,MAAM;AACR;AAKO,MAAMT,yBAAyB;AACtC,MAAMU,qBAAqB;AAE3B,MAAMC,uBAAuBC,IAAAA,gCAAAA,EAAgB;IAC3CC,OAAOC,cAAAA,CAAOC,uBAAuB;IACrCC,YAAY;IACZC,iBAAiBH,cAAAA,CAAOI,uBAAuB;IAC/CC,QAAQ,CAAC,EAAEL,cAAAA,CAAOM,eAAe,CAAC,OAAO,EAAEN,cAAAA,CAAOO,mBAAmB,CAAC,CAAC;IACvEC,cAAcR,cAAAA,CAAOS,kBAAkB;IACvCC,WAAW;IACXC,WAAWX,cAAAA,CAAOY,uBAAuB;IACzCC,QAAQ;IACRC,SAAS;IACTC,UAAU;IACVC,gBAAgB;IAChBC,UAAU/B;IACVgC,SAAS,CAAC,EAAElB,cAAAA,CAAOmB,iBAAiB,CAAC,CAAC,EAAEnB,cAAAA,CAAOoB,mBAAmB,CAAC,CAAC,EAAEpB,cAAAA,CAAOmB,iBAAiB,CAAC,CAAC,EAAEnB,cAAAA,CAAOqB,kBAAkB,CAAC,CAAC;IAC7HC,eAAe;IAEf,UAAU;QACRC,aAAavB,cAAAA,CAAOwB,wBAAwB;QAE5C,CAAC,CAAC,GAAG,EAAErC,wBAAwBQ,IAAI,CAAC,CAAC,CAAC,EAAE;YACtCI,OAAOC,cAAAA,CAAOyB,6BAA6B;QAC7C;IACF;IAEA,iBAAiB;QACfF,aAAavB,cAAAA,CAAO0B,0BAA0B;QAE9C,CAAC,CAAC,GAAG,EAAEvC,wBAAwBQ,IAAI,CAAC,CAAC,CAAC,EAAE;YACtCI,OAAOC,cAAAA,CAAO2B,mCAAmC;QACnD;IACF;IAEA,UAAU;QACR,CAAC,CAAC,GAAG,EAAExC,wBAAwBQ,IAAI,CAAC,CAAC,CAAC,EAAE;YACtCI,OAAOC,cAAAA,CAAO4B,iCAAiC;QACjD;IACF;IAEA,iBAAiB;QACf,CAAC,CAAC,GAAG,EAAEzC,wBAAwBQ,IAAI,CAAC,CAAC,CAAC,EAAE;YACtCI,OAAOC,cAAAA,CAAO2B,mCAAmC;QACnD;IACF;AACF;AAKO,MAAMpC,wBAAwBO,IAAAA,gCAAAA,EAAgB;IACnD+B,UAAUjC;IACVkC,QAAQlC;IACRmC,YAAYnC;IACZoC,OAAOpC;AACT;AAKO,MAAMP,0BAA0BS,IAAAA,gCAAAA,EAAgB;IACrDmC,WAAW;IACXC,cAAc;IACdC,YAAY;IACZ,GAAGC,iCAAAA,CAAiBC,KAAK;AAC3B;AAKO,MAAM/C,uBAAuBQ,IAAAA,gCAAAA,EAAgB;IAClDI,YAAY;IACZM,cAAcR,cAAAA,CAAOsC,oBAAoB;IACzCjC,QAAQ,CAAC,EAAEL,cAAAA,CAAOM,eAAe,CAAC,OAAO,EAAEN,cAAAA,CAAOuC,sBAAsB,CAAC,CAAC;IAC1E7B,WAAW;IACXX,OAAOC,cAAAA,CAAOC,uBAAuB;IACrCa,SAAS;IACTe,UAAUjC;IACVkC,QAAQ,CAAC,KAAK,EAAElC,mBAAmB,GAAG,EAAEI,cAAAA,CAAOM,eAAe,CAAC,OAAO,EAAEN,cAAAA,CAAOwC,kBAAkB,CAAC,CAAC,CAAC;IACpGxB,gBAAgB;IAChBC,UAAU,CAAC,KAAK,EAAErB,mBAAmB,GAAG,EAAEI,cAAAA,CAAOM,eAAe,CAAC,OAAO,EAAEN,cAAAA,CAAOyC,oBAAoB,CAAC,CAAC,CAAC;IACxGC,UAAU,CAAC,KAAK,EAAE9C,mBAAmB,GAAG,EAAEI,cAAAA,CAAOM,eAAe,CAAC,OAAO,EAAEN,cAAAA,CAAOyC,oBAAoB,CAAC,CAAC,CAAC;IACxGvB,SAAS,CAAC,KAAK,EAAElB,cAAAA,CAAOwC,kBAAkB,CAAC,WAAW,EAAExC,cAAAA,CAAOyC,oBAAoB,CAAC,KAAK,CAAC;AAC5F;AAKO,MAAMrD,kCAAkC,CAACuD;IAC9C;IAEA,MAAMC,oBAAoB/C;IAC1B,MAAMgD,qBAAqBtD;IAC3B,MAAMuD,uBAAuBzD;IAC7B,MAAM0D,oBAAoBzD;IAE1BqD,MAAMnD,IAAI,CAACwD,SAAS,GAAGC,IAAAA,6BAAAA,EAAa9D,wBAAwBK,IAAI,EAAEoD,mBAAmBD,MAAMnD,IAAI,CAACwD,SAAS;IAEzG,IAAIL,MAAMlD,KAAK,EAAE;QACfkD,MAAMlD,KAAK,CAACuD,SAAS,GAAGC,IAAAA,6BAAAA,EAAa9D,wBAAwBM,KAAK,EAAEoD,oBAAoBF,MAAMlD,KAAK,CAACuD,SAAS;IAC/G;IAEAL,MAAMjD,OAAO,CAACsD,SAAS,GAAGC,IAAAA,6BAAAA,EACxB9D,wBAAwBO,OAAO,EAC/BoD,sBACAH,MAAMjD,OAAO,CAACsD,SAAS;IAGzBL,MAAMhD,IAAI,CAACqD,SAAS,GAAGC,IAAAA,6BAAAA,EAAa9D,wBAAwBQ,IAAI,EAAEoD,mBAAmBJ,MAAMhD,IAAI,CAACqD,SAAS;IAEzG,OAAOL;AACT"}
@@ -18,4 +18,4 @@ const AttachmentTagItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
18
18
  (0, _useAttachmentTagItemStylesstyles.useAttachmentTagItemStyles_unstable)(state);
19
19
  return (0, _renderAttachmentTagItem.renderAttachmentTagItem_unstable)(state);
20
20
  });
21
- AttachmentTagItem.displayName = 'AttachmentTagItem'; //# sourceMappingURL=AttachmentTagItem.js.map
21
+ AttachmentTagItem.displayName = 'AttachmentTagItem';
@@ -1 +1 @@
1
- {"version":3,"sources":["AttachmentTagItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useAttachmentTagItem_unstable } from './useAttachmentTagItem';\nimport { renderAttachmentTagItem_unstable } from './renderAttachmentTagItem';\nimport { useAttachmentTagItemStyles_unstable } from './useAttachmentTagItemStyles.styles';\nimport type { AttachmentTagItemProps } from './AttachmentTagItem.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\n\n/**\n * @deprecated use new AttachmentOverflowMenuItem component exported from \\@fluentui-copilot/react-attachments package instead.\n * Deprecated on 4/9/2024.\n */\nexport const AttachmentTagItem: ForwardRefComponent<AttachmentTagItemProps> = React.forwardRef((props, ref) => {\n const state = useAttachmentTagItem_unstable(props, ref);\n\n useAttachmentTagItemStyles_unstable(state);\n return renderAttachmentTagItem_unstable(state);\n});\n\nAttachmentTagItem.displayName = 'AttachmentTagItem';\n"],"names":["state","useAttachmentTagItem_unstable","props","ref","useAttachmentTagItemStyles_unstable","renderAttachmentTagItem_unstable","AttachmentTagItem"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYQA;;;eAAAA;;;;iEAZe;sCACuB;yCACG;kDACG;AASlD,MAAMA,oBAAQC,WAAAA,GAAAA,OAA8BC,UAAOC,CAAAA,CAAAA,OAAAA;UAEnDC,QAAAA,IAAAA,mDAAoCJ,EAAAA,OAAAA;6EAC7BK,EAAAA;IACT,OAAGA,IAAAA,yDAAA,EAAAL;AAEHM"}
1
+ {"version":3,"sources":["AttachmentTagItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useAttachmentTagItem_unstable } from './useAttachmentTagItem';\nimport { renderAttachmentTagItem_unstable } from './renderAttachmentTagItem';\nimport { useAttachmentTagItemStyles_unstable } from './useAttachmentTagItemStyles.styles';\nimport type { AttachmentTagItemProps } from './AttachmentTagItem.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\n\n/**\n * @deprecated use new AttachmentOverflowMenuItem component exported from \\@fluentui-copilot/react-attachments package instead.\n * Deprecated on 4/9/2024.\n */\nexport const AttachmentTagItem: ForwardRefComponent<AttachmentTagItemProps> = React.forwardRef((props, ref) => {\n const state = useAttachmentTagItem_unstable(props, ref);\n\n useAttachmentTagItemStyles_unstable(state);\n return renderAttachmentTagItem_unstable(state);\n});\n\nAttachmentTagItem.displayName = 'AttachmentTagItem';\n"],"names":["AttachmentTagItem","React","forwardRef","props","ref","state","useAttachmentTagItem_unstable","useAttachmentTagItemStyles_unstable","renderAttachmentTagItem_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;sCACuB;yCACG;kDACG;AAQ7C,MAAMA,oBAAAA,WAAAA,GAAiEC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACrG,MAAMC,QAAQC,IAAAA,mDAAAA,EAA8BH,OAAOC;IAEnDG,IAAAA,qEAAAA,EAAoCF;IACpC,OAAOG,IAAAA,yDAAAA,EAAiCH;AAC1C;AAEAL,kBAAkBS,WAAW,GAAG"}
@@ -4,4 +4,3 @@
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- //# sourceMappingURL=AttachmentTagItem.types.js.map
@@ -29,4 +29,3 @@ const _AttachmentTagItem = require("./AttachmentTagItem");
29
29
  const _renderAttachmentTagItem = require("./renderAttachmentTagItem");
30
30
  const _useAttachmentTagItem = require("./useAttachmentTagItem");
31
31
  const _useAttachmentTagItemStylesstyles = require("./useAttachmentTagItemStyles.styles");
32
- //# sourceMappingURL=index.js.map
@@ -19,4 +19,4 @@ const renderAttachmentTagItem_unstable = (state)=>{
19
19
  /*#__PURE__*/ (0, _jsxruntime.jsx)(state.icon, {})
20
20
  ]
21
21
  });
22
- }; //# sourceMappingURL=renderAttachmentTagItem.js.map
22
+ };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderAttachmentTagItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { AttachmentTagItemState, AttachmentTagItemSlots } from './AttachmentTagItem.types';\n\n/**\n * Render the final JSX of AttachmentTagItem\n */\nexport const renderAttachmentTagItem_unstable = (state: AttachmentTagItemState) => {\n assertSlots<AttachmentTagItemSlots>(state);\n\n return (\n <state.root>\n {state.media && <state.media />}\n <state.content />\n <state.icon />\n </state.root>\n );\n};\n"],"names":["assertSlots","state","media","_jsx","content","icon"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAUEA;;;eAAAA;;;4BATF;iCAE4B;AAO1BA,MAAAA,mCAAoCC,CAAAA;oCAEpC,EAAAA;;kBAEKA;YAAAA,MAAMC,KAAK,IAAA,WAAI,GAAAC,IAAAA,eAACF,EAAAA,MAAMC,KAAK,EAAA,CAAA;YAAA,WAAA,GAAAC,IAAAA,eAAA,EAAAF,MAAAG,OAAA,EAAA,CAAA;YAAA,WAAA,GAAAD,IAAAA,eAAA,EAAAF,MAAAI,IAAA,EAAA,CAAA;SAAA"}
1
+ {"version":3,"sources":["renderAttachmentTagItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\nimport type { AttachmentTagItemState, AttachmentTagItemSlots } from './AttachmentTagItem.types';\n\n/**\n * Render the final JSX of AttachmentTagItem\n */\nexport const renderAttachmentTagItem_unstable = (state: AttachmentTagItemState) => {\n assertSlots<AttachmentTagItemSlots>(state);\n\n return (\n <state.root>\n {state.media && <state.media />}\n <state.content />\n <state.icon />\n </state.root>\n );\n};\n"],"names":["renderAttachmentTagItem_unstable","state","assertSlots","_jsxs","root","media","_jsx","content","icon"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BASaA;;;eAAAA;;;4BARb;iCAE4B;AAMrB,MAAMA,mCAAmC,CAACC;IAC/CC,IAAAA,4BAAAA,EAAoCD;IAEpC,OAAA,WAAA,GACEE,IAAAA,gBAAA,EAACF,MAAMG,IAAI,EAAA;;YACRH,MAAMI,KAAK,IAAA,WAAA,GAAIC,IAAAA,eAAA,EAACL,MAAMI,KAAK,EAAA,CAAA;0BAC5BC,IAAAA,eAAA,EAACL,MAAMM,OAAO,EAAA,CAAA;0BACdD,IAAAA,eAAA,EAACL,MAAMO,IAAI,EAAA,CAAA;;;AAGjB"}
@@ -18,4 +18,4 @@ const useAttachmentTagItem_unstable = (props, ref)=>{
18
18
  icon: 'span'
19
19
  }
20
20
  });
21
- }; //# sourceMappingURL=useAttachmentTagItem.js.map
21
+ };
@@ -1 +1 @@
1
- {"version":3,"sources":["useAttachmentTagItem.ts"],"sourcesContent":["import type * as React from 'react';\nimport { useAttachmentTagSlots } from '../utils/useAttachmentTagSlots';\nimport type { AttachmentTagItemProps, AttachmentTagItemState } from './AttachmentTagItem.types';\n\n/**\n * Create the state required to render AttachmentTagItem.\n *\n * The returned state can be modified with hooks such as useAttachmentTagItemStyles_unstable,\n * before being passed to renderAttachmentTagItem_unstable.\n *\n * @param props - props from this instance of AttachmentTagItem\n * @param ref - reference to root HTMLElement of AttachmentTagItem\n */\nexport const useAttachmentTagItem_unstable = (\n props: AttachmentTagItemProps,\n ref: React.Ref<HTMLDivElement>,\n): AttachmentTagItemState => {\n return useAttachmentTagSlots(props, ref, {\n elementType: { root: 'div', media: 'span', content: 'span', icon: 'span' },\n });\n};\n"],"names":["useAttachmentTagSlots","props","ref","elementType","root","media","content","icon"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAiBSA;;;eAAAA;;;uCAhB6B;AAgBpC,MAAOA,gCAAkC,CAAAC,OAAAC;WACvCC,IAAAA,4CAAa,EAAAF,OAAAC,KAAA;qBAAEE;kBAAaC;mBAAeC;qBAAiBC;kBAAa;QAC3E;IACA"}
1
+ {"version":3,"sources":["useAttachmentTagItem.ts"],"sourcesContent":["import type * as React from 'react';\nimport { useAttachmentTagSlots } from '../utils/useAttachmentTagSlots';\nimport type { AttachmentTagItemProps, AttachmentTagItemState } from './AttachmentTagItem.types';\n\n/**\n * Create the state required to render AttachmentTagItem.\n *\n * The returned state can be modified with hooks such as useAttachmentTagItemStyles_unstable,\n * before being passed to renderAttachmentTagItem_unstable.\n *\n * @param props - props from this instance of AttachmentTagItem\n * @param ref - reference to root HTMLElement of AttachmentTagItem\n */\nexport const useAttachmentTagItem_unstable = (\n props: AttachmentTagItemProps,\n ref: React.Ref<HTMLDivElement>,\n): AttachmentTagItemState => {\n return useAttachmentTagSlots(props, ref, {\n elementType: { root: 'div', media: 'span', content: 'span', icon: 'span' },\n });\n};\n"],"names":["useAttachmentTagItem_unstable","props","ref","useAttachmentTagSlots","elementType","root","media","content","icon"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAaaA;;;eAAAA;;;uCAZyB;AAY/B,MAAMA,gCAAgC,CAC3CC,OACAC;IAEA,OAAOC,IAAAA,4CAAAA,EAAsBF,OAAOC,KAAK;QACvCE,aAAa;YAAEC,MAAM;YAAOC,OAAO;YAAQC,SAAS;YAAQC,MAAM;QAAO;IAC3E;AACF"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ attachmentTagItemClassNames: function() {
13
+ return attachmentTagItemClassNames;
14
+ },
15
+ useAttachmentTagItemStyles_unstable: function() {
16
+ return useAttachmentTagItemStyles_unstable;
17
+ }
18
+ });
19
+ const _reactcomponents = require("@fluentui/react-components");
20
+ const _tokens = require("@fluentui-copilot/tokens");
21
+ const _useAttachmentTagStylesstyles = require("../AttachmentTag/useAttachmentTagStyles.styles");
22
+ const attachmentTagItemClassNames = {
23
+ root: 'fai-AttachmentTagItem',
24
+ media: 'fai-AttachmentTagItem__media',
25
+ content: 'fai-AttachmentTagItem__content',
26
+ icon: 'fai-AttachmentTagItem__icon'
27
+ };
28
+ /**
29
+ * Styles for the root slot
30
+ */ const useRootBaseClassName = (0, _reactcomponents.makeResetStyles)({
31
+ display: 'inline-flex',
32
+ flexWrap: 'nowrap',
33
+ columnGap: _tokens.tokens.spacingHorizontalSNudge,
34
+ maxWidth: _useAttachmentTagStylesstyles.ATTACHMENTTAG_MAXWIDTH,
35
+ alignItems: 'center'
36
+ });
37
+ const useAttachmentTagItemStyles_unstable = (state)=>{
38
+ 'use no memo';
39
+ const rootBaseClassName = useRootBaseClassName();
40
+ const mediaBaseClassName = (0, _useAttachmentTagStylesstyles.useMediaBaseClassName)();
41
+ const contentBaseClassName = (0, _useAttachmentTagStylesstyles.useContentBaseClassName)();
42
+ const iconBaseClassName = (0, _useAttachmentTagStylesstyles.useIconBaseClassName)();
43
+ state.root.className = (0, _reactcomponents.mergeClasses)(attachmentTagItemClassNames.root, rootBaseClassName, state.root.className);
44
+ if (state.media) {
45
+ state.media.className = (0, _reactcomponents.mergeClasses)(attachmentTagItemClassNames.media, mediaBaseClassName, state.media.className);
46
+ }
47
+ state.content.className = (0, _reactcomponents.mergeClasses)(attachmentTagItemClassNames.content, contentBaseClassName, state.content.className);
48
+ state.icon.className = (0, _reactcomponents.mergeClasses)(attachmentTagItemClassNames.icon, iconBaseClassName, state.icon.className);
49
+ return state;
50
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentTagItemStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport {\n ATTACHMENTTAG_MAXWIDTH,\n useContentBaseClassName,\n useIconBaseClassName,\n useMediaBaseClassName,\n} from '../AttachmentTag/useAttachmentTagStyles.styles';\nimport type { AttachmentTagItemSlots, AttachmentTagItemState } from './AttachmentTagItem.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentTagItemClassNames: SlotClassNames<AttachmentTagItemSlots> = {\n root: 'fai-AttachmentTagItem',\n media: 'fai-AttachmentTagItem__media',\n content: 'fai-AttachmentTagItem__content',\n icon: 'fai-AttachmentTagItem__icon',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseClassName = makeResetStyles({\n display: 'inline-flex',\n flexWrap: 'nowrap',\n columnGap: tokens.spacingHorizontalSNudge,\n maxWidth: ATTACHMENTTAG_MAXWIDTH,\n alignItems: 'center',\n});\n\n/**\n * Apply styling to the AttachmentTagItem slots based on the state\n */\nexport const useAttachmentTagItemStyles_unstable = (state: AttachmentTagItemState): AttachmentTagItemState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const iconBaseClassName = useIconBaseClassName();\n\n state.root.className = mergeClasses(attachmentTagItemClassNames.root, rootBaseClassName, state.root.className);\n\n if (state.media) {\n state.media.className = mergeClasses(attachmentTagItemClassNames.media, mediaBaseClassName, state.media.className);\n }\n\n state.content.className = mergeClasses(\n attachmentTagItemClassNames.content,\n contentBaseClassName,\n state.content.className,\n );\n\n state.icon.className = mergeClasses(attachmentTagItemClassNames.icon, iconBaseClassName, state.icon.className);\n\n return state;\n};\n"],"names":["attachmentTagItemClassNames","useAttachmentTagItemStyles_unstable","root","media","content","icon","useRootBaseClassName","makeResetStyles","display","flexWrap","columnGap","tokens","spacingHorizontalSNudge","maxWidth","ATTACHMENTTAG_MAXWIDTH","alignItems","state","rootBaseClassName","mediaBaseClassName","useMediaBaseClassName","contentBaseClassName","useContentBaseClassName","iconBaseClassName","useIconBaseClassName","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAWaA,2BAAAA;eAAAA;;IAqBAC,mCAAAA;eAAAA;;;iCAhCiC;wBACvB;8CAMhB;AAIA,MAAMD,8BAAsE;IACjFE,MAAM;IACNC,OAAO;IACPC,SAAS;IACTC,MAAM;AACR;AAEA;;CAEC,GACD,MAAMC,uBAAuBC,IAAAA,gCAAAA,EAAgB;IAC3CC,SAAS;IACTC,UAAU;IACVC,WAAWC,cAAAA,CAAOC,uBAAuB;IACzCC,UAAUC,oDAAAA;IACVC,YAAY;AACd;AAKO,MAAMd,sCAAsC,CAACe;IAClD;IAEA,MAAMC,oBAAoBX;IAC1B,MAAMY,qBAAqBC,IAAAA,mDAAAA;IAC3B,MAAMC,uBAAuBC,IAAAA,qDAAAA;IAC7B,MAAMC,oBAAoBC,IAAAA,kDAAAA;IAE1BP,MAAMd,IAAI,CAACsB,SAAS,GAAGC,IAAAA,6BAAAA,EAAazB,4BAA4BE,IAAI,EAAEe,mBAAmBD,MAAMd,IAAI,CAACsB,SAAS;IAE7G,IAAIR,MAAMb,KAAK,EAAE;QACfa,MAAMb,KAAK,CAACqB,SAAS,GAAGC,IAAAA,6BAAAA,EAAazB,4BAA4BG,KAAK,EAAEe,oBAAoBF,MAAMb,KAAK,CAACqB,SAAS;IACnH;IAEAR,MAAMZ,OAAO,CAACoB,SAAS,GAAGC,IAAAA,6BAAAA,EACxBzB,4BAA4BI,OAAO,EACnCgB,sBACAJ,MAAMZ,OAAO,CAACoB,SAAS;IAGzBR,MAAMX,IAAI,CAACmB,SAAS,GAAGC,IAAAA,6BAAAA,EAAazB,4BAA4BK,IAAI,EAAEiB,mBAAmBN,MAAMX,IAAI,CAACmB,SAAS;IAE7G,OAAOR;AACT"}
@@ -22,4 +22,4 @@ const AttachmentTagList = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
22
22
  (0, _reactprovider.useCustomStyleHook)('useAttachmentTagListStyles')(state);
23
23
  return (0, _renderAttachmentTagList.renderAttachmentTagList_unstable)(state, contextValues);
24
24
  });
25
- AttachmentTagList.displayName = 'AttachmentTagList'; //# sourceMappingURL=AttachmentTagList.js.map
25
+ AttachmentTagList.displayName = 'AttachmentTagList';
@@ -1 +1 @@
1
- {"version":3,"sources":["AttachmentTagList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderAttachmentTagList_unstable } from './renderAttachmentTagList';\nimport { useAttachmentTagList_unstable } from './useAttachmentTagList';\nimport { useAttachmentTagListContextValues_unstable } from './useAttachmentTagListContextValues';\nimport { useAttachmentTagListStyles_unstable } from './useAttachmentTagListStyles.styles';\nimport type { AttachmentTagListProps } from './AttachmentTagList.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n\n/**\n * @deprecated use new AttachmentList component exported from \\@fluentui-copilot/react-attachments package instead.\n * Deprecated on 4/9/2024.\n */\nexport const AttachmentTagList: ForwardRefComponent<AttachmentTagListProps> = React.forwardRef((props, ref) => {\n const state = useAttachmentTagList_unstable(props, ref);\n const contextValues = useAttachmentTagListContextValues_unstable(state);\n\n useAttachmentTagListStyles_unstable(state);\n useCustomStyleHook('useAttachmentTagListStyles')(state);\n\n return renderAttachmentTagList_unstable(state, contextValues);\n});\n\nAttachmentTagList.displayName = 'AttachmentTagList';\n"],"names":["state","useAttachmentTagList_unstable","props","ref","contextValues","useAttachmentTagListContextValues_unstable","useAttachmentTagListStyles_unstable","renderAttachmentTagList_unstable","AttachmentTagList"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAcQA;;;eAAAA;;;;iEAde;yCAC0B;sCACH;mDACa;kDACP;+BAGjB;AAOjC,MAAMA,oBAAQC,WAAAA,GAAAA,OAA8BC,UAAOC,CAAAA,CAAAA,OAAAA;UACnDH,QAAMI,IAAAA,mDAAgBC,EAAAA,OAAAA;UAEtBC,gBAAAA,IAAAA,6EAAoCN,EAAAA;6EACjB,EAAAA;yCAEZO,EAAAA,8BAAwCH;IACjD,OAAGG,IAAAA,yDAAA,EAAAP,OAAAI;AAEHI"}
1
+ {"version":3,"sources":["AttachmentTagList.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderAttachmentTagList_unstable } from './renderAttachmentTagList';\nimport { useAttachmentTagList_unstable } from './useAttachmentTagList';\nimport { useAttachmentTagListContextValues_unstable } from './useAttachmentTagListContextValues';\nimport { useAttachmentTagListStyles_unstable } from './useAttachmentTagListStyles.styles';\nimport type { AttachmentTagListProps } from './AttachmentTagList.types';\nimport type { ForwardRefComponent } from '@fluentui/react-components';\nimport { useCustomStyleHook } from '@fluentui-copilot/react-provider';\n\n/**\n * @deprecated use new AttachmentList component exported from \\@fluentui-copilot/react-attachments package instead.\n * Deprecated on 4/9/2024.\n */\nexport const AttachmentTagList: ForwardRefComponent<AttachmentTagListProps> = React.forwardRef((props, ref) => {\n const state = useAttachmentTagList_unstable(props, ref);\n const contextValues = useAttachmentTagListContextValues_unstable(state);\n\n useAttachmentTagListStyles_unstable(state);\n useCustomStyleHook('useAttachmentTagListStyles')(state);\n\n return renderAttachmentTagList_unstable(state, contextValues);\n});\n\nAttachmentTagList.displayName = 'AttachmentTagList';\n"],"names":["AttachmentTagList","React","forwardRef","props","ref","state","useAttachmentTagList_unstable","contextValues","useAttachmentTagListContextValues_unstable","useAttachmentTagListStyles_unstable","useCustomStyleHook","renderAttachmentTagList_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAaaA;;;eAAAA;;;;iEAbU;yCAC0B;sCACH;mDACa;kDACP;+BAGjB;AAM5B,MAAMA,oBAAAA,WAAAA,GAAiEC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACrG,MAAMC,QAAQC,IAAAA,mDAAAA,EAA8BH,OAAOC;IACnD,MAAMG,gBAAgBC,IAAAA,6EAAAA,EAA2CH;IAEjEI,IAAAA,qEAAAA,EAAoCJ;IACpCK,IAAAA,iCAAAA,EAAmB,8BAA8BL;IAEjD,OAAOM,IAAAA,yDAAAA,EAAiCN,OAAOE;AACjD;AAEAP,kBAAkBY,WAAW,GAAG"}
@@ -2,4 +2,3 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- //# sourceMappingURL=AttachmentTagList.types.js.map
@@ -29,4 +29,3 @@ const _AttachmentTagList = require("./AttachmentTagList");
29
29
  const _renderAttachmentTagList = require("./renderAttachmentTagList");
30
30
  const _useAttachmentTagList = require("./useAttachmentTagList");
31
31
  const _useAttachmentTagListStylesstyles = require("./useAttachmentTagListStyles.styles");
32
- //# sourceMappingURL=index.js.map
@@ -17,4 +17,4 @@ const renderAttachmentTagList_unstable = (state, contextValues)=>{
17
17
  value: contextValues.tagList,
18
18
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)(state.root, {})
19
19
  });
20
- }; //# sourceMappingURL=renderAttachmentTagList.js.map
20
+ };
@@ -1 +1 @@
1
- {"version":3,"sources":["renderAttachmentTagList.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\n\nimport { AttachmentTagListProvider } from '../../contexts/attachmentTagListContext';\nimport type {\n AttachmentTagListContextValues,\n AttachmentTagListState,\n AttachmentTagListSlots,\n} from './AttachmentTagList.types';\n\n/**\n * Render the final JSX of AttachmentTagList\n */\nexport const renderAttachmentTagList_unstable = (\n state: AttachmentTagListState,\n contextValues: AttachmentTagListContextValues,\n) => {\n assertSlots<AttachmentTagListSlots>(state);\n\n return (\n <AttachmentTagListProvider value={contextValues.tagList}>\n <state.root />\n </AttachmentTagListProvider>\n );\n};\n"],"names":["assertSlots","state","value","contextValues","tagList"],"rangeMappings":";;;;;;;;;;;;;;;;;;","mappings":";;;;+BAmBEA;;;eAAAA;;;4BAnBwB;iCAGE;0CAEc;AAcxCA,MAAAA,mCAAoCC,CAAAA,OAAAA;oCAEpC,EAAAA;WAC6BC,WAAOC,GAAAA,IAAAA,eAAAA,EAAAA,mDAAqB,EAAA;6BACrDC,OAAA;;IAGJ"}
1
+ {"version":3,"sources":["renderAttachmentTagList.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-components';\n\nimport { AttachmentTagListProvider } from '../../contexts/attachmentTagListContext';\nimport type {\n AttachmentTagListContextValues,\n AttachmentTagListState,\n AttachmentTagListSlots,\n} from './AttachmentTagList.types';\n\n/**\n * Render the final JSX of AttachmentTagList\n */\nexport const renderAttachmentTagList_unstable = (\n state: AttachmentTagListState,\n contextValues: AttachmentTagListContextValues,\n) => {\n assertSlots<AttachmentTagListSlots>(state);\n\n return (\n <AttachmentTagListProvider value={contextValues.tagList}>\n <state.root />\n </AttachmentTagListProvider>\n );\n};\n"],"names":["renderAttachmentTagList_unstable","state","contextValues","assertSlots","_jsx","AttachmentTagListProvider","value","tagList","root"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAeaA;;;eAAAA;;;4BAdb;iCAE4B;0CAEc;AAUnC,MAAMA,mCAAmC,CAC9CC,OACAC;IAEAC,IAAAA,4BAAAA,EAAoCF;IAEpC,OAAA,WAAA,GACEG,IAAAA,eAAA,EAACC,mDAAAA,EAAAA;QAA0BC,OAAOJ,cAAcK,OAAO;kBACrD,WAAA,GAAAH,IAAAA,eAAA,EAACH,MAAMO,IAAI,EAAA,CAAA;;AAGjB"}
@@ -30,4 +30,4 @@ const useAttachmentTagList_unstable = (props, ref)=>{
30
30
  elementType: 'div'
31
31
  })
32
32
  };
33
- }; //# sourceMappingURL=useAttachmentTagList.js.map
33
+ };
@@ -1 +1 @@
1
- {"version":3,"sources":["useAttachmentTagList.ts"],"sourcesContent":["import type * as React from 'react';\n\nimport { getIntrinsicElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';\nimport type { AttachmentTagListProps, AttachmentTagListState } from './AttachmentTagList.types';\n\n/**\n * Create the state required to render AttachmentTagList.\n *\n * The returned state can be modified with hooks such as useAttachmentTagListStyles_unstable,\n * before being passed to renderAttachmentTagList_unstable.\n *\n * @param props - props from this instance of AttachmentTagList\n * @param ref - reference to root HTMLElement of AttachmentTagList\n */\nexport const useAttachmentTagList_unstable = (\n props: AttachmentTagListProps,\n ref: React.Ref<HTMLDivElement>,\n): AttachmentTagListState => {\n const { onAttachmentTagDismiss } = props;\n\n const focusAttributes = useArrowNavigationGroup({\n axis: 'both',\n circular: true,\n });\n\n return {\n onAttachmentTagDismiss,\n\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n 'aria-label': 'Attachments',\n ref,\n role: 'menu',\n ...focusAttributes,\n ...props,\n }),\n { elementType: 'div' },\n ),\n };\n};\n"],"names":["onAttachmentTagDismiss","props","focusAttributes","useArrowNavigationGroup","axis","slot","role","getIntrinsicElementProps","elementType"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAkBUA;;;eAAAA;;;iCAhB8D;AAgBtE,MAAQA,gCAA2BC,CAAAA,OAAAA;UAEnC,wBACQ;UAERC,kBAAAC,IAAAA,wCAAA,EAAA;QAEAC,MAAA;kBACEJ;;;;oBAKMK;kBAEF;;mCAEAC,CAAAA,MAAM,CAAAC,IAAAA,yCAAA,EAAA,OAAA;0BACHL;;kBAGL;8BAAEM;eAAmBP,KAAA;QAEzB,IAAA;YACAO,aAAA"}
1
+ {"version":3,"sources":["useAttachmentTagList.ts"],"sourcesContent":["import type * as React from 'react';\n\nimport { getIntrinsicElementProps, slot, useArrowNavigationGroup } from '@fluentui/react-components';\nimport type { AttachmentTagListProps, AttachmentTagListState } from './AttachmentTagList.types';\n\n/**\n * Create the state required to render AttachmentTagList.\n *\n * The returned state can be modified with hooks such as useAttachmentTagListStyles_unstable,\n * before being passed to renderAttachmentTagList_unstable.\n *\n * @param props - props from this instance of AttachmentTagList\n * @param ref - reference to root HTMLElement of AttachmentTagList\n */\nexport const useAttachmentTagList_unstable = (\n props: AttachmentTagListProps,\n ref: React.Ref<HTMLDivElement>,\n): AttachmentTagListState => {\n const { onAttachmentTagDismiss } = props;\n\n const focusAttributes = useArrowNavigationGroup({\n axis: 'both',\n circular: true,\n });\n\n return {\n onAttachmentTagDismiss,\n\n components: {\n root: 'div',\n },\n root: slot.always(\n getIntrinsicElementProps('div', {\n 'aria-label': 'Attachments',\n ref,\n role: 'menu',\n ...focusAttributes,\n ...props,\n }),\n { elementType: 'div' },\n ),\n };\n};\n"],"names":["useAttachmentTagList_unstable","props","ref","onAttachmentTagDismiss","focusAttributes","useArrowNavigationGroup","axis","circular","components","root","slot","always","getIntrinsicElementProps","role","elementType"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAcaA;;;eAAAA;;;iCAZ2D;AAYjE,MAAMA,gCAAgC,CAC3CC,OACAC;IAEA,MAAM,EAAEC,sBAAsB,EAAE,GAAGF;IAEnC,MAAMG,kBAAkBC,IAAAA,wCAAAA,EAAwB;QAC9CC,MAAM;QACNC,UAAU;IACZ;IAEA,OAAO;QACLJ;QAEAK,YAAY;YACVC,MAAM;QACR;QACAA,MAAMC,qBAAAA,CAAKC,MAAM,CACfC,IAAAA,yCAAAA,EAAyB,OAAO;YAC9B,cAAc;YACdV;YACAW,MAAM;YACN,GAAGT,eAAe;YAClB,GAAGH,KAAK;QACV,IACA;YAAEa,aAAa;QAAM;IAEzB;AACF"}
@@ -17,4 +17,4 @@ function useAttachmentTagListContextValues_unstable(state) {
17
17
  return {
18
18
  tagList
19
19
  };
20
- } //# sourceMappingURL=useAttachmentTagListContextValues.js.map
20
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["useAttachmentTagListContextValues.ts"],"sourcesContent":["import type { AttachmentTagListContextValues, AttachmentTagListState } from './AttachmentTagList.types';\n\nexport function useAttachmentTagListContextValues_unstable(\n state: AttachmentTagListState,\n): AttachmentTagListContextValues {\n const { onAttachmentTagDismiss } = state;\n\n // This context is created with \"@fluentui/react-context-selector\", there is no sense to memoize it\n const tagList = {\n onAttachmentTagDismiss,\n };\n\n return { tagList };\n}\n"],"names":["useAttachmentTagListContextValues_unstable","state","onAttachmentTagDismiss","tagList"],"rangeMappings":";;;;;;;;;;;;;;;;;","mappings":";;;;+BAEgBA;;;eAAAA;;;AAAT,SAASA,2CACdC,KAA6B;UAE7B,EAEAC,sBAAA,KACAD;uGACEC;UACFC,UAAA;QAEAD;;WAAiB;QACnBC"}
1
+ {"version":3,"sources":["useAttachmentTagListContextValues.ts"],"sourcesContent":["import type { AttachmentTagListContextValues, AttachmentTagListState } from './AttachmentTagList.types';\n\nexport function useAttachmentTagListContextValues_unstable(\n state: AttachmentTagListState,\n): AttachmentTagListContextValues {\n const { onAttachmentTagDismiss } = state;\n\n // This context is created with \"@fluentui/react-context-selector\", there is no sense to memoize it\n const tagList = {\n onAttachmentTagDismiss,\n };\n\n return { tagList };\n}\n"],"names":["useAttachmentTagListContextValues_unstable","state","onAttachmentTagDismiss","tagList"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAEgBA;;;eAAAA;;;AAAT,SAASA,2CACdC,KAA6B;IAE7B,MAAM,EAAEC,sBAAsB,EAAE,GAAGD;IAEnC,mGAAmG;IACnG,MAAME,UAAU;QACdD;IACF;IAEA,OAAO;QAAEC;IAAQ;AACnB"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ attachmentTagListClassNames: function() {
13
+ return attachmentTagListClassNames;
14
+ },
15
+ useAttachmentTagListStyles_unstable: function() {
16
+ return useAttachmentTagListStyles_unstable;
17
+ }
18
+ });
19
+ const _reactcomponents = require("@fluentui/react-components");
20
+ const _tokens = require("@fluentui-copilot/tokens");
21
+ const attachmentTagListClassNames = {
22
+ root: 'fai-AttachmentTagList'
23
+ };
24
+ const useRootBaseClassName = (0, _reactcomponents.makeResetStyles)({
25
+ columnGap: _tokens.tokens.spacingHorizontalSNudge,
26
+ display: 'flex',
27
+ flexDirection: 'row',
28
+ flexShrink: 0,
29
+ flexWrap: 'wrap',
30
+ rowGap: _tokens.tokens.spacingVerticalXS
31
+ });
32
+ const useAttachmentTagListStyles_unstable = (state)=>{
33
+ 'use no memo';
34
+ const rootBaseClassName = useRootBaseClassName();
35
+ state.root.className = (0, _reactcomponents.mergeClasses)(attachmentTagListClassNames.root, rootBaseClassName, state.root.className);
36
+ return state;
37
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useAttachmentTagListStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { AttachmentTagListSlots, AttachmentTagListState } from './AttachmentTagList.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const attachmentTagListClassNames: SlotClassNames<AttachmentTagListSlots> = {\n root: 'fai-AttachmentTagList',\n};\n\nconst useRootBaseClassName = makeResetStyles({\n columnGap: tokens.spacingHorizontalSNudge,\n display: 'flex',\n flexDirection: 'row',\n flexShrink: 0,\n flexWrap: 'wrap',\n rowGap: tokens.spacingVerticalXS,\n});\n\n/**\n * Apply styling to the AttachmentTagList slots based on the state\n */\nexport const useAttachmentTagListStyles_unstable = (state: AttachmentTagListState): AttachmentTagListState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n state.root.className = mergeClasses(attachmentTagListClassNames.root, rootBaseClassName, state.root.className);\n\n return state;\n};\n"],"names":["attachmentTagListClassNames","useAttachmentTagListStyles_unstable","root","useRootBaseClassName","makeResetStyles","columnGap","tokens","spacingHorizontalSNudge","display","flexDirection","flexShrink","flexWrap","rowGap","spacingVerticalXS","state","rootBaseClassName","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,2BAAAA;eAAAA;;IAgBAC,mCAAAA;eAAAA;;;iCArBiC;wBACvB;AAIhB,MAAMD,8BAAsE;IACjFE,MAAM;AACR;AAEA,MAAMC,uBAAuBC,IAAAA,gCAAAA,EAAgB;IAC3CC,WAAWC,cAAAA,CAAOC,uBAAuB;IACzCC,SAAS;IACTC,eAAe;IACfC,YAAY;IACZC,UAAU;IACVC,QAAQN,cAAAA,CAAOO,iBAAiB;AAClC;AAKO,MAAMZ,sCAAsC,CAACa;IAClD;IAEA,MAAMC,oBAAoBZ;IAC1BW,MAAMZ,IAAI,CAACc,SAAS,GAAGC,IAAAA,6BAAAA,EAAajB,4BAA4BE,IAAI,EAAEa,mBAAmBD,MAAMZ,IAAI,CAACc,SAAS;IAE7G,OAAOF;AACT"}
@@ -150,4 +150,3 @@ const _AttachmentList = require("./AttachmentList");
150
150
  const _AttachmentOverflowMenu = require("./AttachmentOverflowMenu");
151
151
  const _AttachmentOverflowMenuButton = require("./AttachmentOverflowMenuButton");
152
152
  const _AttachmentOverflowMenuItem = require("./AttachmentOverflowMenuItem");
153
- //# sourceMappingURL=index.js.map
@@ -59,4 +59,4 @@ function useAttachmentTagSlots(props, ref, options) {
59
59
  content,
60
60
  icon
61
61
  };
62
- } //# sourceMappingURL=useAttachmentTagSlots.js.map
62
+ }
@@ -1 +1 @@
1
- {"version":3,"sources":["useAttachmentTagSlots.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { getIntrinsicElementProps, mergeCallbacks, slot } from '@fluentui/react-components';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\nimport { Dismiss20Regular, Dismiss20Filled, bundleIcon } from '@fluentui/react-icons';\n\nimport { useAttachmentTagListContext_unstable } from '../../contexts/attachmentTagListContext';\n\nimport { AttachmentTagListContext } from '../../contexts/attachmentTagListContext';\nimport type { AttachmentTagProps, AttachmentTagState } from './../AttachmentTag/AttachmentTag.types';\nimport type { AttachmentTagItemProps, AttachmentTagItemState } from './../AttachmentTagItem/AttachmentTagItem.types';\n\n/**\n * @internal\n * Create the slots required to render AttachmentTag or AttachmentTagItem.\n */\nexport function useAttachmentTagSlots<TAttachmentTagState extends AttachmentTagState | AttachmentTagItemState>(\n props: AttachmentTagProps | AttachmentTagItemProps,\n ref: React.Ref<HTMLButtonElement | HTMLDivElement>,\n options: {\n elementType: TAttachmentTagState['components'];\n },\n): TAttachmentTagState {\n const onAttachmentTagDismiss = useAttachmentTagListContext_unstable(context => context.onAttachmentTagDismiss);\n const { children, role } = props;\n const { elementType } = options;\n\n const DismissIcon = bundleIcon(Dismiss20Filled, Dismiss20Regular);\n\n const hasParentContext = useHasParentContext(AttachmentTagListContext);\n const rootRole = role ?? (hasParentContext ? 'menuitem' : undefined);\n\n const root: TAttachmentTagState['root'] = slot.always(\n getIntrinsicElementProps(elementType.root as 'button' | 'div', {\n ref,\n ...props,\n role: rootRole,\n }),\n { elementType: elementType.root as 'button' | 'div' },\n );\n root.onClick = mergeCallbacks(\n root.onClick as React.MouseEventHandler<HTMLAnchorElement | HTMLButtonElement>,\n (ev: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) =>\n onAttachmentTagDismiss?.(ev, { content: children, media }),\n );\n\n const media: TAttachmentTagState['media'] = slot.optional(props.media, { elementType: elementType.media });\n\n const content: TAttachmentTagState['content'] = slot.always(props.content, {\n defaultProps: {\n children,\n },\n elementType: elementType.content,\n });\n\n const icon: TAttachmentTagState['icon'] = slot.always(props.icon, {\n defaultProps: {\n children: <DismissIcon />,\n },\n elementType: elementType.icon,\n });\n\n return {\n components: {\n root: elementType.root,\n media: elementType.media,\n content: elementType.content,\n icon: elementType.icon,\n },\n root,\n media,\n content,\n icon,\n } as TAttachmentTagState;\n}\n"],"names":["onAttachmentTagDismiss","useAttachmentTagListContext_unstable","props","children","DismissIcon","role","ref","rootRole","hasParentContext","useHasParentContext","AttachmentTagListContext","elementType","root","undefined","slot","always","getIntrinsicElementProps","content","media","optional","onClick","mergeCallbacks","ev","icon","defaultProps","components","createElement"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAuBQA;;;eAAAA;;;;iEAvBe;iCAEwC;sCAC3B;4BAC0B;0CAET;AAiBnD,SAAMA,sBAAyBC,KAAAA,EAAAA,GAAAA,EAAAA,OAAAA;UAC/BD,yBAA2BE,IAAAA,8DAAAA,EAAAA,CAAAA,UAAAA,QAAAA,sBAAAA;UAC3B,EAEAC,QAAMC,EAENC,IAAA,KACAH;UAEA,aAEII;UAEAD,cAAME,IAAAA,sBAAAA,EAAAA,2BAAAA,EAAAA,4BAAAA;UAERC,mBAAAC,IAAAA,yCAAA,EAAAC,kDAAA;UAAEC,WAAAA,SAAaA,QAAYC,SAAI,KAAA,IAAAP,OAAAG,mBAAA,aAAAK;UAAqBD,OAAAE,qBAAA,CAAAC,MAAA,CAAAC,IAAAA,yCAAA,EAAAL,YAAAC,IAAA,EAAA;QAEtDA;gBAGmCK;;;QAGnCN,aAAMO,YAA2CC,IAASjB;;SAA8CkB,OAAA,GAAAC,IAAAA,+BAAA,EAAAT,KAAAQ,OAAA,EAAAE,CAAAA,KAAAtB,2BAAA,QAAAA,2BAAA,KAAA,IAAA,KAAA,IAAAA,uBAAAsB,IAAA;YAExGL,SAAMA;;;UAGJC,QAAAJ,qBAAA,CAAAK,QAAA,CAAAjB,MAAAgB,KAAA,EAAA;qBACAP,YAAaA,KAAYM;;UAG3BA,UAA0CH,qBAAKC,CAAAA,MAAOb,CAAAA,MAAMqB,OAAM,EAAA;sBAChEC;;;qBAGAb,YAAaA,OAAYY;;UAG3BA,OAAOT,qBAAA,CAAAC,MAAA,CAAAb,MAAAqB,IAAA,EAAA;sBACLE;sBACEb,WAAMD,GAAAA,OAAgBe,aAAA,CAAAtB,aAAA;;qBAEtBa,YAASN,IAAYM;;WAEvB;oBACAL;kBACAM,YAAAA,IAAAA;mBACAD,YAAAA,KAAAA;qBACAM,YAAAA,OAAAA;YACFA,MAAAZ,YAAAY,IAAA;QACF"}
1
+ {"version":3,"sources":["useAttachmentTagSlots.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { getIntrinsicElementProps, mergeCallbacks, slot } from '@fluentui/react-components';\nimport { useHasParentContext } from '@fluentui/react-context-selector';\nimport { Dismiss20Regular, Dismiss20Filled, bundleIcon } from '@fluentui/react-icons';\n\nimport { useAttachmentTagListContext_unstable } from '../../contexts/attachmentTagListContext';\n\nimport { AttachmentTagListContext } from '../../contexts/attachmentTagListContext';\nimport type { AttachmentTagProps, AttachmentTagState } from './../AttachmentTag/AttachmentTag.types';\nimport type { AttachmentTagItemProps, AttachmentTagItemState } from './../AttachmentTagItem/AttachmentTagItem.types';\n\n/**\n * @internal\n * Create the slots required to render AttachmentTag or AttachmentTagItem.\n */\nexport function useAttachmentTagSlots<TAttachmentTagState extends AttachmentTagState | AttachmentTagItemState>(\n props: AttachmentTagProps | AttachmentTagItemProps,\n ref: React.Ref<HTMLButtonElement | HTMLDivElement>,\n options: {\n elementType: TAttachmentTagState['components'];\n },\n): TAttachmentTagState {\n const onAttachmentTagDismiss = useAttachmentTagListContext_unstable(context => context.onAttachmentTagDismiss);\n const { children, role } = props;\n const { elementType } = options;\n\n const DismissIcon = bundleIcon(Dismiss20Filled, Dismiss20Regular);\n\n const hasParentContext = useHasParentContext(AttachmentTagListContext);\n const rootRole = role ?? (hasParentContext ? 'menuitem' : undefined);\n\n const root: TAttachmentTagState['root'] = slot.always(\n getIntrinsicElementProps(elementType.root as 'button' | 'div', {\n ref,\n ...props,\n role: rootRole,\n }),\n { elementType: elementType.root as 'button' | 'div' },\n );\n root.onClick = mergeCallbacks(\n root.onClick as React.MouseEventHandler<HTMLAnchorElement | HTMLButtonElement>,\n (ev: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) =>\n onAttachmentTagDismiss?.(ev, { content: children, media }),\n );\n\n const media: TAttachmentTagState['media'] = slot.optional(props.media, { elementType: elementType.media });\n\n const content: TAttachmentTagState['content'] = slot.always(props.content, {\n defaultProps: {\n children,\n },\n elementType: elementType.content,\n });\n\n const icon: TAttachmentTagState['icon'] = slot.always(props.icon, {\n defaultProps: {\n children: <DismissIcon />,\n },\n elementType: elementType.icon,\n });\n\n return {\n components: {\n root: elementType.root,\n media: elementType.media,\n content: elementType.content,\n icon: elementType.icon,\n },\n root,\n media,\n content,\n icon,\n } as TAttachmentTagState;\n}\n"],"names":["useAttachmentTagSlots","props","ref","options","onAttachmentTagDismiss","useAttachmentTagListContext_unstable","context","children","role","elementType","DismissIcon","bundleIcon","Dismiss20Filled","Dismiss20Regular","hasParentContext","useHasParentContext","AttachmentTagListContext","rootRole","undefined","root","slot","always","getIntrinsicElementProps","onClick","mergeCallbacks","ev","content","media","optional","defaultProps","icon","React","createElement","components"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAgBgBA;;;eAAAA;;;;iEAhBO;iCAEwC;sCAC3B;4BAC0B;0CAET;AAU9C,SAASA,sBACdC,KAAkD,EAClDC,GAAkD,EAClDC,OAEC;IAED,MAAMC,yBAAyBC,IAAAA,8DAAAA,EAAqCC,CAAAA,UAAWA,QAAQF,sBAAsB;IAC7G,MAAM,EAAEG,QAAQ,EAAEC,IAAI,EAAE,GAAGP;IAC3B,MAAM,EAAEQ,WAAW,EAAE,GAAGN;IAExB,MAAMO,cAAcC,IAAAA,sBAAAA,EAAWC,2BAAAA,EAAiBC,4BAAAA;IAEhD,MAAMC,mBAAmBC,IAAAA,yCAAAA,EAAoBC,kDAAAA;IAC7C,MAAMC,WAAWT,SAAAA,QAAAA,SAAAA,KAAAA,IAAAA,OAASM,mBAAmB,aAAaI;IAE1D,MAAMC,OAAoCC,qBAAAA,CAAKC,MAAM,CACnDC,IAAAA,yCAAAA,EAAyBb,YAAYU,IAAI,EAAsB;QAC7DjB;QACA,GAAGD,KAAK;QACRO,MAAMS;IACR,IACA;QAAER,aAAaA,YAAYU,IAAI;IAAqB;IAEtDA,KAAKI,OAAO,GAAGC,IAAAA,+BAAAA,EACbL,KAAKI,OAAO,EACZ,CAACE,KACCrB,2BAAAA,QAAAA,2BAAAA,KAAAA,IAAAA,KAAAA,IAAAA,uBAAyBqB,IAAI;YAAEC,SAASnB;YAAUoB;QAAM;IAG5D,MAAMA,QAAsCP,qBAAAA,CAAKQ,QAAQ,CAAC3B,MAAM0B,KAAK,EAAE;QAAElB,aAAaA,YAAYkB,KAAK;IAAC;IAExG,MAAMD,UAA0CN,qBAAAA,CAAKC,MAAM,CAACpB,MAAMyB,OAAO,EAAE;QACzEG,cAAc;YACZtB;QACF;QACAE,aAAaA,YAAYiB,OAAO;IAClC;IAEA,MAAMI,OAAoCV,qBAAAA,CAAKC,MAAM,CAACpB,MAAM6B,IAAI,EAAE;QAChED,cAAc;YACZtB,UAAAA,WAAAA,GAAUwB,OAAAC,aAAA,CAACtB,aAAAA;QACb;QACAD,aAAaA,YAAYqB,IAAI;IAC/B;IAEA,OAAO;QACLG,YAAY;YACVd,MAAMV,YAAYU,IAAI;YACtBQ,OAAOlB,YAAYkB,KAAK;YACxBD,SAASjB,YAAYiB,OAAO;YAC5BI,MAAMrB,YAAYqB,IAAI;QACxB;QACAX;QACAQ;QACAD;QACAI;IACF;AACF"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useProgressBarStyles", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useProgressBarStyles;
9
+ }
10
+ });
11
+ const _reactcomponents = require("@fluentui/react-components");
12
+ const _tokens = require("@fluentui-copilot/tokens");
13
+ const indeterminateProgressBarReducedMotion = {
14
+ '0%': {
15
+ opacity: '.2'
16
+ },
17
+ '50%': {
18
+ opacity: '1'
19
+ },
20
+ '100%': {
21
+ opacity: '.2'
22
+ }
23
+ };
24
+ const useProgressBarStyles = (0, _reactcomponents.makeStyles)({
25
+ progress: {
26
+ width: '100%',
27
+ position: 'absolute',
28
+ bottom: 0,
29
+ left: 0,
30
+ right: 0,
31
+ height: '4px',
32
+ borderBottomLeftRadius: _tokens.tokens.borderRadiusMedium,
33
+ borderBottomRightRadius: _tokens.tokens.borderRadiusMedium
34
+ },
35
+ regularProgressBar: {
36
+ height: '100%',
37
+ backgroundImage: `linear-gradient(90deg, ${_tokens.tokens.colorBrandFlair1} 35%, ${_tokens.tokens.colorBrandFlair2} 70%, ${_tokens.tokens.colorBrandFlair3} 92%)`
38
+ },
39
+ indeterminateProgressBar: {
40
+ height: '100%',
41
+ backgroundColor: _tokens.tokens.colorTransparentBackground,
42
+ backgroundImage: `linear-gradient(90deg, rgba(0,0,0,0) 0%, ${_tokens.tokens.colorBrandFlair1} 35%, ${_tokens.tokens.colorBrandFlair2} 70%, ${_tokens.tokens.colorBrandFlair3} 92%, rgba(0,0,0,0))`,
43
+ '@media screen and (prefers-reduced-motion: reduce)': {
44
+ maxWidth: '100%',
45
+ animationIterationCount: 'infinite',
46
+ animationDuration: '3s',
47
+ animationName: indeterminateProgressBarReducedMotion
48
+ }
49
+ }
50
+ });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useProgressBarStyles.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\n\nconst indeterminateProgressBarReducedMotion = {\n '0%': {\n opacity: '.2', // matches indeterminate bar width\n },\n '50%': {\n opacity: '1',\n },\n '100%': {\n opacity: '.2',\n },\n};\n\n/**\n * @internal\n */\nexport const useProgressBarStyles = makeStyles({\n progress: {\n width: '100%',\n position: 'absolute',\n bottom: 0,\n left: 0,\n right: 0,\n height: '4px',\n borderBottomLeftRadius: tokens.borderRadiusMedium,\n borderBottomRightRadius: tokens.borderRadiusMedium,\n },\n regularProgressBar: {\n height: '100%',\n backgroundImage: `linear-gradient(90deg, ${tokens.colorBrandFlair1} 35%, ${tokens.colorBrandFlair2} 70%, ${tokens.colorBrandFlair3} 92%)`,\n },\n indeterminateProgressBar: {\n height: '100%',\n backgroundColor: tokens.colorTransparentBackground,\n backgroundImage: `linear-gradient(90deg, rgba(0,0,0,0) 0%, ${tokens.colorBrandFlair1} 35%, ${tokens.colorBrandFlair2} 70%, ${tokens.colorBrandFlair3} 92%, rgba(0,0,0,0))`,\n '@media screen and (prefers-reduced-motion: reduce)': {\n maxWidth: '100%',\n animationIterationCount: 'infinite',\n animationDuration: '3s',\n animationName: indeterminateProgressBarReducedMotion,\n },\n },\n});\n"],"names":["useProgressBarStyles","indeterminateProgressBarReducedMotion","opacity","makeStyles","progress","width","position","bottom","left","right","height","borderBottomLeftRadius","tokens","borderRadiusMedium","borderBottomRightRadius","regularProgressBar","backgroundImage","colorBrandFlair1","colorBrandFlair2","colorBrandFlair3","indeterminateProgressBar","backgroundColor","colorTransparentBackground","maxWidth","animationIterationCount","animationDuration","animationName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAkBaA;;;eAAAA;;;iCAlBc;wBACJ;AAEvB,MAAMC,wCAAwC;IAC5C,MAAM;QACJC,SAAS;IACX;IACA,OAAO;QACLA,SAAS;IACX;IACA,QAAQ;QACNA,SAAS;IACX;AACF;AAKO,MAAMF,uBAAuBG,IAAAA,2BAAAA,EAAW;IAC7CC,UAAU;QACRC,OAAO;QACPC,UAAU;QACVC,QAAQ;QACRC,MAAM;QACNC,OAAO;QACPC,QAAQ;QACRC,wBAAwBC,cAAAA,CAAOC,kBAAkB;QACjDC,yBAAyBF,cAAAA,CAAOC,kBAAkB;IACpD;IACAE,oBAAoB;QAClBL,QAAQ;QACRM,iBAAiB,CAAC,uBAAuB,EAAEJ,cAAAA,CAAOK,gBAAgB,CAAC,MAAM,EAAEL,cAAAA,CAAOM,gBAAgB,CAAC,MAAM,EAAEN,cAAAA,CAAOO,gBAAgB,CAAC,KAAK,CAAC;IAC3I;IACAC,0BAA0B;QACxBV,QAAQ;QACRW,iBAAiBT,cAAAA,CAAOU,0BAA0B;QAClDN,iBAAiB,CAAC,yCAAyC,EAAEJ,cAAAA,CAAOK,gBAAgB,CAAC,MAAM,EAAEL,cAAAA,CAAOM,gBAAgB,CAAC,MAAM,EAAEN,cAAAA,CAAOO,gBAAgB,CAAC,qBAAqB,CAAC;QAC3K,sDAAsD;YACpDI,UAAU;YACVC,yBAAyB;YACzBC,mBAAmB;YACnBC,eAAezB;QACjB;IACF;AACF"}
@@ -27,4 +27,4 @@ const attachmentListContextDefaultValue = {
27
27
  numberOfAttachments: 0
28
28
  };
29
29
  const AttachmentListProvider = AttachmentListContext.Provider;
30
- const useAttachmentListContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(AttachmentListContext, (ctx = attachmentListContextDefaultValue)=>selector(ctx)); //# sourceMappingURL=attachmentListContext.js.map
30
+ const useAttachmentListContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(AttachmentListContext, (ctx = attachmentListContextDefaultValue)=>selector(ctx));
@@ -1 +1 @@
1
- {"version":3,"sources":["attachmentListContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentListState } from '../components/index';\n\nexport const AttachmentListContext: Context<AttachmentListContextValue> = createContext<\n AttachmentListContextValue | undefined\n>(undefined) as Context<AttachmentListContextValue>;\n\nconst attachmentListContextDefaultValue: AttachmentListContextValue = {\n onAttachmentDismiss: () => null,\n shouldUseOverflow: false,\n numberOfAttachments: 0,\n};\n\n/**\n * Context shared between AttachmentList and its children components\n */\nexport type AttachmentListContextValue = Pick<\n AttachmentListState,\n 'onAttachmentDismiss' | 'shouldUseOverflow' | 'numberOfAttachments'\n>;\n\nexport const AttachmentListProvider = AttachmentListContext.Provider;\n\nexport const useAttachmentListContext_unstable = <T>(selector: ContextSelector<AttachmentListContextValue, T>) =>\n useContextSelector(AttachmentListContext, (ctx = attachmentListContextDefaultValue) => selector(ctx));\n"],"names":["AttachmentListContext","AttachmentListProvider","useAttachmentListContext_unstable","createContext","undefined","attachmentListContextDefaultValue","onAttachmentDismiss","shouldUseOverflow","numberOfAttachments","Provider","selector","useContextSelector","ctx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIaA,qBAAAA;eAAAA;;IAkBAC,sBAAAA;eAAAA;;IAEAC,iCAAAA;eAAAA;;;sCAxBqC;AAI3C,MAAMF,wBAA6DG,IAAAA,mCAAAA,EAExEC;AAEF,MAAMC,oCAAgE;yBACpEC,IAA2B;uBAC3BC;yBACAC;AACF;AAUO,MAAMP,yBAAyBD,sBAAsBS,QAAQ;AAE7D,MAAMP,oCAAoCQ,CAAAA,WAC/CC,IAAAA,wCAAAA,EAAmBX,uBAAuB,CAACY,MAAMP,iCAAiC,GAAKK,SAASE"}
1
+ {"version":3,"sources":["attachmentListContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentListState } from '../components/index';\n\nexport const AttachmentListContext: Context<AttachmentListContextValue> = createContext<\n AttachmentListContextValue | undefined\n>(undefined) as Context<AttachmentListContextValue>;\n\nconst attachmentListContextDefaultValue: AttachmentListContextValue = {\n onAttachmentDismiss: () => null,\n shouldUseOverflow: false,\n numberOfAttachments: 0,\n};\n\n/**\n * Context shared between AttachmentList and its children components\n */\nexport type AttachmentListContextValue = Pick<\n AttachmentListState,\n 'onAttachmentDismiss' | 'shouldUseOverflow' | 'numberOfAttachments'\n>;\n\nexport const AttachmentListProvider = AttachmentListContext.Provider;\n\nexport const useAttachmentListContext_unstable = <T>(selector: ContextSelector<AttachmentListContextValue, T>) =>\n useContextSelector(AttachmentListContext, (ctx = attachmentListContextDefaultValue) => selector(ctx));\n"],"names":["AttachmentListContext","AttachmentListProvider","useAttachmentListContext_unstable","createContext","undefined","attachmentListContextDefaultValue","onAttachmentDismiss","shouldUseOverflow","numberOfAttachments","Provider","selector","useContextSelector","ctx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIaA,qBAAAA;eAAAA;;IAkBAC,sBAAAA;eAAAA;;IAEAC,iCAAAA;eAAAA;;;sCAxBqC;AAI3C,MAAMF,wBAA6DG,IAAAA,mCAAAA,EAExEC;AAEF,MAAMC,oCAAgE;IACpEC,qBAAqB,IAAM;IAC3BC,mBAAmB;IACnBC,qBAAqB;AACvB;AAUO,MAAMP,yBAAyBD,sBAAsBS,QAAQ;AAE7D,MAAMP,oCAAoC,CAAIQ,WACnDC,IAAAA,wCAAAA,EAAmBX,uBAAuB,CAACY,MAAMP,iCAAiC,GAAKK,SAASE"}
@@ -27,4 +27,4 @@ const overflowMenuContextDefaultValue = {
27
27
  overflowCount: 0
28
28
  };
29
29
  const AttachmentOverflowMenuProvider = AttachmentOverflowMenuContext.Provider;
30
- const useAttachmentOverflowMenuContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(AttachmentOverflowMenuContext, (ctx = overflowMenuContextDefaultValue)=>selector(ctx)); //# sourceMappingURL=attachmentOverflowMenuContext.js.map
30
+ const useAttachmentOverflowMenuContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(AttachmentOverflowMenuContext, (ctx = overflowMenuContextDefaultValue)=>selector(ctx));
@@ -1 +1 @@
1
- {"version":3,"sources":["attachmentOverflowMenuContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentOverflowMenuState } from '../components/index';\n\nexport const AttachmentOverflowMenuContext: Context<AttachmentOverflowMenuContextValue> = createContext<\n AttachmentOverflowMenuContextValue | undefined\n>(undefined) as Context<AttachmentOverflowMenuContextValue>;\n\nconst overflowMenuContextDefaultValue: AttachmentOverflowMenuContextValue = {\n isOverflowing: false,\n overflowButtonRef: undefined,\n overflowCount: 0,\n};\n\n/**\n * Context shared between AttachmentOverflowMenu and its children components\n */\nexport type AttachmentOverflowMenuContextValue = Pick<\n AttachmentOverflowMenuState,\n 'isOverflowing' | 'overflowButtonRef' | 'overflowCount'\n>;\nexport const AttachmentOverflowMenuProvider = AttachmentOverflowMenuContext.Provider;\n\nexport const useAttachmentOverflowMenuContext_unstable = <T>(\n selector: ContextSelector<AttachmentOverflowMenuContextValue, T>,\n) => useContextSelector(AttachmentOverflowMenuContext, (ctx = overflowMenuContextDefaultValue) => selector(ctx));\n"],"names":["AttachmentOverflowMenuContext","AttachmentOverflowMenuProvider","useAttachmentOverflowMenuContext_unstable","createContext","undefined","overflowMenuContextDefaultValue","isOverflowing","overflowButtonRef","overflowCount","Provider","selector","useContextSelector","ctx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIaA,6BAAAA;eAAAA;;IAiBAC,8BAAAA;eAAAA;;IAEAC,yCAAAA;eAAAA;;;sCAvBqC;AAI3C,MAAMF,gCAA6EG,IAAAA,mCAAAA,EAExFC;AAEF,MAAMC,kCAAsE;mBAC1EC;uBACAC;mBACAC;AACF;AASO,MAAMP,iCAAiCD,8BAA8BS,QAAQ;AAE7E,MAAMP,4CAA4CQ,CAAAA,WAEpDC,IAAAA,wCAAAA,EAAmBX,+BAA+B,CAACY,MAAMP,+BAA+B,GAAKK,SAASE"}
1
+ {"version":3,"sources":["attachmentOverflowMenuContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentOverflowMenuState } from '../components/index';\n\nexport const AttachmentOverflowMenuContext: Context<AttachmentOverflowMenuContextValue> = createContext<\n AttachmentOverflowMenuContextValue | undefined\n>(undefined) as Context<AttachmentOverflowMenuContextValue>;\n\nconst overflowMenuContextDefaultValue: AttachmentOverflowMenuContextValue = {\n isOverflowing: false,\n overflowButtonRef: undefined,\n overflowCount: 0,\n};\n\n/**\n * Context shared between AttachmentOverflowMenu and its children components\n */\nexport type AttachmentOverflowMenuContextValue = Pick<\n AttachmentOverflowMenuState,\n 'isOverflowing' | 'overflowButtonRef' | 'overflowCount'\n>;\nexport const AttachmentOverflowMenuProvider = AttachmentOverflowMenuContext.Provider;\n\nexport const useAttachmentOverflowMenuContext_unstable = <T>(\n selector: ContextSelector<AttachmentOverflowMenuContextValue, T>,\n) => useContextSelector(AttachmentOverflowMenuContext, (ctx = overflowMenuContextDefaultValue) => selector(ctx));\n"],"names":["AttachmentOverflowMenuContext","AttachmentOverflowMenuProvider","useAttachmentOverflowMenuContext_unstable","createContext","undefined","overflowMenuContextDefaultValue","isOverflowing","overflowButtonRef","overflowCount","Provider","selector","useContextSelector","ctx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIaA,6BAAAA;eAAAA;;IAiBAC,8BAAAA;eAAAA;;IAEAC,yCAAAA;eAAAA;;;sCAvBqC;AAI3C,MAAMF,gCAA6EG,IAAAA,mCAAAA,EAExFC;AAEF,MAAMC,kCAAsE;IAC1EC,eAAe;IACfC,mBAAmBH;IACnBI,eAAe;AACjB;AASO,MAAMP,iCAAiCD,8BAA8BS,QAAQ;AAE7E,MAAMP,4CAA4C,CACvDQ,WACGC,IAAAA,wCAAAA,EAAmBX,+BAA+B,CAACY,MAAMP,+BAA+B,GAAKK,SAASE"}
@@ -25,4 +25,4 @@ const tagListContextDefaultValue = {
25
25
  onAttachmentTagDismiss: ()=>null
26
26
  };
27
27
  const AttachmentTagListProvider = AttachmentTagListContext.Provider;
28
- const useAttachmentTagListContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(AttachmentTagListContext, (ctx = tagListContextDefaultValue)=>selector(ctx)); //# sourceMappingURL=attachmentTagListContext.js.map
28
+ const useAttachmentTagListContext_unstable = (selector)=>(0, _reactcontextselector.useContextSelector)(AttachmentTagListContext, (ctx = tagListContextDefaultValue)=>selector(ctx));
@@ -1 +1 @@
1
- {"version":3,"sources":["attachmentTagListContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentTagListProps } from '../components/index';\n\nexport const AttachmentTagListContext: Context<AttachmentTagListContextValue> = createContext<\n AttachmentTagListContextValue | undefined\n>(undefined) as Context<AttachmentTagListContextValue>;\n\nconst tagListContextDefaultValue: AttachmentTagListContextValue = {\n onAttachmentTagDismiss: () => null,\n};\n\n/**\n * Context shared between AttachmentTagList and its children components\n */\nexport type AttachmentTagListContextValue = Pick<AttachmentTagListProps, 'onAttachmentTagDismiss'>;\n\nexport const AttachmentTagListProvider = AttachmentTagListContext.Provider;\n\nexport const useAttachmentTagListContext_unstable = <T>(selector: ContextSelector<AttachmentTagListContextValue, T>) =>\n useContextSelector(AttachmentTagListContext, (ctx = tagListContextDefaultValue) => selector(ctx));\n"],"names":["AttachmentTagListContext","AttachmentTagListProvider","useAttachmentTagListContext_unstable","createContext","undefined","tagListContextDefaultValue","onAttachmentTagDismiss","Provider","selector","useContextSelector","ctx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIaA,wBAAAA;eAAAA;;IAaAC,yBAAAA;eAAAA;;IAEAC,oCAAAA;eAAAA;;;sCAnBqC;AAI3C,MAAMF,2BAAmEG,IAAAA,mCAAAA,EAE9EC;AAEF,MAAMC,6BAA4D;4BAChEC,IAA8B;AAChC;AAOO,MAAML,4BAA4BD,yBAAyBO,QAAQ;AAEnE,MAAML,uCAAuCM,CAAAA,WAClDC,IAAAA,wCAAAA,EAAmBT,0BAA0B,CAACU,MAAML,0BAA0B,GAAKG,SAASE"}
1
+ {"version":3,"sources":["attachmentTagListContext.ts"],"sourcesContent":["import { createContext, useContextSelector } from '@fluentui/react-context-selector';\nimport type { Context, ContextSelector } from '@fluentui/react-context-selector';\nimport type { AttachmentTagListProps } from '../components/index';\n\nexport const AttachmentTagListContext: Context<AttachmentTagListContextValue> = createContext<\n AttachmentTagListContextValue | undefined\n>(undefined) as Context<AttachmentTagListContextValue>;\n\nconst tagListContextDefaultValue: AttachmentTagListContextValue = {\n onAttachmentTagDismiss: () => null,\n};\n\n/**\n * Context shared between AttachmentTagList and its children components\n */\nexport type AttachmentTagListContextValue = Pick<AttachmentTagListProps, 'onAttachmentTagDismiss'>;\n\nexport const AttachmentTagListProvider = AttachmentTagListContext.Provider;\n\nexport const useAttachmentTagListContext_unstable = <T>(selector: ContextSelector<AttachmentTagListContextValue, T>) =>\n useContextSelector(AttachmentTagListContext, (ctx = tagListContextDefaultValue) => selector(ctx));\n"],"names":["AttachmentTagListContext","AttachmentTagListProvider","useAttachmentTagListContext_unstable","createContext","undefined","tagListContextDefaultValue","onAttachmentTagDismiss","Provider","selector","useContextSelector","ctx"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAIaA,wBAAAA;eAAAA;;IAaAC,yBAAAA;eAAAA;;IAEAC,oCAAAA;eAAAA;;;sCAnBqC;AAI3C,MAAMF,2BAAmEG,IAAAA,mCAAAA,EAE9EC;AAEF,MAAMC,6BAA4D;IAChEC,wBAAwB,IAAM;AAChC;AAOO,MAAML,4BAA4BD,yBAAyBO,QAAQ;AAEnE,MAAML,uCAAuC,CAAIM,WACtDC,IAAAA,wCAAAA,EAAmBT,0BAA0B,CAACU,MAAML,0BAA0B,GAAKG,SAASE"}
@@ -168,4 +168,3 @@ const _attachmentOverflowMenuContext = require("./contexts/attachmentOverflowMen
168
168
  const _AttachmentOverflowMenuButton = require("./AttachmentOverflowMenuButton");
169
169
  const _AttachmentOverflowMenuItem = require("./AttachmentOverflowMenuItem");
170
170
  const _AgentTag = require("./AgentTag");
171
- //# sourceMappingURL=index.js.map