@fluentui/react-label 0.0.0-nightlydd0f007b3f20220119.1 → 0.0.0-nightlye0b8e1fa6920220128.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/CHANGELOG.json +36 -24
  2. package/CHANGELOG.md +11 -10
  3. package/Spec.md +3 -3
  4. package/dist/react-label.d.ts +9 -10
  5. package/lib/components/Label/Label.js +6 -6
  6. package/lib/components/Label/Label.js.map +1 -1
  7. package/lib/components/Label/Label.types.d.ts +4 -4
  8. package/lib/components/Label/renderLabel.d.ts +1 -1
  9. package/lib/components/Label/renderLabel.js +1 -1
  10. package/lib/components/Label/renderLabel.js.map +1 -1
  11. package/lib/components/Label/useLabel.d.ts +3 -3
  12. package/lib/components/Label/useLabel.js +3 -3
  13. package/lib/components/Label/useLabel.js.map +1 -1
  14. package/lib/components/Label/useLabelStyles.d.ts +1 -1
  15. package/lib/components/Label/useLabelStyles.js +2 -2
  16. package/lib/components/Label/useLabelStyles.js.map +1 -1
  17. package/lib-commonjs/components/Label/Label.js +3 -3
  18. package/lib-commonjs/components/Label/Label.js.map +1 -1
  19. package/lib-commonjs/components/Label/Label.types.d.ts +4 -4
  20. package/lib-commonjs/components/Label/renderLabel.d.ts +1 -1
  21. package/lib-commonjs/components/Label/renderLabel.js +3 -3
  22. package/lib-commonjs/components/Label/renderLabel.js.map +1 -1
  23. package/lib-commonjs/components/Label/useLabel.d.ts +3 -3
  24. package/lib-commonjs/components/Label/useLabel.js +5 -5
  25. package/lib-commonjs/components/Label/useLabel.js.map +1 -1
  26. package/lib-commonjs/components/Label/useLabelStyles.d.ts +1 -1
  27. package/lib-commonjs/components/Label/useLabelStyles.js +7 -7
  28. package/lib-commonjs/components/Label/useLabelStyles.js.map +1 -1
  29. package/package.json +4 -6
package/CHANGELOG.json CHANGED
@@ -2,64 +2,70 @@
2
2
  "name": "@fluentui/react-label",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 19 Jan 2022 04:16:37 GMT",
6
- "tag": "@fluentui/react-label_v0.0.0-nightlydd0f007b3f20220119.1",
7
- "version": "0.0.0-nightlydd0f007b3f20220119.1",
5
+ "date": "Fri, 28 Jan 2022 04:13:20 GMT",
6
+ "tag": "@fluentui/react-label_v0.0.0-nightlye0b8e1fa6920220128.1",
7
+ "version": "0.0.0-nightlye0b8e1fa6920220128.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-label",
13
- "commit": "6044506cc626a9a155e0df40645426ddcc080c55",
13
+ "commit": "90d10ec8c2d159575962c4d3d913317633b44a7a",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "olfedias@microsoft.com",
18
+ "package": "@fluentui/react-label",
19
+ "commit": "742c191b7f2ea28505e49304117c090f9f36386c",
20
+ "comment": "Replace make-styles packages with griffel equivalents."
21
+ },
16
22
  {
17
23
  "author": "Humberto.Morimoto@microsoft.com",
18
24
  "package": "@fluentui/react-label",
19
- "commit": "a052fbc9204600669d32b0ac346032d2cd8d9204",
20
- "comment": "react-label: Replacing use of functions in makeStyles with direct use of tokens."
25
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
26
+ "comment": "Updating based on changes to composition types."
21
27
  },
22
28
  {
23
- "author": "behowell@microsoft.com",
29
+ "author": "Humberto.Morimoto@microsoft.com",
24
30
  "package": "@fluentui/react-label",
25
- "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
26
- "comment": "Remove component's shorthandProps array"
31
+ "commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
32
+ "comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
27
33
  },
28
34
  {
29
35
  "author": "Humberto.Morimoto@microsoft.com",
30
36
  "package": "@fluentui/react-label",
31
- "commit": "00a5d945904c896a0664de6ba72c145a255f0848",
32
- "comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
37
+ "commit": "a052fbc9204600669d32b0ac346032d2cd8d9204",
38
+ "comment": "react-label: Replacing use of functions in makeStyles with direct use of tokens."
33
39
  },
34
40
  {
35
- "author": "beachball",
41
+ "author": "behowell@microsoft.com",
36
42
  "package": "@fluentui/react-label",
37
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlydd0f007b3f20220119.1",
38
- "commit": "6044506cc626a9a155e0df40645426ddcc080c55"
43
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
44
+ "comment": "Remove component's shorthandProps array"
39
45
  },
40
46
  {
41
- "author": "beachball",
47
+ "author": "behowell@microsoft.com",
42
48
  "package": "@fluentui/react-label",
43
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlydd0f007b3f20220119.1",
44
- "commit": "6044506cc626a9a155e0df40645426ddcc080c55"
49
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
50
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
45
51
  },
46
52
  {
47
- "author": "beachball",
53
+ "author": "Humberto.Morimoto@microsoft.com",
48
54
  "package": "@fluentui/react-label",
49
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlydd0f007b3f20220119.1",
50
- "commit": "6044506cc626a9a155e0df40645426ddcc080c55"
55
+ "commit": "00a5d945904c896a0664de6ba72c145a255f0848",
56
+ "comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
51
57
  },
52
58
  {
53
59
  "author": "beachball",
54
60
  "package": "@fluentui/react-label",
55
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlydd0f007b3f20220119.1",
56
- "commit": "6044506cc626a9a155e0df40645426ddcc080c55"
61
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlye0b8e1fa6920220128.1",
62
+ "commit": "90d10ec8c2d159575962c4d3d913317633b44a7a"
57
63
  },
58
64
  {
59
65
  "author": "beachball",
60
66
  "package": "@fluentui/react-label",
61
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlydd0f007b3f20220119.1",
62
- "commit": "6044506cc626a9a155e0df40645426ddcc080c55"
67
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlye0b8e1fa6920220128.1",
68
+ "commit": "90d10ec8c2d159575962c4d3d913317633b44a7a"
63
69
  }
64
70
  ],
65
71
  "none": [
@@ -80,6 +86,12 @@
80
86
  "package": "@fluentui/react-label",
81
87
  "commit": "084a7183511bae60a43e57fbd57979349c4736a4",
82
88
  "comment": "Migrate package to use solution tsconfigs"
89
+ },
90
+ {
91
+ "author": "olfedias@microsoft.com",
92
+ "package": "@fluentui/react-label",
93
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
94
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
83
95
  }
84
96
  ]
85
97
  }
package/CHANGELOG.md CHANGED
@@ -1,25 +1,26 @@
1
1
  # Change Log - @fluentui/react-label
2
2
 
3
- This log was last generated on Wed, 19 Jan 2022 04:16:37 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 28 Jan 2022 04:13:20 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlydd0f007b3f20220119.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v0.0.0-nightlydd0f007b3f20220119.1)
7
+ ## [0.0.0-nightlye0b8e1fa6920220128.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v0.0.0-nightlye0b8e1fa6920220128.1)
8
8
 
9
- Wed, 19 Jan 2022 04:16:37 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.4..@fluentui/react-label_v0.0.0-nightlydd0f007b3f20220119.1)
9
+ Fri, 28 Jan 2022 04:13:20 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.4..@fluentui/react-label_v0.0.0-nightlye0b8e1fa6920220128.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/90d10ec8c2d159575962c4d3d913317633b44a7a) by email not defined)
15
+ - Replace make-styles packages with griffel equivalents. ([PR #21430](https://github.com/microsoft/fluentui/pull/21430) by olfedias@microsoft.com)
16
+ - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
17
+ - Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
15
18
  - react-label: Replacing use of functions in makeStyles with direct use of tokens. ([PR #21046](https://github.com/microsoft/fluentui/pull/21046) by Humberto.Morimoto@microsoft.com)
16
19
  - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
20
+ - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
17
21
  - Updating use of tokens.fontWeight now that we don't need to use casting. ([PR #21217](https://github.com/microsoft/fluentui/pull/21217) by Humberto.Morimoto@microsoft.com)
18
- - Bump @fluentui/react-make-styles to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
19
- - Bump @fluentui/react-utilities to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
20
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
21
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
22
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlydd0f007b3f20220119.1 ([commit](https://github.com/microsoft/fluentui/commit/6044506cc626a9a155e0df40645426ddcc080c55) by beachball)
22
+ - Bump @fluentui/react-utilities to v0.0.0-nightlye0b8e1fa6920220128.1 ([commit](https://github.com/microsoft/fluentui/commit/90d10ec8c2d159575962c4d3d913317633b44a7a) by beachball)
23
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightlye0b8e1fa6920220128.1 ([commit](https://github.com/microsoft/fluentui/commit/90d10ec8c2d159575962c4d3d913317633b44a7a) by beachball)
23
24
 
24
25
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.4)
25
26
 
package/Spec.md CHANGED
@@ -96,8 +96,8 @@ export type LabelCommons = {
96
96
  };
97
97
 
98
98
  export type LabelSlots = {
99
- root: IntrinsicShorthandProps<'label'>;
100
- required?: IntrinsicShorthandProps<'span'>;
99
+ root: IntrinsicSlotProps<'label'>;
100
+ required?: IntrinsicSlotProps<'span'>;
101
101
  };
102
102
 
103
103
  /**
@@ -115,7 +115,7 @@ export type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> &
115
115
  * an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
116
116
  * @defaultvalue false
117
117
  */
118
- required?: boolean | ObjectShorthandProps<React.HTMLAttributes<HTMLElement>> | React.ReactNode;
118
+ required?: boolean | IntrinsicSlotProps<'span'> | React.ReactNode;
119
119
  };
120
120
  ```
121
121
 
@@ -1,8 +1,7 @@
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
- import type { ObjectShorthandProps } from '@fluentui/react-utilities';
4
+ import type { IntrinsicSlotProps } from '@fluentui/react-utilities';
6
5
  import * as React_2 from 'react';
7
6
 
8
7
  /**
@@ -39,12 +38,12 @@ export declare type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> &
39
38
  * an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
40
39
  * @defaultvalue false
41
40
  */
42
- required?: boolean | ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>> | React_2.ReactNode;
41
+ required?: boolean | IntrinsicSlotProps<'span'> | React_2.ReactNode;
43
42
  };
44
43
 
45
44
  export declare type LabelSlots = {
46
- root: IntrinsicShorthandProps<'label'>;
47
- required?: IntrinsicShorthandProps<'span'>;
45
+ root: IntrinsicSlotProps<'label'>;
46
+ required?: IntrinsicSlotProps<'span'>;
48
47
  };
49
48
 
50
49
  /**
@@ -55,22 +54,22 @@ export declare type LabelState = ComponentState<LabelSlots> & LabelCommons;
55
54
  /**
56
55
  * Render the final JSX of Label
57
56
  */
58
- export declare const renderLabel: (state: LabelState) => JSX.Element;
57
+ export declare const renderLabel_unstable: (state: LabelState) => JSX.Element;
59
58
 
60
59
  /**
61
60
  * Create the state required to render Label.
62
61
  *
63
- * The returned state can be modified with hooks such as useLabelStyles,
64
- * before being passed to renderLabel.
62
+ * The returned state can be modified with hooks such as useLabelStyles_unstable,
63
+ * before being passed to renderLabel_unstable.
65
64
  *
66
65
  * @param props - props from this instance of Label
67
66
  * @param ref - reference to root HTMLElement of Label
68
67
  */
69
- export declare const useLabel: (props: LabelProps, ref: React_2.Ref<HTMLElement>) => LabelState;
68
+ export declare const useLabel_unstable: (props: LabelProps, ref: React_2.Ref<HTMLElement>) => LabelState;
70
69
 
71
70
  /**
72
71
  * Apply styling to the Label slots based on the state
73
72
  */
74
- export declare const useLabelStyles: (state: LabelState) => LabelState;
73
+ export declare const useLabelStyles_unstable: (state: LabelState) => LabelState;
75
74
 
76
75
  export { }
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { useLabel } from './useLabel';
3
- import { renderLabel } from './renderLabel';
4
- import { useLabelStyles } from './useLabelStyles';
2
+ import { useLabel_unstable } from './useLabel';
3
+ import { renderLabel_unstable } from './renderLabel';
4
+ import { useLabelStyles_unstable } from './useLabelStyles';
5
5
  /**
6
6
  * A label component provides a title or name to a component.
7
7
  */
8
8
 
9
9
  export const Label = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useLabel(props, ref);
11
- useLabelStyles(state);
12
- return renderLabel(state);
10
+ const state = useLabel_unstable(props, ref);
11
+ useLabelStyles_unstable(state);
12
+ return renderLabel_unstable(state);
13
13
  });
14
14
  Label.displayName = 'Label';
15
15
  //# sourceMappingURL=Label.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,YAAzB;AACA,SAAS,WAAT,QAA4B,eAA5B;AACA,SAAS,cAAT,QAA+B,kBAA/B;AAIA;;AAEG;;AACH,OAAO,MAAM,KAAK,gBAAoC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpF,QAAM,KAAK,GAAG,QAAQ,CAAC,KAAD,EAAQ,GAAR,CAAtB;AAEA,EAAA,cAAc,CAAC,KAAD,CAAd;AACA,SAAO,WAAW,CAAC,KAAD,CAAlB;AACD,CALqD,CAA/C;AAOP,KAAK,CAAC,WAAN,GAAoB,OAApB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iBAAT,QAAkC,YAAlC;AACA,SAAS,oBAAT,QAAqC,eAArC;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AAIA;;AAEG;;AACH,OAAO,MAAM,KAAK,gBAAoC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpF,QAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AAEA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AACA,SAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CALqD,CAA/C;AAOP,KAAK,CAAC,WAAN,GAAoB,OAApB","sourceRoot":""}
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, ComponentState, IntrinsicShorthandProps, ObjectShorthandProps } from '@fluentui/react-utilities';
2
1
  import * as React from 'react';
2
+ import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
3
3
  export declare type LabelCommons = {
4
4
  /**
5
5
  * Renders the label as disabled
@@ -18,8 +18,8 @@ export declare type LabelCommons = {
18
18
  strong: boolean;
19
19
  };
20
20
  export declare type LabelSlots = {
21
- root: IntrinsicShorthandProps<'label'>;
22
- required?: IntrinsicShorthandProps<'span'>;
21
+ root: IntrinsicSlotProps<'label'>;
22
+ required?: IntrinsicSlotProps<'span'>;
23
23
  };
24
24
  /**
25
25
  * State used in rendering Label
@@ -34,5 +34,5 @@ export declare type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> &
34
34
  * an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
35
35
  * @defaultvalue false
36
36
  */
37
- required?: boolean | ObjectShorthandProps<React.HTMLAttributes<HTMLElement>> | React.ReactNode;
37
+ required?: boolean | IntrinsicSlotProps<'span'> | React.ReactNode;
38
38
  };
@@ -2,4 +2,4 @@ import type { LabelState } from './Label.types';
2
2
  /**
3
3
  * Render the final JSX of Label
4
4
  */
5
- export declare const renderLabel: (state: LabelState) => JSX.Element;
5
+ export declare const renderLabel_unstable: (state: LabelState) => JSX.Element;
@@ -4,7 +4,7 @@ import { getSlots } from '@fluentui/react-utilities';
4
4
  * Render the final JSX of Label
5
5
  */
6
6
 
7
- export const renderLabel = state => {
7
+ export const renderLabel_unstable = state => {
8
8
  const {
9
9
  slots,
10
10
  slotProps
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Label/renderLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,WAAW,GAAI,KAAD,IAAsB;AAC/C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAa,KAAb,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,IAAN,CAAW,QADd,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAP,EAAe,EAAA,GAAK,SAAS,CAAC;AAAf,GAAf,CAFF,CADF;AAMD,CATM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Label/renderLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,oBAAoB,GAAI,KAAD,IAAsB;AACxD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAa,KAAb,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,IAAN,CAAW,QADd,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAP,EAAe,EAAA,GAAK,SAAS,CAAC;AAAf,GAAf,CAFF,CADF;AAMD,CATM","sourceRoot":""}
@@ -3,10 +3,10 @@ import type { LabelProps, LabelState } from './Label.types';
3
3
  /**
4
4
  * Create the state required to render Label.
5
5
  *
6
- * The returned state can be modified with hooks such as useLabelStyles,
7
- * before being passed to renderLabel.
6
+ * The returned state can be modified with hooks such as useLabelStyles_unstable,
7
+ * before being passed to renderLabel_unstable.
8
8
  *
9
9
  * @param props - props from this instance of Label
10
10
  * @param ref - reference to root HTMLElement of Label
11
11
  */
12
- export declare const useLabel: (props: LabelProps, ref: React.Ref<HTMLElement>) => LabelState;
12
+ export declare const useLabel_unstable: (props: LabelProps, ref: React.Ref<HTMLElement>) => LabelState;
@@ -3,14 +3,14 @@ import { resolveShorthand } from '@fluentui/react-utilities';
3
3
  /**
4
4
  * Create the state required to render Label.
5
5
  *
6
- * The returned state can be modified with hooks such as useLabelStyles,
7
- * before being passed to renderLabel.
6
+ * The returned state can be modified with hooks such as useLabelStyles_unstable,
7
+ * before being passed to renderLabel_unstable.
8
8
  *
9
9
  * @param props - props from this instance of Label
10
10
  * @param ref - reference to root HTMLElement of Label
11
11
  */
12
12
 
13
- export const useLabel = (props, ref) => {
13
+ export const useLabel_unstable = (props, ref) => {
14
14
  const {
15
15
  disabled = false,
16
16
  required = false,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Label/useLabel.tsx"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAEA,SAAS,gBAAT,QAAiC,2BAAjC;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,QAAQ,GAAG,CAAC,KAAD,EAAoB,GAApB,KAA+D;AACrF,QAAM;AAAE,IAAA,QAAQ,GAAG,KAAb;AAAoB,IAAA,QAAQ,GAAG,KAA/B;AAAsC,IAAA,MAAM,GAAG,KAA/C;AAAsD,IAAA,IAAI,GAAG;AAA7D,MAA0E,KAAhF;AACA,SAAO;AACL,IAAA,QADK;AAEL,IAAA,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,KAAK,KAAb,GAAqB,IAArB,GAA4B,QAA7B,EAAuC;AAC/D,MAAA,QAAQ,EAAE,CAAC,CAAC,QADmD;AAE/D,MAAA,YAAY,EAAE;AAAE,QAAA,QAAQ,EAAE,GAAZ;AAAiB,uBAAe;AAAhC;AAFiD,KAAvC,CAFrB;AAML,IAAA,MANK;AAOL,IAAA,IAPK;AAQL,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE,OAAR;AAAiB,MAAA,QAAQ,EAAE;AAA3B,KARP;AASL,IAAA,IAAI,EAAE,qBAAqB,CAAC,OAAD,EAAU;AAAE,MAAA,GAAF;AAAO,SAAG;AAAV,KAAV;AATtB,GAAP;AAWD,CAbM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Label/useLabel.tsx"],"names":[],"mappings":"AACA,SAAS,qBAAT,QAAsC,2BAAtC;AAEA,SAAS,gBAAT,QAAiC,2BAAjC;AAEA;;;;;;;;AAQG;;AACH,OAAO,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAAoB,GAApB,KAA+D;AAC9F,QAAM;AAAE,IAAA,QAAQ,GAAG,KAAb;AAAoB,IAAA,QAAQ,GAAG,KAA/B;AAAsC,IAAA,MAAM,GAAG,KAA/C;AAAsD,IAAA,IAAI,GAAG;AAA7D,MAA0E,KAAhF;AACA,SAAO;AACL,IAAA,QADK;AAEL,IAAA,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,KAAK,KAAb,GAAqB,IAArB,GAA4B,QAA7B,EAAuC;AAC/D,MAAA,QAAQ,EAAE,CAAC,CAAC,QADmD;AAE/D,MAAA,YAAY,EAAE;AAAE,QAAA,QAAQ,EAAE,GAAZ;AAAiB,uBAAe;AAAhC;AAFiD,KAAvC,CAFrB;AAML,IAAA,MANK;AAOL,IAAA,IAPK;AAQL,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE,OAAR;AAAiB,MAAA,QAAQ,EAAE;AAA3B,KARP;AASL,IAAA,IAAI,EAAE,qBAAqB,CAAC,OAAD,EAAU;AAAE,MAAA,GAAF;AAAO,SAAG;AAAV,KAAV;AATtB,GAAP;AAWD,CAbM","sourceRoot":""}
@@ -3,4 +3,4 @@ export declare const labelClassName = "fui-Label";
3
3
  /**
4
4
  * Apply styling to the Label slots based on the state
5
5
  */
6
- export declare const useLabelStyles: (state: LabelState) => LabelState;
6
+ export declare const useLabelStyles_unstable: (state: LabelState) => LabelState;
@@ -1,4 +1,4 @@
1
- import { __styles, mergeClasses } from '@fluentui/react-make-styles';
1
+ import { __styles, mergeClasses } from '@griffel/react';
2
2
  import { tokens } from '@fluentui/react-theme';
3
3
  export const labelClassName = 'fui-Label';
4
4
  /**
@@ -41,7 +41,7 @@ const useStyles = /*#__PURE__*/__styles({
41
41
  */
42
42
 
43
43
 
44
- export const useLabelStyles = state => {
44
+ export const useLabelStyles_unstable = state => {
45
45
  const styles = useStyles();
46
46
  state.root.className = mergeClasses(labelClassName, styles.root, state.disabled && styles.disabled, styles[state.size], state.strong && styles.strong, state.root.className);
47
47
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Label/useLabelStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,6BAAzC;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,cAAc,GAAG,WAAvB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;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,EAAlB;AAoCA;;AAEG;;;AACH,OAAO,MAAM,cAAc,GAAI,KAAD,IAAkC;AAC9D,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,cADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAHQ,EAIjC,MAAM,CAAC,KAAK,CAAC,IAAP,CAJ2B,EAKjC,KAAK,CAAC,MAAN,IAAgB,MAAM,CAAC,MALU,EAMjC,KAAK,CAAC,IAAN,CAAW,SANsB,CAAnC;;AASA,MAAI,KAAK,CAAC,QAAV,EAAoB;AAClB,IAAA,KAAK,CAAC,QAAN,CAAe,SAAf,GAA2B,YAAY,CAAC,MAAM,CAAC,QAAR,EAAkB,KAAK,CAAC,QAAN,CAAe,SAAjC,CAAvC;AACD;;AAED,SAAO,KAAP;AACD,CAhBM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Label/useLabelStyles.ts"],"names":[],"mappings":"AAAA,mBAAqB,YAArB,QAAyC,gBAAzC;AACA,SAAS,MAAT,QAAuB,uBAAvB;AAGA,OAAO,MAAM,cAAc,GAAG,WAAvB;AAEP;;AAEG;;AACH,MAAM,SAAS,gBAAG;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,EAAlB;AAoCA;;AAEG;;;AACH,OAAO,MAAM,uBAAuB,GAAI,KAAD,IAAkC;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CACjC,cADiC,EAEjC,MAAM,CAAC,IAF0B,EAGjC,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAHQ,EAIjC,MAAM,CAAC,KAAK,CAAC,IAAP,CAJ2B,EAKjC,KAAK,CAAC,MAAN,IAAgB,MAAM,CAAC,MALU,EAMjC,KAAK,CAAC,IAAN,CAAW,SANsB,CAAnC;;AASA,MAAI,KAAK,CAAC,QAAV,EAAoB;AAClB,IAAA,KAAK,CAAC,QAAN,CAAe,SAAf,GAA2B,YAAY,CAAC,MAAM,CAAC,QAAR,EAAkB,KAAK,CAAC,QAAN,CAAe,SAAjC,CAAvC;AACD;;AAED,SAAO,KAAP;AACD,CAhBM","sourceRoot":""}
@@ -18,9 +18,9 @@ const useLabelStyles_1 = /*#__PURE__*/require("./useLabelStyles");
18
18
 
19
19
 
20
20
  exports.Label = /*#__PURE__*/React.forwardRef((props, ref) => {
21
- const state = useLabel_1.useLabel(props, ref);
22
- useLabelStyles_1.useLabelStyles(state);
23
- return renderLabel_1.renderLabel(state);
21
+ const state = useLabel_1.useLabel_unstable(props, ref);
22
+ useLabelStyles_1.useLabelStyles_unstable(state);
23
+ return renderLabel_1.renderLabel_unstable(state);
24
24
  });
25
25
  exports.Label.displayName = 'Label';
26
26
  //# sourceMappingURL=Label.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,UAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,KAAA,gBAAyC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpF,QAAM,KAAK,GAAG,UAAA,CAAA,QAAA,CAAS,KAAT,EAAgB,GAAhB,CAAd;AAEA,EAAA,gBAAA,CAAA,cAAA,CAAe,KAAf;AACA,SAAO,aAAA,CAAA,WAAA,CAAY,KAAZ,CAAP;AACD,CALqD,CAAzC;AAOb,OAAA,CAAA,KAAA,CAAM,WAAN,GAAoB,OAApB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,UAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AACA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;AAIA;;AAEG;;;AACU,OAAA,CAAA,KAAA,gBAAyC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpF,QAAM,KAAK,GAAG,UAAA,CAAA,iBAAA,CAAkB,KAAlB,EAAyB,GAAzB,CAAd;AAEA,EAAA,gBAAA,CAAA,uBAAA,CAAwB,KAAxB;AACA,SAAO,aAAA,CAAA,oBAAA,CAAqB,KAArB,CAAP;AACD,CALqD,CAAzC;AAOb,OAAA,CAAA,KAAA,CAAM,WAAN,GAAoB,OAApB","sourceRoot":""}
@@ -1,5 +1,5 @@
1
- import type { ComponentProps, ComponentState, IntrinsicShorthandProps, ObjectShorthandProps } from '@fluentui/react-utilities';
2
1
  import * as React from 'react';
2
+ import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
3
3
  export declare type LabelCommons = {
4
4
  /**
5
5
  * Renders the label as disabled
@@ -18,8 +18,8 @@ export declare type LabelCommons = {
18
18
  strong: boolean;
19
19
  };
20
20
  export declare type LabelSlots = {
21
- root: IntrinsicShorthandProps<'label'>;
22
- required?: IntrinsicShorthandProps<'span'>;
21
+ root: IntrinsicSlotProps<'label'>;
22
+ required?: IntrinsicSlotProps<'span'>;
23
23
  };
24
24
  /**
25
25
  * State used in rendering Label
@@ -34,5 +34,5 @@ export declare type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> &
34
34
  * an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
35
35
  * @defaultvalue false
36
36
  */
37
- required?: boolean | ObjectShorthandProps<React.HTMLAttributes<HTMLElement>> | React.ReactNode;
37
+ required?: boolean | IntrinsicSlotProps<'span'> | React.ReactNode;
38
38
  };
@@ -2,4 +2,4 @@ import type { LabelState } from './Label.types';
2
2
  /**
3
3
  * Render the final JSX of Label
4
4
  */
5
- export declare const renderLabel: (state: LabelState) => JSX.Element;
5
+ export declare const renderLabel_unstable: (state: LabelState) => JSX.Element;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.renderLabel = void 0;
6
+ exports.renderLabel_unstable = void 0;
7
7
 
8
8
  const React = /*#__PURE__*/require("react");
9
9
 
@@ -13,7 +13,7 @@ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
13
  */
14
14
 
15
15
 
16
- const renderLabel = state => {
16
+ const renderLabel_unstable = state => {
17
17
  const {
18
18
  slots,
19
19
  slotProps
@@ -23,5 +23,5 @@ const renderLabel = state => {
23
23
  }));
24
24
  };
25
25
 
26
- exports.renderLabel = renderLabel;
26
+ exports.renderLabel_unstable = renderLabel_unstable;
27
27
  //# sourceMappingURL=renderLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Label/renderLabel.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,WAAW,GAAI,KAAD,IAAsB;AAC/C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAqB,KAArB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,IAAN,CAAW,QADd,EAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAP,EAAe,EAAA,GAAK,SAAS,CAAC;AAAf,GAAf,CAFF,CADF;AAMD,CATM;;AAAM,OAAA,CAAA,WAAA,GAAW,WAAX","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Label/renderLabel.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAGA;;AAEG;;;AACI,MAAM,oBAAoB,GAAI,KAAD,IAAsB;AACxD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAqB,KAArB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,IAAN,CAAW,QADd,EAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,QAAP,EAAe,EAAA,GAAK,SAAS,CAAC;AAAf,GAAf,CAFF,CADF;AAMD,CATM;;AAAM,OAAA,CAAA,oBAAA,GAAoB,oBAApB","sourceRoot":""}
@@ -3,10 +3,10 @@ import type { LabelProps, LabelState } from './Label.types';
3
3
  /**
4
4
  * Create the state required to render Label.
5
5
  *
6
- * The returned state can be modified with hooks such as useLabelStyles,
7
- * before being passed to renderLabel.
6
+ * The returned state can be modified with hooks such as useLabelStyles_unstable,
7
+ * before being passed to renderLabel_unstable.
8
8
  *
9
9
  * @param props - props from this instance of Label
10
10
  * @param ref - reference to root HTMLElement of Label
11
11
  */
12
- export declare const useLabel: (props: LabelProps, ref: React.Ref<HTMLElement>) => LabelState;
12
+ export declare const useLabel_unstable: (props: LabelProps, ref: React.Ref<HTMLElement>) => LabelState;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useLabel = void 0;
6
+ exports.useLabel_unstable = void 0;
7
7
 
8
8
  const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
9
9
 
@@ -11,15 +11,15 @@ const react_utilities_2 = /*#__PURE__*/require("@fluentui/react-utilities");
11
11
  /**
12
12
  * Create the state required to render Label.
13
13
  *
14
- * The returned state can be modified with hooks such as useLabelStyles,
15
- * before being passed to renderLabel.
14
+ * The returned state can be modified with hooks such as useLabelStyles_unstable,
15
+ * before being passed to renderLabel_unstable.
16
16
  *
17
17
  * @param props - props from this instance of Label
18
18
  * @param ref - reference to root HTMLElement of Label
19
19
  */
20
20
 
21
21
 
22
- const useLabel = (props, ref) => {
22
+ const useLabel_unstable = (props, ref) => {
23
23
  const {
24
24
  disabled = false,
25
25
  required = false,
@@ -48,5 +48,5 @@ const useLabel = (props, ref) => {
48
48
  };
49
49
  };
50
50
 
51
- exports.useLabel = useLabel;
51
+ exports.useLabel_unstable = useLabel_unstable;
52
52
  //# sourceMappingURL=useLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Label/useLabel.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAEA;;;;;;;;AAQG;;;AACI,MAAM,QAAQ,GAAG,CAAC,KAAD,EAAoB,GAApB,KAA+D;AACrF,QAAM;AAAE,IAAA,QAAQ,GAAG,KAAb;AAAoB,IAAA,QAAQ,GAAG,KAA/B;AAAsC,IAAA,MAAM,GAAG,KAA/C;AAAsD,IAAA,IAAI,GAAG;AAA7D,MAA0E,KAAhF;AACA,SAAO;AACL,IAAA,QADK;AAEL,IAAA,QAAQ,EAAE,iBAAA,CAAA,gBAAA,CAAiB,QAAQ,KAAK,KAAb,GAAqB,IAArB,GAA4B,QAA7C,EAAuD;AAC/D,MAAA,QAAQ,EAAE,CAAC,CAAC,QADmD;AAE/D,MAAA,YAAY,EAAE;AAAE,QAAA,QAAQ,EAAE,GAAZ;AAAiB,uBAAe;AAAhC;AAFiD,KAAvD,CAFL;AAML,IAAA,MANK;AAOL,IAAA,IAPK;AAQL,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE,OAAR;AAAiB,MAAA,QAAQ,EAAE;AAA3B,KARP;AASL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,OAAtB,EAA+B;AAAE,MAAA,GAAF;AAAO,SAAG;AAAV,KAA/B;AATD,GAAP;AAWD,CAbM;;AAAM,OAAA,CAAA,QAAA,GAAQ,QAAR","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Label/useLabel.tsx"],"names":[],"mappings":";;;;;;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAEA;;;;;;;;AAQG;;;AACI,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAAoB,GAApB,KAA+D;AAC9F,QAAM;AAAE,IAAA,QAAQ,GAAG,KAAb;AAAoB,IAAA,QAAQ,GAAG,KAA/B;AAAsC,IAAA,MAAM,GAAG,KAA/C;AAAsD,IAAA,IAAI,GAAG;AAA7D,MAA0E,KAAhF;AACA,SAAO;AACL,IAAA,QADK;AAEL,IAAA,QAAQ,EAAE,iBAAA,CAAA,gBAAA,CAAiB,QAAQ,KAAK,KAAb,GAAqB,IAArB,GAA4B,QAA7C,EAAuD;AAC/D,MAAA,QAAQ,EAAE,CAAC,CAAC,QADmD;AAE/D,MAAA,YAAY,EAAE;AAAE,QAAA,QAAQ,EAAE,GAAZ;AAAiB,uBAAe;AAAhC;AAFiD,KAAvD,CAFL;AAML,IAAA,MANK;AAOL,IAAA,IAPK;AAQL,IAAA,UAAU,EAAE;AAAE,MAAA,IAAI,EAAE,OAAR;AAAiB,MAAA,QAAQ,EAAE;AAA3B,KARP;AASL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,OAAtB,EAA+B;AAAE,MAAA,GAAF;AAAO,SAAG;AAAV,KAA/B;AATD,GAAP;AAWD,CAbM;;AAAM,OAAA,CAAA,iBAAA,GAAiB,iBAAjB","sourceRoot":""}
@@ -3,4 +3,4 @@ export declare const labelClassName = "fui-Label";
3
3
  /**
4
4
  * Apply styling to the Label slots based on the state
5
5
  */
6
- export declare const useLabelStyles: (state: LabelState) => LabelState;
6
+ export declare const useLabelStyles_unstable: (state: LabelState) => LabelState;
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useLabelStyles = exports.labelClassName = void 0;
6
+ exports.useLabelStyles_unstable = exports.labelClassName = void 0;
7
7
 
8
- const react_make_styles_1 = /*#__PURE__*/require("@fluentui/react-make-styles");
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
9
 
10
10
  const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
11
11
 
@@ -14,7 +14,7 @@ exports.labelClassName = 'fui-Label';
14
14
  * Styles for the label
15
15
  */
16
16
 
17
- const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
17
+ const useStyles = /*#__PURE__*/react_1.__styles({
18
18
  "root": {
19
19
  "Bahqtrf": "fk6fouc",
20
20
  "sj55zd": "f19n0e5"
@@ -50,16 +50,16 @@ const useStyles = /*#__PURE__*/react_make_styles_1.__styles({
50
50
  */
51
51
 
52
52
 
53
- const useLabelStyles = state => {
53
+ const useLabelStyles_unstable = state => {
54
54
  const styles = useStyles();
55
- state.root.className = react_make_styles_1.mergeClasses(exports.labelClassName, styles.root, state.disabled && styles.disabled, styles[state.size], state.strong && styles.strong, state.root.className);
55
+ state.root.className = react_1.mergeClasses(exports.labelClassName, styles.root, state.disabled && styles.disabled, styles[state.size], state.strong && styles.strong, state.root.className);
56
56
 
57
57
  if (state.required) {
58
- state.required.className = react_make_styles_1.mergeClasses(styles.required, state.required.className);
58
+ state.required.className = react_1.mergeClasses(styles.required, state.required.className);
59
59
  }
60
60
 
61
61
  return state;
62
62
  };
63
63
 
64
- exports.useLabelStyles = useLabelStyles;
64
+ exports.useLabelStyles_unstable = useLabelStyles_unstable;
65
65
  //# sourceMappingURL=useLabelStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Label/useLabelStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,mBAAA,gBAAA,OAAA,CAAA,6BAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAGa,OAAA,CAAA,cAAA,GAAiB,WAAjB;AAEb;;AAEG;;AACH,MAAM,SAAS,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,EAAlB;AAoCA;;AAEG;;;AACI,MAAM,cAAc,GAAI,KAAD,IAAkC;AAC9D,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,mBAAA,CAAA,YAAA,CACrB,OAAA,CAAA,cADqB,EAErB,MAAM,CAAC,IAFc,EAGrB,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAHJ,EAIrB,MAAM,CAAC,KAAK,CAAC,IAAP,CAJe,EAKrB,KAAK,CAAC,MAAN,IAAgB,MAAM,CAAC,MALF,EAMrB,KAAK,CAAC,IAAN,CAAW,SANU,CAAvB;;AASA,MAAI,KAAK,CAAC,QAAV,EAAoB;AAClB,IAAA,KAAK,CAAC,QAAN,CAAe,SAAf,GAA2B,mBAAA,CAAA,YAAA,CAAa,MAAM,CAAC,QAApB,EAA8B,KAAK,CAAC,QAAN,CAAe,SAA7C,CAA3B;AACD;;AAED,SAAO,KAAP;AACD,CAhBM;;AAAM,OAAA,CAAA,cAAA,GAAc,cAAd","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Label/useLabelStyles.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAGa,OAAA,CAAA,cAAA,GAAiB,WAAjB;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,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,EAAlB;AAoCA;;AAEG;;;AACI,MAAM,uBAAuB,GAAI,KAAD,IAAkC;AACvE,QAAM,MAAM,GAAG,SAAS,EAAxB;AACA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CACrB,OAAA,CAAA,cADqB,EAErB,MAAM,CAAC,IAFc,EAGrB,KAAK,CAAC,QAAN,IAAkB,MAAM,CAAC,QAHJ,EAIrB,MAAM,CAAC,KAAK,CAAC,IAAP,CAJe,EAKrB,KAAK,CAAC,MAAN,IAAgB,MAAM,CAAC,MALF,EAMrB,KAAK,CAAC,IAAN,CAAW,SANU,CAAvB;;AASA,MAAI,KAAK,CAAC,QAAV,EAAoB;AAClB,IAAA,KAAK,CAAC,QAAN,CAAe,SAAf,GAA2B,OAAA,CAAA,YAAA,CAAa,MAAM,CAAC,QAApB,EAA8B,KAAK,CAAC,QAAN,CAAe,SAA7C,CAA3B;AACD;;AAED,SAAO,KAAP;AACD,CAhBM;;AAAM,OAAA,CAAA,uBAAA,GAAuB,uBAAvB","sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-label",
3
- "version": "0.0.0-nightlydd0f007b3f20220119.1",
3
+ "version": "0.0.0-nightlye0b8e1fa6920220128.1",
4
4
  "description": "Label component for FluentUI library.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -26,11 +26,9 @@
26
26
  "type-check": "tsc -b tsconfig.json"
27
27
  },
28
28
  "devDependencies": {
29
- "@fluentui/babel-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
30
29
  "@fluentui/eslint-plugin": "*",
31
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
32
30
  "@fluentui/react-conformance": "*",
33
- "@fluentui/react-conformance-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
31
+ "@fluentui/react-conformance-griffel": "0.0.0-nightlye0b8e1fa6920220128.1",
34
32
  "@fluentui/scripts": "^1.0.0",
35
33
  "@types/enzyme": "3.10.3",
36
34
  "@types/enzyme-adapter-react-16": "1.0.3",
@@ -44,8 +42,8 @@
44
42
  "react-test-renderer": "^16.3.0"
45
43
  },
46
44
  "dependencies": {
47
- "@fluentui/react-make-styles": "0.0.0-nightlydd0f007b3f20220119.1",
48
- "@fluentui/react-utilities": "0.0.0-nightlydd0f007b3f20220119.1",
45
+ "@fluentui/react-utilities": "0.0.0-nightlye0b8e1fa6920220128.1",
46
+ "@griffel/react": "1.0.0",
49
47
  "tslib": "^2.1.0"
50
48
  },
51
49
  "peerDependencies": {