@react-spectrum/label 3.9.1-nightly.3593 → 3.9.1-nightly.3596
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/dist/main.js +54 -68
- package/dist/main.js.map +1 -1
- package/dist/module.js +56 -70
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/Field.tsx +74 -91
package/dist/main.js
CHANGED
@@ -463,78 +463,64 @@ function $0e5410371a445d59$var$Field(props, ref) {
|
|
463
463
|
} , ...otherProps } = props;
|
464
464
|
let { styleProps: styleProps } = $fXO85$reactspectrumutils.useStyleProps(otherProps);
|
465
465
|
let hasHelpText = !!description || errorMessage && validationState === 'invalid';
|
466
|
-
let mergedRefs = $0e5410371a445d59$var$useMergeRefs(children.ref, ref);
|
467
466
|
let contextualHelpId = $fXO85$reactariautils.useId();
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
'aria-labelledby': (labelProps === null || labelProps === void 0 ? void 0 : labelProps.id) ? `${labelProps.id} ${contextualHelpId}` : undefined
|
510
|
-
}
|
467
|
+
let labelWrapperClass = $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-Field', {
|
468
|
+
'spectrum-Field--positionTop': labelPosition === 'top',
|
469
|
+
'spectrum-Field--positionSide': labelPosition === 'side',
|
470
|
+
'spectrum-Field--alignEnd': labelAlign === 'end',
|
471
|
+
'spectrum-Field--hasContextualHelp': !!props.contextualHelp
|
472
|
+
}, styleProps.className, wrapperClassName);
|
473
|
+
children = /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).cloneElement(children, $fXO85$reactariautils.mergeProps(children.props, {
|
474
|
+
className: $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-Field-field')
|
475
|
+
}));
|
476
|
+
let renderHelpText = ()=>/*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement($2d1b5114e5b358b6$export$a67c0bc59081311a, {
|
477
|
+
descriptionProps: descriptionProps,
|
478
|
+
errorMessageProps: errorMessageProps,
|
479
|
+
description: description,
|
480
|
+
errorMessage: errorMessage,
|
481
|
+
validationState: validationState,
|
482
|
+
isDisabled: isDisabled,
|
483
|
+
showErrorIcon: showErrorIcon,
|
484
|
+
gridArea: "helpText"
|
485
|
+
})
|
486
|
+
;
|
487
|
+
let renderChildren = ()=>{
|
488
|
+
if (labelPosition === 'side') return(/*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement($fXO85$reactspectrumlayout.Flex, {
|
489
|
+
direction: "column",
|
490
|
+
UNSAFE_className: $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-Field-wrapper')
|
491
|
+
}, children, hasHelpText && renderHelpText()));
|
492
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement(($parcel$interopDefault($fXO85$react)).Fragment, null, children, hasHelpText && renderHelpText()));
|
493
|
+
};
|
494
|
+
let labelAndContextualHelp = /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement(($parcel$interopDefault($fXO85$react)).Fragment, null, label && /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement($38a9afbd39356629$export$b04be29aa201d4f5, {
|
495
|
+
...labelProps,
|
496
|
+
labelPosition: labelPosition,
|
497
|
+
labelAlign: labelAlign,
|
498
|
+
isRequired: isRequired,
|
499
|
+
necessityIndicator: necessityIndicator,
|
500
|
+
includeNecessityIndicatorInAccessibilityName: includeNecessityIndicatorInAccessibilityName,
|
501
|
+
elementType: elementType
|
502
|
+
}, label), label && contextualHelp && /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement($fXO85$reactspectrumutils.SlotProvider, {
|
503
|
+
slots: {
|
504
|
+
actionButton: {
|
505
|
+
UNSAFE_className: $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-Field-contextualHelp'),
|
506
|
+
id: contextualHelpId,
|
507
|
+
'aria-labelledby': (labelProps === null || labelProps === void 0 ? void 0 : labelProps.id) ? `${labelProps.id} ${contextualHelpId}` : undefined
|
511
508
|
}
|
512
|
-
}
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
...wrapperProps,
|
523
|
-
ref: ref,
|
524
|
-
className: labelWrapperClass
|
525
|
-
}, labelAndContextualHelp, renderChildren()));
|
526
|
-
}
|
527
|
-
return(/*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).cloneElement(children, $fXO85$reactariautils.mergeProps(children.props, {
|
509
|
+
}
|
510
|
+
}, contextualHelp));
|
511
|
+
// Need to add an extra wrapper for the label and contextual help if labelPosition is side,
|
512
|
+
// so that the table layout works inside forms.
|
513
|
+
if (isInForm && labelPosition === 'side' && label && contextualHelp) labelAndContextualHelp = /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement("div", {
|
514
|
+
className: $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-Field-labelCell')
|
515
|
+
}, /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement("div", {
|
516
|
+
className: $fXO85$reactspectrumutils.classNames((/*@__PURE__*/$parcel$interopDefault($eb2fc0ee655eff6b$exports)), 'spectrum-Field-labelWrapper')
|
517
|
+
}, labelAndContextualHelp));
|
518
|
+
return(/*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).createElement("div", {
|
528
519
|
...styleProps,
|
529
520
|
...wrapperProps,
|
530
|
-
ref:
|
531
|
-
|
532
|
-
}
|
533
|
-
function $0e5410371a445d59$var$useMergeRefs(...refs) {
|
534
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
535
|
-
return $fXO85$react.useCallback($fXO85$reactariautils.mergeRefs(...refs), [
|
536
|
-
...refs
|
537
|
-
]);
|
521
|
+
ref: ref,
|
522
|
+
className: labelWrapperClass
|
523
|
+
}, labelAndContextualHelp, renderChildren()));
|
538
524
|
}
|
539
525
|
let $0e5410371a445d59$export$a455218a85c89869 = /*#__PURE__*/ ($parcel$interopDefault($fXO85$react)).forwardRef($0e5410371a445d59$var$Field);
|
540
526
|
|
package/dist/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,GAAmC;AACnC,GAAkD;AAClD,GAAwC;AACxC,GAA4C;AAC5C,GAA6B;AAC7B,GAA6C;AAL7C,yCAAmC,GAAG,CAA0B;AAChE,yCAAkD,GAAG,CAAyC;AAC9F,yCAAwC,GAAG,CAA+B;AAC1E,sCAA4C,GAAG,CAAmC;AAClF,yCAA6B,GAAG,CAAoB;AACpD,yCAA6C,GAAG,CAAoC;;;SDoB3E,8BAAQ,CAAC,KAAoB,EAAE,GAA2B,EAAE,CAAC;IACpE,GAAG,CAAC,CAAC,cACH,WAAW,iBACX,YAAY,oBACZ,eAAe,eACf,UAAU,kBACV,aAAa,qBACb,gBAAgB,sBAChB,iBAAiB,EACnB,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,MAAM,GAAG,mCAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,cAAc,GA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AI,cAAc,EACjE,sBAAsB,sEACnB,CAAG;YAAC,SAAS,EAAE,oCAAU,CAAC,gEAAW,EAAE,CAA0B;8EAC/D,CAAG;YAAC,SAAS,EAAE,oCAAU,CAAC,gEAAW,EAAE,CAA6B;WAClE,sBAAsB;QAM/B,MAAM,oEACH,CAAG;eACE,UAAU;eACV,YAAY;YAChB,GAAG,EAAE,GAAG;YACR,SAAS,EAAE,iBAAiB;WAC3B,sBAAsB,EACtB,cAAc;IAGrB,CAAC;IAED,MAAM,eAAC,sCAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,gCAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;WAC3D,UAAU;WACV,YAAY;QACf,GAAG,EAAE,UAAU;IACjB,CAAC;AACH,CAAC;SAEQ,kCAAY,IAAO,IAAI,EAAqD,CAAC;IACpF,EAAuD,AAAvD,qDAAuD;IACvD,MAAM,CAAC,wBAAW,CAChB,+BAAS,IAAI,IAAI,GACjB,CAAC;WAAG,IAAI;IAAA,CAAC;AAEb,CAAC;AAED,GAAG,CAAC,yCAAM,iBAAG,sCAAK,CAAC,UAAU,CAAC,2BAAK","sources":["packages/@react-spectrum/label/src/index.ts","packages/@react-spectrum/label/src/Field.tsx","packages/@react-spectrum/label/src/HelpText.tsx","packages/@adobe/spectrum-css-temp/components/helptext/vars.css","packages/@react-spectrum/label/src/Label.tsx","packages/@react-spectrum/label/intl/*.js","packages/@react-spectrum/label/intl/ar-AE.json","packages/@react-spectrum/label/intl/bg-BG.json","packages/@react-spectrum/label/intl/cs-CZ.json","packages/@react-spectrum/label/intl/da-DK.json","packages/@react-spectrum/label/intl/de-DE.json","packages/@react-spectrum/label/intl/el-GR.json","packages/@react-spectrum/label/intl/en-US.json","packages/@react-spectrum/label/intl/es-ES.json","packages/@react-spectrum/label/intl/et-EE.json","packages/@react-spectrum/label/intl/fi-FI.json","packages/@react-spectrum/label/intl/fr-FR.json","packages/@react-spectrum/label/intl/he-IL.json","packages/@react-spectrum/label/intl/hr-HR.json","packages/@react-spectrum/label/intl/hu-HU.json","packages/@react-spectrum/label/intl/it-IT.json","packages/@react-spectrum/label/intl/ja-JP.json","packages/@react-spectrum/label/intl/ko-KR.json","packages/@react-spectrum/label/intl/lt-LT.json","packages/@react-spectrum/label/intl/lv-LV.json","packages/@react-spectrum/label/intl/nb-NO.json","packages/@react-spectrum/label/intl/nl-NL.json","packages/@react-spectrum/label/intl/pl-PL.json","packages/@react-spectrum/label/intl/pt-BR.json","packages/@react-spectrum/label/intl/pt-PT.json","packages/@react-spectrum/label/intl/ro-RO.json","packages/@react-spectrum/label/intl/ru-RU.json","packages/@react-spectrum/label/intl/sk-SK.json","packages/@react-spectrum/label/intl/sl-SI.json","packages/@react-spectrum/label/intl/sr-SP.json","packages/@react-spectrum/label/intl/sv-SE.json","packages/@react-spectrum/label/intl/tr-TR.json","packages/@react-spectrum/label/intl/uk-UA.json","packages/@react-spectrum/label/intl/zh-CN.json","packages/@react-spectrum/label/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Field} from './Field';\nexport {Label} from './Label';\nexport {HelpText} from './HelpText';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, SlotProvider, useStyleProps} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport {HelpText} from './HelpText';\nimport {Label} from './Label';\nimport {LabelPosition} from '@react-types/shared';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {mergeProps, mergeRefs, useId} from '@react-aria/utils';\nimport React, {ForwardedRef, ReactElement, RefObject, useCallback} from 'react';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport {useFormProps} from '@react-spectrum/form';\n\nfunction Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {\n let formProps = useFormProps(props);\n let isInForm = formProps !== props;\n props = formProps;\n let {\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n isRequired,\n necessityIndicator,\n includeNecessityIndicatorInAccessibilityName,\n validationState,\n description,\n errorMessage,\n isDisabled,\n showErrorIcon,\n contextualHelp,\n children,\n labelProps,\n // Not every component that uses <Field> supports help text.\n descriptionProps = {},\n errorMessageProps = {},\n elementType,\n wrapperClassName,\n wrapperProps = {},\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n let mergedRefs = useMergeRefs((children as ReactElement & {ref: RefObject<HTMLElement>}).ref, ref);\n let contextualHelpId = useId();\n\n if (label || hasHelpText) {\n let labelWrapperClass = classNames(\n labelStyles,\n 'spectrum-Field',\n {\n 'spectrum-Field--positionTop': labelPosition === 'top',\n 'spectrum-Field--positionSide': labelPosition === 'side',\n 'spectrum-Field--alignEnd': labelAlign === 'end',\n 'spectrum-Field--hasContextualHelp': !!props.contextualHelp\n },\n styleProps.className,\n wrapperClassName\n );\n\n children = React.cloneElement(children, mergeProps(children.props, {\n className: classNames(\n labelStyles,\n 'spectrum-Field-field'\n )\n }));\n\n let renderHelpText = () => (\n <HelpText\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n description={description}\n errorMessage={errorMessage}\n validationState={validationState}\n isDisabled={isDisabled}\n showErrorIcon={showErrorIcon}\n gridArea=\"helpText\" />\n );\n\n let renderChildren = () => {\n if (labelPosition === 'side') {\n return (\n <Flex direction=\"column\" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>\n {children}\n {hasHelpText && renderHelpText()}\n </Flex>\n );\n }\n\n return (\n <>\n {children}\n {hasHelpText && renderHelpText()}\n </>\n );\n };\n\n let labelAndContextualHelp = (\n <>\n {label && (\n <Label\n {...labelProps}\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n isRequired={isRequired}\n necessityIndicator={necessityIndicator}\n includeNecessityIndicatorInAccessibilityName={includeNecessityIndicatorInAccessibilityName}\n elementType={elementType}>\n {label}\n </Label>\n )}\n {label && contextualHelp &&\n <SlotProvider\n slots={{\n actionButton: {\n UNSAFE_className: classNames(labelStyles, 'spectrum-Field-contextualHelp'),\n id: contextualHelpId,\n 'aria-labelledby': labelProps?.id ? `${labelProps.id} ${contextualHelpId}` : undefined\n }\n }}>\n {contextualHelp}\n </SlotProvider>\n }\n </>\n );\n\n // Need to add an extra wrapper for the label and contextual help if labelPosition is side,\n // so that the table layout works inside forms.\n if (isInForm && labelPosition === 'side' && label && contextualHelp) {\n labelAndContextualHelp = (\n <div className={classNames(labelStyles, 'spectrum-Field-labelCell')}>\n <div className={classNames(labelStyles, 'spectrum-Field-labelWrapper')}>\n {labelAndContextualHelp}\n </div>\n </div>\n );\n }\n\n return (\n <div\n {...styleProps}\n {...wrapperProps}\n ref={ref as RefObject<HTMLDivElement>}\n className={labelWrapperClass}>\n {labelAndContextualHelp}\n {renderChildren()}\n </div>\n );\n }\n\n return React.cloneElement(children, mergeProps(children.props, {\n ...styleProps,\n ...wrapperProps,\n ref: mergedRefs\n }));\n}\n\nfunction useMergeRefs<T>(...refs: ForwardedRef<T>[]): (instance: (T | null)) => void {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useCallback(\n mergeRefs(...refs) as (instance: (T | null)) => void,\n [...refs]\n );\n}\n\nlet _Field = React.forwardRef(Field);\nexport {_Field as Field};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, SpectrumHelpTextProps, StyleProps} from '@react-types/shared';\nimport React, {HTMLAttributes} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/helptext/vars.css';\n\ninterface HelpTextProps extends SpectrumHelpTextProps, StyleProps {\n /** Props for the help text description element. */\n descriptionProps?: HTMLAttributes<HTMLElement>,\n /** Props for the help text error message element. */\n errorMessageProps?: HTMLAttributes<HTMLElement>\n}\n\nfunction HelpText(props: HelpTextProps, ref: DOMRef<HTMLDivElement>) {\n let {\n description,\n errorMessage,\n validationState,\n isDisabled,\n showErrorIcon,\n descriptionProps,\n errorMessageProps\n } = props;\n let domRef = useDOMRef(ref);\n let isErrorMessage = errorMessage && validationState === 'invalid';\n let {styleProps} = useStyleProps(props);\n\n return (\n <div\n {...styleProps}\n className={classNames(\n styles,\n 'spectrum-HelpText',\n `spectrum-HelpText--${isErrorMessage ? 'negative' : 'neutral'}`,\n {'is-disabled': isDisabled},\n styleProps.className\n )}\n ref={domRef}>\n {isErrorMessage ? (\n <>\n {showErrorIcon && <AlertMedium UNSAFE_className={classNames(styles, 'spectrum-HelpText-validationIcon')} />}\n <div {...errorMessageProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {errorMessage}\n </div>\n </>\n ) : (\n <div {...descriptionProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {description}\n </div>\n )}\n </div>\n );\n}\n\n/**\n * 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.\n */\nconst _HelpText = React.forwardRef(HelpText);\nexport {_HelpText as HelpText};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport Asterisk from '@spectrum-icons/ui/Asterisk';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React from 'react';\nimport {SpectrumLabelProps} from '@react-types/label';\nimport styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Label(props: SpectrumLabelProps, ref: DOMRef<HTMLLabelElement>) {\n props = useProviderProps(props);\n let {\n children,\n labelPosition = 'top',\n labelAlign = labelPosition === 'side' ? 'start' : null,\n isRequired,\n necessityIndicator = isRequired != null ? 'icon' : null,\n includeNecessityIndicatorInAccessibilityName = false,\n htmlFor,\n for: labelFor,\n elementType: ElementType = 'label',\n onClick,\n ...otherProps\n } = props;\n\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');\n let icon = (\n <Asterisk\n UNSAFE_className={classNames(styles, 'spectrum-FieldLabel-requiredIcon')}\n aria-label={includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined} />\n );\n\n let labelClassNames = classNames(\n styles,\n 'spectrum-FieldLabel',\n {\n 'spectrum-FieldLabel--positionSide': labelPosition === 'side',\n 'spectrum-FieldLabel--alignEnd': labelAlign === 'end'\n },\n styleProps.className\n );\n\n return (\n <ElementType\n {...filterDOMProps(otherProps)}\n {...styleProps}\n onClick={onClick}\n ref={domRef}\n className={labelClassNames}\n htmlFor={ElementType === 'label' ? labelFor || htmlFor : undefined}>\n {children}\n {(necessityIndicator === 'label' || (necessityIndicator === 'icon' && isRequired)) && ' \\u200b'}\n {/* necessityLabel is hidden to screen readers if the field is required because\n * aria-required is set on the field in that case. That will already be announced,\n * so no need to duplicate it here. If optional, we do want it to be announced here. */}\n {necessityIndicator === 'label' && <span aria-hidden={!includeNecessityIndicatorInAccessibilityName ? isRequired : undefined}>{necessityLabel}</span>}\n {necessityIndicator === 'icon' && isRequired && icon}\n </ElementType>\n );\n}\n\nlet _Label = React.forwardRef(Label);\nexport {_Label as Label};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"(optional)\": \"(اختياري)\",\n \"(required)\": \"(مطلوب)\"\n}\n","{\n \"(optional)\": \"(незадължително)\",\n \"(required)\": \"(задължително)\"\n}\n","{\n \"(optional)\": \"(volitelně)\",\n \"(required)\": \"(požadováno)\"\n}\n","{\n \"(optional)\": \"(valgfrit)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optional)\",\n \"(required)\": \"(erforderlich)\"\n}\n","{\n \"(optional)\": \"(προαιρετικό)\",\n \"(required)\": \"(απαιτείται)\"\n}\n","{\n \"(required)\": \"(required)\",\n \"(optional)\": \"(optional)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(necesario)\"\n}\n","{\n \"(optional)\": \"(valikuline)\",\n \"(required)\": \"(nõutav)\"\n}\n","{\n \"(optional)\": \"(valinnainen)\",\n \"(required)\": \"(pakollinen)\"\n}\n","{\n \"(optional)\": \"(facultatif)\",\n \"(required)\": \"(requis)\"\n}\n","{\n \"(optional)\": \"(אופציונלי)\",\n \"(required)\": \"(נדרש)\"\n}\n","{\n \"(optional)\": \"(opcionalno)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opcionális)\",\n \"(required)\": \"(kötelező)\"\n}\n","{\n \"(optional)\": \"(facoltativo)\",\n \"(required)\": \"(obbligatorio)\"\n}\n","{\n \"(optional)\": \"(オプション)\",\n \"(required)\": \"(必須)\"\n}\n","{\n \"(optional)\": \"(선택 사항)\",\n \"(required)\": \"(필수 사항)\"\n}\n","{\n \"(optional)\": \"(pasirenkama)\",\n \"(required)\": \"(privaloma)\"\n}\n","{\n \"(optional)\": \"(neobligāti)\",\n \"(required)\": \"(obligāti)\"\n}\n","{\n \"(optional)\": \"(valgfritt)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optioneel)\",\n \"(required)\": \"(vereist)\"\n}\n","{\n \"(optional)\": \"(opcjonalne)\",\n \"(required)\": \"(wymagane)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opţional)\",\n \"(required)\": \"(obligatoriu)\"\n}\n","{\n \"(optional)\": \"(дополнительно)\",\n \"(required)\": \"(обязательно)\"\n}\n","{\n \"(optional)\": \"(nepovinné)\",\n \"(required)\": \"(povinné)\"\n}\n","{\n \"(optional)\": \"(opcijsko)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opciono)\",\n \"(required)\": \"(obavezno)\"\n}\n","{\n \"(optional)\": \"(valfritt)\",\n \"(required)\": \"(krävs)\"\n}\n","{\n \"(optional)\": \"(isteğe bağlı)\",\n \"(required)\": \"(gerekli)\"\n}\n","{\n \"(optional)\": \"(необов’язково)\",\n \"(required)\": \"(обов’язково)\"\n}\n","{\n \"(optional)\": \"(可选)\",\n \"(required)\": \"(必填)\"\n}\n","{\n \"(optional)\": \"(選填)\",\n \"(required)\": \"(必填)\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;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AAE,oCAAU,CAAC,gEAAW,EAAE,CAA+B;gBACzE,EAAE,EAAE,gBAAgB;gBACpB,CAAiB,mBAAE,UAAU,aAAV,UAAU,KAAV,IAAI,CAAJ,CAAc,GAAd,IAAI,CAAJ,CAAc,GAAd,UAAU,CAAE,EAAE,OAAM,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,KAAK,SAAS;YACxF,CAAC;QACH,CAAC;OACA,cAAc;IAMrB,EAA2F,AAA3F,yFAA2F;IAC3F,EAA+C,AAA/C,6CAA+C;IACjD,EAAE,EAAE,QAAQ,IAAI,aAAa,KAAK,CAAM,SAAI,KAAK,IAAI,cAAc,EACjE,sBAAsB,sEACnB,CAAG;QAAC,SAAS,EAAE,oCAAU,CAAC,gEAAW,EAAE,CAA0B;0EAC/D,CAAG;QAAC,SAAS,EAAE,oCAAU,CAAC,gEAAW,EAAE,CAA6B;OAClE,sBAAsB;IAM/B,MAAM,oEACH,CAAG;WACE,UAAU;WACV,YAAY;QAChB,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,iBAAiB;OAC3B,sBAAsB,EACtB,cAAc;AAGrB,CAAC;AAED,GAAG,CAAC,yCAAM,iBAAG,sCAAK,CAAC,UAAU,CAAC,2BAAK","sources":["packages/@react-spectrum/label/src/index.ts","packages/@react-spectrum/label/src/Field.tsx","packages/@react-spectrum/label/src/HelpText.tsx","packages/@adobe/spectrum-css-temp/components/helptext/vars.css","packages/@react-spectrum/label/src/Label.tsx","packages/@react-spectrum/label/intl/*.js","packages/@react-spectrum/label/intl/ar-AE.json","packages/@react-spectrum/label/intl/bg-BG.json","packages/@react-spectrum/label/intl/cs-CZ.json","packages/@react-spectrum/label/intl/da-DK.json","packages/@react-spectrum/label/intl/de-DE.json","packages/@react-spectrum/label/intl/el-GR.json","packages/@react-spectrum/label/intl/en-US.json","packages/@react-spectrum/label/intl/es-ES.json","packages/@react-spectrum/label/intl/et-EE.json","packages/@react-spectrum/label/intl/fi-FI.json","packages/@react-spectrum/label/intl/fr-FR.json","packages/@react-spectrum/label/intl/he-IL.json","packages/@react-spectrum/label/intl/hr-HR.json","packages/@react-spectrum/label/intl/hu-HU.json","packages/@react-spectrum/label/intl/it-IT.json","packages/@react-spectrum/label/intl/ja-JP.json","packages/@react-spectrum/label/intl/ko-KR.json","packages/@react-spectrum/label/intl/lt-LT.json","packages/@react-spectrum/label/intl/lv-LV.json","packages/@react-spectrum/label/intl/nb-NO.json","packages/@react-spectrum/label/intl/nl-NL.json","packages/@react-spectrum/label/intl/pl-PL.json","packages/@react-spectrum/label/intl/pt-BR.json","packages/@react-spectrum/label/intl/pt-PT.json","packages/@react-spectrum/label/intl/ro-RO.json","packages/@react-spectrum/label/intl/ru-RU.json","packages/@react-spectrum/label/intl/sk-SK.json","packages/@react-spectrum/label/intl/sl-SI.json","packages/@react-spectrum/label/intl/sr-SP.json","packages/@react-spectrum/label/intl/sv-SE.json","packages/@react-spectrum/label/intl/tr-TR.json","packages/@react-spectrum/label/intl/uk-UA.json","packages/@react-spectrum/label/intl/zh-CN.json","packages/@react-spectrum/label/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Field} from './Field';\nexport {Label} from './Label';\nexport {HelpText} from './HelpText';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, SlotProvider, useStyleProps} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport {HelpText} from './HelpText';\nimport {Label} from './Label';\nimport {LabelPosition} from '@react-types/shared';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport React, {RefObject} from 'react';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport {useFormProps} from '@react-spectrum/form';\n\nfunction Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {\n let formProps = useFormProps(props);\n let isInForm = formProps !== props;\n props = formProps;\n let {\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n isRequired,\n necessityIndicator,\n includeNecessityIndicatorInAccessibilityName,\n validationState,\n description,\n errorMessage,\n isDisabled,\n showErrorIcon,\n contextualHelp,\n children,\n labelProps,\n // Not every component that uses <Field> supports help text.\n descriptionProps = {},\n errorMessageProps = {},\n elementType,\n wrapperClassName,\n wrapperProps = {},\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n let contextualHelpId = useId();\n\n let labelWrapperClass = classNames(\n labelStyles,\n 'spectrum-Field',\n {\n 'spectrum-Field--positionTop': labelPosition === 'top',\n 'spectrum-Field--positionSide': labelPosition === 'side',\n 'spectrum-Field--alignEnd': labelAlign === 'end',\n 'spectrum-Field--hasContextualHelp': !!props.contextualHelp\n },\n styleProps.className,\n wrapperClassName\n );\n\n children = React.cloneElement(children, mergeProps(children.props, {\n className: classNames(\n labelStyles,\n 'spectrum-Field-field'\n )\n }));\n\n let renderHelpText = () => (\n <HelpText\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n description={description}\n errorMessage={errorMessage}\n validationState={validationState}\n isDisabled={isDisabled}\n showErrorIcon={showErrorIcon}\n gridArea=\"helpText\" />\n );\n\n let renderChildren = () => {\n if (labelPosition === 'side') {\n return (\n <Flex direction=\"column\" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>\n {children}\n {hasHelpText && renderHelpText()}\n </Flex>\n );\n }\n\n return (\n <>\n {children}\n {hasHelpText && renderHelpText()}\n </>\n );\n };\n\n let labelAndContextualHelp = (\n <>\n {label && (\n <Label\n {...labelProps}\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n isRequired={isRequired}\n necessityIndicator={necessityIndicator}\n includeNecessityIndicatorInAccessibilityName={includeNecessityIndicatorInAccessibilityName}\n elementType={elementType}>\n {label}\n </Label>\n )}\n {label && contextualHelp &&\n <SlotProvider\n slots={{\n actionButton: {\n UNSAFE_className: classNames(labelStyles, 'spectrum-Field-contextualHelp'),\n id: contextualHelpId,\n 'aria-labelledby': labelProps?.id ? `${labelProps.id} ${contextualHelpId}` : undefined\n }\n }}>\n {contextualHelp}\n </SlotProvider>\n }\n </>\n );\n\n // Need to add an extra wrapper for the label and contextual help if labelPosition is side,\n // so that the table layout works inside forms.\n if (isInForm && labelPosition === 'side' && label && contextualHelp) {\n labelAndContextualHelp = (\n <div className={classNames(labelStyles, 'spectrum-Field-labelCell')}>\n <div className={classNames(labelStyles, 'spectrum-Field-labelWrapper')}>\n {labelAndContextualHelp}\n </div>\n </div>\n );\n }\n\n return (\n <div\n {...styleProps}\n {...wrapperProps}\n ref={ref as RefObject<HTMLDivElement>}\n className={labelWrapperClass}>\n {labelAndContextualHelp}\n {renderChildren()}\n </div>\n );\n}\n\nlet _Field = React.forwardRef(Field);\nexport {_Field as Field};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, SpectrumHelpTextProps, StyleProps} from '@react-types/shared';\nimport React, {HTMLAttributes} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/helptext/vars.css';\n\ninterface HelpTextProps extends SpectrumHelpTextProps, StyleProps {\n /** Props for the help text description element. */\n descriptionProps?: HTMLAttributes<HTMLElement>,\n /** Props for the help text error message element. */\n errorMessageProps?: HTMLAttributes<HTMLElement>\n}\n\nfunction HelpText(props: HelpTextProps, ref: DOMRef<HTMLDivElement>) {\n let {\n description,\n errorMessage,\n validationState,\n isDisabled,\n showErrorIcon,\n descriptionProps,\n errorMessageProps\n } = props;\n let domRef = useDOMRef(ref);\n let isErrorMessage = errorMessage && validationState === 'invalid';\n let {styleProps} = useStyleProps(props);\n\n return (\n <div\n {...styleProps}\n className={classNames(\n styles,\n 'spectrum-HelpText',\n `spectrum-HelpText--${isErrorMessage ? 'negative' : 'neutral'}`,\n {'is-disabled': isDisabled},\n styleProps.className\n )}\n ref={domRef}>\n {isErrorMessage ? (\n <>\n {showErrorIcon && <AlertMedium UNSAFE_className={classNames(styles, 'spectrum-HelpText-validationIcon')} />}\n <div {...errorMessageProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {errorMessage}\n </div>\n </>\n ) : (\n <div {...descriptionProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {description}\n </div>\n )}\n </div>\n );\n}\n\n/**\n * 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.\n */\nconst _HelpText = React.forwardRef(HelpText);\nexport {_HelpText as HelpText};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport Asterisk from '@spectrum-icons/ui/Asterisk';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React from 'react';\nimport {SpectrumLabelProps} from '@react-types/label';\nimport styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Label(props: SpectrumLabelProps, ref: DOMRef<HTMLLabelElement>) {\n props = useProviderProps(props);\n let {\n children,\n labelPosition = 'top',\n labelAlign = labelPosition === 'side' ? 'start' : null,\n isRequired,\n necessityIndicator = isRequired != null ? 'icon' : null,\n includeNecessityIndicatorInAccessibilityName = false,\n htmlFor,\n for: labelFor,\n elementType: ElementType = 'label',\n onClick,\n ...otherProps\n } = props;\n\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');\n let icon = (\n <Asterisk\n UNSAFE_className={classNames(styles, 'spectrum-FieldLabel-requiredIcon')}\n aria-label={includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined} />\n );\n\n let labelClassNames = classNames(\n styles,\n 'spectrum-FieldLabel',\n {\n 'spectrum-FieldLabel--positionSide': labelPosition === 'side',\n 'spectrum-FieldLabel--alignEnd': labelAlign === 'end'\n },\n styleProps.className\n );\n\n return (\n <ElementType\n {...filterDOMProps(otherProps)}\n {...styleProps}\n onClick={onClick}\n ref={domRef}\n className={labelClassNames}\n htmlFor={ElementType === 'label' ? labelFor || htmlFor : undefined}>\n {children}\n {(necessityIndicator === 'label' || (necessityIndicator === 'icon' && isRequired)) && ' \\u200b'}\n {/* necessityLabel is hidden to screen readers if the field is required because\n * aria-required is set on the field in that case. That will already be announced,\n * so no need to duplicate it here. If optional, we do want it to be announced here. */}\n {necessityIndicator === 'label' && <span aria-hidden={!includeNecessityIndicatorInAccessibilityName ? isRequired : undefined}>{necessityLabel}</span>}\n {necessityIndicator === 'icon' && isRequired && icon}\n </ElementType>\n );\n}\n\nlet _Label = React.forwardRef(Label);\nexport {_Label as Label};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"(optional)\": \"(اختياري)\",\n \"(required)\": \"(مطلوب)\"\n}\n","{\n \"(optional)\": \"(незадължително)\",\n \"(required)\": \"(задължително)\"\n}\n","{\n \"(optional)\": \"(volitelně)\",\n \"(required)\": \"(požadováno)\"\n}\n","{\n \"(optional)\": \"(valgfrit)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optional)\",\n \"(required)\": \"(erforderlich)\"\n}\n","{\n \"(optional)\": \"(προαιρετικό)\",\n \"(required)\": \"(απαιτείται)\"\n}\n","{\n \"(required)\": \"(required)\",\n \"(optional)\": \"(optional)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(necesario)\"\n}\n","{\n \"(optional)\": \"(valikuline)\",\n \"(required)\": \"(nõutav)\"\n}\n","{\n \"(optional)\": \"(valinnainen)\",\n \"(required)\": \"(pakollinen)\"\n}\n","{\n \"(optional)\": \"(facultatif)\",\n \"(required)\": \"(requis)\"\n}\n","{\n \"(optional)\": \"(אופציונלי)\",\n \"(required)\": \"(נדרש)\"\n}\n","{\n \"(optional)\": \"(opcionalno)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opcionális)\",\n \"(required)\": \"(kötelező)\"\n}\n","{\n \"(optional)\": \"(facoltativo)\",\n \"(required)\": \"(obbligatorio)\"\n}\n","{\n \"(optional)\": \"(オプション)\",\n \"(required)\": \"(必須)\"\n}\n","{\n \"(optional)\": \"(선택 사항)\",\n \"(required)\": \"(필수 사항)\"\n}\n","{\n \"(optional)\": \"(pasirenkama)\",\n \"(required)\": \"(privaloma)\"\n}\n","{\n \"(optional)\": \"(neobligāti)\",\n \"(required)\": \"(obligāti)\"\n}\n","{\n \"(optional)\": \"(valgfritt)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optioneel)\",\n \"(required)\": \"(vereist)\"\n}\n","{\n \"(optional)\": \"(opcjonalne)\",\n \"(required)\": \"(wymagane)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opţional)\",\n \"(required)\": \"(obligatoriu)\"\n}\n","{\n \"(optional)\": \"(дополнительно)\",\n \"(required)\": \"(обязательно)\"\n}\n","{\n \"(optional)\": \"(nepovinné)\",\n \"(required)\": \"(povinné)\"\n}\n","{\n \"(optional)\": \"(opcijsko)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opciono)\",\n \"(required)\": \"(obavezno)\"\n}\n","{\n \"(optional)\": \"(valfritt)\",\n \"(required)\": \"(krävs)\"\n}\n","{\n \"(optional)\": \"(isteğe bağlı)\",\n \"(required)\": \"(gerekli)\"\n}\n","{\n \"(optional)\": \"(необов’язково)\",\n \"(required)\": \"(обов’язково)\"\n}\n","{\n \"(optional)\": \"(可选)\",\n \"(required)\": \"(必填)\"\n}\n","{\n \"(optional)\": \"(選填)\",\n \"(required)\": \"(必填)\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import "./main.css";
|
2
2
|
import {useStyleProps as $6WzO6$useStyleProps, classNames as $6WzO6$classNames, SlotProvider as $6WzO6$SlotProvider, useDOMRef as $6WzO6$useDOMRef} from "@react-spectrum/utils";
|
3
3
|
import {Flex as $6WzO6$Flex} from "@react-spectrum/layout";
|
4
|
-
import {useId as $6WzO6$useId, mergeProps as $6WzO6$mergeProps,
|
5
|
-
import $6WzO6$react
|
4
|
+
import {useId as $6WzO6$useId, mergeProps as $6WzO6$mergeProps, filterDOMProps as $6WzO6$filterDOMProps} from "@react-aria/utils";
|
5
|
+
import $6WzO6$react from "react";
|
6
6
|
import {useFormProps as $6WzO6$useFormProps} from "@react-spectrum/form";
|
7
7
|
import $6WzO6$spectrumiconsuiAlertMedium from "@spectrum-icons/ui/AlertMedium";
|
8
8
|
import $6WzO6$spectrumiconsuiAsterisk from "@spectrum-icons/ui/Asterisk";
|
@@ -459,78 +459,64 @@ function $b7ca5b4454a2009d$var$Field(props, ref) {
|
|
459
459
|
} , ...otherProps } = props;
|
460
460
|
let { styleProps: styleProps } = $6WzO6$useStyleProps(otherProps);
|
461
461
|
let hasHelpText = !!description || errorMessage && validationState === 'invalid';
|
462
|
-
let mergedRefs = $b7ca5b4454a2009d$var$useMergeRefs(children.ref, ref);
|
463
462
|
let contextualHelpId = $6WzO6$useId();
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
'aria-labelledby': (labelProps === null || labelProps === void 0 ? void 0 : labelProps.id) ? `${labelProps.id} ${contextualHelpId}` : undefined
|
506
|
-
}
|
463
|
+
let labelWrapperClass = $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-Field', {
|
464
|
+
'spectrum-Field--positionTop': labelPosition === 'top',
|
465
|
+
'spectrum-Field--positionSide': labelPosition === 'side',
|
466
|
+
'spectrum-Field--alignEnd': labelAlign === 'end',
|
467
|
+
'spectrum-Field--hasContextualHelp': !!props.contextualHelp
|
468
|
+
}, styleProps.className, wrapperClassName);
|
469
|
+
children = /*#__PURE__*/ $6WzO6$react.cloneElement(children, $6WzO6$mergeProps(children.props, {
|
470
|
+
className: $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-Field-field')
|
471
|
+
}));
|
472
|
+
let renderHelpText = ()=>/*#__PURE__*/ $6WzO6$react.createElement($8e50676506611310$export$a67c0bc59081311a, {
|
473
|
+
descriptionProps: descriptionProps,
|
474
|
+
errorMessageProps: errorMessageProps,
|
475
|
+
description: description,
|
476
|
+
errorMessage: errorMessage,
|
477
|
+
validationState: validationState,
|
478
|
+
isDisabled: isDisabled,
|
479
|
+
showErrorIcon: showErrorIcon,
|
480
|
+
gridArea: "helpText"
|
481
|
+
})
|
482
|
+
;
|
483
|
+
let renderChildren = ()=>{
|
484
|
+
if (labelPosition === 'side') return(/*#__PURE__*/ $6WzO6$react.createElement($6WzO6$Flex, {
|
485
|
+
direction: "column",
|
486
|
+
UNSAFE_className: $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-Field-wrapper')
|
487
|
+
}, children, hasHelpText && renderHelpText()));
|
488
|
+
return(/*#__PURE__*/ $6WzO6$react.createElement($6WzO6$react.Fragment, null, children, hasHelpText && renderHelpText()));
|
489
|
+
};
|
490
|
+
let labelAndContextualHelp = /*#__PURE__*/ $6WzO6$react.createElement($6WzO6$react.Fragment, null, label && /*#__PURE__*/ $6WzO6$react.createElement($00af9ba397a66f43$export$b04be29aa201d4f5, {
|
491
|
+
...labelProps,
|
492
|
+
labelPosition: labelPosition,
|
493
|
+
labelAlign: labelAlign,
|
494
|
+
isRequired: isRequired,
|
495
|
+
necessityIndicator: necessityIndicator,
|
496
|
+
includeNecessityIndicatorInAccessibilityName: includeNecessityIndicatorInAccessibilityName,
|
497
|
+
elementType: elementType
|
498
|
+
}, label), label && contextualHelp && /*#__PURE__*/ $6WzO6$react.createElement($6WzO6$SlotProvider, {
|
499
|
+
slots: {
|
500
|
+
actionButton: {
|
501
|
+
UNSAFE_className: $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-Field-contextualHelp'),
|
502
|
+
id: contextualHelpId,
|
503
|
+
'aria-labelledby': (labelProps === null || labelProps === void 0 ? void 0 : labelProps.id) ? `${labelProps.id} ${contextualHelpId}` : undefined
|
507
504
|
}
|
508
|
-
}
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
...wrapperProps,
|
519
|
-
ref: ref,
|
520
|
-
className: labelWrapperClass
|
521
|
-
}, labelAndContextualHelp, renderChildren()));
|
522
|
-
}
|
523
|
-
return(/*#__PURE__*/ $6WzO6$react.cloneElement(children, $6WzO6$mergeProps(children.props, {
|
505
|
+
}
|
506
|
+
}, contextualHelp));
|
507
|
+
// Need to add an extra wrapper for the label and contextual help if labelPosition is side,
|
508
|
+
// so that the table layout works inside forms.
|
509
|
+
if (isInForm && labelPosition === 'side' && label && contextualHelp) labelAndContextualHelp = /*#__PURE__*/ $6WzO6$react.createElement("div", {
|
510
|
+
className: $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-Field-labelCell')
|
511
|
+
}, /*#__PURE__*/ $6WzO6$react.createElement("div", {
|
512
|
+
className: $6WzO6$classNames((/*@__PURE__*/$parcel$interopDefault($cd231e464c886c86$exports)), 'spectrum-Field-labelWrapper')
|
513
|
+
}, labelAndContextualHelp));
|
514
|
+
return(/*#__PURE__*/ $6WzO6$react.createElement("div", {
|
524
515
|
...styleProps,
|
525
516
|
...wrapperProps,
|
526
|
-
ref:
|
527
|
-
|
528
|
-
}
|
529
|
-
function $b7ca5b4454a2009d$var$useMergeRefs(...refs) {
|
530
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
531
|
-
return $6WzO6$useCallback($6WzO6$mergeRefs(...refs), [
|
532
|
-
...refs
|
533
|
-
]);
|
517
|
+
ref: ref,
|
518
|
+
className: labelWrapperClass
|
519
|
+
}, labelAndContextualHelp, renderChildren()));
|
534
520
|
}
|
535
521
|
let $b7ca5b4454a2009d$export$a455218a85c89869 = /*#__PURE__*/ $6WzO6$react.forwardRef($b7ca5b4454a2009d$var$Field);
|
536
522
|
|
package/dist/module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,GAAmC;AACnC,GAAkD;AAClD,GAAwC;AACxC,GAA4C;AAC5C,GAA6B;AAC7B,GAA6C;AAL7C,yCAAmC,GAAG,CAA0B;AAChE,yCAAkD,GAAG,CAAyC;AAC9F,yCAAwC,GAAG,CAA+B;AAC1E,sCAA4C,GAAG,CAAmC;AAClF,yCAA6B,GAAG,CAAoB;AACpD,yCAA6C,GAAG,CAAoC;;;SDoB3E,8BAAQ,CAAC,KAAoB,EAAE,GAA2B,EAAE,CAAC;IACpE,GAAG,CAAC,CAAC,cACH,WAAW,iBACX,YAAY,oBACZ,eAAe,eACf,UAAU,kBACV,aAAa,qBACb,gBAAgB,sBAChB,iBAAiB,EACnB,CAAC,GAAG,KAAK;IACT,GAAG,CAAC,MAAM,GAAG,gBAAS,CAAC,GAAG;IAC1B,GAAG,CAAC,cAAc,GAAG,YAAY,IAAI,eAAe,KAAK,CAAS;IAClE,GAAG,CAAC,CAAC,aAAA,UAAU,EAAA,CAAC,GAAG,oBAAa,CAAC,KAAK;IAEtC,MAAM,0CACH,CAAG;WACE,UAAU;QACd,SAAS,EAAE,iBAAU,CACnB,gEAAM,EACN,CAAmB,qBAClB,mBAAmB,EAAE,cAAc,GAAG,CAAU,YAAG,CAAS,YAC7D,CAAC;YAAA,CAAa,cAAE,UAAU;QAAA,CAAC,EAC3B,UAAU,CAA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,eAAC,YAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,iBAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;WAC3D,UAAU;WACV,YAAY;QACf,GAAG,EAAE,UAAU;IACjB,CAAC;AACH,CAAC;SAEQ,kCAAY,IAAO,IAAI,EAAqD,CAAC;IACpF,EAAuD,AAAvD,qDAAuD;IACvD,MAAM,CAAC,kBAAW,CAChB,gBAAS,IAAI,IAAI,GACjB,CAAC;WAAG,IAAI;IAAA,CAAC;AAEb,CAAC;AAED,GAAG,CAAC,yCAAM,iBAAG,YAAK,CAAC,UAAU,CAAC,2BAAK","sources":["packages/@react-spectrum/label/src/index.ts","packages/@react-spectrum/label/src/Field.tsx","packages/@react-spectrum/label/src/HelpText.tsx","packages/@adobe/spectrum-css-temp/components/helptext/vars.css","packages/@react-spectrum/label/src/Label.tsx","packages/@react-spectrum/label/intl/*.js","packages/@react-spectrum/label/intl/ar-AE.json","packages/@react-spectrum/label/intl/bg-BG.json","packages/@react-spectrum/label/intl/cs-CZ.json","packages/@react-spectrum/label/intl/da-DK.json","packages/@react-spectrum/label/intl/de-DE.json","packages/@react-spectrum/label/intl/el-GR.json","packages/@react-spectrum/label/intl/en-US.json","packages/@react-spectrum/label/intl/es-ES.json","packages/@react-spectrum/label/intl/et-EE.json","packages/@react-spectrum/label/intl/fi-FI.json","packages/@react-spectrum/label/intl/fr-FR.json","packages/@react-spectrum/label/intl/he-IL.json","packages/@react-spectrum/label/intl/hr-HR.json","packages/@react-spectrum/label/intl/hu-HU.json","packages/@react-spectrum/label/intl/it-IT.json","packages/@react-spectrum/label/intl/ja-JP.json","packages/@react-spectrum/label/intl/ko-KR.json","packages/@react-spectrum/label/intl/lt-LT.json","packages/@react-spectrum/label/intl/lv-LV.json","packages/@react-spectrum/label/intl/nb-NO.json","packages/@react-spectrum/label/intl/nl-NL.json","packages/@react-spectrum/label/intl/pl-PL.json","packages/@react-spectrum/label/intl/pt-BR.json","packages/@react-spectrum/label/intl/pt-PT.json","packages/@react-spectrum/label/intl/ro-RO.json","packages/@react-spectrum/label/intl/ru-RU.json","packages/@react-spectrum/label/intl/sk-SK.json","packages/@react-spectrum/label/intl/sl-SI.json","packages/@react-spectrum/label/intl/sr-SP.json","packages/@react-spectrum/label/intl/sv-SE.json","packages/@react-spectrum/label/intl/tr-TR.json","packages/@react-spectrum/label/intl/uk-UA.json","packages/@react-spectrum/label/intl/zh-CN.json","packages/@react-spectrum/label/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Field} from './Field';\nexport {Label} from './Label';\nexport {HelpText} from './HelpText';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, SlotProvider, useStyleProps} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport {HelpText} from './HelpText';\nimport {Label} from './Label';\nimport {LabelPosition} from '@react-types/shared';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {mergeProps, mergeRefs, useId} from '@react-aria/utils';\nimport React, {ForwardedRef, ReactElement, RefObject, useCallback} from 'react';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport {useFormProps} from '@react-spectrum/form';\n\nfunction Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {\n let formProps = useFormProps(props);\n let isInForm = formProps !== props;\n props = formProps;\n let {\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n isRequired,\n necessityIndicator,\n includeNecessityIndicatorInAccessibilityName,\n validationState,\n description,\n errorMessage,\n isDisabled,\n showErrorIcon,\n contextualHelp,\n children,\n labelProps,\n // Not every component that uses <Field> supports help text.\n descriptionProps = {},\n errorMessageProps = {},\n elementType,\n wrapperClassName,\n wrapperProps = {},\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n let mergedRefs = useMergeRefs((children as ReactElement & {ref: RefObject<HTMLElement>}).ref, ref);\n let contextualHelpId = useId();\n\n if (label || hasHelpText) {\n let labelWrapperClass = classNames(\n labelStyles,\n 'spectrum-Field',\n {\n 'spectrum-Field--positionTop': labelPosition === 'top',\n 'spectrum-Field--positionSide': labelPosition === 'side',\n 'spectrum-Field--alignEnd': labelAlign === 'end',\n 'spectrum-Field--hasContextualHelp': !!props.contextualHelp\n },\n styleProps.className,\n wrapperClassName\n );\n\n children = React.cloneElement(children, mergeProps(children.props, {\n className: classNames(\n labelStyles,\n 'spectrum-Field-field'\n )\n }));\n\n let renderHelpText = () => (\n <HelpText\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n description={description}\n errorMessage={errorMessage}\n validationState={validationState}\n isDisabled={isDisabled}\n showErrorIcon={showErrorIcon}\n gridArea=\"helpText\" />\n );\n\n let renderChildren = () => {\n if (labelPosition === 'side') {\n return (\n <Flex direction=\"column\" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>\n {children}\n {hasHelpText && renderHelpText()}\n </Flex>\n );\n }\n\n return (\n <>\n {children}\n {hasHelpText && renderHelpText()}\n </>\n );\n };\n\n let labelAndContextualHelp = (\n <>\n {label && (\n <Label\n {...labelProps}\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n isRequired={isRequired}\n necessityIndicator={necessityIndicator}\n includeNecessityIndicatorInAccessibilityName={includeNecessityIndicatorInAccessibilityName}\n elementType={elementType}>\n {label}\n </Label>\n )}\n {label && contextualHelp &&\n <SlotProvider\n slots={{\n actionButton: {\n UNSAFE_className: classNames(labelStyles, 'spectrum-Field-contextualHelp'),\n id: contextualHelpId,\n 'aria-labelledby': labelProps?.id ? `${labelProps.id} ${contextualHelpId}` : undefined\n }\n }}>\n {contextualHelp}\n </SlotProvider>\n }\n </>\n );\n\n // Need to add an extra wrapper for the label and contextual help if labelPosition is side,\n // so that the table layout works inside forms.\n if (isInForm && labelPosition === 'side' && label && contextualHelp) {\n labelAndContextualHelp = (\n <div className={classNames(labelStyles, 'spectrum-Field-labelCell')}>\n <div className={classNames(labelStyles, 'spectrum-Field-labelWrapper')}>\n {labelAndContextualHelp}\n </div>\n </div>\n );\n }\n\n return (\n <div\n {...styleProps}\n {...wrapperProps}\n ref={ref as RefObject<HTMLDivElement>}\n className={labelWrapperClass}>\n {labelAndContextualHelp}\n {renderChildren()}\n </div>\n );\n }\n\n return React.cloneElement(children, mergeProps(children.props, {\n ...styleProps,\n ...wrapperProps,\n ref: mergedRefs\n }));\n}\n\nfunction useMergeRefs<T>(...refs: ForwardedRef<T>[]): (instance: (T | null)) => void {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return useCallback(\n mergeRefs(...refs) as (instance: (T | null)) => void,\n [...refs]\n );\n}\n\nlet _Field = React.forwardRef(Field);\nexport {_Field as Field};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, SpectrumHelpTextProps, StyleProps} from '@react-types/shared';\nimport React, {HTMLAttributes} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/helptext/vars.css';\n\ninterface HelpTextProps extends SpectrumHelpTextProps, StyleProps {\n /** Props for the help text description element. */\n descriptionProps?: HTMLAttributes<HTMLElement>,\n /** Props for the help text error message element. */\n errorMessageProps?: HTMLAttributes<HTMLElement>\n}\n\nfunction HelpText(props: HelpTextProps, ref: DOMRef<HTMLDivElement>) {\n let {\n description,\n errorMessage,\n validationState,\n isDisabled,\n showErrorIcon,\n descriptionProps,\n errorMessageProps\n } = props;\n let domRef = useDOMRef(ref);\n let isErrorMessage = errorMessage && validationState === 'invalid';\n let {styleProps} = useStyleProps(props);\n\n return (\n <div\n {...styleProps}\n className={classNames(\n styles,\n 'spectrum-HelpText',\n `spectrum-HelpText--${isErrorMessage ? 'negative' : 'neutral'}`,\n {'is-disabled': isDisabled},\n styleProps.className\n )}\n ref={domRef}>\n {isErrorMessage ? (\n <>\n {showErrorIcon && <AlertMedium UNSAFE_className={classNames(styles, 'spectrum-HelpText-validationIcon')} />}\n <div {...errorMessageProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {errorMessage}\n </div>\n </>\n ) : (\n <div {...descriptionProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {description}\n </div>\n )}\n </div>\n );\n}\n\n/**\n * 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.\n */\nconst _HelpText = React.forwardRef(HelpText);\nexport {_HelpText as HelpText};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport Asterisk from '@spectrum-icons/ui/Asterisk';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React from 'react';\nimport {SpectrumLabelProps} from '@react-types/label';\nimport styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Label(props: SpectrumLabelProps, ref: DOMRef<HTMLLabelElement>) {\n props = useProviderProps(props);\n let {\n children,\n labelPosition = 'top',\n labelAlign = labelPosition === 'side' ? 'start' : null,\n isRequired,\n necessityIndicator = isRequired != null ? 'icon' : null,\n includeNecessityIndicatorInAccessibilityName = false,\n htmlFor,\n for: labelFor,\n elementType: ElementType = 'label',\n onClick,\n ...otherProps\n } = props;\n\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');\n let icon = (\n <Asterisk\n UNSAFE_className={classNames(styles, 'spectrum-FieldLabel-requiredIcon')}\n aria-label={includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined} />\n );\n\n let labelClassNames = classNames(\n styles,\n 'spectrum-FieldLabel',\n {\n 'spectrum-FieldLabel--positionSide': labelPosition === 'side',\n 'spectrum-FieldLabel--alignEnd': labelAlign === 'end'\n },\n styleProps.className\n );\n\n return (\n <ElementType\n {...filterDOMProps(otherProps)}\n {...styleProps}\n onClick={onClick}\n ref={domRef}\n className={labelClassNames}\n htmlFor={ElementType === 'label' ? labelFor || htmlFor : undefined}>\n {children}\n {(necessityIndicator === 'label' || (necessityIndicator === 'icon' && isRequired)) && ' \\u200b'}\n {/* necessityLabel is hidden to screen readers if the field is required because\n * aria-required is set on the field in that case. That will already be announced,\n * so no need to duplicate it here. If optional, we do want it to be announced here. */}\n {necessityIndicator === 'label' && <span aria-hidden={!includeNecessityIndicatorInAccessibilityName ? isRequired : undefined}>{necessityLabel}</span>}\n {necessityIndicator === 'icon' && isRequired && icon}\n </ElementType>\n );\n}\n\nlet _Label = React.forwardRef(Label);\nexport {_Label as Label};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"(optional)\": \"(اختياري)\",\n \"(required)\": \"(مطلوب)\"\n}\n","{\n \"(optional)\": \"(незадължително)\",\n \"(required)\": \"(задължително)\"\n}\n","{\n \"(optional)\": \"(volitelně)\",\n \"(required)\": \"(požadováno)\"\n}\n","{\n \"(optional)\": \"(valgfrit)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optional)\",\n \"(required)\": \"(erforderlich)\"\n}\n","{\n \"(optional)\": \"(προαιρετικό)\",\n \"(required)\": \"(απαιτείται)\"\n}\n","{\n \"(required)\": \"(required)\",\n \"(optional)\": \"(optional)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(necesario)\"\n}\n","{\n \"(optional)\": \"(valikuline)\",\n \"(required)\": \"(nõutav)\"\n}\n","{\n \"(optional)\": \"(valinnainen)\",\n \"(required)\": \"(pakollinen)\"\n}\n","{\n \"(optional)\": \"(facultatif)\",\n \"(required)\": \"(requis)\"\n}\n","{\n \"(optional)\": \"(אופציונלי)\",\n \"(required)\": \"(נדרש)\"\n}\n","{\n \"(optional)\": \"(opcionalno)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opcionális)\",\n \"(required)\": \"(kötelező)\"\n}\n","{\n \"(optional)\": \"(facoltativo)\",\n \"(required)\": \"(obbligatorio)\"\n}\n","{\n \"(optional)\": \"(オプション)\",\n \"(required)\": \"(必須)\"\n}\n","{\n \"(optional)\": \"(선택 사항)\",\n \"(required)\": \"(필수 사항)\"\n}\n","{\n \"(optional)\": \"(pasirenkama)\",\n \"(required)\": \"(privaloma)\"\n}\n","{\n \"(optional)\": \"(neobligāti)\",\n \"(required)\": \"(obligāti)\"\n}\n","{\n \"(optional)\": \"(valgfritt)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optioneel)\",\n \"(required)\": \"(vereist)\"\n}\n","{\n \"(optional)\": \"(opcjonalne)\",\n \"(required)\": \"(wymagane)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opţional)\",\n \"(required)\": \"(obligatoriu)\"\n}\n","{\n \"(optional)\": \"(дополнительно)\",\n \"(required)\": \"(обязательно)\"\n}\n","{\n \"(optional)\": \"(nepovinné)\",\n \"(required)\": \"(povinné)\"\n}\n","{\n \"(optional)\": \"(opcijsko)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opciono)\",\n \"(required)\": \"(obavezno)\"\n}\n","{\n \"(optional)\": \"(valfritt)\",\n \"(required)\": \"(krävs)\"\n}\n","{\n \"(optional)\": \"(isteğe bağlı)\",\n \"(required)\": \"(gerekli)\"\n}\n","{\n \"(optional)\": \"(необов’язково)\",\n \"(required)\": \"(обов’язково)\"\n}\n","{\n \"(optional)\": \"(可选)\",\n \"(required)\": \"(必填)\"\n}\n","{\n \"(optional)\": \"(選填)\",\n \"(required)\": \"(必填)\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,GAAmC;AACnC,GAAkD;AAClD,GAAwC;AACxC,GAA4C;AAC5C,GAA6B;AAC7B,GAA6C;AAL7C,yCAAmC,GAAG,CAA0B;AAChE,yCAAkD,GAAG,CAAyC;AAC9F,yCAAwC,GAAG,CAA+B;AAC1E,sCAA4C,GAAG,CAAmC;AAClF,yCAA6B,GAAG,CAAoB;AACpD,yCAA6C,GAAG,CAAoC;;;SDoB3E,8BAAQ,CAAC,KAAoB,EAAE,GAA2B,EAAE,CAA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CAA+C;IACjD,EAAE,EAAE,QAAQ,IAAI,aAAa,KAAK,CAAM,SAAI,KAAK,IAAI,cAAc,EACjE,sBAAsB,4CACnB,CAAG;QAAC,SAAS,EAAE,iBAAU,CAAC,gEAAW,EAAE,CAA0B;gDAC/D,CAAG;QAAC,SAAS,EAAE,iBAAU,CAAC,gEAAW,EAAE,CAA6B;OAClE,sBAAsB;IAM/B,MAAM,0CACH,CAAG;WACE,UAAU;WACV,YAAY;QAChB,GAAG,EAAE,GAAG;QACR,SAAS,EAAE,iBAAiB;OAC3B,sBAAsB,EACtB,cAAc;AAGrB,CAAC;AAED,GAAG,CAAC,yCAAM,iBAAG,YAAK,CAAC,UAAU,CAAC,2BAAK","sources":["packages/@react-spectrum/label/src/index.ts","packages/@react-spectrum/label/src/Field.tsx","packages/@react-spectrum/label/src/HelpText.tsx","packages/@adobe/spectrum-css-temp/components/helptext/vars.css","packages/@react-spectrum/label/src/Label.tsx","packages/@react-spectrum/label/intl/*.js","packages/@react-spectrum/label/intl/ar-AE.json","packages/@react-spectrum/label/intl/bg-BG.json","packages/@react-spectrum/label/intl/cs-CZ.json","packages/@react-spectrum/label/intl/da-DK.json","packages/@react-spectrum/label/intl/de-DE.json","packages/@react-spectrum/label/intl/el-GR.json","packages/@react-spectrum/label/intl/en-US.json","packages/@react-spectrum/label/intl/es-ES.json","packages/@react-spectrum/label/intl/et-EE.json","packages/@react-spectrum/label/intl/fi-FI.json","packages/@react-spectrum/label/intl/fr-FR.json","packages/@react-spectrum/label/intl/he-IL.json","packages/@react-spectrum/label/intl/hr-HR.json","packages/@react-spectrum/label/intl/hu-HU.json","packages/@react-spectrum/label/intl/it-IT.json","packages/@react-spectrum/label/intl/ja-JP.json","packages/@react-spectrum/label/intl/ko-KR.json","packages/@react-spectrum/label/intl/lt-LT.json","packages/@react-spectrum/label/intl/lv-LV.json","packages/@react-spectrum/label/intl/nb-NO.json","packages/@react-spectrum/label/intl/nl-NL.json","packages/@react-spectrum/label/intl/pl-PL.json","packages/@react-spectrum/label/intl/pt-BR.json","packages/@react-spectrum/label/intl/pt-PT.json","packages/@react-spectrum/label/intl/ro-RO.json","packages/@react-spectrum/label/intl/ru-RU.json","packages/@react-spectrum/label/intl/sk-SK.json","packages/@react-spectrum/label/intl/sl-SI.json","packages/@react-spectrum/label/intl/sr-SP.json","packages/@react-spectrum/label/intl/sv-SE.json","packages/@react-spectrum/label/intl/tr-TR.json","packages/@react-spectrum/label/intl/uk-UA.json","packages/@react-spectrum/label/intl/zh-CN.json","packages/@react-spectrum/label/intl/zh-TW.json","packages/@adobe/spectrum-css-temp/components/fieldlabel/vars.css"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Field} from './Field';\nexport {Label} from './Label';\nexport {HelpText} from './HelpText';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, SlotProvider, useStyleProps} from '@react-spectrum/utils';\nimport {Flex} from '@react-spectrum/layout';\nimport {HelpText} from './HelpText';\nimport {Label} from './Label';\nimport {LabelPosition} from '@react-types/shared';\nimport labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {mergeProps, useId} from '@react-aria/utils';\nimport React, {RefObject} from 'react';\nimport {SpectrumFieldProps} from '@react-types/label';\nimport {useFormProps} from '@react-spectrum/form';\n\nfunction Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {\n let formProps = useFormProps(props);\n let isInForm = formProps !== props;\n props = formProps;\n let {\n label,\n labelPosition = 'top' as LabelPosition,\n labelAlign,\n isRequired,\n necessityIndicator,\n includeNecessityIndicatorInAccessibilityName,\n validationState,\n description,\n errorMessage,\n isDisabled,\n showErrorIcon,\n contextualHelp,\n children,\n labelProps,\n // Not every component that uses <Field> supports help text.\n descriptionProps = {},\n errorMessageProps = {},\n elementType,\n wrapperClassName,\n wrapperProps = {},\n ...otherProps\n } = props;\n let {styleProps} = useStyleProps(otherProps);\n let hasHelpText = !!description || errorMessage && validationState === 'invalid';\n let contextualHelpId = useId();\n\n let labelWrapperClass = classNames(\n labelStyles,\n 'spectrum-Field',\n {\n 'spectrum-Field--positionTop': labelPosition === 'top',\n 'spectrum-Field--positionSide': labelPosition === 'side',\n 'spectrum-Field--alignEnd': labelAlign === 'end',\n 'spectrum-Field--hasContextualHelp': !!props.contextualHelp\n },\n styleProps.className,\n wrapperClassName\n );\n\n children = React.cloneElement(children, mergeProps(children.props, {\n className: classNames(\n labelStyles,\n 'spectrum-Field-field'\n )\n }));\n\n let renderHelpText = () => (\n <HelpText\n descriptionProps={descriptionProps}\n errorMessageProps={errorMessageProps}\n description={description}\n errorMessage={errorMessage}\n validationState={validationState}\n isDisabled={isDisabled}\n showErrorIcon={showErrorIcon}\n gridArea=\"helpText\" />\n );\n\n let renderChildren = () => {\n if (labelPosition === 'side') {\n return (\n <Flex direction=\"column\" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>\n {children}\n {hasHelpText && renderHelpText()}\n </Flex>\n );\n }\n\n return (\n <>\n {children}\n {hasHelpText && renderHelpText()}\n </>\n );\n };\n\n let labelAndContextualHelp = (\n <>\n {label && (\n <Label\n {...labelProps}\n labelPosition={labelPosition}\n labelAlign={labelAlign}\n isRequired={isRequired}\n necessityIndicator={necessityIndicator}\n includeNecessityIndicatorInAccessibilityName={includeNecessityIndicatorInAccessibilityName}\n elementType={elementType}>\n {label}\n </Label>\n )}\n {label && contextualHelp &&\n <SlotProvider\n slots={{\n actionButton: {\n UNSAFE_className: classNames(labelStyles, 'spectrum-Field-contextualHelp'),\n id: contextualHelpId,\n 'aria-labelledby': labelProps?.id ? `${labelProps.id} ${contextualHelpId}` : undefined\n }\n }}>\n {contextualHelp}\n </SlotProvider>\n }\n </>\n );\n\n // Need to add an extra wrapper for the label and contextual help if labelPosition is side,\n // so that the table layout works inside forms.\n if (isInForm && labelPosition === 'side' && label && contextualHelp) {\n labelAndContextualHelp = (\n <div className={classNames(labelStyles, 'spectrum-Field-labelCell')}>\n <div className={classNames(labelStyles, 'spectrum-Field-labelWrapper')}>\n {labelAndContextualHelp}\n </div>\n </div>\n );\n }\n\n return (\n <div\n {...styleProps}\n {...wrapperProps}\n ref={ref as RefObject<HTMLDivElement>}\n className={labelWrapperClass}>\n {labelAndContextualHelp}\n {renderChildren()}\n </div>\n );\n}\n\nlet _Field = React.forwardRef(Field);\nexport {_Field as Field};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport AlertMedium from '@spectrum-icons/ui/AlertMedium';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef, SpectrumHelpTextProps, StyleProps} from '@react-types/shared';\nimport React, {HTMLAttributes} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/helptext/vars.css';\n\ninterface HelpTextProps extends SpectrumHelpTextProps, StyleProps {\n /** Props for the help text description element. */\n descriptionProps?: HTMLAttributes<HTMLElement>,\n /** Props for the help text error message element. */\n errorMessageProps?: HTMLAttributes<HTMLElement>\n}\n\nfunction HelpText(props: HelpTextProps, ref: DOMRef<HTMLDivElement>) {\n let {\n description,\n errorMessage,\n validationState,\n isDisabled,\n showErrorIcon,\n descriptionProps,\n errorMessageProps\n } = props;\n let domRef = useDOMRef(ref);\n let isErrorMessage = errorMessage && validationState === 'invalid';\n let {styleProps} = useStyleProps(props);\n\n return (\n <div\n {...styleProps}\n className={classNames(\n styles,\n 'spectrum-HelpText',\n `spectrum-HelpText--${isErrorMessage ? 'negative' : 'neutral'}`,\n {'is-disabled': isDisabled},\n styleProps.className\n )}\n ref={domRef}>\n {isErrorMessage ? (\n <>\n {showErrorIcon && <AlertMedium UNSAFE_className={classNames(styles, 'spectrum-HelpText-validationIcon')} />}\n <div {...errorMessageProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {errorMessage}\n </div>\n </>\n ) : (\n <div {...descriptionProps} className={classNames(styles, 'spectrum-HelpText-text')}>\n {description}\n </div>\n )}\n </div>\n );\n}\n\n/**\n * 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.\n */\nconst _HelpText = React.forwardRef(HelpText);\nexport {_HelpText as HelpText};\n","/*\n * Copyright 2021 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport Asterisk from '@spectrum-icons/ui/Asterisk';\nimport {classNames, useDOMRef, useStyleProps} from '@react-spectrum/utils';\nimport {DOMRef} from '@react-types/shared';\nimport {filterDOMProps} from '@react-aria/utils';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport React from 'react';\nimport {SpectrumLabelProps} from '@react-types/label';\nimport styles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';\nimport {useLocalizedStringFormatter} from '@react-aria/i18n';\nimport {useProviderProps} from '@react-spectrum/provider';\n\nfunction Label(props: SpectrumLabelProps, ref: DOMRef<HTMLLabelElement>) {\n props = useProviderProps(props);\n let {\n children,\n labelPosition = 'top',\n labelAlign = labelPosition === 'side' ? 'start' : null,\n isRequired,\n necessityIndicator = isRequired != null ? 'icon' : null,\n includeNecessityIndicatorInAccessibilityName = false,\n htmlFor,\n for: labelFor,\n elementType: ElementType = 'label',\n onClick,\n ...otherProps\n } = props;\n\n let domRef = useDOMRef(ref);\n let {styleProps} = useStyleProps(otherProps);\n\n let stringFormatter = useLocalizedStringFormatter(intlMessages);\n let necessityLabel = isRequired ? stringFormatter.format('(required)') : stringFormatter.format('(optional)');\n let icon = (\n <Asterisk\n UNSAFE_className={classNames(styles, 'spectrum-FieldLabel-requiredIcon')}\n aria-label={includeNecessityIndicatorInAccessibilityName ? stringFormatter.format('(required)') : undefined} />\n );\n\n let labelClassNames = classNames(\n styles,\n 'spectrum-FieldLabel',\n {\n 'spectrum-FieldLabel--positionSide': labelPosition === 'side',\n 'spectrum-FieldLabel--alignEnd': labelAlign === 'end'\n },\n styleProps.className\n );\n\n return (\n <ElementType\n {...filterDOMProps(otherProps)}\n {...styleProps}\n onClick={onClick}\n ref={domRef}\n className={labelClassNames}\n htmlFor={ElementType === 'label' ? labelFor || htmlFor : undefined}>\n {children}\n {(necessityIndicator === 'label' || (necessityIndicator === 'icon' && isRequired)) && ' \\u200b'}\n {/* necessityLabel is hidden to screen readers if the field is required because\n * aria-required is set on the field in that case. That will already be announced,\n * so no need to duplicate it here. If optional, we do want it to be announced here. */}\n {necessityIndicator === 'label' && <span aria-hidden={!includeNecessityIndicatorInAccessibilityName ? isRequired : undefined}>{necessityLabel}</span>}\n {necessityIndicator === 'icon' && isRequired && icon}\n </ElementType>\n );\n}\n\nlet _Label = React.forwardRef(Label);\nexport {_Label as Label};\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"(optional)\": \"(اختياري)\",\n \"(required)\": \"(مطلوب)\"\n}\n","{\n \"(optional)\": \"(незадължително)\",\n \"(required)\": \"(задължително)\"\n}\n","{\n \"(optional)\": \"(volitelně)\",\n \"(required)\": \"(požadováno)\"\n}\n","{\n \"(optional)\": \"(valgfrit)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optional)\",\n \"(required)\": \"(erforderlich)\"\n}\n","{\n \"(optional)\": \"(προαιρετικό)\",\n \"(required)\": \"(απαιτείται)\"\n}\n","{\n \"(required)\": \"(required)\",\n \"(optional)\": \"(optional)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(necesario)\"\n}\n","{\n \"(optional)\": \"(valikuline)\",\n \"(required)\": \"(nõutav)\"\n}\n","{\n \"(optional)\": \"(valinnainen)\",\n \"(required)\": \"(pakollinen)\"\n}\n","{\n \"(optional)\": \"(facultatif)\",\n \"(required)\": \"(requis)\"\n}\n","{\n \"(optional)\": \"(אופציונלי)\",\n \"(required)\": \"(נדרש)\"\n}\n","{\n \"(optional)\": \"(opcionalno)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opcionális)\",\n \"(required)\": \"(kötelező)\"\n}\n","{\n \"(optional)\": \"(facoltativo)\",\n \"(required)\": \"(obbligatorio)\"\n}\n","{\n \"(optional)\": \"(オプション)\",\n \"(required)\": \"(必須)\"\n}\n","{\n \"(optional)\": \"(선택 사항)\",\n \"(required)\": \"(필수 사항)\"\n}\n","{\n \"(optional)\": \"(pasirenkama)\",\n \"(required)\": \"(privaloma)\"\n}\n","{\n \"(optional)\": \"(neobligāti)\",\n \"(required)\": \"(obligāti)\"\n}\n","{\n \"(optional)\": \"(valgfritt)\",\n \"(required)\": \"(obligatorisk)\"\n}\n","{\n \"(optional)\": \"(optioneel)\",\n \"(required)\": \"(vereist)\"\n}\n","{\n \"(optional)\": \"(opcjonalne)\",\n \"(required)\": \"(wymagane)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opcional)\",\n \"(required)\": \"(obrigatório)\"\n}\n","{\n \"(optional)\": \"(opţional)\",\n \"(required)\": \"(obligatoriu)\"\n}\n","{\n \"(optional)\": \"(дополнительно)\",\n \"(required)\": \"(обязательно)\"\n}\n","{\n \"(optional)\": \"(nepovinné)\",\n \"(required)\": \"(povinné)\"\n}\n","{\n \"(optional)\": \"(opcijsko)\",\n \"(required)\": \"(obvezno)\"\n}\n","{\n \"(optional)\": \"(opciono)\",\n \"(required)\": \"(obavezno)\"\n}\n","{\n \"(optional)\": \"(valfritt)\",\n \"(required)\": \"(krävs)\"\n}\n","{\n \"(optional)\": \"(isteğe bağlı)\",\n \"(required)\": \"(gerekli)\"\n}\n","{\n \"(optional)\": \"(необов’язково)\",\n \"(required)\": \"(обов’язково)\"\n}\n","{\n \"(optional)\": \"(可选)\",\n \"(required)\": \"(必填)\"\n}\n","{\n \"(optional)\": \"(選填)\",\n \"(required)\": \"(必填)\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n@import './index.css';\n@import './skin.css';\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/dist/types.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":";;;AAkBA,uBAAwB,SAAQ,qBAAqB,EAAE,UAAU;IAC/D,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,eAAe,WAAW,CAAC,CAAC;IAC/C,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,eAAe,WAAW,CAAC,CAAA;CAChD;AA2CD;;GAEG;AACH,OAAA,MAAM,yIAAsC,CAAC;ACW7C,OAAA,IAAI,6IAAgC,CAAC;
|
1
|
+
{"mappings":";;;AAkBA,uBAAwB,SAAQ,qBAAqB,EAAE,UAAU;IAC/D,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,eAAe,WAAW,CAAC,CAAC;IAC/C,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,eAAe,WAAW,CAAC,CAAA;CAChD;AA2CD;;GAEG;AACH,OAAA,MAAM,yIAAsC,CAAC;ACW7C,OAAA,IAAI,6IAAgC,CAAC;AC6ErC,OAAA,IAAI,6FAAgC,CAAC","sources":["packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/HelpText.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/Label.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/Field.tsx","packages/@react-spectrum/label/src/packages/@react-spectrum/label/src/index.ts","packages/@react-spectrum/label/src/index.ts"],"sourcesContent":[null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {Field} from './Field';\nexport {Label} from './Label';\nexport {HelpText} from './HelpText';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-spectrum/label",
|
3
|
-
"version": "3.9.1-nightly.
|
3
|
+
"version": "3.9.1-nightly.3596+09c71dd74",
|
4
4
|
"description": "Spectrum UI components in React",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"main": "dist/main.js",
|
@@ -32,18 +32,18 @@
|
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"@babel/runtime": "^7.6.2",
|
35
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
36
|
-
"@react-aria/label": "3.0.0-nightly.
|
37
|
-
"@react-aria/utils": "3.0.0-nightly.
|
38
|
-
"@react-spectrum/form": "3.0.0-nightly.
|
39
|
-
"@react-spectrum/layout": "3.4.4-nightly.
|
40
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
41
|
-
"@react-types/label": "3.0.0-nightly.
|
42
|
-
"@react-types/shared": "3.0.0-nightly.
|
43
|
-
"@spectrum-icons/ui": "3.0.0-nightly.
|
35
|
+
"@react-aria/i18n": "3.0.0-nightly.1896+09c71dd74",
|
36
|
+
"@react-aria/label": "3.0.0-nightly.1896+09c71dd74",
|
37
|
+
"@react-aria/utils": "3.0.0-nightly.1896+09c71dd74",
|
38
|
+
"@react-spectrum/form": "3.0.0-nightly.1896+09c71dd74",
|
39
|
+
"@react-spectrum/layout": "3.4.4-nightly.3596+09c71dd74",
|
40
|
+
"@react-spectrum/utils": "3.0.0-nightly.1896+09c71dd74",
|
41
|
+
"@react-types/label": "3.0.0-nightly.1896+09c71dd74",
|
42
|
+
"@react-types/shared": "3.0.0-nightly.1896+09c71dd74",
|
43
|
+
"@spectrum-icons/ui": "3.0.0-nightly.1896+09c71dd74"
|
44
44
|
},
|
45
45
|
"devDependencies": {
|
46
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
46
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.1896+09c71dd74"
|
47
47
|
},
|
48
48
|
"peerDependencies": {
|
49
49
|
"@react-spectrum/provider": "^3.0.0",
|
@@ -52,5 +52,5 @@
|
|
52
52
|
"publishConfig": {
|
53
53
|
"access": "public"
|
54
54
|
},
|
55
|
-
"gitHead": "
|
55
|
+
"gitHead": "09c71dd74a438b918a35eeecd307ae1fbaa28784"
|
56
56
|
}
|
package/src/Field.tsx
CHANGED
@@ -16,8 +16,8 @@ import {HelpText} from './HelpText';
|
|
16
16
|
import {Label} from './Label';
|
17
17
|
import {LabelPosition} from '@react-types/shared';
|
18
18
|
import labelStyles from '@adobe/spectrum-css-temp/components/fieldlabel/vars.css';
|
19
|
-
import {mergeProps,
|
20
|
-
import React, {
|
19
|
+
import {mergeProps, useId} from '@react-aria/utils';
|
20
|
+
import React, {RefObject} from 'react';
|
21
21
|
import {SpectrumFieldProps} from '@react-types/label';
|
22
22
|
import {useFormProps} from '@react-spectrum/form';
|
23
23
|
|
@@ -50,125 +50,108 @@ function Field(props: SpectrumFieldProps, ref: RefObject<HTMLElement>) {
|
|
50
50
|
} = props;
|
51
51
|
let {styleProps} = useStyleProps(otherProps);
|
52
52
|
let hasHelpText = !!description || errorMessage && validationState === 'invalid';
|
53
|
-
let mergedRefs = useMergeRefs((children as ReactElement & {ref: RefObject<HTMLElement>}).ref, ref);
|
54
53
|
let contextualHelpId = useId();
|
55
54
|
|
56
|
-
|
57
|
-
let labelWrapperClass = classNames(
|
55
|
+
let labelWrapperClass = classNames(
|
58
56
|
labelStyles,
|
59
57
|
'spectrum-Field',
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
58
|
+
{
|
59
|
+
'spectrum-Field--positionTop': labelPosition === 'top',
|
60
|
+
'spectrum-Field--positionSide': labelPosition === 'side',
|
61
|
+
'spectrum-Field--alignEnd': labelAlign === 'end',
|
62
|
+
'spectrum-Field--hasContextualHelp': !!props.contextualHelp
|
63
|
+
},
|
66
64
|
styleProps.className,
|
67
65
|
wrapperClassName
|
68
66
|
);
|
69
67
|
|
70
|
-
|
71
|
-
|
68
|
+
children = React.cloneElement(children, mergeProps(children.props, {
|
69
|
+
className: classNames(
|
72
70
|
labelStyles,
|
73
71
|
'spectrum-Field-field'
|
74
72
|
)
|
75
|
-
|
73
|
+
}));
|
76
74
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
75
|
+
let renderHelpText = () => (
|
76
|
+
<HelpText
|
77
|
+
descriptionProps={descriptionProps}
|
78
|
+
errorMessageProps={errorMessageProps}
|
79
|
+
description={description}
|
80
|
+
errorMessage={errorMessage}
|
81
|
+
validationState={validationState}
|
82
|
+
isDisabled={isDisabled}
|
83
|
+
showErrorIcon={showErrorIcon}
|
84
|
+
gridArea="helpText" />
|
87
85
|
);
|
88
86
|
|
89
|
-
|
90
|
-
|
91
|
-
return (
|
92
|
-
<Flex direction="column" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>
|
93
|
-
{children}
|
94
|
-
{hasHelpText && renderHelpText()}
|
95
|
-
</Flex>
|
96
|
-
);
|
97
|
-
}
|
98
|
-
|
87
|
+
let renderChildren = () => {
|
88
|
+
if (labelPosition === 'side') {
|
99
89
|
return (
|
100
|
-
|
90
|
+
<Flex direction="column" UNSAFE_className={classNames(labelStyles, 'spectrum-Field-wrapper')}>
|
101
91
|
{children}
|
102
92
|
{hasHelpText && renderHelpText()}
|
103
|
-
|
93
|
+
</Flex>
|
104
94
|
);
|
105
|
-
}
|
95
|
+
}
|
106
96
|
|
107
|
-
|
97
|
+
return (
|
108
98
|
<>
|
109
|
-
{
|
110
|
-
|
111
|
-
{...labelProps}
|
112
|
-
labelPosition={labelPosition}
|
113
|
-
labelAlign={labelAlign}
|
114
|
-
isRequired={isRequired}
|
115
|
-
necessityIndicator={necessityIndicator}
|
116
|
-
includeNecessityIndicatorInAccessibilityName={includeNecessityIndicatorInAccessibilityName}
|
117
|
-
elementType={elementType}>
|
118
|
-
{label}
|
119
|
-
</Label>
|
120
|
-
)}
|
121
|
-
{label && contextualHelp &&
|
122
|
-
<SlotProvider
|
123
|
-
slots={{
|
124
|
-
actionButton: {
|
125
|
-
UNSAFE_className: classNames(labelStyles, 'spectrum-Field-contextualHelp'),
|
126
|
-
id: contextualHelpId,
|
127
|
-
'aria-labelledby': labelProps?.id ? `${labelProps.id} ${contextualHelpId}` : undefined
|
128
|
-
}
|
129
|
-
}}>
|
130
|
-
{contextualHelp}
|
131
|
-
</SlotProvider>
|
132
|
-
}
|
99
|
+
{children}
|
100
|
+
{hasHelpText && renderHelpText()}
|
133
101
|
</>
|
134
102
|
);
|
103
|
+
};
|
104
|
+
|
105
|
+
let labelAndContextualHelp = (
|
106
|
+
<>
|
107
|
+
{label && (
|
108
|
+
<Label
|
109
|
+
{...labelProps}
|
110
|
+
labelPosition={labelPosition}
|
111
|
+
labelAlign={labelAlign}
|
112
|
+
isRequired={isRequired}
|
113
|
+
necessityIndicator={necessityIndicator}
|
114
|
+
includeNecessityIndicatorInAccessibilityName={includeNecessityIndicatorInAccessibilityName}
|
115
|
+
elementType={elementType}>
|
116
|
+
{label}
|
117
|
+
</Label>
|
118
|
+
)}
|
119
|
+
{label && contextualHelp &&
|
120
|
+
<SlotProvider
|
121
|
+
slots={{
|
122
|
+
actionButton: {
|
123
|
+
UNSAFE_className: classNames(labelStyles, 'spectrum-Field-contextualHelp'),
|
124
|
+
id: contextualHelpId,
|
125
|
+
'aria-labelledby': labelProps?.id ? `${labelProps.id} ${contextualHelpId}` : undefined
|
126
|
+
}
|
127
|
+
}}>
|
128
|
+
{contextualHelp}
|
129
|
+
</SlotProvider>
|
130
|
+
}
|
131
|
+
</>
|
132
|
+
);
|
135
133
|
|
136
134
|
// Need to add an extra wrapper for the label and contextual help if labelPosition is side,
|
137
135
|
// so that the table layout works inside forms.
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
</div>
|
136
|
+
if (isInForm && labelPosition === 'side' && label && contextualHelp) {
|
137
|
+
labelAndContextualHelp = (
|
138
|
+
<div className={classNames(labelStyles, 'spectrum-Field-labelCell')}>
|
139
|
+
<div className={classNames(labelStyles, 'spectrum-Field-labelWrapper')}>
|
140
|
+
{labelAndContextualHelp}
|
144
141
|
</div>
|
145
|
-
);
|
146
|
-
}
|
147
|
-
|
148
|
-
return (
|
149
|
-
<div
|
150
|
-
{...styleProps}
|
151
|
-
{...wrapperProps}
|
152
|
-
ref={ref as RefObject<HTMLDivElement>}
|
153
|
-
className={labelWrapperClass}>
|
154
|
-
{labelAndContextualHelp}
|
155
|
-
{renderChildren()}
|
156
142
|
</div>
|
157
143
|
);
|
158
144
|
}
|
159
145
|
|
160
|
-
return
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
}
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
return useCallback(
|
170
|
-
mergeRefs(...refs) as (instance: (T | null)) => void,
|
171
|
-
[...refs]
|
146
|
+
return (
|
147
|
+
<div
|
148
|
+
{...styleProps}
|
149
|
+
{...wrapperProps}
|
150
|
+
ref={ref as RefObject<HTMLDivElement>}
|
151
|
+
className={labelWrapperClass}>
|
152
|
+
{labelAndContextualHelp}
|
153
|
+
{renderChildren()}
|
154
|
+
</div>
|
172
155
|
);
|
173
156
|
}
|
174
157
|
|