@fluentui/react-image 9.0.0-alpha.80 → 9.0.0-alpha.84
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 +181 -4
- package/CHANGELOG.md +57 -4
- package/Spec.md +1 -0
- package/dist/react-image.d.ts +27 -5
- package/lib/Image.js.map +1 -1
- package/lib/common/isConformant.js.map +1 -1
- package/lib/components/Image/Image.d.ts +19 -2
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/Image.types.d.ts +6 -4
- package/lib/components/Image/Image.types.js.map +1 -1
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/Image/renderImage.js.map +1 -1
- package/lib/components/Image/useImage.js +3 -1
- package/lib/components/Image/useImage.js.map +1 -1
- package/lib/components/Image/useImageStyles.js +5 -3
- package/lib/components/Image/useImageStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Image.js.map +1 -1
- package/lib-commonjs/common/isConformant.js.map +1 -1
- package/lib-commonjs/components/Image/Image.d.ts +19 -2
- package/lib-commonjs/components/Image/Image.js.map +1 -1
- package/lib-commonjs/components/Image/Image.types.d.ts +6 -4
- package/lib-commonjs/components/Image/Image.types.js.map +1 -1
- package/lib-commonjs/components/Image/index.js.map +1 -1
- package/lib-commonjs/components/Image/renderImage.js.map +1 -1
- package/lib-commonjs/components/Image/useImage.js +3 -1
- package/lib-commonjs/components/Image/useImage.js.map +1 -1
- package/lib-commonjs/components/Image/useImageStyles.js +5 -3
- package/lib-commonjs/components/Image/useImageStyles.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +6 -6
- package/lib-amd/Image.d.ts +0 -1
- package/lib-amd/Image.js +0 -6
- package/lib-amd/Image.js.map +0 -1
- package/lib-amd/common/isConformant.d.ts +0 -4
- package/lib-amd/common/isConformant.js +0 -17
- package/lib-amd/common/isConformant.js.map +0 -1
- package/lib-amd/components/Image/Image.d.ts +0 -6
- package/lib-amd/components/Image/Image.js +0 -15
- package/lib-amd/components/Image/Image.js.map +0 -1
- package/lib-amd/components/Image/Image.types.d.ts +0 -30
- package/lib-amd/components/Image/Image.types.js +0 -5
- package/lib-amd/components/Image/Image.types.js.map +0 -1
- package/lib-amd/components/Image/index.d.ts +0 -5
- package/lib-amd/components/Image/index.js +0 -10
- package/lib-amd/components/Image/index.js.map +0 -1
- package/lib-amd/components/Image/renderImage.d.ts +0 -6
- package/lib-amd/components/Image/renderImage.js +0 -15
- package/lib-amd/components/Image/renderImage.js.map +0 -1
- package/lib-amd/components/Image/useImage.d.ts +0 -7
- package/lib-amd/components/Image/useImage.js +0 -26
- package/lib-amd/components/Image/useImage.js.map +0 -1
- package/lib-amd/components/Image/useImageStyles.d.ts +0 -2
- package/lib-amd/components/Image/useImageStyles.js +0 -57
- package/lib-amd/components/Image/useImageStyles.js.map +0 -1
- package/lib-amd/index.d.ts +0 -1
- package/lib-amd/index.js +0 -6
- package/lib-amd/index.js.map +0 -1
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "@fluentui/react-make-styles"], function (require, exports, react_make_styles_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.useImageStyles = void 0;
|
|
5
|
-
var useStyles = react_make_styles_1.makeStyles({
|
|
6
|
-
root: function (theme) { return ({
|
|
7
|
-
borderColor: theme.alias.color.neutral.neutralStroke1,
|
|
8
|
-
borderRadius: theme.global.borderRadius.none,
|
|
9
|
-
boxShadow: theme.alias.shadow.shadow4,
|
|
10
|
-
boxSizing: 'border-box',
|
|
11
|
-
display: 'inline-block',
|
|
12
|
-
}); },
|
|
13
|
-
rootBordered: function (theme) { return ({
|
|
14
|
-
borderStyle: 'solid',
|
|
15
|
-
borderWidth: theme.global.strokeWidth.thin,
|
|
16
|
-
}); },
|
|
17
|
-
rootCircular: function (theme) { return ({
|
|
18
|
-
borderRadius: theme.global.borderRadius.circular,
|
|
19
|
-
}); },
|
|
20
|
-
rootRounded: function (theme) { return ({
|
|
21
|
-
borderRadius: theme.global.borderRadius.medium,
|
|
22
|
-
}); },
|
|
23
|
-
rootFitNone: {
|
|
24
|
-
objectFit: 'none',
|
|
25
|
-
objectPosition: 'left top',
|
|
26
|
-
height: '100%',
|
|
27
|
-
width: '100%',
|
|
28
|
-
},
|
|
29
|
-
rootFitCenter: {
|
|
30
|
-
objectFit: 'none',
|
|
31
|
-
objectPosition: 'center',
|
|
32
|
-
height: '100%',
|
|
33
|
-
width: '100%',
|
|
34
|
-
},
|
|
35
|
-
rootFitCover: {
|
|
36
|
-
objectFit: 'cover',
|
|
37
|
-
objectPosition: 'center',
|
|
38
|
-
height: '100%',
|
|
39
|
-
width: '100%',
|
|
40
|
-
},
|
|
41
|
-
rootFitContain: {
|
|
42
|
-
objectFit: 'contain',
|
|
43
|
-
objectPosition: 'center',
|
|
44
|
-
height: '100%',
|
|
45
|
-
width: '100%',
|
|
46
|
-
},
|
|
47
|
-
rootFluid: {
|
|
48
|
-
width: '100%',
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
var useImageStyles = function (state) {
|
|
52
|
-
var styles = useStyles();
|
|
53
|
-
state.root.className = react_make_styles_1.mergeClasses(styles.root, state.bordered && styles.rootBordered, state.circular && styles.rootCircular, state.rounded && styles.rootRounded, state.fit === 'none' && styles.rootFitNone, state.fit === 'center' && styles.rootFitCenter, state.fit === 'cover' && styles.rootFitCover, state.fit === 'contain' && styles.rootFitContain, state.fluid && styles.rootFluid, state.root.className);
|
|
54
|
-
};
|
|
55
|
-
exports.useImageStyles = useImageStyles;
|
|
56
|
-
});
|
|
57
|
-
//# sourceMappingURL=useImageStyles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useImageStyles.js","sourceRoot":"../src/","sources":["components/Image/useImageStyles.ts"],"names":[],"mappings":";;;;IAGA,IAAM,SAAS,GAAG,8BAAU,CAAC;QAC3B,IAAI,EAAE,UAAA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F,CAAC,CAAC;IAEI,IAAM,cAAc,GAAG,UAAC,KAAiB;QAC9C,IAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,gCAAY,CACjC,MAAM,CAAC,IAAI,EACX,KAAK,CAAC,QAAQ,IAAI,MAAM,CAAC,YAAY,EACrC,KAAK,CAAC,QAAQ,IAAI,MAAM,CAAC,YAAY,EACrC,KAAK,CAAC,OAAO,IAAI,MAAM,CAAC,WAAW,EACnC,KAAK,CAAC,GAAG,KAAK,MAAM,IAAI,MAAM,CAAC,WAAW,EAC1C,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,aAAa,EAC9C,KAAK,CAAC,GAAG,KAAK,OAAO,IAAI,MAAM,CAAC,YAAY,EAC5C,KAAK,CAAC,GAAG,KAAK,SAAS,IAAI,MAAM,CAAC,cAAc,EAChD,KAAK,CAAC,KAAK,IAAI,MAAM,CAAC,SAAS,EAC/B,KAAK,CAAC,IAAI,CAAC,SAAS,CACrB,CAAC;IACJ,CAAC,CAAC;IAdW,QAAA,cAAc,kBAczB","sourcesContent":["import { mergeClasses, makeStyles } from '@fluentui/react-make-styles';\nimport type { ImageState } from './Image.types';\n\nconst useStyles = makeStyles({\n root: theme => ({\n borderColor: theme.alias.color.neutral.neutralStroke1,\n borderRadius: theme.global.borderRadius.none,\n boxShadow: theme.alias.shadow.shadow4,\n\n boxSizing: 'border-box',\n display: 'inline-block',\n }),\n rootBordered: theme => ({\n borderStyle: 'solid',\n borderWidth: theme.global.strokeWidth.thin,\n }),\n rootCircular: theme => ({\n borderRadius: theme.global.borderRadius.circular,\n }),\n rootRounded: theme => ({\n borderRadius: theme.global.borderRadius.medium,\n }),\n rootFitNone: {\n objectFit: 'none',\n objectPosition: 'left top',\n height: '100%',\n width: '100%',\n },\n rootFitCenter: {\n objectFit: 'none',\n objectPosition: 'center',\n height: '100%',\n width: '100%',\n },\n rootFitCover: {\n objectFit: 'cover',\n objectPosition: 'center',\n height: '100%',\n width: '100%',\n },\n rootFitContain: {\n objectFit: 'contain',\n objectPosition: 'center',\n height: '100%',\n width: '100%',\n },\n rootFluid: {\n width: '100%',\n },\n});\n\nexport const useImageStyles = (state: ImageState) => {\n const styles = useStyles();\n state.root.className = mergeClasses(\n styles.root,\n state.bordered && styles.rootBordered,\n state.circular && styles.rootCircular,\n state.rounded && styles.rootRounded,\n state.fit === 'none' && styles.rootFitNone,\n state.fit === 'center' && styles.rootFitCenter,\n state.fit === 'cover' && styles.rootFitCover,\n state.fit === 'contain' && styles.rootFitContain,\n state.fluid && styles.rootFluid,\n state.root.className,\n );\n};\n"]}
|
package/lib-amd/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Image';
|
package/lib-amd/index.js
DELETED
package/lib-amd/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":";;;IAAA,uCAAwB","sourcesContent":["export * from './Image';\n"]}
|