@fluentui/react-divider 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.1
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 +277 -16
- package/CHANGELOG.md +65 -10
- package/Spec.md +22 -132
- package/dist/react-divider.d.ts +20 -19
- 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/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-commonjs/Divider.js +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/index.js +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/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 { }
|
@@ -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":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/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","sourceRoot":""}
|
@@ -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,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":["../../../src/components/Divider/renderDivider.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../src/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","sourceRoot":""}
|
@@ -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":["../../../src/components/Divider/useDivider.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../src/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","sourceRoot":""}
|
@@ -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;
|
@@ -1,147 +1,179 @@
|
|
1
|
-
import { mergeClasses, __styles } from '@
|
1
|
+
import { mergeClasses, shorthands, __styles } from '@griffel/react';
|
2
|
+
import { tokens } from '@fluentui/react-theme';
|
3
|
+
export const dividerClassName = 'fui-Divider';
|
4
|
+
const contentSpacing = '12px';
|
5
|
+
const insetSpacing = '12px';
|
6
|
+
const maxStartEndLength = '8px';
|
7
|
+
const minStartEndLength = '8px;';
|
2
8
|
|
3
|
-
|
4
|
-
"
|
5
|
-
"zmeg91": "f1cf0ue8",
|
6
|
-
"Bp2y6oz": "f1os2kdj",
|
7
|
-
"B6q7sii": "f11v3ve5",
|
8
|
-
"B9ykze": "fcz5mhl",
|
9
|
-
"Guog5e": "f19m260",
|
10
|
-
"Blrmaa7": "f4gl4la",
|
11
|
-
"Dx42av": "f14ajt6e",
|
12
|
-
"Cmox77": "f1veoioe",
|
13
|
-
"B4ndli0": "f1wdf0k2",
|
14
|
-
"B0te19x": "fwj8351",
|
9
|
+
const useBaseStyles = /*#__PURE__*/__styles({
|
10
|
+
"base": {
|
15
11
|
"Bt984gj": "f122n59",
|
16
|
-
"
|
12
|
+
"B7ck84d": "f1ewtqcl",
|
17
13
|
"mc9l5x": "f22iagw",
|
14
|
+
"Beiy3e4": "f1063pyq",
|
18
15
|
"Bh6795r": "fqerorx",
|
19
|
-
"Beiy3e4": "f1ybs2uy",
|
20
|
-
"Bahqtrf": "ffmiph4",
|
21
|
-
"Be2twd7": "f1ru6jyu",
|
22
|
-
"Bhrd7zp": "f12818pv",
|
23
16
|
"qhf8xq": "f10pi13n",
|
24
|
-
"
|
25
|
-
"
|
17
|
+
"Bahqtrf": "fk6fouc",
|
18
|
+
"Be2twd7": "fy9rknc",
|
19
|
+
"Bhrd7zp": "figsok6",
|
20
|
+
"Bg96gwp": "fwrc4pm",
|
21
|
+
"fsow6f": "f17mccla",
|
22
|
+
"sj55zd": "fkfq4zb",
|
23
|
+
"Bmqnesq": "f170vdtw",
|
26
24
|
"pmf9yy": "fkmkm9e",
|
27
25
|
"B438e65": "fbxxcv3",
|
28
|
-
"
|
26
|
+
"ijj6k": "f1vdjgj",
|
27
|
+
"I89eb": ["fz0g6r7", "f1h60vep"],
|
28
|
+
"Bp1vogq": "fn9f2qq",
|
29
|
+
"Bohd3ja": ["f1h60vep", "fz0g6r7"],
|
30
|
+
"oqd9ik": "ffdc0f3",
|
29
31
|
"Fdvyjd": "fsnc50s",
|
30
32
|
"keybh5": "fjrry2l",
|
31
|
-
"
|
33
|
+
"F7kzw7": "fii7hsz",
|
34
|
+
"B13j16c": ["fp9yzmz", "f1n0fcl2"],
|
35
|
+
"Bk8j60v": "f13jg1wd",
|
36
|
+
"Bpbi4o9": ["f1n0fcl2", "fp9yzmz"]
|
32
37
|
},
|
33
38
|
"childless": {
|
34
|
-
"
|
35
|
-
|
36
|
-
|
37
|
-
"
|
38
|
-
},
|
39
|
-
"brand": {
|
40
|
-
"B6q7sii": "f1gn02u7",
|
41
|
-
"B0te19x": "f112szk3"
|
42
|
-
},
|
43
|
-
"strong": {
|
44
|
-
"B0te19x": "f1lh371g"
|
45
|
-
},
|
46
|
-
"horizontal": {
|
47
|
-
"a9b677": "fly5x3f",
|
48
|
-
"ijj6k": "f1hn12av",
|
49
|
-
"dj0dih": "f145s62n",
|
50
|
-
"Bdixowu": "f1oxfz5b",
|
51
|
-
"F7kzw7": "f1njospc",
|
52
|
-
"Bouo9z4": "ffddkxw",
|
53
|
-
"rskduk": "fs0a90v",
|
54
|
-
"B5zdtcu": "foku0rs",
|
55
|
-
"B8o95kv": "f1va7jzg"
|
56
|
-
},
|
57
|
-
"vertical": {
|
58
|
-
"sshi5w": "f16gbxbe",
|
59
|
-
"Beiy3e4": "f1vx9l62",
|
60
|
-
"I89eb": ["ft59do8", "f159gpz7"],
|
61
|
-
"D4ky5z": ["f15esl77", "f1l3drc5"],
|
62
|
-
"cqycoz": ["f18gt5ge", "f16t5q7i"],
|
63
|
-
"B13j16c": ["f1obfcjy", "f11jmm1c"],
|
64
|
-
"Bjz4wo8": ["f911xs5", "f1jm9s6y"],
|
65
|
-
"Dctjco": ["f8l7es7", "f1fvl5qx"],
|
66
|
-
"B5zdtcu": "foku0rs",
|
67
|
-
"B8o95kv": "f1va7jzg"
|
68
|
-
},
|
69
|
-
"verticalWithChildren": {
|
70
|
-
"sshi5w": "f1tjaq3g"
|
39
|
+
"z1nrnc": "fc3uzr1",
|
40
|
+
"vrnxjr": ["fhlqc5k", "flnsm0g"],
|
41
|
+
"Bsz71t5": ["f1957mjw", "fxrad5j"],
|
42
|
+
"Brd3o3m": "f1hmx8el"
|
71
43
|
},
|
72
44
|
"start": {
|
73
45
|
"Bs6t6z0": "fqc6z8f"
|
74
46
|
},
|
75
|
-
"end": {
|
76
|
-
"rurcny": "fuzzvh5"
|
77
|
-
},
|
78
47
|
"center": {
|
79
48
|
"rurcny": "fuzzvh5",
|
80
49
|
"Bs6t6z0": "fqc6z8f"
|
81
50
|
},
|
82
|
-
"
|
51
|
+
"end": {
|
83
52
|
"rurcny": "fuzzvh5"
|
84
53
|
},
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"
|
89
|
-
"
|
54
|
+
"brand": {
|
55
|
+
"sj55zd": "f16muhyy",
|
56
|
+
"ijj6k": "fob59v2",
|
57
|
+
"I89eb": ["f2pevzt", "fuyeql9"],
|
58
|
+
"Bp1vogq": "f14lh9hz",
|
59
|
+
"Bohd3ja": ["fuyeql9", "f2pevzt"],
|
60
|
+
"F7kzw7": "fd73d1p",
|
61
|
+
"B13j16c": ["f11ucet6", "f1yegzx5"],
|
62
|
+
"Bk8j60v": "f1tupb0d",
|
63
|
+
"Bpbi4o9": ["f1yegzx5", "f11ucet6"]
|
90
64
|
},
|
91
|
-
"
|
92
|
-
"
|
93
|
-
"
|
94
|
-
"
|
95
|
-
"
|
65
|
+
"subtle": {
|
66
|
+
"ijj6k": "f8mhi1x",
|
67
|
+
"I89eb": ["f18m2ouc", "fddukvx"],
|
68
|
+
"Bp1vogq": "f9zmk3m",
|
69
|
+
"Bohd3ja": ["fddukvx", "f18m2ouc"],
|
70
|
+
"F7kzw7": "fxli1ey",
|
71
|
+
"B13j16c": ["f1qvt1bb", "f5ob950"],
|
72
|
+
"Bk8j60v": "f1nn0kgk",
|
73
|
+
"Bpbi4o9": ["f5ob950", "f1qvt1bb"]
|
96
74
|
},
|
97
|
-
"
|
98
|
-
"
|
99
|
-
"
|
75
|
+
"strong": {
|
76
|
+
"ijj6k": "fkxqtrn",
|
77
|
+
"I89eb": ["f1yx8xct", "f2jll41"],
|
78
|
+
"Bp1vogq": "f1k9rjtw",
|
79
|
+
"Bohd3ja": ["f2jll41", "f1yx8xct"],
|
80
|
+
"F7kzw7": "f1i58boq",
|
81
|
+
"B13j16c": ["f4wmtn9", "f10n3jjp"],
|
82
|
+
"Bk8j60v": "ft17it6",
|
83
|
+
"Bpbi4o9": ["f10n3jjp", "f4wmtn9"]
|
84
|
+
}
|
85
|
+
}, {
|
86
|
+
"d": [".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1ewtqcl{box-sizing:border-box;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f10pi13n{position:relative;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".f17mccla{text-align:center;}", ".fkfq4zb{color:var(--colorNeutralForeground2);}", ".f170vdtw:before{box-sizing:border-box;}", ".fkmkm9e:before{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fbxxcv3:before{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1vdjgj:before{border-top-color:var(--colorNeutralStroke2);}", ".fz0g6r7:before{border-right-color:var(--colorNeutralStroke2);}", ".f1h60vep:before{border-left-color:var(--colorNeutralStroke2);}", ".fn9f2qq:before{border-bottom-color:var(--colorNeutralStroke2);}", ".ffdc0f3:after{box-sizing:border-box;}", ".fsnc50s:after{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fjrry2l:after{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".fii7hsz:after{border-top-color:var(--colorNeutralStroke2);}", ".fp9yzmz:after{border-right-color:var(--colorNeutralStroke2);}", ".f1n0fcl2:after{border-left-color:var(--colorNeutralStroke2);}", ".f13jg1wd:after{border-bottom-color:var(--colorNeutralStroke2);}", ".fc3uzr1:before{margin-bottom:0;}", ".fhlqc5k:before{margin-right:0;}", ".flnsm0g:before{margin-left:0;}", ".f1957mjw:after{margin-left:0;}", ".fxrad5j:after{margin-right:0;}", ".f1hmx8el:after{margin-top:0;}", ".fqc6z8f:after{content:\"\";}", ".fuzzvh5:before{content:\"\";}", ".f16muhyy{color:var(--colorBrandForeground1);}", ".fob59v2:before{border-top-color:var(--colorBrandStroke1);}", ".f2pevzt:before{border-right-color:var(--colorBrandStroke1);}", ".fuyeql9:before{border-left-color:var(--colorBrandStroke1);}", ".f14lh9hz:before{border-bottom-color:var(--colorBrandStroke1);}", ".fd73d1p:after{border-top-color:var(--colorBrandStroke1);}", ".f11ucet6:after{border-right-color:var(--colorBrandStroke1);}", ".f1yegzx5:after{border-left-color:var(--colorBrandStroke1);}", ".f1tupb0d:after{border-bottom-color:var(--colorBrandStroke1);}", ".f8mhi1x:before{border-top-color:var(--colorNeutralStroke3);}", ".f18m2ouc:before{border-right-color:var(--colorNeutralStroke3);}", ".fddukvx:before{border-left-color:var(--colorNeutralStroke3);}", ".f9zmk3m:before{border-bottom-color:var(--colorNeutralStroke3);}", ".fxli1ey:after{border-top-color:var(--colorNeutralStroke3);}", ".f1qvt1bb:after{border-right-color:var(--colorNeutralStroke3);}", ".f5ob950:after{border-left-color:var(--colorNeutralStroke3);}", ".f1nn0kgk:after{border-bottom-color:var(--colorNeutralStroke3);}", ".fkxqtrn:before{border-top-color:var(--colorNeutralStroke1);}", ".f1yx8xct:before{border-right-color:var(--colorNeutralStroke1);}", ".f2jll41:before{border-left-color:var(--colorNeutralStroke1);}", ".f1k9rjtw:before{border-bottom-color:var(--colorNeutralStroke1);}", ".f1i58boq:after{border-top-color:var(--colorNeutralStroke1);}", ".f4wmtn9:after{border-right-color:var(--colorNeutralStroke1);}", ".f10n3jjp:after{border-left-color:var(--colorNeutralStroke1);}", ".ft17it6:after{border-bottom-color:var(--colorNeutralStroke1);}"]
|
87
|
+
});
|
88
|
+
|
89
|
+
const useHorizontalStyles = /*#__PURE__*/__styles({
|
90
|
+
"base": {
|
91
|
+
"a9b677": "fly5x3f",
|
92
|
+
"Bdixowu": "f1bwkb58",
|
93
|
+
"dj0dih": "fn88edj",
|
94
|
+
"Bxms0xd": "f1lo4gz5",
|
95
|
+
"rskduk": "f1iq3fds",
|
96
|
+
"Bouo9z4": "f1oiuz89",
|
97
|
+
"Bcqngy1": "f108ofon"
|
100
98
|
},
|
101
|
-
"
|
102
|
-
"
|
103
|
-
"
|
99
|
+
"inset": {
|
100
|
+
"uwmqm3": ["fjlbh76", "f11qrl6u"],
|
101
|
+
"z189sj": ["f11qrl6u", "fjlbh76"]
|
102
|
+
},
|
103
|
+
"start": {
|
104
104
|
"rurcny": "fuzzvh5",
|
105
|
-
"
|
105
|
+
"vrnxjr": ["fncq426", "f12b5w6c"],
|
106
|
+
"B24asle": "f19fn84r",
|
107
|
+
"Bsz71t5": ["f1io6r2y", "fn6j208"]
|
106
108
|
},
|
107
|
-
"
|
108
|
-
"vrnxjr": ["
|
109
|
-
"
|
110
|
-
"Bs6t6z0": "fqc6z8f",
|
111
|
-
"Bsz71t5": ["f11gbbo2", "f15d117x"]
|
109
|
+
"center": {
|
110
|
+
"vrnxjr": ["fncq426", "f12b5w6c"],
|
111
|
+
"Bsz71t5": ["f1io6r2y", "fn6j208"]
|
112
112
|
},
|
113
|
-
"
|
114
|
-
"vrnxjr": ["
|
115
|
-
"
|
113
|
+
"end": {
|
114
|
+
"vrnxjr": ["fncq426", "f12b5w6c"],
|
115
|
+
"Bs6t6z0": "fqc6z8f",
|
116
|
+
"Bsz71t5": ["f1io6r2y", "fn6j208"],
|
117
|
+
"B79fe3b": "f3tzpys"
|
118
|
+
}
|
119
|
+
}, {
|
120
|
+
"d": [".fly5x3f{width:100%;}", ".f1bwkb58:before{border-top-style:solid;}", ".fn88edj:before{border-top-width:var(--strokeWidthThin);}", ".f1lo4gz5:before{min-width:8px;}", ".f1iq3fds:after{border-top-style:solid;}", ".f1oiuz89:after{border-top-width:var(--strokeWidthThin);}", ".f108ofon:after{min-width:8px;}", ".fjlbh76{padding-left:12px;}", ".f11qrl6u{padding-right:12px;}", ".fuzzvh5:before{content:\"\";}", ".fncq426:before{margin-right:12px;}", ".f12b5w6c:before{margin-left:12px;}", ".f19fn84r:before{max-width:8px;}", ".f1io6r2y:after{margin-left:12px;}", ".fn6j208:after{margin-right:12px;}", ".fqc6z8f:after{content:\"\";}", ".f3tzpys:after{max-width:8px;}"]
|
121
|
+
});
|
122
|
+
|
123
|
+
const useVerticalStyles = /*#__PURE__*/__styles({
|
124
|
+
"base": {
|
125
|
+
"Beiy3e4": "f1vx9l62",
|
126
|
+
"sshi5w": "f16gbxbe",
|
127
|
+
"cqycoz": ["fiio4mc", "fc8z0qo"],
|
128
|
+
"D4ky5z": ["f54lnp5", "f5hao24"],
|
129
|
+
"Bxq2otu": "f11zhyjz",
|
130
|
+
"Dctjco": ["f1r2jemi", "f11olovk"],
|
131
|
+
"Bjz4wo8": ["f1o2ol1z", "f20720x"],
|
132
|
+
"B5p8dqe": "f14bbtgr"
|
116
133
|
},
|
117
|
-
"
|
118
|
-
"
|
119
|
-
"
|
134
|
+
"inset": {
|
135
|
+
"B6of3ja": "f1xdg43u",
|
136
|
+
"jrapky": "f1jlhsmd"
|
120
137
|
},
|
121
|
-
"
|
122
|
-
"
|
123
|
-
"F7kzw7": "f1njospc"
|
138
|
+
"withChildren": {
|
139
|
+
"sshi5w": "f1tjaq3g"
|
124
140
|
},
|
125
|
-
"
|
126
|
-
"
|
141
|
+
"start": {
|
142
|
+
"rurcny": "fuzzvh5",
|
143
|
+
"z1nrnc": "f1xy8239",
|
144
|
+
"B5kj21": "f1hheky8",
|
145
|
+
"Brd3o3m": "f1mz1b17"
|
127
146
|
},
|
128
|
-
"
|
129
|
-
"
|
130
|
-
"
|
147
|
+
"center": {
|
148
|
+
"z1nrnc": "f1xy8239",
|
149
|
+
"Brd3o3m": "f1mz1b17"
|
131
150
|
},
|
132
|
-
"
|
133
|
-
"
|
134
|
-
"
|
151
|
+
"end": {
|
152
|
+
"z1nrnc": "f1xy8239",
|
153
|
+
"Bs6t6z0": "fqc6z8f",
|
154
|
+
"Brd3o3m": "f1mz1b17",
|
155
|
+
"iiodbw": "fp342oa"
|
135
156
|
}
|
136
157
|
}, {
|
137
|
-
"d": [".
|
158
|
+
"d": [".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".f16gbxbe{min-height:20px;}", ".fiio4mc:before{border-right-style:solid;}", ".fc8z0qo:before{border-left-style:solid;}", ".f54lnp5:before{border-right-width:var(--strokeWidthThin);}", ".f5hao24:before{border-left-width:var(--strokeWidthThin);}", ".f11zhyjz:before{min-height:8px;}", ".f1r2jemi:after{border-right-style:solid;}", ".f11olovk:after{border-left-style:solid;}", ".f1o2ol1z:after{border-right-width:var(--strokeWidthThin);}", ".f20720x:after{border-left-width:var(--strokeWidthThin);}", ".f14bbtgr:after{min-height:8px;}", ".f1xdg43u{margin-top:12px;}", ".f1jlhsmd{margin-bottom:12px;}", ".f1tjaq3g{min-height:84px;}", ".fuzzvh5:before{content:\"\";}", ".f1xy8239:before{margin-bottom:12px;}", ".f1hheky8:before{max-height:8px;}", ".f1mz1b17:after{margin-top:12px;}", ".fqc6z8f:after{content:\"\";}", ".fp342oa:after{max-height:8px;}"]
|
138
159
|
});
|
139
|
-
/** Applies style classnames to slots */
|
140
|
-
|
141
160
|
|
142
|
-
export
|
143
|
-
|
144
|
-
|
161
|
+
export const useDividerStyles_unstable = state => {
|
162
|
+
const baseStyles = useBaseStyles();
|
163
|
+
const horizontalStyles = useHorizontalStyles();
|
164
|
+
const verticalStyles = useVerticalStyles();
|
165
|
+
const {
|
166
|
+
alignContent,
|
167
|
+
appearance,
|
168
|
+
inset,
|
169
|
+
vertical
|
170
|
+
} = state;
|
171
|
+
state.root.className = mergeClasses(dividerClassName, // Base styles
|
172
|
+
baseStyles.base, baseStyles[alignContent], appearance && baseStyles[appearance], // Horizontal styles
|
173
|
+
!vertical && horizontalStyles.base, !vertical && inset && horizontalStyles.inset, !vertical && horizontalStyles[alignContent], // Vertical styles
|
174
|
+
vertical && verticalStyles.base, vertical && inset && verticalStyles.inset, vertical && verticalStyles[alignContent], vertical && state.root.children !== undefined && verticalStyles.withChildren, // Childless styles
|
175
|
+
state.root.children === undefined && baseStyles.childless, // User provided class name
|
176
|
+
state.root.className);
|
145
177
|
return state;
|
146
178
|
};
|
147
179
|
//# sourceMappingURL=useDividerStyles.js.map
|