@fluentui/react-card 9.3.2 → 9.4.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 +22 -2
- package/lib/components/Card/useCardStyles.styles.raw.js +366 -0
- package/lib/components/Card/useCardStyles.styles.raw.js.map +1 -0
- package/lib/components/CardFooter/useCardFooterStyles.styles.raw.js +37 -0
- package/lib/components/CardFooter/useCardFooterStyles.styles.raw.js.map +1 -0
- package/lib/components/CardHeader/useCardHeaderStyles.styles.raw.js +103 -0
- package/lib/components/CardHeader/useCardHeaderStyles.styles.raw.js.map +1 -0
- package/lib/components/CardPreview/useCardPreviewStyles.styles.raw.js +35 -0
- package/lib/components/CardPreview/useCardPreviewStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/Card/useCardStyles.styles.raw.js +382 -0
- package/lib-commonjs/components/Card/useCardStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/CardFooter/useCardFooterStyles.styles.raw.js +51 -0
- package/lib-commonjs/components/CardFooter/useCardFooterStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/CardHeader/useCardHeaderStyles.styles.raw.js +118 -0
- package/lib-commonjs/components/CardHeader/useCardHeaderStyles.styles.raw.js.map +1 -0
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.styles.raw.js +49 -0
- package/lib-commonjs/components/CardPreview/useCardPreviewStyles.styles.raw.js.map +1 -0
- package/package.json +3 -3
@@ -0,0 +1,49 @@
|
|
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
|
+
cardPreviewClassNames: function() {
|
13
|
+
return cardPreviewClassNames;
|
14
|
+
},
|
15
|
+
useCardPreviewStyles_unstable: function() {
|
16
|
+
return useCardPreviewStyles_unstable;
|
17
|
+
}
|
18
|
+
});
|
19
|
+
const _react = require("@griffel/react");
|
20
|
+
const cardPreviewClassNames = {
|
21
|
+
root: 'fui-CardPreview',
|
22
|
+
logo: 'fui-CardPreview__logo'
|
23
|
+
};
|
24
|
+
const useStyles = (0, _react.makeStyles)({
|
25
|
+
root: {
|
26
|
+
position: 'relative',
|
27
|
+
[`> :not(.${cardPreviewClassNames.logo})`]: {
|
28
|
+
display: 'block',
|
29
|
+
height: '100%',
|
30
|
+
width: '100%'
|
31
|
+
}
|
32
|
+
},
|
33
|
+
logo: {
|
34
|
+
position: 'absolute',
|
35
|
+
bottom: '12px',
|
36
|
+
left: '12px',
|
37
|
+
width: '32px',
|
38
|
+
height: '32px'
|
39
|
+
}
|
40
|
+
});
|
41
|
+
const useCardPreviewStyles_unstable = (state)=>{
|
42
|
+
'use no memo';
|
43
|
+
const styles = useStyles();
|
44
|
+
state.root.className = (0, _react.mergeClasses)(cardPreviewClassNames.root, styles.root, state.root.className);
|
45
|
+
if (state.logo) {
|
46
|
+
state.logo.className = (0, _react.mergeClasses)(cardPreviewClassNames.logo, styles.logo, state.logo.className);
|
47
|
+
}
|
48
|
+
return state;
|
49
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/components/CardPreview/useCardPreviewStyles.styles.ts"],"sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeStyles, mergeClasses } from '@griffel/react';\nimport type { CardPreviewSlots, CardPreviewState } from './CardPreview.types';\n\n/**\n * Static CSS class names used internally for the component slots.\n */\nexport const cardPreviewClassNames: SlotClassNames<CardPreviewSlots> = {\n root: 'fui-CardPreview',\n logo: 'fui-CardPreview__logo',\n};\n\nconst useStyles = makeStyles({\n root: {\n position: 'relative',\n\n [`> :not(.${cardPreviewClassNames.logo})`]: {\n display: 'block',\n height: '100%',\n width: '100%',\n },\n },\n\n logo: {\n position: 'absolute',\n bottom: '12px',\n left: '12px',\n width: '32px',\n height: '32px',\n },\n});\n\n/**\n * Apply styling to the CardPreview slots based on the state.\n */\nexport const useCardPreviewStyles_unstable = (state: CardPreviewState): CardPreviewState => {\n 'use no memo';\n\n const styles = useStyles();\n state.root.className = mergeClasses(cardPreviewClassNames.root, styles.root, state.root.className);\n\n if (state.logo) {\n state.logo.className = mergeClasses(cardPreviewClassNames.logo, styles.logo, state.logo.className);\n }\n\n return state;\n};\n"],"names":["cardPreviewClassNames","useCardPreviewStyles_unstable","root","logo","useStyles","makeStyles","position","display","height","width","bottom","left","state","styles","className","mergeClasses"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAOaA,qBAAAA;eAAAA;;IA4BAC,6BAAAA;eAAAA;;;uBAlC4B;AAMlC,MAAMD,wBAA0D;IACrEE,MAAM;IACNC,MAAM;AACR;AAEA,MAAMC,YAAYC,IAAAA,iBAAAA,EAAW;IAC3BH,MAAM;QACJI,UAAU;QAEV,CAAC,CAAC,QAAQ,EAAEN,sBAAsBG,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;YAC1CI,SAAS;YACTC,QAAQ;YACRC,OAAO;QACT;IACF;IAEAN,MAAM;QACJG,UAAU;QACVI,QAAQ;QACRC,MAAM;QACNF,OAAO;QACPD,QAAQ;IACV;AACF;AAKO,MAAMP,gCAAgC,CAACW;IAC5C;IAEA,MAAMC,SAAST;IACfQ,MAAMV,IAAI,CAACY,SAAS,GAAGC,IAAAA,mBAAAA,EAAaf,sBAAsBE,IAAI,EAAEW,OAAOX,IAAI,EAAEU,MAAMV,IAAI,CAACY,SAAS;IAEjG,IAAIF,MAAMT,IAAI,EAAE;QACdS,MAAMT,IAAI,CAACW,SAAS,GAAGC,IAAAA,mBAAAA,EAAaf,sBAAsBG,IAAI,EAAEU,OAAOV,IAAI,EAAES,MAAMT,IAAI,CAACW,SAAS;IACnG;IAEA,OAAOF;AACT"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-card",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.4.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Card container components for Fluent UI React.",
|
6
6
|
"main": "lib-commonjs/index.js",
|
@@ -25,8 +25,8 @@
|
|
25
25
|
"@fluentui/keyboard-keys": "^9.0.8",
|
26
26
|
"@fluentui/react-jsx-runtime": "^9.1.2",
|
27
27
|
"@fluentui/react-shared-contexts": "^9.24.0",
|
28
|
-
"@fluentui/react-tabster": "^9.
|
29
|
-
"@fluentui/react-text": "^9.
|
28
|
+
"@fluentui/react-tabster": "^9.26.0",
|
29
|
+
"@fluentui/react-text": "^9.6.0",
|
30
30
|
"@fluentui/react-theme": "^9.1.24",
|
31
31
|
"@fluentui/react-utilities": "^9.22.0",
|
32
32
|
"@griffel/react": "^1.5.22",
|