@fluentui-react-native/radio-group 0.20.16 → 0.20.17
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.
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/legacy/MacOSRadioButtonNativeComponent.d.ts +17 -0
- package/lib/legacy/MacOSRadioButtonNativeComponent.d.ts.map +1 -0
- package/lib/legacy/MacOSRadioButtonNativeComponent.js +8 -0
- package/lib/legacy/MacOSRadioButtonNativeComponent.js.map +1 -0
- package/lib/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib/legacy/RadioButton.macos.js +6 -2
- package/lib/legacy/RadioButton.macos.js.map +1 -1
- package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.d.ts +17 -0
- package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.d.ts.map +1 -0
- package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.js +11 -0
- package/lib-commonjs/legacy/MacOSRadioButtonNativeComponent.js.map +1 -0
- package/lib-commonjs/legacy/RadioButton.macos.d.ts.map +1 -1
- package/lib-commonjs/legacy/RadioButton.macos.js +7 -3
- package/lib-commonjs/legacy/RadioButton.macos.js.map +1 -1
- package/package.json +2 -3
- package/src/legacy/MacOSRadioButtonNativeComponent.ts +20 -0
- package/src/legacy/RadioButton.macos.tsx +6 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@fluentui-react-native/radio-group",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 29 Mar 2024 18:05:03 GMT",
|
|
6
|
+
"version": "0.20.17",
|
|
7
|
+
"tag": "@fluentui-react-native/radio-group_v0.20.17",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
12
|
+
"package": "@fluentui-react-native/radio-group",
|
|
13
|
+
"commit": "a722aa94799f4afee55baa03a5a754b0d4b2fdce",
|
|
14
|
+
"comment": "Use codegenNativeComponent so JS View configs can be generated for all native components"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 18 Mar 2024 23:41:59 GMT",
|
|
6
21
|
"version": "0.20.16",
|
|
7
22
|
"tag": "@fluentui-react-native/radio-group_v0.20.16",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @fluentui-react-native/radio-group
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 29 Mar 2024 18:05:03 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.20.17
|
|
8
|
+
|
|
9
|
+
Fri, 29 Mar 2024 18:05:03 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Use codegenNativeComponent so JS View configs can be generated for all native components (30809111+acoates-ms@users.noreply.github.com)
|
|
14
|
+
|
|
7
15
|
## 0.20.16
|
|
8
16
|
|
|
9
|
-
Mon, 18 Mar 2024 23:
|
|
17
|
+
Mon, 18 Mar 2024 23:41:59 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
+
import type { BubblingEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
|
+
export interface NativeProps extends ViewProps {
|
|
9
|
+
content?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
buttonKey?: string;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
onPress?: BubblingEventHandler<null>;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: HostComponent<NativeProps>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=MacOSRadioButtonNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MacOSRadioButtonNativeComponent.d.ts","sourceRoot":"","sources":["../../src/legacy/MacOSRadioButtonNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAGtF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;CACtC;;AAED,wBAAuG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
7
|
+
export default codegenNativeComponent('FRNRadioButtonView');
|
|
8
|
+
//# sourceMappingURL=MacOSRadioButtonNativeComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MacOSRadioButtonNativeComponent.js","sourceRoot":"","sources":["../../src/legacy/MacOSRadioButtonNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAU7F,eAAe,sBAAsB,CAAc,oBAAoB,CAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.macos.d.ts","sourceRoot":"","sources":["../../src/legacy/RadioButton.macos.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioButton.macos.d.ts","sourceRoot":"","sources":["../../src/legacy/RadioButton.macos.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAoB,MAAM,qBAAqB,CAAC;AAItG,eAAO,MAAM,WAAW,6KAqDtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
1
6
|
/** @jsxRuntime classic */
|
|
2
7
|
/** @jsx withSlots */
|
|
3
8
|
import * as React from 'react';
|
|
4
|
-
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
|
5
9
|
import { withSlots } from '@uifabricshared/foundation-composable';
|
|
6
10
|
import { compose } from '@uifabricshared/foundation-compose';
|
|
7
11
|
import { mergeSettings } from '@uifabricshared/foundation-settings';
|
|
12
|
+
import NativeRadioButtonView from './MacOSRadioButtonNativeComponent';
|
|
8
13
|
import { radioButtonName } from './RadioButton.types';
|
|
9
14
|
import { RadioGroupContext } from './RadioGroup';
|
|
10
|
-
var NativeRadioButtonView = ensureNativeComponent('FRNRadioButtonView');
|
|
11
15
|
export var RadioButton = compose({
|
|
12
16
|
displayName: radioButtonName,
|
|
13
17
|
usePrepareProps: function (userProps, useStyling) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.macos.js","sourceRoot":"","sources":["../../src/legacy/RadioButton.macos.tsx"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version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;YACd,IAAI,SAAS,KAAK,IAAI,CAAC,WAAW,EAAE;gBAClC,IAAI,CAAC,uBAAuB,IAAI,YAAY,IAAI,IAAI,CAAC,uBAAuB,CAAC,YAAY,CAAC,CAAC;aAC5F;QACH,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,IAAM,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;QACzC,IAAM,UAAU,GAAG,IAAI,CAAC,WAAW,KAAK,SAAS,CAAC;QAClD,IAAM,SAAS,GAAG,aAAa,CAAwB,UAAU,EAAE;YACjE,IAAI,EAAE;gBACJ,GAAG,EAAE,YAAY;gBACjB,SAAS,EAAE,SAAS;gBACpB,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,QAAQ;gBAClB,OAAO,EAAE,eAAe;gBACxB,QAAQ,EAAE,UAAU;gBACpB,KAAK,EAAE;oBACL,QAAQ,EAAE,MAAM;oBAChB,SAAS,EAAE,EAAE;iBACd;aACF;SACF,CAAC,CAAC;QAEH,OAAO,EAAE,SAAS,WAAA,EAAE,CAAC;IACvB,CAAC;IACD,KAAK,EAAE;QACL,IAAI,EAAE,qBAAqB;KAC5B;IACD,MAAM,EAAE;QACN,IAAI,EAAE,EAAE;KACT;IACD,MAAM,EAAE,UAAC,KAAoC;QAC3C,OAAO,UAAC,KAAK,CAAC,IAAI,OAAG,CAAC;IACxB,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
7
|
+
import type { BubblingEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
|
+
export interface NativeProps extends ViewProps {
|
|
9
|
+
content?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
buttonKey?: string;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
onPress?: BubblingEventHandler<null>;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: HostComponent<NativeProps>;
|
|
16
|
+
export default _default;
|
|
17
|
+
//# sourceMappingURL=MacOSRadioButtonNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MacOSRadioButtonNativeComponent.d.ts","sourceRoot":"","sources":["../../src/legacy/MacOSRadioButtonNativeComponent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAGtF,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;CACtC;;AAED,wBAAuG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
* @format
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
var tslib_1 = require("tslib");
|
|
9
|
+
var codegenNativeComponent_1 = tslib_1.__importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
10
|
+
exports.default = (0, codegenNativeComponent_1.default)('FRNRadioButtonView');
|
|
11
|
+
//# sourceMappingURL=MacOSRadioButtonNativeComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MacOSRadioButtonNativeComponent.js","sourceRoot":"","sources":["../../src/legacy/MacOSRadioButtonNativeComponent.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAKH,2HAA6F;AAU7F,kBAAe,IAAA,gCAAsB,EAAc,oBAAoB,CAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.macos.d.ts","sourceRoot":"","sources":["../../src/legacy/RadioButton.macos.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioButton.macos.d.ts","sourceRoot":"","sources":["../../src/legacy/RadioButton.macos.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAoB,MAAM,qBAAqB,CAAC;AAItG,eAAO,MAAM,WAAW,6KAqDtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RadioButton = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
|
+
/**
|
|
6
|
+
* Copyright (c) Microsoft Corporation.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
5
10
|
/** @jsxRuntime classic */
|
|
6
11
|
/** @jsx withSlots */
|
|
7
12
|
var React = tslib_1.__importStar(require("react"));
|
|
8
|
-
var component_cache_1 = require("@fluentui-react-native/component-cache");
|
|
9
13
|
var foundation_composable_1 = require("@uifabricshared/foundation-composable");
|
|
10
14
|
var foundation_compose_1 = require("@uifabricshared/foundation-compose");
|
|
11
15
|
var foundation_settings_1 = require("@uifabricshared/foundation-settings");
|
|
16
|
+
var MacOSRadioButtonNativeComponent_1 = tslib_1.__importDefault(require("./MacOSRadioButtonNativeComponent"));
|
|
12
17
|
var RadioButton_types_1 = require("./RadioButton.types");
|
|
13
18
|
var RadioGroup_1 = require("./RadioGroup");
|
|
14
|
-
var NativeRadioButtonView = (0, component_cache_1.ensureNativeComponent)('FRNRadioButtonView');
|
|
15
19
|
exports.RadioButton = (0, foundation_compose_1.compose)({
|
|
16
20
|
displayName: RadioButton_types_1.radioButtonName,
|
|
17
21
|
usePrepareProps: function (userProps, useStyling) {
|
|
@@ -53,7 +57,7 @@ exports.RadioButton = (0, foundation_compose_1.compose)({
|
|
|
53
57
|
return { slotProps: slotProps };
|
|
54
58
|
},
|
|
55
59
|
slots: {
|
|
56
|
-
root:
|
|
60
|
+
root: MacOSRadioButtonNativeComponent_1.default,
|
|
57
61
|
},
|
|
58
62
|
styles: {
|
|
59
63
|
root: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.macos.js","sourceRoot":"","sources":["../../src/legacy/RadioButton.macos.tsx"],"names":[],"mappings":";;;;AAAA,0BAA0B;AAC1B,qBAAqB;AACrB,mDAA+B;
|
|
1
|
+
{"version":3,"file":"RadioButton.macos.js","sourceRoot":"","sources":["../../src/legacy/RadioButton.macos.tsx"],"names":[],"mappings":";;;;AAAA;;;;GAIG;AACH,0BAA0B;AAC1B,qBAAqB;AACrB,mDAA+B;AAG/B,+EAAkE;AAClE,yEAA6D;AAE7D,2EAAoE;AAEpE,8GAAsE;AAEtE,yDAAsD;AACtD,2CAAiD;AAEpC,QAAA,WAAW,GAAG,IAAA,4BAAO,EAAmB;IACnD,WAAW,EAAE,mCAAe;IAC5B,eAAe,EAAE,UAAC,SAA4B,EAAE,UAAgD;QAC9F,IAAM,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvC,IAAA,OAAO,GAA8D,SAAS,QAAvE,EAAE,SAAS,GAAmD,SAAS,UAA5D,EAAE,QAAQ,GAAyC,SAAS,SAAlD,EAAE,KAAuC,SAAS,aAAd,EAAlC,YAAY,mBAAG,mBAAmB,KAAA,CAAe;QACvF,IAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,8BAAiB,CAAC,CAAC;QAEjD,wEAAwE;QACxE,IAAM,eAAe,GAAG;YACtB,0EAA0E;YAC1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
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui-react-native/radio-group",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.17",
|
|
4
4
|
"description": "A cross-platform Radio Group component using the Fluent Design System",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -23,8 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fluentui-react-native/adapters": "0.12.3",
|
|
26
|
-
"@fluentui-react-native/
|
|
27
|
-
"@fluentui-react-native/focus-zone": "0.16.14",
|
|
26
|
+
"@fluentui-react-native/focus-zone": "0.16.15",
|
|
28
27
|
"@fluentui-react-native/framework": "0.13.10",
|
|
29
28
|
"@fluentui-react-native/interactive-hooks": "0.26.4",
|
|
30
29
|
"@fluentui-react-native/pressable": "0.11.14",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
8
|
+
|
|
9
|
+
import type { BubblingEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
10
|
+
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
11
|
+
|
|
12
|
+
export interface NativeProps extends ViewProps {
|
|
13
|
+
content?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
buttonKey?: string;
|
|
16
|
+
selected?: boolean;
|
|
17
|
+
onPress?: BubblingEventHandler<null>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default codegenNativeComponent<NativeProps>('FRNRadioButtonView') as HostComponent<NativeProps>;
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
* @format
|
|
5
|
+
*/
|
|
1
6
|
/** @jsxRuntime classic */
|
|
2
7
|
/** @jsx withSlots */
|
|
3
8
|
import * as React from 'react';
|
|
4
9
|
|
|
5
|
-
import { ensureNativeComponent } from '@fluentui-react-native/component-cache';
|
|
6
10
|
import type { ISlots } from '@uifabricshared/foundation-composable';
|
|
7
11
|
import { withSlots } from '@uifabricshared/foundation-composable';
|
|
8
12
|
import { compose } from '@uifabricshared/foundation-compose';
|
|
9
13
|
import type { IUseComposeStyling } from '@uifabricshared/foundation-compose';
|
|
10
14
|
import { mergeSettings } from '@uifabricshared/foundation-settings';
|
|
11
15
|
|
|
16
|
+
import NativeRadioButtonView from './MacOSRadioButtonNativeComponent';
|
|
12
17
|
import type { IRadioButtonProps, IRadioButtonSlotProps, IRadioButtonType } from './RadioButton.types';
|
|
13
18
|
import { radioButtonName } from './RadioButton.types';
|
|
14
19
|
import { RadioGroupContext } from './RadioGroup';
|
|
15
20
|
|
|
16
|
-
const NativeRadioButtonView = ensureNativeComponent('FRNRadioButtonView');
|
|
17
|
-
|
|
18
21
|
export const RadioButton = compose<IRadioButtonType>({
|
|
19
22
|
displayName: radioButtonName,
|
|
20
23
|
usePrepareProps: (userProps: IRadioButtonProps, useStyling: IUseComposeStyling<IRadioButtonType>) => {
|