@fluentui/react-field 9.0.0-alpha.1 → 9.0.0-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,145 @@
2
2
  "name": "@fluentui/react-field",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 15 Sep 2022 09:44:25 GMT",
5
+ "date": "Mon, 03 Oct 2022 22:22:47 GMT",
6
+ "tag": "@fluentui/react-field_v9.0.0-alpha.3",
7
+ "version": "9.0.0-alpha.3",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "behowell@microsoft.com",
12
+ "package": "@fluentui/react-field",
13
+ "commit": "9c2ca0da077238fa1d2dc9475eeacacde06f79d7",
14
+ "comment": "fix: Remove SwitchField's labelPosition prop, as it has no effect"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-field",
19
+ "comment": "Bump @fluentui/react-checkbox to v9.0.7",
20
+ "commit": "b0b7f99bbbb05b0bd136432983a74fea252c7163"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-field",
25
+ "comment": "Bump @fluentui/react-combobox to v9.0.0-beta.11",
26
+ "commit": "b0b7f99bbbb05b0bd136432983a74fea252c7163"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-field",
31
+ "comment": "Bump @fluentui/react-input to v9.2.0",
32
+ "commit": "b0b7f99bbbb05b0bd136432983a74fea252c7163"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-field",
37
+ "comment": "Bump @fluentui/react-radio to v9.0.7",
38
+ "commit": "b0b7f99bbbb05b0bd136432983a74fea252c7163"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-field",
43
+ "comment": "Bump @fluentui/react-slider to v9.0.6",
44
+ "commit": "b0b7f99bbbb05b0bd136432983a74fea252c7163"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-field",
49
+ "comment": "Bump @fluentui/react-spinbutton to v9.0.3",
50
+ "commit": "b0b7f99bbbb05b0bd136432983a74fea252c7163"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-field",
55
+ "comment": "Bump @fluentui/react-switch to v9.0.7",
56
+ "commit": "b0b7f99bbbb05b0bd136432983a74fea252c7163"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-field",
61
+ "comment": "Bump @fluentui/react-textarea to v9.1.1",
62
+ "commit": "b0b7f99bbbb05b0bd136432983a74fea252c7163"
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "date": "Tue, 20 Sep 2022 20:55:45 GMT",
69
+ "tag": "@fluentui/react-field_v9.0.0-alpha.2",
70
+ "version": "9.0.0-alpha.2",
71
+ "comments": {
72
+ "prerelease": [
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-field",
76
+ "comment": "Bump @fluentui/react-checkbox to v9.0.6",
77
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@fluentui/react-field",
82
+ "comment": "Bump @fluentui/react-combobox to v9.0.0-beta.10",
83
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
84
+ },
85
+ {
86
+ "author": "beachball",
87
+ "package": "@fluentui/react-field",
88
+ "comment": "Bump @fluentui/react-input to v9.1.1",
89
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
90
+ },
91
+ {
92
+ "author": "beachball",
93
+ "package": "@fluentui/react-field",
94
+ "comment": "Bump @fluentui/react-label to v9.0.6",
95
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@fluentui/react-field",
100
+ "comment": "Bump @fluentui/react-radio to v9.0.6",
101
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
102
+ },
103
+ {
104
+ "author": "beachball",
105
+ "package": "@fluentui/react-field",
106
+ "comment": "Bump @fluentui/react-select to v9.0.0-beta.10",
107
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@fluentui/react-field",
112
+ "comment": "Bump @fluentui/react-slider to v9.0.5",
113
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
114
+ },
115
+ {
116
+ "author": "beachball",
117
+ "package": "@fluentui/react-field",
118
+ "comment": "Bump @fluentui/react-spinbutton to v9.0.2",
119
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
120
+ },
121
+ {
122
+ "author": "beachball",
123
+ "package": "@fluentui/react-field",
124
+ "comment": "Bump @fluentui/react-switch to v9.0.6",
125
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
126
+ },
127
+ {
128
+ "author": "beachball",
129
+ "package": "@fluentui/react-field",
130
+ "comment": "Bump @fluentui/react-textarea to v9.1.0",
131
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
132
+ },
133
+ {
134
+ "author": "beachball",
135
+ "package": "@fluentui/react-field",
136
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.14",
137
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
138
+ }
139
+ ]
140
+ }
141
+ },
142
+ {
143
+ "date": "Thu, 15 Sep 2022 09:49:04 GMT",
6
144
  "tag": "@fluentui/react-field_v9.0.0-alpha.1",
7
145
  "version": "9.0.0-alpha.1",
8
146
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,48 @@
1
1
  # Change Log - @fluentui/react-field
2
2
 
3
- This log was last generated on Thu, 15 Sep 2022 09:44:25 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 03 Oct 2022 22:22:47 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-alpha.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v9.0.0-alpha.3)
8
+
9
+ Mon, 03 Oct 2022 22:22:47 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-field_v9.0.0-alpha.2..@fluentui/react-field_v9.0.0-alpha.3)
11
+
12
+ ### Changes
13
+
14
+ - fix: Remove SwitchField's labelPosition prop, as it has no effect ([PR #24876](https://github.com/microsoft/fluentui/pull/24876) by behowell@microsoft.com)
15
+ - Bump @fluentui/react-checkbox to v9.0.7 ([PR #25016](https://github.com/microsoft/fluentui/pull/25016) by beachball)
16
+ - Bump @fluentui/react-combobox to v9.0.0-beta.11 ([PR #25016](https://github.com/microsoft/fluentui/pull/25016) by beachball)
17
+ - Bump @fluentui/react-input to v9.2.0 ([PR #25016](https://github.com/microsoft/fluentui/pull/25016) by beachball)
18
+ - Bump @fluentui/react-radio to v9.0.7 ([PR #25016](https://github.com/microsoft/fluentui/pull/25016) by beachball)
19
+ - Bump @fluentui/react-slider to v9.0.6 ([PR #25016](https://github.com/microsoft/fluentui/pull/25016) by beachball)
20
+ - Bump @fluentui/react-spinbutton to v9.0.3 ([PR #25016](https://github.com/microsoft/fluentui/pull/25016) by beachball)
21
+ - Bump @fluentui/react-switch to v9.0.7 ([PR #25016](https://github.com/microsoft/fluentui/pull/25016) by beachball)
22
+ - Bump @fluentui/react-textarea to v9.1.1 ([PR #25016](https://github.com/microsoft/fluentui/pull/25016) by beachball)
23
+
24
+ ## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v9.0.0-alpha.2)
25
+
26
+ Tue, 20 Sep 2022 20:55:45 GMT
27
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-field_v9.0.0-alpha.1..@fluentui/react-field_v9.0.0-alpha.2)
28
+
29
+ ### Changes
30
+
31
+ - Bump @fluentui/react-checkbox to v9.0.6 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
32
+ - Bump @fluentui/react-combobox to v9.0.0-beta.10 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
33
+ - Bump @fluentui/react-input to v9.1.1 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
34
+ - Bump @fluentui/react-label to v9.0.6 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
35
+ - Bump @fluentui/react-radio to v9.0.6 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
36
+ - Bump @fluentui/react-select to v9.0.0-beta.10 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
37
+ - Bump @fluentui/react-slider to v9.0.5 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
38
+ - Bump @fluentui/react-spinbutton to v9.0.2 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
39
+ - Bump @fluentui/react-switch to v9.0.6 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
40
+ - Bump @fluentui/react-textarea to v9.1.0 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
41
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.14 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
42
+
7
43
  ## [9.0.0-alpha.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-field_v9.0.0-alpha.1)
8
44
 
9
- Thu, 15 Sep 2022 09:44:25 GMT
45
+ Thu, 15 Sep 2022 09:49:04 GMT
10
46
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-field_v9.0.0-alpha.0..@fluentui/react-field_v9.0.0-alpha.1)
11
47
 
12
48
  ### Changes
package/Spec.md CHANGED
@@ -231,8 +231,8 @@ The Checkbox and Switch components already have a `label` prop, which conflicts
231
231
 
232
232
  #### `SwitchField`
233
233
 
234
- - New `valueLabel` prop for the label of the Switch
235
234
  - The `label` prop will go to the Field and NOT the Switch
235
+ - The Switch's `labelPosition` prop is therefore not supported, and is omitted from SwitchField.
236
236
 
237
237
  ## Structure
238
238
 
package/dist/index.d.ts CHANGED
@@ -198,7 +198,7 @@ export declare const SwitchField: ForwardRefComponent<SwitchFieldProps>;
198
198
 
199
199
  export declare const switchFieldClassNames: SlotClassNames<FieldSlots<FieldComponent>>;
200
200
 
201
- export declare type SwitchFieldProps = FieldProps<typeof Switch>;
201
+ export declare type SwitchFieldProps = Omit<FieldProps<typeof Switch>, 'labelPosition'>;
202
202
 
203
203
  export declare const TextareaField: ForwardRefComponent<TextareaFieldProps>;
204
204
 
@@ -1 +1 @@
1
- {"version":3,"sources":["components/SwitchField/SwitchField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AAGA,SAAS,kBAAT,EAA6B,oBAA7B,EAAmD,uBAAnD,EAA4E,iBAA5E,QAAqG,aAArG;AAIA,OAAO,MAAM,qBAAqB,gBAAG,kBAAkB,CAAC,aAAD,CAAhD;AAEP,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAChG,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,EAAa;IAAE,SAAS,EAAE,MAAb;IAAqB,UAAU,EAAE;EAAjC,CAAb,CAA/B;EACA,uBAAuB,CAAC,KAAD,CAAvB;EACA,OAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CAJiE,CAA3D;AAMP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourcesContent":["import * as React from 'react';\nimport { Switch } from '@fluentui/react-switch';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { FieldProps } from '../../Field';\nimport { getFieldClassNames, renderField_unstable, useFieldStyles_unstable, useField_unstable } from '../../Field';\n\nexport type SwitchFieldProps = FieldProps<typeof Switch>;\n\nexport const switchFieldClassNames = getFieldClassNames('SwitchField');\n\nexport const SwitchField: ForwardRefComponent<SwitchFieldProps> = React.forwardRef((props, ref) => {\n const state = useField_unstable(props, ref, { component: Switch, classNames: switchFieldClassNames });\n useFieldStyles_unstable(state);\n return renderField_unstable(state);\n});\n\nSwitchField.displayName = 'SwitchField';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/SwitchField/SwitchField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,MAAT,QAAuB,wBAAvB;AAGA,SAAS,kBAAT,EAA6B,oBAA7B,EAAmD,uBAAnD,EAA4E,iBAA5E,QAAqG,aAArG;AAMA,OAAO,MAAM,qBAAqB,gBAAG,kBAAkB,CAAC,aAAD,CAAhD;AAEP,OAAO,MAAM,WAAW,gBAA0C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAChG,MAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,EAAa;IAAE,SAAS,EAAE,MAAb;IAAqB,UAAU,EAAE;EAAjC,CAAb,CAA/B;EACA,uBAAuB,CAAC,KAAD,CAAvB;EACA,OAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CAJiE,CAA3D;AAMP,WAAW,CAAC,WAAZ,GAA0B,aAA1B","sourcesContent":["import * as React from 'react';\nimport { Switch } from '@fluentui/react-switch';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { FieldProps } from '../../Field';\nimport { getFieldClassNames, renderField_unstable, useFieldStyles_unstable, useField_unstable } from '../../Field';\n\n// The Field's `label` prop overrides the Switch's built-in `label`.\n// Therefore, the Switch's `labelPosition` has no effect and is omitted to avoid confusion.\nexport type SwitchFieldProps = Omit<FieldProps<typeof Switch>, 'labelPosition'>;\n\nexport const switchFieldClassNames = getFieldClassNames('SwitchField');\n\nexport const SwitchField: ForwardRefComponent<SwitchFieldProps> = React.forwardRef((props, ref) => {\n const state = useField_unstable(props, ref, { component: Switch, classNames: switchFieldClassNames });\n useFieldStyles_unstable(state);\n return renderField_unstable(state);\n});\n\nSwitchField.displayName = 'SwitchField';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/SwitchField/SwitchField.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AAGA,MAAA,OAAA,gBAAA,OAAA,CAAA,aAAA,CAAA;;AAIa,OAAA,CAAA,qBAAA,gBAAwB,OAAA,CAAA,kBAAA,CAAmB,aAAnB,CAAxB;AAEA,OAAA,CAAA,WAAA,gBAAqD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAChG,MAAM,KAAK,GAAG,OAAA,CAAA,iBAAA,CAAkB,KAAlB,EAAyB,GAAzB,EAA8B;IAAE,SAAS,EAAE,cAAA,CAAA,MAAb;IAAqB,UAAU,EAAE,OAAA,CAAA;EAAjC,CAA9B,CAAd;EACA,OAAA,CAAA,uBAAA,CAAwB,KAAxB;EACA,OAAO,OAAA,CAAA,oBAAA,CAAqB,KAArB,CAAP;AACD,CAJiE,CAArD;AAMb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourcesContent":["import * as React from 'react';\nimport { Switch } from '@fluentui/react-switch';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { FieldProps } from '../../Field';\nimport { getFieldClassNames, renderField_unstable, useFieldStyles_unstable, useField_unstable } from '../../Field';\n\nexport type SwitchFieldProps = FieldProps<typeof Switch>;\n\nexport const switchFieldClassNames = getFieldClassNames('SwitchField');\n\nexport const SwitchField: ForwardRefComponent<SwitchFieldProps> = React.forwardRef((props, ref) => {\n const state = useField_unstable(props, ref, { component: Switch, classNames: switchFieldClassNames });\n useFieldStyles_unstable(state);\n return renderField_unstable(state);\n});\n\nSwitchField.displayName = 'SwitchField';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["components/SwitchField/SwitchField.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,cAAA,gBAAA,OAAA,CAAA,wBAAA,CAAA;;AAGA,MAAA,OAAA,gBAAA,OAAA,CAAA,aAAA,CAAA;;AAMa,OAAA,CAAA,qBAAA,gBAAwB,OAAA,CAAA,kBAAA,CAAmB,aAAnB,CAAxB;AAEA,OAAA,CAAA,WAAA,gBAAqD,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;EAChG,MAAM,KAAK,GAAG,OAAA,CAAA,iBAAA,CAAkB,KAAlB,EAAyB,GAAzB,EAA8B;IAAE,SAAS,EAAE,cAAA,CAAA,MAAb;IAAqB,UAAU,EAAE,OAAA,CAAA;EAAjC,CAA9B,CAAd;EACA,OAAA,CAAA,uBAAA,CAAwB,KAAxB;EACA,OAAO,OAAA,CAAA,oBAAA,CAAqB,KAArB,CAAP;AACD,CAJiE,CAArD;AAMb,OAAA,CAAA,WAAA,CAAY,WAAZ,GAA0B,aAA1B","sourcesContent":["import * as React from 'react';\nimport { Switch } from '@fluentui/react-switch';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { FieldProps } from '../../Field';\nimport { getFieldClassNames, renderField_unstable, useFieldStyles_unstable, useField_unstable } from '../../Field';\n\n// The Field's `label` prop overrides the Switch's built-in `label`.\n// Therefore, the Switch's `labelPosition` has no effect and is omitted to avoid confusion.\nexport type SwitchFieldProps = Omit<FieldProps<typeof Switch>, 'labelPosition'>;\n\nexport const switchFieldClassNames = getFieldClassNames('SwitchField');\n\nexport const SwitchField: ForwardRefComponent<SwitchFieldProps> = React.forwardRef((props, ref) => {\n const state = useField_unstable(props, ref, { component: Switch, classNames: switchFieldClassNames });\n useFieldStyles_unstable(state);\n return renderField_unstable(state);\n});\n\nSwitchField.displayName = 'SwitchField';\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-field",
3
- "version": "9.0.0-alpha.1",
3
+ "version": "9.0.0-alpha.3",
4
4
  "description": "Fluent UI Field components",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -27,22 +27,22 @@
27
27
  "devDependencies": {
28
28
  "@fluentui/eslint-plugin": "*",
29
29
  "@fluentui/react-conformance": "*",
30
- "@fluentui/react-conformance-griffel": "9.0.0-beta.13",
30
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.14",
31
31
  "@fluentui/scripts": "^1.0.0"
32
32
  },
33
33
  "dependencies": {
34
- "@fluentui/react-checkbox": "^9.0.5",
35
- "@fluentui/react-combobox": "^9.0.0-beta.9",
34
+ "@fluentui/react-checkbox": "^9.0.7",
35
+ "@fluentui/react-combobox": "^9.0.0-beta.11",
36
36
  "@fluentui/react-context-selector": "^9.0.3",
37
37
  "@fluentui/react-icons": "^2.0.175",
38
- "@fluentui/react-input": "^9.1.0",
39
- "@fluentui/react-label": "^9.0.5",
40
- "@fluentui/react-radio": "^9.0.5",
41
- "@fluentui/react-select": "9.0.0-beta.9",
42
- "@fluentui/react-slider": "^9.0.4",
43
- "@fluentui/react-spinbutton": "^9.0.1",
44
- "@fluentui/react-switch": "^9.0.5",
45
- "@fluentui/react-textarea": "^9.0.5",
38
+ "@fluentui/react-input": "^9.2.0",
39
+ "@fluentui/react-label": "^9.0.6",
40
+ "@fluentui/react-radio": "^9.0.7",
41
+ "@fluentui/react-select": "9.0.0-beta.10",
42
+ "@fluentui/react-slider": "^9.0.6",
43
+ "@fluentui/react-spinbutton": "^9.0.3",
44
+ "@fluentui/react-switch": "^9.0.7",
45
+ "@fluentui/react-textarea": "^9.1.1",
46
46
  "@fluentui/react-theme": "^9.1.0",
47
47
  "@fluentui/react-utilities": "^9.1.0",
48
48
  "@griffel/react": "^1.3.0",