@react-spectrum/label
Advanced tools
Comparing version 3.0.0-nightly-12920fc91-241104 to 3.0.0-nightly-19bc0b845-241211
var $2d1b5114e5b358b6$exports = require("./HelpText.main.js"); | ||
var $38a9afbd39356629$exports = require("./Label.main.js"); | ||
require("./vars.d514c1fb.css"); | ||
require("./vars.6dc4ca00.css"); | ||
var $eb2fc0ee655eff6b$exports = require("./fieldlabel_vars_css.main.js"); | ||
@@ -39,3 +39,3 @@ var $bW4vJ$reactspectrumutils = require("@react-spectrum/utils"); | ||
function $0e5410371a445d59$var$Field(props, ref) { | ||
const $0e5410371a445d59$export$a455218a85c89869 = /*#__PURE__*/ (0, ($parcel$interopDefault($bW4vJ$react))).forwardRef(function Field(props, ref) { | ||
let formProps = (0, $bW4vJ$reactspectrumform.useFormProps)(props); | ||
@@ -115,6 +115,5 @@ let isInForm = formProps !== props; | ||
}, labelAndContextualHelp, renderChildren()); | ||
} | ||
let $0e5410371a445d59$export$a455218a85c89869 = /*#__PURE__*/ (0, ($parcel$interopDefault($bW4vJ$react))).forwardRef($0e5410371a445d59$var$Field); | ||
}); | ||
//# sourceMappingURL=Field.main.js.map |
import {HelpText as $8e50676506611310$export$a67c0bc59081311a} from "./HelpText.module.js"; | ||
import {Label as $00af9ba397a66f43$export$b04be29aa201d4f5} from "./Label.module.js"; | ||
import "./vars.d514c1fb.css"; | ||
import "./vars.6dc4ca00.css"; | ||
import $c6ZG4$fieldlabel_vars_cssmodulejs from "./fieldlabel_vars_css.module.js"; | ||
@@ -33,3 +33,3 @@ import {useStyleProps as $c6ZG4$useStyleProps, classNames as $c6ZG4$classNames, SlotProvider as $c6ZG4$SlotProvider} from "@react-spectrum/utils"; | ||
function $b7ca5b4454a2009d$var$Field(props, ref) { | ||
const $b7ca5b4454a2009d$export$a455218a85c89869 = /*#__PURE__*/ (0, $c6ZG4$react).forwardRef(function Field(props, ref) { | ||
let formProps = (0, $c6ZG4$useFormProps)(props); | ||
@@ -109,4 +109,3 @@ let isInForm = formProps !== props; | ||
}, labelAndContextualHelp, renderChildren()); | ||
} | ||
let $b7ca5b4454a2009d$export$a455218a85c89869 = /*#__PURE__*/ (0, $c6ZG4$react).forwardRef($b7ca5b4454a2009d$var$Field); | ||
}); | ||
@@ -113,0 +112,0 @@ |
@@ -31,3 +31,3 @@ require("./vars.69a32de8.css"); | ||
function $2d1b5114e5b358b6$var$HelpText(props, ref) { | ||
const $2d1b5114e5b358b6$export$a67c0bc59081311a = /*#__PURE__*/ (0, ($parcel$interopDefault($7UMJk$react))).forwardRef(function HelpText(props, ref) { | ||
let { description: description, errorMessage: errorMessage, validationState: validationState, isInvalid: isInvalid, isDisabled: isDisabled, showErrorIcon: showErrorIcon, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = props; | ||
@@ -52,8 +52,5 @@ let domRef = (0, $7UMJk$reactspectrumutils.useDOMRef)(ref); | ||
}, description)); | ||
} | ||
/** | ||
* Help text provides either an informative description or an error message that gives more context about what a user needs to input. It's commonly used in forms. | ||
*/ const $2d1b5114e5b358b6$export$a67c0bc59081311a = /*#__PURE__*/ (0, ($parcel$interopDefault($7UMJk$react))).forwardRef($2d1b5114e5b358b6$var$HelpText); | ||
}); | ||
//# sourceMappingURL=HelpText.main.js.map |
@@ -25,3 +25,3 @@ import "./vars.69a32de8.css"; | ||
function $8e50676506611310$var$HelpText(props, ref) { | ||
const $8e50676506611310$export$a67c0bc59081311a = /*#__PURE__*/ (0, $huWmf$react).forwardRef(function HelpText(props, ref) { | ||
let { description: description, errorMessage: errorMessage, validationState: validationState, isInvalid: isInvalid, isDisabled: isDisabled, showErrorIcon: showErrorIcon, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = props; | ||
@@ -46,6 +46,3 @@ let domRef = (0, $huWmf$useDOMRef)(ref); | ||
}, description)); | ||
} | ||
/** | ||
* Help text provides either an informative description or an error message that gives more context about what a user needs to input. It's commonly used in forms. | ||
*/ const $8e50676506611310$export$a67c0bc59081311a = /*#__PURE__*/ (0, $huWmf$react).forwardRef($8e50676506611310$var$HelpText); | ||
}); | ||
@@ -52,0 +49,0 @@ |
var $503911526ad50850$exports = require("./intlStrings.main.js"); | ||
require("./vars.d514c1fb.css"); | ||
require("./vars.6dc4ca00.css"); | ||
var $eb2fc0ee655eff6b$exports = require("./fieldlabel_vars_css.main.js"); | ||
@@ -39,3 +39,3 @@ var $cF5V3$spectrumiconsuiAsterisk = require("@spectrum-icons/ui/Asterisk"); | ||
function $38a9afbd39356629$var$Label(props, ref) { | ||
const $38a9afbd39356629$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, ($parcel$interopDefault($cF5V3$react))).forwardRef(function Label(props, ref) { | ||
props = (0, $cF5V3$reactspectrumprovider.useProviderProps)(props); | ||
@@ -65,6 +65,5 @@ let { children: children, labelPosition: labelPosition = 'top', labelAlign: labelAlign = labelPosition === 'side' ? 'start' : null, isRequired: isRequired, necessityIndicator: necessityIndicator = isRequired != null ? 'icon' : null, includeNecessityIndicatorInAccessibilityName: includeNecessityIndicatorInAccessibilityName = false, htmlFor: htmlFor, for: labelFor, elementType: ElementType = 'label', onClick: onClick, ...otherProps } = props; | ||
}, necessityLabel), necessityIndicator === 'icon' && isRequired && icon); | ||
} | ||
let $38a9afbd39356629$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, ($parcel$interopDefault($cF5V3$react))).forwardRef($38a9afbd39356629$var$Label); | ||
}); | ||
//# sourceMappingURL=Label.main.js.map |
import $fTVpI$intlStringsmodulejs from "./intlStrings.module.js"; | ||
import "./vars.d514c1fb.css"; | ||
import "./vars.6dc4ca00.css"; | ||
import $fTVpI$fieldlabel_vars_cssmodulejs from "./fieldlabel_vars_css.module.js"; | ||
@@ -33,3 +33,3 @@ import $fTVpI$spectrumiconsuiAsterisk from "@spectrum-icons/ui/Asterisk"; | ||
function $00af9ba397a66f43$var$Label(props, ref) { | ||
const $00af9ba397a66f43$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, $fTVpI$react).forwardRef(function Label(props, ref) { | ||
props = (0, $fTVpI$useProviderProps)(props); | ||
@@ -59,4 +59,3 @@ let { children: children, labelPosition: labelPosition = 'top', labelAlign: labelAlign = labelPosition === 'side' ? 'start' : null, isRequired: isRequired, necessityIndicator: necessityIndicator = isRequired != null ? 'icon' : null, includeNecessityIndicatorInAccessibilityName: includeNecessityIndicatorInAccessibilityName = false, htmlFor: htmlFor, for: labelFor, elementType: ElementType = 'label', onClick: onClick, ...otherProps } = props; | ||
}, necessityLabel), necessityIndicator === 'icon' && isRequired && icon); | ||
} | ||
let $00af9ba397a66f43$export$b04be29aa201d4f5 = /*#__PURE__*/ (0, $fTVpI$react).forwardRef($00af9ba397a66f43$var$Label); | ||
}); | ||
@@ -63,0 +62,0 @@ |
@@ -16,5 +16,5 @@ import { SpectrumFieldValidation, SpectrumHelpTextProps, StyleProps, Validation, DOMRefValue } from "@react-types/shared"; | ||
export const HelpText: React.ForwardRefExoticComponent<HelpTextProps & React.RefAttributes<DOMRefValue<HTMLDivElement>>>; | ||
export let Label: React.ForwardRefExoticComponent<SpectrumLabelProps & React.RefAttributes<DOMRefValue<HTMLLabelElement>>>; | ||
export let Field: React.ForwardRefExoticComponent<SpectrumFieldProps & React.RefAttributes<HTMLElement>>; | ||
export const Label: React.ForwardRefExoticComponent<SpectrumLabelProps & React.RefAttributes<DOMRefValue<HTMLLabelElement>>>; | ||
export const Field: React.ForwardRefExoticComponent<SpectrumFieldProps & React.RefAttributes<HTMLElement>>; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@react-spectrum/label", | ||
"version": "3.0.0-nightly-12920fc91-241104", | ||
"version": "3.0.0-nightly-19bc0b845-241211", | ||
"description": "Spectrum UI components in React", | ||
@@ -39,10 +39,10 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/i18n": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-aria/utils": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-spectrum/form": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-spectrum/layout": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-spectrum/utils": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-types/label": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-types/shared": "^3.0.0-nightly-12920fc91-241104", | ||
"@spectrum-icons/ui": "^3.0.0-nightly-12920fc91-241104", | ||
"@react-aria/i18n": "^3.0.0-nightly-19bc0b845-241211", | ||
"@react-aria/utils": "^3.0.0-nightly-19bc0b845-241211", | ||
"@react-spectrum/form": "^3.0.0-nightly-19bc0b845-241211", | ||
"@react-spectrum/layout": "^3.0.0-nightly-19bc0b845-241211", | ||
"@react-spectrum/utils": "^3.0.0-nightly-19bc0b845-241211", | ||
"@react-types/label": "^3.0.0-nightly-19bc0b845-241211", | ||
"@react-types/shared": "^3.0.0-nightly-19bc0b845-241211", | ||
"@spectrum-icons/ui": "^3.0.0-nightly-19bc0b845-241211", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -54,4 +54,4 @@ }, | ||
"peerDependencies": { | ||
"@react-spectrum/provider": "^3.0.0-nightly-12920fc91-241104", | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"@react-spectrum/provider": "^3.0.0-nightly-19bc0b845-241211", | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
@@ -61,3 +61,3 @@ "publishConfig": { | ||
}, | ||
"stableVersion": "3.16.9" | ||
"stableVersion": "3.16.10" | ||
} |
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
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
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
218787
2565