@fluentui-copilot/react-reference 0.0.0-nightly-20250708-1433-52f2b6b1.1 → 0.0.0-nightly-20250710-0405-e728c4d6.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,61 +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
|
-
referenceOverflowButtonClassNames: function() {
|
|
13
|
-
return referenceOverflowButtonClassNames;
|
|
14
|
-
},
|
|
15
|
-
useReferenceOverflowButtonStyles_unstable: function() {
|
|
16
|
-
return useReferenceOverflowButtonStyles_unstable;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
-
const _tokens = require("@fluentui-copilot/tokens");
|
|
21
|
-
const referenceOverflowButtonClassNames = {
|
|
22
|
-
root: 'fai-ReferenceOverflowButton'
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Styles for the root slot
|
|
26
|
-
*/ const useRootBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
27
|
-
alignItems: 'center',
|
|
28
|
-
backgroundColor: _tokens.tokens.colorNeutralBackground3,
|
|
29
|
-
border: `${_tokens.tokens.strokeWidthThin} solid ${_tokens.tokens.colorNeutralStroke2}`,
|
|
30
|
-
borderRadius: _tokens.tokens.borderRadiusMedium,
|
|
31
|
-
color: _tokens.tokens.colorNeutralForeground2,
|
|
32
|
-
cursor: 'pointer',
|
|
33
|
-
display: 'inline-flex',
|
|
34
|
-
justifyContent: 'center',
|
|
35
|
-
minHeight: '24px',
|
|
36
|
-
padding: `${_tokens.tokens.spacingVerticalXXS} ${_tokens.tokens.spacingHorizontalS}`,
|
|
37
|
-
..._tokens.typographyStyles.caption1,
|
|
38
|
-
':hover': {
|
|
39
|
-
backgroundColor: _tokens.tokens.colorNeutralBackground3Hover,
|
|
40
|
-
borderColor: _tokens.tokens.colorNeutralStroke1Hover,
|
|
41
|
-
color: _tokens.tokens.colorNeutralForeground2Hover
|
|
42
|
-
},
|
|
43
|
-
':hover:active': {
|
|
44
|
-
backgroundColor: _tokens.tokens.colorNeutralBackground3Pressed,
|
|
45
|
-
borderColor: _tokens.tokens.colorNeutralStroke1Pressed,
|
|
46
|
-
color: _tokens.tokens.colorNeutralForeground2Pressed
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
const useNextStyles = (0, _reactcomponents.makeStyles)({
|
|
50
|
-
root: {
|
|
51
|
-
borderRadius: _tokens.tokens.borderRadiusXLarge
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
const useReferenceOverflowButtonStyles_unstable = (state)=>{
|
|
55
|
-
'use no memo';
|
|
56
|
-
const { designVersion } = state;
|
|
57
|
-
const rootBaseClassName = useRootBaseClassName();
|
|
58
|
-
const nextStyles = useNextStyles();
|
|
59
|
-
state.root.className = (0, _reactcomponents.mergeClasses)(referenceOverflowButtonClassNames.root, rootBaseClassName, designVersion === 'next' && nextStyles.root, state.root.className);
|
|
60
|
-
return state;
|
|
61
|
-
};
|
|
@@ -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":["referenceOverflowButtonClassNames","useReferenceOverflowButtonStyles_unstable","root","useRootBaseClassName","makeResetStyles","alignItems","backgroundColor","tokens","colorNeutralBackground3","border","strokeWidthThin","colorNeutralStroke2","borderRadius","borderRadiusMedium","color","colorNeutralForeground2","cursor","display","justifyContent","minHeight","padding","spacingVerticalXXS","spacingHorizontalS","typographyStyles","caption1","colorNeutralBackground3Hover","borderColor","colorNeutralStroke1Hover","colorNeutralForeground2Hover","colorNeutralBackground3Pressed","colorNeutralStroke1Pressed","colorNeutralForeground2Pressed","useNextStyles","makeStyles","borderRadiusXLarge","state","designVersion","rootBaseClassName","nextStyles","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,iCAAAA;eAAAA;;IAsCAC,yCAAAA;eAAAA;;;iCA3C6C;wBACjB;AAIlC,MAAMD,oCAAkF;IAC7FE,MAAM;AACR;AAEA;;CAEC,GACD,MAAMC,uBAAuBC,IAAAA,gCAAAA,EAAgB;IAC3CC,YAAY;IACZC,iBAAiBC,cAAAA,CAAOC,uBAAuB;IAC/CC,QAAQ,CAAC,EAAEF,cAAAA,CAAOG,eAAe,CAAC,OAAO,EAAEH,cAAAA,CAAOI,mBAAmB,CAAC,CAAC;IACvEC,cAAcL,cAAAA,CAAOM,kBAAkB;IACvCC,OAAOP,cAAAA,CAAOQ,uBAAuB;IACrCC,QAAQ;IACRC,SAAS;IACTC,gBAAgB;IAChBC,WAAW;IACXC,SAAS,CAAC,EAAEb,cAAAA,CAAOc,kBAAkB,CAAC,CAAC,EAAEd,cAAAA,CAAOe,kBAAkB,CAAC,CAAC;IACpE,GAAGC,wBAAAA,CAAiBC,QAAQ;IAE5B,UAAU;QACRlB,iBAAiBC,cAAAA,CAAOkB,4BAA4B;QACpDC,aAAanB,cAAAA,CAAOoB,wBAAwB;QAC5Cb,OAAOP,cAAAA,CAAOqB,4BAA4B;IAC5C;IAEA,iBAAiB;QACftB,iBAAiBC,cAAAA,CAAOsB,8BAA8B;QACtDH,aAAanB,cAAAA,CAAOuB,0BAA0B;QAC9ChB,OAAOP,cAAAA,CAAOwB,8BAA8B;IAC9C;AACF;AAEA,MAAMC,gBAAgBC,IAAAA,2BAAAA,EAAW;IAAE/B,MAAM;QAAEU,cAAcL,cAAAA,CAAO2B,kBAAkB;IAAC;AAAE;AAK9E,MAAMjC,4CAA4C,CACvDkC;IAEA;IAEA,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAE1B,MAAME,oBAAoBlC;IAC1B,MAAMmC,aAAaN;IAEnBG,MAAMjC,IAAI,CAACqC,SAAS,GAAGC,IAAAA,6BAAAA,EACrBxC,kCAAkCE,IAAI,EACtCmC,mBACAD,kBAAkB,UAAUE,WAAWpC,IAAI,EAC3CiC,MAAMjC,IAAI,CAACqC,SAAS;IAGtB,OAAOJ;AACT"}
|