@fluentui/react-image 9.0.0-rc.6 → 9.0.0-rc.7
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 -4
- package/CHANGELOG.md +134 -123
- package/dist/{react-image.d.ts → index.d.ts} +0 -0
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/package.json +6 -6
- package/lib/Image.d.ts +0 -1
- package/lib/components/Image/Image.d.ts +0 -6
- package/lib/components/Image/Image.types.d.ts +0 -30
- package/lib/components/Image/index.d.ts +0 -5
- package/lib/components/Image/renderImage.d.ts +0 -6
- package/lib/components/Image/useImage.d.ts +0 -6
- package/lib/components/Image/useImageStyles.d.ts +0 -8
- package/lib/index.d.ts +0 -2
- package/lib-commonjs/Image.d.ts +0 -1
- package/lib-commonjs/components/Image/Image.d.ts +0 -6
- package/lib-commonjs/components/Image/Image.types.d.ts +0 -30
- package/lib-commonjs/components/Image/index.d.ts +0 -5
- package/lib-commonjs/components/Image/renderImage.d.ts +0 -6
- package/lib-commonjs/components/Image/useImage.d.ts +0 -6
- package/lib-commonjs/components/Image/useImageStyles.d.ts +0 -8
- package/lib-commonjs/index.d.ts +0 -2
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-image",
|
|
3
|
-
"version": "9.0.0-rc.
|
|
3
|
+
"version": "9.0.0-rc.7",
|
|
4
4
|
"description": "Fluent UI React Image component.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
7
|
-
"typings": "
|
|
7
|
+
"typings": "dist/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"start": "yarn storybook",
|
|
22
22
|
"test": "jest --passWithNoTests",
|
|
23
23
|
"docs": "api-extractor run --config=config/api-extractor.local.json --local",
|
|
24
|
-
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node
|
|
25
|
-
"storybook": "node
|
|
24
|
+
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/packages/react-components/react-image/src && yarn docs",
|
|
25
|
+
"storybook": "node ../../../scripts/storybook/runner",
|
|
26
26
|
"type-check": "tsc -b tsconfig.json"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@griffel/react": "1.0.3",
|
|
36
|
-
"@fluentui/react-utilities": "9.0.0-rc.
|
|
37
|
-
"@fluentui/react-theme": "9.0.0-rc.
|
|
36
|
+
"@fluentui/react-utilities": "9.0.0-rc.7",
|
|
37
|
+
"@fluentui/react-theme": "9.0.0-rc.6",
|
|
38
38
|
"tslib": "^2.1.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
package/lib/Image.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/Image/index';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ComponentState, ComponentProps, Slot } from '@fluentui/react-utilities';
|
|
2
|
-
export declare type ImageSlots = {
|
|
3
|
-
root: Slot<'img'>;
|
|
4
|
-
};
|
|
5
|
-
declare type ImageCommons = {
|
|
6
|
-
/**
|
|
7
|
-
* An image can appear with rectangular border.
|
|
8
|
-
*/
|
|
9
|
-
bordered?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* An image can set how it should be resized to fit its container.
|
|
12
|
-
*/
|
|
13
|
-
fit?: 'none' | 'center' | 'contain' | 'cover';
|
|
14
|
-
/**
|
|
15
|
-
* An image can take up the width of its container.
|
|
16
|
-
*/
|
|
17
|
-
block?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* An image can appear square, circular, or rounded.
|
|
20
|
-
* @defaultvalue square
|
|
21
|
-
*/
|
|
22
|
-
shape?: 'square' | 'circular' | 'rounded';
|
|
23
|
-
/**
|
|
24
|
-
* An image can appear elevated with shadow.
|
|
25
|
-
*/
|
|
26
|
-
shadow?: boolean;
|
|
27
|
-
};
|
|
28
|
-
export declare type ImageProps = ComponentProps<ImageSlots> & Partial<ImageCommons>;
|
|
29
|
-
export declare type ImageState = ComponentState<ImageSlots> & ImageCommons;
|
|
30
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ImageProps, ImageState } from './Image.types';
|
|
3
|
-
/**
|
|
4
|
-
* Given user props, returns state and render function for an Image.
|
|
5
|
-
*/
|
|
6
|
-
export declare const useImage_unstable: (props: ImageProps, ref: React.Ref<HTMLImageElement>) => ImageState;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ImageSlots, ImageState } from './Image.types';
|
|
2
|
-
import type { SlotClassNames } from '@fluentui/react-utilities';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use `imageClassNames.root` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const imageClassName = "fui-Image";
|
|
7
|
-
export declare const imageClassNames: SlotClassNames<ImageSlots>;
|
|
8
|
-
export declare const useImageStyles_unstable: (state: ImageState) => void;
|
package/lib/index.d.ts
DELETED
package/lib-commonjs/Image.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/Image/index';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { ComponentState, ComponentProps, Slot } from '@fluentui/react-utilities';
|
|
2
|
-
export declare type ImageSlots = {
|
|
3
|
-
root: Slot<'img'>;
|
|
4
|
-
};
|
|
5
|
-
declare type ImageCommons = {
|
|
6
|
-
/**
|
|
7
|
-
* An image can appear with rectangular border.
|
|
8
|
-
*/
|
|
9
|
-
bordered?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* An image can set how it should be resized to fit its container.
|
|
12
|
-
*/
|
|
13
|
-
fit?: 'none' | 'center' | 'contain' | 'cover';
|
|
14
|
-
/**
|
|
15
|
-
* An image can take up the width of its container.
|
|
16
|
-
*/
|
|
17
|
-
block?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* An image can appear square, circular, or rounded.
|
|
20
|
-
* @defaultvalue square
|
|
21
|
-
*/
|
|
22
|
-
shape?: 'square' | 'circular' | 'rounded';
|
|
23
|
-
/**
|
|
24
|
-
* An image can appear elevated with shadow.
|
|
25
|
-
*/
|
|
26
|
-
shadow?: boolean;
|
|
27
|
-
};
|
|
28
|
-
export declare type ImageProps = ComponentProps<ImageSlots> & Partial<ImageCommons>;
|
|
29
|
-
export declare type ImageState = ComponentState<ImageSlots> & ImageCommons;
|
|
30
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ImageProps, ImageState } from './Image.types';
|
|
3
|
-
/**
|
|
4
|
-
* Given user props, returns state and render function for an Image.
|
|
5
|
-
*/
|
|
6
|
-
export declare const useImage_unstable: (props: ImageProps, ref: React.Ref<HTMLImageElement>) => ImageState;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ImageSlots, ImageState } from './Image.types';
|
|
2
|
-
import type { SlotClassNames } from '@fluentui/react-utilities';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use `imageClassNames.root` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const imageClassName = "fui-Image";
|
|
7
|
-
export declare const imageClassNames: SlotClassNames<ImageSlots>;
|
|
8
|
-
export declare const useImageStyles_unstable: (state: ImageState) => void;
|
package/lib-commonjs/index.d.ts
DELETED