@fluentui/react-label
Advanced tools
Comparing version 9.0.0-alpha.12 to 9.0.0-alpha.13
@@ -5,3 +5,18 @@ { | ||
{ | ||
"date": "Thu, 01 Jul 2021 07:31:44 GMT", | ||
"date": "Fri, 02 Jul 2021 07:35:03 GMT", | ||
"tag": "@fluentui/react-label_v9.0.0-alpha.13", | ||
"version": "9.0.0-alpha.13", | ||
"comments": { | ||
"prerelease": [ | ||
{ | ||
"comment": "Rename typings and getSlots to have the Compat Suffix", | ||
"author": "bsunderhus@microsoft.com", | ||
"commit": "c939e67b1840a9eb5f7706afcda8c14df8f18d33", | ||
"package": "@fluentui/react-label" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 01 Jul 2021 07:35:05 GMT", | ||
"tag": "@fluentui/react-label_v9.0.0-alpha.12", | ||
@@ -8,0 +23,0 @@ "version": "9.0.0-alpha.12", |
# Change Log - @fluentui/react-label | ||
This log was last generated on Thu, 01 Jul 2021 07:31:44 GMT and should not be manually modified. | ||
This log was last generated on Fri, 02 Jul 2021 07:35:03 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.13) | ||
Fri, 02 Jul 2021 07:35:03 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.12..@fluentui/react-label_v9.0.0-alpha.13) | ||
### Changes | ||
- Rename typings and getSlots to have the Compat Suffix ([PR #18796](https://github.com/microsoft/fluentui/pull/18796) by bsunderhus@microsoft.com) | ||
## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-label_v9.0.0-alpha.12) | ||
Thu, 01 Jul 2021 07:31:44 GMT | ||
Thu, 01 Jul 2021 07:35:05 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-label_v9.0.0-alpha.11..@fluentui/react-label_v9.0.0-alpha.12) | ||
@@ -11,0 +20,0 @@ |
@@ -1,6 +0,6 @@ | ||
import { ComponentProps } from '@fluentui/react-utilities'; | ||
import { ComponentState } from '@fluentui/react-utilities'; | ||
import { ObjectShorthandProps } from '@fluentui/react-utilities'; | ||
import { ComponentPropsCompat } from '@fluentui/react-utilities'; | ||
import { ComponentStateCompat } from '@fluentui/react-utilities'; | ||
import { ObjectShorthandPropsCompat } from '@fluentui/react-utilities'; | ||
import * as React_2 from 'react'; | ||
import { ShorthandProps } from '@fluentui/react-utilities'; | ||
import { ShorthandPropsCompat } from '@fluentui/react-utilities'; | ||
@@ -23,3 +23,3 @@ /** | ||
*/ | ||
export declare interface LabelProps extends ComponentProps, React_2.LabelHTMLAttributes<HTMLLabelElement> { | ||
export declare interface LabelProps extends ComponentPropsCompat, React_2.LabelHTMLAttributes<HTMLLabelElement> { | ||
/** | ||
@@ -35,3 +35,3 @@ * Renders the label as disabled | ||
*/ | ||
required?: boolean | ShorthandProps<ComponentProps>; | ||
required?: boolean | ShorthandPropsCompat<ComponentPropsCompat>; | ||
/** | ||
@@ -65,3 +65,3 @@ * A label supports different sizes. | ||
*/ | ||
export declare interface LabelState extends ComponentState<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
export declare interface LabelState extends ComponentStateCompat<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
/** | ||
@@ -74,3 +74,3 @@ * Ref to the root element | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
required?: ObjectShorthandPropsCompat<ComponentPropsCompat>; | ||
} | ||
@@ -77,0 +77,0 @@ |
@@ -7,7 +7,7 @@ ## API Report File for "@fluentui/react-label" | ||
import { ComponentProps } from '@fluentui/react-utilities'; | ||
import { ComponentState } from '@fluentui/react-utilities'; | ||
import { ObjectShorthandProps } from '@fluentui/react-utilities'; | ||
import { ComponentPropsCompat } from '@fluentui/react-utilities'; | ||
import { ComponentStateCompat } from '@fluentui/react-utilities'; | ||
import { ObjectShorthandPropsCompat } from '@fluentui/react-utilities'; | ||
import * as React_2 from 'react'; | ||
import { ShorthandProps } from '@fluentui/react-utilities'; | ||
import { ShorthandPropsCompat } from '@fluentui/react-utilities'; | ||
@@ -21,5 +21,5 @@ // @public | ||
// @public | ||
export interface LabelProps extends ComponentProps, React_2.LabelHTMLAttributes<HTMLLabelElement> { | ||
export interface LabelProps extends ComponentPropsCompat, React_2.LabelHTMLAttributes<HTMLLabelElement> { | ||
disabled?: boolean; | ||
required?: boolean | ShorthandProps<ComponentProps>; | ||
required?: boolean | ShorthandPropsCompat<ComponentPropsCompat>; | ||
size?: 'small' | 'medium' | 'large'; | ||
@@ -36,5 +36,5 @@ strong?: boolean; | ||
// @public | ||
export interface LabelState extends ComponentState<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
export interface LabelState extends ComponentStateCompat<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
ref: React_2.Ref<HTMLElement>; | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
required?: ObjectShorthandPropsCompat<ComponentPropsCompat>; | ||
} | ||
@@ -41,0 +41,0 @@ |
import * as React from 'react'; | ||
import { ComponentProps, ComponentState, ObjectShorthandProps, ShorthandProps } from '@fluentui/react-utilities'; | ||
import { ComponentPropsCompat, ComponentStateCompat, ObjectShorthandPropsCompat, ShorthandPropsCompat } from '@fluentui/react-utilities'; | ||
/** | ||
@@ -7,3 +7,3 @@ * Label Props | ||
*/ | ||
export interface LabelProps extends ComponentProps, React.LabelHTMLAttributes<HTMLLabelElement> { | ||
export interface LabelProps extends ComponentPropsCompat, React.LabelHTMLAttributes<HTMLLabelElement> { | ||
/** | ||
@@ -19,3 +19,3 @@ * Renders the label as disabled | ||
*/ | ||
required?: boolean | ShorthandProps<ComponentProps>; | ||
required?: boolean | ShorthandPropsCompat<ComponentPropsCompat>; | ||
/** | ||
@@ -46,3 +46,3 @@ * A label supports different sizes. | ||
*/ | ||
export interface LabelState extends ComponentState<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
export interface LabelState extends ComponentStateCompat<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
/** | ||
@@ -55,3 +55,3 @@ * Ref to the root element | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
required?: ObjectShorthandPropsCompat<ComponentPropsCompat>; | ||
} |
@@ -10,3 +10,3 @@ define(["require", "exports", "tslib", "react", "@fluentui/react-utilities", "./useLabel"], function (require, exports, tslib_1, React, react_utilities_1, useLabel_1) { | ||
var renderLabel = function (state) { | ||
var _a = react_utilities_1.getSlots(state, useLabel_1.labelShorthandProps), slots = _a.slots, slotProps = _a.slotProps; | ||
var _a = react_utilities_1.getSlotsCompat(state, useLabel_1.labelShorthandProps), slots = _a.slots, slotProps = _a.slotProps; | ||
return (React.createElement(slots.root, tslib_1.__assign({}, slotProps.root), | ||
@@ -13,0 +13,0 @@ state.children, |
import * as React from 'react'; | ||
import { ComponentProps, ComponentState, ObjectShorthandProps, ShorthandProps } from '@fluentui/react-utilities'; | ||
import { ComponentPropsCompat, ComponentStateCompat, ObjectShorthandPropsCompat, ShorthandPropsCompat } from '@fluentui/react-utilities'; | ||
/** | ||
@@ -7,3 +7,3 @@ * Label Props | ||
*/ | ||
export interface LabelProps extends ComponentProps, React.LabelHTMLAttributes<HTMLLabelElement> { | ||
export interface LabelProps extends ComponentPropsCompat, React.LabelHTMLAttributes<HTMLLabelElement> { | ||
/** | ||
@@ -19,3 +19,3 @@ * Renders the label as disabled | ||
*/ | ||
required?: boolean | ShorthandProps<ComponentProps>; | ||
required?: boolean | ShorthandPropsCompat<ComponentPropsCompat>; | ||
/** | ||
@@ -46,3 +46,3 @@ * A label supports different sizes. | ||
*/ | ||
export interface LabelState extends ComponentState<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
export interface LabelState extends ComponentStateCompat<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
/** | ||
@@ -55,3 +55,3 @@ * Ref to the root element | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
required?: ObjectShorthandPropsCompat<ComponentPropsCompat>; | ||
} |
@@ -13,3 +13,3 @@ "use strict"; | ||
var renderLabel = function (state) { | ||
var _a = react_utilities_1.getSlots(state, useLabel_1.labelShorthandProps), slots = _a.slots, slotProps = _a.slotProps; | ||
var _a = react_utilities_1.getSlotsCompat(state, useLabel_1.labelShorthandProps), slots = _a.slots, slotProps = _a.slotProps; | ||
return (React.createElement(slots.root, tslib_1.__assign({}, slotProps.root), | ||
@@ -16,0 +16,0 @@ state.children, |
import * as React from 'react'; | ||
import { ComponentProps, ComponentState, ObjectShorthandProps, ShorthandProps } from '@fluentui/react-utilities'; | ||
import { ComponentPropsCompat, ComponentStateCompat, ObjectShorthandPropsCompat, ShorthandPropsCompat } from '@fluentui/react-utilities'; | ||
/** | ||
@@ -7,3 +7,3 @@ * Label Props | ||
*/ | ||
export interface LabelProps extends ComponentProps, React.LabelHTMLAttributes<HTMLLabelElement> { | ||
export interface LabelProps extends ComponentPropsCompat, React.LabelHTMLAttributes<HTMLLabelElement> { | ||
/** | ||
@@ -19,3 +19,3 @@ * Renders the label as disabled | ||
*/ | ||
required?: boolean | ShorthandProps<ComponentProps>; | ||
required?: boolean | ShorthandPropsCompat<ComponentPropsCompat>; | ||
/** | ||
@@ -46,3 +46,3 @@ * A label supports different sizes. | ||
*/ | ||
export interface LabelState extends ComponentState<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
export interface LabelState extends ComponentStateCompat<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
/** | ||
@@ -55,3 +55,3 @@ * Ref to the root element | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
required?: ObjectShorthandPropsCompat<ComponentPropsCompat>; | ||
} |
import { __assign } from "tslib"; | ||
import * as React from 'react'; | ||
import { getSlots } from '@fluentui/react-utilities'; | ||
import { getSlotsCompat } from '@fluentui/react-utilities'; | ||
import { labelShorthandProps } from './useLabel'; | ||
@@ -10,3 +10,3 @@ /** | ||
export var renderLabel = function (state) { | ||
var _a = getSlots(state, labelShorthandProps), slots = _a.slots, slotProps = _a.slotProps; | ||
var _a = getSlotsCompat(state, labelShorthandProps), slots = _a.slots, slotProps = _a.slotProps; | ||
return (React.createElement(slots.root, __assign({}, slotProps.root), | ||
@@ -13,0 +13,0 @@ state.children, |
{ | ||
"name": "@fluentui/react-label", | ||
"version": "9.0.0-alpha.12", | ||
"version": "9.0.0-alpha.13", | ||
"description": "Label component for FluentUI library.", | ||
@@ -28,3 +28,3 @@ "main": "lib-commonjs/index.js", | ||
"@fluentui/eslint-plugin": "^1.3.1", | ||
"@fluentui/jest-serializer-make-styles": "^9.0.0-alpha.20", | ||
"@fluentui/jest-serializer-make-styles": "^9.0.0-alpha.21", | ||
"@fluentui/react-conformance": "^0.4.1", | ||
@@ -44,4 +44,4 @@ "@fluentui/scripts": "^1.0.0", | ||
"dependencies": { | ||
"@fluentui/react-make-styles": "^9.0.0-alpha.44", | ||
"@fluentui/react-utilities": "^9.0.0-alpha.29", | ||
"@fluentui/react-make-styles": "^9.0.0-alpha.45", | ||
"@fluentui/react-utilities": "^9.0.0-alpha.30", | ||
"tslib": "^2.1.0" | ||
@@ -48,0 +48,0 @@ }, |
import * as React from 'react'; | ||
import { ComponentProps, ComponentState, ObjectShorthandProps, ShorthandProps } from '@fluentui/react-utilities'; | ||
import { | ||
ComponentPropsCompat, | ||
ComponentStateCompat, | ||
ObjectShorthandPropsCompat, | ||
ShorthandPropsCompat, | ||
} from '@fluentui/react-utilities'; | ||
@@ -8,3 +13,3 @@ /** | ||
*/ | ||
export interface LabelProps extends ComponentProps, React.LabelHTMLAttributes<HTMLLabelElement> { | ||
export interface LabelProps extends ComponentPropsCompat, React.LabelHTMLAttributes<HTMLLabelElement> { | ||
/** | ||
@@ -21,3 +26,3 @@ * Renders the label as disabled | ||
*/ | ||
required?: boolean | ShorthandProps<ComponentProps>; | ||
required?: boolean | ShorthandPropsCompat<ComponentPropsCompat>; | ||
@@ -53,3 +58,3 @@ /** | ||
*/ | ||
export interface LabelState extends ComponentState<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
export interface LabelState extends ComponentStateCompat<LabelProps, LabelShorthandProps, LabelDefaultedProps> { | ||
/** | ||
@@ -63,3 +68,3 @@ * Ref to the root element | ||
*/ | ||
required?: ObjectShorthandProps<ComponentProps>; | ||
required?: ObjectShorthandPropsCompat<ComponentPropsCompat>; | ||
} |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1774513
6141