@react-spectrum/label
Advanced tools
Comparing version 3.0.0-rc.1 to 3.0.0-rc.2
120
dist/main.js
@@ -1,8 +0,8 @@ | ||
require("../../textfield/dist/main.css"); | ||
require("./main.css"); | ||
var _babelRuntimeHelpersEsmExtends = $parcel$interopDefault(require("@babel/runtime/helpers/esm/extends")); | ||
var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends")); | ||
var _babelRuntimeHelpersEsmObjectWithoutProperties = $parcel$interopDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties")); | ||
var _babelRuntimeHelpersObjectWithoutProperties = $parcel$interopDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
var _babelRuntimeHelpersEsmInteropRequireDefault = $parcel$interopDefault(require("@babel/runtime/helpers/esm/interopRequireDefault")); | ||
var _babelRuntimeHelpersInteropRequireDefault = $parcel$interopDefault(require("@babel/runtime/helpers/interopRequireDefault")); | ||
@@ -130,50 +130,51 @@ var _spectrumIconsUiAsterisk = $parcel$interopDefault(require("@spectrum-icons/ui/Asterisk")); | ||
$ce2ba76b00945bd966a5f95584cdaaee$exports = { | ||
"spectrum-FieldLabel": "_spectrum-FieldLabel_309d8", | ||
"spectrum-FieldLabel--positionSide": "_spectrum-FieldLabel--positionSide_309d8", | ||
"spectrum-FieldLabel-requiredIcon": "_spectrum-FieldLabel-requiredIcon_309d8", | ||
"spectrum-FieldLabel--alignEnd": "_spectrum-FieldLabel--alignEnd_309d8", | ||
"spectrum-Field": "_spectrum-Field_309d8", | ||
"spectrum-Field--positionTop": "_spectrum-Field--positionTop_309d8", | ||
"spectrum-Field-field": "_spectrum-Field-field_309d8", | ||
"spectrum-Field--positionSide": "_spectrum-Field--positionSide_309d8", | ||
"spectrum-Form": "_spectrum-Form_309d8", | ||
"spectrum-Form--positionSide": "_spectrum-Form--positionSide_309d8", | ||
"spectrum-Form--positionTop": "_spectrum-Form--positionTop_309d8", | ||
"spectrum-Form-itemLabel": "_spectrum-Form-itemLabel_309d8", | ||
"is-disabled": "_is-disabled_309d8" | ||
"spectrum-FieldLabel": "_spectrum-FieldLabel_3fb22", | ||
"spectrum-FieldLabel--positionSide": "_spectrum-FieldLabel--positionSide_3fb22", | ||
"spectrum-FieldLabel-requiredIcon": "_spectrum-FieldLabel-requiredIcon_3fb22", | ||
"spectrum-FieldLabel--alignEnd": "_spectrum-FieldLabel--alignEnd_3fb22", | ||
"spectrum-Field": "_spectrum-Field_3fb22", | ||
"spectrum-Field--positionTop": "_spectrum-Field--positionTop_3fb22", | ||
"spectrum-Field-field": "_spectrum-Field-field_3fb22", | ||
"spectrum-Field--positionSide": "_spectrum-Field--positionSide_3fb22", | ||
"spectrum-Form": "_spectrum-Form_3fb22", | ||
"spectrum-Form--positionSide": "_spectrum-Form--positionSide_3fb22", | ||
"spectrum-Form--positionTop": "_spectrum-Form--positionTop_3fb22", | ||
"spectrum-Form-itemLabel": "_spectrum-Form-itemLabel_3fb22", | ||
"is-disabled": "_is-disabled_3fb22" | ||
}; | ||
// @ts-ignore | ||
var $a4d09ce874af58263db10205c6c322d$var$intlMessages = { | ||
"ar-AE": _babelRuntimeHelpersEsmInteropRequireDefault($d071ce38d07d90292b6c3df54e3d9fab$exports).default, | ||
"bg-BG": _babelRuntimeHelpersEsmInteropRequireDefault($e293d50ff40ef1e299f479abcdf0937f$exports).default, | ||
"cs-CZ": _babelRuntimeHelpersEsmInteropRequireDefault($cd7a3d695f60c229a95564658460233f$exports).default, | ||
"da-DK": _babelRuntimeHelpersEsmInteropRequireDefault($ba6d04a1e3e1e9be41738211489a$exports).default, | ||
"de-DE": _babelRuntimeHelpersEsmInteropRequireDefault($c5f8da166151b638cdb852bd4eedd67$exports).default, | ||
"el-GR": _babelRuntimeHelpersEsmInteropRequireDefault($b8df4ee65138b009af81a6632d37$exports).default, | ||
"en-US": _babelRuntimeHelpersEsmInteropRequireDefault($e01158763064bfb0f4a30318d5571ac4$exports).default, | ||
"es-ES": _babelRuntimeHelpersEsmInteropRequireDefault($be525af0885e8288add0055af80fc1$exports).default, | ||
"et-EE": _babelRuntimeHelpersEsmInteropRequireDefault($f8540c5ccc9de0c18d6ddfb442798d2$exports).default, | ||
"fi-FI": _babelRuntimeHelpersEsmInteropRequireDefault($ee97bc8cfe6ed0ea55ae30b981c2fe5$exports).default, | ||
"fr-FR": _babelRuntimeHelpersEsmInteropRequireDefault($f5933811e41800eae1f5bea09d6d9497$exports).default, | ||
"he-IL": _babelRuntimeHelpersEsmInteropRequireDefault($ae55961b432ff505212d42a383a2dc0a$exports).default, | ||
"hr-HR": _babelRuntimeHelpersEsmInteropRequireDefault($cd2210e52a70bd895f4e02b1$exports).default, | ||
"hu-HU": _babelRuntimeHelpersEsmInteropRequireDefault($ab98b736b2df688226210fff000ec0c0$exports).default, | ||
"it-IT": _babelRuntimeHelpersEsmInteropRequireDefault($ec6ecbe35953fc158f030ce4d9054$exports).default, | ||
"ja-JP": _babelRuntimeHelpersEsmInteropRequireDefault($d6872d0c307203ae85698ca76b330$exports).default, | ||
"ko-KR": _babelRuntimeHelpersEsmInteropRequireDefault($efd81f5e5622df7089190a95735a8a$exports).default, | ||
"lt-LT": _babelRuntimeHelpersEsmInteropRequireDefault($f8f581a0870f61ec0ac73be27f1505b$exports).default, | ||
"lv-LV": _babelRuntimeHelpersEsmInteropRequireDefault($c9c94fded7c6182b9d26b74a72190f$exports).default, | ||
"nb-NO": _babelRuntimeHelpersEsmInteropRequireDefault($f914c0353aee02755109f7bb5bb13a$exports).default, | ||
"nl-NL": _babelRuntimeHelpersEsmInteropRequireDefault($dd96646f560fafcb8bdf73bb030d27b5$exports).default, | ||
"pl-PL": _babelRuntimeHelpersEsmInteropRequireDefault($b738c997e942a38363e7ed8e3cb68b$exports).default, | ||
"pt-BR": _babelRuntimeHelpersEsmInteropRequireDefault($b9c0867d8c38bb72132bb08b8ca7690$exports).default, | ||
"ro-RO": _babelRuntimeHelpersEsmInteropRequireDefault($e3454cfc24d366598f19a73b8d636356$exports).default, | ||
"ru-RU": _babelRuntimeHelpersEsmInteropRequireDefault($c91f305f8bb6c75662c707561913cf$exports).default, | ||
"sk-SK": _babelRuntimeHelpersEsmInteropRequireDefault($bd34bdf786111560f73fe81dc2403f16$exports).default, | ||
"sl-SI": _babelRuntimeHelpersEsmInteropRequireDefault($fbb8e9d2a7ac5661da97beedd331cfe$exports).default, | ||
"sr-SP": _babelRuntimeHelpersEsmInteropRequireDefault($d73ba941baada77b2cb9b6b9f8ecbea$exports).default, | ||
"sv-SE": _babelRuntimeHelpersEsmInteropRequireDefault($e562d84960292f7d443819e247a165$exports).default, | ||
"tr-TR": _babelRuntimeHelpersEsmInteropRequireDefault($faf11825fdfa9cfa96ac2d2b05f398$exports).default, | ||
"uk-UA": _babelRuntimeHelpersEsmInteropRequireDefault($b61672a313b3dc313e647edc22340a14$exports).default, | ||
"zh-CN": _babelRuntimeHelpersEsmInteropRequireDefault($d5e1d89fe88b676751f1a16d441be4c3$exports).default, | ||
"zh-TW": _babelRuntimeHelpersEsmInteropRequireDefault($b4d6a1a30d3fa980eb7aee19602055a$exports).default | ||
"ar-AE": _babelRuntimeHelpersInteropRequireDefault($d071ce38d07d90292b6c3df54e3d9fab$exports).default, | ||
"bg-BG": _babelRuntimeHelpersInteropRequireDefault($e293d50ff40ef1e299f479abcdf0937f$exports).default, | ||
"cs-CZ": _babelRuntimeHelpersInteropRequireDefault($cd7a3d695f60c229a95564658460233f$exports).default, | ||
"da-DK": _babelRuntimeHelpersInteropRequireDefault($ba6d04a1e3e1e9be41738211489a$exports).default, | ||
"de-DE": _babelRuntimeHelpersInteropRequireDefault($c5f8da166151b638cdb852bd4eedd67$exports).default, | ||
"el-GR": _babelRuntimeHelpersInteropRequireDefault($b8df4ee65138b009af81a6632d37$exports).default, | ||
"en-US": _babelRuntimeHelpersInteropRequireDefault($e01158763064bfb0f4a30318d5571ac4$exports).default, | ||
"es-ES": _babelRuntimeHelpersInteropRequireDefault($be525af0885e8288add0055af80fc1$exports).default, | ||
"et-EE": _babelRuntimeHelpersInteropRequireDefault($f8540c5ccc9de0c18d6ddfb442798d2$exports).default, | ||
"fi-FI": _babelRuntimeHelpersInteropRequireDefault($ee97bc8cfe6ed0ea55ae30b981c2fe5$exports).default, | ||
"fr-FR": _babelRuntimeHelpersInteropRequireDefault($f5933811e41800eae1f5bea09d6d9497$exports).default, | ||
"he-IL": _babelRuntimeHelpersInteropRequireDefault($ae55961b432ff505212d42a383a2dc0a$exports).default, | ||
"hr-HR": _babelRuntimeHelpersInteropRequireDefault($cd2210e52a70bd895f4e02b1$exports).default, | ||
"hu-HU": _babelRuntimeHelpersInteropRequireDefault($ab98b736b2df688226210fff000ec0c0$exports).default, | ||
"it-IT": _babelRuntimeHelpersInteropRequireDefault($ec6ecbe35953fc158f030ce4d9054$exports).default, | ||
"ja-JP": _babelRuntimeHelpersInteropRequireDefault($d6872d0c307203ae85698ca76b330$exports).default, | ||
"ko-KR": _babelRuntimeHelpersInteropRequireDefault($efd81f5e5622df7089190a95735a8a$exports).default, | ||
"lt-LT": _babelRuntimeHelpersInteropRequireDefault($f8f581a0870f61ec0ac73be27f1505b$exports).default, | ||
"lv-LV": _babelRuntimeHelpersInteropRequireDefault($c9c94fded7c6182b9d26b74a72190f$exports).default, | ||
"nb-NO": _babelRuntimeHelpersInteropRequireDefault($f914c0353aee02755109f7bb5bb13a$exports).default, | ||
"nl-NL": _babelRuntimeHelpersInteropRequireDefault($dd96646f560fafcb8bdf73bb030d27b5$exports).default, | ||
"pl-PL": _babelRuntimeHelpersInteropRequireDefault($b738c997e942a38363e7ed8e3cb68b$exports).default, | ||
"pt-BR": _babelRuntimeHelpersInteropRequireDefault($b9c0867d8c38bb72132bb08b8ca7690$exports).default, | ||
"ro-RO": _babelRuntimeHelpersInteropRequireDefault($e3454cfc24d366598f19a73b8d636356$exports).default, | ||
"ru-RU": _babelRuntimeHelpersInteropRequireDefault($c91f305f8bb6c75662c707561913cf$exports).default, | ||
"sk-SK": _babelRuntimeHelpersInteropRequireDefault($bd34bdf786111560f73fe81dc2403f16$exports).default, | ||
"sl-SI": _babelRuntimeHelpersInteropRequireDefault($fbb8e9d2a7ac5661da97beedd331cfe$exports).default, | ||
"sr-SP": _babelRuntimeHelpersInteropRequireDefault($d73ba941baada77b2cb9b6b9f8ecbea$exports).default, | ||
"sv-SE": _babelRuntimeHelpersInteropRequireDefault($e562d84960292f7d443819e247a165$exports).default, | ||
"tr-TR": _babelRuntimeHelpersInteropRequireDefault($faf11825fdfa9cfa96ac2d2b05f398$exports).default, | ||
"uk-UA": _babelRuntimeHelpersInteropRequireDefault($b61672a313b3dc313e647edc22340a14$exports).default, | ||
"zh-CN": _babelRuntimeHelpersInteropRequireDefault($d5e1d89fe88b676751f1a16d441be4c3$exports).default, | ||
"zh-TW": _babelRuntimeHelpersInteropRequireDefault($b4d6a1a30d3fa980eb7aee19602055a$exports).default | ||
}; | ||
@@ -198,3 +199,3 @@ var $ce2ba76b00945bd966a5f95584cdaaee$$interop$default = $parcel$interopDefault($ce2ba76b00945bd966a5f95584cdaaee$exports); | ||
ElementType = _props$elementType === void 0 ? 'label' : _props$elementType, | ||
otherProps = _babelRuntimeHelpersEsmObjectWithoutProperties(_props, ["children", "labelPosition", "labelAlign", "isRequired", "necessityIndicator", "htmlFor", "for", "elementType"]); | ||
otherProps = _babelRuntimeHelpersObjectWithoutProperties(_props, ["children", "labelPosition", "labelAlign", "isRequired", "necessityIndicator", "htmlFor", "for", "elementType"]); | ||
@@ -209,3 +210,3 @@ var domRef = useDOMRef(ref); | ||
var icon = _react.createElement(_spectrumIconsUiAsterisk, { | ||
var icon = /*#__PURE__*/_react.createElement(_spectrumIconsUiAsterisk, { | ||
UNSAFE_className: classNames($ce2ba76b00945bd966a5f95584cdaaee$$interop$default, 'spectrum-FieldLabel-requiredIcon'), | ||
@@ -219,9 +220,10 @@ size: "S" | ||
}, styleProps.className); | ||
return _react.createElement(ElementType, _babelRuntimeHelpersEsmExtends({}, filterDOMProps(otherProps), styleProps, { | ||
ref: domRef, | ||
className: labelClassNames, | ||
htmlFor: ElementType === 'label' ? labelFor || htmlFor : undefined | ||
}), children, necessityIndicator && " \u200B", necessityIndicator === 'label' && _react.createElement("span", { | ||
"aria-hidden": isRequired | ||
}, necessityLabel), necessityIndicator === 'icon' && isRequired && icon); | ||
return (/*#__PURE__*/_react.createElement(ElementType, _babelRuntimeHelpersExtends({}, filterDOMProps(otherProps), styleProps, { | ||
ref: domRef, | ||
className: labelClassNames, | ||
htmlFor: ElementType === 'label' ? labelFor || htmlFor : undefined | ||
}), children, necessityIndicator && " \u200B", necessityIndicator === 'label' && /*#__PURE__*/_react.createElement("span", { | ||
"aria-hidden": isRequired | ||
}, necessityLabel), necessityIndicator === 'icon' && isRequired && icon) | ||
); | ||
} | ||
@@ -228,0 +230,0 @@ |
@@ -1,2 +0,2 @@ | ||
import "../../textfield/dist/main.css"; | ||
import "./main.css"; | ||
import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends"; | ||
@@ -117,16 +117,17 @@ import _babelRuntimeHelpersEsmObjectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; | ||
$c356388cc3519f2d617e9a5ee79a$exports = { | ||
"spectrum-FieldLabel": "_spectrum-FieldLabel_309d8", | ||
"spectrum-FieldLabel--positionSide": "_spectrum-FieldLabel--positionSide_309d8", | ||
"spectrum-FieldLabel-requiredIcon": "_spectrum-FieldLabel-requiredIcon_309d8", | ||
"spectrum-FieldLabel--alignEnd": "_spectrum-FieldLabel--alignEnd_309d8", | ||
"spectrum-Field": "_spectrum-Field_309d8", | ||
"spectrum-Field--positionTop": "_spectrum-Field--positionTop_309d8", | ||
"spectrum-Field-field": "_spectrum-Field-field_309d8", | ||
"spectrum-Field--positionSide": "_spectrum-Field--positionSide_309d8", | ||
"spectrum-Form": "_spectrum-Form_309d8", | ||
"spectrum-Form--positionSide": "_spectrum-Form--positionSide_309d8", | ||
"spectrum-Form--positionTop": "_spectrum-Form--positionTop_309d8", | ||
"spectrum-Form-itemLabel": "_spectrum-Form-itemLabel_309d8", | ||
"is-disabled": "_is-disabled_309d8" | ||
"spectrum-FieldLabel": "_spectrum-FieldLabel_3fb22", | ||
"spectrum-FieldLabel--positionSide": "_spectrum-FieldLabel--positionSide_3fb22", | ||
"spectrum-FieldLabel-requiredIcon": "_spectrum-FieldLabel-requiredIcon_3fb22", | ||
"spectrum-FieldLabel--alignEnd": "_spectrum-FieldLabel--alignEnd_3fb22", | ||
"spectrum-Field": "_spectrum-Field_3fb22", | ||
"spectrum-Field--positionTop": "_spectrum-Field--positionTop_3fb22", | ||
"spectrum-Field-field": "_spectrum-Field-field_3fb22", | ||
"spectrum-Field--positionSide": "_spectrum-Field--positionSide_3fb22", | ||
"spectrum-Form": "_spectrum-Form_3fb22", | ||
"spectrum-Form--positionSide": "_spectrum-Form--positionSide_3fb22", | ||
"spectrum-Form--positionTop": "_spectrum-Form--positionTop_3fb22", | ||
"spectrum-Form-itemLabel": "_spectrum-Form-itemLabel_3fb22", | ||
"is-disabled": "_is-disabled_3fb22" | ||
}; | ||
// @ts-ignore | ||
const $beb551b9ed5ad7940b3cac804bf172c6$var$intlMessages = { | ||
@@ -191,3 +192,3 @@ "ar-AE": _babelRuntimeHelpersEsmInteropRequireDefault($a63c56191af40ea22f66b7c61776fde$exports).default, | ||
let icon = _react.createElement(_spectrumIconsUiAsterisk, { | ||
let icon = /*#__PURE__*/_react.createElement(_spectrumIconsUiAsterisk, { | ||
UNSAFE_className: classNames($c356388cc3519f2d617e9a5ee79a$$interop$default, 'spectrum-FieldLabel-requiredIcon'), | ||
@@ -201,11 +202,12 @@ size: "S" | ||
}, styleProps.className); | ||
return _react.createElement(ElementType, _babelRuntimeHelpersEsmExtends({}, filterDOMProps(otherProps), styleProps, { | ||
ref: domRef, | ||
className: labelClassNames, | ||
htmlFor: ElementType === 'label' ? labelFor || htmlFor : undefined | ||
}), children, necessityIndicator && ' \u200b', necessityIndicator === 'label' && _react.createElement("span", { | ||
"aria-hidden": isRequired | ||
}, necessityLabel), necessityIndicator === 'icon' && isRequired && icon); | ||
return (/*#__PURE__*/_react.createElement(ElementType, _babelRuntimeHelpersEsmExtends({}, filterDOMProps(otherProps), styleProps, { | ||
ref: domRef, | ||
className: labelClassNames, | ||
htmlFor: ElementType === 'label' ? labelFor || htmlFor : undefined | ||
}), children, necessityIndicator && ' \u200b', necessityIndicator === 'label' && /*#__PURE__*/_react.createElement("span", { | ||
"aria-hidden": isRequired | ||
}, necessityLabel), necessityIndicator === 'icon' && isRequired && icon) | ||
); | ||
} | ||
export let Label = _react.forwardRef($beb551b9ed5ad7940b3cac804bf172c6$var$Label); |
{ | ||
"name": "@react-spectrum/label", | ||
"version": "3.0.0-rc.1", | ||
"version": "3.0.0-rc.2", | ||
"description": "Spectrum UI components in React", | ||
@@ -32,17 +32,16 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/i18n": "^3.0.0-rc.1", | ||
"@react-aria/label": "^3.0.0-rc.1", | ||
"@react-aria/utils": "^3.0.0-rc.1", | ||
"@react-spectrum/provider": "^3.0.0-rc.1", | ||
"@react-spectrum/utils": "^3.0.0-rc.1", | ||
"@react-types/label": "^3.0.0-rc.1", | ||
"@react-types/shared": "^3.0.0-rc.1", | ||
"@spectrum-icons/ui": "^3.0.0-rc.1" | ||
"@react-aria/i18n": "^3.0.0-rc.2", | ||
"@react-aria/label": "^3.0.0-rc.2", | ||
"@react-aria/utils": "^3.0.0-rc.2", | ||
"@react-spectrum/utils": "^3.0.0-rc.2", | ||
"@react-types/label": "^3.0.0-rc.2", | ||
"@react-types/shared": "^3.0.0-rc.2", | ||
"@spectrum-icons/ui": "^3.0.0-rc.2" | ||
}, | ||
"devDependencies": { | ||
"@adobe/spectrum-css-temp": "^3.0.0-alpha.2" | ||
"@adobe/spectrum-css-temp": "^3.0.0-alpha.1" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0", | ||
"react-dom": "^16.8.0" | ||
"@react-spectrum/provider": "^3.0.0-rc.1", | ||
"react": "^16.8.0" | ||
}, | ||
@@ -52,3 +51,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "9332df14cb224daa16524acb1174e5921e136528" | ||
"gitHead": "207e6ee9076905c96638a7f81a367758872e1410" | ||
} |
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
50610
10
8
534
+ Addedreact@18.3.119.0.0-rc-fb9a90fa48-20240614(transitive)
+ Addedreact-dom@18.3.119.0.0-rc-fb9a90fa48-20240614(transitive)
+ Addedscheduler@0.23.20.25.0-rc-fb9a90fa48-20240614(transitive)
- Removed@react-spectrum/provider@^3.0.0-rc.1
- Removedreact-dom@16.14.0(transitive)
- Removedscheduler@0.19.1(transitive)
Updated@react-aria/i18n@^3.0.0-rc.2