@fluentui/react-migration-v0-v9 9.4.8 → 9.5.0
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.md +14 -2
- package/lib/components/Attachment/Attachment.styles.raw.js +57 -0
- package/lib/components/Attachment/Attachment.styles.raw.js.map +1 -0
- package/lib/components/Attachment/AttachmentAction.styles.raw.js +17 -0
- package/lib/components/Attachment/AttachmentAction.styles.raw.js.map +1 -0
- package/lib/components/Attachment/AttachmentBody.styles.raw.js +6 -0
- package/lib/components/Attachment/AttachmentBody.styles.raw.js.map +1 -0
- package/lib/components/Attachment/AttachmentDescription.styles.raw.js +9 -0
- package/lib/components/Attachment/AttachmentDescription.styles.raw.js.map +1 -0
- package/lib/components/Attachment/AttachmentHeader.styles.raw.js +9 -0
- package/lib/components/Attachment/AttachmentHeader.styles.raw.js.map +1 -0
- package/lib/components/Attachment/AttachmentIcon.styles.raw.js +15 -0
- package/lib/components/Attachment/AttachmentIcon.styles.raw.js.map +1 -0
- package/lib/components/Flex/Flex.styles.raw.js +88 -0
- package/lib/components/Flex/Flex.styles.raw.js.map +1 -0
- package/lib/components/Grid/Grid.styles.raw.js +31 -0
- package/lib/components/Grid/Grid.styles.raw.js.map +1 -0
- package/lib/components/ItemLayout/ItemLayout.styles.raw.js +60 -0
- package/lib/components/ItemLayout/ItemLayout.styles.raw.js.map +1 -0
- package/lib/components/List/List/useListStyles.styles.raw.js +34 -0
- package/lib/components/List/List/useListStyles.styles.raw.js.map +1 -0
- package/lib/components/List/ListItem/useListItemStyles.styles.raw.js +66 -0
- package/lib/components/List/ListItem/useListItemStyles.styles.raw.js.map +1 -0
- package/lib/components/Segment/Segment.styles.raw.js +11 -0
- package/lib/components/Segment/Segment.styles.raw.js.map +1 -0
- package/lib/components/StyledText/StyledText.styles.raw.js +95 -0
- package/lib/components/StyledText/StyledText.styles.raw.js.map +1 -0
- package/lib/components/Video/Video.styles.raw.js +9 -0
- package/lib/components/Video/Video.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Attachment/Attachment.styles.raw.js +75 -0
- package/lib-commonjs/components/Attachment/Attachment.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Attachment/AttachmentAction.styles.raw.js +27 -0
- package/lib-commonjs/components/Attachment/AttachmentAction.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Attachment/AttachmentBody.styles.raw.js +16 -0
- package/lib-commonjs/components/Attachment/AttachmentBody.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Attachment/AttachmentDescription.styles.raw.js +19 -0
- package/lib-commonjs/components/Attachment/AttachmentDescription.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Attachment/AttachmentHeader.styles.raw.js +19 -0
- package/lib-commonjs/components/Attachment/AttachmentHeader.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Attachment/AttachmentIcon.styles.raw.js +25 -0
- package/lib-commonjs/components/Attachment/AttachmentIcon.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Flex/Flex.styles.raw.js +98 -0
- package/lib-commonjs/components/Flex/Flex.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Grid/Grid.styles.raw.js +41 -0
- package/lib-commonjs/components/Grid/Grid.styles.raw.js.map +1 -0
- package/lib-commonjs/components/ItemLayout/ItemLayout.styles.raw.js +70 -0
- package/lib-commonjs/components/ItemLayout/ItemLayout.styles.raw.js.map +1 -0
- package/lib-commonjs/components/List/List/useListStyles.styles.raw.js +50 -0
- package/lib-commonjs/components/List/List/useListStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.raw.js +82 -0
- package/lib-commonjs/components/List/ListItem/useListItemStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Segment/Segment.styles.raw.js +21 -0
- package/lib-commonjs/components/Segment/Segment.styles.raw.js.map +1 -0
- package/lib-commonjs/components/StyledText/StyledText.styles.raw.js +116 -0
- package/lib-commonjs/components/StyledText/StyledText.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Video/Video.styles.raw.js +19 -0
- package/lib-commonjs/components/Video/Video.styles.raw.js.map +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-migration-v0-v9
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 17 Jul 2025 13:45:42 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.5.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-migration-v0-v9_v9.5.0)
|
|
8
|
+
|
|
9
|
+
Thu, 17 Jul 2025 13:45:42 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-migration-v0-v9_v9.4.8..@fluentui/react-migration-v0-v9_v9.5.0)
|
|
11
|
+
|
|
12
|
+
### Minor changes
|
|
13
|
+
|
|
14
|
+
- feat: enable griffel raw styles ([PR #34853](https://github.com/microsoft/fluentui/pull/34853) by martinhochel@microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-aria to v9.15.4 ([PR #34862](https://github.com/microsoft/fluentui/pull/34862) by beachball)
|
|
16
|
+
- Bump @fluentui/react-components to v9.67.0 ([PR #34862](https://github.com/microsoft/fluentui/pull/34862) by beachball)
|
|
17
|
+
- Bump @fluentui/react-tabster to v9.26.0 ([PR #34862](https://github.com/microsoft/fluentui/pull/34862) by beachball)
|
|
18
|
+
|
|
7
19
|
## [9.4.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-migration-v0-v9_v9.4.8)
|
|
8
20
|
|
|
9
|
-
Wed, 16 Jul 2025 13:
|
|
21
|
+
Wed, 16 Jul 2025 13:52:50 GMT
|
|
10
22
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-migration-v0-v9_v9.4.7..@fluentui/react-migration-v0-v9_v9.4.8)
|
|
11
23
|
|
|
12
24
|
### Patches
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { createCustomFocusIndicatorStyle, makeResetStyles, makeStyles, shorthands, tokens } from '@fluentui/react-components';
|
|
2
|
+
import { attachmentActionClassName } from './AttachmentAction';
|
|
3
|
+
import { attachmentIconClassName } from './AttachmentIcon';
|
|
4
|
+
export const useAttachmentBaseStyles = makeResetStyles({
|
|
5
|
+
...createCustomFocusIndicatorStyle({
|
|
6
|
+
outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,
|
|
7
|
+
borderRadius: tokens.borderRadiusMedium,
|
|
8
|
+
backgroundColor: undefined,
|
|
9
|
+
color: undefined,
|
|
10
|
+
[`& .${attachmentActionClassName}`]: {
|
|
11
|
+
color: undefined
|
|
12
|
+
},
|
|
13
|
+
[`& .${attachmentIconClassName}`]: {
|
|
14
|
+
color: undefined
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
selector: 'focus'
|
|
18
|
+
}),
|
|
19
|
+
position: 'relative',
|
|
20
|
+
display: 'inline-flex',
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
width: '100%',
|
|
23
|
+
maxWidth: '424px',
|
|
24
|
+
minHeight: '32px',
|
|
25
|
+
...shorthands.padding('7px', '3px', '7px', '11px'),
|
|
26
|
+
marginBottom: '2px',
|
|
27
|
+
marginRight: '2px',
|
|
28
|
+
backgroundColor: tokens.colorNeutralBackground6,
|
|
29
|
+
color: tokens.colorNeutralForeground1,
|
|
30
|
+
boxShadow: `0 .2rem .4rem -.075rem ${tokens.colorNeutralShadowAmbient}`,
|
|
31
|
+
...shorthands.border('1px', 'solid', tokens.colorNeutralStroke3),
|
|
32
|
+
borderRadius: '4px'
|
|
33
|
+
});
|
|
34
|
+
export const useAttachmentStyles = makeStyles({
|
|
35
|
+
actionable: {
|
|
36
|
+
cursor: 'pointer',
|
|
37
|
+
':hover': {
|
|
38
|
+
backgroundColor: tokens.colorNeutralBackground4Hover
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
progressContainer: {
|
|
42
|
+
borderBottomLeftRadius: '4px',
|
|
43
|
+
borderBottomRightRadius: '4px',
|
|
44
|
+
bottom: 0,
|
|
45
|
+
height: '4px',
|
|
46
|
+
left: 0,
|
|
47
|
+
overflow: 'hidden',
|
|
48
|
+
position: 'absolute',
|
|
49
|
+
right: 0
|
|
50
|
+
},
|
|
51
|
+
progressBar: {
|
|
52
|
+
backgroundColor: tokens.colorPaletteLightGreenBackground3,
|
|
53
|
+
height: '100%',
|
|
54
|
+
maxWidth: '100%',
|
|
55
|
+
transition: 'width 0.2s'
|
|
56
|
+
}
|
|
57
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Attachment/Attachment.styles.ts"],"sourcesContent":["import {\n createCustomFocusIndicatorStyle,\n makeResetStyles,\n makeStyles,\n shorthands,\n tokens,\n} from '@fluentui/react-components';\nimport { attachmentActionClassName } from './AttachmentAction';\nimport { attachmentIconClassName } from './AttachmentIcon';\n\nexport const useAttachmentBaseStyles = makeResetStyles({\n ...createCustomFocusIndicatorStyle(\n {\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n backgroundColor: undefined,\n color: undefined,\n [`& .${attachmentActionClassName}`]: {\n color: undefined,\n },\n\n [`& .${attachmentIconClassName}`]: {\n color: undefined,\n },\n },\n { selector: 'focus' },\n ),\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n width: '100%',\n maxWidth: '424px',\n minHeight: '32px',\n ...shorthands.padding('7px', '3px', '7px', '11px'),\n marginBottom: '2px',\n marginRight: '2px',\n backgroundColor: tokens.colorNeutralBackground6,\n color: tokens.colorNeutralForeground1,\n boxShadow: `0 .2rem .4rem -.075rem ${tokens.colorNeutralShadowAmbient}`,\n ...shorthands.border('1px', 'solid', tokens.colorNeutralStroke3),\n borderRadius: '4px',\n});\n\nexport const useAttachmentStyles = makeStyles({\n actionable: {\n cursor: 'pointer',\n ':hover': {\n backgroundColor: tokens.colorNeutralBackground4Hover,\n },\n },\n progressContainer: {\n borderBottomLeftRadius: '4px',\n borderBottomRightRadius: '4px',\n bottom: 0,\n height: '4px',\n left: 0,\n overflow: 'hidden',\n position: 'absolute',\n right: 0,\n },\n progressBar: {\n backgroundColor: tokens.colorPaletteLightGreenBackground3,\n height: '100%',\n maxWidth: '100%',\n transition: 'width 0.2s',\n },\n});\n"],"names":["createCustomFocusIndicatorStyle","makeResetStyles","makeStyles","shorthands","tokens","attachmentActionClassName","attachmentIconClassName","useAttachmentBaseStyles","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","backgroundColor","undefined","color","selector","position","display","alignItems","width","maxWidth","minHeight","padding","marginBottom","marginRight","colorNeutralBackground6","colorNeutralForeground1","boxShadow","colorNeutralShadowAmbient","border","colorNeutralStroke3","useAttachmentStyles","actionable","cursor","colorNeutralBackground4Hover","progressContainer","borderBottomLeftRadius","borderBottomRightRadius","bottom","height","left","overflow","right","progressBar","colorPaletteLightGreenBackground3","transition"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SACEA,+BAA+B,EAC/BC,eAAe,EACfC,UAAU,EACVC,UAAU,EACVC,MAAM,QACD,6BAA6B;AACpC,SAASC,yBAAyB,QAAQ,qBAAqB;AAC/D,SAASC,uBAAuB,QAAQ,mBAAmB;AAE3D,OAAO,MAAMC,0BAA0BN,gBAAgB;IACrD,GAAGD,gCACD;QACEQ,SAAS,CAAC,EAAEJ,OAAOK,gBAAgB,CAAC,OAAO,EAAEL,OAAOM,iBAAiB,CAAC,CAAC;QACvEC,cAAcP,OAAOQ,kBAAkB;QACvCC,iBAAiBC;QACjBC,OAAOD;QACP,CAAC,CAAC,GAAG,EAAET,0BAA0B,CAAC,CAAC,EAAE;YACnCU,OAAOD;QACT;QAEA,CAAC,CAAC,GAAG,EAAER,wBAAwB,CAAC,CAAC,EAAE;YACjCS,OAAOD;QACT;IACF,GACA;QAAEE,UAAU;IAAQ,EACrB;IACDC,UAAU;IACVC,SAAS;IACTC,YAAY;IACZC,OAAO;IACPC,UAAU;IACVC,WAAW;IACX,GAAGnB,WAAWoB,OAAO,CAAC,OAAO,OAAO,OAAO,OAAO;IAClDC,cAAc;IACdC,aAAa;IACbZ,iBAAiBT,OAAOsB,uBAAuB;IAC/CX,OAAOX,OAAOuB,uBAAuB;IACrCC,WAAW,CAAC,uBAAuB,EAAExB,OAAOyB,yBAAyB,CAAC,CAAC;IACvE,GAAG1B,WAAW2B,MAAM,CAAC,OAAO,SAAS1B,OAAO2B,mBAAmB,CAAC;IAChEpB,cAAc;AAChB,GAAG;AAEH,OAAO,MAAMqB,sBAAsB9B,WAAW;IAC5C+B,YAAY;QACVC,QAAQ;QACR,UAAU;YACRrB,iBAAiBT,OAAO+B,4BAA4B;QACtD;IACF;IACAC,mBAAmB;QACjBC,wBAAwB;QACxBC,yBAAyB;QACzBC,QAAQ;QACRC,QAAQ;QACRC,MAAM;QACNC,UAAU;QACVzB,UAAU;QACV0B,OAAO;IACT;IACAC,aAAa;QACX/B,iBAAiBT,OAAOyC,iCAAiC;QACzDL,QAAQ;QACRnB,UAAU;QACVyB,YAAY;IACd;AACF,GAAG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { makeStyles } from '@fluentui/react-components';
|
|
2
|
+
export const useAttachmentActionStyles = makeStyles({
|
|
3
|
+
root: {
|
|
4
|
+
height: '32px',
|
|
5
|
+
maxWidth: '280px',
|
|
6
|
+
minWidth: '32px',
|
|
7
|
+
display: 'inline-flex',
|
|
8
|
+
justifyContent: 'center',
|
|
9
|
+
alignItems: 'center',
|
|
10
|
+
position: 'relative',
|
|
11
|
+
verticalAlign: 'middle',
|
|
12
|
+
cursor: 'pointer'
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
cursor: 'default'
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Attachment/AttachmentAction.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\n\nexport const useAttachmentActionStyles = makeStyles({\n root: {\n height: '32px',\n maxWidth: '280px',\n minWidth: '32px',\n display: 'inline-flex',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'relative',\n verticalAlign: 'middle',\n cursor: 'pointer',\n },\n disabled: {\n cursor: 'default',\n },\n});\n"],"names":["makeStyles","useAttachmentActionStyles","root","height","maxWidth","minWidth","display","justifyContent","alignItems","position","verticalAlign","cursor","disabled"],"rangeMappings":";;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AAExD,OAAO,MAAMC,4BAA4BD,WAAW;IAClDE,MAAM;QACJC,QAAQ;QACRC,UAAU;QACVC,UAAU;QACVC,SAAS;QACTC,gBAAgB;QAChBC,YAAY;QACZC,UAAU;QACVC,eAAe;QACfC,QAAQ;IACV;IACAC,UAAU;QACRD,QAAQ;IACV;AACF,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Attachment/AttachmentBody.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\n\nexport const useAttachmentBodyStyles = makeStyles({\n root: {\n flex: '1 1 0',\n },\n});\n"],"names":["makeStyles","useAttachmentBodyStyles","root","flex"],"rangeMappings":";;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AAExD,OAAO,MAAMC,0BAA0BD,WAAW;IAChDE,MAAM;QACJC,MAAM;IACR;AACF,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Attachment/AttachmentDescription.styles.ts"],"sourcesContent":["import { makeStyles, tokens } from '@fluentui/react-components';\n\nexport const useAttachmentDescriptionStyles = makeStyles({\n root: {\n display: 'block',\n fontSize: tokens.fontSizeBase200,\n fontWeight: tokens.fontWeightRegular,\n lineHeight: 1,\n },\n});\n"],"names":["makeStyles","tokens","useAttachmentDescriptionStyles","root","display","fontSize","fontSizeBase200","fontWeight","fontWeightRegular","lineHeight"],"rangeMappings":";;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,MAAM,QAAQ,6BAA6B;AAEhE,OAAO,MAAMC,iCAAiCF,WAAW;IACvDG,MAAM;QACJC,SAAS;QACTC,UAAUJ,OAAOK,eAAe;QAChCC,YAAYN,OAAOO,iBAAiB;QACpCC,YAAY;IACd;AACF,GAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Attachment/AttachmentHeader.styles.ts"],"sourcesContent":["import { makeStyles, tokens } from '@fluentui/react-components';\n\nexport const useAttachmentHeaderStyles = makeStyles({\n root: {\n display: 'block',\n fontSize: tokens.fontSizeBase300,\n fontWeight: tokens.fontWeightSemibold,\n lineHeight: 1.4286,\n },\n});\n"],"names":["makeStyles","tokens","useAttachmentHeaderStyles","root","display","fontSize","fontSizeBase300","fontWeight","fontWeightSemibold","lineHeight"],"rangeMappings":";;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,MAAM,QAAQ,6BAA6B;AAEhE,OAAO,MAAMC,4BAA4BF,WAAW;IAClDG,MAAM;QACJC,SAAS;QACTC,UAAUJ,OAAOK,eAAe;QAChCC,YAAYN,OAAOO,kBAAkB;QACrCC,YAAY;IACd;AACF,GAAG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { makeStyles } from '@fluentui/react-components';
|
|
2
|
+
export const useAttachmentIconStyles = makeStyles({
|
|
3
|
+
root: {
|
|
4
|
+
height: '32px',
|
|
5
|
+
width: '32px',
|
|
6
|
+
marginRight: '12px',
|
|
7
|
+
display: 'inline-flex',
|
|
8
|
+
alignItems: 'center',
|
|
9
|
+
justifyContent: 'center',
|
|
10
|
+
'& svg': {
|
|
11
|
+
height: '100%',
|
|
12
|
+
width: '100%'
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Attachment/AttachmentIcon.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\n\nexport const useAttachmentIconStyles = makeStyles({\n root: {\n height: '32px',\n width: '32px',\n marginRight: '12px',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n '& svg': {\n height: '100%',\n width: '100%',\n },\n },\n});\n"],"names":["makeStyles","useAttachmentIconStyles","root","height","width","marginRight","display","alignItems","justifyContent"],"rangeMappings":";;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AAExD,OAAO,MAAMC,0BAA0BD,WAAW;IAChDE,MAAM;QACJC,QAAQ;QACRC,OAAO;QACPC,aAAa;QACbC,SAAS;QACTC,YAAY;QACZC,gBAAgB;QAChB,SAAS;YACPL,QAAQ;YACRC,OAAO;QACT;IACF;AACF,GAAG"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { makeStyles } from '@fluentui/react-components';
|
|
2
|
+
const gapValues = {
|
|
3
|
+
smaller: '8px',
|
|
4
|
+
small: '10px',
|
|
5
|
+
medium: '15px',
|
|
6
|
+
large: '30px'
|
|
7
|
+
};
|
|
8
|
+
const paddingValues = {
|
|
9
|
+
medium: '10px'
|
|
10
|
+
};
|
|
11
|
+
export const useFlexStyles = makeStyles({
|
|
12
|
+
flex: {
|
|
13
|
+
display: 'flex'
|
|
14
|
+
},
|
|
15
|
+
inline: {
|
|
16
|
+
display: 'inline-flex'
|
|
17
|
+
},
|
|
18
|
+
column: {
|
|
19
|
+
flexDirection: 'column'
|
|
20
|
+
},
|
|
21
|
+
alignItemsFlexStart: {
|
|
22
|
+
alignItems: 'flex-start'
|
|
23
|
+
},
|
|
24
|
+
alignItemsCenter: {
|
|
25
|
+
alignItems: 'center'
|
|
26
|
+
},
|
|
27
|
+
alignItemsFlexEnd: {
|
|
28
|
+
alignItems: 'flex-end'
|
|
29
|
+
},
|
|
30
|
+
alignItemsStretch: {
|
|
31
|
+
alignItems: 'stretch'
|
|
32
|
+
},
|
|
33
|
+
justifyContentFlexStart: {
|
|
34
|
+
justifyContent: 'flex-start'
|
|
35
|
+
},
|
|
36
|
+
justifyContentCenter: {
|
|
37
|
+
justifyContent: 'center'
|
|
38
|
+
},
|
|
39
|
+
justifyContentFlexEnd: {
|
|
40
|
+
justifyContent: 'flex-end'
|
|
41
|
+
},
|
|
42
|
+
justifyContentStretch: {
|
|
43
|
+
justifyContent: 'stretch'
|
|
44
|
+
},
|
|
45
|
+
justifyContentSpaceAround: {
|
|
46
|
+
justifyContent: 'space-around'
|
|
47
|
+
},
|
|
48
|
+
justifyContentSpaceBetween: {
|
|
49
|
+
justifyContent: 'space-between'
|
|
50
|
+
},
|
|
51
|
+
justifyContentSpaceEvenly: {
|
|
52
|
+
justifyContent: 'space-evenly'
|
|
53
|
+
},
|
|
54
|
+
wrap: {
|
|
55
|
+
flexWrap: 'wrap'
|
|
56
|
+
},
|
|
57
|
+
fill: {
|
|
58
|
+
width: '100%',
|
|
59
|
+
height: '100%'
|
|
60
|
+
},
|
|
61
|
+
gapForColumnFlexSmall: {
|
|
62
|
+
rowGap: gapValues.small
|
|
63
|
+
},
|
|
64
|
+
gapForColumnFlexSmaller: {
|
|
65
|
+
rowGap: gapValues.smaller
|
|
66
|
+
},
|
|
67
|
+
gapForColumnFlexMedium: {
|
|
68
|
+
rowGap: gapValues.medium
|
|
69
|
+
},
|
|
70
|
+
gapForColumnFlexLarge: {
|
|
71
|
+
rowGap: gapValues.large
|
|
72
|
+
},
|
|
73
|
+
gapForRowFlexSmall: {
|
|
74
|
+
columnGap: gapValues.small
|
|
75
|
+
},
|
|
76
|
+
gapForRowFlexSmaller: {
|
|
77
|
+
columnGap: gapValues.smaller
|
|
78
|
+
},
|
|
79
|
+
gapForRowFlexMedium: {
|
|
80
|
+
columnGap: gapValues.medium
|
|
81
|
+
},
|
|
82
|
+
gapForRowFlexLarge: {
|
|
83
|
+
columnGap: gapValues.large
|
|
84
|
+
},
|
|
85
|
+
paddingMedium: {
|
|
86
|
+
padding: paddingValues.medium
|
|
87
|
+
}
|
|
88
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Flex/Flex.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\n\nconst gapValues = {\n smaller: '8px',\n small: '10px',\n medium: '15px',\n large: '30px',\n};\n\nconst paddingValues = {\n medium: '10px',\n};\n\nexport const useFlexStyles = makeStyles({\n flex: {\n display: 'flex',\n },\n inline: {\n display: 'inline-flex',\n },\n column: {\n flexDirection: 'column',\n },\n alignItemsFlexStart: {\n alignItems: 'flex-start',\n },\n alignItemsCenter: {\n alignItems: 'center',\n },\n alignItemsFlexEnd: {\n alignItems: 'flex-end',\n },\n alignItemsStretch: {\n alignItems: 'stretch',\n },\n justifyContentFlexStart: {\n justifyContent: 'flex-start',\n },\n justifyContentCenter: {\n justifyContent: 'center',\n },\n justifyContentFlexEnd: {\n justifyContent: 'flex-end',\n },\n justifyContentStretch: {\n justifyContent: 'stretch',\n },\n justifyContentSpaceAround: {\n justifyContent: 'space-around',\n },\n justifyContentSpaceBetween: {\n justifyContent: 'space-between',\n },\n justifyContentSpaceEvenly: {\n justifyContent: 'space-evenly',\n },\n wrap: {\n flexWrap: 'wrap',\n },\n fill: {\n width: '100%',\n height: '100%',\n },\n gapForColumnFlexSmall: {\n rowGap: gapValues.small,\n },\n gapForColumnFlexSmaller: {\n rowGap: gapValues.smaller,\n },\n gapForColumnFlexMedium: {\n rowGap: gapValues.medium,\n },\n gapForColumnFlexLarge: {\n rowGap: gapValues.large,\n },\n gapForRowFlexSmall: {\n columnGap: gapValues.small,\n },\n gapForRowFlexSmaller: {\n columnGap: gapValues.smaller,\n },\n gapForRowFlexMedium: {\n columnGap: gapValues.medium,\n },\n gapForRowFlexLarge: {\n columnGap: gapValues.large,\n },\n paddingMedium: {\n padding: paddingValues.medium,\n },\n});\n"],"names":["makeStyles","gapValues","smaller","small","medium","large","paddingValues","useFlexStyles","flex","display","inline","column","flexDirection","alignItemsFlexStart","alignItems","alignItemsCenter","alignItemsFlexEnd","alignItemsStretch","justifyContentFlexStart","justifyContent","justifyContentCenter","justifyContentFlexEnd","justifyContentStretch","justifyContentSpaceAround","justifyContentSpaceBetween","justifyContentSpaceEvenly","wrap","flexWrap","fill","width","height","gapForColumnFlexSmall","rowGap","gapForColumnFlexSmaller","gapForColumnFlexMedium","gapForColumnFlexLarge","gapForRowFlexSmall","columnGap","gapForRowFlexSmaller","gapForRowFlexMedium","gapForRowFlexLarge","paddingMedium","padding"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AAExD,MAAMC,YAAY;IAChBC,SAAS;IACTC,OAAO;IACPC,QAAQ;IACRC,OAAO;AACT;AAEA,MAAMC,gBAAgB;IACpBF,QAAQ;AACV;AAEA,OAAO,MAAMG,gBAAgBP,WAAW;IACtCQ,MAAM;QACJC,SAAS;IACX;IACAC,QAAQ;QACND,SAAS;IACX;IACAE,QAAQ;QACNC,eAAe;IACjB;IACAC,qBAAqB;QACnBC,YAAY;IACd;IACAC,kBAAkB;QAChBD,YAAY;IACd;IACAE,mBAAmB;QACjBF,YAAY;IACd;IACAG,mBAAmB;QACjBH,YAAY;IACd;IACAI,yBAAyB;QACvBC,gBAAgB;IAClB;IACAC,sBAAsB;QACpBD,gBAAgB;IAClB;IACAE,uBAAuB;QACrBF,gBAAgB;IAClB;IACAG,uBAAuB;QACrBH,gBAAgB;IAClB;IACAI,2BAA2B;QACzBJ,gBAAgB;IAClB;IACAK,4BAA4B;QAC1BL,gBAAgB;IAClB;IACAM,2BAA2B;QACzBN,gBAAgB;IAClB;IACAO,MAAM;QACJC,UAAU;IACZ;IACAC,MAAM;QACJC,OAAO;QACPC,QAAQ;IACV;IACAC,uBAAuB;QACrBC,QAAQ/B,UAAUE,KAAK;IACzB;IACA8B,yBAAyB;QACvBD,QAAQ/B,UAAUC,OAAO;IAC3B;IACAgC,wBAAwB;QACtBF,QAAQ/B,UAAUG,MAAM;IAC1B;IACA+B,uBAAuB;QACrBH,QAAQ/B,UAAUI,KAAK;IACzB;IACA+B,oBAAoB;QAClBC,WAAWpC,UAAUE,KAAK;IAC5B;IACAmC,sBAAsB;QACpBD,WAAWpC,UAAUC,OAAO;IAC9B;IACAqC,qBAAqB;QACnBF,WAAWpC,UAAUG,MAAM;IAC7B;IACAoC,oBAAoB;QAClBH,WAAWpC,UAAUI,KAAK;IAC5B;IACAoC,eAAe;QACbC,SAASpC,cAAcF,MAAM;IAC/B;AACF,GAAG"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { makeStyles } from '@fluentui/react-components';
|
|
2
|
+
export const useGridStyles = makeStyles({
|
|
3
|
+
grid: {
|
|
4
|
+
display: 'grid',
|
|
5
|
+
justifyContent: 'space-evenly'
|
|
6
|
+
},
|
|
7
|
+
onlyRows: {
|
|
8
|
+
gridAutoFlow: 'column'
|
|
9
|
+
},
|
|
10
|
+
rows1: {
|
|
11
|
+
gridTemplateRows: 'repeat(1, 1fr)'
|
|
12
|
+
},
|
|
13
|
+
rows2: {
|
|
14
|
+
gridTemplateRows: 'repeat(2, 1fr)'
|
|
15
|
+
},
|
|
16
|
+
rows3: {
|
|
17
|
+
gridTemplateRows: 'repeat(3, 1fr)'
|
|
18
|
+
},
|
|
19
|
+
columns1: {
|
|
20
|
+
gridTemplateColumns: 'repeat(1, 1fr)'
|
|
21
|
+
},
|
|
22
|
+
columns2: {
|
|
23
|
+
gridTemplateColumns: 'repeat(2, 1fr)'
|
|
24
|
+
},
|
|
25
|
+
columns3: {
|
|
26
|
+
gridTemplateColumns: 'repeat(3, 1fr)'
|
|
27
|
+
},
|
|
28
|
+
columnsDefault: {
|
|
29
|
+
gridTemplateColumns: 'repeat(5, 1fr)'
|
|
30
|
+
}
|
|
31
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Grid/Grid.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\n\nexport const useGridStyles = makeStyles({\n grid: {\n display: 'grid',\n justifyContent: 'space-evenly',\n },\n onlyRows: {\n gridAutoFlow: 'column',\n },\n rows1: {\n gridTemplateRows: 'repeat(1, 1fr)',\n },\n rows2: {\n gridTemplateRows: 'repeat(2, 1fr)',\n },\n rows3: {\n gridTemplateRows: 'repeat(3, 1fr)',\n },\n columns1: {\n gridTemplateColumns: 'repeat(1, 1fr)',\n },\n columns2: {\n gridTemplateColumns: 'repeat(2, 1fr)',\n },\n columns3: {\n gridTemplateColumns: 'repeat(3, 1fr)',\n },\n columnsDefault: {\n gridTemplateColumns: 'repeat(5, 1fr)',\n },\n});\n"],"names":["makeStyles","useGridStyles","grid","display","justifyContent","onlyRows","gridAutoFlow","rows1","gridTemplateRows","rows2","rows3","columns1","gridTemplateColumns","columns2","columns3","columnsDefault"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AAExD,OAAO,MAAMC,gBAAgBD,WAAW;IACtCE,MAAM;QACJC,SAAS;QACTC,gBAAgB;IAClB;IACAC,UAAU;QACRC,cAAc;IAChB;IACAC,OAAO;QACLC,kBAAkB;IACpB;IACAC,OAAO;QACLD,kBAAkB;IACpB;IACAE,OAAO;QACLF,kBAAkB;IACpB;IACAG,UAAU;QACRC,qBAAqB;IACvB;IACAC,UAAU;QACRD,qBAAqB;IACvB;IACAE,UAAU;QACRF,qBAAqB;IACvB;IACAG,gBAAgB;QACdH,qBAAqB;IACvB;AACF,GAAG"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { makeStyles } from '@fluentui/react-components';
|
|
2
|
+
export const useItemLayoutStyles = makeStyles({
|
|
3
|
+
root: {
|
|
4
|
+
display: 'grid',
|
|
5
|
+
gridTemplateColumns: 'auto 1fr auto auto',
|
|
6
|
+
minHeight: '48px'
|
|
7
|
+
},
|
|
8
|
+
contentMedia: {
|
|
9
|
+
alignSelf: 'start',
|
|
10
|
+
gridColumnStart: 3,
|
|
11
|
+
gridColumnEnd: 4,
|
|
12
|
+
gridRowStart: 2,
|
|
13
|
+
gridRowEnd: 3,
|
|
14
|
+
fontSize: '12px',
|
|
15
|
+
lineHeight: 1.3333
|
|
16
|
+
},
|
|
17
|
+
contentWrapper: {
|
|
18
|
+
alignSelf: 'start',
|
|
19
|
+
gridColumnStart: 2,
|
|
20
|
+
gridColumnEnd: 3,
|
|
21
|
+
gridRowStart: 2,
|
|
22
|
+
gridRowEnd: 3,
|
|
23
|
+
marginRight: '8px',
|
|
24
|
+
fontSize: '12px',
|
|
25
|
+
lineHeight: 1.3333
|
|
26
|
+
},
|
|
27
|
+
header: {
|
|
28
|
+
alignSelf: 'end',
|
|
29
|
+
gridColumnStart: 2,
|
|
30
|
+
gridColumnEnd: 3,
|
|
31
|
+
gridRowStart: 1,
|
|
32
|
+
gridRowEnd: 2,
|
|
33
|
+
fontSize: '14px',
|
|
34
|
+
marginRight: '8px'
|
|
35
|
+
},
|
|
36
|
+
headerMedia: {
|
|
37
|
+
alignSelf: 'end',
|
|
38
|
+
gridColumnStart: 3,
|
|
39
|
+
gridColumnEnd: 4,
|
|
40
|
+
gridRowStart: 1,
|
|
41
|
+
gridRowEnd: 2,
|
|
42
|
+
fontSize: '12px',
|
|
43
|
+
lineHeight: 1.3333
|
|
44
|
+
},
|
|
45
|
+
startMedia: {
|
|
46
|
+
alignSelf: 'center',
|
|
47
|
+
gridColumnStart: 1,
|
|
48
|
+
gridColumnEnd: 2,
|
|
49
|
+
gridRowStart: 1,
|
|
50
|
+
gridRowEnd: 3,
|
|
51
|
+
marginRight: '8px'
|
|
52
|
+
},
|
|
53
|
+
endMedia: {
|
|
54
|
+
alignSelf: 'center',
|
|
55
|
+
gridColumnStart: 4,
|
|
56
|
+
gridColumnEnd: 5,
|
|
57
|
+
gridRowStart: 1,
|
|
58
|
+
gridRowEnd: 3
|
|
59
|
+
}
|
|
60
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/ItemLayout/ItemLayout.styles.ts"],"sourcesContent":["import { makeStyles } from '@fluentui/react-components';\n\nexport const useItemLayoutStyles = makeStyles({\n root: {\n display: 'grid',\n gridTemplateColumns: 'auto 1fr auto auto',\n minHeight: '48px',\n },\n contentMedia: {\n alignSelf: 'start',\n gridColumnStart: 3,\n gridColumnEnd: 4,\n gridRowStart: 2,\n gridRowEnd: 3,\n fontSize: '12px',\n lineHeight: 1.3333,\n },\n contentWrapper: {\n alignSelf: 'start',\n gridColumnStart: 2,\n gridColumnEnd: 3,\n gridRowStart: 2,\n gridRowEnd: 3,\n marginRight: '8px',\n fontSize: '12px',\n lineHeight: 1.3333,\n },\n header: {\n alignSelf: 'end',\n gridColumnStart: 2,\n gridColumnEnd: 3,\n gridRowStart: 1,\n gridRowEnd: 2,\n fontSize: '14px',\n marginRight: '8px',\n },\n headerMedia: {\n alignSelf: 'end',\n gridColumnStart: 3,\n gridColumnEnd: 4,\n gridRowStart: 1,\n gridRowEnd: 2,\n fontSize: '12px',\n lineHeight: 1.3333,\n },\n startMedia: {\n alignSelf: 'center',\n gridColumnStart: 1,\n gridColumnEnd: 2,\n gridRowStart: 1,\n gridRowEnd: 3,\n marginRight: '8px',\n },\n endMedia: {\n alignSelf: 'center',\n gridColumnStart: 4,\n gridColumnEnd: 5,\n gridRowStart: 1,\n gridRowEnd: 3,\n },\n});\n"],"names":["makeStyles","useItemLayoutStyles","root","display","gridTemplateColumns","minHeight","contentMedia","alignSelf","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","fontSize","lineHeight","contentWrapper","marginRight","header","headerMedia","startMedia","endMedia"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,QAAQ,6BAA6B;AAExD,OAAO,MAAMC,sBAAsBD,WAAW;IAC5CE,MAAM;QACJC,SAAS;QACTC,qBAAqB;QACrBC,WAAW;IACb;IACAC,cAAc;QACZC,WAAW;QACXC,iBAAiB;QACjBC,eAAe;QACfC,cAAc;QACdC,YAAY;QACZC,UAAU;QACVC,YAAY;IACd;IACAC,gBAAgB;QACdP,WAAW;QACXC,iBAAiB;QACjBC,eAAe;QACfC,cAAc;QACdC,YAAY;QACZI,aAAa;QACbH,UAAU;QACVC,YAAY;IACd;IACAG,QAAQ;QACNT,WAAW;QACXC,iBAAiB;QACjBC,eAAe;QACfC,cAAc;QACdC,YAAY;QACZC,UAAU;QACVG,aAAa;IACf;IACAE,aAAa;QACXV,WAAW;QACXC,iBAAiB;QACjBC,eAAe;QACfC,cAAc;QACdC,YAAY;QACZC,UAAU;QACVC,YAAY;IACd;IACAK,YAAY;QACVX,WAAW;QACXC,iBAAiB;QACjBC,eAAe;QACfC,cAAc;QACdC,YAAY;QACZI,aAAa;IACf;IACAI,UAAU;QACRZ,WAAW;QACXC,iBAAiB;QACjBC,eAAe;QACfC,cAAc;QACdC,YAAY;IACd;AACF,GAAG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';
|
|
2
|
+
export const listClassNames = {
|
|
3
|
+
root: 'fui-List'
|
|
4
|
+
};
|
|
5
|
+
const useRootBaseStyles = makeResetStyles({
|
|
6
|
+
padding: 0,
|
|
7
|
+
margin: 0,
|
|
8
|
+
textIndent: 0,
|
|
9
|
+
listStyleType: 'none'
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* Styles for the root slot
|
|
13
|
+
*/ const useStyles = makeStyles({
|
|
14
|
+
rootHorizontal: {
|
|
15
|
+
display: 'flex'
|
|
16
|
+
},
|
|
17
|
+
rootGrid: {
|
|
18
|
+
display: 'grid'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* Apply styling to the List slots based on the state
|
|
23
|
+
*/ export const useListStyles_unstable = (state)=>{
|
|
24
|
+
'use no memo';
|
|
25
|
+
const rootStyles = useRootBaseStyles();
|
|
26
|
+
const styles = useStyles();
|
|
27
|
+
const layoutToStyles = {
|
|
28
|
+
['horizontal']: styles.rootHorizontal,
|
|
29
|
+
['grid']: styles.rootGrid,
|
|
30
|
+
['vertical']: undefined
|
|
31
|
+
};
|
|
32
|
+
state.root.className = mergeClasses(listClassNames.root, rootStyles, layoutToStyles[state.layout], state.root.className);
|
|
33
|
+
return state;
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/List/List/useListStyles.styles.ts"],"sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';\nimport type { ListSlots, ListState } from './List.types';\n\nexport const listClassNames: SlotClassNames<ListSlots> = {\n root: 'fui-List',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n padding: 0,\n margin: 0,\n textIndent: 0,\n listStyleType: 'none',\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n rootHorizontal: {\n display: 'flex',\n },\n\n rootGrid: {\n display: 'grid',\n },\n});\n\n/**\n * Apply styling to the List slots based on the state\n */\nexport const useListStyles_unstable = (state: ListState): ListState => {\n 'use no memo';\n\n const rootStyles = useRootBaseStyles();\n const styles = useStyles();\n\n const layoutToStyles = {\n ['horizontal']: styles.rootHorizontal,\n ['grid']: styles.rootGrid,\n ['vertical']: undefined, // no extra styles needed, keep it in for completeness and type safety\n };\n\n state.root.className = mergeClasses(\n listClassNames.root,\n rootStyles,\n layoutToStyles[state.layout],\n state.root.className,\n );\n\n return state;\n};\n"],"names":["makeStyles","makeResetStyles","mergeClasses","listClassNames","root","useRootBaseStyles","padding","margin","textIndent","listStyleType","useStyles","rootHorizontal","display","rootGrid","useListStyles_unstable","state","rootStyles","styles","layoutToStyles","undefined","className","layout"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AACA,SAASA,UAAU,EAAEC,eAAe,EAAEC,YAAY,QAAQ,iBAAiB;AAG3E,OAAO,MAAMC,iBAA4C;IACvDC,MAAM;AACR,EAAE;AAEF,MAAMC,oBAAoBJ,gBAAgB;IACxCK,SAAS;IACTC,QAAQ;IACRC,YAAY;IACZC,eAAe;AACjB;AAEA;;CAEC,GACD,MAAMC,YAAYV,WAAW;IAC3BW,gBAAgB;QACdC,SAAS;IACX;IAEAC,UAAU;QACRD,SAAS;IACX;AACF;AAEA;;CAEC,GACD,OAAO,MAAME,yBAAyB,CAACC;IACrC;IAEA,MAAMC,aAAaX;IACnB,MAAMY,SAASP;IAEf,MAAMQ,iBAAiB;QACrB,CAAC,aAAa,EAAED,OAAON,cAAc;QACrC,CAAC,OAAO,EAAEM,OAAOJ,QAAQ;QACzB,CAAC,WAAW,EAAEM;IAChB;IAEAJ,MAAMX,IAAI,CAACgB,SAAS,GAAGlB,aACrBC,eAAeC,IAAI,EACnBY,YACAE,cAAc,CAACH,MAAMM,MAAM,CAAC,EAC5BN,MAAMX,IAAI,CAACgB,SAAS;IAGtB,OAAOL;AACT,EAAE"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';
|
|
2
|
+
import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';
|
|
3
|
+
import { tokens } from '@fluentui/react-theme';
|
|
4
|
+
export const listItemClassNames = {
|
|
5
|
+
root: 'fui-ListItem',
|
|
6
|
+
media: 'fui-ListItem__media',
|
|
7
|
+
header: 'fui-ListItem__header',
|
|
8
|
+
contentWrapper: 'fui-ListItem__contentWrapper',
|
|
9
|
+
headerMedia: 'fui-ListItem__headerMedia',
|
|
10
|
+
contentMedia: 'fui-ListItem__contentMedia',
|
|
11
|
+
endMedia: 'fui-ListItem__endMedia'
|
|
12
|
+
};
|
|
13
|
+
const useRootBaseStyles = makeResetStyles({
|
|
14
|
+
padding: '0 10px',
|
|
15
|
+
margin: 0,
|
|
16
|
+
textIndent: 0,
|
|
17
|
+
listStyleType: 'none',
|
|
18
|
+
...createCustomFocusIndicatorStyle({
|
|
19
|
+
outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,
|
|
20
|
+
borderRadius: tokens.borderRadiusMedium
|
|
21
|
+
}, {
|
|
22
|
+
selector: 'focus'
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Styles for the root slot
|
|
27
|
+
*/ const useStyles = makeStyles({
|
|
28
|
+
contentWrapper: {
|
|
29
|
+
fontSize: tokens.fontSizeBase200
|
|
30
|
+
},
|
|
31
|
+
// The content should go all the way to the end if the content media is not present
|
|
32
|
+
contentWrapperWithoutMedia: {
|
|
33
|
+
gridColumnEnd: 4
|
|
34
|
+
},
|
|
35
|
+
truncate: {
|
|
36
|
+
overflow: 'hidden',
|
|
37
|
+
textWrap: 'nowrap',
|
|
38
|
+
textOverflow: 'ellipsis'
|
|
39
|
+
},
|
|
40
|
+
rootSelected: {
|
|
41
|
+
backgroundColor: tokens.colorNeutralBackground1Selected
|
|
42
|
+
},
|
|
43
|
+
rootClickable: {
|
|
44
|
+
cursor: 'pointer',
|
|
45
|
+
'&:hover': {
|
|
46
|
+
backgroundColor: tokens.colorNeutralBackground1Hover
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* Apply styling to the ListItem slots based on the state
|
|
52
|
+
*/ export const useListItemStyles_unstable = (state)=>{
|
|
53
|
+
'use no memo';
|
|
54
|
+
const rootBaseStyles = useRootBaseStyles();
|
|
55
|
+
const styles = useStyles();
|
|
56
|
+
state.root.className = mergeClasses(listItemClassNames.root, rootBaseStyles, (state.selectable || state.navigable) && styles.rootClickable, state.selected && styles.rootSelected, state.root.className);
|
|
57
|
+
if (state.header) {
|
|
58
|
+
var _state_header;
|
|
59
|
+
state.header.className = mergeClasses(state.truncateHeader && styles.truncate, (_state_header = state.header) === null || _state_header === void 0 ? void 0 : _state_header.className);
|
|
60
|
+
}
|
|
61
|
+
if (state.contentWrapper) {
|
|
62
|
+
var _state_contentWrapper;
|
|
63
|
+
state.contentWrapper.className = mergeClasses(styles.contentWrapper, state.truncateContent && styles.truncate, !state.contentMedia && styles.contentWrapperWithoutMedia, (_state_contentWrapper = state.contentWrapper) === null || _state_contentWrapper === void 0 ? void 0 : _state_contentWrapper.className);
|
|
64
|
+
}
|
|
65
|
+
return state;
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/List/ListItem/useListItemStyles.styles.ts"],"sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\nimport { tokens } from '@fluentui/react-theme';\n\nexport const listItemClassNames: SlotClassNames<ListItemSlots> = {\n root: 'fui-ListItem',\n media: 'fui-ListItem__media',\n header: 'fui-ListItem__header',\n contentWrapper: 'fui-ListItem__contentWrapper',\n headerMedia: 'fui-ListItem__headerMedia',\n contentMedia: 'fui-ListItem__contentMedia',\n endMedia: 'fui-ListItem__endMedia',\n};\n\nconst useRootBaseStyles = makeResetStyles({\n padding: '0 10px',\n margin: 0,\n textIndent: 0,\n listStyleType: 'none',\n ...createCustomFocusIndicatorStyle(\n {\n outline: `${tokens.strokeWidthThick} solid ${tokens.colorStrokeFocus2}`,\n borderRadius: tokens.borderRadiusMedium,\n },\n { selector: 'focus' },\n ),\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n contentWrapper: {\n fontSize: tokens.fontSizeBase200,\n },\n\n // The content should go all the way to the end if the content media is not present\n contentWrapperWithoutMedia: {\n gridColumnEnd: 4,\n },\n truncate: {\n overflow: 'hidden',\n textWrap: 'nowrap',\n textOverflow: 'ellipsis',\n },\n rootSelected: {\n backgroundColor: tokens.colorNeutralBackground1Selected,\n },\n rootClickable: {\n cursor: 'pointer',\n\n '&:hover': {\n backgroundColor: tokens.colorNeutralBackground1Hover,\n },\n },\n});\n\n/**\n * Apply styling to the ListItem slots based on the state\n */\nexport const useListItemStyles_unstable = (state: ListItemState): ListItemState => {\n 'use no memo';\n\n const rootBaseStyles = useRootBaseStyles();\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n listItemClassNames.root,\n rootBaseStyles,\n (state.selectable || state.navigable) && styles.rootClickable,\n state.selected && styles.rootSelected,\n state.root.className,\n );\n\n if (state.header) {\n state.header.className = mergeClasses(state.truncateHeader && styles.truncate, state.header?.className);\n }\n\n if (state.contentWrapper) {\n state.contentWrapper.className = mergeClasses(\n styles.contentWrapper,\n state.truncateContent && styles.truncate,\n !state.contentMedia && styles.contentWrapperWithoutMedia,\n state.contentWrapper?.className,\n );\n }\n\n return state;\n};\n"],"names":["makeStyles","makeResetStyles","mergeClasses","createCustomFocusIndicatorStyle","tokens","listItemClassNames","root","media","header","contentWrapper","headerMedia","contentMedia","endMedia","useRootBaseStyles","padding","margin","textIndent","listStyleType","outline","strokeWidthThick","colorStrokeFocus2","borderRadius","borderRadiusMedium","selector","useStyles","fontSize","fontSizeBase200","contentWrapperWithoutMedia","gridColumnEnd","truncate","overflow","textWrap","textOverflow","rootSelected","backgroundColor","colorNeutralBackground1Selected","rootClickable","cursor","colorNeutralBackground1Hover","useListItemStyles_unstable","state","rootBaseStyles","styles","className","selectable","navigable","selected","truncateHeader","truncateContent"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AACA,SAASA,UAAU,EAAEC,eAAe,EAAEC,YAAY,QAAQ,iBAAiB;AAC3E,SAASC,+BAA+B,QAAQ,0BAA0B;AAE1E,SAASC,MAAM,QAAQ,wBAAwB;AAE/C,OAAO,MAAMC,qBAAoD;IAC/DC,MAAM;IACNC,OAAO;IACPC,QAAQ;IACRC,gBAAgB;IAChBC,aAAa;IACbC,cAAc;IACdC,UAAU;AACZ,EAAE;AAEF,MAAMC,oBAAoBZ,gBAAgB;IACxCa,SAAS;IACTC,QAAQ;IACRC,YAAY;IACZC,eAAe;IACf,GAAGd,gCACD;QACEe,SAAS,CAAC,EAAEd,OAAOe,gBAAgB,CAAC,OAAO,EAAEf,OAAOgB,iBAAiB,CAAC,CAAC;QACvEC,cAAcjB,OAAOkB,kBAAkB;IACzC,GACA;QAAEC,UAAU;IAAQ,EACrB;AACH;AAEA;;CAEC,GACD,MAAMC,YAAYxB,WAAW;IAC3BS,gBAAgB;QACdgB,UAAUrB,OAAOsB,eAAe;IAClC;IAEA,mFAAmF;IACnFC,4BAA4B;QAC1BC,eAAe;IACjB;IACAC,UAAU;QACRC,UAAU;QACVC,UAAU;QACVC,cAAc;IAChB;IACAC,cAAc;QACZC,iBAAiB9B,OAAO+B,+BAA+B;IACzD;IACAC,eAAe;QACbC,QAAQ;QAER,WAAW;YACTH,iBAAiB9B,OAAOkC,4BAA4B;QACtD;IACF;AACF;AAEA;;CAEC,GACD,OAAO,MAAMC,6BAA6B,CAACC;IACzC;IAEA,MAAMC,iBAAiB5B;IACvB,MAAM6B,SAASlB;IAEfgB,MAAMlC,IAAI,CAACqC,SAAS,GAAGzC,aACrBG,mBAAmBC,IAAI,EACvBmC,gBACA,AAACD,CAAAA,MAAMI,UAAU,IAAIJ,MAAMK,SAAS,AAAD,KAAMH,OAAON,aAAa,EAC7DI,MAAMM,QAAQ,IAAIJ,OAAOT,YAAY,EACrCO,MAAMlC,IAAI,CAACqC,SAAS;IAGtB,IAAIH,MAAMhC,MAAM,EAAE;YAC+DgC;QAA/EA,MAAMhC,MAAM,CAACmC,SAAS,GAAGzC,aAAasC,MAAMO,cAAc,IAAIL,OAAOb,QAAQ,GAAEW,gBAAAA,MAAMhC,MAAM,cAAZgC,oCAAAA,cAAcG,SAAS;IACxG;IAEA,IAAIH,MAAM/B,cAAc,EAAE;YAKtB+B;QAJFA,MAAM/B,cAAc,CAACkC,SAAS,GAAGzC,aAC/BwC,OAAOjC,cAAc,EACrB+B,MAAMQ,eAAe,IAAIN,OAAOb,QAAQ,EACxC,CAACW,MAAM7B,YAAY,IAAI+B,OAAOf,0BAA0B,GACxDa,wBAAAA,MAAM/B,cAAc,cAApB+B,4CAAAA,sBAAsBG,SAAS;IAEnC;IAEA,OAAOH;AACT,EAAE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { makeStyles, shorthands, tokens } from '@fluentui/react-components';
|
|
2
|
+
export const useSegmentStyles = makeStyles({
|
|
3
|
+
segment: {
|
|
4
|
+
padding: '1em',
|
|
5
|
+
...shorthands.borderWidth('2px', 0, 0),
|
|
6
|
+
...shorthands.borderColor('transparent'),
|
|
7
|
+
...shorthands.borderStyle('solid'),
|
|
8
|
+
backgroundColor: tokens.colorNeutralBackground1,
|
|
9
|
+
boxShadow: `0 1px 1px 1px ${tokens.colorNeutralShadowKey}`
|
|
10
|
+
}
|
|
11
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Segment/Segment.styles.ts"],"sourcesContent":["import { makeStyles, shorthands, tokens } from '@fluentui/react-components';\n\nexport const useSegmentStyles = makeStyles({\n segment: {\n padding: '1em',\n ...shorthands.borderWidth('2px', 0, 0),\n ...shorthands.borderColor('transparent'),\n ...shorthands.borderStyle('solid'),\n backgroundColor: tokens.colorNeutralBackground1,\n boxShadow: `0 1px 1px 1px ${tokens.colorNeutralShadowKey}`,\n },\n});\n"],"names":["makeStyles","shorthands","tokens","useSegmentStyles","segment","padding","borderWidth","borderColor","borderStyle","backgroundColor","colorNeutralBackground1","boxShadow","colorNeutralShadowKey"],"rangeMappings":";;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,UAAU,EAAEC,MAAM,QAAQ,6BAA6B;AAE5E,OAAO,MAAMC,mBAAmBH,WAAW;IACzCI,SAAS;QACPC,SAAS;QACT,GAAGJ,WAAWK,WAAW,CAAC,OAAO,GAAG,EAAE;QACtC,GAAGL,WAAWM,WAAW,CAAC,cAAc;QACxC,GAAGN,WAAWO,WAAW,CAAC,QAAQ;QAClCC,iBAAiBP,OAAOQ,uBAAuB;QAC/CC,WAAW,CAAC,cAAc,EAAET,OAAOU,qBAAqB,CAAC,CAAC;IAC5D;AACF,GAAG"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { makeStyles, tokens } from '@fluentui/react-components';
|
|
2
|
+
export const useSizeStyles = makeStyles({
|
|
3
|
+
base100: {
|
|
4
|
+
fontSize: tokens.fontSizeBase100,
|
|
5
|
+
lineHeight: tokens.lineHeightBase100
|
|
6
|
+
},
|
|
7
|
+
base200: {
|
|
8
|
+
fontSize: tokens.fontSizeBase200,
|
|
9
|
+
lineHeight: tokens.lineHeightBase200
|
|
10
|
+
},
|
|
11
|
+
base300: {
|
|
12
|
+
fontSize: tokens.fontSizeBase300,
|
|
13
|
+
lineHeight: tokens.lineHeightBase300
|
|
14
|
+
},
|
|
15
|
+
base400: {
|
|
16
|
+
fontSize: tokens.fontSizeBase400,
|
|
17
|
+
lineHeight: tokens.lineHeightBase400
|
|
18
|
+
},
|
|
19
|
+
base500: {
|
|
20
|
+
fontSize: tokens.fontSizeBase500,
|
|
21
|
+
lineHeight: tokens.lineHeightBase500
|
|
22
|
+
},
|
|
23
|
+
base600: {
|
|
24
|
+
fontSize: tokens.fontSizeBase600,
|
|
25
|
+
lineHeight: tokens.lineHeightBase600
|
|
26
|
+
},
|
|
27
|
+
hero700: {
|
|
28
|
+
fontSize: tokens.fontSizeHero700,
|
|
29
|
+
lineHeight: tokens.lineHeightHero700
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export const useWeightStyles = makeStyles({
|
|
33
|
+
light: {
|
|
34
|
+
fontWeight: 200
|
|
35
|
+
},
|
|
36
|
+
semilight: {
|
|
37
|
+
fontWeight: 300
|
|
38
|
+
},
|
|
39
|
+
regular: {
|
|
40
|
+
fontWeight: 400
|
|
41
|
+
},
|
|
42
|
+
medium: {
|
|
43
|
+
fontWeight: 500
|
|
44
|
+
},
|
|
45
|
+
semibold: {
|
|
46
|
+
fontWeight: 600
|
|
47
|
+
},
|
|
48
|
+
bold: {
|
|
49
|
+
fontWeight: 700
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export const useStyles = makeStyles({
|
|
53
|
+
mention: {
|
|
54
|
+
color: tokens.colorBrandForegroundLink
|
|
55
|
+
},
|
|
56
|
+
mentionMe: {
|
|
57
|
+
color: tokens.colorPalettePumpkinBorderActive,
|
|
58
|
+
fontWeight: 700
|
|
59
|
+
},
|
|
60
|
+
disabled: {
|
|
61
|
+
color: tokens.colorNeutralForegroundDisabled
|
|
62
|
+
},
|
|
63
|
+
error: {
|
|
64
|
+
color: tokens.colorPaletteRedForeground3
|
|
65
|
+
},
|
|
66
|
+
important: {
|
|
67
|
+
color: tokens.colorPaletteDarkOrangeForeground3,
|
|
68
|
+
fontWeight: 700
|
|
69
|
+
},
|
|
70
|
+
success: {
|
|
71
|
+
color: tokens.colorPaletteGreenForeground3
|
|
72
|
+
},
|
|
73
|
+
temporary: {
|
|
74
|
+
fontStyle: 'italic'
|
|
75
|
+
},
|
|
76
|
+
timestamp: {
|
|
77
|
+
color: tokens.colorNeutralForeground3
|
|
78
|
+
},
|
|
79
|
+
nowrap: {
|
|
80
|
+
whiteSpace: 'nowrap',
|
|
81
|
+
overflow: 'hidden'
|
|
82
|
+
},
|
|
83
|
+
truncate: {
|
|
84
|
+
textOverflow: 'ellipsis'
|
|
85
|
+
},
|
|
86
|
+
alignCenter: {
|
|
87
|
+
textAlign: 'center'
|
|
88
|
+
},
|
|
89
|
+
alignEnd: {
|
|
90
|
+
textAlign: 'end'
|
|
91
|
+
},
|
|
92
|
+
alignJustify: {
|
|
93
|
+
textAlign: 'justify'
|
|
94
|
+
}
|
|
95
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/StyledText/StyledText.styles.ts"],"sourcesContent":["import { makeStyles, tokens } from '@fluentui/react-components';\n\nexport const useSizeStyles = makeStyles({\n base100: {\n fontSize: tokens.fontSizeBase100,\n lineHeight: tokens.lineHeightBase100,\n },\n base200: {\n fontSize: tokens.fontSizeBase200,\n lineHeight: tokens.lineHeightBase200,\n },\n base300: {\n fontSize: tokens.fontSizeBase300,\n lineHeight: tokens.lineHeightBase300,\n },\n base400: {\n fontSize: tokens.fontSizeBase400,\n lineHeight: tokens.lineHeightBase400,\n },\n base500: {\n fontSize: tokens.fontSizeBase500,\n lineHeight: tokens.lineHeightBase500,\n },\n base600: {\n fontSize: tokens.fontSizeBase600,\n lineHeight: tokens.lineHeightBase600,\n },\n hero700: {\n fontSize: tokens.fontSizeHero700,\n lineHeight: tokens.lineHeightHero700,\n },\n});\n\nexport const useWeightStyles = makeStyles({\n light: {\n fontWeight: 200,\n },\n semilight: {\n fontWeight: 300,\n },\n regular: {\n fontWeight: 400,\n },\n medium: {\n fontWeight: 500,\n },\n semibold: {\n fontWeight: 600,\n },\n bold: {\n fontWeight: 700,\n },\n});\n\nexport const useStyles = makeStyles({\n mention: {\n color: tokens.colorBrandForegroundLink,\n },\n mentionMe: {\n color: tokens.colorPalettePumpkinBorderActive,\n fontWeight: 700,\n },\n disabled: {\n color: tokens.colorNeutralForegroundDisabled,\n },\n error: {\n color: tokens.colorPaletteRedForeground3,\n },\n important: {\n color: tokens.colorPaletteDarkOrangeForeground3,\n fontWeight: 700,\n },\n success: {\n color: tokens.colorPaletteGreenForeground3,\n },\n temporary: {\n fontStyle: 'italic',\n },\n timestamp: {\n color: tokens.colorNeutralForeground3,\n },\n nowrap: {\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n },\n truncate: {\n textOverflow: 'ellipsis',\n },\n alignCenter: {\n textAlign: 'center',\n },\n alignEnd: {\n textAlign: 'end',\n },\n alignJustify: {\n textAlign: 'justify',\n },\n});\n"],"names":["makeStyles","tokens","useSizeStyles","base100","fontSize","fontSizeBase100","lineHeight","lineHeightBase100","base200","fontSizeBase200","lineHeightBase200","base300","fontSizeBase300","lineHeightBase300","base400","fontSizeBase400","lineHeightBase400","base500","fontSizeBase500","lineHeightBase500","base600","fontSizeBase600","lineHeightBase600","hero700","fontSizeHero700","lineHeightHero700","useWeightStyles","light","fontWeight","semilight","regular","medium","semibold","bold","useStyles","mention","color","colorBrandForegroundLink","mentionMe","colorPalettePumpkinBorderActive","disabled","colorNeutralForegroundDisabled","error","colorPaletteRedForeground3","important","colorPaletteDarkOrangeForeground3","success","colorPaletteGreenForeground3","temporary","fontStyle","timestamp","colorNeutralForeground3","nowrap","whiteSpace","overflow","truncate","textOverflow","alignCenter","textAlign","alignEnd","alignJustify"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,SAASA,UAAU,EAAEC,MAAM,QAAQ,6BAA6B;AAEhE,OAAO,MAAMC,gBAAgBF,WAAW;IACtCG,SAAS;QACPC,UAAUH,OAAOI,eAAe;QAChCC,YAAYL,OAAOM,iBAAiB;IACtC;IACAC,SAAS;QACPJ,UAAUH,OAAOQ,eAAe;QAChCH,YAAYL,OAAOS,iBAAiB;IACtC;IACAC,SAAS;QACPP,UAAUH,OAAOW,eAAe;QAChCN,YAAYL,OAAOY,iBAAiB;IACtC;IACAC,SAAS;QACPV,UAAUH,OAAOc,eAAe;QAChCT,YAAYL,OAAOe,iBAAiB;IACtC;IACAC,SAAS;QACPb,UAAUH,OAAOiB,eAAe;QAChCZ,YAAYL,OAAOkB,iBAAiB;IACtC;IACAC,SAAS;QACPhB,UAAUH,OAAOoB,eAAe;QAChCf,YAAYL,OAAOqB,iBAAiB;IACtC;IACAC,SAAS;QACPnB,UAAUH,OAAOuB,eAAe;QAChClB,YAAYL,OAAOwB,iBAAiB;IACtC;AACF,GAAG;AAEH,OAAO,MAAMC,kBAAkB1B,WAAW;IACxC2B,OAAO;QACLC,YAAY;IACd;IACAC,WAAW;QACTD,YAAY;IACd;IACAE,SAAS;QACPF,YAAY;IACd;IACAG,QAAQ;QACNH,YAAY;IACd;IACAI,UAAU;QACRJ,YAAY;IACd;IACAK,MAAM;QACJL,YAAY;IACd;AACF,GAAG;AAEH,OAAO,MAAMM,YAAYlC,WAAW;IAClCmC,SAAS;QACPC,OAAOnC,OAAOoC,wBAAwB;IACxC;IACAC,WAAW;QACTF,OAAOnC,OAAOsC,+BAA+B;QAC7CX,YAAY;IACd;IACAY,UAAU;QACRJ,OAAOnC,OAAOwC,8BAA8B;IAC9C;IACAC,OAAO;QACLN,OAAOnC,OAAO0C,0BAA0B;IAC1C;IACAC,WAAW;QACTR,OAAOnC,OAAO4C,iCAAiC;QAC/CjB,YAAY;IACd;IACAkB,SAAS;QACPV,OAAOnC,OAAO8C,4BAA4B;IAC5C;IACAC,WAAW;QACTC,WAAW;IACb;IACAC,WAAW;QACTd,OAAOnC,OAAOkD,uBAAuB;IACvC;IACAC,QAAQ;QACNC,YAAY;QACZC,UAAU;IACZ;IACAC,UAAU;QACRC,cAAc;IAChB;IACAC,aAAa;QACXC,WAAW;IACb;IACAC,UAAU;QACRD,WAAW;IACb;IACAE,cAAc;QACZF,WAAW;IACb;AACF,GAAG"}
|