@fluentui/react-divider 9.0.0-alpha.9 → 9.0.0-beta.4

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 (85) hide show
  1. package/CHANGELOG.json +2010 -1
  2. package/CHANGELOG.md +768 -2
  3. package/Spec.md +22 -137
  4. package/dist/react-divider.d.ts +35 -49
  5. package/lib/Divider.js.map +1 -1
  6. package/lib/common/isConformant.d.ts +3 -1
  7. package/lib/common/isConformant.js +7 -5
  8. package/lib/common/isConformant.js.map +1 -1
  9. package/lib/components/Divider/Divider.d.ts +4 -5
  10. package/lib/components/Divider/Divider.js +6 -6
  11. package/lib/components/Divider/Divider.js.map +1 -1
  12. package/lib/components/Divider/Divider.types.d.ts +23 -36
  13. package/lib/components/Divider/Divider.types.js +1 -0
  14. package/lib/components/Divider/Divider.types.js.map +1 -1
  15. package/lib/components/Divider/index.js +1 -0
  16. package/lib/components/Divider/index.js.map +1 -1
  17. package/lib/components/Divider/renderDivider.d.ts +1 -1
  18. package/lib/components/Divider/renderDivider.js +8 -7
  19. package/lib/components/Divider/renderDivider.js.map +1 -1
  20. package/lib/components/Divider/useDivider.d.ts +4 -9
  21. package/lib/components/Divider/useDivider.js +37 -19
  22. package/lib/components/Divider/useDivider.js.map +1 -1
  23. package/lib/components/Divider/useDividerStyles.d.ts +2 -2
  24. package/lib/components/Divider/useDividerStyles.js +169 -204
  25. package/lib/components/Divider/useDividerStyles.js.map +1 -1
  26. package/lib/index.js.map +1 -1
  27. package/lib/tsdoc-metadata.json +1 -1
  28. package/lib-commonjs/Divider.js +7 -2
  29. package/lib-commonjs/Divider.js.map +1 -1
  30. package/lib-commonjs/common/isConformant.d.ts +3 -1
  31. package/lib-commonjs/common/isConformant.js +17 -7
  32. package/lib-commonjs/common/isConformant.js.map +1 -1
  33. package/lib-commonjs/components/Divider/Divider.d.ts +4 -5
  34. package/lib-commonjs/components/Divider/Divider.js +20 -11
  35. package/lib-commonjs/components/Divider/Divider.js.map +1 -1
  36. package/lib-commonjs/components/Divider/Divider.types.d.ts +23 -36
  37. package/lib-commonjs/components/Divider/Divider.types.js +4 -1
  38. package/lib-commonjs/components/Divider/Divider.types.js.map +1 -1
  39. package/lib-commonjs/components/Divider/index.js +12 -2
  40. package/lib-commonjs/components/Divider/index.js.map +1 -1
  41. package/lib-commonjs/components/Divider/renderDivider.d.ts +1 -1
  42. package/lib-commonjs/components/Divider/renderDivider.js +20 -10
  43. package/lib-commonjs/components/Divider/renderDivider.js.map +1 -1
  44. package/lib-commonjs/components/Divider/useDivider.d.ts +4 -9
  45. package/lib-commonjs/components/Divider/useDivider.js +46 -20
  46. package/lib-commonjs/components/Divider/useDivider.js.map +1 -1
  47. package/lib-commonjs/components/Divider/useDividerStyles.d.ts +2 -2
  48. package/lib-commonjs/components/Divider/useDividerStyles.js +178 -205
  49. package/lib-commonjs/components/Divider/useDividerStyles.js.map +1 -1
  50. package/lib-commonjs/index.js +7 -2
  51. package/lib-commonjs/index.js.map +1 -1
  52. package/package.json +15 -12
  53. package/NOTICE.txt +0 -0
  54. package/config/api-extractor.json +0 -3
  55. package/config/tests.js +0 -7
  56. package/etc/react-divider.api.md +0 -45
  57. package/just.config.ts +0 -3
  58. package/lib-amd/Divider.d.ts +0 -1
  59. package/lib-amd/Divider.js +0 -6
  60. package/lib-amd/Divider.js.map +0 -1
  61. package/lib-amd/common/isConformant.d.ts +0 -2
  62. package/lib-amd/common/isConformant.js +0 -13
  63. package/lib-amd/common/isConformant.js.map +0 -1
  64. package/lib-amd/components/Divider/Divider.d.ts +0 -7
  65. package/lib-amd/components/Divider/Divider.js +0 -15
  66. package/lib-amd/components/Divider/Divider.js.map +0 -1
  67. package/lib-amd/components/Divider/Divider.types.d.ts +0 -48
  68. package/lib-amd/components/Divider/Divider.types.js +0 -5
  69. package/lib-amd/components/Divider/Divider.types.js.map +0 -1
  70. package/lib-amd/components/Divider/index.d.ts +0 -5
  71. package/lib-amd/components/Divider/index.js +0 -9
  72. package/lib-amd/components/Divider/index.js.map +0 -1
  73. package/lib-amd/components/Divider/renderDivider.d.ts +0 -5
  74. package/lib-amd/components/Divider/renderDivider.js +0 -13
  75. package/lib-amd/components/Divider/renderDivider.js.map +0 -1
  76. package/lib-amd/components/Divider/useDivider.d.ts +0 -13
  77. package/lib-amd/components/Divider/useDivider.js +0 -26
  78. package/lib-amd/components/Divider/useDivider.js.map +0 -1
  79. package/lib-amd/components/Divider/useDividerStyles.d.ts +0 -3
  80. package/lib-amd/components/Divider/useDividerStyles.js +0 -210
  81. package/lib-amd/components/Divider/useDividerStyles.js.map +0 -1
  82. package/lib-amd/index.d.ts +0 -1
  83. package/lib-amd/index.js +0 -6
  84. package/lib-amd/index.js.map +0 -1
  85. package/src/components/Divider/Divider.types.ts +0 -56
@@ -1,48 +1,35 @@
1
- import * as React from 'react';
2
- import { ComponentProps, ShorthandProps } from '@fluentui/react-utilities';
3
- /**
4
- * {@docCategory Divider}
5
- */
6
- export interface DividerProps extends ComponentProps, React.HTMLAttributes<HTMLElement> {
1
+ import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
2
+ export declare type DividerSlots = {
7
3
  /**
8
- * Determines the alignment of the content within the divider.
9
- * @defaultvalue 'center'
4
+ * Root of the component that renders as a `<div>` tag.
10
5
  */
11
- alignContent?: 'start' | 'end' | 'center';
6
+ root: IntrinsicShorthandProps<'div'>;
12
7
  /**
13
- * Predefined visual styles
14
- * @defaultvalue 'default'
15
- */
16
- appearance?: 'default' | 'subtle' | 'brand' | 'strong';
17
- /**
18
- * A divider can be classified as important to emphasize its content
8
+ * Accessibility wrapper for content when presented.
19
9
  */
20
- important?: boolean;
10
+ wrapper: IntrinsicShorthandProps<'div'>;
11
+ };
12
+ export declare type DividerCommons = {
21
13
  /**
22
- * Adds a 12px padding to the begining and end of the divider
14
+ * Determines the alignment of the content within the divider.
15
+ * @defaultvalue 'center'
23
16
  */
24
- inset?: boolean;
17
+ alignContent: 'start' | 'center' | 'end';
25
18
  /**
26
- * A divider can be horizontal (default) or vertical*/
27
- vertical?: boolean;
28
- /**
29
- * Accessibility wrapper for content when presented.
30
- * A shorthand prop can be a literal, object, or
31
- * JSX. The `children` prop of the object can be a render function,
32
- * taking in the original slot component and props.
19
+ * A divider can have one of the preset appearances.
20
+ * When not specified, the divider has its default appearance.
33
21
  */
34
- wrapper?: ShorthandProps<React.HTMLAttributes<HTMLDivElement>>;
35
- }
36
- /**
37
- * {@docCategory Divider}
38
- */
39
- export interface DividerState extends DividerProps {
22
+ appearance?: 'brand' | 'strong' | 'subtle';
40
23
  /**
41
- * Ref to the root slot
24
+ * Adds padding to the beginning and end of the divider.
25
+ * @default false
42
26
  */
43
- ref: React.RefObject<HTMLElement>;
27
+ inset: boolean;
44
28
  /**
45
- * The Id created to expose accessability for readers
29
+ * A divider can be horizontal (default) or vertical.
30
+ * @default false
46
31
  */
47
- labelledById?: string;
48
- }
32
+ vertical: boolean;
33
+ };
34
+ export declare type DividerProps = ComponentProps<DividerSlots> & Partial<DividerCommons>;
35
+ export declare type DividerState = ComponentState<DividerSlots> & DividerCommons;
@@ -1,3 +1,6 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  //# sourceMappingURL=Divider.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.types.js","sourceRoot":"../src/","sources":["components/Divider/Divider.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport { ComponentProps, ShorthandProps } from '@fluentui/react-utilities';\n\n/**\n * {@docCategory Divider}\n */\nexport interface DividerProps extends ComponentProps, React.HTMLAttributes<HTMLElement> {\n /**\n * Determines the alignment of the content within the divider.\n * @defaultvalue 'center'\n */\n alignContent?: 'start' | 'end' | 'center';\n\n /**\n * Predefined visual styles\n * @defaultvalue 'default'\n */\n appearance?: 'default' | 'subtle' | 'brand' | 'strong';\n\n /**\n * A divider can be classified as important to emphasize its content\n */\n important?: boolean;\n\n /**\n * Adds a 12px padding to the begining and end of the divider\n */\n inset?: boolean;\n\n /**\n * A divider can be horizontal (default) or vertical*/\n vertical?: boolean;\n\n /**\n * Accessibility wrapper for content when presented.\n * A shorthand prop can be a literal, object, or\n * JSX. The `children` prop of the object can be a render function,\n * taking in the original slot component and props.\n */\n wrapper?: ShorthandProps<React.HTMLAttributes<HTMLDivElement>>;\n}\n\n/**\n * {@docCategory Divider}\n */\nexport interface DividerState extends DividerProps {\n /**\n * Ref to the root slot\n */\n ref: React.RefObject<HTMLElement>;\n\n /**\n * The Id created to expose accessability for readers\n */\n labelledById?: string;\n}\n"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":""}
@@ -1,8 +1,18 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
4
9
  tslib_1.__exportStar(require("./Divider"), exports);
10
+
11
+ tslib_1.__exportStar(require("./Divider.types"), exports);
12
+
5
13
  tslib_1.__exportStar(require("./renderDivider"), exports);
14
+
6
15
  tslib_1.__exportStar(require("./useDivider"), exports);
16
+
7
17
  tslib_1.__exportStar(require("./useDividerStyles"), exports);
8
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Divider/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAE1B,0DAAgC;AAChC,uDAA6B;AAC7B,6DAAmC","sourcesContent":["export * from './Divider';\nexport * from './Divider.types';\nexport * from './renderDivider';\nexport * from './useDivider';\nexport * from './useDividerStyles';\n"]}
1
+ {"version":3,"sources":["../../../src/components/Divider/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
@@ -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
5
  export declare const renderDivider: (state: DividerState) => JSX.Element;
@@ -1,15 +1,25 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- var React = require("react");
5
- var react_utilities_1 = require("@fluentui/react-utilities");
6
- var useDivider_1 = require("./useDivider");
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderDivider = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
7
11
  /**
8
- * Function that renders the final JSX of the component
12
+ * Renders a Divider component by passing the slot props (defined in `state`) to the appropriate slots.
9
13
  */
10
- exports.renderDivider = function (state) {
11
- var _a = react_utilities_1.getSlots(state, useDivider_1.dividerShorthandProps), slots = _a.slots, slotProps = _a.slotProps;
12
- var children = state.children;
13
- return (React.createElement(slots.root, tslib_1.__assign({}, slotProps.root, { role: "separator" }), children !== undefined && React.createElement(slots.wrapper, tslib_1.__assign({}, slotProps.wrapper))));
14
+
15
+
16
+ const renderDivider = state => {
17
+ const {
18
+ slots,
19
+ slotProps
20
+ } = react_utilities_1.getSlots(state, ['root', 'wrapper']);
21
+ return React.createElement(slots.root, Object.assign({}, slotProps.root), slotProps.root.children !== undefined && React.createElement(slots.wrapper, Object.assign({}, slotProps.wrapper), slotProps.root.children));
14
22
  };
23
+
24
+ exports.renderDivider = renderDivider;
15
25
  //# sourceMappingURL=renderDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderDivider.js","sourceRoot":"../src/","sources":["components/Divider/renderDivider.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAC/B,6DAAqD;AAErD,2CAAqD;AAErD;;GAEG;AACU,QAAA,aAAa,GAAG,UAAC,KAAmB;IACzC,IAAA,0EAA6D,EAA3D,gBAAK,EAAE,wBAAoD,CAAC;IAC5D,IAAA,yBAAQ,CAAW;IAE3B,OAAO,CACL,oBAAC,KAAK,CAAC,IAAI,uBAAK,SAAS,CAAC,IAAI,IAAE,IAAI,EAAC,WAAW,KAC7C,QAAQ,KAAK,SAAS,IAAI,oBAAC,KAAK,CAAC,OAAO,uBAAK,SAAS,CAAC,OAAO,EAAI,CACxD,CACd,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport { DividerState } from './Divider.types';\nimport { dividerShorthandProps } from './useDivider';\n\n/**\n * Function that renders the final JSX of the component\n */\nexport const renderDivider = (state: DividerState) => {\n const { slots, slotProps } = getSlots(state, dividerShorthandProps);\n const { children } = state;\n\n return (\n <slots.root {...slotProps.root} role=\"separator\">\n {children !== undefined && <slots.wrapper {...slotProps.wrapper} />}\n </slots.root>\n );\n};\n"]}
1
+ {"version":3,"sources":["../../../src/components/Divider/renderDivider.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,aAAa,GAAI,KAAD,IAAwB;AACnD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAuB,KAAvB,EAA8B,CAAC,MAAD,EAAS,SAAT,CAA9B,CAA7B;AACA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,SAAS,CAAC,IAAV,CAAe,QAAf,KAA4B,SAA5B,IACC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,OAAP,EAAc,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,OAAf,CAAd,EAAuC,SAAS,CAAC,IAAV,CAAe,QAAtD,CAFJ,CADF;AAOD,CATM;;AAAM,OAAA,CAAA,aAAA,GAAa,aAAb","sourceRoot":""}
@@ -1,13 +1,8 @@
1
1
  import * as React from 'react';
2
- import { DividerProps, DividerState } from './Divider.types';
3
- /**
4
- * Consts listing which props are shorthand props.
5
- */
6
- export declare const dividerShorthandProps: readonly ["wrapper", "children"];
2
+ import type { DividerProps, DividerState } from './Divider.types';
7
3
  /**
8
4
  * Returns the props and state required to render the component
9
- * @param props - Divider properties
10
- * @param ref - reference to root HTMLElement of Divider
11
- * @param defaultProps - default values for the properties 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.
12
7
  */
13
- export declare const useDivider: (props: DividerProps, ref: React.Ref<HTMLElement>, defaultProps?: DividerProps | undefined) => DividerState;
8
+ export declare const useDivider: (props: DividerProps, ref: React.Ref<HTMLElement>) => DividerState;
@@ -1,26 +1,52 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var React = require("react");
4
- var react_utilities_1 = require("@fluentui/react-utilities");
5
- /**
6
- * Consts listing which props are shorthand props.
7
- */
8
- exports.dividerShorthandProps = ['wrapper', 'children'];
9
- var mergeProps = react_utilities_1.makeMergeProps({ deepMerge: exports.dividerShorthandProps });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useDivider = void 0;
7
+
8
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
10
9
  /**
11
10
  * Returns the props and state required to render the component
12
- * @param props - Divider properties
13
- * @param ref - reference to root HTMLElement of Divider
14
- * @param defaultProps - default values for the properties of Divider
11
+ * @param props - User-provided props to the Divider component.
12
+ * @param ref - User-provided ref to be passed to the Divider component.
15
13
  */
16
- exports.useDivider = function (props, ref, defaultProps) {
17
- var dividerId = react_utilities_1.useId('divider-');
18
- var state = mergeProps({
19
- ref: react_utilities_1.useMergedRefs(ref, React.useRef(null)),
20
- /* The Id created to expose accessibility for readers */
21
- 'aria-labelledby': props.children ? dividerId : undefined,
22
- wrapper: { as: 'div', children: props.children, id: dividerId },
23
- }, defaultProps && react_utilities_1.resolveShorthandProps(defaultProps, exports.dividerShorthandProps), react_utilities_1.resolveShorthandProps(props, exports.dividerShorthandProps));
24
- return state;
14
+
15
+
16
+ const useDivider = (props, ref) => {
17
+ const {
18
+ alignContent = 'center',
19
+ appearance,
20
+ inset = false,
21
+ vertical = false,
22
+ wrapper
23
+ } = props;
24
+ const dividerId = react_utilities_1.useId('divider-');
25
+ return {
26
+ // Props passed at the top-level
27
+ alignContent,
28
+ appearance,
29
+ inset,
30
+ vertical,
31
+ // Slots definition
32
+ components: {
33
+ root: 'div',
34
+ wrapper: 'div'
35
+ },
36
+ root: react_utilities_1.getNativeElementProps('div', { ...props,
37
+ ref,
38
+ role: 'separator',
39
+ 'aria-labelledby': props.children ? dividerId : undefined
40
+ }),
41
+ wrapper: react_utilities_1.resolveShorthand(wrapper, {
42
+ required: true,
43
+ defaultProps: {
44
+ id: dividerId,
45
+ children: props.children
46
+ }
47
+ })
48
+ };
25
49
  };
50
+
51
+ exports.useDivider = useDivider;
26
52
  //# sourceMappingURL=useDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDivider.js","sourceRoot":"../src/","sources":["components/Divider/useDivider.ts"],"names":[],"mappings":";;AAAA,6BAA+B;AAC/B,6DAAwG;AAGxG;;GAEG;AACU,QAAA,qBAAqB,GAAG,CAAC,SAAS,EAAE,UAAU,CAAU,CAAC;AAEtE,IAAM,UAAU,GAAG,gCAAc,CAAe,EAAE,SAAS,EAAE,6BAAqB,EAAE,CAAC,CAAC;AAEtF;;;;;GAKG;AACU,QAAA,UAAU,GAAG,UACxB,KAAmB,EACnB,GAA2B,EAC3B,YAA2B;IAE3B,IAAM,SAAS,GAAG,uBAAK,CAAC,UAAU,CAAC,CAAC;IACpC,IAAM,KAAK,GAAG,UAAU,CACtB;QACE,GAAG,EAAE,+BAAa,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3C,wDAAwD;QACxD,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;QACzD,OAAO,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE;KAChE,EACD,YAAY,IAAI,uCAAqB,CAAC,YAAY,EAAE,6BAAqB,CAAC,EAC1E,uCAAqB,CAAC,KAAK,EAAE,6BAAqB,CAAC,CACpD,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["import * as React from 'react';\nimport { makeMergeProps, resolveShorthandProps, useId, useMergedRefs } from '@fluentui/react-utilities';\nimport { DividerProps, DividerState } from './Divider.types';\n\n/**\n * Consts listing which props are shorthand props.\n */\nexport const dividerShorthandProps = ['wrapper', 'children'] as const;\n\nconst mergeProps = makeMergeProps<DividerState>({ deepMerge: dividerShorthandProps });\n\n/**\n * Returns the props and state required to render the component\n * @param props - Divider properties\n * @param ref - reference to root HTMLElement of Divider\n * @param defaultProps - default values for the properties of Divider\n */\nexport const useDivider = (\n props: DividerProps,\n ref: React.Ref<HTMLElement>,\n defaultProps?: DividerProps,\n): DividerState => {\n const dividerId = useId('divider-');\n const state = mergeProps(\n {\n ref: useMergedRefs(ref, React.useRef(null)),\n /* The Id created to expose accessibility for readers */\n 'aria-labelledby': props.children ? dividerId : undefined,\n wrapper: { as: 'div', children: props.children, id: dividerId },\n },\n defaultProps && resolveShorthandProps(defaultProps, dividerShorthandProps),\n resolveShorthandProps(props, dividerShorthandProps),\n );\n\n return state;\n};\n"]}
1
+ {"version":3,"sources":["../../../src/components/Divider/useDivider.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;AAIG;;;AACI,MAAM,UAAU,GAAG,CAAC,KAAD,EAAsB,GAAtB,KAAmE;AAC3F,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,iBAAA,CAAA,KAAA,CAAM,UAAN,CAAlB;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,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA6B,EACjC,GAAG,KAD8B;AAEjC,MAAA,GAFiC;AAGjC,MAAA,IAAI,EAAE,WAH2B;AAIjC,yBAAmB,KAAK,CAAC,QAAN,GAAiB,SAAjB,GAA6B;AAJf,KAA7B,CAbD;AAmBL,IAAA,OAAO,EAAE,iBAAA,CAAA,gBAAA,CAAiB,OAAjB,EAA0B;AACjC,MAAA,QAAQ,EAAE,IADuB;AAEjC,MAAA,YAAY,EAAE;AACZ,QAAA,EAAE,EAAE,SADQ;AAEZ,QAAA,QAAQ,EAAE,KAAK,CAAC;AAFJ;AAFmB,KAA1B;AAnBJ,GAAP;AA2BD,CA/BM;;AAAM,OAAA,CAAA,UAAA,GAAU,UAAV","sourceRoot":""}
@@ -1,3 +1,3 @@
1
1
  import { DividerState } from './Divider.types';
2
- /** Applies style classnames to slots */
3
- export declare const useDividerStyles: (s: DividerState) => DividerState;
2
+ export declare const dividerClassName = "fui-Divider";
3
+ export declare const useDividerStyles: (state: DividerState) => DividerState;