@fluentui/react-label
Advanced tools
Comparing version 9.0.0-alpha.7 to 9.0.0-alpha.8
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Wed, 09 Jun 2021 07:31:40 GMT", | ||
"date": "Tue, 15 Jun 2021 07:36:10 GMT", | ||
"tag": "@fluentui/react-label_v9.0.0-alpha.8", | ||
"version": "9.0.0-alpha.8", | ||
"comments": { | ||
"prerelease": [ | ||
{ | ||
"comment": "Fix type of required prop after change to ShorthandProp type definition", | ||
"author": "behowell@microsoft.com", | ||
"commit": "10b1e17acaa01675866f7a623be1a61b1478d7d7", | ||
"package": "@fluentui/react-label" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Wed, 09 Jun 2021 07:33:38 GMT", | ||
"tag": "@fluentui/react-label_v9.0.0-alpha.7", | ||
@@ -8,0 +23,0 @@ "version": "9.0.0-alpha.7", |
# Change Log - @fluentui/react-label | ||
This log was last generated on Wed, 09 Jun 2021 07:31:40 GMT and should not be manually modified. | ||
This log was last generated on Tue, 15 Jun 2021 07:36:10 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.8) | ||
Tue, 15 Jun 2021 07:36:10 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.7..@fluentui/react-label_v9.0.0-alpha.8) | ||
### Changes | ||
- Fix type of required prop after change to ShorthandProp type definition ([PR #18521](https://github.com/microsoft/fluentui/pull/18521) by behowell@microsoft.com) | ||
## [9.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.7) | ||
Wed, 09 Jun 2021 07:31:40 GMT | ||
Wed, 09 Jun 2021 07:33:38 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.6..@fluentui/react-label_v9.0.0-alpha.7) | ||
@@ -11,0 +20,0 @@ |
import { ComponentProps } from '@fluentui/react-utilities'; | ||
import { ComponentState } from '@fluentui/react-utilities'; | ||
import { ObjectShorthandProps } from '@fluentui/react-utilities'; | ||
import * as React_2 from 'react'; | ||
@@ -67,2 +68,6 @@ import { ShorthandProps } from '@fluentui/react-utilities'; | ||
ref: React_2.Ref<HTMLElement>; | ||
/** | ||
* The required prop resolved to a slot object | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
} | ||
@@ -69,0 +74,0 @@ |
@@ -9,2 +9,3 @@ ## API Report File for "@fluentui/react-label" | ||
import { ComponentState } from '@fluentui/react-utilities'; | ||
import { ObjectShorthandProps } from '@fluentui/react-utilities'; | ||
import * as React_2 from 'react'; | ||
@@ -36,2 +37,3 @@ import { ShorthandProps } from '@fluentui/react-utilities'; | ||
ref: React_2.Ref<HTMLElement>; | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
} | ||
@@ -38,0 +40,0 @@ |
import * as React from 'react'; | ||
import { ComponentProps, ComponentState, ShorthandProps } from '@fluentui/react-utilities'; | ||
import { ComponentProps, ComponentState, ObjectShorthandProps, ShorthandProps } from '@fluentui/react-utilities'; | ||
/** | ||
@@ -49,2 +49,6 @@ * Label Props | ||
ref: React.Ref<HTMLElement>; | ||
/** | ||
* The required prop resolved to a slot object | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
} |
@@ -41,11 +41,16 @@ define(["require", "exports", "tslib", "@fluentui/react-utilities"], function (require, exports, tslib_1, react_utilities_1) { | ||
var resolveLabelShorthandProps = function (props) { | ||
var propsNormalized; | ||
if (props.required === true) { | ||
props = tslib_1.__assign(tslib_1.__assign({}, props), { required: { children: '*' } }); | ||
propsNormalized = tslib_1.__assign(tslib_1.__assign({}, props), { required: { children: '*' } }); | ||
} | ||
else if (props.required === false) { | ||
props = tslib_1.__assign(tslib_1.__assign({}, props), { required: undefined }); | ||
propsNormalized = tslib_1.__assign(tslib_1.__assign({}, props), { required: undefined }); | ||
} | ||
return react_utilities_1.resolveShorthandProps(props, exports.labelShorthandProps); | ||
else { | ||
// TypeScript needs a nudge to figure out that props.required won't be a boolean here | ||
propsNormalized = props; | ||
} | ||
return react_utilities_1.resolveShorthandProps(propsNormalized, exports.labelShorthandProps); | ||
}; | ||
}); | ||
//# sourceMappingURL=useLabel.js.map |
import * as React from 'react'; | ||
import { ComponentProps, ComponentState, ShorthandProps } from '@fluentui/react-utilities'; | ||
import { ComponentProps, ComponentState, ObjectShorthandProps, ShorthandProps } from '@fluentui/react-utilities'; | ||
/** | ||
@@ -49,2 +49,6 @@ * Label Props | ||
ref: React.Ref<HTMLElement>; | ||
/** | ||
* The required prop resolved to a slot object | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
} |
@@ -42,10 +42,15 @@ "use strict"; | ||
var resolveLabelShorthandProps = function (props) { | ||
var propsNormalized; | ||
if (props.required === true) { | ||
props = tslib_1.__assign(tslib_1.__assign({}, props), { required: { children: '*' } }); | ||
propsNormalized = tslib_1.__assign(tslib_1.__assign({}, props), { required: { children: '*' } }); | ||
} | ||
else if (props.required === false) { | ||
props = tslib_1.__assign(tslib_1.__assign({}, props), { required: undefined }); | ||
propsNormalized = tslib_1.__assign(tslib_1.__assign({}, props), { required: undefined }); | ||
} | ||
return react_utilities_1.resolveShorthandProps(props, exports.labelShorthandProps); | ||
else { | ||
// TypeScript needs a nudge to figure out that props.required won't be a boolean here | ||
propsNormalized = props; | ||
} | ||
return react_utilities_1.resolveShorthandProps(propsNormalized, exports.labelShorthandProps); | ||
}; | ||
//# sourceMappingURL=useLabel.js.map |
import * as React from 'react'; | ||
import { ComponentProps, ComponentState, ShorthandProps } from '@fluentui/react-utilities'; | ||
import { ComponentProps, ComponentState, ObjectShorthandProps, ShorthandProps } from '@fluentui/react-utilities'; | ||
/** | ||
@@ -49,2 +49,6 @@ * Label Props | ||
ref: React.Ref<HTMLElement>; | ||
/** | ||
* The required prop resolved to a slot object | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
} |
@@ -38,10 +38,15 @@ import { __assign } from "tslib"; | ||
var resolveLabelShorthandProps = function (props) { | ||
var propsNormalized; | ||
if (props.required === true) { | ||
props = __assign(__assign({}, props), { required: { children: '*' } }); | ||
propsNormalized = __assign(__assign({}, props), { required: { children: '*' } }); | ||
} | ||
else if (props.required === false) { | ||
props = __assign(__assign({}, props), { required: undefined }); | ||
propsNormalized = __assign(__assign({}, props), { required: undefined }); | ||
} | ||
return resolveShorthandProps(props, labelShorthandProps); | ||
else { | ||
// TypeScript needs a nudge to figure out that props.required won't be a boolean here | ||
propsNormalized = props; | ||
} | ||
return resolveShorthandProps(propsNormalized, labelShorthandProps); | ||
}; | ||
//# sourceMappingURL=useLabel.js.map |
{ | ||
"name": "@fluentui/react-label", | ||
"version": "9.0.0-alpha.7", | ||
"version": "9.0.0-alpha.8", | ||
"description": "Label component for FluentUI library.", | ||
@@ -27,3 +27,3 @@ "main": "lib-commonjs/index.js", | ||
"@fluentui/eslint-plugin": "^1.3.1", | ||
"@fluentui/jest-serializer-make-styles": "^9.0.0-alpha.17", | ||
"@fluentui/jest-serializer-make-styles": "^9.0.0-alpha.18", | ||
"@fluentui/react-conformance": "^0.4.1", | ||
@@ -43,4 +43,4 @@ "@fluentui/scripts": "^1.0.0", | ||
"dependencies": { | ||
"@fluentui/react-make-styles": "^9.0.0-alpha.41", | ||
"@fluentui/react-utilities": "^9.0.0-alpha.28", | ||
"@fluentui/react-make-styles": "^9.0.0-alpha.42", | ||
"@fluentui/react-utilities": "^9.0.0-alpha.29", | ||
"tslib": "^2.1.0" | ||
@@ -47,0 +47,0 @@ }, |
import * as React from 'react'; | ||
import { ComponentProps, ComponentState, ShorthandProps } from '@fluentui/react-utilities'; | ||
import { ComponentProps, ComponentState, ObjectShorthandProps, ShorthandProps } from '@fluentui/react-utilities'; | ||
@@ -56,2 +56,7 @@ /** | ||
ref: React.Ref<HTMLElement>; | ||
/** | ||
* The required prop resolved to a slot object | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94964
1189