@fluentui/react-divider 9.0.0-nightly.b5b7401007.0 → 9.0.0-rc.3
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 +290 -22
- package/CHANGELOG.md +76 -12
- package/Spec.md +22 -132
- package/dist/react-divider.d.ts +20 -19
- package/lib/Divider.js.map +1 -1
- package/lib/components/Divider/Divider.d.ts +2 -2
- package/lib/components/Divider/Divider.js +8 -8
- package/lib/components/Divider/Divider.js.map +1 -1
- package/lib/components/Divider/Divider.types.d.ts +12 -11
- package/lib/components/Divider/Divider.types.js.map +1 -1
- package/lib/components/Divider/index.js.map +1 -1
- package/lib/components/Divider/renderDivider.d.ts +2 -2
- package/lib/components/Divider/renderDivider.js +9 -8
- package/lib/components/Divider/renderDivider.js.map +1 -1
- package/lib/components/Divider/useDivider.d.ts +3 -3
- package/lib/components/Divider/useDivider.js +21 -20
- package/lib/components/Divider/useDivider.js.map +1 -1
- package/lib/components/Divider/useDividerStyles.d.ts +2 -2
- package/lib/components/Divider/useDividerStyles.js +140 -108
- package/lib/components/Divider/useDividerStyles.js.map +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.d.ts +2 -2
- 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.d.ts +12 -11
- 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.d.ts +2 -2
- 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.d.ts +3 -3
- 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.d.ts +2 -2
- package/lib-commonjs/components/Divider/useDividerStyles.js +144 -110
- package/lib-commonjs/components/Divider/useDividerStyles.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +8 -10
- 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-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/dist/react-divider.d.ts
CHANGED
@@ -1,65 +1,66 @@
|
|
1
1
|
import type { ComponentProps } from '@fluentui/react-utilities';
|
2
2
|
import type { ComponentState } from '@fluentui/react-utilities';
|
3
3
|
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
4
|
-
import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
5
4
|
import * as React_2 from 'react';
|
5
|
+
import type { Slot } from '@fluentui/react-utilities';
|
6
6
|
|
7
7
|
/**
|
8
|
-
*
|
8
|
+
* A divider visually segments content into groups.
|
9
9
|
*/
|
10
10
|
export declare const Divider: ForwardRefComponent<DividerProps>;
|
11
11
|
|
12
|
-
export declare
|
12
|
+
export declare const dividerClassName = "fui-Divider";
|
13
|
+
|
14
|
+
declare type DividerCommons = {
|
13
15
|
/**
|
14
16
|
* Determines the alignment of the content within the divider.
|
15
17
|
* @defaultvalue 'center'
|
16
18
|
*/
|
17
|
-
alignContent: 'start' | '
|
19
|
+
alignContent: 'start' | 'center' | 'end';
|
18
20
|
/**
|
19
21
|
* A divider can have one of the preset appearances.
|
20
22
|
* When not specified, the divider has its default appearance.
|
21
23
|
*/
|
22
24
|
appearance?: 'brand' | 'strong' | 'subtle';
|
23
25
|
/**
|
24
|
-
* Adds padding to the beginning and end of the divider
|
26
|
+
* Adds padding to the beginning and end of the divider.
|
25
27
|
* @default false
|
26
28
|
*/
|
27
29
|
inset: boolean;
|
28
30
|
/**
|
29
|
-
* A divider can be horizontal (default) or vertical
|
31
|
+
* A divider can be horizontal (default) or vertical.
|
30
32
|
* @default false
|
31
33
|
*/
|
32
34
|
vertical: boolean;
|
33
35
|
};
|
34
36
|
|
35
|
-
export declare type DividerProps = ComponentProps<DividerSlots
|
37
|
+
export declare type DividerProps = ComponentProps<Partial<DividerSlots>> & Partial<DividerCommons>;
|
36
38
|
|
37
39
|
export declare type DividerSlots = {
|
38
|
-
|
40
|
+
/**
|
41
|
+
* Root of the component that renders as a `<div>` tag.
|
42
|
+
*/
|
43
|
+
root: Slot<'div'>;
|
39
44
|
/**
|
40
45
|
* Accessibility wrapper for content when presented.
|
41
|
-
* A shorthand prop can be a literal, object, or
|
42
|
-
* JSX. The `children` prop of the object can be a render function,
|
43
|
-
* taking in the original slot component and props.
|
44
46
|
*/
|
45
|
-
wrapper:
|
47
|
+
wrapper: Slot<'div'>;
|
46
48
|
};
|
47
49
|
|
48
50
|
export declare type DividerState = ComponentState<DividerSlots> & DividerCommons;
|
49
51
|
|
50
52
|
/**
|
51
|
-
*
|
53
|
+
* Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.
|
52
54
|
*/
|
53
|
-
export declare const
|
55
|
+
export declare const renderDivider_unstable: (state: DividerState) => JSX.Element;
|
54
56
|
|
55
57
|
/**
|
56
58
|
* Returns the props and state required to render the component
|
57
|
-
* @param props - Divider
|
58
|
-
* @param ref -
|
59
|
+
* @param props - User-provided props to the Divider component.
|
60
|
+
* @param ref - User-provided ref to be passed to the Divider component.
|
59
61
|
*/
|
60
|
-
export declare const
|
62
|
+
export declare const useDivider_unstable: (props: DividerProps, ref: React_2.Ref<HTMLElement>) => DividerState;
|
61
63
|
|
62
|
-
|
63
|
-
export declare const useDividerStyles: (state: DividerState) => DividerState;
|
64
|
+
export declare const useDividerStyles_unstable: (state: DividerState) => DividerState;
|
64
65
|
|
65
66
|
export { }
|
package/lib/Divider.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Divider.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Divider.js","sourceRoot":"../src/","sources":["Divider.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './components/Divider/index';\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { DividerProps } from './Divider.types';
|
2
1
|
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
2
|
+
import type { DividerProps } from './Divider.types';
|
3
3
|
/**
|
4
|
-
*
|
4
|
+
* A divider visually segments content into groups.
|
5
5
|
*/
|
6
6
|
export declare const Divider: ForwardRefComponent<DividerProps>;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { renderDivider_unstable } from './renderDivider';
|
3
|
+
import { useDivider_unstable } from './useDivider';
|
4
|
+
import { useDividerStyles_unstable } from './useDividerStyles';
|
5
5
|
/**
|
6
|
-
*
|
6
|
+
* A divider visually segments content into groups.
|
7
7
|
*/
|
8
8
|
|
9
|
-
export
|
10
|
-
|
11
|
-
|
12
|
-
return
|
9
|
+
export const Divider = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
+
const state = useDivider_unstable(props, ref);
|
11
|
+
useDividerStyles_unstable(state);
|
12
|
+
return renderDivider_unstable(state);
|
13
13
|
});
|
14
14
|
Divider.displayName = 'Divider';
|
15
15
|
//# sourceMappingURL=Divider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,sBAAT,QAAuC,iBAAvC;AACA,SAAS,mBAAT,QAAoC,cAApC;AACA,SAAS,yBAAT,QAA0C,oBAA1C;AAIA;;AAEG;;AACH,OAAO,MAAM,OAAO,gBAAsC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxF,QAAM,KAAK,GAAG,mBAAmB,CAAC,KAAD,EAAQ,GAAR,CAAjC;AAEA,EAAA,yBAAyB,CAAC,KAAD,CAAzB;AAEA,SAAO,sBAAsB,CAAC,KAAD,CAA7B;AACD,CANyD,CAAnD;AAQP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourcesContent":["import * as React from 'react';\nimport { renderDivider_unstable } from './renderDivider';\nimport { useDivider_unstable } from './useDivider';\nimport { useDividerStyles_unstable } from './useDividerStyles';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { DividerProps } from './Divider.types';\n\n/**\n * A divider visually segments content into groups.\n */\nexport const Divider: ForwardRefComponent<DividerProps> = React.forwardRef((props, ref) => {\n const state = useDivider_unstable(props, ref);\n\n useDividerStyles_unstable(state);\n\n return renderDivider_unstable(state);\n});\n\nDivider.displayName = 'Divider';\n"],"sourceRoot":"../src/"}
|
@@ -1,35 +1,36 @@
|
|
1
|
-
import type { ComponentProps, ComponentState,
|
1
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
2
2
|
export declare type DividerSlots = {
|
3
|
-
|
3
|
+
/**
|
4
|
+
* Root of the component that renders as a `<div>` tag.
|
5
|
+
*/
|
6
|
+
root: Slot<'div'>;
|
4
7
|
/**
|
5
8
|
* 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
9
|
*/
|
10
|
-
wrapper:
|
10
|
+
wrapper: Slot<'div'>;
|
11
11
|
};
|
12
|
-
|
12
|
+
declare type DividerCommons = {
|
13
13
|
/**
|
14
14
|
* Determines the alignment of the content within the divider.
|
15
15
|
* @defaultvalue 'center'
|
16
16
|
*/
|
17
|
-
alignContent: 'start' | '
|
17
|
+
alignContent: 'start' | 'center' | 'end';
|
18
18
|
/**
|
19
19
|
* A divider can have one of the preset appearances.
|
20
20
|
* When not specified, the divider has its default appearance.
|
21
21
|
*/
|
22
22
|
appearance?: 'brand' | 'strong' | 'subtle';
|
23
23
|
/**
|
24
|
-
* Adds padding to the beginning and end of the divider
|
24
|
+
* Adds padding to the beginning and end of the divider.
|
25
25
|
* @default false
|
26
26
|
*/
|
27
27
|
inset: boolean;
|
28
28
|
/**
|
29
|
-
* A divider can be horizontal (default) or vertical
|
29
|
+
* A divider can be horizontal (default) or vertical.
|
30
30
|
* @default false
|
31
31
|
*/
|
32
32
|
vertical: boolean;
|
33
33
|
};
|
34
|
-
export declare type DividerProps = ComponentProps<DividerSlots
|
34
|
+
export declare type DividerProps = ComponentProps<Partial<DividerSlots>> & Partial<DividerCommons>;
|
35
35
|
export declare type DividerState = ComponentState<DividerSlots> & DividerCommons;
|
36
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Divider.types.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Divider.types.js","sourceRoot":"../src/","sources":["components/Divider/Divider.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type DividerSlots = {\n /**\n * Root of the component that renders as a `<div>` tag.\n */\n root: Slot<'div'>;\n\n /**\n * Accessibility wrapper for content when presented.\n */\n wrapper: Slot<'div'>;\n};\n\ntype DividerCommons = {\n /**\n * Determines the alignment of the content within the divider.\n * @defaultvalue 'center'\n */\n alignContent: 'start' | 'center' | 'end';\n\n /**\n * A divider can have one of the preset appearances.\n * When not specified, the divider has its default appearance.\n */\n appearance?: 'brand' | 'strong' | 'subtle';\n\n /**\n * Adds padding to the beginning and end of the divider.\n * @default false\n */\n inset: boolean;\n\n /**\n * A divider can be horizontal (default) or vertical.\n * @default false\n */\n vertical: boolean;\n};\n\nexport type DividerProps = ComponentProps<Partial<DividerSlots>> & Partial<DividerCommons>;\n\nexport type DividerState = ComponentState<DividerSlots> & DividerCommons;\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Divider/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './Divider';\nexport * from './Divider.types';\nexport * from './renderDivider';\nexport * from './useDivider';\nexport * from './useDividerStyles';\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { DividerState } from './Divider.types';
|
2
2
|
/**
|
3
|
-
*
|
3
|
+
* Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.
|
4
4
|
*/
|
5
|
-
export declare const
|
5
|
+
export declare const renderDivider_unstable: (state: DividerState) => JSX.Element;
|
@@ -1,15 +1,16 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import * as React from 'react';
|
3
2
|
import { getSlots } from '@fluentui/react-utilities';
|
4
3
|
/**
|
5
|
-
*
|
4
|
+
* Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.
|
6
5
|
*/
|
7
6
|
|
8
|
-
export
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
7
|
+
export const renderDivider_unstable = state => {
|
8
|
+
const {
|
9
|
+
slots,
|
10
|
+
slotProps
|
11
|
+
} = getSlots(state);
|
12
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
13
|
+
}, slotProps.root.children !== undefined && /*#__PURE__*/React.createElement(slots.wrapper, { ...slotProps.wrapper
|
14
|
+
}, slotProps.root.children));
|
14
15
|
};
|
15
16
|
//# sourceMappingURL=renderDivider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Divider/renderDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,sBAAsB,GAAI,KAAD,IAAwB;AAC5D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAe,KAAf,CAArC;AACA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,SAAS,CAAC,IAAV,CAAe,QAAf,KAA4B,SAA5B,iBACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,EAAA,GAAK,SAAS,CAAC;AAAf,GAAd,EAAuC,SAAS,CAAC,IAAV,CAAe,QAAtD,CAFJ,CADF;AAOD,CATM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { DividerSlots, DividerState } from './Divider.types';\n\n/**\n * Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.\n */\nexport const renderDivider_unstable = (state: DividerState) => {\n const { slots, slotProps } = getSlots<DividerSlots>(state);\n return (\n <slots.root {...slotProps.root}>\n {slotProps.root.children !== undefined && (\n <slots.wrapper {...slotProps.wrapper}>{slotProps.root.children}</slots.wrapper>\n )}\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
2
2
|
import type { DividerProps, DividerState } from './Divider.types';
|
3
3
|
/**
|
4
4
|
* Returns the props and state required to render the component
|
5
|
-
* @param props - Divider
|
6
|
-
* @param ref -
|
5
|
+
* @param props - User-provided props to the Divider component.
|
6
|
+
* @param ref - User-provided ref to be passed to the Divider component.
|
7
7
|
*/
|
8
|
-
export declare const
|
8
|
+
export declare const useDivider_unstable: (props: DividerProps, ref: React.Ref<HTMLElement>) => DividerState;
|
@@ -1,35 +1,36 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities';
|
3
2
|
/**
|
4
3
|
* Returns the props and state required to render the component
|
5
|
-
* @param props - Divider
|
6
|
-
* @param ref -
|
4
|
+
* @param props - User-provided props to the Divider component.
|
5
|
+
* @param ref - User-provided ref to be passed to the Divider component.
|
7
6
|
*/
|
8
7
|
|
9
|
-
export
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
var dividerId = useId('divider-');
|
8
|
+
export const useDivider_unstable = (props, ref) => {
|
9
|
+
const {
|
10
|
+
alignContent = 'center',
|
11
|
+
appearance,
|
12
|
+
inset = false,
|
13
|
+
vertical = false,
|
14
|
+
wrapper
|
15
|
+
} = props;
|
16
|
+
const dividerId = useId('divider-');
|
19
17
|
return {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
18
|
+
// Props passed at the top-level
|
19
|
+
alignContent,
|
20
|
+
appearance,
|
21
|
+
inset,
|
22
|
+
vertical,
|
23
|
+
// Slots definition
|
24
24
|
components: {
|
25
25
|
root: 'div',
|
26
26
|
wrapper: 'div'
|
27
27
|
},
|
28
|
-
root: getNativeElementProps('div',
|
29
|
-
ref
|
28
|
+
root: getNativeElementProps('div', { ...props,
|
29
|
+
ref,
|
30
30
|
role: 'separator',
|
31
|
+
'aria-orientation': vertical ? 'vertical' : 'horizontal',
|
31
32
|
'aria-labelledby': props.children ? dividerId : undefined
|
32
|
-
})
|
33
|
+
}),
|
33
34
|
wrapper: resolveShorthand(wrapper, {
|
34
35
|
required: true,
|
35
36
|
defaultProps: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Divider/useDivider.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,EAAkD,KAAlD,QAA+D,2BAA/D;AAGA;;;;AAIG;;AACH,OAAO,MAAM,mBAAmB,GAAG,CAAC,KAAD,EAAsB,GAAtB,KAAmE;AACpG,QAAM;AAAE,IAAA,YAAY,GAAG,QAAjB;AAA2B,IAAA,UAA3B;AAAuC,IAAA,KAAK,GAAG,KAA/C;AAAsD,IAAA,QAAQ,GAAG,KAAjE;AAAwE,IAAA;AAAxE,MAAoF,KAA1F;AACA,QAAM,SAAS,GAAG,KAAK,CAAC,UAAD,CAAvB;AAEA,SAAO;AACL;AACA,IAAA,YAFK;AAGL,IAAA,UAHK;AAIL,IAAA,KAJK;AAKL,IAAA,QALK;AAOL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,KADI;AAEV,MAAA,OAAO,EAAE;AAFC,KARP;AAaL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ,EACjC,GAAG,KAD8B;AAEjC,MAAA,GAFiC;AAGjC,MAAA,IAAI,EAAE,WAH2B;AAIjC,0BAAoB,QAAQ,GAAG,UAAH,GAAgB,YAJX;AAKjC,yBAAmB,KAAK,CAAC,QAAN,GAAiB,SAAjB,GAA6B;AALf,KAAR,CAbtB;AAoBL,IAAA,OAAO,EAAE,gBAAgB,CAAC,OAAD,EAAU;AACjC,MAAA,QAAQ,EAAE,IADuB;AAEjC,MAAA,YAAY,EAAE;AACZ,QAAA,EAAE,EAAE,SADQ;AAEZ,QAAA,QAAQ,EAAE,KAAK,CAAC;AAFJ;AAFmB,KAAV;AApBpB,GAAP;AA4BD,CAhCM","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport type { DividerProps, DividerState } from './Divider.types';\n\n/**\n * Returns the props and state required to render the component\n * @param props - User-provided props to the Divider component.\n * @param ref - User-provided ref to be passed to the Divider component.\n */\nexport const useDivider_unstable = (props: DividerProps, ref: React.Ref<HTMLElement>): DividerState => {\n const { alignContent = 'center', appearance, inset = false, vertical = false, wrapper } = props;\n const dividerId = useId('divider-');\n\n return {\n // Props passed at the top-level\n alignContent,\n appearance,\n inset,\n vertical,\n\n // Slots definition\n components: {\n root: 'div',\n wrapper: 'div',\n },\n\n root: getNativeElementProps('div', {\n ...props,\n ref,\n role: 'separator',\n 'aria-orientation': vertical ? 'vertical' : 'horizontal',\n 'aria-labelledby': props.children ? dividerId : undefined,\n }),\n wrapper: resolveShorthand(wrapper, {\n required: true,\n defaultProps: {\n id: dividerId,\n children: props.children,\n },\n }),\n };\n};\n"],"sourceRoot":"../src/"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { DividerState } from './Divider.types';
|
2
|
-
|
3
|
-
export declare const
|
2
|
+
export declare const dividerClassName = "fui-Divider";
|
3
|
+
export declare const useDividerStyles_unstable: (state: DividerState) => DividerState;
|