@fluentui-copilot/react-preview 0.7.3 → 0.7.4-hotfix.2
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 +39 -1
- package/CHANGELOG.md +20 -2
- package/lib/components/PreviewContent/usePreviewContentStyles.styles.raw.js +30 -0
- package/lib/components/PreviewContent/usePreviewContentStyles.styles.raw.js.map +1 -0
- package/lib/components/PreviewHeader/usePreviewHeaderStyles.styles.js +2 -2
- package/lib/components/PreviewHeader/usePreviewHeaderStyles.styles.js.map +1 -1
- package/lib/components/PreviewHeader/usePreviewHeaderStyles.styles.raw.js +113 -0
- package/lib/components/PreviewHeader/usePreviewHeaderStyles.styles.raw.js.map +1 -0
- package/lib/components/PreviewMetadata/usePreviewMetadataStyles.styles.raw.js +59 -0
- package/lib/components/PreviewMetadata/usePreviewMetadataStyles.styles.raw.js.map +1 -0
- package/lib/components/PreviewSurface/usePreviewSurfaceStyles.styles.raw.js +35 -0
- package/lib/components/PreviewSurface/usePreviewSurfaceStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/PreviewContent/usePreviewContentStyles.styles.raw.js +42 -0
- package/lib-commonjs/components/PreviewContent/usePreviewContentStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/PreviewHeader/usePreviewHeaderStyles.styles.js +5 -2
- package/lib-commonjs/components/PreviewHeader/usePreviewHeaderStyles.styles.js.map +1 -1
- package/lib-commonjs/components/PreviewHeader/usePreviewHeaderStyles.styles.raw.js +129 -0
- package/lib-commonjs/components/PreviewHeader/usePreviewHeaderStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/PreviewMetadata/usePreviewMetadataStyles.styles.raw.js +72 -0
- package/lib-commonjs/components/PreviewMetadata/usePreviewMetadataStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/PreviewSurface/usePreviewSurfaceStyles.styles.raw.js +45 -0
- package/lib-commonjs/components/PreviewSurface/usePreviewSurfaceStyles.styles.raw.js.map +1 -0
- package/package.json +4 -8
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,45 @@
|
|
|
2
2
|
"name": "@fluentui-copilot/react-preview",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 19 Sep 2025 15:10:20 GMT",
|
|
6
|
+
"tag": "@fluentui-copilot/react-preview_v0.7.4-hotfix.2",
|
|
7
|
+
"version": "0.7.4-hotfix.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "hochelmartin@gmail.com",
|
|
12
|
+
"package": "@fluentui-copilot/react-preview",
|
|
13
|
+
"commit": "3e4ebe676646c4c4346dbbab83511f963ffefd85",
|
|
14
|
+
"comment": "release: prepare hotfix 0.26.2-hotfix.2"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 19 May 2025 18:04:28 GMT",
|
|
21
|
+
"tag": "@fluentui-copilot/react-preview_v0.7.4",
|
|
22
|
+
"version": "0.7.4",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
27
|
+
"package": "@fluentui-copilot/react-preview",
|
|
28
|
+
"commit": "5f102f2e0c314897038ea0a9b2319cad70ee1c67",
|
|
29
|
+
"comment": "fix: Adding correct styles when Links are used as the label of a PreviewHeader."
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"none": [
|
|
33
|
+
{
|
|
34
|
+
"author": "hochelmartin@gmail.com",
|
|
35
|
+
"package": "@fluentui-copilot/react-preview",
|
|
36
|
+
"commit": "442954951d0eca92de20ecb0ff0fa9492431b62d",
|
|
37
|
+
"comment": "fix: exclude story files from production build"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"date": "Sat, 03 May 2025 01:27:44 GMT",
|
|
6
44
|
"tag": "@fluentui-copilot/react-preview_v0.7.3",
|
|
7
45
|
"version": "0.7.3",
|
|
8
46
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Change Log - @fluentui-copilot/react-preview
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 19 Sep 2025 15:10:20 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [0.7.4-hotfix.2](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-preview_v0.7.4-hotfix.2)
|
|
8
|
+
|
|
9
|
+
Fri, 19 Sep 2025 15:10:20 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-preview_v0.7.4..@fluentui-copilot/react-preview_v0.7.4-hotfix.2)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- release: prepare hotfix 0.26.2-hotfix.2 ([PR #3284](https://github.com/microsoft/fluentai/pull/3284) by hochelmartin@gmail.com)
|
|
15
|
+
|
|
16
|
+
## [0.7.4](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-preview_v0.7.4)
|
|
17
|
+
|
|
18
|
+
Mon, 19 May 2025 18:04:28 GMT
|
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-preview_v0.7.3..@fluentui-copilot/react-preview_v0.7.4)
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- fix: Adding correct styles when Links are used as the label of a PreviewHeader. ([PR #3007](https://github.com/microsoft/fluentai/pull/3007) by Humberto.Morimoto@microsoft.com)
|
|
24
|
+
|
|
7
25
|
## [0.7.3](https://github.com/microsoft/fluentai/tree/@fluentui-copilot/react-preview_v0.7.3)
|
|
8
26
|
|
|
9
|
-
Sat, 03 May 2025 01:
|
|
27
|
+
Sat, 03 May 2025 01:27:44 GMT
|
|
10
28
|
[Compare changes](https://github.com/microsoft/fluentai/compare/@fluentui-copilot/react-preview_v0.7.2..@fluentui-copilot/react-preview_v0.7.3)
|
|
11
29
|
|
|
12
30
|
### Patches
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { makeResetStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';
|
|
2
|
+
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
|
+
export const previewContentClassNames = {
|
|
4
|
+
root: 'fai-PreviewContent'
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Styles for the root slot
|
|
8
|
+
*/
|
|
9
|
+
const useRootBaseClassName = makeResetStyles({
|
|
10
|
+
color: tokens.colorNeutralForeground3,
|
|
11
|
+
display: 'flex',
|
|
12
|
+
flexDirection: 'column',
|
|
13
|
+
maxWidth: `calc(256px - ${tokens.spacingHorizontalXS} * 2)`,
|
|
14
|
+
padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS}`,
|
|
15
|
+
rowGap: tokens.spacingVerticalXS,
|
|
16
|
+
wordBreak: 'break-word',
|
|
17
|
+
boxSizing: 'border-box',
|
|
18
|
+
...typographyStyles.caption1
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Apply styling to the PreviewContent slots based on the state
|
|
22
|
+
*/
|
|
23
|
+
export const usePreviewContentStyles_unstable = state => {
|
|
24
|
+
'use no memo';
|
|
25
|
+
|
|
26
|
+
const rootBaseClassName = useRootBaseClassName();
|
|
27
|
+
state.root.className = mergeClasses(previewContentClassNames.root, rootBaseClassName, state.root.className);
|
|
28
|
+
return state;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=usePreviewContentStyles.styles.raw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePreviewContentStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewContentSlots, PreviewContentState } from './PreviewContent.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewContentClassNames: SlotClassNames<PreviewContentSlots> = {\n root: 'fai-PreviewContent',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseClassName = makeResetStyles({\n color: tokens.colorNeutralForeground3,\n display: 'flex',\n flexDirection: 'column',\n maxWidth: `calc(256px - ${tokens.spacingHorizontalXS} * 2)`,\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS}`,\n rowGap: tokens.spacingVerticalXS,\n wordBreak: 'break-word',\n boxSizing: 'border-box',\n ...typographyStyles.caption1,\n});\n\n/**\n * Apply styling to the PreviewContent slots based on the state\n */\nexport const usePreviewContentStyles_unstable = (state: PreviewContentState): PreviewContentState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n\n state.root.className = mergeClasses(previewContentClassNames.root, rootBaseClassName, state.root.className);\n\n return state;\n};\n"],"names":["makeResetStyles","mergeClasses","typographyStyles","tokens","previewContentClassNames","root","useRootBaseClassName","color","colorNeutralForeground3","display","flexDirection","maxWidth","spacingHorizontalXS","padding","spacingVerticalS","spacingHorizontalS","rowGap","spacingVerticalXS","wordBreak","boxSizing","caption1","usePreviewContentStyles_unstable","state","rootBaseClassName","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,eAAe,EAAEC,YAAY,EAAEC,gBAAgB,QAAQ,6BAA6B;AAC7F,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,uBAAuBN,gBAAgB;IAC3CO,OAAOJ,OAAOK,uBAAuB;IACrCC,SAAS;IACTC,eAAe;IACfC,UAAU,CAAC,aAAa,EAAER,OAAOS,mBAAmB,CAAC,KAAK,CAAC;IAC3DC,SAAS,CAAC,EAAEV,OAAOW,gBAAgB,CAAC,CAAC,EAAEX,OAAOY,kBAAkB,CAAC,CAAC;IAClEC,QAAQb,OAAOc,iBAAiB;IAChCC,WAAW;IACXC,WAAW;IACX,GAAGjB,iBAAiBkB,QAAQ;AAC9B;AAEA;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAACC;IAC/C;IAEA,MAAMC,oBAAoBjB;IAE1BgB,MAAMjB,IAAI,CAACmB,SAAS,GAAGvB,aAAaG,yBAAyBC,IAAI,EAAEkB,mBAAmBD,MAAMjB,IAAI,CAACmB,SAAS;IAE1G,OAAOF;AACT,EAAE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __resetStyles, __styles, mergeClasses, typographyStyles } from '@fluentui/react-components';
|
|
1
|
+
import { linkClassNames, __resetStyles, __styles, mergeClasses, typographyStyles } from '@fluentui/react-components';
|
|
2
2
|
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
3
|
export const previewHeaderClassNames = {
|
|
4
4
|
root: 'fai-PreviewHeader',
|
|
@@ -14,7 +14,7 @@ const labelFontSize = typographyStyles.caption1Strong.fontSize;
|
|
|
14
14
|
const labelLineHeight = typographyStyles.caption1Strong.lineHeight;
|
|
15
15
|
const useActionsBaseClassName = __resetStyles("ry18yy9", null, [".ry18yy9{grid-row:1;justify-self:end;}"]);
|
|
16
16
|
const useCitationBaseClassName = __resetStyles("ry1eqmj", null, [".ry1eqmj{grid-row:1;}"]);
|
|
17
|
-
const useLabelBaseClassName = __resetStyles("
|
|
17
|
+
const useLabelBaseClassName = __resetStyles("rattnj5", null, [".rattnj5{align-self:start;display:-webkit-box;grid-row:1/3;overflow-y:hidden;padding-top:calc((16px / 2) - (var(--lineHeightBase200) - var(--fontSizeBase200)));word-break:break-word;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);}", ".rattnj5 .fui-Link{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);color:var(--colorNeutralForeground3);}", ".rattnj5 .fui-Link:hover{color:var(--colorNeutralForeground3Hover);}", ".rattnj5 .fui-Link:hover:active{color:var(--colorNeutralForeground3Pressed);}"]);
|
|
18
18
|
const useMediaBaseClassName = __resetStyles("rcisese", null, [".rcisese{grid-row:1;height:16px;line-height:0;width:16px;}", ".rcisese>.fai-PreviewHeader__mediaChild{height:16px;width:16px;}"]);
|
|
19
19
|
const useRootBaseClassName = __resetStyles("r1xjnine", null, [".r1xjnine{align-items:center;column-gap:var(--spacingHorizontalXS);display:grid;grid-template-rows:24px;}"]);
|
|
20
20
|
// Since the grid track that needs to grow is not always guaranteed to be the first or the last, but can change positions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["usePreviewHeaderStyles.styles.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["usePreviewHeaderStyles.styles.ts"],"sourcesContent":["import {\n linkClassNames,\n makeResetStyles,\n makeStyles,\n mergeClasses,\n typographyStyles,\n} from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewHeaderSlots, PreviewHeaderState } from './PreviewHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewHeaderClassNames: SlotClassNames<PreviewHeaderSlots> = {\n root: 'fai-PreviewHeader',\n actions: 'fai-PreviewHeader__actions',\n citation: 'fai-PreviewHeader__citation',\n label: 'fai-PreviewHeader__label',\n media: 'fai-PreviewHeader__media',\n};\n\nexport const previewHeaderExtraClassNames = {\n mediaChild: 'fai-PreviewHeader__mediaChild',\n};\n\nconst labelFontSize = typographyStyles.caption1Strong.fontSize;\nconst labelLineHeight = typographyStyles.caption1Strong.lineHeight;\n\nconst useActionsBaseClassName = makeResetStyles({\n gridRow: 1,\n justifySelf: 'end',\n});\n\nconst useCitationBaseClassName = makeResetStyles({\n gridRow: 1,\n});\n\nconst useLabelBaseClassName = makeResetStyles({\n alignSelf: 'start',\n display: '-webkit-box',\n gridRow: '1 / 3',\n overflowY: 'hidden',\n // 16px is the height of the tallest element within the preview header\n paddingTop: `calc((16px / 2) - (${labelLineHeight} - ${labelFontSize}))`,\n wordBreak: 'break-word',\n\n '-webkit-box-orient': 'vertical',\n '-webkit-line-clamp': '2',\n\n ...typographyStyles.caption1Strong,\n\n [`& .${linkClassNames.root}`]: {\n ...typographyStyles.caption1Strong,\n color: tokens.colorNeutralForeground3,\n\n ':hover': {\n color: tokens.colorNeutralForeground3Hover,\n },\n ':hover:active': {\n color: tokens.colorNeutralForeground3Pressed,\n },\n },\n});\n\nconst useMediaBaseClassName = makeResetStyles({\n gridRow: 1,\n height: '16px',\n lineHeight: 0,\n width: '16px',\n\n [`> .${previewHeaderExtraClassNames.mediaChild}`]: {\n height: '16px',\n width: '16px',\n },\n});\n\nconst useRootBaseClassName = makeResetStyles({\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalXS,\n display: 'grid',\n gridTemplateRows: '24px',\n});\n\n// Since the grid track that needs to grow is not always guaranteed to be the first or the last, but can change positions\n// based on the slots present, we need to conditionally set the grid template columns based on the slots present.\nconst useRootStyles = makeStyles({\n onlyLabel: {\n gridTemplateColumns: '1fr',\n },\n previousAndLabel: {\n gridTemplateColumns: 'min-content 1fr',\n },\n labelAndActions: {\n gridTemplateColumns: '1fr min-content',\n },\n citationMediaLabel: {\n gridTemplateColumns: 'min-content min-content 1fr',\n },\n previousLabelActions: {\n gridTemplateColumns: 'min-content 1fr min-content',\n },\n all: {\n gridTemplateColumns: 'min-content min-content 1fr min-content',\n },\n});\n\n/**\n * Apply styling to the PreviewHeader slots based on the state\n */\nexport const usePreviewHeaderStyles_unstable = (state: PreviewHeaderState): PreviewHeaderState => {\n 'use no memo';\n\n const actionsBaseClassName = useActionsBaseClassName();\n const citationBaseClassName = useCitationBaseClassName();\n const labelBaseClassName = useLabelBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const rootBaseClassName = useRootBaseClassName();\n const rootStyles = useRootStyles();\n\n let actionsPresent = false;\n if (state.actions) {\n actionsPresent = true;\n state.actions.className = mergeClasses(\n previewHeaderClassNames.actions,\n actionsBaseClassName,\n state.actions.className,\n );\n }\n\n let citationPresent = false;\n if (state.citation) {\n citationPresent = true;\n state.citation.className = mergeClasses(\n previewHeaderClassNames.citation,\n citationBaseClassName,\n state.citation.className,\n );\n }\n\n state.label.className = mergeClasses(previewHeaderClassNames.label, labelBaseClassName, state.label.className);\n\n let mediaPresent = false;\n if (state.media) {\n mediaPresent = true;\n state.media.className = mergeClasses(previewHeaderClassNames.media, mediaBaseClassName, state.media.className);\n }\n\n state.root.className = mergeClasses(\n previewHeaderClassNames.root,\n rootBaseClassName,\n !citationPresent && !mediaPresent && !actionsPresent && rootStyles.onlyLabel,\n ((citationPresent && !mediaPresent) || (mediaPresent && !citationPresent)) &&\n !actionsPresent &&\n rootStyles.previousAndLabel,\n !citationPresent && !mediaPresent && actionsPresent && rootStyles.labelAndActions,\n citationPresent && mediaPresent && !actionsPresent && rootStyles.citationMediaLabel,\n ((citationPresent && !mediaPresent) || (mediaPresent && !citationPresent)) &&\n actionsPresent &&\n rootStyles.previousLabelActions,\n citationPresent && mediaPresent && actionsPresent && rootStyles.all,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["linkClassNames","makeResetStyles","makeStyles","mergeClasses","typographyStyles","tokens","previewHeaderClassNames","root","actions","citation","label","media","previewHeaderExtraClassNames","mediaChild","labelFontSize","caption1Strong","fontSize","labelLineHeight","lineHeight","useActionsBaseClassName","gridRow","justifySelf","useCitationBaseClassName","useLabelBaseClassName","alignSelf","display","overflowY","paddingTop","wordBreak","color","colorNeutralForeground3","colorNeutralForeground3Hover","colorNeutralForeground3Pressed","useMediaBaseClassName","height","width","useRootBaseClassName","alignItems","columnGap","spacingHorizontalXS","gridTemplateRows","useRootStyles","onlyLabel","gridTemplateColumns","previousAndLabel","labelAndActions","citationMediaLabel","previousLabelActions","all","usePreviewHeaderStyles_unstable","state","actionsBaseClassName","citationBaseClassName","labelBaseClassName","mediaBaseClassName","rootBaseClassName","rootStyles","actionsPresent","className","citationPresent","mediaPresent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SACEA,cAAc,EACdC,eAAe,EACfC,UAAU,EACVC,YAAY,EACZC,gBAAgB,QACX,6BAA6B;AACpC,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,0BAA8D;IACzEC,MAAM;IACNC,SAAS;IACTC,UAAU;IACVC,OAAO;IACPC,OAAO;AACT,EAAE;AAEF,OAAO,MAAMC,+BAA+B;IAC1CC,YAAY;AACd,EAAE;AAEF,MAAMC,gBAAgBV,iBAAiBW,cAAc,CAACC,QAAQ;AAC9D,MAAMC,kBAAkBb,iBAAiBW,cAAc,CAACG,UAAU;AAElE,MAAMC,0BAA0BlB,gBAAgB;IAC9CmB,SAAS;IACTC,aAAa;AACf;AAEA,MAAMC,2BAA2BrB,gBAAgB;IAC/CmB,SAAS;AACX;AAEA,MAAMG,wBAAwBtB,gBAAgB;IAC5CuB,WAAW;IACXC,SAAS;IACTL,SAAS;IACTM,WAAW;IACX,sEAAsE;IACtEC,YAAY,CAAC,mBAAmB,EAAEV,gBAAgB,GAAG,EAAEH,cAAc,EAAE,CAAC;IACxEc,WAAW;IAEX,sBAAsB;IACtB,sBAAsB;IAEtB,GAAGxB,iBAAiBW,cAAc;IAElC,CAAC,CAAC,GAAG,EAAEf,eAAeO,IAAI,CAAC,CAAC,CAAC,EAAE;QAC7B,GAAGH,iBAAiBW,cAAc;QAClCc,OAAOxB,OAAOyB,uBAAuB;QAErC,UAAU;YACRD,OAAOxB,OAAO0B,4BAA4B;QAC5C;QACA,iBAAiB;YACfF,OAAOxB,OAAO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ACgD,SAAS,GAAGvD,aAAaG,wBAAwBI,KAAK,EAAE2C,oBAAoBH,MAAMxC,KAAK,CAACgD,SAAS;IAE7G,IAAIE,eAAe;IACnB,IAAIV,MAAMvC,KAAK,EAAE;QACfiD,eAAe;QACfV,MAAMvC,KAAK,CAAC+C,SAAS,GAAGvD,aAAaG,wBAAwBK,KAAK,EAAE2C,oBAAoBJ,MAAMvC,KAAK,CAAC+C,SAAS;IAC/G;IAEAR,MAAM3C,IAAI,CAACmD,SAAS,GAAGvD,aACrBG,wBAAwBC,IAAI,EAC5BgD,mBACA,CAACI,mBAAmB,CAACC,gBAAgB,CAACH,kBAAkBD,WAAWd,SAAS,EAC5E,AAAC,CAAA,AAACiB,mBAAmB,CAACC,gBAAkBA,gBAAgB,CAACD,eAAe,KACtE,CAACF,kBACDD,WAAWZ,gBAAgB,EAC7B,CAACe,mBAAmB,CAACC,gBAAgBH,kBAAkBD,WAAWX,eAAe,EACjFc,mBAAmBC,gBAAgB,CAACH,kBAAkBD,WAAWV,kBAAkB,EACnF,AAAC,CAAA,AAACa,mBAAmB,CAACC,gBAAkBA,gBAAgB,CAACD,eAAe,KACtEF,kBACAD,WAAWT,oBAAoB,EACjCY,mBAAmBC,gBAAgBH,kBAAkBD,WAAWR,GAAG,EACnEE,MAAM3C,IAAI,CAACmD,SAAS;IAGtB,OAAOR;AACT,EAAE"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { linkClassNames, makeResetStyles, makeStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';
|
|
2
|
+
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
|
+
export const previewHeaderClassNames = {
|
|
4
|
+
root: 'fai-PreviewHeader',
|
|
5
|
+
actions: 'fai-PreviewHeader__actions',
|
|
6
|
+
citation: 'fai-PreviewHeader__citation',
|
|
7
|
+
label: 'fai-PreviewHeader__label',
|
|
8
|
+
media: 'fai-PreviewHeader__media'
|
|
9
|
+
};
|
|
10
|
+
export const previewHeaderExtraClassNames = {
|
|
11
|
+
mediaChild: 'fai-PreviewHeader__mediaChild'
|
|
12
|
+
};
|
|
13
|
+
const labelFontSize = typographyStyles.caption1Strong.fontSize;
|
|
14
|
+
const labelLineHeight = typographyStyles.caption1Strong.lineHeight;
|
|
15
|
+
const useActionsBaseClassName = makeResetStyles({
|
|
16
|
+
gridRow: 1,
|
|
17
|
+
justifySelf: 'end'
|
|
18
|
+
});
|
|
19
|
+
const useCitationBaseClassName = makeResetStyles({
|
|
20
|
+
gridRow: 1
|
|
21
|
+
});
|
|
22
|
+
const useLabelBaseClassName = makeResetStyles({
|
|
23
|
+
alignSelf: 'start',
|
|
24
|
+
display: '-webkit-box',
|
|
25
|
+
gridRow: '1 / 3',
|
|
26
|
+
overflowY: 'hidden',
|
|
27
|
+
// 16px is the height of the tallest element within the preview header
|
|
28
|
+
paddingTop: `calc((16px / 2) - (${labelLineHeight} - ${labelFontSize}))`,
|
|
29
|
+
wordBreak: 'break-word',
|
|
30
|
+
'-webkit-box-orient': 'vertical',
|
|
31
|
+
'-webkit-line-clamp': '2',
|
|
32
|
+
...typographyStyles.caption1Strong,
|
|
33
|
+
[`& .${linkClassNames.root}`]: {
|
|
34
|
+
...typographyStyles.caption1Strong,
|
|
35
|
+
color: tokens.colorNeutralForeground3,
|
|
36
|
+
':hover': {
|
|
37
|
+
color: tokens.colorNeutralForeground3Hover
|
|
38
|
+
},
|
|
39
|
+
':hover:active': {
|
|
40
|
+
color: tokens.colorNeutralForeground3Pressed
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const useMediaBaseClassName = makeResetStyles({
|
|
45
|
+
gridRow: 1,
|
|
46
|
+
height: '16px',
|
|
47
|
+
lineHeight: 0,
|
|
48
|
+
width: '16px',
|
|
49
|
+
[`> .${previewHeaderExtraClassNames.mediaChild}`]: {
|
|
50
|
+
height: '16px',
|
|
51
|
+
width: '16px'
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
const useRootBaseClassName = makeResetStyles({
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
columnGap: tokens.spacingHorizontalXS,
|
|
57
|
+
display: 'grid',
|
|
58
|
+
gridTemplateRows: '24px'
|
|
59
|
+
});
|
|
60
|
+
// Since the grid track that needs to grow is not always guaranteed to be the first or the last, but can change positions
|
|
61
|
+
// based on the slots present, we need to conditionally set the grid template columns based on the slots present.
|
|
62
|
+
const useRootStyles = makeStyles({
|
|
63
|
+
onlyLabel: {
|
|
64
|
+
gridTemplateColumns: '1fr'
|
|
65
|
+
},
|
|
66
|
+
previousAndLabel: {
|
|
67
|
+
gridTemplateColumns: 'min-content 1fr'
|
|
68
|
+
},
|
|
69
|
+
labelAndActions: {
|
|
70
|
+
gridTemplateColumns: '1fr min-content'
|
|
71
|
+
},
|
|
72
|
+
citationMediaLabel: {
|
|
73
|
+
gridTemplateColumns: 'min-content min-content 1fr'
|
|
74
|
+
},
|
|
75
|
+
previousLabelActions: {
|
|
76
|
+
gridTemplateColumns: 'min-content 1fr min-content'
|
|
77
|
+
},
|
|
78
|
+
all: {
|
|
79
|
+
gridTemplateColumns: 'min-content min-content 1fr min-content'
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
/**
|
|
83
|
+
* Apply styling to the PreviewHeader slots based on the state
|
|
84
|
+
*/
|
|
85
|
+
export const usePreviewHeaderStyles_unstable = state => {
|
|
86
|
+
'use no memo';
|
|
87
|
+
|
|
88
|
+
const actionsBaseClassName = useActionsBaseClassName();
|
|
89
|
+
const citationBaseClassName = useCitationBaseClassName();
|
|
90
|
+
const labelBaseClassName = useLabelBaseClassName();
|
|
91
|
+
const mediaBaseClassName = useMediaBaseClassName();
|
|
92
|
+
const rootBaseClassName = useRootBaseClassName();
|
|
93
|
+
const rootStyles = useRootStyles();
|
|
94
|
+
let actionsPresent = false;
|
|
95
|
+
if (state.actions) {
|
|
96
|
+
actionsPresent = true;
|
|
97
|
+
state.actions.className = mergeClasses(previewHeaderClassNames.actions, actionsBaseClassName, state.actions.className);
|
|
98
|
+
}
|
|
99
|
+
let citationPresent = false;
|
|
100
|
+
if (state.citation) {
|
|
101
|
+
citationPresent = true;
|
|
102
|
+
state.citation.className = mergeClasses(previewHeaderClassNames.citation, citationBaseClassName, state.citation.className);
|
|
103
|
+
}
|
|
104
|
+
state.label.className = mergeClasses(previewHeaderClassNames.label, labelBaseClassName, state.label.className);
|
|
105
|
+
let mediaPresent = false;
|
|
106
|
+
if (state.media) {
|
|
107
|
+
mediaPresent = true;
|
|
108
|
+
state.media.className = mergeClasses(previewHeaderClassNames.media, mediaBaseClassName, state.media.className);
|
|
109
|
+
}
|
|
110
|
+
state.root.className = mergeClasses(previewHeaderClassNames.root, rootBaseClassName, !citationPresent && !mediaPresent && !actionsPresent && rootStyles.onlyLabel, (citationPresent && !mediaPresent || mediaPresent && !citationPresent) && !actionsPresent && rootStyles.previousAndLabel, !citationPresent && !mediaPresent && actionsPresent && rootStyles.labelAndActions, citationPresent && mediaPresent && !actionsPresent && rootStyles.citationMediaLabel, (citationPresent && !mediaPresent || mediaPresent && !citationPresent) && actionsPresent && rootStyles.previousLabelActions, citationPresent && mediaPresent && actionsPresent && rootStyles.all, state.root.className);
|
|
111
|
+
return state;
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=usePreviewHeaderStyles.styles.raw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePreviewHeaderStyles.styles.ts"],"sourcesContent":["import {\n linkClassNames,\n makeResetStyles,\n makeStyles,\n mergeClasses,\n typographyStyles,\n} from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewHeaderSlots, PreviewHeaderState } from './PreviewHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewHeaderClassNames: SlotClassNames<PreviewHeaderSlots> = {\n root: 'fai-PreviewHeader',\n actions: 'fai-PreviewHeader__actions',\n citation: 'fai-PreviewHeader__citation',\n label: 'fai-PreviewHeader__label',\n media: 'fai-PreviewHeader__media',\n};\n\nexport const previewHeaderExtraClassNames = {\n mediaChild: 'fai-PreviewHeader__mediaChild',\n};\n\nconst labelFontSize = typographyStyles.caption1Strong.fontSize;\nconst labelLineHeight = typographyStyles.caption1Strong.lineHeight;\n\nconst useActionsBaseClassName = makeResetStyles({\n gridRow: 1,\n justifySelf: 'end',\n});\n\nconst useCitationBaseClassName = makeResetStyles({\n gridRow: 1,\n});\n\nconst useLabelBaseClassName = makeResetStyles({\n alignSelf: 'start',\n display: '-webkit-box',\n gridRow: '1 / 3',\n overflowY: 'hidden',\n // 16px is the height of the tallest element within the preview header\n paddingTop: `calc((16px / 2) - (${labelLineHeight} - ${labelFontSize}))`,\n wordBreak: 'break-word',\n\n '-webkit-box-orient': 'vertical',\n '-webkit-line-clamp': '2',\n\n ...typographyStyles.caption1Strong,\n\n [`& .${linkClassNames.root}`]: {\n ...typographyStyles.caption1Strong,\n color: tokens.colorNeutralForeground3,\n\n ':hover': {\n color: tokens.colorNeutralForeground3Hover,\n },\n ':hover:active': {\n color: tokens.colorNeutralForeground3Pressed,\n },\n },\n});\n\nconst useMediaBaseClassName = makeResetStyles({\n gridRow: 1,\n height: '16px',\n lineHeight: 0,\n width: '16px',\n\n [`> .${previewHeaderExtraClassNames.mediaChild}`]: {\n height: '16px',\n width: '16px',\n },\n});\n\nconst useRootBaseClassName = makeResetStyles({\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalXS,\n display: 'grid',\n gridTemplateRows: '24px',\n});\n\n// Since the grid track that needs to grow is not always guaranteed to be the first or the last, but can change positions\n// based on the slots present, we need to conditionally set the grid template columns based on the slots present.\nconst useRootStyles = makeStyles({\n onlyLabel: {\n gridTemplateColumns: '1fr',\n },\n previousAndLabel: {\n gridTemplateColumns: 'min-content 1fr',\n },\n labelAndActions: {\n gridTemplateColumns: '1fr min-content',\n },\n citationMediaLabel: {\n gridTemplateColumns: 'min-content min-content 1fr',\n },\n previousLabelActions: {\n gridTemplateColumns: 'min-content 1fr min-content',\n },\n all: {\n gridTemplateColumns: 'min-content min-content 1fr min-content',\n },\n});\n\n/**\n * Apply styling to the PreviewHeader slots based on the state\n */\nexport const usePreviewHeaderStyles_unstable = (state: PreviewHeaderState): PreviewHeaderState => {\n 'use no memo';\n\n const actionsBaseClassName = useActionsBaseClassName();\n const citationBaseClassName = useCitationBaseClassName();\n const labelBaseClassName = useLabelBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const rootBaseClassName = useRootBaseClassName();\n const rootStyles = useRootStyles();\n\n let actionsPresent = false;\n if (state.actions) {\n actionsPresent = true;\n state.actions.className = mergeClasses(\n previewHeaderClassNames.actions,\n actionsBaseClassName,\n state.actions.className,\n );\n }\n\n let citationPresent = false;\n if (state.citation) {\n citationPresent = true;\n state.citation.className = mergeClasses(\n previewHeaderClassNames.citation,\n citationBaseClassName,\n state.citation.className,\n );\n }\n\n state.label.className = mergeClasses(previewHeaderClassNames.label, labelBaseClassName, state.label.className);\n\n let mediaPresent = false;\n if (state.media) {\n mediaPresent = true;\n state.media.className = mergeClasses(previewHeaderClassNames.media, mediaBaseClassName, state.media.className);\n }\n\n state.root.className = mergeClasses(\n previewHeaderClassNames.root,\n rootBaseClassName,\n !citationPresent && !mediaPresent && !actionsPresent && rootStyles.onlyLabel,\n ((citationPresent && !mediaPresent) || (mediaPresent && !citationPresent)) &&\n !actionsPresent &&\n rootStyles.previousAndLabel,\n !citationPresent && !mediaPresent && actionsPresent && rootStyles.labelAndActions,\n citationPresent && mediaPresent && !actionsPresent && rootStyles.citationMediaLabel,\n ((citationPresent && !mediaPresent) || (mediaPresent && !citationPresent)) &&\n actionsPresent &&\n rootStyles.previousLabelActions,\n citationPresent && mediaPresent && actionsPresent && rootStyles.all,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["linkClassNames","makeResetStyles","makeStyles","mergeClasses","typographyStyles","tokens","previewHeaderClassNames","root","actions","citation","label","media","previewHeaderExtraClassNames","mediaChild","labelFontSize","caption1Strong","fontSize","labelLineHeight","lineHeight","useActionsBaseClassName","gridRow","justifySelf","useCitationBaseClassName","useLabelBaseClassName","alignSelf","display","overflowY","paddingTop","wordBreak","color","colorNeutralForeground3","colorNeutralForeground3Hover","colorNeutralForeground3Pressed","useMediaBaseClassName","height","width","useRootBaseClassName","alignItems","columnGap","spacingHorizontalXS","gridTemplateRows","useRootStyles","onlyLabel","gridTemplateColumns","previousAndLabel","labelAndActions","citationMediaLabel","previousLabelActions","all","usePreviewHeaderStyles_unstable","state","actionsBaseClassName","citationBaseClassName","labelBaseClassName","mediaBaseClassName","rootBaseClassName","rootStyles","actionsPresent","className","citationPresent","mediaPresent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SACEA,cAAc,EACdC,eAAe,EACfC,UAAU,EACVC,YAAY,EACZC,gBAAgB,QACX,6BAA6B;AACpC,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,0BAA8D;IACzEC,MAAM;IACNC,SAAS;IACTC,UAAU;IACVC,OAAO;IACPC,OAAO;AACT,EAAE;AAEF,OAAO,MAAMC,+BAA+B;IAC1CC,YAAY;AACd,EAAE;AAEF,MAAMC,gBAAgBV,iBAAiBW,cAAc,CAACC,QAAQ;AAC9D,MAAMC,kBAAkBb,iBAAiBW,cAAc,CAACG,UAAU;AAElE,MAAMC,0BAA0BlB,gBAAgB;IAC9CmB,SAAS;IACTC,aAAa;AACf;AAEA,MAAMC,2BAA2BrB,gBAAgB;IAC/CmB,SAAS;AACX;AAEA,MAAMG,wBAAwBtB,gBAAgB;IAC5CuB,WAAW;IACXC,SAAS;IACTL,SAAS;IACTM,WAAW;IACX,sEAAsE;IACtEC,YAAY,CAAC,mBAAmB,EAAEV,gBAAgB,GAAG,EAAEH,cAAc,EAAE,CAAC;IACxEc,WAAW;IAEX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EAC/B2C,sBACAD,MAAM1C,OAAO,CAACkD,SAAS;IAE3B;IAEA,IAAIC,kBAAkB;IACtB,IAAIT,MAAMzC,QAAQ,EAAE;QAClBkD,kBAAkB;QAClBT,MAAMzC,QAAQ,CAACiD,SAAS,GAAGvD,aACzBG,wBAAwBG,QAAQ,EAChC2C,uBACAF,MAAMzC,QAAQ,CAACiD,SAAS;IAE5B;IAEAR,MAAMxC,KAAK,CAACgD,SAAS,GAAGvD,aAAaG,wBAAwBI,KAAK,EAAE2C,oBAAoBH,MAAMxC,KAAK,CAACgD,SAAS;IAE7G,IAAIE,eAAe;IACnB,IAAIV,MAAMvC,KAAK,EAAE;QACfiD,eAAe;QACfV,MAAMvC,KAAK,CAAC+C,SAAS,GAAGvD,aAAaG,wBAAwBK,KAAK,EAAE2C,oBAAoBJ,MAAMvC,KAAK,CAAC+C,SAAS;IAC/G;IAEAR,MAAM3C,IAAI,CAACmD,SAAS,GAAGvD,aACrBG,wBAAwBC,IAAI,EAC5BgD,mBACA,CAACI,mBAAmB,CAACC,gBAAgB,CAACH,kBAAkBD,WAAWd,SAAS,EAC5E,AAAC,CAAA,AAACiB,mBAAmB,CAACC,gBAAkBA,gBAAgB,CAACD,eAAe,KACtE,CAACF,kBACDD,WAAWZ,gBAAgB,EAC7B,CAACe,mBAAmB,CAACC,gBAAgBH,kBAAkBD,WAAWX,eAAe,EACjFc,mBAAmBC,gBAAgB,CAACH,kBAAkBD,WAAWV,kBAAkB,EACnF,AAAC,CAAA,AAACa,mBAAmB,CAACC,gBAAkBA,gBAAgB,CAACD,eAAe,KACtEF,kBACAD,WAAWT,oBAAoB,EACjCY,mBAAmBC,gBAAgBH,kBAAkBD,WAAWR,GAAG,EACnEE,MAAM3C,IAAI,CAACmD,SAAS;IAGtB,OAAOR;AACT,EAAE"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { makeResetStyles, makeStyles, mergeClasses, shorthands, typographyStyles } from '@fluentui/react-components';
|
|
2
|
+
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
|
+
export const previewMetadataClassNames = {
|
|
4
|
+
root: 'fai-PreviewMetadata',
|
|
5
|
+
icon: 'fai-PreviewMetadata__icon',
|
|
6
|
+
primaryText: 'fai-PreviewMetadata__primaryText',
|
|
7
|
+
secondaryText: 'fai-PreviewMetadata__secondaryText',
|
|
8
|
+
tertiaryText: 'fai-PreviewMetadata__tertiaryText'
|
|
9
|
+
};
|
|
10
|
+
const useRootBaseClassName = makeResetStyles({
|
|
11
|
+
...typographyStyles.caption2
|
|
12
|
+
});
|
|
13
|
+
const useIconBaseClassName = makeResetStyles({
|
|
14
|
+
marginLeft: tokens.spacingHorizontalSNudge,
|
|
15
|
+
verticalAlign: 'middle'
|
|
16
|
+
});
|
|
17
|
+
const useTextStyles = makeStyles({
|
|
18
|
+
subsequentText: {
|
|
19
|
+
marginLeft: `calc(${tokens.spacingHorizontalSNudge} * 2)`,
|
|
20
|
+
position: 'relative',
|
|
21
|
+
'&::before': {
|
|
22
|
+
...shorthands.borderLeft(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke2),
|
|
23
|
+
content: '""',
|
|
24
|
+
display: 'block',
|
|
25
|
+
height: typographyStyles.caption2.fontSize,
|
|
26
|
+
left: `calc(-1 * ${tokens.spacingHorizontalSNudge})`,
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
top: `calc((${typographyStyles.caption2.lineHeight} - ${typographyStyles.caption2.fontSize}) / 2)`
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* Apply styling to the PreviewMetadata slots based on the state
|
|
34
|
+
*/
|
|
35
|
+
export const usePreviewMetadataStyles_unstable = state => {
|
|
36
|
+
'use no memo';
|
|
37
|
+
|
|
38
|
+
const rootBaseClassName = useRootBaseClassName();
|
|
39
|
+
const iconBaseClassName = useIconBaseClassName();
|
|
40
|
+
const textStyles = useTextStyles();
|
|
41
|
+
state.root.className = mergeClasses(previewMetadataClassNames.root, rootBaseClassName, state.root.className);
|
|
42
|
+
if (state.icon) {
|
|
43
|
+
state.icon.className = mergeClasses(previewMetadataClassNames.icon, iconBaseClassName, state.icon.className);
|
|
44
|
+
}
|
|
45
|
+
let isSubsequentAfterText = false;
|
|
46
|
+
if (state.primaryText) {
|
|
47
|
+
state.primaryText.className = mergeClasses(previewMetadataClassNames.primaryText, state.primaryText.className);
|
|
48
|
+
isSubsequentAfterText = true;
|
|
49
|
+
}
|
|
50
|
+
if (state.secondaryText) {
|
|
51
|
+
state.secondaryText.className = mergeClasses(previewMetadataClassNames.secondaryText, isSubsequentAfterText && textStyles.subsequentText, state.secondaryText.className);
|
|
52
|
+
isSubsequentAfterText = true;
|
|
53
|
+
}
|
|
54
|
+
if (state.tertiaryText) {
|
|
55
|
+
state.tertiaryText.className = mergeClasses(previewMetadataClassNames.tertiaryText, isSubsequentAfterText && textStyles.subsequentText, state.tertiaryText.className);
|
|
56
|
+
}
|
|
57
|
+
return state;
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=usePreviewMetadataStyles.styles.raw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePreviewMetadataStyles.styles.ts"],"sourcesContent":["import {\n makeResetStyles,\n makeStyles,\n mergeClasses,\n shorthands,\n typographyStyles,\n} from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewMetadataSlots, PreviewMetadataState } from './PreviewMetadata.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewMetadataClassNames: SlotClassNames<PreviewMetadataSlots> = {\n root: 'fai-PreviewMetadata',\n icon: 'fai-PreviewMetadata__icon',\n primaryText: 'fai-PreviewMetadata__primaryText',\n secondaryText: 'fai-PreviewMetadata__secondaryText',\n tertiaryText: 'fai-PreviewMetadata__tertiaryText',\n};\n\nconst useRootBaseClassName = makeResetStyles({\n ...typographyStyles.caption2,\n});\n\nconst useIconBaseClassName = makeResetStyles({\n marginLeft: tokens.spacingHorizontalSNudge,\n verticalAlign: 'middle',\n});\n\nconst useTextStyles = makeStyles({\n subsequentText: {\n marginLeft: `calc(${tokens.spacingHorizontalSNudge} * 2)`,\n position: 'relative',\n\n '&::before': {\n ...shorthands.borderLeft(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke2),\n content: '\"\"',\n display: 'block',\n height: typographyStyles.caption2.fontSize,\n left: `calc(-1 * ${tokens.spacingHorizontalSNudge})`,\n position: 'absolute',\n top: `calc((${typographyStyles.caption2.lineHeight} - ${typographyStyles.caption2.fontSize}) / 2)`,\n },\n },\n});\n\n/**\n * Apply styling to the PreviewMetadata slots based on the state\n */\nexport const usePreviewMetadataStyles_unstable = (state: PreviewMetadataState): PreviewMetadataState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n const iconBaseClassName = useIconBaseClassName();\n const textStyles = useTextStyles();\n\n state.root.className = mergeClasses(previewMetadataClassNames.root, rootBaseClassName, state.root.className);\n\n if (state.icon) {\n state.icon.className = mergeClasses(previewMetadataClassNames.icon, iconBaseClassName, state.icon.className);\n }\n\n let isSubsequentAfterText = false;\n\n if (state.primaryText) {\n state.primaryText.className = mergeClasses(previewMetadataClassNames.primaryText, state.primaryText.className);\n isSubsequentAfterText = true;\n }\n\n if (state.secondaryText) {\n state.secondaryText.className = mergeClasses(\n previewMetadataClassNames.secondaryText,\n isSubsequentAfterText && textStyles.subsequentText,\n state.secondaryText.className,\n );\n isSubsequentAfterText = true;\n }\n\n if (state.tertiaryText) {\n state.tertiaryText.className = mergeClasses(\n previewMetadataClassNames.tertiaryText,\n isSubsequentAfterText && textStyles.subsequentText,\n state.tertiaryText.className,\n );\n }\n\n return state;\n};\n"],"names":["makeResetStyles","makeStyles","mergeClasses","shorthands","typographyStyles","tokens","previewMetadataClassNames","root","icon","primaryText","secondaryText","tertiaryText","useRootBaseClassName","caption2","useIconBaseClassName","marginLeft","spacingHorizontalSNudge","verticalAlign","useTextStyles","subsequentText","position","borderLeft","strokeWidthThin","colorNeutralStroke2","content","display","height","fontSize","left","top","lineHeight","usePreviewMetadataStyles_unstable","state","rootBaseClassName","iconBaseClassName","textStyles","className","isSubsequentAfterText"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SACEA,eAAe,EACfC,UAAU,EACVC,YAAY,EACZC,UAAU,EACVC,gBAAgB,QACX,6BAA6B;AACpC,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,4BAAkE;IAC7EC,MAAM;IACNC,MAAM;IACNC,aAAa;IACbC,eAAe;IACfC,cAAc;AAChB,EAAE;AAEF,MAAMC,uBAAuBZ,gBAAgB;IAC3C,GAAGI,iBAAiBS,QAAQ;AAC9B;AAEA,MAAMC,uBAAuBd,gBAAgB;IAC3Ce,YAAYV,OAAOW,uBAAuB;IAC1CC,eAAe;AACjB;AAEA,MAAMC,gBAAgBjB,WAAW;IAC/BkB,gBAAgB;QACdJ,YAAY,CAAC,KAAK,EAAEV,OAAOW,uBAAuB,CAAC,KAAK,CAAC;QACzDI,UAAU;QAEV,aAAa;YACX,GAAGjB,WAAWkB,UAAU,CAAChB,OAAOiB,eAAe,EAAE,SAASjB,OAAOkB,mBAAmB,CAAC;YACrFC,SAAS;YACTC,SAAS;YACTC,QAAQtB,iBAAiBS,QAAQ,CAACc,QAAQ;YAC1CC,MAAM,CAAC,UAAU,EAAEvB,OAAOW,uBAAuB,CAAC,CAAC,CAAC;YACpDI,UAAU;YACVS,KAAK,CAAC,MAAM,EAAEzB,iBAAiBS,QAAQ,CAACiB,UAAU,CAAC,GAAG,EAAE1B,iBAAiBS,QAAQ,CAACc,QAAQ,CAAC,MAAM,CAAC;QACpG;IACF;AACF;AAEA;;CAEC,GACD,OAAO,MAAMI,oCAAoC,CAACC;IAChD;IAEA,MAAMC,oBAAoBrB;IAC1B,MAAMsB,oBAAoBpB;IAC1B,MAAMqB,aAAajB;IAEnBc,MAAMzB,IAAI,CAAC6B,SAAS,GAAGlC,aAAaI,0BAA0BC,IAAI,EAAE0B,mBAAmBD,MAAMzB,IAAI,CAAC6B,SAAS;IAE3G,IAAIJ,MAAMxB,IAAI,EAAE;QACdwB,MAAMxB,IAAI,CAAC4B,SAAS,GAAGlC,aAAaI,0BAA0BE,IAAI,EAAE0B,mBAAmBF,MAAMxB,IAAI,CAAC4B,SAAS;IAC7G;IAEA,IAAIC,wBAAwB;IAE5B,IAAIL,MAAMvB,WAAW,EAAE;QACrBuB,MAAMvB,WAAW,CAAC2B,SAAS,GAAGlC,aAAaI,0BAA0BG,WAAW,EAAEuB,MAAMvB,WAAW,CAAC2B,SAAS;QAC7GC,wBAAwB;IAC1B;IAEA,IAAIL,MAAMtB,aAAa,EAAE;QACvBsB,MAAMtB,aAAa,CAAC0B,SAAS,GAAGlC,aAC9BI,0BAA0BI,aAAa,EACvC2B,yBAAyBF,WAAWhB,cAAc,EAClDa,MAAMtB,aAAa,CAAC0B,SAAS;QAE/BC,wBAAwB;IAC1B;IAEA,IAAIL,MAAMrB,YAAY,EAAE;QACtBqB,MAAMrB,YAAY,CAACyB,SAAS,GAAGlC,aAC7BI,0BAA0BK,YAAY,EACtC0B,yBAAyBF,WAAWhB,cAAc,EAClDa,MAAMrB,YAAY,CAACyB,SAAS;IAEhC;IAEA,OAAOJ;AACT,EAAE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { makeStyles, mergeClasses, usePopoverSurfaceStyles_unstable } from '@fluentui/react-components';
|
|
2
|
+
import { tokens } from '@fluentui-copilot/tokens';
|
|
3
|
+
export const previewSurfaceClassNames = {
|
|
4
|
+
root: 'fai-PreviewSurface'
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Styles for the root slot
|
|
8
|
+
*/
|
|
9
|
+
const useRootStyles = makeStyles({
|
|
10
|
+
base: {
|
|
11
|
+
padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,
|
|
12
|
+
boxSizing: 'border-box'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const useNextStyles = makeStyles({
|
|
16
|
+
root: {
|
|
17
|
+
borderRadius: tokens.borderRadiusXLarge
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Apply styling to the PreviewSurface slots based on the state
|
|
22
|
+
*/
|
|
23
|
+
export const usePreviewSurfaceStyles_unstable = state => {
|
|
24
|
+
'use no memo';
|
|
25
|
+
|
|
26
|
+
const {
|
|
27
|
+
designVersion
|
|
28
|
+
} = state;
|
|
29
|
+
const rootStyles = useRootStyles();
|
|
30
|
+
const nextStyles = useNextStyles();
|
|
31
|
+
state.root.className = mergeClasses(previewSurfaceClassNames.root, rootStyles.base, designVersion === 'next' && nextStyles.root, state.root.className);
|
|
32
|
+
usePopoverSurfaceStyles_unstable(state);
|
|
33
|
+
return state;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=usePreviewSurfaceStyles.styles.raw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePreviewSurfaceStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, usePopoverSurfaceStyles_unstable } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewSurfaceSlots, PreviewSurfaceState } from './PreviewSurface.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewSurfaceClassNames: SlotClassNames<PreviewSurfaceSlots> = {\n root: 'fai-PreviewSurface',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootStyles = makeStyles({\n base: {\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n boxSizing: 'border-box',\n },\n});\n\nconst useNextStyles = makeStyles({\n root: {\n borderRadius: tokens.borderRadiusXLarge,\n },\n});\n\n/**\n * Apply styling to the PreviewSurface slots based on the state\n */\nexport const usePreviewSurfaceStyles_unstable = (state: PreviewSurfaceState): PreviewSurfaceState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootStyles = useRootStyles();\n const nextStyles = useNextStyles();\n\n state.root.className = mergeClasses(\n previewSurfaceClassNames.root,\n rootStyles.base,\n designVersion === 'next' && nextStyles.root,\n state.root.className,\n );\n\n usePopoverSurfaceStyles_unstable(state);\n\n return state;\n};\n"],"names":["makeStyles","mergeClasses","usePopoverSurfaceStyles_unstable","tokens","previewSurfaceClassNames","root","useRootStyles","base","padding","spacingVerticalXS","spacingHorizontalXS","boxSizing","useNextStyles","borderRadius","borderRadiusXLarge","usePreviewSurfaceStyles_unstable","state","designVersion","rootStyles","nextStyles","className"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,YAAY,EAAEC,gCAAgC,QAAQ,6BAA6B;AACxG,SAASC,MAAM,QAAQ,2BAA2B;AAIlD,OAAO,MAAMC,2BAAgE;IAC3EC,MAAM;AACR,EAAE;AAEF;;CAEC,GACD,MAAMC,gBAAgBN,WAAW;IAC/BO,MAAM;QACJC,SAAS,CAAC,EAAEL,OAAOM,iBAAiB,CAAC,CAAC,EAAEN,OAAOO,mBAAmB,CAAC,CAAC;QACpEC,WAAW;IACb;AACF;AAEA,MAAMC,gBAAgBZ,WAAW;IAC/BK,MAAM;QACJQ,cAAcV,OAAOW,kBAAkB;IACzC;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,mCAAmC,CAACC;IAC/C;IAEA,MAAM,EAAEC,aAAa,EAAE,GAAGD;IAE1B,MAAME,aAAaZ;IACnB,MAAMa,aAAaP;IAEnBI,MAAMX,IAAI,CAACe,SAAS,GAAGnB,aACrBG,yBAAyBC,IAAI,EAC7Ba,WAAWX,IAAI,EACfU,kBAAkB,UAAUE,WAAWd,IAAI,EAC3CW,MAAMX,IAAI,CAACe,SAAS;IAGtBlB,iCAAiCc;IAEjC,OAAOA;AACT,EAAE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
previewContentClassNames: function() {
|
|
13
|
+
return previewContentClassNames;
|
|
14
|
+
},
|
|
15
|
+
usePreviewContentStyles_unstable: function() {
|
|
16
|
+
return usePreviewContentStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
+
const _tokens = require("@fluentui-copilot/tokens");
|
|
21
|
+
const previewContentClassNames = {
|
|
22
|
+
root: 'fai-PreviewContent'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Styles for the root slot
|
|
26
|
+
*/ const useRootBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
27
|
+
color: _tokens.tokens.colorNeutralForeground3,
|
|
28
|
+
display: 'flex',
|
|
29
|
+
flexDirection: 'column',
|
|
30
|
+
maxWidth: `calc(256px - ${_tokens.tokens.spacingHorizontalXS} * 2)`,
|
|
31
|
+
padding: `${_tokens.tokens.spacingVerticalS} ${_tokens.tokens.spacingHorizontalS}`,
|
|
32
|
+
rowGap: _tokens.tokens.spacingVerticalXS,
|
|
33
|
+
wordBreak: 'break-word',
|
|
34
|
+
boxSizing: 'border-box',
|
|
35
|
+
..._reactcomponents.typographyStyles.caption1
|
|
36
|
+
});
|
|
37
|
+
const usePreviewContentStyles_unstable = (state)=>{
|
|
38
|
+
'use no memo';
|
|
39
|
+
const rootBaseClassName = useRootBaseClassName();
|
|
40
|
+
state.root.className = (0, _reactcomponents.mergeClasses)(previewContentClassNames.root, rootBaseClassName, state.root.className);
|
|
41
|
+
return state;
|
|
42
|
+
}; //# sourceMappingURL=usePreviewContentStyles.styles.raw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePreviewContentStyles.styles.ts"],"sourcesContent":["import { makeResetStyles, mergeClasses, typographyStyles } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewContentSlots, PreviewContentState } from './PreviewContent.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewContentClassNames: SlotClassNames<PreviewContentSlots> = {\n root: 'fai-PreviewContent',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootBaseClassName = makeResetStyles({\n color: tokens.colorNeutralForeground3,\n display: 'flex',\n flexDirection: 'column',\n maxWidth: `calc(256px - ${tokens.spacingHorizontalXS} * 2)`,\n padding: `${tokens.spacingVerticalS} ${tokens.spacingHorizontalS}`,\n rowGap: tokens.spacingVerticalXS,\n wordBreak: 'break-word',\n boxSizing: 'border-box',\n ...typographyStyles.caption1,\n});\n\n/**\n * Apply styling to the PreviewContent slots based on the state\n */\nexport const usePreviewContentStyles_unstable = (state: PreviewContentState): PreviewContentState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n\n state.root.className = mergeClasses(previewContentClassNames.root, rootBaseClassName, state.root.className);\n\n return state;\n};\n"],"names":["previewContentClassNames","rootBaseClassName","useRootBaseClassName","root","color","colorNeutralForeground3","display","flexDirection","padding","spacingVerticalS","spacingHorizontalS","rowGap","tokens","spacingVerticalXS","wordBreak","boxSizing","typographyStyles","caption1"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,wBAAAA;eAAAA;;IAyBLC,gCAAoBC;eAApBD;;;iCA9BwD;wBACzC;AAIhB,MAAMD,2BAAgE;UAC3EG;AACF;AAEA;;CAEC,SAECC,uBAAcC,IAAAA,gCAAuB,EAAA;WACrCC,cAAS,CAAAD,uBAAA;aACTE;mBACW;cACXC,CAAS,aAAUC,EAAAA,cAAAA,CAAAA,mBAA2BC,CAAAA,KAAAA,CAAAA;aAC9CC,CAAQC,EAAAA,cAAOC,CAAAA,gBAAiB,CAAA,CAAA,EAAAD,cAAA,CAAAF,kBAAA,CAAA,CAAA;YAChCI,cAAW,CAAAD,iBAAA;eACXE;eACGC;IACL,GAAAA,iCAAA,CAAAC,QAAA;AAEA;AAME,MAAMhB,mCAAoBC,CAAAA;;IAK1B,MAAAD,oBAAAC"}
|
|
@@ -38,8 +38,11 @@ const useActionsBaseClassName = (0, _reactcomponents.__resetStyles)("ry18yy9", n
|
|
|
38
38
|
const useCitationBaseClassName = (0, _reactcomponents.__resetStyles)("ry1eqmj", null, [
|
|
39
39
|
".ry1eqmj{grid-row:1;}"
|
|
40
40
|
]);
|
|
41
|
-
const useLabelBaseClassName = (0, _reactcomponents.__resetStyles)("
|
|
42
|
-
".
|
|
41
|
+
const useLabelBaseClassName = (0, _reactcomponents.__resetStyles)("rattnj5", null, [
|
|
42
|
+
".rattnj5{align-self:start;display:-webkit-box;grid-row:1/3;overflow-y:hidden;padding-top:calc((16px / 2) - (var(--lineHeightBase200) - var(--fontSizeBase200)));word-break:break-word;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);}",
|
|
43
|
+
".rattnj5 .fui-Link{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);color:var(--colorNeutralForeground3);}",
|
|
44
|
+
".rattnj5 .fui-Link:hover{color:var(--colorNeutralForeground3Hover);}",
|
|
45
|
+
".rattnj5 .fui-Link:hover:active{color:var(--colorNeutralForeground3Pressed);}"
|
|
43
46
|
]);
|
|
44
47
|
const useMediaBaseClassName = (0, _reactcomponents.__resetStyles)("rcisese", null, [
|
|
45
48
|
".rcisese{grid-row:1;height:16px;line-height:0;width:16px;}",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["usePreviewHeaderStyles.styles.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["usePreviewHeaderStyles.styles.ts"],"sourcesContent":["import {\n linkClassNames,\n makeResetStyles,\n makeStyles,\n mergeClasses,\n typographyStyles,\n} from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewHeaderSlots, PreviewHeaderState } from './PreviewHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewHeaderClassNames: SlotClassNames<PreviewHeaderSlots> = {\n root: 'fai-PreviewHeader',\n actions: 'fai-PreviewHeader__actions',\n citation: 'fai-PreviewHeader__citation',\n label: 'fai-PreviewHeader__label',\n media: 'fai-PreviewHeader__media',\n};\n\nexport const previewHeaderExtraClassNames = {\n mediaChild: 'fai-PreviewHeader__mediaChild',\n};\n\nconst labelFontSize = typographyStyles.caption1Strong.fontSize;\nconst labelLineHeight = typographyStyles.caption1Strong.lineHeight;\n\nconst useActionsBaseClassName = makeResetStyles({\n gridRow: 1,\n justifySelf: 'end',\n});\n\nconst useCitationBaseClassName = makeResetStyles({\n gridRow: 1,\n});\n\nconst useLabelBaseClassName = makeResetStyles({\n alignSelf: 'start',\n display: '-webkit-box',\n gridRow: '1 / 3',\n overflowY: 'hidden',\n // 16px is the height of the tallest element within the preview header\n paddingTop: `calc((16px / 2) - (${labelLineHeight} - ${labelFontSize}))`,\n wordBreak: 'break-word',\n\n '-webkit-box-orient': 'vertical',\n '-webkit-line-clamp': '2',\n\n ...typographyStyles.caption1Strong,\n\n [`& .${linkClassNames.root}`]: {\n ...typographyStyles.caption1Strong,\n color: tokens.colorNeutralForeground3,\n\n ':hover': {\n color: tokens.colorNeutralForeground3Hover,\n },\n ':hover:active': {\n color: tokens.colorNeutralForeground3Pressed,\n },\n },\n});\n\nconst useMediaBaseClassName = makeResetStyles({\n gridRow: 1,\n height: '16px',\n lineHeight: 0,\n width: '16px',\n\n [`> .${previewHeaderExtraClassNames.mediaChild}`]: {\n height: '16px',\n width: '16px',\n },\n});\n\nconst useRootBaseClassName = makeResetStyles({\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalXS,\n display: 'grid',\n gridTemplateRows: '24px',\n});\n\n// Since the grid track that needs to grow is not always guaranteed to be the first or the last, but can change positions\n// based on the slots present, we need to conditionally set the grid template columns based on the slots present.\nconst useRootStyles = makeStyles({\n onlyLabel: {\n gridTemplateColumns: '1fr',\n },\n previousAndLabel: {\n gridTemplateColumns: 'min-content 1fr',\n },\n labelAndActions: {\n gridTemplateColumns: '1fr min-content',\n },\n citationMediaLabel: {\n gridTemplateColumns: 'min-content min-content 1fr',\n },\n previousLabelActions: {\n gridTemplateColumns: 'min-content 1fr min-content',\n },\n all: {\n gridTemplateColumns: 'min-content min-content 1fr min-content',\n },\n});\n\n/**\n * Apply styling to the PreviewHeader slots based on the state\n */\nexport const usePreviewHeaderStyles_unstable = (state: PreviewHeaderState): PreviewHeaderState => {\n 'use no memo';\n\n const actionsBaseClassName = useActionsBaseClassName();\n const citationBaseClassName = useCitationBaseClassName();\n const labelBaseClassName = useLabelBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const rootBaseClassName = useRootBaseClassName();\n const rootStyles = useRootStyles();\n\n let actionsPresent = false;\n if (state.actions) {\n actionsPresent = true;\n state.actions.className = mergeClasses(\n previewHeaderClassNames.actions,\n actionsBaseClassName,\n state.actions.className,\n );\n }\n\n let citationPresent = false;\n if (state.citation) {\n citationPresent = true;\n state.citation.className = mergeClasses(\n previewHeaderClassNames.citation,\n citationBaseClassName,\n state.citation.className,\n );\n }\n\n state.label.className = mergeClasses(previewHeaderClassNames.label, labelBaseClassName, state.label.className);\n\n let mediaPresent = false;\n if (state.media) {\n mediaPresent = true;\n state.media.className = mergeClasses(previewHeaderClassNames.media, mediaBaseClassName, state.media.className);\n }\n\n state.root.className = mergeClasses(\n previewHeaderClassNames.root,\n rootBaseClassName,\n !citationPresent && !mediaPresent && !actionsPresent && rootStyles.onlyLabel,\n ((citationPresent && !mediaPresent) || (mediaPresent && !citationPresent)) &&\n !actionsPresent &&\n rootStyles.previousAndLabel,\n !citationPresent && !mediaPresent && actionsPresent && rootStyles.labelAndActions,\n citationPresent && mediaPresent && !actionsPresent && rootStyles.citationMediaLabel,\n ((citationPresent && !mediaPresent) || (mediaPresent && !citationPresent)) &&\n actionsPresent &&\n rootStyles.previousLabelActions,\n citationPresent && mediaPresent && actionsPresent && rootStyles.all,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["previewHeaderClassNames","previewHeaderExtraClassNames","lineHeight","root","actions","citation","label","media","mediaChild","labelFontSize","typographyStyles","caption1Strong","fontSize","labelLineHeight","useActionsBaseClassName","makeResetStyles","gridRow","__resetStyles","justifySelf","useMediaBaseClassName","useCitationBaseClassName","useLabelBaseClassName","alignSelf","display","Budl1dq","linkClassNames","colorNeutralForeground3","state","height","width","labelBaseClassName","mediaBaseClassName","useRootBaseClassName","alignItems","useRootStyles","columnGap","spacingHorizontalXS","gridTemplateRows","className","mergeClasses","actionsBaseClassName","citationPresent","makeStyles","onlyLabel","gridTemplateColumns","citationBaseClassName","previousAndLabel","labelAndActions","citationMediaLabel","rootBaseClassName","mediaPresent","actionsPresent","rootStyles","previousLabelActions","all"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAWaA,uBAAAA;eAAAA;;IAQAC,4BAAAA;eAAAA;;IA8CXC,+BAAY;eAAZA;;;iCA5DgB;AAMX,MAAMF,0BAA8D;UACzEG;aACAC;cACAC;WACAC;WACAC;AACF;AAEO,MAAMN,+BAA+B;gBAC1CO;AACF;AAEA,MAAMC,gBAAgBC,iCAAAA,CAAiBC,cAAc,CAACC,QAAQ;AAC9D,MAAMC,kBAAkBH,iCAAAA,CAAiBC,cAAc,CAACT,UAAU;AAElE,MAAMY,0BAA0BC,IA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eAAAA;cACEH,KAAAA,CAAAA,SAAAA,GAAAA,IAAAA,6BAAqB,EAAA5C,wBAAAO,KAAA,EAAAwB,oBAAAJ,MAAApB,KAAA,CAAA+B,SAAA;;UAEvBU,IAAAA,CAAAA,SAAAA,GAAoBT,IAAAA,6BAAA,EAAAvC,wBAAAG,IAAA,EAAA8C,mBAAA,CAAAR,mBAAA,CAAAS,gBAAA,CAAAC,kBAAAC,WAAAT,SAAA,EAAA,AAAAF,CAAAA,mBAAA,CAAAS,gBAAAA,gBAAA,CAAAT,eAAA,KAAA,CAAAU,kBAAAC,WAAAN,gBAAA,EAAA,CAAAL,mBAAA,CAAAS,gBAAAC,kBAAAC,WAAAL,eAAA,EAAAN,mBAAAS,gBAAA,CAAAC,kBAAAC,WAAAJ,kBAAA,EAAA,AAAAP,CAAAA,mBAAA,CAAAS,gBAAAA,gBAAA,CAAAT,eAAA,KAAAU,kBAAAC,WAAAC,oBAAA,EAAAZ,mBAAAS,gBAAAC,kBAAAC,WAAAE,GAAA,EAAA3B,MAAAxB,IAAA,CAAAmC,SAAA;WAClBM;4DAEoB"}
|
|
@@ -0,0 +1,129 @@
|
|
|
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
|
+
previewHeaderClassNames: function() {
|
|
13
|
+
return previewHeaderClassNames;
|
|
14
|
+
},
|
|
15
|
+
previewHeaderExtraClassNames: function() {
|
|
16
|
+
return previewHeaderExtraClassNames;
|
|
17
|
+
},
|
|
18
|
+
usePreviewHeaderStyles_unstable: function() {
|
|
19
|
+
return usePreviewHeaderStyles_unstable;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
23
|
+
const _tokens = require("@fluentui-copilot/tokens");
|
|
24
|
+
const previewHeaderClassNames = {
|
|
25
|
+
root: 'fai-PreviewHeader',
|
|
26
|
+
actions: 'fai-PreviewHeader__actions',
|
|
27
|
+
citation: 'fai-PreviewHeader__citation',
|
|
28
|
+
label: 'fai-PreviewHeader__label',
|
|
29
|
+
media: 'fai-PreviewHeader__media'
|
|
30
|
+
};
|
|
31
|
+
const previewHeaderExtraClassNames = {
|
|
32
|
+
mediaChild: 'fai-PreviewHeader__mediaChild'
|
|
33
|
+
};
|
|
34
|
+
const labelFontSize = _reactcomponents.typographyStyles.caption1Strong.fontSize;
|
|
35
|
+
const labelLineHeight = _reactcomponents.typographyStyles.caption1Strong.lineHeight;
|
|
36
|
+
const useActionsBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
37
|
+
gridRow: 1,
|
|
38
|
+
justifySelf: 'end'
|
|
39
|
+
});
|
|
40
|
+
const useCitationBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
41
|
+
gridRow: 1
|
|
42
|
+
});
|
|
43
|
+
const useLabelBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
44
|
+
alignSelf: 'start',
|
|
45
|
+
display: '-webkit-box',
|
|
46
|
+
gridRow: '1 / 3',
|
|
47
|
+
overflowY: 'hidden',
|
|
48
|
+
// 16px is the height of the tallest element within the preview header
|
|
49
|
+
paddingTop: `calc((16px / 2) - (${labelLineHeight} - ${labelFontSize}))`,
|
|
50
|
+
wordBreak: 'break-word',
|
|
51
|
+
'-webkit-box-orient': 'vertical',
|
|
52
|
+
'-webkit-line-clamp': '2',
|
|
53
|
+
..._reactcomponents.typographyStyles.caption1Strong,
|
|
54
|
+
[`& .${_reactcomponents.linkClassNames.root}`]: {
|
|
55
|
+
..._reactcomponents.typographyStyles.caption1Strong,
|
|
56
|
+
color: _tokens.tokens.colorNeutralForeground3,
|
|
57
|
+
':hover': {
|
|
58
|
+
color: _tokens.tokens.colorNeutralForeground3Hover
|
|
59
|
+
},
|
|
60
|
+
':hover:active': {
|
|
61
|
+
color: _tokens.tokens.colorNeutralForeground3Pressed
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
const useMediaBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
66
|
+
gridRow: 1,
|
|
67
|
+
height: '16px',
|
|
68
|
+
lineHeight: 0,
|
|
69
|
+
width: '16px',
|
|
70
|
+
[`> .${previewHeaderExtraClassNames.mediaChild}`]: {
|
|
71
|
+
height: '16px',
|
|
72
|
+
width: '16px'
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const useRootBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
columnGap: _tokens.tokens.spacingHorizontalXS,
|
|
78
|
+
display: 'grid',
|
|
79
|
+
gridTemplateRows: '24px'
|
|
80
|
+
});
|
|
81
|
+
// Since the grid track that needs to grow is not always guaranteed to be the first or the last, but can change positions
|
|
82
|
+
// based on the slots present, we need to conditionally set the grid template columns based on the slots present.
|
|
83
|
+
const useRootStyles = (0, _reactcomponents.makeStyles)({
|
|
84
|
+
onlyLabel: {
|
|
85
|
+
gridTemplateColumns: '1fr'
|
|
86
|
+
},
|
|
87
|
+
previousAndLabel: {
|
|
88
|
+
gridTemplateColumns: 'min-content 1fr'
|
|
89
|
+
},
|
|
90
|
+
labelAndActions: {
|
|
91
|
+
gridTemplateColumns: '1fr min-content'
|
|
92
|
+
},
|
|
93
|
+
citationMediaLabel: {
|
|
94
|
+
gridTemplateColumns: 'min-content min-content 1fr'
|
|
95
|
+
},
|
|
96
|
+
previousLabelActions: {
|
|
97
|
+
gridTemplateColumns: 'min-content 1fr min-content'
|
|
98
|
+
},
|
|
99
|
+
all: {
|
|
100
|
+
gridTemplateColumns: 'min-content min-content 1fr min-content'
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
const usePreviewHeaderStyles_unstable = (state)=>{
|
|
104
|
+
'use no memo';
|
|
105
|
+
const actionsBaseClassName = useActionsBaseClassName();
|
|
106
|
+
const citationBaseClassName = useCitationBaseClassName();
|
|
107
|
+
const labelBaseClassName = useLabelBaseClassName();
|
|
108
|
+
const mediaBaseClassName = useMediaBaseClassName();
|
|
109
|
+
const rootBaseClassName = useRootBaseClassName();
|
|
110
|
+
const rootStyles = useRootStyles();
|
|
111
|
+
let actionsPresent = false;
|
|
112
|
+
if (state.actions) {
|
|
113
|
+
actionsPresent = true;
|
|
114
|
+
state.actions.className = (0, _reactcomponents.mergeClasses)(previewHeaderClassNames.actions, actionsBaseClassName, state.actions.className);
|
|
115
|
+
}
|
|
116
|
+
let citationPresent = false;
|
|
117
|
+
if (state.citation) {
|
|
118
|
+
citationPresent = true;
|
|
119
|
+
state.citation.className = (0, _reactcomponents.mergeClasses)(previewHeaderClassNames.citation, citationBaseClassName, state.citation.className);
|
|
120
|
+
}
|
|
121
|
+
state.label.className = (0, _reactcomponents.mergeClasses)(previewHeaderClassNames.label, labelBaseClassName, state.label.className);
|
|
122
|
+
let mediaPresent = false;
|
|
123
|
+
if (state.media) {
|
|
124
|
+
mediaPresent = true;
|
|
125
|
+
state.media.className = (0, _reactcomponents.mergeClasses)(previewHeaderClassNames.media, mediaBaseClassName, state.media.className);
|
|
126
|
+
}
|
|
127
|
+
state.root.className = (0, _reactcomponents.mergeClasses)(previewHeaderClassNames.root, rootBaseClassName, !citationPresent && !mediaPresent && !actionsPresent && rootStyles.onlyLabel, (citationPresent && !mediaPresent || mediaPresent && !citationPresent) && !actionsPresent && rootStyles.previousAndLabel, !citationPresent && !mediaPresent && actionsPresent && rootStyles.labelAndActions, citationPresent && mediaPresent && !actionsPresent && rootStyles.citationMediaLabel, (citationPresent && !mediaPresent || mediaPresent && !citationPresent) && actionsPresent && rootStyles.previousLabelActions, citationPresent && mediaPresent && actionsPresent && rootStyles.all, state.root.className);
|
|
128
|
+
return state;
|
|
129
|
+
}; //# sourceMappingURL=usePreviewHeaderStyles.styles.raw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePreviewHeaderStyles.styles.ts"],"sourcesContent":["import {\n linkClassNames,\n makeResetStyles,\n makeStyles,\n mergeClasses,\n typographyStyles,\n} from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewHeaderSlots, PreviewHeaderState } from './PreviewHeader.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewHeaderClassNames: SlotClassNames<PreviewHeaderSlots> = {\n root: 'fai-PreviewHeader',\n actions: 'fai-PreviewHeader__actions',\n citation: 'fai-PreviewHeader__citation',\n label: 'fai-PreviewHeader__label',\n media: 'fai-PreviewHeader__media',\n};\n\nexport const previewHeaderExtraClassNames = {\n mediaChild: 'fai-PreviewHeader__mediaChild',\n};\n\nconst labelFontSize = typographyStyles.caption1Strong.fontSize;\nconst labelLineHeight = typographyStyles.caption1Strong.lineHeight;\n\nconst useActionsBaseClassName = makeResetStyles({\n gridRow: 1,\n justifySelf: 'end',\n});\n\nconst useCitationBaseClassName = makeResetStyles({\n gridRow: 1,\n});\n\nconst useLabelBaseClassName = makeResetStyles({\n alignSelf: 'start',\n display: '-webkit-box',\n gridRow: '1 / 3',\n overflowY: 'hidden',\n // 16px is the height of the tallest element within the preview header\n paddingTop: `calc((16px / 2) - (${labelLineHeight} - ${labelFontSize}))`,\n wordBreak: 'break-word',\n\n '-webkit-box-orient': 'vertical',\n '-webkit-line-clamp': '2',\n\n ...typographyStyles.caption1Strong,\n\n [`& .${linkClassNames.root}`]: {\n ...typographyStyles.caption1Strong,\n color: tokens.colorNeutralForeground3,\n\n ':hover': {\n color: tokens.colorNeutralForeground3Hover,\n },\n ':hover:active': {\n color: tokens.colorNeutralForeground3Pressed,\n },\n },\n});\n\nconst useMediaBaseClassName = makeResetStyles({\n gridRow: 1,\n height: '16px',\n lineHeight: 0,\n width: '16px',\n\n [`> .${previewHeaderExtraClassNames.mediaChild}`]: {\n height: '16px',\n width: '16px',\n },\n});\n\nconst useRootBaseClassName = makeResetStyles({\n alignItems: 'center',\n columnGap: tokens.spacingHorizontalXS,\n display: 'grid',\n gridTemplateRows: '24px',\n});\n\n// Since the grid track that needs to grow is not always guaranteed to be the first or the last, but can change positions\n// based on the slots present, we need to conditionally set the grid template columns based on the slots present.\nconst useRootStyles = makeStyles({\n onlyLabel: {\n gridTemplateColumns: '1fr',\n },\n previousAndLabel: {\n gridTemplateColumns: 'min-content 1fr',\n },\n labelAndActions: {\n gridTemplateColumns: '1fr min-content',\n },\n citationMediaLabel: {\n gridTemplateColumns: 'min-content min-content 1fr',\n },\n previousLabelActions: {\n gridTemplateColumns: 'min-content 1fr min-content',\n },\n all: {\n gridTemplateColumns: 'min-content min-content 1fr min-content',\n },\n});\n\n/**\n * Apply styling to the PreviewHeader slots based on the state\n */\nexport const usePreviewHeaderStyles_unstable = (state: PreviewHeaderState): PreviewHeaderState => {\n 'use no memo';\n\n const actionsBaseClassName = useActionsBaseClassName();\n const citationBaseClassName = useCitationBaseClassName();\n const labelBaseClassName = useLabelBaseClassName();\n const mediaBaseClassName = useMediaBaseClassName();\n const rootBaseClassName = useRootBaseClassName();\n const rootStyles = useRootStyles();\n\n let actionsPresent = false;\n if (state.actions) {\n actionsPresent = true;\n state.actions.className = mergeClasses(\n previewHeaderClassNames.actions,\n actionsBaseClassName,\n state.actions.className,\n );\n }\n\n let citationPresent = false;\n if (state.citation) {\n citationPresent = true;\n state.citation.className = mergeClasses(\n previewHeaderClassNames.citation,\n citationBaseClassName,\n state.citation.className,\n );\n }\n\n state.label.className = mergeClasses(previewHeaderClassNames.label, labelBaseClassName, state.label.className);\n\n let mediaPresent = false;\n if (state.media) {\n mediaPresent = true;\n state.media.className = mergeClasses(previewHeaderClassNames.media, mediaBaseClassName, state.media.className);\n }\n\n state.root.className = mergeClasses(\n previewHeaderClassNames.root,\n rootBaseClassName,\n !citationPresent && !mediaPresent && !actionsPresent && rootStyles.onlyLabel,\n ((citationPresent && !mediaPresent) || (mediaPresent && !citationPresent)) &&\n !actionsPresent &&\n rootStyles.previousAndLabel,\n !citationPresent && !mediaPresent && actionsPresent && rootStyles.labelAndActions,\n citationPresent && mediaPresent && !actionsPresent && rootStyles.citationMediaLabel,\n ((citationPresent && !mediaPresent) || (mediaPresent && !citationPresent)) &&\n actionsPresent &&\n rootStyles.previousLabelActions,\n citationPresent && mediaPresent && actionsPresent && rootStyles.all,\n state.root.className,\n );\n\n return state;\n};\n"],"names":["previewHeaderClassNames","previewHeaderExtraClassNames","usePreviewHeaderStyles_unstable","root","actions","citation","label","media","mediaChild","labelFontSize","typographyStyles","caption1Strong","fontSize","labelLineHeight","lineHeight","useActionsBaseClassName","makeResetStyles","gridRow","justifySelf","useCitationBaseClassName","useLabelBaseClassName","alignSelf","display","overflowY","paddingTop","wordBreak","linkClassNames","color","tokens","colorNeutralForeground3","colorNeutralForeground3Hover","colorNeutralForeground3Pressed","useMediaBaseClassName","height","width","useRootBaseClassName","alignItems","columnGap","spacingHorizontalXS","gridTemplateRows","useRootStyles","makeStyles","onlyLabel","gridTemplateColumns","previousAndLabel","labelAndActions","citationMediaLabel","previousLabelActions","all","state","actionsBaseClassName","citationBaseClassName","labelBaseClassName","rootBaseClassName","mediaBaseClassName","actionsPresent","citationPresent","mergeClasses","className","mediaPresent","rootStyles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAWaA,uBAAAA;eAAAA;;IAQAC,4BAAAA;eAAAA;;IAyFXC,+BAAA;eAAAA;;;iCAtGK;wBACgB;AAIhB,MAAMF,0BAA8D;UACzEG;aACAC;cACAC;WACAC;WACAC;AACF;AAEO,MAAMN,+BAA+B;gBAC1CO;AACF;AAEA,MAAMC,gBAAgBC,iCAAAA,C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|
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
|
+
previewMetadataClassNames: function() {
|
|
13
|
+
return previewMetadataClassNames;
|
|
14
|
+
},
|
|
15
|
+
usePreviewMetadataStyles_unstable: function() {
|
|
16
|
+
return usePreviewMetadataStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
+
const _tokens = require("@fluentui-copilot/tokens");
|
|
21
|
+
const previewMetadataClassNames = {
|
|
22
|
+
root: 'fai-PreviewMetadata',
|
|
23
|
+
icon: 'fai-PreviewMetadata__icon',
|
|
24
|
+
primaryText: 'fai-PreviewMetadata__primaryText',
|
|
25
|
+
secondaryText: 'fai-PreviewMetadata__secondaryText',
|
|
26
|
+
tertiaryText: 'fai-PreviewMetadata__tertiaryText'
|
|
27
|
+
};
|
|
28
|
+
const useRootBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
29
|
+
..._reactcomponents.typographyStyles.caption2
|
|
30
|
+
});
|
|
31
|
+
const useIconBaseClassName = (0, _reactcomponents.makeResetStyles)({
|
|
32
|
+
marginLeft: _tokens.tokens.spacingHorizontalSNudge,
|
|
33
|
+
verticalAlign: 'middle'
|
|
34
|
+
});
|
|
35
|
+
const useTextStyles = (0, _reactcomponents.makeStyles)({
|
|
36
|
+
subsequentText: {
|
|
37
|
+
marginLeft: `calc(${_tokens.tokens.spacingHorizontalSNudge} * 2)`,
|
|
38
|
+
position: 'relative',
|
|
39
|
+
'&::before': {
|
|
40
|
+
..._reactcomponents.shorthands.borderLeft(_tokens.tokens.strokeWidthThin, 'solid', _tokens.tokens.colorNeutralStroke2),
|
|
41
|
+
content: '""',
|
|
42
|
+
display: 'block',
|
|
43
|
+
height: _reactcomponents.typographyStyles.caption2.fontSize,
|
|
44
|
+
left: `calc(-1 * ${_tokens.tokens.spacingHorizontalSNudge})`,
|
|
45
|
+
position: 'absolute',
|
|
46
|
+
top: `calc((${_reactcomponents.typographyStyles.caption2.lineHeight} - ${_reactcomponents.typographyStyles.caption2.fontSize}) / 2)`
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const usePreviewMetadataStyles_unstable = (state)=>{
|
|
51
|
+
'use no memo';
|
|
52
|
+
const rootBaseClassName = useRootBaseClassName();
|
|
53
|
+
const iconBaseClassName = useIconBaseClassName();
|
|
54
|
+
const textStyles = useTextStyles();
|
|
55
|
+
state.root.className = (0, _reactcomponents.mergeClasses)(previewMetadataClassNames.root, rootBaseClassName, state.root.className);
|
|
56
|
+
if (state.icon) {
|
|
57
|
+
state.icon.className = (0, _reactcomponents.mergeClasses)(previewMetadataClassNames.icon, iconBaseClassName, state.icon.className);
|
|
58
|
+
}
|
|
59
|
+
let isSubsequentAfterText = false;
|
|
60
|
+
if (state.primaryText) {
|
|
61
|
+
state.primaryText.className = (0, _reactcomponents.mergeClasses)(previewMetadataClassNames.primaryText, state.primaryText.className);
|
|
62
|
+
isSubsequentAfterText = true;
|
|
63
|
+
}
|
|
64
|
+
if (state.secondaryText) {
|
|
65
|
+
state.secondaryText.className = (0, _reactcomponents.mergeClasses)(previewMetadataClassNames.secondaryText, isSubsequentAfterText && textStyles.subsequentText, state.secondaryText.className);
|
|
66
|
+
isSubsequentAfterText = true;
|
|
67
|
+
}
|
|
68
|
+
if (state.tertiaryText) {
|
|
69
|
+
state.tertiaryText.className = (0, _reactcomponents.mergeClasses)(previewMetadataClassNames.tertiaryText, isSubsequentAfterText && textStyles.subsequentText, state.tertiaryText.className);
|
|
70
|
+
}
|
|
71
|
+
return state;
|
|
72
|
+
}; //# sourceMappingURL=usePreviewMetadataStyles.styles.raw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePreviewMetadataStyles.styles.ts"],"sourcesContent":["import {\n makeResetStyles,\n makeStyles,\n mergeClasses,\n shorthands,\n typographyStyles,\n} from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewMetadataSlots, PreviewMetadataState } from './PreviewMetadata.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewMetadataClassNames: SlotClassNames<PreviewMetadataSlots> = {\n root: 'fai-PreviewMetadata',\n icon: 'fai-PreviewMetadata__icon',\n primaryText: 'fai-PreviewMetadata__primaryText',\n secondaryText: 'fai-PreviewMetadata__secondaryText',\n tertiaryText: 'fai-PreviewMetadata__tertiaryText',\n};\n\nconst useRootBaseClassName = makeResetStyles({\n ...typographyStyles.caption2,\n});\n\nconst useIconBaseClassName = makeResetStyles({\n marginLeft: tokens.spacingHorizontalSNudge,\n verticalAlign: 'middle',\n});\n\nconst useTextStyles = makeStyles({\n subsequentText: {\n marginLeft: `calc(${tokens.spacingHorizontalSNudge} * 2)`,\n position: 'relative',\n\n '&::before': {\n ...shorthands.borderLeft(tokens.strokeWidthThin, 'solid', tokens.colorNeutralStroke2),\n content: '\"\"',\n display: 'block',\n height: typographyStyles.caption2.fontSize,\n left: `calc(-1 * ${tokens.spacingHorizontalSNudge})`,\n position: 'absolute',\n top: `calc((${typographyStyles.caption2.lineHeight} - ${typographyStyles.caption2.fontSize}) / 2)`,\n },\n },\n});\n\n/**\n * Apply styling to the PreviewMetadata slots based on the state\n */\nexport const usePreviewMetadataStyles_unstable = (state: PreviewMetadataState): PreviewMetadataState => {\n 'use no memo';\n\n const rootBaseClassName = useRootBaseClassName();\n const iconBaseClassName = useIconBaseClassName();\n const textStyles = useTextStyles();\n\n state.root.className = mergeClasses(previewMetadataClassNames.root, rootBaseClassName, state.root.className);\n\n if (state.icon) {\n state.icon.className = mergeClasses(previewMetadataClassNames.icon, iconBaseClassName, state.icon.className);\n }\n\n let isSubsequentAfterText = false;\n\n if (state.primaryText) {\n state.primaryText.className = mergeClasses(previewMetadataClassNames.primaryText, state.primaryText.className);\n isSubsequentAfterText = true;\n }\n\n if (state.secondaryText) {\n state.secondaryText.className = mergeClasses(\n previewMetadataClassNames.secondaryText,\n isSubsequentAfterText && textStyles.subsequentText,\n state.secondaryText.className,\n );\n isSubsequentAfterText = true;\n }\n\n if (state.tertiaryText) {\n state.tertiaryText.className = mergeClasses(\n previewMetadataClassNames.tertiaryText,\n isSubsequentAfterText && textStyles.subsequentText,\n state.tertiaryText.className,\n );\n }\n\n return state;\n};\n"],"names":["previewMetadataClassNames","usePreviewMetadataStyles_unstable","root","icon","primaryText","secondaryText","tertiaryText","useRootBaseClassName","makeResetStyles","typographyStyles","caption2","useIconBaseClassName","marginLeft","tokens","spacingHorizontalSNudge","verticalAlign","useTextStyles","makeStyles","subsequentText","position","shorthands","borderLeft","strokeWidthThin","colorNeutralStroke2","content","display","height","fontSize","left","top","lineHeight","state","rootBaseClassName","mergeClasses","className","iconBaseClassName","isSubsequentAfterText","textStyles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAWaA,yBAAAA;eAAAA;;IAsCXC,iCAAA;eAAAA;;;iCA3CK;wBACgB;AAIhB,MAAMD,4BAAkE;UAC7EE;UACAC;iBACAC;mBACAC;kBACAC;AACF;AAEA,MAAMC,uBAAuBC,IAAAA,gCAAAA,EAAgB;OAC3CC,iCAAGA,CAAAA,QAAiBC;AACtB;AAEA,MAAMC,uBAAuBH,IAAAA,gCAAAA,EAAgB;gBAC3CI,cAAYC,CAAAA,uBAAOC;mBACnBC;AACF;AAEA,MAAMC,gBAAgBC,IAAAA,2BAAAA,EAAW;oBAC/BC;oBACEN,CAAAA,KAAa,EAAAC,cAAOA,CAAAA,uBAAOC,CAAAA,KAAwB,CAAA;kBACnDK;qBAEA;0CACKC,CAAA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A,EAAAA,MAAAA,YAAAA,CAAAA,SAAAA;IACP"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
previewSurfaceClassNames: function() {
|
|
13
|
+
return previewSurfaceClassNames;
|
|
14
|
+
},
|
|
15
|
+
usePreviewSurfaceStyles_unstable: function() {
|
|
16
|
+
return usePreviewSurfaceStyles_unstable;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _reactcomponents = require("@fluentui/react-components");
|
|
20
|
+
const _tokens = require("@fluentui-copilot/tokens");
|
|
21
|
+
const previewSurfaceClassNames = {
|
|
22
|
+
root: 'fai-PreviewSurface'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Styles for the root slot
|
|
26
|
+
*/ const useRootStyles = (0, _reactcomponents.makeStyles)({
|
|
27
|
+
base: {
|
|
28
|
+
padding: `${_tokens.tokens.spacingVerticalXS} ${_tokens.tokens.spacingHorizontalXS}`,
|
|
29
|
+
boxSizing: 'border-box'
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const useNextStyles = (0, _reactcomponents.makeStyles)({
|
|
33
|
+
root: {
|
|
34
|
+
borderRadius: _tokens.tokens.borderRadiusXLarge
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
const usePreviewSurfaceStyles_unstable = (state)=>{
|
|
38
|
+
'use no memo';
|
|
39
|
+
const { designVersion } = state;
|
|
40
|
+
const rootStyles = useRootStyles();
|
|
41
|
+
const nextStyles = useNextStyles();
|
|
42
|
+
state.root.className = (0, _reactcomponents.mergeClasses)(previewSurfaceClassNames.root, rootStyles.base, designVersion === 'next' && nextStyles.root, state.root.className);
|
|
43
|
+
(0, _reactcomponents.usePopoverSurfaceStyles_unstable)(state);
|
|
44
|
+
return state;
|
|
45
|
+
}; //# sourceMappingURL=usePreviewSurfaceStyles.styles.raw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["usePreviewSurfaceStyles.styles.ts"],"sourcesContent":["import { makeStyles, mergeClasses, usePopoverSurfaceStyles_unstable } from '@fluentui/react-components';\nimport { tokens } from '@fluentui-copilot/tokens';\nimport type { PreviewSurfaceSlots, PreviewSurfaceState } from './PreviewSurface.types';\nimport type { SlotClassNames } from '@fluentui/react-components';\n\nexport const previewSurfaceClassNames: SlotClassNames<PreviewSurfaceSlots> = {\n root: 'fai-PreviewSurface',\n};\n\n/**\n * Styles for the root slot\n */\nconst useRootStyles = makeStyles({\n base: {\n padding: `${tokens.spacingVerticalXS} ${tokens.spacingHorizontalXS}`,\n boxSizing: 'border-box',\n },\n});\n\nconst useNextStyles = makeStyles({\n root: {\n borderRadius: tokens.borderRadiusXLarge,\n },\n});\n\n/**\n * Apply styling to the PreviewSurface slots based on the state\n */\nexport const usePreviewSurfaceStyles_unstable = (state: PreviewSurfaceState): PreviewSurfaceState => {\n 'use no memo';\n\n const { designVersion } = state;\n\n const rootStyles = useRootStyles();\n const nextStyles = useNextStyles();\n\n state.root.className = mergeClasses(\n previewSurfaceClassNames.root,\n rootStyles.base,\n designVersion === 'next' && nextStyles.root,\n state.root.className,\n );\n\n usePopoverSurfaceStyles_unstable(state);\n\n return state;\n};\n"],"names":["previewSurfaceClassNames","designVersion","state","root","base","makeStyles","padding","boxSizing","spacingVerticalXS","tokens","spacingHorizontalXS","borderRadius","borderRadiusXLarge","usePopoverSurfaceStyles_unstable","rootStyles","useRootStyles"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAKaA,wBAAAA;eAAAA;;IA0BHC,gCAAkBC;eAAlBD;;;iCA/BiE;wBACpD;AAIhB,MAAMD,2BAAgE;UAC3EG;AACF;AAEA;;CAEC,SAECC,gBAAMC,IAAAA,2BAAA,EAAA;UACJC;iBACAC,CAAAA,EAAAA,cAAW,CAAAC,iBAAA,CAAA,CAAA,EAAAC,cAAA,CAAAC,mBAAA,CAAA,CAAA;QACbH,WAAA;IACF;AAEA;MACEJ,gBAAME,IAAAA,2BAAA,EAAA;UACJM;QACFA,cAAAF,cAAA,CAAAG,kBAAA;IACF;AAEA;AAME,MAAQX,mCAAkBC,CAAAA;;UAK1BA,EAOAW,aAAAA,KAEAX;IACA,MAAAY,aAAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-copilot/react-preview",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4-hotfix.2",
|
|
4
4
|
"description": "Preview components.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@fluentui-copilot/react-provider": "
|
|
16
|
-
"@fluentui-copilot/tokens": "
|
|
15
|
+
"@fluentui-copilot/react-provider": "0.11.3-hotfix.2",
|
|
16
|
+
"@fluentui-copilot/tokens": "0.3.11-hotfix.2",
|
|
17
17
|
"@swc/helpers": "^0.5.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
@@ -27,11 +27,7 @@
|
|
|
27
27
|
"react": ">=16.14.0 <19.0.0",
|
|
28
28
|
"react-dom": ">=16.14.0 <19.0.0"
|
|
29
29
|
},
|
|
30
|
-
"beachball": {
|
|
31
|
-
"disallowedChangeTypes": [
|
|
32
|
-
"major"
|
|
33
|
-
]
|
|
34
|
-
},
|
|
30
|
+
"beachball": {},
|
|
35
31
|
"exports": {
|
|
36
32
|
".": {
|
|
37
33
|
"types": "./dist/index.d.ts",
|