@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.
Files changed (48) hide show
  1. package/CHANGELOG.json +290 -22
  2. package/CHANGELOG.md +76 -12
  3. package/Spec.md +22 -132
  4. package/dist/react-divider.d.ts +20 -19
  5. package/lib/Divider.js.map +1 -1
  6. package/lib/components/Divider/Divider.d.ts +2 -2
  7. package/lib/components/Divider/Divider.js +8 -8
  8. package/lib/components/Divider/Divider.js.map +1 -1
  9. package/lib/components/Divider/Divider.types.d.ts +12 -11
  10. package/lib/components/Divider/Divider.types.js.map +1 -1
  11. package/lib/components/Divider/index.js.map +1 -1
  12. package/lib/components/Divider/renderDivider.d.ts +2 -2
  13. package/lib/components/Divider/renderDivider.js +9 -8
  14. package/lib/components/Divider/renderDivider.js.map +1 -1
  15. package/lib/components/Divider/useDivider.d.ts +3 -3
  16. package/lib/components/Divider/useDivider.js +21 -20
  17. package/lib/components/Divider/useDivider.js.map +1 -1
  18. package/lib/components/Divider/useDividerStyles.d.ts +2 -2
  19. package/lib/components/Divider/useDividerStyles.js +140 -108
  20. package/lib/components/Divider/useDividerStyles.js.map +1 -1
  21. package/lib/index.js.map +1 -1
  22. package/lib-commonjs/Divider.js +1 -1
  23. package/lib-commonjs/Divider.js.map +1 -1
  24. package/lib-commonjs/components/Divider/Divider.d.ts +2 -2
  25. package/lib-commonjs/components/Divider/Divider.js +9 -9
  26. package/lib-commonjs/components/Divider/Divider.js.map +1 -1
  27. package/lib-commonjs/components/Divider/Divider.types.d.ts +12 -11
  28. package/lib-commonjs/components/Divider/Divider.types.js.map +1 -1
  29. package/lib-commonjs/components/Divider/index.js +1 -1
  30. package/lib-commonjs/components/Divider/index.js.map +1 -1
  31. package/lib-commonjs/components/Divider/renderDivider.d.ts +2 -2
  32. package/lib-commonjs/components/Divider/renderDivider.js +13 -13
  33. package/lib-commonjs/components/Divider/renderDivider.js.map +1 -1
  34. package/lib-commonjs/components/Divider/useDivider.d.ts +3 -3
  35. package/lib-commonjs/components/Divider/useDivider.js +24 -24
  36. package/lib-commonjs/components/Divider/useDivider.js.map +1 -1
  37. package/lib-commonjs/components/Divider/useDividerStyles.d.ts +2 -2
  38. package/lib-commonjs/components/Divider/useDividerStyles.js +144 -110
  39. package/lib-commonjs/components/Divider/useDividerStyles.js.map +1 -1
  40. package/lib-commonjs/index.js +1 -1
  41. package/lib-commonjs/index.js.map +1 -1
  42. package/package.json +8 -10
  43. package/lib/common/isConformant.d.ts +0 -4
  44. package/lib/common/isConformant.js +0 -11
  45. package/lib/common/isConformant.js.map +0 -1
  46. package/lib-commonjs/common/isConformant.d.ts +0 -4
  47. package/lib-commonjs/common/isConformant.js +0 -22
  48. package/lib-commonjs/common/isConformant.js.map +0 -1
@@ -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
- * Define a styled Divider, using the `useDivider` and `useDividerStyles` hooks.
8
+ * A divider visually segments content into groups.
9
9
  */
10
10
  export declare const Divider: ForwardRefComponent<DividerProps>;
11
11
 
12
- export declare type DividerCommons = {
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' | 'end' | 'center';
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> & Partial<DividerCommons>;
37
+ export declare type DividerProps = ComponentProps<Partial<DividerSlots>> & Partial<DividerCommons>;
36
38
 
37
39
  export declare type DividerSlots = {
38
- root: IntrinsicShorthandProps<'div'>;
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: IntrinsicShorthandProps<'div'>;
47
+ wrapper: Slot<'div'>;
46
48
  };
47
49
 
48
50
  export declare type DividerState = ComponentState<DividerSlots> & DividerCommons;
49
51
 
50
52
  /**
51
- * Function that renders the final JSX of the component
53
+ * Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.
52
54
  */
53
- export declare const renderDivider: (state: DividerState) => JSX.Element;
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 properties
58
- * @param ref - reference to root HTMLElement of Divider
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 useDivider: (props: DividerProps, ref: React_2.Ref<HTMLElement>) => DividerState;
62
+ export declare const useDivider_unstable: (props: DividerProps, ref: React_2.Ref<HTMLElement>) => DividerState;
61
63
 
62
- /** Applies style classnames to slots */
63
- export declare const useDividerStyles: (state: DividerState) => DividerState;
64
+ export declare const useDividerStyles_unstable: (state: DividerState) => DividerState;
64
65
 
65
66
  export { }
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.js","sourceRoot":"","sources":["../src/Divider.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
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
- * Define a styled Divider, using the `useDivider` and `useDividerStyles` hooks.
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 { renderDivider } from './renderDivider';
3
- import { useDivider } from './useDivider';
4
- import { useDividerStyles } from './useDividerStyles';
2
+ import { renderDivider_unstable } from './renderDivider';
3
+ import { useDivider_unstable } from './useDivider';
4
+ import { useDividerStyles_unstable } from './useDividerStyles';
5
5
  /**
6
- * Define a styled Divider, using the `useDivider` and `useDividerStyles` hooks.
6
+ * A divider visually segments content into groups.
7
7
  */
8
8
 
9
- export var Divider = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
- var state = useDivider(props, ref);
11
- useDividerStyles(state);
12
- return renderDivider(state);
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,aAAT,QAA8B,iBAA9B;AACA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,gBAAT,QAAiC,oBAAjC;AAIA;;AAEG;;AACH,OAAO,IAAM,OAAO,gBAAsC,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AACpF,MAAM,KAAK,GAAG,UAAU,CAAC,KAAD,EAAQ,GAAR,CAAxB;AAEA,EAAA,gBAAgB,CAAC,KAAD,CAAhB;AACA,SAAO,aAAa,CAAC,KAAD,CAApB;AACD,CALyD,CAAnD;AAOP,OAAO,CAAC,WAAR,GAAsB,SAAtB","sourceRoot":""}
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, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
2
2
  export declare type DividerSlots = {
3
- root: IntrinsicShorthandProps<'div'>;
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: IntrinsicShorthandProps<'div'>;
10
+ wrapper: Slot<'div'>;
11
11
  };
12
- export declare type DividerCommons = {
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' | 'end' | 'center';
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> & Partial<DividerCommons>;
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":["../../../src/components/Divider/Divider.types.ts"],"names":[],"mappings":""}
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":["../../../src/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"}
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
- * Function that renders the final JSX of the component
3
+ * Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.
4
4
  */
5
- export declare const renderDivider: (state: DividerState) => JSX.Element;
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
- * Function that renders the final JSX of the component
4
+ * Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.
6
5
  */
7
6
 
8
- export var renderDivider = function (state) {
9
- var _a = getSlots(state, ['root', 'wrapper']),
10
- slots = _a.slots,
11
- slotProps = _a.slotProps;
12
-
13
- return /*#__PURE__*/React.createElement(slots.root, __assign({}, slotProps.root), slotProps.root.children !== undefined && /*#__PURE__*/React.createElement(slots.wrapper, __assign({}, slotProps.wrapper), slotProps.root.children));
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":";AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,IAAM,aAAa,GAAG,UAAC,KAAD,EAAoB;AACzC,MAAA,EAAA,GAAuB,QAAQ,CAAe,KAAf,EAAsB,CAAC,MAAD,EAAS,SAAT,CAAtB,CAA/B;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AACN,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,SAAS,CAAC,IAAV,CAAe,QAAf,KAA4B,SAA5B,iBACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,OAAf,CAAd,EAAuC,SAAS,CAAC,IAAV,CAAe,QAAtD,CAFJ,CADF;AAOD,CATM","sourceRoot":""}
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 properties
6
- * @param ref - reference to root HTMLElement of Divider
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 useDivider: (props: DividerProps, ref: React.Ref<HTMLElement>) => DividerState;
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 properties
6
- * @param ref - reference to root HTMLElement of Divider
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 var useDivider = function (props, ref) {
10
- var _a = props.alignContent,
11
- alignContent = _a === void 0 ? 'center' : _a,
12
- _b = props.inset,
13
- inset = _b === void 0 ? false : _b,
14
- _c = props.vertical,
15
- vertical = _c === void 0 ? false : _c,
16
- appearance = props.appearance,
17
- wrapper = props.wrapper;
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
- alignContent: alignContent,
21
- inset: inset,
22
- vertical: vertical,
23
- appearance: appearance,
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', __assign(__assign({}, props), {
29
- ref: 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":";AACA,SAAS,qBAAT,EAAgC,gBAAhC,EAAkD,KAAlD,QAA+D,2BAA/D;AAGA;;;;AAIG;;AACH,OAAO,IAAM,UAAU,GAAG,UAAC,KAAD,EAAsB,GAAtB,EAAiD;AACjE,MAAA,EAAA,GAAkF,KAAK,CAAhE,YAAvB;AAAA,MAAA,YAAY,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,QAAH,GAAW,EAAvB;AAAA,MAAyB,EAAA,GAAyD,KAAK,CAAjD,KAAtC;AAAA,MAAyB,KAAK,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQ,EAAtC;AAAA,MAAwC,EAAA,GAA0C,KAAK,CAA/B,QAAxD;AAAA,MAAwC,QAAQ,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQ,EAAxD;AAAA,MAA0D,UAAU,GAAc,KAAK,CAAnB,UAApE;AAAA,MAAsE,OAAO,GAAK,KAAK,CAAV,OAA7E;AACR,MAAM,SAAS,GAAG,KAAK,CAAC,UAAD,CAAvB;AAEA,SAAO;AACL,IAAA,YAAY,EAAA,YADP;AAEL,IAAA,KAAK,EAAA,KAFA;AAGL,IAAA,QAAQ,EAAA,QAHH;AAIL,IAAA,UAAU,EAAA,UAJL;AAKL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,KADI;AAEV,MAAA,OAAO,EAAE;AAFC,KALP;AASL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAM,QAAA,CAAA,QAAA,CAAA,EAAA,EAC5B,KAD4B,CAAA,EACvB;AACR,MAAA,GAAG,EAAA,GADK;AAER,MAAA,IAAI,EAAE,WAFE;AAGR,yBAAmB,KAAK,CAAC,QAAN,GAAiB,SAAjB,GAA6B;AAHxC,KADuB,CAAN,CATtB;AAeL,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;AAfpB,GAAP;AAuBD,CA3BM","sourceRoot":""}
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
- /** Applies style classnames to slots */
3
- export declare const useDividerStyles: (state: DividerState) => DividerState;
2
+ export declare const dividerClassName = "fui-Divider";
3
+ export declare const useDividerStyles_unstable: (state: DividerState) => DividerState;