@fluentui-copilot/react-reference 0.0.0-nightly-20250708-1433-52f2b6b1.1 → 0.0.0-nightly-20250709-0404-150e065c.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.
- package/CHANGELOG.json +3 -3
- package/CHANGELOG.md +4 -4
- package/lib/Citation.js +1 -0
- package/lib/Reference.js +1 -0
- package/lib/ReferenceList.js +1 -0
- package/lib/ReferenceOverflowButton.js +1 -0
- package/lib/components/Citation/Citation.js +6 -5
- package/lib/components/Citation/Citation.types.js +2 -1
- package/lib/components/Citation/index.js +1 -0
- package/lib/components/Citation/renderCitation.js +6 -4
- package/lib/components/Citation/useCitation.js +28 -22
- package/lib/components/Reference/Reference.js +5 -4
- package/lib/components/Reference/Reference.types.js +2 -1
- package/lib/components/Reference/index.js +1 -0
- package/lib/components/Reference/renderReference.js +17 -20
- package/lib/components/Reference/useReference.js +59 -53
- package/lib/components/ReferenceList/ReferenceList.js +6 -5
- package/lib/components/ReferenceList/ReferenceList.types.js +2 -1
- package/lib/components/ReferenceList/index.js +1 -0
- package/lib/components/ReferenceList/renderReferenceList.js +17 -17
- package/lib/components/ReferenceList/useReferenceList.js +80 -70
- package/lib/components/ReferenceList/useReferenceListContextValues.js +21 -13
- package/lib/components/ReferenceOverflowButton/ReferenceOverflowButton.js +5 -4
- package/lib/components/ReferenceOverflowButton/ReferenceOverflowButton.types.js +2 -1
- package/lib/components/ReferenceOverflowButton/index.js +1 -0
- package/lib/components/ReferenceOverflowButton/renderReferenceOverflowButton.js +14 -9
- package/lib/components/ReferenceOverflowButton/useReferenceOverflowButton.js +77 -77
- package/lib/contexts/index.js +1 -0
- package/lib/contexts/referenceListContext.js +12 -11
- package/lib/index.js +25 -12
- package/lib/utilities/generateReferenceCitationPreview.js +86 -75
- package/lib/utilities/index.js +1 -0
- package/lib/utilities/useReferenceCitationPreview.js +5 -5
- package/lib-commonjs/Citation.js +1 -0
- package/lib-commonjs/Reference.js +1 -0
- package/lib-commonjs/ReferenceList.js +1 -0
- package/lib-commonjs/ReferenceOverflowButton.js +1 -0
- package/lib-commonjs/components/Citation/Citation.js +1 -1
- package/lib-commonjs/components/Citation/Citation.js.map +1 -1
- package/lib-commonjs/components/Citation/Citation.types.js +1 -0
- package/lib-commonjs/components/Citation/index.js +1 -0
- package/lib-commonjs/components/Citation/renderCitation.js +1 -1
- package/lib-commonjs/components/Citation/renderCitation.js.map +1 -1
- package/lib-commonjs/components/Citation/useCitation.js +1 -1
- package/lib-commonjs/components/Citation/useCitation.js.map +1 -1
- package/lib-commonjs/components/Reference/Reference.js +1 -1
- package/lib-commonjs/components/Reference/Reference.js.map +1 -1
- package/lib-commonjs/components/Reference/Reference.types.js +1 -0
- package/lib-commonjs/components/Reference/index.js +1 -0
- package/lib-commonjs/components/Reference/renderReference.js +1 -1
- package/lib-commonjs/components/Reference/renderReference.js.map +1 -1
- package/lib-commonjs/components/Reference/useReference.js +1 -1
- package/lib-commonjs/components/Reference/useReference.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/ReferenceList.js +1 -1
- package/lib-commonjs/components/ReferenceList/ReferenceList.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/ReferenceList.types.js +1 -0
- package/lib-commonjs/components/ReferenceList/index.js +1 -0
- package/lib-commonjs/components/ReferenceList/renderReferenceList.js +1 -1
- package/lib-commonjs/components/ReferenceList/renderReferenceList.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceList.js +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceList.js.map +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceListContextValues.js +1 -1
- package/lib-commonjs/components/ReferenceList/useReferenceListContextValues.js.map +1 -1
- package/lib-commonjs/components/ReferenceOverflowButton/ReferenceOverflowButton.js +1 -1
- package/lib-commonjs/components/ReferenceOverflowButton/ReferenceOverflowButton.js.map +1 -1
- package/lib-commonjs/components/ReferenceOverflowButton/ReferenceOverflowButton.types.js +1 -0
- package/lib-commonjs/components/ReferenceOverflowButton/index.js +1 -0
- package/lib-commonjs/components/ReferenceOverflowButton/renderReferenceOverflowButton.js +1 -1
- package/lib-commonjs/components/ReferenceOverflowButton/renderReferenceOverflowButton.js.map +1 -1
- package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButton.js +1 -1
- package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButton.js.map +1 -1
- package/lib-commonjs/contexts/index.js +1 -0
- package/lib-commonjs/contexts/referenceListContext.js +1 -1
- package/lib-commonjs/contexts/referenceListContext.js.map +1 -1
- package/lib-commonjs/index.js +1 -0
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utilities/generateReferenceCitationPreview.js +1 -1
- package/lib-commonjs/utilities/generateReferenceCitationPreview.js.map +1 -1
- package/lib-commonjs/utilities/index.js +1 -0
- package/lib-commonjs/utilities/useReferenceCitationPreview.js +1 -1
- package/lib-commonjs/utilities/useReferenceCitationPreview.js.map +1 -1
- package/package.json +6 -6
- package/lib/components/Citation/useCitationStyles.styles.raw.js +0 -69
- package/lib/components/Citation/useCitationStyles.styles.raw.js.map +0 -1
- package/lib/components/Reference/useReferenceStyles.styles.raw.js +0 -110
- package/lib/components/Reference/useReferenceStyles.styles.raw.js.map +0 -1
- package/lib/components/ReferenceList/useReferenceListStyles.styles.raw.js +0 -47
- package/lib/components/ReferenceList/useReferenceListStyles.styles.raw.js.map +0 -1
- package/lib/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +0 -45
- package/lib/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js +0 -85
- package/lib-commonjs/components/Citation/useCitationStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js +0 -132
- package/lib-commonjs/components/Reference/useReferenceStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js +0 -63
- package/lib-commonjs/components/ReferenceList/useReferenceListStyles.styles.raw.js.map +0 -1
- package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js +0 -61
- package/lib-commonjs/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useCitationStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses, shorthands } from '@fluentui/react-components';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\nimport type { CitationSlots, CitationState } from './Citation.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const citationClassNames: SlotClassNames<CitationSlots> = {\n root: 'fai-Citation',\n};\n\nconst useCitationBaseClassName = makeResetStyles({\n display: 'inline-flex',\n justifyContent: 'center',\n boxSizing: 'border-box',\n alignItems: 'center',\n cursor: 'pointer',\n ...typographyStyles.caption2Strong,\n\n backgroundColor: tokens.colorNeutralBackground3,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,\n color: tokens.colorNeutralForeground2,\n\n minWidth: '14px',\n height: '14px',\n verticalAlign: `calc((${typographyStyles.caption2Strong.lineHeight} - ${typographyStyles.caption2Strong.fontSize}) / 2)`,\n paddingInline: tokens.spacingHorizontalXXS,\n\n borderRadius: tokens.borderRadiusMedium,\n\n textDecoration: 'none',\n\n marginLeft: tokens.spacingHorizontalXXS,\n marginRight: tokens.spacingHorizontalXXS,\n\n ':hover': {\n cursor: 'pointer',\n color: tokens.colorBrandForeground2Hover,\n borderColor: tokens.colorBrandStroke2Hover,\n backgroundColor: tokens.colorBrandBackground2Hover,\n },\n\n ':hover:active': {\n cursor: 'pointer',\n color: tokens.colorBrandForeground2Pressed,\n borderColor: tokens.colorBrandStroke2Pressed,\n backgroundColor: tokens.colorBrandBackground2Pressed,\n },\n});\n\nconst useCitationRootStyles = makeStyles({\n isBlock: {\n display: 'flex',\n marginLeft: 0,\n marginRight: 0,\n },\n isPopoverLocked: {\n color: tokens.colorBrandForeground2Pressed,\n ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),\n backgroundColor: tokens.colorBrandBackground2,\n ':hover': {\n color: tokens.colorBrandForeground2Pressed,\n ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),\n backgroundColor: tokens.colorBrandBackground2,\n },\n },\n});\n\nconst useNextStyles = makeStyles({ root: { borderRadius: tokens.borderRadiusXLarge } });\n\n/**\n * Apply styling to the Citation slots based on the state\n */\nexport const useCitationStyles_unstable = (state: CitationState): CitationState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootBaseClassName = useCitationBaseClassName();\n const rootStyles = useCitationRootStyles();\n const nextStyles = useNextStyles();\n\n state.root.className = mergeClasses(\n citationClassNames.root,\n state.isPopoverLocked && rootStyles.isPopoverLocked,\n state.block && rootStyles.isBlock,\n rootBaseClassName,\n designVersion === 'next' && nextStyles.root,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","shorthands","tokens","typographyStyles","citationClassNames","root","useCitationBaseClassName","display","justifyContent","boxSizing","alignItems","cursor","caption2Strong","backgroundColor","colorNeutralBackground3","border","strokeWidthThin","colorNeutralStroke2","color","colorNeutralForeground2","minWidth","height","verticalAlign","lineHeight","fontSize","paddingInline","spacingHorizontalXXS","borderRadius","borderRadiusMedium","textDecoration","marginLeft","marginRight","colorBrandForeground2Hover","borderColor","colorBrandStroke2Hover","colorBrandBackground2Hover","colorBrandForeground2Pressed","colorBrandStroke2Pressed","colorBrandBackground2Pressed","useCitationRootStyles","isBlock","isPopoverLocked","colorBrandBackground2","useNextStyles","borderRadiusXLarge","useCitationStyles_unstable","state","designVersion","rootBaseClassName","rootStyles","nextStyles","className","block"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAE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BAAqB;QAC7C,UAAU;YACRxB,OAAOhB,OAAOkC,4BAA4B;YAC1C,GAAGnC,WAAWgC,WAAW,CAAC/B,OAAOmC,wBAAwB,CAAC;YAC1DxB,iBAAiBX,OAAOwC,qBAAqB;QAC/C;IACF;AACF;AAEA,MAAMC,gBAAgB5C,WAAW;IAAEM,MAAM;QAAEsB,cAAczB,OAAO0C,kBAAkB;IAAC;AAAE;AAErF;;CAEC,GACD,OAAO,MAAMC,6BAA6B,CAACC;IACzC;IAEA,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAE1B,MAAME,oBAAoB1C;IAC1B,MAAM2C,aAAaV;IACnB,MAAMW,aAAaP;IAEnBG,MAAMzC,IAAI,CAAC8C,SAAS,GAAGnD,aACrBI,mBAAmBC,IAAI,EACvByC,MAAML,eAAe,IAAIQ,WAAWR,eAAe,EACnDK,MAAMM,KAAK,IAAIH,WAAWT,OAAO,EACjCQ,mBACAD,kBAAkB,UAAUG,WAAW7C,IAAI,EAC3CyC,MAAMzC,IAAI,CAAC8C,SAAS;IAGtB,OAAOL;AACT,EAAE"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { makeResetStyles, makeStyles, mergeClasses } from '@fluentui/react-components';
|
|
2
|
-
import { tokens, typographyStyles } 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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useReferenceStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens, typographyStyles } 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","tokens","typographyStyles","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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QAClB0D,MAAM1D,QAAQ,CAACkE,SAAS,GAAGvE,aACzBG,oBAAoBE,QAAQ,EAC5B8D,uBACAJ,MAAM1D,QAAQ,CAACkE,SAAS;IAE5B;IAEA,IAAIR,MAAMzD,OAAO,EAAE;QACjByD,MAAMzD,OAAO,CAACiE,SAAS,GAAGvE,aAAaG,oBAAoBG,OAAO,EAAE8D,sBAAsBL,MAAMzD,OAAO,CAACiE,SAAS;IACnH;IAEA,IAAIR,MAAMvD,OAAO,EAAE;QACjBuD,MAAMvD,OAAO,CAAC+D,SAAS,GAAGvE,aAAaG,oBAAoBK,OAAO,EAAE6D,sBAAsBN,MAAMvD,OAAO,CAAC+D,SAAS;IACnH;IAEA,IAAIR,MAAMxD,OAAO,EAAE;QACjBwD,MAAMxD,OAAO,CAACgE,SAAS,GAAGvE,aAAaG,oBAAoBI,OAAO,EAAE+D,sBAAsBP,MAAMxD,OAAO,CAACgE,SAAS;IACnH;IAEA,OAAOR;AACT,EAAE"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { makeResetStyles, makeStyles, mergeClasses } from '@fluentui/react-components';
|
|
2
|
-
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
|
-
export const referenceListClassNames = {
|
|
4
|
-
root: 'fai-ReferenceList',
|
|
5
|
-
arrowableRegion: 'fai-ReferenceList__arrowableRegion',
|
|
6
|
-
showMoreButton: 'fai-ReferenceList__showMoreButton',
|
|
7
|
-
showLessButton: 'fai-ReferenceList__showLessButton'
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Styles for the root slot
|
|
11
|
-
*/ const useRootBaseClassName = makeResetStyles({
|
|
12
|
-
display: 'flex',
|
|
13
|
-
flexDirection: 'row',
|
|
14
|
-
gap: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`
|
|
15
|
-
});
|
|
16
|
-
const useRootStyles = makeStyles({
|
|
17
|
-
referencesExpanded: {
|
|
18
|
-
flexWrap: 'wrap'
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
const useArrowableRegionBaseClassName = makeResetStyles({
|
|
22
|
-
display: 'contents',
|
|
23
|
-
maxWidth: '100%'
|
|
24
|
-
});
|
|
25
|
-
const useOverflowButtonBaseClassName = makeResetStyles({
|
|
26
|
-
display: 'inline-flex',
|
|
27
|
-
flexShrink: 0
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* Apply styling to the ReferenceList slots based on the state
|
|
31
|
-
*/ export const useReferenceListStyles_unstable = (state)=>{
|
|
32
|
-
'use no memo';
|
|
33
|
-
const { areReferencesExpanded, shouldUseOverflow } = state;
|
|
34
|
-
const rootBaseClassName = useRootBaseClassName();
|
|
35
|
-
const arrowableRegionBaseClassName = useArrowableRegionBaseClassName();
|
|
36
|
-
const overflowButtonBaseClassName = useOverflowButtonBaseClassName();
|
|
37
|
-
const rootStyles = useRootStyles();
|
|
38
|
-
state.root.className = mergeClasses(referenceListClassNames.root, rootBaseClassName, (areReferencesExpanded || !shouldUseOverflow) && rootStyles.referencesExpanded, state.root.className);
|
|
39
|
-
state.arrowableRegion.className = mergeClasses(referenceListClassNames.arrowableRegion, arrowableRegionBaseClassName, state.arrowableRegion.className);
|
|
40
|
-
if (state.showMoreButton) {
|
|
41
|
-
state.showMoreButton.className = mergeClasses(referenceListClassNames.showMoreButton, overflowButtonBaseClassName, state.showMoreButton.className);
|
|
42
|
-
}
|
|
43
|
-
if (state.showLessButton) {
|
|
44
|
-
state.showLessButton.className = mergeClasses(referenceListClassNames.showLessButton, overflowButtonBaseClassName, state.showLessButton.className);
|
|
45
|
-
}
|
|
46
|
-
return state;
|
|
47
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useReferenceListStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, 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\nexport const referenceListClassNames: SlotClassNames<ReferenceListSlots> = {\n root: 'fai-ReferenceList',\n arrowableRegion: 'fai-ReferenceList__arrowableRegion',\n showMoreButton: 'fai-ReferenceList__showMoreButton',\n showLessButton: 'fai-ReferenceList__showLessButton',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseClassName = makeResetStyles({\n display: 'flex',\n flexDirection: 'row',\n gap: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n});\n\nconst useRootStyles = makeStyles({\n referencesExpanded: {\n flexWrap: 'wrap',\n },\n});\n\nconst useArrowableRegionBaseClassName = makeResetStyles({\n display: 'contents',\n maxWidth: '100%',\n});\n\nconst useOverflowButtonBaseClassName = makeResetStyles({\n display: 'inline-flex',\n flexShrink: 0,\n});\n\n/**\n * Apply styling to the ReferenceList slots based on the state\n */\nexport const useReferenceListStyles_unstable = (state: ReferenceListState): ReferenceListState => {\n 'use no memo';\n\n const { areReferencesExpanded, shouldUseOverflow } = state;\n\n const rootBaseClassName = useRootBaseClassName();\n const arrowableRegionBaseClassName = useArrowableRegionBaseClassName();\n const overflowButtonBaseClassName = useOverflowButtonBaseClassName();\n const rootStyles = useRootStyles();\n\n state.root.className = mergeClasses(\n referenceListClassNames.root,\n rootBaseClassName,\n (areReferencesExpanded || !shouldUseOverflow) && rootStyles.referencesExpanded,\n state.root.className,\n );\n\n state.arrowableRegion.className = mergeClasses(\n referenceListClassNames.arrowableRegion,\n arrowableRegionBaseClassName,\n state.arrowableRegion.className,\n );\n\n if (state.showMoreButton) {\n state.showMoreButton.className = mergeClasses(\n referenceListClassNames.showMoreButton,\n overflowButtonBaseClassName,\n state.showMoreButton.className,\n );\n }\n\n if (state.showLessButton) {\n state.showLessButton.className = mergeClasses(\n referenceListClassNames.showLessButton,\n overflowButtonBaseClassName,\n state.showLessButton.className,\n );\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","referenceListClassNames","root","arrowableRegion","showMoreButton","showLessButton","useRootBaseClassName","display","flexDirection","gap","spacingVerticalXS","spacingHorizontalXS","useRootStyles","referencesExpanded","flexWrap","useArrowableRegionBaseClassName","maxWidth","useOverflowButtonBaseClassName","flexShrink","useReferenceListStyles_unstable","state","areReferencesExpanded","shouldUseOverflow","rootBaseClassName","arrowableRegionBaseClassName","overflowButtonBaseClassName","rootStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,UAAU,EAAEC,YAAY,QAAQ,6BAA6B;AACvF,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,0BAA8D;IACzEC,MAAM;IACNC,iBAAiB;IACjBC,gBAAgB;IAChBC,gBAAgB;AAClB,EAAE;AAEF;;CAEC,GACD,MAAMC,uBAAuBT,gBAAgB;IAC3CU,SAAS;IACTC,eAAe;IACfC,KAAK,CAAC,EAAET,OAAOU,iBAAiB,CAAC,CAAC,EAAEV,OAAOW,mBAAmB,CAAC,CAAC;AAClE;AAEA,MAAMC,gBAAgBd,WAAW;IAC/Be,oBAAoB;QAClBC,UAAU;IACZ;AACF;AAEA,MAAMC,kCAAkClB,gBAAgB;IACtDU,SAAS;IACTS,UAAU;AACZ;AAEA,MAAMC,iCAAiCpB,gBAAgB;IACrDU,SAAS;IACTW,YAAY;AACd;AAEA;;CAEC,GACD,OAAO,MAAMC,kCAAkC,CAACC;IAC9C;IAEA,MAAM,EAAEC,qBAAqB,EAAEC,iBAAiB,EAAE,GAAGF;IAErD,MAAMG,oBAAoBjB;IAC1B,MAAMkB,+BAA+BT;IACrC,MAAMU,8BAA8BR;IACpC,MAAMS,aAAad;IAEnBQ,MAAMlB,IAAI,CAACyB,SAAS,GAAG5B,aACrBE,wBAAwBC,IAAI,EAC5BqB,mBACA,AAACF,CAAAA,yBAAyB,CAACC,iBAAgB,KAAMI,WAAWb,kBAAkB,EAC9EO,MAAMlB,IAAI,CAACyB,SAAS;IAGtBP,MAAMjB,eAAe,CAACwB,SAAS,GAAG5B,aAChCE,wBAAwBE,eAAe,EACvCqB,8BACAJ,MAAMjB,eAAe,CAACwB,SAAS;IAGjC,IAAIP,MAAMhB,cAAc,EAAE;QACxBgB,MAAMhB,cAAc,CAACuB,SAAS,GAAG5B,aAC/BE,wBAAwBG,cAAc,EACtCqB,6BACAL,MAAMhB,cAAc,CAACuB,SAAS;IAElC;IAEA,IAAIP,MAAMf,cAAc,EAAE;QACxBe,MAAMf,cAAc,CAACsB,SAAS,GAAG5B,aAC/BE,wBAAwBI,cAAc,EACtCoB,6BACAL,MAAMf,cAAc,CAACsB,SAAS;IAElC;IAEA,OAAOP;AACT,EAAE"}
|
package/lib/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { makeResetStyles, makeStyles, mergeClasses } from '@fluentui/react-components';
|
|
2
|
-
import { tokens, typographyStyles } from '@fluentui-copilot/tokens';
|
|
3
|
-
export const referenceOverflowButtonClassNames = {
|
|
4
|
-
root: 'fai-ReferenceOverflowButton'
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* Styles for the root slot
|
|
8
|
-
*/ const useRootBaseClassName = makeResetStyles({
|
|
9
|
-
alignItems: 'center',
|
|
10
|
-
backgroundColor: tokens.colorNeutralBackground3,
|
|
11
|
-
border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,
|
|
12
|
-
borderRadius: tokens.borderRadiusMedium,
|
|
13
|
-
color: tokens.colorNeutralForeground2,
|
|
14
|
-
cursor: 'pointer',
|
|
15
|
-
display: 'inline-flex',
|
|
16
|
-
justifyContent: 'center',
|
|
17
|
-
minHeight: '24px',
|
|
18
|
-
padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalS}`,
|
|
19
|
-
...typographyStyles.caption1,
|
|
20
|
-
':hover': {
|
|
21
|
-
backgroundColor: tokens.colorNeutralBackground3Hover,
|
|
22
|
-
borderColor: tokens.colorNeutralStroke1Hover,
|
|
23
|
-
color: tokens.colorNeutralForeground2Hover
|
|
24
|
-
},
|
|
25
|
-
':hover:active': {
|
|
26
|
-
backgroundColor: tokens.colorNeutralBackground3Pressed,
|
|
27
|
-
borderColor: tokens.colorNeutralStroke1Pressed,
|
|
28
|
-
color: tokens.colorNeutralForeground2Pressed
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const useNextStyles = makeStyles({
|
|
32
|
-
root: {
|
|
33
|
-
borderRadius: tokens.borderRadiusXLarge
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
/**
|
|
37
|
-
* Apply styling to the ReferenceOverflowButton slots based on the state
|
|
38
|
-
*/ export const useReferenceOverflowButtonStyles_unstable = (state)=>{
|
|
39
|
-
'use no memo';
|
|
40
|
-
const { designVersion } = state;
|
|
41
|
-
const rootBaseClassName = useRootBaseClassName();
|
|
42
|
-
const nextStyles = useNextStyles();
|
|
43
|
-
state.root.className = mergeClasses(referenceOverflowButtonClassNames.root, rootBaseClassName, designVersion === 'next' && nextStyles.root, state.root.className);
|
|
44
|
-
return state;
|
|
45
|
-
};
|
package/lib/components/ReferenceOverflowButton/useReferenceOverflowButtonStyles.styles.raw.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useReferenceOverflowButtonStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\nimport type { ReferenceOverflowButtonSlots, ReferenceOverflowButtonState } from './ReferenceOverflowButton.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const referenceOverflowButtonClassNames: SlotClassNames<ReferenceOverflowButtonSlots> = {\n root: 'fai-ReferenceOverflowButton',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseClassName = makeResetStyles({\n alignItems: 'center',\n backgroundColor: tokens.colorNeutralBackground3,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,\n borderRadius: tokens.borderRadiusMedium,\n color: tokens.colorNeutralForeground2,\n cursor: 'pointer',\n display: 'inline-flex',\n justifyContent: 'center',\n minHeight: '24px',\n padding: `${tokens.spacingVerticalXXS} ${tokens.spacingHorizontalS}`,\n ...typographyStyles.caption1,\n\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground3Hover,\n borderColor: tokens.colorNeutralStroke1Hover,\n color: tokens.colorNeutralForeground2Hover,\n },\n\n ':hover:active': {\n backgroundColor: tokens.colorNeutralBackground3Pressed,\n borderColor: tokens.colorNeutralStroke1Pressed,\n color: tokens.colorNeutralForeground2Pressed,\n },\n});\n\nconst useNextStyles = makeStyles({ root: { borderRadius: tokens.borderRadiusXLarge } });\n\n/**\n * Apply styling to the ReferenceOverflowButton slots based on the state\n */\nexport const useReferenceOverflowButtonStyles_unstable = (\n state: ReferenceOverflowButtonState,\n): ReferenceOverflowButtonState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootBaseClassName = useRootBaseClassName();\n const nextStyles = useNextStyles();\n\n state.root.className = mergeClasses(\n referenceOverflowButtonClassNames.root,\n rootBaseClassName,\n designVersion === 'next' && nextStyles.root,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","tokens","typographyStyles","referenceOverflowButtonClassNames","root","useRootBaseClassName","alignItems","backgroundColor","colorNeutralBackground3","border","strokeWidthThin","colorNeutralStroke2","borderRadius","borderRadiusMedium","color","colorNeutralForeground2","cursor","display","justifyContent","minHeight","padding","spacingVerticalXXS","spacingHorizontalS","caption1","colorNeutralBackground3Hover","borderColor","colorNeutralStroke1Hover","colorNeutralForeground2Hover","colorNeutralBackground3Pressed","colorNeutralStroke1Pressed","colorNeutralForeground2Pressed","useNextStyles","borderRadiusXLarge","useReferenceOverflowButtonStyles_unstable","state","designVersion","rootBaseClassName","nextStyles","className"],"rangeMappings":";;;;;;;;;;;;;;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,CAACkC,SAAS;IAGtB,OAAOJ;AACT,EAAE"}
|
|
@@ -1,85 +0,0 @@
|
|
|
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
|
-
citationClassNames: function() {
|
|
13
|
-
return citationClassNames;
|
|
14
|
-
},
|
|
15
|
-
useCitationStyles_unstable: function() {
|
|
16
|
-
return useCitationStyles_unstable;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
-
const _tokens = require("@fluentui-copilot/tokens");
|
|
21
|
-
const citationClassNames = {
|
|
22
|
-
root: 'fai-Citation'
|
|
23
|
-
};
|
|
24
|
-
const useCitationBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
25
|
-
display: 'inline-flex',
|
|
26
|
-
justifyContent: 'center',
|
|
27
|
-
boxSizing: 'border-box',
|
|
28
|
-
alignItems: 'center',
|
|
29
|
-
cursor: 'pointer',
|
|
30
|
-
..._tokens.typographyStyles.caption2Strong,
|
|
31
|
-
backgroundColor: _tokens.tokens.colorNeutralBackground3,
|
|
32
|
-
border: `${_tokens.tokens.strokeWidthThin} solid ${_tokens.tokens.colorNeutralStroke2}`,
|
|
33
|
-
color: _tokens.tokens.colorNeutralForeground2,
|
|
34
|
-
minWidth: '14px',
|
|
35
|
-
height: '14px',
|
|
36
|
-
verticalAlign: `calc((${_tokens.typographyStyles.caption2Strong.lineHeight} - ${_tokens.typographyStyles.caption2Strong.fontSize}) / 2)`,
|
|
37
|
-
paddingInline: _tokens.tokens.spacingHorizontalXXS,
|
|
38
|
-
borderRadius: _tokens.tokens.borderRadiusMedium,
|
|
39
|
-
textDecoration: 'none',
|
|
40
|
-
marginLeft: _tokens.tokens.spacingHorizontalXXS,
|
|
41
|
-
marginRight: _tokens.tokens.spacingHorizontalXXS,
|
|
42
|
-
':hover': {
|
|
43
|
-
cursor: 'pointer',
|
|
44
|
-
color: _tokens.tokens.colorBrandForeground2Hover,
|
|
45
|
-
borderColor: _tokens.tokens.colorBrandStroke2Hover,
|
|
46
|
-
backgroundColor: _tokens.tokens.colorBrandBackground2Hover
|
|
47
|
-
},
|
|
48
|
-
':hover:active': {
|
|
49
|
-
cursor: 'pointer',
|
|
50
|
-
color: _tokens.tokens.colorBrandForeground2Pressed,
|
|
51
|
-
borderColor: _tokens.tokens.colorBrandStroke2Pressed,
|
|
52
|
-
backgroundColor: _tokens.tokens.colorBrandBackground2Pressed
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
const useCitationRootStyles = (0, _reactcomponents.makeStyles)({
|
|
56
|
-
isBlock: {
|
|
57
|
-
display: 'flex',
|
|
58
|
-
marginLeft: 0,
|
|
59
|
-
marginRight: 0
|
|
60
|
-
},
|
|
61
|
-
isPopoverLocked: {
|
|
62
|
-
color: _tokens.tokens.colorBrandForeground2Pressed,
|
|
63
|
-
..._reactcomponents.shorthands.borderColor(_tokens.tokens.colorBrandStroke2Pressed),
|
|
64
|
-
backgroundColor: _tokens.tokens.colorBrandBackground2,
|
|
65
|
-
':hover': {
|
|
66
|
-
color: _tokens.tokens.colorBrandForeground2Pressed,
|
|
67
|
-
..._reactcomponents.shorthands.borderColor(_tokens.tokens.colorBrandStroke2Pressed),
|
|
68
|
-
backgroundColor: _tokens.tokens.colorBrandBackground2
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
const useNextStyles = (0, _reactcomponents.makeStyles)({
|
|
73
|
-
root: {
|
|
74
|
-
borderRadius: _tokens.tokens.borderRadiusXLarge
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
const useCitationStyles_unstable = (state)=>{
|
|
78
|
-
'use no memo';
|
|
79
|
-
const { designVersion } = state;
|
|
80
|
-
const rootBaseClassName = useCitationBaseClassName();
|
|
81
|
-
const rootStyles = useCitationRootStyles();
|
|
82
|
-
const nextStyles = useNextStyles();
|
|
83
|
-
state.root.className = (0, _reactcomponents.mergeClasses)(citationClassNames.root, state.isPopoverLocked && rootStyles.isPopoverLocked, state.block && rootStyles.isBlock, rootBaseClassName, designVersion === 'next' && nextStyles.root, state.root.className);
|
|
84
|
-
return state;
|
|
85
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useCitationStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses, shorthands } from '@fluentui/react-components';\nimport { tokens, typographyStyles } from '@fluentui-copilot/tokens';\nimport type { CitationSlots, CitationState } from './Citation.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const citationClassNames: SlotClassNames<CitationSlots> = {\n root: 'fai-Citation',\n};\n\nconst useCitationBaseClassName = makeResetStyles({\n display: 'inline-flex',\n justifyContent: 'center',\n boxSizing: 'border-box',\n alignItems: 'center',\n cursor: 'pointer',\n ...typographyStyles.caption2Strong,\n\n backgroundColor: tokens.colorNeutralBackground3,\n border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke2}`,\n color: tokens.colorNeutralForeground2,\n\n minWidth: '14px',\n height: '14px',\n verticalAlign: `calc((${typographyStyles.caption2Strong.lineHeight} - ${typographyStyles.caption2Strong.fontSize}) / 2)`,\n paddingInline: tokens.spacingHorizontalXXS,\n\n borderRadius: tokens.borderRadiusMedium,\n\n textDecoration: 'none',\n\n marginLeft: tokens.spacingHorizontalXXS,\n marginRight: tokens.spacingHorizontalXXS,\n\n ':hover': {\n cursor: 'pointer',\n color: tokens.colorBrandForeground2Hover,\n borderColor: tokens.colorBrandStroke2Hover,\n backgroundColor: tokens.colorBrandBackground2Hover,\n },\n\n ':hover:active': {\n cursor: 'pointer',\n color: tokens.colorBrandForeground2Pressed,\n borderColor: tokens.colorBrandStroke2Pressed,\n backgroundColor: tokens.colorBrandBackground2Pressed,\n },\n});\n\nconst useCitationRootStyles = makeStyles({\n isBlock: {\n display: 'flex',\n marginLeft: 0,\n marginRight: 0,\n },\n isPopoverLocked: {\n color: tokens.colorBrandForeground2Pressed,\n ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),\n backgroundColor: tokens.colorBrandBackground2,\n ':hover': {\n color: tokens.colorBrandForeground2Pressed,\n ...shorthands.borderColor(tokens.colorBrandStroke2Pressed),\n backgroundColor: tokens.colorBrandBackground2,\n },\n },\n});\n\nconst useNextStyles = makeStyles({ root: { borderRadius: tokens.borderRadiusXLarge } });\n\n/**\n * Apply styling to the Citation slots based on the state\n */\nexport const useCitationStyles_unstable = (state: CitationState): CitationState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootBaseClassName = useCitationBaseClassName();\n const rootStyles = useCitationRootStyles();\n const nextStyles = useNextStyles();\n\n state.root.className = mergeClasses(\n citationClassNames.root,\n state.isPopoverLocked && rootStyles.isPopoverLocked,\n state.block && rootStyles.isBlock,\n rootBaseClassName,\n designVersion === 'next' && nextStyles.root,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["citationClassNames","useCitationStyles_unstable","root","useCitationBaseClassName","makeResetStyles","display","justifyContent","boxSizing","alignItems","cursor","typographyStyles","caption2Strong","backgroundColor","tokens","colorNeutralBackground3","border","strokeWidthThin","colorNeutralStroke2","color","colorNeutralForeground2","minWidth","height","verticalAlign","lineHeight","fontSize","paddingInline","spacingHorizontalXXS","borderRadius","borderRadiusMedium","textDecoration","marginLeft","marginRight","colorBrandForeground2Hover","borderColor","colorBrandStroke2Hover","colorBrandBackground2Hover","colorBrandForeground2Pressed","colorBrandStroke2Pressed","colorBrandBackground2Pressed","useCitationRootStyles","makeStyles","isBlock","isPopoverLocked","shorthands","colorBrandBackground2","useNextStyles","borderRadiusXLarge","state","designVersion","rootBaseClassName","rootStyles","nextStyles","className","mergeClasses","block"],"rangeMappings":";;;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AA,2BAAAA,EAAW;IACvCC,SAAS;QACPpC,SAAS;QACTyB,YAAY;QACZC,aAAa;IACf;IACAW,iBAAiB;QACfxB,OAAOL,cAAAA,CAAOuB,4BAA4B;QAC1C,GAAGO,2BAAAA,CAAWV,WAAW,CAACpB,cAAAA,CAAOwB,wBAAwB,CAAC;QAC1DzB,iBAAiBC,cAAAA,CAAO+B,qBAAqB;QAC7C,UAAU;YACR1B,OAAOL,cAAAA,CAAOuB,4BAA4B;YAC1C,GAAGO,2BAAAA,CAAWV,WAAW,CAACpB,cAAAA,CAAOwB,wBAAwB,CAAC;YAC1DzB,iBAAiBC,cAAAA,CAAO+B,qBAAqB;QAC/C;IACF;AACF;AAEA,MAAMC,gBAAgBL,IAAAA,2BAAAA,EAAW;IAAEtC,MAAM;QAAEyB,cAAcd,cAAAA,CAAOiC,kBAAkB;IAAC;AAAE;AAK9E,MAAM7C,6BAA6B,CAAC8C;IACzC;IAEA,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAE1B,MAAME,oBAAoB9C;IAC1B,MAAM+C,aAAaX;IACnB,MAAMY,aAAaN;IAEnBE,MAAM7C,IAAI,CAACkD,SAAS,GAAGC,IAAAA,6BAAAA,EACrBrD,mBAAmBE,IAAI,EACvB6C,MAAML,eAAe,IAAIQ,WAAWR,eAAe,EACnDK,MAAMO,KAAK,IAAIJ,WAAWT,OAAO,EACjCQ,mBACAD,kBAAkB,UAAUG,WAAWjD,IAAI,EAC3C6C,MAAM7C,IAAI,CAACkD,SAAS;IAGtB,OAAOL;AACT"}
|
|
@@ -1,132 +0,0 @@
|
|
|
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
|
-
referenceClassNames: function() {
|
|
13
|
-
return referenceClassNames;
|
|
14
|
-
},
|
|
15
|
-
referenceExtraClassNames: function() {
|
|
16
|
-
return referenceExtraClassNames;
|
|
17
|
-
},
|
|
18
|
-
useReferenceStyles_unstable: function() {
|
|
19
|
-
return useReferenceStyles_unstable;
|
|
20
|
-
},
|
|
21
|
-
useRootStyles: function() {
|
|
22
|
-
return useRootStyles;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
const _reactcomponents = require("@fluentui/react-components");
|
|
26
|
-
const _tokens = require("@fluentui-copilot/tokens");
|
|
27
|
-
const referenceClassNames = {
|
|
28
|
-
root: 'fai-Reference',
|
|
29
|
-
citation: 'fai-Reference__citation',
|
|
30
|
-
divider: 'fai-Reference__divider',
|
|
31
|
-
graphic: 'fai-Reference__graphic',
|
|
32
|
-
content: 'fai-Reference__content'
|
|
33
|
-
};
|
|
34
|
-
const referenceExtraClassNames = {
|
|
35
|
-
graphicChild: 'fai-Reference__graphicChild'
|
|
36
|
-
};
|
|
37
|
-
const GRAPHIC_SIZE = '16px';
|
|
38
|
-
const useRootBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
39
|
-
alignItems: 'center',
|
|
40
|
-
backgroundColor: _tokens.tokens.colorNeutralBackground3,
|
|
41
|
-
border: `${_tokens.tokens.strokeWidthThin} solid ${_tokens.tokens.colorNeutralStroke2}`,
|
|
42
|
-
borderRadius: _tokens.tokens.borderRadiusMedium,
|
|
43
|
-
boxSizing: 'border-box',
|
|
44
|
-
color: _tokens.tokens.colorNeutralForeground2,
|
|
45
|
-
columnGap: _tokens.tokens.spacingHorizontalXXS,
|
|
46
|
-
display: 'inline-flex',
|
|
47
|
-
flexShrink: 0,
|
|
48
|
-
justifyContent: 'center',
|
|
49
|
-
maxWidth: '100%',
|
|
50
|
-
minHeight: '24px',
|
|
51
|
-
padding: `${_tokens.tokens.spacingVerticalXXS} ${_tokens.tokens.spacingHorizontalS}`,
|
|
52
|
-
textDecoration: 'none',
|
|
53
|
-
':hover': {
|
|
54
|
-
backgroundColor: _tokens.tokens.colorNeutralBackground3Hover,
|
|
55
|
-
borderColor: _tokens.tokens.colorNeutralStroke1Hover,
|
|
56
|
-
color: _tokens.tokens.colorNeutralForeground2Hover,
|
|
57
|
-
[`& .${referenceClassNames.divider}`]: {
|
|
58
|
-
backgroundColor: _tokens.tokens.colorNeutralStroke1Hover
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
':hover:active': {
|
|
62
|
-
backgroundColor: _tokens.tokens.colorNeutralBackground3Pressed,
|
|
63
|
-
borderColor: _tokens.tokens.colorNeutralStroke1Pressed,
|
|
64
|
-
color: _tokens.tokens.colorNeutralForeground2Pressed,
|
|
65
|
-
[`& .${referenceClassNames.divider}`]: {
|
|
66
|
-
backgroundColor: _tokens.tokens.colorNeutralStroke1Pressed
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
const useRootStyles = (0, _reactcomponents.makeStyles)({
|
|
71
|
-
overflow: {
|
|
72
|
-
maxWidth: '100%',
|
|
73
|
-
width: '100%'
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
const useRootNextStyles = (0, _reactcomponents.makeStyles)({
|
|
77
|
-
root: {
|
|
78
|
-
borderRadius: _tokens.tokens.borderRadiusXLarge
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
const useCitationBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
82
|
-
..._tokens.typographyStyles.caption2Strong
|
|
83
|
-
});
|
|
84
|
-
const useDividerBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
85
|
-
backgroundColor: _tokens.tokens.colorNeutralStroke2,
|
|
86
|
-
height: '16px',
|
|
87
|
-
margin: `${_tokens.tokens.spacingVerticalNone} ${_tokens.tokens.spacingHorizontalXS}`,
|
|
88
|
-
width: '1px'
|
|
89
|
-
});
|
|
90
|
-
const useGraphicBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
91
|
-
display: 'inline-flex',
|
|
92
|
-
fontSize: GRAPHIC_SIZE,
|
|
93
|
-
height: GRAPHIC_SIZE,
|
|
94
|
-
lineHeight: GRAPHIC_SIZE,
|
|
95
|
-
width: GRAPHIC_SIZE,
|
|
96
|
-
[`> .${referenceExtraClassNames.graphicChild}`]: {
|
|
97
|
-
height: GRAPHIC_SIZE,
|
|
98
|
-
width: GRAPHIC_SIZE
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
const useContentBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
102
|
-
alignItems: 'center',
|
|
103
|
-
columnGap: _tokens.tokens.spacingHorizontalSNudge,
|
|
104
|
-
display: 'inline-flex',
|
|
105
|
-
textAlign: 'start',
|
|
106
|
-
wordBreak: 'break-word',
|
|
107
|
-
..._tokens.typographyStyles.caption1
|
|
108
|
-
});
|
|
109
|
-
const useReferenceStyles_unstable = (state)=>{
|
|
110
|
-
'use no memo';
|
|
111
|
-
const { designVersion } = state;
|
|
112
|
-
const rootBaseClassName = useRootBaseClassName();
|
|
113
|
-
const rootNextStyles = useRootNextStyles();
|
|
114
|
-
const citationBaseClassName = useCitationBaseClassName();
|
|
115
|
-
const dividerBaseClassName = useDividerBaseClassName();
|
|
116
|
-
const contentBaseClassName = useContentBaseClassName();
|
|
117
|
-
const graphicBaseClassName = useGraphicBaseClassName();
|
|
118
|
-
state.root.className = (0, _reactcomponents.mergeClasses)(referenceClassNames.root, rootBaseClassName, designVersion === 'next' && rootNextStyles.root, state.root.className);
|
|
119
|
-
if (state.citation) {
|
|
120
|
-
state.citation.className = (0, _reactcomponents.mergeClasses)(referenceClassNames.citation, citationBaseClassName, state.citation.className);
|
|
121
|
-
}
|
|
122
|
-
if (state.divider) {
|
|
123
|
-
state.divider.className = (0, _reactcomponents.mergeClasses)(referenceClassNames.divider, dividerBaseClassName, state.divider.className);
|
|
124
|
-
}
|
|
125
|
-
if (state.content) {
|
|
126
|
-
state.content.className = (0, _reactcomponents.mergeClasses)(referenceClassNames.content, contentBaseClassName, state.content.className);
|
|
127
|
-
}
|
|
128
|
-
if (state.graphic) {
|
|
129
|
-
state.graphic.className = (0, _reactcomponents.mergeClasses)(referenceClassNames.graphic, graphicBaseClassName, state.graphic.className);
|
|
130
|
-
}
|
|
131
|
-
return state;
|
|
132
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useReferenceStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@fluentui/react-components';\nimport { tokens, typographyStyles } 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":["referenceClassNames","referenceExtraClassNames","useReferenceStyles_unstable","useRootStyles","root","citation","divider","graphic","content","graphicChild","GRAPHIC_SIZE","useRootBaseClassName","makeResetStyles","alignItems","backgroundColor","tokens","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","makeStyles","overflow","width","useRootNextStyles","borderRadiusXLarge","useCitationBaseClassName","typographyStyles","caption2Strong","useDividerBaseClassName","height","margin","spacingVerticalNone","spacingHorizontalXS","useGraphicBaseClassName","fontSize","lineHeight","useContentBaseClassName","spacingHorizontalSNudge","textAlign","wordBreak","caption1","state","designVersion","rootBaseClassName","rootNextStyles","citationBaseClassName","dividerBaseClassName","contentBaseClassName","graphicBaseClassName","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,mBAAAA;eAAAA;;IAQAC,wBAAAA;eAAAA;;IAwFAC,2BAAAA;eAAAA;;IA7CAC,aAAAA;eAAAA;;;iCAxD6C;wBACjB;AAIlC,MAAMH,sBAAsD;IACjEI,MA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AI,EAC/C4D,MAAM5D,IAAI,CAACoE,SAAS;IAGtB,IAAIR,MAAM3D,QAAQ,EAAE;QAClB2D,MAAM3D,QAAQ,CAACmE,SAAS,GAAGC,IAAAA,6BAAAA,EACzBzE,oBAAoBK,QAAQ,EAC5B+D,uBACAJ,MAAM3D,QAAQ,CAACmE,SAAS;IAE5B;IAEA,IAAIR,MAAM1D,OAAO,EAAE;QACjB0D,MAAM1D,OAAO,CAACkE,SAAS,GAAGC,IAAAA,6BAAAA,EAAazE,oBAAoBM,OAAO,EAAE+D,sBAAsBL,MAAM1D,OAAO,CAACkE,SAAS;IACnH;IAEA,IAAIR,MAAMxD,OAAO,EAAE;QACjBwD,MAAMxD,OAAO,CAACgE,SAAS,GAAGC,IAAAA,6BAAAA,EAAazE,oBAAoBQ,OAAO,EAAE8D,sBAAsBN,MAAMxD,OAAO,CAACgE,SAAS;IACnH;IAEA,IAAIR,MAAMzD,OAAO,EAAE;QACjByD,MAAMzD,OAAO,CAACiE,SAAS,GAAGC,IAAAA,6BAAAA,EAAazE,oBAAoBO,OAAO,EAAEgE,sBAAsBP,MAAMzD,OAAO,CAACiE,SAAS;IACnH;IAEA,OAAOR;AACT"}
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
referenceListClassNames: function() {
|
|
13
|
-
return referenceListClassNames;
|
|
14
|
-
},
|
|
15
|
-
useReferenceListStyles_unstable: function() {
|
|
16
|
-
return useReferenceListStyles_unstable;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
-
const _tokens = require("@fluentui-copilot/tokens");
|
|
21
|
-
const referenceListClassNames = {
|
|
22
|
-
root: 'fai-ReferenceList',
|
|
23
|
-
arrowableRegion: 'fai-ReferenceList__arrowableRegion',
|
|
24
|
-
showMoreButton: 'fai-ReferenceList__showMoreButton',
|
|
25
|
-
showLessButton: 'fai-ReferenceList__showLessButton'
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the root slot
|
|
29
|
-
*/ const useRootBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
30
|
-
display: 'flex',
|
|
31
|
-
flexDirection: 'row',
|
|
32
|
-
gap: `${_tokens.tokens.spacingVerticalXS} ${_tokens.tokens.spacingHorizontalXS}`
|
|
33
|
-
});
|
|
34
|
-
const useRootStyles = (0, _reactcomponents.makeStyles)({
|
|
35
|
-
referencesExpanded: {
|
|
36
|
-
flexWrap: 'wrap'
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
const useArrowableRegionBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
40
|
-
display: 'contents',
|
|
41
|
-
maxWidth: '100%'
|
|
42
|
-
});
|
|
43
|
-
const useOverflowButtonBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
44
|
-
display: 'inline-flex',
|
|
45
|
-
flexShrink: 0
|
|
46
|
-
});
|
|
47
|
-
const useReferenceListStyles_unstable = (state)=>{
|
|
48
|
-
'use no memo';
|
|
49
|
-
const { areReferencesExpanded, shouldUseOverflow } = state;
|
|
50
|
-
const rootBaseClassName = useRootBaseClassName();
|
|
51
|
-
const arrowableRegionBaseClassName = useArrowableRegionBaseClassName();
|
|
52
|
-
const overflowButtonBaseClassName = useOverflowButtonBaseClassName();
|
|
53
|
-
const rootStyles = useRootStyles();
|
|
54
|
-
state.root.className = (0, _reactcomponents.mergeClasses)(referenceListClassNames.root, rootBaseClassName, (areReferencesExpanded || !shouldUseOverflow) && rootStyles.referencesExpanded, state.root.className);
|
|
55
|
-
state.arrowableRegion.className = (0, _reactcomponents.mergeClasses)(referenceListClassNames.arrowableRegion, arrowableRegionBaseClassName, state.arrowableRegion.className);
|
|
56
|
-
if (state.showMoreButton) {
|
|
57
|
-
state.showMoreButton.className = (0, _reactcomponents.mergeClasses)(referenceListClassNames.showMoreButton, overflowButtonBaseClassName, state.showMoreButton.className);
|
|
58
|
-
}
|
|
59
|
-
if (state.showLessButton) {
|
|
60
|
-
state.showLessButton.className = (0, _reactcomponents.mergeClasses)(referenceListClassNames.showLessButton, overflowButtonBaseClassName, state.showLessButton.className);
|
|
61
|
-
}
|
|
62
|
-
return state;
|
|
63
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["useReferenceListStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, 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\nexport const referenceListClassNames: SlotClassNames<ReferenceListSlots> = {\n root: 'fai-ReferenceList',\n arrowableRegion: 'fai-ReferenceList__arrowableRegion',\n showMoreButton: 'fai-ReferenceList__showMoreButton',\n showLessButton: 'fai-ReferenceList__showLessButton',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseClassName = makeResetStyles({\n display: 'flex',\n flexDirection: 'row',\n gap: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n});\n\nconst useRootStyles = makeStyles({\n referencesExpanded: {\n flexWrap: 'wrap',\n },\n});\n\nconst useArrowableRegionBaseClassName = makeResetStyles({\n display: 'contents',\n maxWidth: '100%',\n});\n\nconst useOverflowButtonBaseClassName = makeResetStyles({\n display: 'inline-flex',\n flexShrink: 0,\n});\n\n/**\n * Apply styling to the ReferenceList slots based on the state\n */\nexport const useReferenceListStyles_unstable = (state: ReferenceListState): ReferenceListState => {\n 'use no memo';\n\n const { areReferencesExpanded, shouldUseOverflow } = state;\n\n const rootBaseClassName = useRootBaseClassName();\n const arrowableRegionBaseClassName = useArrowableRegionBaseClassName();\n const overflowButtonBaseClassName = useOverflowButtonBaseClassName();\n const rootStyles = useRootStyles();\n\n state.root.className = mergeClasses(\n referenceListClassNames.root,\n rootBaseClassName,\n (areReferencesExpanded || !shouldUseOverflow) && rootStyles.referencesExpanded,\n state.root.className,\n );\n\n state.arrowableRegion.className = mergeClasses(\n referenceListClassNames.arrowableRegion,\n arrowableRegionBaseClassName,\n state.arrowableRegion.className,\n );\n\n if (state.showMoreButton) {\n state.showMoreButton.className = mergeClasses(\n referenceListClassNames.showMoreButton,\n overflowButtonBaseClassName,\n state.showMoreButton.className,\n );\n }\n\n if (state.showLessButton) {\n state.showLessButton.className = mergeClasses(\n referenceListClassNames.showLessButton,\n overflowButtonBaseClassName,\n state.showLessButton.className,\n );\n }\n\n return state;\n};\n"],"names":["referenceListClassNames","useReferenceListStyles_unstable","root","arrowableRegion","showMoreButton","showLessButton","useRootBaseClassName","makeResetStyles","display","flexDirection","gap","tokens","spacingVerticalXS","spacingHorizontalXS","useRootStyles","makeStyles","referencesExpanded","flexWrap","useArrowableRegionBaseClassName","maxWidth","useOverflowButtonBaseClassName","flexShrink","state","areReferencesExpanded","shouldUseOverflow","rootBaseClassName","arrowableRegionBaseClassName","overflowButtonBaseClassName","rootStyles","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,uBAAAA;eAAAA;;IAmCAC,+BAAAA;eAAAA;;;iCAxC6C;wBACnC;AAIhB,MAAMD,0BAA8D;IACzEE,MAAM;IACNC,iBAAiB;IACjBC,gBAAgB;IAChBC,gBAAgB;AAClB;AAEA;;CAEC,GACD,MAAMC,uBAAuBC,IAAAA,gCAAAA,EAAgB;IAC3CC,SAAS;IACTC,eAAe;IACfC,KAAK,CAAC,EAAEC,cAAAA,CAAOC,iBAAiB,CAAC,CAAC,EAAED,c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