@fluentui/react-label 0.0.0-nightly-20220504-0420.1 → 0.0.0-nightly-20220505-0419.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +41 -12
- package/CHANGELOG.md +17 -7
- package/Spec.md +7 -6
- package/dist/index.d.ts +5 -5
- package/lib/components/Label/Label.types.d.ts +5 -5
- package/lib/components/Label/Label.types.js.map +1 -1
- package/lib-commonjs/components/Label/Label.types.d.ts +5 -5
- package/package.json +4 -4
package/CHANGELOG.json
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
"name": "@fluentui/react-label",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-label_v0.0.0-nightly-
|
7
|
-
"version": "0.0.0-nightly-
|
5
|
+
"date": "Thu, 05 May 2022 04:32:01 GMT",
|
6
|
+
"tag": "@fluentui/react-label_v0.0.0-nightly-20220505-0419.1",
|
7
|
+
"version": "0.0.0-nightly-20220505-0419.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
@@ -14,28 +14,57 @@
|
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
16
|
{
|
17
|
-
"author": "
|
17
|
+
"author": "beachball",
|
18
18
|
"package": "@fluentui/react-label",
|
19
|
-
"
|
20
|
-
"
|
19
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220505-0419.1",
|
20
|
+
"commit": "6bbaced7ad19cd9172d1869027f73f1aa967547f"
|
21
21
|
},
|
22
22
|
{
|
23
23
|
"author": "beachball",
|
24
24
|
"package": "@fluentui/react-label",
|
25
|
-
"comment": "Bump @fluentui/react-
|
26
|
-
"commit": "
|
25
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220505-0419.1",
|
26
|
+
"commit": "6bbaced7ad19cd9172d1869027f73f1aa967547f"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-label",
|
31
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220505-0419.1",
|
32
|
+
"commit": "6bbaced7ad19cd9172d1869027f73f1aa967547f"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"none": [
|
36
|
+
{
|
37
|
+
"author": "esteban.230@hotmail.com",
|
38
|
+
"package": "@fluentui/react-label",
|
39
|
+
"commit": "700e11e12b3e06cb10a0196e91e64b5ee4867405",
|
40
|
+
"comment": "Updating spec, fixing typos in types, and adding descriptions in stories."
|
41
|
+
}
|
42
|
+
]
|
43
|
+
}
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"date": "Wed, 04 May 2022 13:26:43 GMT",
|
47
|
+
"tag": "@fluentui/react-label_v9.0.0-beta.11",
|
48
|
+
"version": "9.0.0-beta.11",
|
49
|
+
"comments": {
|
50
|
+
"prerelease": [
|
51
|
+
{
|
52
|
+
"author": "mgodbolt@microsoft.com",
|
53
|
+
"package": "@fluentui/react-label",
|
54
|
+
"commit": "65c5c91acea26b129e9ffac6b2b1a8c9808f0141",
|
55
|
+
"comment": "Add style to make required match text when disabled"
|
27
56
|
},
|
28
57
|
{
|
29
58
|
"author": "beachball",
|
30
59
|
"package": "@fluentui/react-label",
|
31
|
-
"comment": "Bump @fluentui/react-
|
32
|
-
"commit": "
|
60
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.6",
|
61
|
+
"commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
|
33
62
|
},
|
34
63
|
{
|
35
64
|
"author": "beachball",
|
36
65
|
"package": "@fluentui/react-label",
|
37
|
-
"comment": "Bump @fluentui/react-
|
38
|
-
"commit": "
|
66
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.7",
|
67
|
+
"commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
|
39
68
|
}
|
40
69
|
],
|
41
70
|
"none": [
|
package/CHANGELOG.md
CHANGED
@@ -1,21 +1,31 @@
|
|
1
1
|
# Change Log - @fluentui/react-label
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 05 May 2022 04:32:01 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-nightly-
|
7
|
+
## [0.0.0-nightly-20220505-0419.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v0.0.0-nightly-20220505-0419.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.
|
9
|
+
Thu, 05 May 2022 04:32:01 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.11..@fluentui/react-label_v0.0.0-nightly-20220505-0419.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
14
|
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by email not defined)
|
15
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly-20220505-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/6bbaced7ad19cd9172d1869027f73f1aa967547f) by beachball)
|
16
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly-20220505-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/6bbaced7ad19cd9172d1869027f73f1aa967547f) by beachball)
|
17
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220505-0419.1 ([commit](https://github.com/microsoft/fluentui/commit/6bbaced7ad19cd9172d1869027f73f1aa967547f) by beachball)
|
18
|
+
|
19
|
+
## [9.0.0-beta.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.11)
|
20
|
+
|
21
|
+
Wed, 04 May 2022 13:26:43 GMT
|
22
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-beta.10..@fluentui/react-label_v9.0.0-beta.11)
|
23
|
+
|
24
|
+
### Changes
|
25
|
+
|
15
26
|
- Add style to make required match text when disabled ([PR #22715](https://github.com/microsoft/fluentui/pull/22715) by mgodbolt@microsoft.com)
|
16
|
-
- Bump @fluentui/react-theme to
|
17
|
-
- Bump @fluentui/react-utilities to
|
18
|
-
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220504-0420.1 ([commit](https://github.com/microsoft/fluentui/commit/158bbd218038e21eb173d3fa7efa00c595be789c) by beachball)
|
27
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.6 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
28
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.7 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
|
19
29
|
|
20
30
|
## [9.0.0-beta.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-beta.10)
|
21
31
|
|
package/Spec.md
CHANGED
@@ -78,19 +78,19 @@ The Label component should be simple as shown below. It will just need the text
|
|
78
78
|
export type LabelCommons = {
|
79
79
|
/**
|
80
80
|
* Renders the label as disabled
|
81
|
-
* @
|
81
|
+
* @default false
|
82
82
|
*/
|
83
83
|
disabled: boolean;
|
84
84
|
|
85
85
|
/**
|
86
86
|
* A label supports different sizes.
|
87
|
-
* @
|
87
|
+
* @default 'medium'
|
88
88
|
*/
|
89
89
|
size: 'small' | 'medium' | 'large';
|
90
90
|
|
91
91
|
/**
|
92
92
|
* A label supports semibold/strong fontweight.
|
93
|
-
* @
|
93
|
+
* @default false
|
94
94
|
*/
|
95
95
|
strong: boolean;
|
96
96
|
};
|
@@ -111,11 +111,11 @@ export type LabelState = ComponentState<LabelSlots> & LabelCommons;
|
|
111
111
|
export type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> &
|
112
112
|
Partial<LabelCommons> & {
|
113
113
|
/**
|
114
|
-
* Displays
|
114
|
+
* Displays an indicator that the label is for a required field. The required prop can be set to true to display
|
115
115
|
* an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
|
116
|
-
* @
|
116
|
+
* @default false
|
117
117
|
*/
|
118
|
-
required?: boolean |
|
118
|
+
required?: boolean | Slot<'span'>;
|
119
119
|
};
|
120
120
|
```
|
121
121
|
|
@@ -166,3 +166,4 @@ _Keyboard, Cursor, Touch, and Screen Readers_
|
|
166
166
|
- Label will use the native `label` element to render.
|
167
167
|
- Label cannot receive focus.
|
168
168
|
- Label will have no focusable elements.
|
169
|
+
- When a Label is disabled, the required contrast ratio won't be met. This is acceptable behavior due to the nature of the styling. This state should be used sparingly and make it clear that there's no interaction with the control associated with it.
|
package/dist/index.d.ts
CHANGED
@@ -20,17 +20,17 @@ export declare const labelClassNames: SlotClassNames<LabelSlots>;
|
|
20
20
|
declare type LabelCommons = {
|
21
21
|
/**
|
22
22
|
* Renders the label as disabled
|
23
|
-
* @
|
23
|
+
* @default false
|
24
24
|
*/
|
25
25
|
disabled: boolean;
|
26
26
|
/**
|
27
27
|
* A label supports different sizes.
|
28
|
-
* @
|
28
|
+
* @default 'medium'
|
29
29
|
*/
|
30
30
|
size: 'small' | 'medium' | 'large';
|
31
31
|
/**
|
32
32
|
* A label supports semibold/strong fontweight.
|
33
|
-
* @
|
33
|
+
* @default false
|
34
34
|
*/
|
35
35
|
strong: boolean;
|
36
36
|
};
|
@@ -40,9 +40,9 @@ declare type LabelCommons = {
|
|
40
40
|
*/
|
41
41
|
export declare type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> & Partial<LabelCommons> & {
|
42
42
|
/**
|
43
|
-
* Displays
|
43
|
+
* Displays an indicator that the label is for a required field. The required prop can be set to true to display
|
44
44
|
* an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
|
45
|
-
* @
|
45
|
+
* @default false
|
46
46
|
*/
|
47
47
|
required?: boolean | Slot<'span'>;
|
48
48
|
};
|
@@ -2,17 +2,17 @@ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utili
|
|
2
2
|
declare type LabelCommons = {
|
3
3
|
/**
|
4
4
|
* Renders the label as disabled
|
5
|
-
* @
|
5
|
+
* @default false
|
6
6
|
*/
|
7
7
|
disabled: boolean;
|
8
8
|
/**
|
9
9
|
* A label supports different sizes.
|
10
|
-
* @
|
10
|
+
* @default 'medium'
|
11
11
|
*/
|
12
12
|
size: 'small' | 'medium' | 'large';
|
13
13
|
/**
|
14
14
|
* A label supports semibold/strong fontweight.
|
15
|
-
* @
|
15
|
+
* @default false
|
16
16
|
*/
|
17
17
|
strong: boolean;
|
18
18
|
};
|
@@ -29,9 +29,9 @@ export declare type LabelState = ComponentState<LabelSlots> & LabelCommons;
|
|
29
29
|
*/
|
30
30
|
export declare type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> & Partial<LabelCommons> & {
|
31
31
|
/**
|
32
|
-
* Displays
|
32
|
+
* Displays an indicator that the label is for a required field. The required prop can be set to true to display
|
33
33
|
* an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
|
34
|
-
* @
|
34
|
+
* @default false
|
35
35
|
*/
|
36
36
|
required?: boolean | Slot<'span'>;
|
37
37
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Label.types.js","sourceRoot":"../src/","sources":["components/Label/Label.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\ntype LabelCommons = {\n /**\n * Renders the label as disabled\n * @
|
1
|
+
{"version":3,"file":"Label.types.js","sourceRoot":"../src/","sources":["components/Label/Label.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\ntype LabelCommons = {\n /**\n * Renders the label as disabled\n * @default false\n */\n disabled: boolean;\n\n /**\n * A label supports different sizes.\n * @default 'medium'\n */\n size: 'small' | 'medium' | 'large';\n\n /**\n * A label supports semibold/strong fontweight.\n * @default false\n */\n strong: boolean;\n};\n\nexport type LabelSlots = {\n root: Slot<'label'>;\n required?: Slot<'span'>;\n};\n\n/**\n * State used in rendering Label\n */\nexport type LabelState = ComponentState<LabelSlots> & LabelCommons;\n\n/**\n * Label Props\n */\nexport type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> &\n Partial<LabelCommons> & {\n /**\n * Displays an indicator that the label is for a required field. The required prop can be set to true to display\n * an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.\n * @default false\n */\n required?: boolean | Slot<'span'>;\n };\n"]}
|
@@ -2,17 +2,17 @@ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utili
|
|
2
2
|
declare type LabelCommons = {
|
3
3
|
/**
|
4
4
|
* Renders the label as disabled
|
5
|
-
* @
|
5
|
+
* @default false
|
6
6
|
*/
|
7
7
|
disabled: boolean;
|
8
8
|
/**
|
9
9
|
* A label supports different sizes.
|
10
|
-
* @
|
10
|
+
* @default 'medium'
|
11
11
|
*/
|
12
12
|
size: 'small' | 'medium' | 'large';
|
13
13
|
/**
|
14
14
|
* A label supports semibold/strong fontweight.
|
15
|
-
* @
|
15
|
+
* @default false
|
16
16
|
*/
|
17
17
|
strong: boolean;
|
18
18
|
};
|
@@ -29,9 +29,9 @@ export declare type LabelState = ComponentState<LabelSlots> & LabelCommons;
|
|
29
29
|
*/
|
30
30
|
export declare type LabelProps = Omit<ComponentProps<LabelSlots>, 'required'> & Partial<LabelCommons> & {
|
31
31
|
/**
|
32
|
-
* Displays
|
32
|
+
* Displays an indicator that the label is for a required field. The required prop can be set to true to display
|
33
33
|
* an asterisk (*). Or it can be set to a string or jsx content to display a different indicator.
|
34
|
-
* @
|
34
|
+
* @default false
|
35
35
|
*/
|
36
36
|
required?: boolean | Slot<'span'>;
|
37
37
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-label",
|
3
|
-
"version": "0.0.0-nightly-
|
3
|
+
"version": "0.0.0-nightly-20220505-0419.1",
|
4
4
|
"description": "Fluent UI React Label component",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -28,12 +28,12 @@
|
|
28
28
|
"devDependencies": {
|
29
29
|
"@fluentui/eslint-plugin": "*",
|
30
30
|
"@fluentui/react-conformance": "*",
|
31
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-
|
31
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20220505-0419.1",
|
32
32
|
"@fluentui/scripts": "^1.0.0"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@fluentui/react-theme": "0.0.0-nightly-
|
36
|
-
"@fluentui/react-utilities": "0.0.0-nightly-
|
35
|
+
"@fluentui/react-theme": "0.0.0-nightly-20220505-0419.1",
|
36
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20220505-0419.1",
|
37
37
|
"@griffel/react": "1.0.3",
|
38
38
|
"tslib": "^2.1.0"
|
39
39
|
},
|