@fluentui-copilot/react-reference 0.15.4 → 0.15.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 (180) hide show
  1. package/CHANGELOG.json +31 -1
  2. package/CHANGELOG.md +19 -1
  3. package/lib/Citation.js +0 -1
  4. package/lib/Reference.js +0 -1
  5. package/lib/ReferenceGroupToggle.js +0 -1
  6. package/lib/ReferenceList.js +0 -1
  7. package/lib/ReferenceListV2.js +0 -1
  8. package/lib/ReferenceOverflowButton.js +0 -1
  9. package/lib/ReferenceV2.js +0 -1
  10. package/lib/components/Citation/Citation.js +5 -6
  11. package/lib/components/Citation/Citation.types.js +1 -2
  12. package/lib/components/Citation/index.js +0 -1
  13. package/lib/components/Citation/renderCitation.js +4 -6
  14. package/lib/components/Citation/useCitation.js +22 -28
  15. package/lib/components/Citation/useCitationStyles.styles.js +1 -1
  16. package/lib/components/Citation/useCitationStyles.styles.js.map +1 -1
  17. package/lib/components/Citation/useCitationStyles.styles.raw.js +69 -0
  18. package/lib/components/Citation/useCitationStyles.styles.raw.js.map +1 -0
  19. package/lib/components/Reference/Reference.js +5 -7
  20. package/lib/components/Reference/Reference.types.js +1 -2
  21. package/lib/components/Reference/index.js +0 -1
  22. package/lib/components/Reference/renderReference.js +27 -12
  23. package/lib/components/Reference/useReference.js +173 -172
  24. package/lib/components/Reference/useReferenceStyles.styles.raw.js +197 -0
  25. package/lib/components/Reference/useReferenceStyles.styles.raw.js.map +1 -0
  26. package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.js +4 -6
  27. package/lib/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +1 -2
  28. package/lib/components/ReferenceGroupToggle/index.js +0 -1
  29. package/lib/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +9 -8
  30. package/lib/components/ReferenceGroupToggle/useReferenceGroupToggle.js +26 -30
  31. package/lib/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js +44 -0
  32. package/lib/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js.map +1 -0
  33. package/lib/components/ReferenceList/ReferenceList.js +5 -7
  34. package/lib/components/ReferenceList/ReferenceList.types.js +1 -2
  35. package/lib/components/ReferenceList/index.js +0 -1
  36. package/lib/components/ReferenceList/renderReferenceList.js +4 -6
  37. package/lib/components/ReferenceList/useReferenceList.js +15 -17
  38. package/lib/components/ReferenceList/useReferenceListStyles.styles.raw.js +27 -0
  39. package/lib/components/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -0
  40. package/lib/components/reference-v2/Reference/Reference.js +4 -5
  41. package/lib/components/reference-v2/Reference/Reference.types.js +1 -2
  42. package/lib/components/reference-v2/Reference/index.js +0 -1
  43. package/lib/components/reference-v2/Reference/renderReference.js +20 -17
  44. package/lib/components/reference-v2/Reference/useReference.js +53 -59
  45. package/lib/components/reference-v2/Reference/useReferenceStyles.styles.raw.js +110 -0
  46. package/lib/components/reference-v2/Reference/useReferenceStyles.styles.raw.js.map +1 -0
  47. package/lib/components/reference-v2/ReferenceList/ReferenceList.js +5 -6
  48. package/lib/components/reference-v2/ReferenceList/ReferenceList.types.js +1 -2
  49. package/lib/components/reference-v2/ReferenceList/index.js +0 -1
  50. package/lib/components/reference-v2/ReferenceList/renderReferenceList.js +17 -17
  51. package/lib/components/reference-v2/ReferenceList/useReferenceList.js +70 -80
  52. package/lib/components/reference-v2/ReferenceList/useReferenceListContextValues.js +13 -21
  53. package/lib/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js +47 -0
  54. package/lib/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -0
  55. package/lib/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.js +4 -5
  56. package/lib/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.types.js +1 -2
  57. package/lib/components/reference-v2/ReferenceOverflowButton/index.js +0 -1
  58. package/lib/components/reference-v2/ReferenceOverflowButton/renderReferenceOverflowButton.js +9 -14
  59. package/lib/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js +77 -77
  60. package/lib/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +45 -0
  61. package/lib/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js.map +1 -0
  62. package/lib/components/reference-v2/index.js +0 -1
  63. package/lib/contexts/ReferenceGroupContext.js +5 -6
  64. package/lib/contexts/reference-v2/index.js +0 -1
  65. package/lib/contexts/reference-v2/referenceListContext.js +11 -12
  66. package/lib/index.js +0 -1
  67. package/lib/utilities/index.js +0 -1
  68. package/lib/utilities/reference-v2/generateReferenceCitationPreview.js +75 -86
  69. package/lib/utilities/reference-v2/index.js +0 -1
  70. package/lib/utilities/reference-v2/useReferenceCitationPreview.js +5 -5
  71. package/lib/utilities/useReferenceCitationPreview.js +123 -114
  72. package/lib/utilities/useReferenceGroup.js +28 -32
  73. package/lib/utilities/useReferenceGroup.js.map +1 -1
  74. package/lib/utilities/useReferenceGroup.styles.js +9 -0
  75. package/lib/utilities/useReferenceGroup.styles.js.map +1 -0
  76. package/lib/utilities/useReferenceGroup.styles.raw.js +6 -0
  77. package/lib/utilities/useReferenceGroup.styles.raw.js.map +1 -0
  78. package/lib-commonjs/Citation.js +0 -1
  79. package/lib-commonjs/Reference.js +0 -1
  80. package/lib-commonjs/ReferenceGroupToggle.js +0 -1
  81. package/lib-commonjs/ReferenceList.js +0 -1
  82. package/lib-commonjs/ReferenceListV2.js +0 -1
  83. package/lib-commonjs/ReferenceOverflowButton.js +0 -1
  84. package/lib-commonjs/ReferenceV2.js +0 -1
  85. package/lib-commonjs/components/Citation/Citation.js +1 -1
  86. package/lib-commonjs/components/Citation/Citation.js.map +1 -1
  87. package/lib-commonjs/components/Citation/Citation.types.js +0 -1
  88. package/lib-commonjs/components/Citation/index.js +0 -1
  89. package/lib-commonjs/components/Citation/renderCitation.js +1 -1
  90. package/lib-commonjs/components/Citation/renderCitation.js.map +1 -1
  91. package/lib-commonjs/components/Citation/useCitation.js +1 -1
  92. package/lib-commonjs/components/Citation/useCitation.js.map +1 -1
  93. package/lib-commonjs/components/Citation/useCitationStyles.styles.js +7 -7
  94. package/lib-commonjs/components/Citation/useCitationStyles.styles.js.map +1 -1
  95. package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js +85 -0
  96. package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js.map +1 -0
  97. package/lib-commonjs/components/Reference/Reference.js +1 -1
  98. package/lib-commonjs/components/Reference/Reference.js.map +1 -1
  99. package/lib-commonjs/components/Reference/Reference.types.js +0 -1
  100. package/lib-commonjs/components/Reference/index.js +0 -1
  101. package/lib-commonjs/components/Reference/renderReference.js +1 -1
  102. package/lib-commonjs/components/Reference/renderReference.js.map +1 -1
  103. package/lib-commonjs/components/Reference/useReference.js +1 -1
  104. package/lib-commonjs/components/Reference/useReference.js.map +1 -1
  105. package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js +214 -0
  106. package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js.map +1 -0
  107. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js +1 -1
  108. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.js.map +1 -1
  109. package/lib-commonjs/components/ReferenceGroupToggle/ReferenceGroupToggle.types.js +0 -1
  110. package/lib-commonjs/components/ReferenceGroupToggle/index.js +0 -1
  111. package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js +1 -1
  112. package/lib-commonjs/components/ReferenceGroupToggle/renderReferenceGroupToggle.js.map +1 -1
  113. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js +1 -1
  114. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggle.js.map +1 -1
  115. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js +60 -0
  116. package/lib-commonjs/components/ReferenceGroupToggle/useReferenceGroupToggleStyles.styles.raw.js.map +1 -0
  117. package/lib-commonjs/components/ReferenceList/ReferenceList.js +1 -1
  118. package/lib-commonjs/components/ReferenceList/ReferenceList.js.map +1 -1
  119. package/lib-commonjs/components/ReferenceList/ReferenceList.types.js +0 -1
  120. package/lib-commonjs/components/ReferenceList/index.js +0 -1
  121. package/lib-commonjs/components/ReferenceList/renderReferenceList.js +1 -1
  122. package/lib-commonjs/components/ReferenceList/renderReferenceList.js.map +1 -1
  123. package/lib-commonjs/components/ReferenceList/useReferenceList.js +1 -1
  124. package/lib-commonjs/components/ReferenceList/useReferenceList.js.map +1 -1
  125. package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js +44 -0
  126. package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -0
  127. package/lib-commonjs/components/reference-v2/Reference/Reference.js +1 -1
  128. package/lib-commonjs/components/reference-v2/Reference/Reference.js.map +1 -1
  129. package/lib-commonjs/components/reference-v2/Reference/Reference.types.js +0 -1
  130. package/lib-commonjs/components/reference-v2/Reference/index.js +0 -1
  131. package/lib-commonjs/components/reference-v2/Reference/renderReference.js +1 -1
  132. package/lib-commonjs/components/reference-v2/Reference/renderReference.js.map +1 -1
  133. package/lib-commonjs/components/reference-v2/Reference/useReference.js +1 -1
  134. package/lib-commonjs/components/reference-v2/Reference/useReference.js.map +1 -1
  135. package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.raw.js +132 -0
  136. package/lib-commonjs/components/reference-v2/Reference/useReferenceStyles.styles.raw.js.map +1 -0
  137. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js +1 -1
  138. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.js.map +1 -1
  139. package/lib-commonjs/components/reference-v2/ReferenceList/ReferenceList.types.js +0 -1
  140. package/lib-commonjs/components/reference-v2/ReferenceList/index.js +0 -1
  141. package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js +1 -1
  142. package/lib-commonjs/components/reference-v2/ReferenceList/renderReferenceList.js.map +1 -1
  143. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js +1 -1
  144. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceList.js.map +1 -1
  145. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListContextValues.js +1 -1
  146. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListContextValues.js.map +1 -1
  147. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js +63 -0
  148. package/lib-commonjs/components/reference-v2/ReferenceList/useReferenceListStyles.styles.raw.js.map +1 -0
  149. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.js +1 -1
  150. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.js.map +1 -1
  151. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/ReferenceOverflowButton.types.js +0 -1
  152. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/index.js +0 -1
  153. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/renderReferenceOverflowButton.js +1 -1
  154. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/renderReferenceOverflowButton.js.map +1 -1
  155. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js +1 -1
  156. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButton.js.map +1 -1
  157. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +61 -0
  158. package/lib-commonjs/components/reference-v2/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js.map +1 -0
  159. package/lib-commonjs/components/reference-v2/index.js +0 -1
  160. package/lib-commonjs/contexts/ReferenceGroupContext.js +1 -1
  161. package/lib-commonjs/contexts/ReferenceGroupContext.js.map +1 -1
  162. package/lib-commonjs/contexts/reference-v2/index.js +0 -1
  163. package/lib-commonjs/contexts/reference-v2/referenceListContext.js +1 -1
  164. package/lib-commonjs/contexts/reference-v2/referenceListContext.js.map +1 -1
  165. package/lib-commonjs/index.js +0 -1
  166. package/lib-commonjs/utilities/index.js +0 -1
  167. package/lib-commonjs/utilities/reference-v2/generateReferenceCitationPreview.js +1 -1
  168. package/lib-commonjs/utilities/reference-v2/generateReferenceCitationPreview.js.map +1 -1
  169. package/lib-commonjs/utilities/reference-v2/index.js +0 -1
  170. package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js +1 -1
  171. package/lib-commonjs/utilities/reference-v2/useReferenceCitationPreview.js.map +1 -1
  172. package/lib-commonjs/utilities/useReferenceCitationPreview.js +1 -1
  173. package/lib-commonjs/utilities/useReferenceCitationPreview.js.map +1 -1
  174. package/lib-commonjs/utilities/useReferenceGroup.js +3 -11
  175. package/lib-commonjs/utilities/useReferenceGroup.js.map +1 -1
  176. package/lib-commonjs/utilities/useReferenceGroup.styles.js +20 -0
  177. package/lib-commonjs/utilities/useReferenceGroup.styles.js.map +1 -0
  178. package/lib-commonjs/utilities/useReferenceGroup.styles.raw.js +16 -0
  179. package/lib-commonjs/utilities/useReferenceGroup.styles.raw.js.map +1 -0
  180. package/package.json +7 -11
@@ -10,34 +10,30 @@ import { useCopilotMode } from '@fluentui-copilot/react-provider';
10
10
  *
11
11
  * @param props - props from this instance of ReferenceGroupToggle
12
12
  * @param ref - reference to root HTMLElement of ReferenceGroupToggle
13
- */
14
- export const useReferenceGroupToggle_unstable = (props, ref) => {
15
- const {
16
- isOpen = false
17
- } = props;
18
- const mode = useCopilotMode(props.mode);
19
- return {
20
- mode,
21
- isOpen,
22
- components: {
23
- root: 'button',
24
- icon: 'span'
25
- },
26
- root: slot.always(getIntrinsicElementProps('button', {
27
- ref,
28
- 'aria-expanded': isOpen,
29
- type: 'button',
30
- ...props
31
- }), {
32
- elementType: 'button'
33
- }),
34
- icon: slot.optional(props.icon, {
35
- defaultProps: {
36
- children: isOpen ? /*#__PURE__*/React.createElement(ChevronUp16Regular, null) : /*#__PURE__*/React.createElement(ChevronDown16Regular, null)
37
- },
38
- renderByDefault: true,
39
- elementType: 'span'
40
- })
41
- };
13
+ */ export const useReferenceGroupToggle_unstable = (props, ref)=>{
14
+ const { isOpen = false } = props;
15
+ const mode = useCopilotMode(props.mode);
16
+ return {
17
+ mode,
18
+ isOpen,
19
+ components: {
20
+ root: 'button',
21
+ icon: 'span'
22
+ },
23
+ root: slot.always(getIntrinsicElementProps('button', {
24
+ ref,
25
+ 'aria-expanded': isOpen,
26
+ type: 'button',
27
+ ...props
28
+ }), {
29
+ elementType: 'button'
30
+ }),
31
+ icon: slot.optional(props.icon, {
32
+ defaultProps: {
33
+ children: isOpen ? /*#__PURE__*/ React.createElement(ChevronUp16Regular, null) : /*#__PURE__*/ React.createElement(ChevronDown16Regular, null)
34
+ },
35
+ renderByDefault: true,
36
+ elementType: 'span'
37
+ })
38
+ };
42
39
  };
43
- //# sourceMappingURL=useReferenceGroupToggle.js.map
@@ -0,0 +1,44 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';
2
+ import { tokens } from '@fluentui-copilot/tokens';
3
+ export const referenceGroupToggleClassNames = {
4
+ root: 'fai-ReferenceGroupToggle',
5
+ icon: 'fai-ReferenceGroupToggle__icon'
6
+ };
7
+ const useButtonBaseClassName = makeResetStyles({
8
+ display: 'inline-flex',
9
+ columnGap: tokens.spacingHorizontalSNudge,
10
+ alignItems: 'center',
11
+ ...typographyStyles.caption1,
12
+ border: 0,
13
+ backgroundColor: tokens.colorTransparentBackground,
14
+ color: tokens.colorNeutralForeground3,
15
+ cursor: 'pointer',
16
+ width: 'max-content',
17
+ padding: `${tokens.spacingVerticalXS} 0`
18
+ });
19
+ const useIconBaseClassName = makeResetStyles({
20
+ display: 'inline-flex',
21
+ alignItems: 'center'
22
+ });
23
+ const useStyles = makeStyles({
24
+ canvas: {
25
+ ...typographyStyles.caption1
26
+ },
27
+ sidecar: {
28
+ ...typographyStyles.caption2
29
+ }
30
+ });
31
+ /**
32
+ * Apply styling to the ReferenceGroupToggle slots based on the state
33
+ */ export const useReferenceGroupToggleStyles_unstable = (state)=>{
34
+ 'use no memo';
35
+ const { mode } = state;
36
+ const styles = useStyles();
37
+ const iconBaseClassName = useIconBaseClassName();
38
+ const buttonBaseClassName = useButtonBaseClassName();
39
+ state.root.className = mergeClasses(referenceGroupToggleClassNames.root, buttonBaseClassName, styles[mode], state.root.className);
40
+ if (state.icon) {
41
+ state.icon.className = mergeClasses(referenceGroupToggleClassNames.icon, iconBaseClassName, state.icon.className);
42
+ }
43
+ return state;
44
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useReferenceGroupToggleStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { ReferenceGroupToggleSlots, ReferenceGroupToggleState } from './ReferenceGroupToggle.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const referenceGroupToggleClassNames: SlotClassNames<ReferenceGroupToggleSlots> = {\n root: 'fai-ReferenceGroupToggle',\n icon: 'fai-ReferenceGroupToggle__icon',\n};\n\nconst useButtonBaseClassName = makeResetStyles({\n display: 'inline-flex',\n columnGap: tokens.spacingHorizontalSNudge,\n alignItems: 'center',\n ...typographyStyles.caption1,\n border: 0,\n backgroundColor: tokens.colorTransparentBackground,\n color: tokens.colorNeutralForeground3,\n cursor: 'pointer',\n width: 'max-content',\n padding: `${tokens.spacingVerticalXS} 0`,\n});\n\nconst useIconBaseClassName = makeResetStyles({\n display: 'inline-flex',\n alignItems: 'center',\n});\n\nconst useStyles = makeStyles({\n canvas: { ...typographyStyles.caption1 },\n sidecar: {\n ...typographyStyles.caption2,\n },\n});\n\n/**\n * Apply styling to the ReferenceGroupToggle slots based on the state\n */\nexport const useReferenceGroupToggleStyles_unstable = (state: ReferenceGroupToggleState): ReferenceGroupToggleState => {\n 'use no memo';\n\n const { mode } = state;\n const styles = useStyles();\n\n const iconBaseClassName = useIconBaseClassName();\n const buttonBaseClassName = useButtonBaseClassName();\n state.root.className = mergeClasses(\n referenceGroupToggleClassNames.root,\n buttonBaseClassName,\n styles[mode],\n state.root.className,\n );\n\n if (state.icon) {\n state.icon.className = mergeClasses(referenceGroupToggleClassNames.icon, iconBaseClassName, state.icon.className);\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","typographyStyles","tokens","referenceGroupToggleClassNames","root","icon","useButtonBaseClassName","display","columnGap","spacingHorizontalSNudge","alignItems","caption1","border","backgroundColor","colorTransparentBackground","color","colorNeutralForeground3","cursor","width","padding","spacingVerticalXS","useIconBaseClassName","useStyles","canvas","sidecar","caption2","useReferenceGroupToggleStyles_unstable","state","mode","styles","iconBaseClassName","buttonBaseClassName","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,EAAEC,gBAAgB,QAAQ,6BAA6B;AACzG,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,iCAA4E;IACvFC,MAAM;IACNC,MAAM;AACR,EAAE;AAEF,MAAMC,yBAAyBR,gBAAgB;IAC7CS,SAAS;IACTC,WAAWN,OAAOO,uBAAuB;IACzCC,YAAY;IACZ,GAAGT,iBAAiBU,QAAQ;IAC5BC,QAAQ;IACRC,iBAAiBX,OAAOY,0BAA0B;IAClDC,OAAOb,OAAOc,uBAAuB;IACrCC,QAAQ;IACRC,OAAO;IACPC,SAAS,CAAC,EAAEjB,OAAOkB,iBAAiB,CAAC,EAAE,CAAC;AAC1C;AAEA,MAAMC,uBAAuBvB,gBAAgB;IAC3CS,SAAS;IACTG,YAAY;AACd;AAEA,MAAMY,YAAYvB,WAAW;IAC3BwB,QAAQ;QAAE,GAAGtB,iBAAiBU,QAAQ;IAAC;IACvCa,SAAS;QACP,GAAGvB,iBAAiBwB,QAAQ;IAC9B;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,yCAAyC,CAACC;IACrD;IAEA,MAAM,EAAEC,IAAI,EAAE,GAAGD;IACjB,MAAME,SAASP;IAEf,MAAMQ,oBAAoBT;IAC1B,MAAMU,sBAAsBzB;IAC5BqB,MAAMvB,IAAI,CAAC4B,SAAS,GAAGhC,aACrBG,+BAA+BC,IAAI,EACnC2B,qBACAF,MAAM,CAACD,KAAK,EACZD,MAAMvB,IAAI,CAAC4B,SAAS;IAGtB,IAAIL,MAAMtB,IAAI,EAAE;QACdsB,MAAMtB,IAAI,CAAC2B,SAAS,GAAGhC,aAAaG,+BAA+BE,IAAI,EAAEyB,mBAAmBH,MAAMtB,IAAI,CAAC2B,SAAS;IAClH;IAEA,OAAOL;AACT,EAAE"}
@@ -3,12 +3,10 @@ import { useReferenceList_unstable } from './useReferenceList';
3
3
  import { renderReferenceList_unstable } from './renderReferenceList';
4
4
  import { useReferenceListStyles_unstable } from './useReferenceListStyles.styles';
5
5
  import { useCustomStyleHook } from '@fluentui-copilot/react-provider';
6
- /** deprecated Use ReferenceListV2 component, hooks and types instead. */
7
- export const ReferenceList = /*#__PURE__*/React.forwardRef((props, ref) => {
8
- const state = useReferenceList_unstable(props, ref);
9
- useReferenceListStyles_unstable(state);
10
- useCustomStyleHook('useReferenceListStyles')(state);
11
- return renderReferenceList_unstable(state);
6
+ /** deprecated Use ReferenceListV2 component, hooks and types instead. */ export const ReferenceList = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
+ const state = useReferenceList_unstable(props, ref);
8
+ useReferenceListStyles_unstable(state);
9
+ useCustomStyleHook('useReferenceListStyles')(state);
10
+ return renderReferenceList_unstable(state);
12
11
  });
13
12
  ReferenceList.displayName = 'ReferenceList';
14
- //# sourceMappingURL=ReferenceList.js.map
@@ -1,2 +1 @@
1
- /** deprecated Use ReferenceListV2 component, hooks and types instead. */export {};
2
- //# sourceMappingURL=ReferenceList.types.js.map
1
+ /** deprecated Use ReferenceListV2 component, hooks and types instead. */ export { };
@@ -2,4 +2,3 @@ export { ReferenceList } from './ReferenceList';
2
2
  export { renderReferenceList_unstable } from './renderReferenceList';
3
3
  export { useReferenceList_unstable } from './useReferenceList';
4
4
  export { referenceListClassNames, referenceListItemClassName, useReferenceListStyles_unstable } from './useReferenceListStyles.styles';
5
- //# sourceMappingURL=index.js.map
@@ -1,8 +1,6 @@
1
- import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
1
+ import { jsx as _jsx } from "@fluentui/react-jsx-runtime/jsx-runtime";
2
2
  import { assertSlots } from '@fluentui/react-components';
3
- /** deprecated Use ReferenceListV2 component, hooks and types instead. */
4
- export const renderReferenceList_unstable = state => {
5
- assertSlots(state);
6
- return /*#__PURE__*/_jsx(state.root, {});
3
+ /** deprecated Use ReferenceListV2 component, hooks and types instead. */ export const renderReferenceList_unstable = (state)=>{
4
+ assertSlots(state);
5
+ return /*#__PURE__*/ _jsx(state.root, {});
7
6
  };
8
- //# sourceMappingURL=renderReferenceList.js.map
@@ -11,21 +11,19 @@ import { referenceListItemClassName } from './useReferenceListStyles.styles';
11
11
  * @param ref - reference to root HTMLElement of ReferenceList
12
12
  *
13
13
  * deprecated Use ReferenceListV2 component, hooks and types instead.
14
- */
15
- export const useReferenceList_unstable = (props, ref) => {
16
- return {
17
- components: {
18
- root: 'ol'
19
- },
20
- root: slot.always(getIntrinsicElementProps('ol', {
21
- ref,
22
- ...props,
23
- children: React.Children.map(props.children, child => /*#__PURE__*/React.createElement("li", {
24
- className: referenceListItemClassName
25
- }, child))
26
- }), {
27
- elementType: 'ol'
28
- })
29
- };
14
+ */ export const useReferenceList_unstable = (props, ref)=>{
15
+ return {
16
+ components: {
17
+ root: 'ol'
18
+ },
19
+ root: slot.always(getIntrinsicElementProps('ol', {
20
+ ref,
21
+ ...props,
22
+ children: React.Children.map(props.children, (child)=>/*#__PURE__*/ React.createElement("li", {
23
+ className: referenceListItemClassName
24
+ }, child))
25
+ }), {
26
+ elementType: 'ol'
27
+ })
28
+ };
30
29
  };
31
- //# sourceMappingURL=useReferenceList.js.map
@@ -0,0 +1,27 @@
1
+ import { makeResetStyles, mergeClasses } from '@fluentui/react-components';
2
+ import { tokens } from '@fluentui-copilot/tokens';
3
+ /** deprecated Use ReferenceListV2 component, hooks and types instead. */ export const referenceListClassNames = {
4
+ root: 'fai-ReferenceList'
5
+ };
6
+ /** deprecated Use ReferenceListV2 component, hooks and types instead. */ export const referenceListItemClassName = 'fai-ReferenceList__item';
7
+ /**
8
+ * Styles for the root slot
9
+ */ const useRootClassName = makeResetStyles({
10
+ padding: 0,
11
+ margin: 0,
12
+ display: 'flex',
13
+ flexDirection: 'column',
14
+ gap: tokens.spacingVerticalS,
15
+ [`> .${referenceListItemClassName}`]: {
16
+ listStyleType: 'none'
17
+ }
18
+ });
19
+ /**
20
+ * Apply styling to the ReferenceList slots based on the state
21
+ *
22
+ * deprecated Use ReferenceListV2 component, hooks and types instead.
23
+ */ export const useReferenceListStyles_unstable = (state)=>{
24
+ 'use no memo';
25
+ state.root.className = mergeClasses(referenceListClassNames.root, useRootClassName(), state.root.className);
26
+ return state;
27
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useReferenceListStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { ReferenceListSlots, ReferenceListState } from './ReferenceList.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\n/** deprecated Use ReferenceListV2 component, hooks and types instead. */\nexport const referenceListClassNames: SlotClassNames<ReferenceListSlots> = {\n root: 'fai-ReferenceList',\n};\n\n/** deprecated Use ReferenceListV2 component, hooks and types instead. */\nexport const referenceListItemClassName = 'fai-ReferenceList__item';\n\n/**\n * Styles for the root slot\n */\nconst useRootClassName = makeResetStyles({\n padding: 0,\n margin: 0,\n display: 'flex',\n flexDirection: 'column',\n gap: tokens.spacingVerticalS,\n\n [`> .${referenceListItemClassName}`]: {\n listStyleType: 'none',\n },\n});\n\n/**\n * Apply styling to the ReferenceList slots based on the state\n *\n * deprecated Use ReferenceListV2 component, hooks and types instead.\n */\nexport const useReferenceListStyles_unstable = (state: ReferenceListState): ReferenceListState => {\n 'use no memo';\n\n state.root.className = mergeClasses(referenceListClassNames.root, useRootClassName(), state.root.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","tokens","referenceListClassNames","root","referenceListItemClassName","useRootClassName","padding","margin","display","flexDirection","gap","spacingVerticalS","listStyleType","useReferenceListStyles_unstable","state","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,QAAQ,6BAA6B;AAC3E,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,uEAAuE,GACvE,OAAO,MAAMC,0BAA8D;IACzEC,MAAM;AACR,EAAE;AAEF,uEAAuE,GACvE,OAAO,MAAMC,6BAA6B,0BAA0B;AAEpE;;CAEC,GACD,MAAMC,mBAAmBN,gBAAgB;IACvCO,SAAS;IACTC,QAAQ;IACRC,SAAS;IACTC,eAAe;IACfC,KAAKT,OAAOU,gBAAgB;IAE5B,CAAC,CAAC,GAAG,EAAEP,2BAA2B,CAAC,CAAC,EAAE;QACpCQ,eAAe;IACjB;AACF;AAEA;;;;CAIC,GACD,OAAO,MAAMC,kCAAkC,CAACC;IAC9C;IAEAA,MAAMX,IAAI,CAACY,SAAS,GAAGf,aAAaE,wBAAwBC,IAAI,EAAEE,oBAAoBS,MAAMX,IAAI,CAACY,SAAS;IAE1G,OAAOD;AACT,EAAE"}
@@ -2,10 +2,9 @@ import * as React from 'react';
2
2
  import { useReference_unstable } from './useReference';
3
3
  import { renderReference_unstable } from './renderReference';
4
4
  import { useReferenceStyles_unstable } from './useReferenceStyles.styles';
5
- export const Reference = /*#__PURE__*/React.forwardRef((props, ref) => {
6
- const state = useReference_unstable(props, ref);
7
- useReferenceStyles_unstable(state);
8
- return renderReference_unstable(state);
5
+ export const Reference = /*#__PURE__*/ React.forwardRef((props, ref)=>{
6
+ const state = useReference_unstable(props, ref);
7
+ useReferenceStyles_unstable(state);
8
+ return renderReference_unstable(state);
9
9
  });
10
10
  Reference.displayName = 'Reference';
11
- //# sourceMappingURL=Reference.js.map
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Reference.types.js.map
1
+ export { };
@@ -2,4 +2,3 @@ export { Reference } from './Reference';
2
2
  export { renderReference_unstable } from './renderReference';
3
3
  export { useReference_unstable } from './useReference';
4
4
  export { referenceClassNames, referenceExtraClassNames, useReferenceStyles_unstable } from './useReferenceStyles.styles';
5
- //# sourceMappingURL=index.js.map
@@ -1,19 +1,22 @@
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 { OverflowItem, assertSlots } from '@fluentui/react-components';
3
- export const renderReference_unstable = state => {
4
- assertSlots(state);
5
- const {
6
- id,
7
- shouldUseOverflow
8
- } = state;
9
- const reference = /*#__PURE__*/_jsxs(state.root, {
10
- children: [state.citation && /*#__PURE__*/_jsx(state.citation, {}), state.divider && /*#__PURE__*/_jsx(state.divider, {}), state.content && /*#__PURE__*/_jsxs(state.content, {
11
- children: [state.graphic && /*#__PURE__*/_jsx(state.graphic, {}), state.root.children]
12
- })]
13
- });
14
- return shouldUseOverflow ? /*#__PURE__*/_jsx(OverflowItem, {
15
- id: id,
16
- children: reference
17
- }, id) : reference;
3
+ export const renderReference_unstable = (state)=>{
4
+ assertSlots(state);
5
+ const { id, shouldUseOverflow } = state;
6
+ const reference = /*#__PURE__*/ _jsxs(state.root, {
7
+ children: [
8
+ state.citation && /*#__PURE__*/ _jsx(state.citation, {}),
9
+ state.divider && /*#__PURE__*/ _jsx(state.divider, {}),
10
+ state.content && /*#__PURE__*/ _jsxs(state.content, {
11
+ children: [
12
+ state.graphic && /*#__PURE__*/ _jsx(state.graphic, {}),
13
+ state.root.children
14
+ ]
15
+ })
16
+ ]
17
+ });
18
+ return shouldUseOverflow ? /*#__PURE__*/ _jsx(OverflowItem, {
19
+ id: id,
20
+ children: reference
21
+ }, id) : reference;
18
22
  };
19
- //# sourceMappingURL=renderReference.js.map
@@ -11,64 +11,58 @@ import { useDesignVersion } from '@fluentui-copilot/react-provider';
11
11
  *
12
12
  * @param props - props from this instance of Reference
13
13
  * @param ref - reference to root HTMLElement of Reference
14
- */
15
- export const useReference_unstable = (props, ref) => {
16
- const {
17
- as,
18
- children,
19
- id
20
- } = props;
21
- const designVersion = useDesignVersion(props.designVersion);
22
- const shouldUseOverflow = useReferenceListContext_unstable(ctx => ctx.shouldUseOverflow);
23
- const referenceId = useId('reference-', id);
24
- const elementType = as || (props.href ? 'a' : 'button');
25
- const propsWithAssignedAs = {
26
- type: elementType === 'button' ? 'button' : undefined,
27
- ...props,
28
- as: elementType,
29
- id: referenceId
30
- };
31
- const citation = slot.optional(props.citation, {
32
- elementType: 'span'
33
- });
34
- const graphic = slot.optional(props.graphic, {
35
- elementType: 'span'
36
- });
37
- const content = slot.optional(props.content, {
38
- elementType: 'span',
39
- renderByDefault: graphic !== undefined || !!children
40
- });
41
- const divider = slot.optional(props.divider, {
42
- elementType: 'span',
43
- renderByDefault: citation !== undefined && content !== undefined
44
- });
45
- const state = {
46
- designVersion,
47
- id: referenceId,
48
- shouldUseOverflow,
49
- components: {
50
- root: elementType,
51
- citation: 'span',
52
- divider: 'span',
53
- graphic: 'span',
54
- content: 'span'
55
- },
56
- root: slot.always(getIntrinsicElementProps(elementType, {
57
- ref,
58
- ...propsWithAssignedAs
59
- }), {
60
- elementType
61
- }),
62
- citation,
63
- divider,
64
- content,
65
- graphic
66
- };
67
- if (state.graphic && React.isValidElement(state.graphic.children)) {
68
- state.graphic.children = React.cloneElement(state.graphic.children, {
69
- className: mergeClasses(state.graphic.children.props.className, referenceExtraClassNames.graphicChild)
14
+ */ export const useReference_unstable = (props, ref)=>{
15
+ const { as, children, id } = props;
16
+ const designVersion = useDesignVersion(props.designVersion);
17
+ const shouldUseOverflow = useReferenceListContext_unstable((ctx)=>ctx.shouldUseOverflow);
18
+ const referenceId = useId('reference-', id);
19
+ const elementType = as || (props.href ? 'a' : 'button');
20
+ const propsWithAssignedAs = {
21
+ type: elementType === 'button' ? 'button' : undefined,
22
+ ...props,
23
+ as: elementType,
24
+ id: referenceId
25
+ };
26
+ const citation = slot.optional(props.citation, {
27
+ elementType: 'span'
70
28
  });
71
- }
72
- return state;
29
+ const graphic = slot.optional(props.graphic, {
30
+ elementType: 'span'
31
+ });
32
+ const content = slot.optional(props.content, {
33
+ elementType: 'span',
34
+ renderByDefault: graphic !== undefined || !!children
35
+ });
36
+ const divider = slot.optional(props.divider, {
37
+ elementType: 'span',
38
+ renderByDefault: citation !== undefined && content !== undefined
39
+ });
40
+ const state = {
41
+ designVersion,
42
+ id: referenceId,
43
+ shouldUseOverflow,
44
+ components: {
45
+ root: elementType,
46
+ citation: 'span',
47
+ divider: 'span',
48
+ graphic: 'span',
49
+ content: 'span'
50
+ },
51
+ root: slot.always(getIntrinsicElementProps(elementType, {
52
+ ref,
53
+ ...propsWithAssignedAs
54
+ }), {
55
+ elementType
56
+ }),
57
+ citation,
58
+ divider,
59
+ content,
60
+ graphic
61
+ };
62
+ if (state.graphic && React.isValidElement(state.graphic.children)) {
63
+ state.graphic.children = React.cloneElement(state.graphic.children, {
64
+ className: mergeClasses(state.graphic.children.props.className, referenceExtraClassNames.graphicChild)
65
+ });
66
+ }
67
+ return state;
73
68
  };
74
- //# sourceMappingURL=useReference.js.map
@@ -0,0 +1,110 @@
1
+ import { makeResetStyles, makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';
2
+ import { tokens } from '@fluentui-copilot/tokens';
3
+ export const referenceClassNames = {
4
+ root: 'fai-Reference',
5
+ citation: 'fai-Reference__citation',
6
+ divider: 'fai-Reference__divider',
7
+ graphic: 'fai-Reference__graphic',
8
+ content: 'fai-Reference__content'
9
+ };
10
+ export const referenceExtraClassNames = {
11
+ graphicChild: 'fai-Reference__graphicChild'
12
+ };
13
+ const GRAPHIC_SIZE = '16px';
14
+ const useRootBaseClassName = makeResetStyles({
15
+ alignItems: 'center',
16
+ backgroundColor: tokens.colorNeutralBackground3,
17
+ border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,
18
+ borderRadius: tokens.borderRadiusMedium,
19
+ boxSizing: 'border-box',
20
+ color: tokens.colorNeutralForeground2,
21
+ columnGap: tokens.spacingHorizontalXXS,
22
+ display: 'inline-flex',
23
+ flexShrink: 0,
24
+ justifyContent: 'center',
25
+ maxWidth: '100%',
26
+ minHeight: '24px',
27
+ padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalS}`,
28
+ textDecoration: 'none',
29
+ ':hover': {
30
+ backgroundColor: tokens.colorNeutralBackground3Hover,
31
+ borderColor: tokens.colorNeutralStroke1Hover,
32
+ color: tokens.colorNeutralForeground2Hover,
33
+ [`& .${referenceClassNames.divider}`]: {
34
+ backgroundColor: tokens.colorNeutralStroke1Hover
35
+ }
36
+ },
37
+ ':hover:active': {
38
+ backgroundColor: tokens.colorNeutralBackground3Pressed,
39
+ borderColor: tokens.colorNeutralStroke1Pressed,
40
+ color: tokens.colorNeutralForeground2Pressed,
41
+ [`& .${referenceClassNames.divider}`]: {
42
+ backgroundColor: tokens.colorNeutralStroke1Pressed
43
+ }
44
+ }
45
+ });
46
+ export const useRootStyles = makeStyles({
47
+ overflow: {
48
+ maxWidth: '100%',
49
+ width: '100%'
50
+ }
51
+ });
52
+ const useRootNextStyles = makeStyles({
53
+ root: {
54
+ borderRadius: tokens.borderRadiusXLarge
55
+ }
56
+ });
57
+ const useCitationBaseClassName = makeResetStyles({
58
+ ...typographyStyles.caption2Strong
59
+ });
60
+ const useDividerBaseClassName = makeResetStyles({
61
+ backgroundColor: tokens.colorNeutralStroke2,
62
+ height: '16px',
63
+ margin: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalXS}`,
64
+ width: '1px'
65
+ });
66
+ const useGraphicBaseClassName = makeResetStyles({
67
+ display: 'inline-flex',
68
+ fontSize: GRAPHIC_SIZE,
69
+ height: GRAPHIC_SIZE,
70
+ lineHeight: GRAPHIC_SIZE,
71
+ width: GRAPHIC_SIZE,
72
+ [`> .${referenceExtraClassNames.graphicChild}`]: {
73
+ height: GRAPHIC_SIZE,
74
+ width: GRAPHIC_SIZE
75
+ }
76
+ });
77
+ const useContentBaseClassName = makeResetStyles({
78
+ alignItems: 'center',
79
+ columnGap: tokens.spacingHorizontalSNudge,
80
+ display: 'inline-flex',
81
+ textAlign: 'start',
82
+ wordBreak: 'break-word',
83
+ ...typographyStyles.caption1
84
+ });
85
+ /**
86
+ * Apply styling to the Reference slots based on the state
87
+ */ export const useReferenceStyles_unstable = (state)=>{
88
+ 'use no memo';
89
+ const { designVersion } = state;
90
+ const rootBaseClassName = useRootBaseClassName();
91
+ const rootNextStyles = useRootNextStyles();
92
+ const citationBaseClassName = useCitationBaseClassName();
93
+ const dividerBaseClassName = useDividerBaseClassName();
94
+ const contentBaseClassName = useContentBaseClassName();
95
+ const graphicBaseClassName = useGraphicBaseClassName();
96
+ state.root.className = mergeClasses(referenceClassNames.root, rootBaseClassName, designVersion === 'next' && rootNextStyles.root, state.root.className);
97
+ if (state.citation) {
98
+ state.citation.className = mergeClasses(referenceClassNames.citation, citationBaseClassName, state.citation.className);
99
+ }
100
+ if (state.divider) {
101
+ state.divider.className = mergeClasses(referenceClassNames.divider, dividerBaseClassName, state.divider.className);
102
+ }
103
+ if (state.content) {
104
+ state.content.className = mergeClasses(referenceClassNames.content, contentBaseClassName, state.content.className);
105
+ }
106
+ if (state.graphic) {
107
+ state.graphic.className = mergeClasses(referenceClassNames.graphic, graphicBaseClassName, state.graphic.className);
108
+ }
109
+ return state;
110
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["useReferenceStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { ReferenceSlots, ReferenceState } from './Reference.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const referenceClassNames: SlotClassNames<ReferenceSlots> = {\n root: 'fai-Reference',\n citation: 'fai-Reference__citation',\n divider: 'fai-Reference__divider',\n graphic: 'fai-Reference__graphic',\n content: 'fai-Reference__content',\n};\n\nexport const referenceExtraClassNames = {\n graphicChild: 'fai-Reference__graphicChild',\n};\n\nconst GRAPHIC_SIZE = '16px';\n\nconst useRootBaseClassName = makeResetStyles({\n alignItems: 'center',\n backgroundColor: tokens.colorNeutralBackground3,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,\n borderRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n color: tokens.colorNeutralForeground2,\n columnGap: tokens.spacingHorizontalXXS,\n display: 'inline-flex',\n flexShrink: 0,\n justifyContent: 'center',\n maxWidth: '100%',\n minHeight: '24px',\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalS}`,\n textDecoration: 'none',\n\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground3Hover,\n borderColor: tokens.colorNeutralStroke1Hover,\n color: tokens.colorNeutralForeground2Hover,\n\n [`& .${referenceClassNames.divider}`]: {\n backgroundColor: tokens.colorNeutralStroke1Hover,\n },\n },\n\n ':hover:active': {\n backgroundColor: tokens.colorNeutralBackground3Pressed,\n borderColor: tokens.colorNeutralStroke1Pressed,\n color: tokens.colorNeutralForeground2Pressed,\n\n [`& .${referenceClassNames.divider}`]: {\n backgroundColor: tokens.colorNeutralStroke1Pressed,\n },\n },\n});\n\nexport const useRootStyles = makeStyles({\n overflow: {\n maxWidth: '100%',\n width: '100%',\n },\n});\n\nconst useRootNextStyles = makeStyles({ root: { borderRadius: tokens.borderRadiusXLarge } });\n\nconst useCitationBaseClassName = makeResetStyles({\n ...typographyStyles.caption2Strong,\n});\n\nconst useDividerBaseClassName = makeResetStyles({\n backgroundColor: tokens.colorNeutralStroke2,\n height: '16px',\n margin: `${tokens.spacingVerticalNone} ${tokens.spacingHorizontalXS}`,\n width: '1px',\n});\n\nconst useGraphicBaseClassName = makeResetStyles({\n display: 'inline-flex',\n fontSize: GRAPHIC_SIZE,\n height: GRAPHIC_SIZE,\n lineHeight: GRAPHIC_SIZE,\n width: GRAPHIC_SIZE,\n\n [`> .${referenceExtraClassNames.graphicChild}`]: {\n height: GRAPHIC_SIZE,\n width: GRAPHIC_SIZE,\n },\n});\n\nconst useContentBaseClassName = makeResetStyles({\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalSNudge,\n display: 'inline-flex',\n textAlign: 'start',\n wordBreak: 'break-word',\n ...typographyStyles.caption1,\n});\n\n/**\n * Apply styling to the Reference slots based on the state\n */\nexport const useReferenceStyles_unstable = (state: ReferenceState): ReferenceState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootBaseClassName = useRootBaseClassName();\n const rootNextStyles = useRootNextStyles();\n const citationBaseClassName = useCitationBaseClassName();\n const dividerBaseClassName = useDividerBaseClassName();\n const contentBaseClassName = useContentBaseClassName();\n const graphicBaseClassName = useGraphicBaseClassName();\n\n state.root.className = mergeClasses(\n referenceClassNames.root,\n rootBaseClassName,\n designVersion === 'next' && rootNextStyles.root,\n state.root.className,\n );\n\n if (state.citation) {\n state.citation.className = mergeClasses(\n referenceClassNames.citation,\n citationBaseClassName,\n state.citation.className,\n );\n }\n\n if (state.divider) {\n state.divider.className = mergeClasses(referenceClassNames.divider, dividerBaseClassName, state.divider.className);\n }\n\n if (state.content) {\n state.content.className = mergeClasses(referenceClassNames.content, contentBaseClassName, state.content.className);\n }\n\n if (state.graphic) {\n state.graphic.className = mergeClasses(referenceClassNames.graphic, graphicBaseClassName, state.graphic.className);\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","typographyStyles","tokens","referenceClassNames","root","citation","divider","graphic","content","referenceExtraClassNames","graphicChild","GRAPHIC_SIZE","useRootBaseClassName","alignItems","backgroundColor","colorNeutralBackground3","border","strokeWidthThin","colorNeutralStroke2","borderRadius","borderRadiusMedium","boxSizing","color","colorNeutralForeground2","columnGap","spacingHorizontalXXS","display","flexShrink","justifyContent","maxWidth","minHeight","padding","spacingVerticalXXS","spacingHorizontalS","textDecoration","colorNeutralBackground3Hover","borderColor","colorNeutralStroke1Hover","colorNeutralForeground2Hover","colorNeutralBackground3Pressed","colorNeutralStroke1Pressed","colorNeutralForeground2Pressed","useRootStyles","overflow","width","useRootNextStyles","borderRadiusXLarge","useCitationBaseClassName","caption2Strong","useDividerBaseClassName","height","margin","spacingVerticalNone","spacingHorizontalXS","useGraphicBaseClassName","fontSize","lineHeight","useContentBaseClassName","spacingHorizontalSNudge","textAlign","wordBreak","caption1","useReferenceStyles_unstable","state","designVersion","rootBaseClassName","rootNextStyles","citationBaseClassName","dividerBaseClassName","contentBaseClassName","graphicBaseClassName","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"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"}
@@ -3,11 +3,10 @@ import { renderReferenceList_unstable } from './renderReferenceList';
3
3
  import { useReferenceList_unstable } from './useReferenceList';
4
4
  import { useReferenceListStyles_unstable } from './useReferenceListStyles.styles';
5
5
  import { useReferenceListContextValues_unstable } from './useReferenceListContextValues';
6
- export const ReferenceList = /*#__PURE__*/React.forwardRef((props, ref) => {
7
- const state = useReferenceList_unstable(props, ref);
8
- const referenceListContextValues = useReferenceListContextValues_unstable(state);
9
- useReferenceListStyles_unstable(state);
10
- return renderReferenceList_unstable(state, referenceListContextValues);
6
+ export const ReferenceList = /*#__PURE__*/ React.forwardRef((props, ref)=>{
7
+ const state = useReferenceList_unstable(props, ref);
8
+ const referenceListContextValues = useReferenceListContextValues_unstable(state);
9
+ useReferenceListStyles_unstable(state);
10
+ return renderReferenceList_unstable(state, referenceListContextValues);
11
11
  });
12
12
  ReferenceList.displayName = 'ReferenceList';
13
- //# sourceMappingURL=ReferenceList.js.map
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ReferenceList.types.js.map
1
+ export { };
@@ -2,4 +2,3 @@ export { ReferenceList } from './ReferenceList';
2
2
  export { renderReferenceList_unstable } from './renderReferenceList';
3
3
  export { useReferenceList_unstable } from './useReferenceList';
4
4
  export { referenceListClassNames, useReferenceListStyles_unstable } from './useReferenceListStyles.styles';
5
- //# sourceMappingURL=index.js.map
@@ -1,22 +1,22 @@
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 { ReferenceListContextProvider } from '../../../contexts/reference-v2/referenceListContext';
4
4
  /**
5
5
  * Render the final JSX of ReferenceList
6
- */
7
- export const renderReferenceList_unstable = (state, contextValues) => {
8
- assertSlots(state);
9
- const {
10
- minVisibleReferences
11
- } = state;
12
- return /*#__PURE__*/_jsx(ReferenceListContextProvider, {
13
- value: contextValues.referenceList,
14
- children: /*#__PURE__*/_jsx(Overflow, {
15
- minimumVisible: minVisibleReferences,
16
- children: /*#__PURE__*/_jsxs(state.root, {
17
- children: [/*#__PURE__*/_jsx(state.arrowableRegion, {}), state.showMoreButton && /*#__PURE__*/_jsx(state.showMoreButton, {}), state.showLessButton && /*#__PURE__*/_jsx(state.showLessButton, {})]
18
- })
19
- })
20
- });
6
+ */ export const renderReferenceList_unstable = (state, contextValues)=>{
7
+ assertSlots(state);
8
+ const { minVisibleReferences } = state;
9
+ return /*#__PURE__*/ _jsx(ReferenceListContextProvider, {
10
+ value: contextValues.referenceList,
11
+ children: /*#__PURE__*/ _jsx(Overflow, {
12
+ minimumVisible: minVisibleReferences,
13
+ children: /*#__PURE__*/ _jsxs(state.root, {
14
+ children: [
15
+ /*#__PURE__*/ _jsx(state.arrowableRegion, {}),
16
+ state.showMoreButton && /*#__PURE__*/ _jsx(state.showMoreButton, {}),
17
+ state.showLessButton && /*#__PURE__*/ _jsx(state.showLessButton, {})
18
+ ]
19
+ })
20
+ })
21
+ });
21
22
  };
22
- //# sourceMappingURL=renderReferenceList.js.map