@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.
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.6",
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": "lib/index.d.ts",
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 ../../scripts/typescript/normalize-import --output ./dist/packages/react-image/src && yarn docs",
25
- "storybook": "node ../../scripts/storybook/runner",
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.6",
37
- "@fluentui/react-theme": "9.0.0-rc.5",
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,6 +0,0 @@
1
- import type { ImageProps } from './Image.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * The Image component ensures the consistent styling of images.
5
- */
6
- export declare const Image: ForwardRefComponent<ImageProps>;
@@ -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,5 +0,0 @@
1
- export * from './Image.types';
2
- export * from './Image';
3
- export * from './renderImage';
4
- export * from './useImage';
5
- export * from './useImageStyles';
@@ -1,6 +0,0 @@
1
- import { ImageState } from './Image.types';
2
- /**
3
- * Define the render function.
4
- * Given the state of an image, renders it.
5
- */
6
- export declare const renderImage_unstable: (state: ImageState) => JSX.Element;
@@ -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
@@ -1,2 +0,0 @@
1
- export { Image, imageClassName, imageClassNames, renderImage_unstable, useImageStyles_unstable, useImage_unstable, } from './Image';
2
- export type { ImageProps, ImageSlots, ImageState } from './Image';
@@ -1 +0,0 @@
1
- export * from './components/Image/index';
@@ -1,6 +0,0 @@
1
- import type { ImageProps } from './Image.types';
2
- import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
- /**
4
- * The Image component ensures the consistent styling of images.
5
- */
6
- export declare const Image: ForwardRefComponent<ImageProps>;
@@ -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,5 +0,0 @@
1
- export * from './Image.types';
2
- export * from './Image';
3
- export * from './renderImage';
4
- export * from './useImage';
5
- export * from './useImageStyles';
@@ -1,6 +0,0 @@
1
- import { ImageState } from './Image.types';
2
- /**
3
- * Define the render function.
4
- * Given the state of an image, renders it.
5
- */
6
- export declare const renderImage_unstable: (state: ImageState) => JSX.Element;
@@ -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;
@@ -1,2 +0,0 @@
1
- export { Image, imageClassName, imageClassNames, renderImage_unstable, useImageStyles_unstable, useImage_unstable, } from './Image';
2
- export type { ImageProps, ImageSlots, ImageState } from './Image';