@fluentui/react-divider 9.0.0-nightly.f81b28ceb3.1 → 9.0.0-rc.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 (48) hide show
  1. package/CHANGELOG.json +325 -16
  2. package/CHANGELOG.md +86 -10
  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 +9 -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
@@ -3,42 +3,42 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useDivider = void 0;
6
+ exports.useDivider_unstable = void 0;
7
7
 
8
- var tslib_1 = /*#__PURE__*/require("tslib");
9
-
10
- var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
8
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
9
  /**
12
10
  * Returns the props and state required to render the component
13
- * @param props - Divider properties
14
- * @param ref - reference to root HTMLElement 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
14
 
17
15
 
18
- var useDivider = function (props, ref) {
19
- var _a = props.alignContent,
20
- alignContent = _a === void 0 ? 'center' : _a,
21
- _b = props.inset,
22
- inset = _b === void 0 ? false : _b,
23
- _c = props.vertical,
24
- vertical = _c === void 0 ? false : _c,
25
- appearance = props.appearance,
26
- wrapper = props.wrapper;
27
- var dividerId = react_utilities_1.useId('divider-');
16
+ const useDivider_unstable = (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-');
28
25
  return {
29
- alignContent: alignContent,
30
- inset: inset,
31
- vertical: vertical,
32
- appearance: appearance,
26
+ // Props passed at the top-level
27
+ alignContent,
28
+ appearance,
29
+ inset,
30
+ vertical,
31
+ // Slots definition
33
32
  components: {
34
33
  root: 'div',
35
34
  wrapper: 'div'
36
35
  },
37
- root: react_utilities_1.getNativeElementProps('div', tslib_1.__assign(tslib_1.__assign({}, props), {
38
- ref: ref,
36
+ root: react_utilities_1.getNativeElementProps('div', { ...props,
37
+ ref,
39
38
  role: 'separator',
39
+ 'aria-orientation': vertical ? 'vertical' : 'horizontal',
40
40
  'aria-labelledby': props.children ? dividerId : undefined
41
- })),
41
+ }),
42
42
  wrapper: react_utilities_1.resolveShorthand(wrapper, {
43
43
  required: true,
44
44
  defaultProps: {
@@ -49,5 +49,5 @@ var useDivider = function (props, ref) {
49
49
  };
50
50
  };
51
51
 
52
- exports.useDivider = useDivider;
52
+ exports.useDivider_unstable = useDivider_unstable;
53
53
  //# sourceMappingURL=useDivider.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Divider/useDivider.ts"],"names":[],"mappings":";;;;;;;;;AACA,IAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;;;AAIG;;;AACI,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,KA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AAA,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,0BAAoB,QAAQ,GAAG,UAAH,GAAgB,YAJX;AAKjC,yBAAmB,KAAK,CAAC,QAAN,GAAiB,SAAjB,GAA6B;AALf,KAA7B,CAbD;AAoBL,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;AApBJ,GAAP;AA4BD,CAhCM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","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;
@@ -3,154 +3,188 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useDividerStyles = void 0;
6
+ exports.useDividerStyles_unstable = exports.dividerClassName = void 0;
7
7
 
8
- var react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
- var useStylesOverride = /*#__PURE__*/react_make_styles_1.__styles({
11
- "root": {
12
- "zmeg91": "f1cf0ue8",
13
- "Bp2y6oz": "f1os2kdj",
14
- "B6q7sii": "f11v3ve5",
15
- "B9ykze": "fcz5mhl",
16
- "Guog5e": "f19m260",
17
- "Blrmaa7": "f4gl4la",
18
- "Dx42av": "f14ajt6e",
19
- "Cmox77": "f1veoioe",
20
- "B4ndli0": "f1wdf0k2",
21
- "B0te19x": "fwj8351",
10
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
+
12
+ exports.dividerClassName = 'fui-Divider';
13
+ const contentSpacing = '12px';
14
+ const insetSpacing = '12px';
15
+ const maxStartEndLength = '8px';
16
+ const minStartEndLength = '8px;';
17
+
18
+ const useBaseStyles = /*#__PURE__*/react_1.__styles({
19
+ "base": {
22
20
  "Bt984gj": "f122n59",
23
- "sj55zd": "f1jpr9al",
21
+ "B7ck84d": "f1ewtqcl",
24
22
  "mc9l5x": "f22iagw",
23
+ "Beiy3e4": "f1063pyq",
25
24
  "Bh6795r": "fqerorx",
26
- "Beiy3e4": "f1ybs2uy",
27
- "Bahqtrf": "ffmiph4",
28
- "Be2twd7": "f1ru6jyu",
29
- "Bhrd7zp": "f12818pv",
30
25
  "qhf8xq": "f10pi13n",
31
- "B7ck84d": "f1ewtqcl",
32
- "Bg96gwp": "f1nsrjb9",
26
+ "Bahqtrf": "fk6fouc",
27
+ "Be2twd7": "fy9rknc",
28
+ "Bhrd7zp": "figsok6",
29
+ "Bg96gwp": "fwrc4pm",
30
+ "fsow6f": "f17mccla",
31
+ "sj55zd": "fkfq4zb",
32
+ "Bmqnesq": "f170vdtw",
33
33
  "pmf9yy": "fkmkm9e",
34
34
  "B438e65": "fbxxcv3",
35
- "Bmqnesq": "f170vdtw",
35
+ "ijj6k": "f1vdjgj",
36
+ "I89eb": ["fz0g6r7", "f1h60vep"],
37
+ "Bp1vogq": "fn9f2qq",
38
+ "Bohd3ja": ["f1h60vep", "fz0g6r7"],
39
+ "oqd9ik": "ffdc0f3",
36
40
  "Fdvyjd": "fsnc50s",
37
41
  "keybh5": "fjrry2l",
38
- "oqd9ik": "ffdc0f3"
42
+ "F7kzw7": "fii7hsz",
43
+ "B13j16c": ["fp9yzmz", "f1n0fcl2"],
44
+ "Bk8j60v": "f13jg1wd",
45
+ "Bpbi4o9": ["f1n0fcl2", "fp9yzmz"]
39
46
  },
40
47
  "childless": {
41
- "zmeg91": "f9bo81j"
42
- },
43
- "subtle": {
44
- "B0te19x": "f97j284"
45
- },
46
- "brand": {
47
- "B6q7sii": "f1gn02u7",
48
- "B0te19x": "f112szk3"
49
- },
50
- "strong": {
51
- "B0te19x": "f1lh371g"
52
- },
53
- "horizontal": {
54
- "a9b677": "fly5x3f",
55
- "ijj6k": "f1hn12av",
56
- "dj0dih": "f145s62n",
57
- "Bdixowu": "f1oxfz5b",
58
- "F7kzw7": "f1njospc",
59
- "Bouo9z4": "ffddkxw",
60
- "rskduk": "fs0a90v",
61
- "B5zdtcu": "foku0rs",
62
- "B8o95kv": "f1va7jzg"
63
- },
64
- "vertical": {
65
- "sshi5w": "f16gbxbe",
66
- "Beiy3e4": "f1vx9l62",
67
- "I89eb": ["ft59do8", "f159gpz7"],
68
- "D4ky5z": ["f15esl77", "f1l3drc5"],
69
- "cqycoz": ["f18gt5ge", "f16t5q7i"],
70
- "B13j16c": ["f1obfcjy", "f11jmm1c"],
71
- "Bjz4wo8": ["f911xs5", "f1jm9s6y"],
72
- "Dctjco": ["f8l7es7", "f1fvl5qx"],
73
- "B5zdtcu": "foku0rs",
74
- "B8o95kv": "f1va7jzg"
75
- },
76
- "verticalWithChildren": {
77
- "sshi5w": "f1tjaq3g"
48
+ "z1nrnc": "fc3uzr1",
49
+ "vrnxjr": ["fhlqc5k", "flnsm0g"],
50
+ "Bsz71t5": ["f1957mjw", "fxrad5j"],
51
+ "Brd3o3m": "f1hmx8el"
78
52
  },
79
53
  "start": {
80
54
  "Bs6t6z0": "fqc6z8f"
81
55
  },
82
- "end": {
83
- "rurcny": "fuzzvh5"
84
- },
85
56
  "center": {
86
57
  "rurcny": "fuzzvh5",
87
58
  "Bs6t6z0": "fqc6z8f"
88
59
  },
89
- "centerWithoutContent": {
60
+ "end": {
90
61
  "rurcny": "fuzzvh5"
91
62
  },
92
- "verticalStart": {
93
- "rurcny": "fuzzvh5",
94
- "B5kj21": "f1hheky8",
95
- "z1nrnc": "f8i3v0i",
96
- "Brd3o3m": "f11501bl"
63
+ "brand": {
64
+ "sj55zd": "f16muhyy",
65
+ "ijj6k": "fob59v2",
66
+ "I89eb": ["f2pevzt", "fuyeql9"],
67
+ "Bp1vogq": "f14lh9hz",
68
+ "Bohd3ja": ["fuyeql9", "f2pevzt"],
69
+ "F7kzw7": "fd73d1p",
70
+ "B13j16c": ["f11ucet6", "f1yegzx5"],
71
+ "Bk8j60v": "f1tupb0d",
72
+ "Bpbi4o9": ["f1yegzx5", "f11ucet6"]
97
73
  },
98
- "verticalEnd": {
99
- "z1nrnc": "f8i3v0i",
100
- "Bs6t6z0": "fqc6z8f",
101
- "iiodbw": "fp342oa",
102
- "Brd3o3m": "f11501bl"
74
+ "subtle": {
75
+ "ijj6k": "f8mhi1x",
76
+ "I89eb": ["f18m2ouc", "fddukvx"],
77
+ "Bp1vogq": "f9zmk3m",
78
+ "Bohd3ja": ["fddukvx", "f18m2ouc"],
79
+ "F7kzw7": "fxli1ey",
80
+ "B13j16c": ["f1qvt1bb", "f5ob950"],
81
+ "Bk8j60v": "f1nn0kgk",
82
+ "Bpbi4o9": ["f5ob950", "f1qvt1bb"]
103
83
  },
104
- "verticalCenter": {
105
- "z1nrnc": "f8i3v0i",
106
- "Brd3o3m": "f11501bl"
84
+ "strong": {
85
+ "ijj6k": "fkxqtrn",
86
+ "I89eb": ["f1yx8xct", "f2jll41"],
87
+ "Bp1vogq": "f1k9rjtw",
88
+ "Bohd3ja": ["f2jll41", "f1yx8xct"],
89
+ "F7kzw7": "f1i58boq",
90
+ "B13j16c": ["f4wmtn9", "f10n3jjp"],
91
+ "Bk8j60v": "ft17it6",
92
+ "Bpbi4o9": ["f10n3jjp", "f4wmtn9"]
93
+ }
94
+ }, {
95
+ "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);}"]
96
+ });
97
+
98
+ const useHorizontalStyles = /*#__PURE__*/react_1.__styles({
99
+ "base": {
100
+ "a9b677": "fly5x3f",
101
+ "Bdixowu": "f1bwkb58",
102
+ "dj0dih": "fn88edj",
103
+ "Bxms0xd": "f1lo4gz5",
104
+ "rskduk": "f1iq3fds",
105
+ "Bouo9z4": "f1oiuz89",
106
+ "Bcqngy1": "f108ofon"
107
107
  },
108
- "horizontalStart": {
109
- "vrnxjr": ["f5e79lz", "f1ofvrni"],
110
- "B24asle": "f19fn84r",
108
+ "inset": {
109
+ "uwmqm3": ["fjlbh76", "f11qrl6u"],
110
+ "z189sj": ["f11qrl6u", "fjlbh76"]
111
+ },
112
+ "start": {
111
113
  "rurcny": "fuzzvh5",
112
- "Bsz71t5": ["f11gbbo2", "f15d117x"]
114
+ "vrnxjr": ["fncq426", "f12b5w6c"],
115
+ "B24asle": "f19fn84r",
116
+ "Bsz71t5": ["f1io6r2y", "fn6j208"]
113
117
  },
114
- "horizontalEnd": {
115
- "vrnxjr": ["f5e79lz", "f1ofvrni"],
116
- "B79fe3b": "f3tzpys",
117
- "Bs6t6z0": "fqc6z8f",
118
- "Bsz71t5": ["f11gbbo2", "f15d117x"]
118
+ "center": {
119
+ "vrnxjr": ["fncq426", "f12b5w6c"],
120
+ "Bsz71t5": ["f1io6r2y", "fn6j208"]
119
121
  },
120
- "horizontalCenter": {
121
- "vrnxjr": ["f5e79lz", "f1ofvrni"],
122
- "Bsz71t5": ["f11gbbo2", "f15d117x"]
122
+ "end": {
123
+ "vrnxjr": ["fncq426", "f12b5w6c"],
124
+ "Bs6t6z0": "fqc6z8f",
125
+ "Bsz71t5": ["f1io6r2y", "fn6j208"],
126
+ "B79fe3b": "f3tzpys"
127
+ }
128
+ }, {
129
+ "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;}"]
130
+ });
131
+
132
+ const useVerticalStyles = /*#__PURE__*/react_1.__styles({
133
+ "base": {
134
+ "Beiy3e4": "f1vx9l62",
135
+ "sshi5w": "f16gbxbe",
136
+ "cqycoz": ["fiio4mc", "fc8z0qo"],
137
+ "D4ky5z": ["f54lnp5", "f5hao24"],
138
+ "Bxq2otu": "f11zhyjz",
139
+ "Dctjco": ["f1r2jemi", "f11olovk"],
140
+ "Bjz4wo8": ["f1o2ol1z", "f20720x"],
141
+ "B5p8dqe": "f14bbtgr"
123
142
  },
124
- "verticalColored": {
125
- "I89eb": ["ft59do8", "f159gpz7"],
126
- "B13j16c": ["f1obfcjy", "f11jmm1c"]
143
+ "inset": {
144
+ "B6of3ja": "f1xdg43u",
145
+ "jrapky": "f1jlhsmd"
127
146
  },
128
- "horizontalColored": {
129
- "ijj6k": "f1hn12av",
130
- "F7kzw7": "f1njospc"
147
+ "withChildren": {
148
+ "sshi5w": "f1tjaq3g"
131
149
  },
132
- "verticalChildless": {
133
- "z1nrnc": "fc3uzr1"
150
+ "start": {
151
+ "rurcny": "fuzzvh5",
152
+ "z1nrnc": "f1xy8239",
153
+ "B5kj21": "f1hheky8",
154
+ "Brd3o3m": "f1mz1b17"
134
155
  },
135
- "inset": {
136
- "uwmqm3": ["fjlbh76", "f11qrl6u"],
137
- "z189sj": ["f11qrl6u", "fjlbh76"]
156
+ "center": {
157
+ "z1nrnc": "f1xy8239",
158
+ "Brd3o3m": "f1mz1b17"
138
159
  },
139
- "verticalInset": {
140
- "B6of3ja": "f1xdg43u",
141
- "jrapky": "f1jlhsmd"
160
+ "end": {
161
+ "z1nrnc": "f1xy8239",
162
+ "Bs6t6z0": "fqc6z8f",
163
+ "Brd3o3m": "f1mz1b17",
164
+ "iiodbw": "fp342oa"
142
165
  }
143
166
  }, {
144
- "d": [".f1cf0ue8{--divider-borderMargin:12px;}", ".f1os2kdj{--divider-flexDirection:row;}", ".f11v3ve5{--divider-fontColor:var(--colorNeutralForeground2);}", ".fcz5mhl{--divider-fontFamily:Segoe UI;}", ".f19m260{--divider-fontSize:12px;}", ".f4gl4la{--divider-fontWeight:400;}", ".f14ajt6e{--divider-lineHeight:17px;}", ".f1veoioe{--divider-borderSize:1px;}", ".f1wdf0k2{--divider-borderStyle:solid;}", ".fwj8351{--divider-color:var(--colorNeutralStroke2);}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1jpr9al{color:var(--divider-fontColor);}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".fqerorx{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".f1ybs2uy{-webkit-flex-direction:var(--divider-flexDirection);-ms-flex-direction:var(--divider-flexDirection);flex-direction:var(--divider-flexDirection);}", ".ffmiph4{font-family:var(--divider-fontFamily);}", ".f1ru6jyu{font-size:var(--divider-fontSize);}", ".f12818pv{font-weight:var(--divider-fontWeight);}", ".f10pi13n{position:relative;}", ".f1ewtqcl{box-sizing:border-box;}", ".f1nsrjb9{line-height:var(--divider-lineHeight);}", ".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;}", ".f170vdtw:before{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;}", ".ffdc0f3:after{box-sizing:border-box;}", ".f9bo81j{--divider-borderMargin:0;}", ".f97j284{--divider-color:var(--colorNeutralStroke3);}", ".f1gn02u7{--divider-fontColor:var(--colorBrandBackgroundStatic);}", ".f112szk3{--divider-color:var(--colorBrandBackgroundStatic);}", ".f1lh371g{--divider-color:var(--colorNeutralStroke1);}", ".fly5x3f{width:100%;}", ".f1hn12av:before{border-top-color:var(--divider-color);}", ".f145s62n:before{border-top-width:var(--divider-borderSize);}", ".f1oxfz5b:before{border-top-style:var(--divider-borderStyle);}", ".f1njospc:after{border-top-color:var(--divider-color);}", ".ffddkxw:after{border-top-width:var(--divider-borderSize);}", ".fs0a90v:after{border-top-style:var(--divider-borderStyle);}", ".foku0rs>:only-child{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1va7jzg>:only-child{text-align:center;}", ".f16gbxbe{min-height:20px;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".ft59do8:before{border-right-color:var(--divider-color);}", ".f159gpz7:before{border-left-color:var(--divider-color);}", ".f15esl77:before{border-right-width:var(--divider-borderSize);}", ".f1l3drc5:before{border-left-width:var(--divider-borderSize);}", ".f18gt5ge:before{border-right-style:var(--divider-borderStyle);}", ".f16t5q7i:before{border-left-style:var(--divider-borderStyle);}", ".f1obfcjy:after{border-right-color:var(--divider-color);}", ".f11jmm1c:after{border-left-color:var(--divider-color);}", ".f911xs5:after{border-right-width:var(--divider-borderSize);}", ".f1jm9s6y:after{border-left-width:var(--divider-borderSize);}", ".f8l7es7:after{border-right-style:var(--divider-borderStyle);}", ".f1fvl5qx:after{border-left-style:var(--divider-borderStyle);}", ".f1tjaq3g{min-height:84px;}", ".fqc6z8f:after{content:\"\";}", ".fuzzvh5:before{content:\"\";}", ".f1hheky8:before{max-height:8px;}", ".f8i3v0i:before{margin-bottom:var(--divider-borderMargin);}", ".f11501bl:after{margin-top:var(--divider-borderMargin);}", ".fp342oa:after{max-height:8px;}", ".f5e79lz:before{margin-right:var(--divider-borderMargin);}", ".f1ofvrni:before{margin-left:var(--divider-borderMargin);}", ".f19fn84r:before{max-width:8px;}", ".f11gbbo2:after{margin-left:var(--divider-borderMargin);}", ".f15d117x:after{margin-right:var(--divider-borderMargin);}", ".f3tzpys:after{max-width:8px;}", ".fc3uzr1:before{margin-bottom:0;}", ".fjlbh76{padding-left:12px;}", ".f11qrl6u{padding-right:12px;}", ".f1xdg43u{margin-top:12px;}", ".f1jlhsmd{margin-bottom:12px;}"]
167
+ "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;}"]
145
168
  });
146
- /** Applies style classnames to slots */
147
-
148
169
 
149
- var useDividerStyles = function (state) {
150
- var styles = useStylesOverride();
151
- state.root.className = react_make_styles_1.mergeClasses(styles.root, !state.root.children && styles.childless, state.appearance === 'subtle' && styles.subtle, state.appearance === 'brand' && styles.brand, state.appearance === 'strong' && styles.strong, state.vertical ? styles.vertical : styles.horizontal, state.vertical && state.root.children !== undefined && styles.verticalWithChildren, state.alignContent === 'start' && styles.start, state.alignContent === 'end' && styles.end, (state.alignContent === 'center' || !state.alignContent) && state.root.children !== undefined && state.vertical && styles.center, (state.alignContent === 'center' || !state.alignContent) && state.root.children !== undefined && !state.vertical && styles.center, (state.alignContent === 'center' || !state.alignContent) && state.root.children === undefined && styles.centerWithoutContent, state.alignContent === 'start' && (state.vertical ? styles.verticalStart : styles.horizontalStart), state.alignContent === 'end' && (state.vertical ? styles.verticalEnd : styles.horizontalEnd), (state.alignContent === 'center' || !state.alignContent) && (state.vertical ? styles.verticalCenter : styles.horizontalCenter), state.root.color && (state.vertical ? styles.verticalColored : styles.horizontalColored), state.root.children === undefined && state.vertical && styles.verticalChildless, state.inset && (state.vertical ? styles.verticalInset : styles.inset), state.root.className);
170
+ const useDividerStyles_unstable = state => {
171
+ const baseStyles = useBaseStyles();
172
+ const horizontalStyles = useHorizontalStyles();
173
+ const verticalStyles = useVerticalStyles();
174
+ const {
175
+ alignContent,
176
+ appearance,
177
+ inset,
178
+ vertical
179
+ } = state;
180
+ state.root.className = react_1.mergeClasses(exports.dividerClassName, // Base styles
181
+ baseStyles.base, baseStyles[alignContent], appearance && baseStyles[appearance], // Horizontal styles
182
+ !vertical && horizontalStyles.base, !vertical && inset && horizontalStyles.inset, !vertical && horizontalStyles[alignContent], // Vertical styles
183
+ vertical && verticalStyles.base, vertical && inset && verticalStyles.inset, vertical && verticalStyles[alignContent], vertical && state.root.children !== undefined && verticalStyles.withChildren, // Childless styles
184
+ state.root.children === undefined && baseStyles.childless, // User provided class name
185
+ state.root.className);
152
186
  return state;
153
187
  };
154
188
 
155
- exports.useDividerStyles = useDividerStyles;
189
+ exports.useDividerStyles_unstable = useDividerStyles_unstable;
156
190
  //# sourceMappingURL=useDividerStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Divider/useDividerStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AAGA,IAAM,iBAAiB,gBAAG,mBAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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\nimport { DividerState } from './Divider.types';\n\nexport const dividerClassName = 'fui-Divider';\n\nconst contentSpacing = '12px';\nconst insetSpacing = '12px';\nconst maxStartEndLength = '8px';\nconst minStartEndLength = '8px;';\n\nconst useBaseStyles = makeStyles({\n // Base styles\n base: {\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'row',\n flexGrow: 1,\n position: 'relative',\n\n fontFamily: tokens.fontFamilyBase,\n fontSize: tokens.fontSizeBase200,\n fontWeight: tokens.fontWeightRegular,\n lineHeight: tokens.lineHeightBase200,\n textAlign: 'center',\n\n color: tokens.colorNeutralForeground2,\n\n ':before': {\n boxSizing: 'border-box',\n display: 'flex',\n flexGrow: 1,\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n\n ':after': {\n boxSizing: 'border-box',\n display: 'flex',\n flexGrow: 1,\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n },\n\n // Childless styles\n childless: {\n ':before': {\n marginBottom: 0,\n marginRight: 0,\n },\n\n ':after': {\n marginLeft: 0,\n marginTop: 0,\n },\n },\n\n // Alignment variations\n start: {\n ':after': {\n content: '\"\"',\n },\n },\n center: {\n ':before': {\n content: '\"\"',\n },\n ':after': {\n content: '\"\"',\n },\n },\n end: {\n ':before': {\n content: '\"\"',\n },\n },\n\n // Appearance variations\n brand: {\n color: tokens.colorBrandForeground1,\n\n ':before': {\n ...shorthands.borderColor(tokens.colorBrandStroke1),\n },\n\n ':after': {\n ...shorthands.borderColor(tokens.colorBrandStroke1),\n },\n },\n subtle: {\n ':before': {\n ...shorthands.borderColor(tokens.colorNeutralStroke3),\n },\n\n ':after': {\n ...shorthands.borderColor(tokens.colorNeutralStroke3),\n },\n },\n strong: {\n ':before': {\n ...shorthands.borderColor(tokens.colorNeutralStroke1),\n },\n\n ':after': {\n ...shorthands.borderColor(tokens.colorNeutralStroke1),\n },\n },\n});\n\nconst useHorizontalStyles = makeStyles({\n // Base styles\n base: {\n width: '100%',\n\n ':before': {\n borderTopStyle: 'solid',\n borderTopWidth: tokens.strokeWidthThin,\n minWidth: minStartEndLength,\n },\n\n ':after': {\n borderTopStyle: 'solid',\n borderTopWidth: tokens.strokeWidthThin,\n minWidth: minStartEndLength,\n },\n },\n\n // Inset styles\n inset: {\n paddingLeft: insetSpacing,\n paddingRight: insetSpacing,\n },\n\n // Alignment variations\n start: {\n ':before': {\n content: '\"\"',\n marginRight: contentSpacing,\n maxWidth: maxStartEndLength,\n },\n\n ':after': {\n marginLeft: contentSpacing,\n },\n },\n center: {\n ':before': {\n marginRight: contentSpacing,\n },\n ':after': {\n marginLeft: contentSpacing,\n },\n },\n end: {\n ':before': {\n marginRight: contentSpacing,\n },\n ':after': {\n content: '\"\"',\n marginLeft: contentSpacing,\n maxWidth: maxStartEndLength,\n },\n },\n});\n\nconst useVerticalStyles = makeStyles({\n // Base styles\n base: {\n flexDirection: 'column',\n minHeight: '20px',\n\n ':before': {\n borderRightStyle: 'solid',\n borderRightWidth: tokens.strokeWidthThin,\n minHeight: minStartEndLength,\n },\n\n ':after': {\n borderRightStyle: 'solid',\n borderRightWidth: tokens.strokeWidthThin,\n minHeight: minStartEndLength,\n },\n },\n\n // Inset styles\n inset: {\n marginTop: insetSpacing,\n marginBottom: insetSpacing,\n },\n\n // With children styles\n withChildren: {\n minHeight: '84px',\n },\n\n // Alignment variations\n start: {\n ':before': {\n content: '\"\"',\n marginBottom: contentSpacing,\n maxHeight: maxStartEndLength,\n },\n\n ':after': {\n marginTop: contentSpacing,\n },\n },\n center: {\n ':before': {\n marginBottom: contentSpacing,\n },\n ':after': {\n marginTop: contentSpacing,\n },\n },\n end: {\n ':before': {\n marginBottom: contentSpacing,\n },\n ':after': {\n content: '\"\"',\n marginTop: contentSpacing,\n maxHeight: maxStartEndLength,\n },\n },\n});\n\nexport const useDividerStyles_unstable = (state: DividerState): DividerState => {\n const baseStyles = useBaseStyles();\n const horizontalStyles = useHorizontalStyles();\n const verticalStyles = useVerticalStyles();\n\n const { alignContent, appearance, inset, vertical } = state;\n\n state.root.className = mergeClasses(\n dividerClassName,\n\n // Base styles\n baseStyles.base,\n baseStyles[alignContent],\n appearance && baseStyles[appearance],\n\n // Horizontal styles\n !vertical && horizontalStyles.base,\n !vertical && inset && horizontalStyles.inset,\n !vertical && horizontalStyles[alignContent],\n\n // Vertical styles\n vertical && verticalStyles.base,\n vertical && inset && verticalStyles.inset,\n vertical && verticalStyles[alignContent],\n vertical && state.root.children !== undefined && verticalStyles.withChildren,\n\n // Childless styles\n state.root.children === undefined && baseStyles.childless,\n\n // User provided class name\n state.root.className,\n );\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var tslib_1 = /*#__PURE__*/require("tslib");
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
8
 
9
9
  tslib_1.__exportStar(require("./Divider"), exports);
10
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './Divider';\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-divider",
3
- "version": "9.0.0-nightly.f81b28ceb3.1",
3
+ "version": "9.0.0-rc.4",
4
4
  "description": "Fluent UI component to visually separate content.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -19,17 +19,16 @@
19
19
  "just": "just-scripts",
20
20
  "lint": "just-scripts lint",
21
21
  "start": "yarn storybook",
22
- "test": "jest",
22
+ "test": "jest --passWithNoTests",
23
23
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
24
- "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-divider/src && yarn docs",
25
- "storybook": "start-storybook"
24
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-divider/src && yarn docs",
25
+ "storybook": "node ../../scripts/storybook/runner",
26
+ "type-check": "tsc -b tsconfig.json"
26
27
  },
27
28
  "devDependencies": {
28
- "@fluentui/babel-make-styles": "9.0.0-nightly.f81b28ceb3.1",
29
29
  "@fluentui/eslint-plugin": "*",
30
- "@fluentui/jest-serializer-make-styles": "9.0.0-nightly.f81b28ceb3.1",
31
30
  "@fluentui/react-conformance": "*",
32
- "@fluentui/react-conformance-make-styles": "9.0.0-nightly.f81b28ceb3.1",
31
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.3",
33
32
  "@fluentui/scripts": "^1.0.0",
34
33
  "@types/enzyme": "3.10.3",
35
34
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -43,8 +42,9 @@
43
42
  "react-test-renderer": "^16.3.0"
44
43
  },
45
44
  "dependencies": {
46
- "@fluentui/react-make-styles": "9.0.0-nightly.f81b28ceb3.1",
47
- "@fluentui/react-utilities": "9.0.0-nightly.f81b28ceb3.1",
45
+ "@griffel/react": "1.0.0",
46
+ "@fluentui/react-theme": "9.0.0-rc.3",
47
+ "@fluentui/react-utilities": "9.0.0-rc.4",
48
48
  "tslib": "^2.1.0"
49
49
  },
50
50
  "peerDependencies": {
@@ -54,7 +54,6 @@
54
54
  "react-dom": ">=16.8.0 <18.0.0"
55
55
  },
56
56
  "beachball": {
57
- "tag": "beta",
58
57
  "disallowedChangeTypes": [
59
58
  "major",
60
59
  "minor",
@@ -1,4 +0,0 @@
1
- import { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,11 +0,0 @@
1
- import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
- import makeStylesTests from '@fluentui/react-conformance-make-styles';
3
- export function isConformant(testInfo) {
4
- var defaultOptions = {
5
- asPropHandlesRef: true,
6
- componentPath: module.parent.filename.replace('.test', ''),
7
- extraTests: makeStylesTests
8
- };
9
- baseIsConformant(defaultOptions, testInfo);
10
- }
11
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAkF,6BAAlF;AACA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE;AAH+C,GAA7D;AAMA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
@@ -1,4 +0,0 @@
1
- import { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isConformant = void 0;
7
-
8
- var react_conformance_1 = /*#__PURE__*/require("@fluentui/react-conformance");
9
-
10
- var react_conformance_make_styles_1 = /*#__PURE__*/require("@fluentui/react-conformance-make-styles");
11
-
12
- function isConformant(testInfo) {
13
- var defaultOptions = {
14
- asPropHandlesRef: true,
15
- componentPath: module.parent.filename.replace('.test', ''),
16
- extraTests: react_conformance_make_styles_1.default
17
- };
18
- react_conformance_1.isConformant(defaultOptions, testInfo);
19
- }
20
-
21
- exports.isConformant = isConformant;
22
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,IAAA,+BAAA,gBAAA,OAAA,CAAA,yCAAA,CAAA;;AAEA,SAAgB,YAAhB,CACE,QADF,EAC2F;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,UAAU,EAAE,+BAAA,CAAA;AAH+C,GAA7D;AAMA,EAAA,mBAAA,CAAA,YAAA,CAAiB,cAAjB,EAAiC,QAAjC;AACD;;AAVD,OAAA,CAAA,YAAA,GAAA,YAAA","sourceRoot":""}