@fluentui/react-divider 9.0.0-nightly.d730088d7f.0 → 9.0.0-rc.10
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 +535 -20
- package/CHANGELOG.md +236 -89
- package/Spec.md +22 -132
- package/dist/index.d.ts +70 -0
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/Divider.js.map +1 -1
- package/lib/components/Divider/Divider.js +8 -8
- package/lib/components/Divider/Divider.js.map +1 -1
- package/lib/components/Divider/Divider.types.js.map +1 -1
- package/lib/components/Divider/index.js.map +1 -1
- package/lib/components/Divider/renderDivider.js +9 -8
- package/lib/components/Divider/renderDivider.js.map +1 -1
- package/lib/components/Divider/useDivider.js +21 -20
- package/lib/components/Divider/useDivider.js.map +1 -1
- package/lib/components/Divider/useDividerStyles.js +152 -108
- package/lib/components/Divider/useDividerStyles.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Divider.js +1 -1
- package/lib-commonjs/Divider.js.map +1 -1
- package/lib-commonjs/components/Divider/Divider.js +9 -9
- package/lib-commonjs/components/Divider/Divider.js.map +1 -1
- package/lib-commonjs/components/Divider/Divider.types.js.map +1 -1
- package/lib-commonjs/components/Divider/index.js +1 -1
- package/lib-commonjs/components/Divider/index.js.map +1 -1
- package/lib-commonjs/components/Divider/renderDivider.js +13 -13
- package/lib-commonjs/components/Divider/renderDivider.js.map +1 -1
- package/lib-commonjs/components/Divider/useDivider.js +24 -24
- package/lib-commonjs/components/Divider/useDivider.js.map +1 -1
- package/lib-commonjs/components/Divider/useDividerStyles.js +156 -110
- package/lib-commonjs/components/Divider/useDividerStyles.js.map +1 -1
- package/lib-commonjs/index.js +32 -2
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +18 -22
- package/dist/react-divider.d.ts +0 -65
- package/lib/Divider.d.ts +0 -1
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -11
- package/lib/common/isConformant.js.map +0 -1
- package/lib/components/Divider/Divider.d.ts +0 -6
- package/lib/components/Divider/Divider.types.d.ts +0 -35
- package/lib/components/Divider/index.d.ts +0 -5
- package/lib/components/Divider/renderDivider.d.ts +0 -5
- package/lib/components/Divider/useDivider.d.ts +0 -8
- package/lib/components/Divider/useDividerStyles.d.ts +0 -3
- package/lib/index.d.ts +0 -1
- package/lib-commonjs/Divider.d.ts +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -22
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/components/Divider/Divider.d.ts +0 -6
- package/lib-commonjs/components/Divider/Divider.types.d.ts +0 -35
- package/lib-commonjs/components/Divider/index.d.ts +0 -5
- package/lib-commonjs/components/Divider/renderDivider.d.ts +0 -5
- package/lib-commonjs/components/Divider/useDivider.d.ts +0 -8
- package/lib-commonjs/components/Divider/useDividerStyles.d.ts +0 -3
- package/lib-commonjs/index.d.ts +0 -1
@@ -1,8 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import type { DividerProps, DividerState } from './Divider.types';
|
3
|
-
/**
|
4
|
-
* Returns the props and state required to render the component
|
5
|
-
* @param props - Divider properties
|
6
|
-
* @param ref - reference to root HTMLElement of Divider
|
7
|
-
*/
|
8
|
-
export declare const useDivider: (props: DividerProps, ref: React.Ref<HTMLElement>) => DividerState;
|
package/lib/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Divider';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './components/Divider/index';
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.isConformant = void 0;
|
7
|
-
|
8
|
-
var react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
|
9
|
-
|
10
|
-
var react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
|
11
|
-
|
12
|
-
function isConformant(testInfo) {
|
13
|
-
var defaultOptions = {
|
14
|
-
asPropHandlesRef: true,
|
15
|
-
componentPath: module.parent.filename.replace('.test', ''),
|
16
|
-
extraTests: react_conformance_make_styles_1.default
|
17
|
-
};
|
18
|
-
react_conformance_1.isConformant(defaultOptions, testInfo);
|
19
|
-
}
|
20
|
-
|
21
|
-
exports.isConformant = isConformant;
|
22
|
-
//# sourceMappingURL=isConformant.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAH+C,GAA7D;AAMA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAVD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { DividerProps } from './Divider.types';
|
2
|
-
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
3
|
-
/**
|
4
|
-
* Define a styled Divider, using the `useDivider` and `useDividerStyles` hooks.
|
5
|
-
*/
|
6
|
-
export declare const Divider: ForwardRefComponent<DividerProps>;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
2
|
-
export declare type DividerSlots = {
|
3
|
-
root: IntrinsicShorthandProps<'div'>;
|
4
|
-
/**
|
5
|
-
* Accessibility wrapper for content when presented.
|
6
|
-
* A shorthand prop can be a literal, object, or
|
7
|
-
* JSX. The `children` prop of the object can be a render function,
|
8
|
-
* taking in the original slot component and props.
|
9
|
-
*/
|
10
|
-
wrapper: IntrinsicShorthandProps<'div'>;
|
11
|
-
};
|
12
|
-
export declare type DividerCommons = {
|
13
|
-
/**
|
14
|
-
* Determines the alignment of the content within the divider.
|
15
|
-
* @defaultvalue 'center'
|
16
|
-
*/
|
17
|
-
alignContent: 'start' | 'end' | 'center';
|
18
|
-
/**
|
19
|
-
* A divider can have one of the preset appearances.
|
20
|
-
* When not specified, the divider has its default appearance.
|
21
|
-
*/
|
22
|
-
appearance?: 'brand' | 'strong' | 'subtle';
|
23
|
-
/**
|
24
|
-
* Adds padding to the beginning and end of the divider
|
25
|
-
* @default false
|
26
|
-
*/
|
27
|
-
inset: boolean;
|
28
|
-
/**
|
29
|
-
* A divider can be horizontal (default) or vertical
|
30
|
-
* @default false
|
31
|
-
*/
|
32
|
-
vertical: boolean;
|
33
|
-
};
|
34
|
-
export declare type DividerProps = ComponentProps<DividerSlots> & Partial<DividerCommons>;
|
35
|
-
export declare type DividerState = ComponentState<DividerSlots> & DividerCommons;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import type { DividerProps, DividerState } from './Divider.types';
|
3
|
-
/**
|
4
|
-
* Returns the props and state required to render the component
|
5
|
-
* @param props - Divider properties
|
6
|
-
* @param ref - reference to root HTMLElement of Divider
|
7
|
-
*/
|
8
|
-
export declare const useDivider: (props: DividerProps, ref: React.Ref<HTMLElement>) => DividerState;
|
package/lib-commonjs/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Divider';
|