@react-types/label 3.9.16 → 3.10.0
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/package.json +6 -4
- package/src/index.d.ts +1 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/label",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,13 +9,15 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-
|
|
12
|
+
"@react-spectrum/label": "^3.17.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"react": "^
|
|
15
|
+
"@react-spectrum/provider": "^3.0.0",
|
|
16
|
+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
|
|
17
|
+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
16
18
|
},
|
|
17
19
|
"publishConfig": {
|
|
18
20
|
"access": "public"
|
|
19
21
|
},
|
|
20
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
|
|
21
23
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -10,33 +10,4 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
import {ElementType, HTMLAttributes, LabelHTMLAttributes, ReactElement, ReactNode} from 'react';
|
|
15
|
-
|
|
16
|
-
export interface LabelProps {
|
|
17
|
-
children?: ReactNode,
|
|
18
|
-
htmlFor?: string, // for compatibility with React
|
|
19
|
-
for?: string,
|
|
20
|
-
elementType?: ElementType
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface SpectrumLabelPropsBase extends LabelProps, DOMProps, StyleProps {
|
|
24
|
-
labelPosition?: LabelPosition, // default top
|
|
25
|
-
labelAlign?: Alignment, // default start
|
|
26
|
-
isRequired?: boolean,
|
|
27
|
-
necessityIndicator?: NecessityIndicator, // default icon
|
|
28
|
-
includeNecessityIndicatorInAccessibilityName?: boolean
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface SpectrumLabelProps extends SpectrumLabelPropsBase, HTMLAttributes<HTMLElement> {}
|
|
32
|
-
|
|
33
|
-
export interface SpectrumFieldProps extends SpectrumLabelPropsBase, SpectrumHelpTextProps, Omit<Validation<any>, 'validationState'>, SpectrumFieldValidation<any>, Partial<ValidationResult> {
|
|
34
|
-
children: ReactElement,
|
|
35
|
-
label?: ReactNode,
|
|
36
|
-
contextualHelp?: ReactNode,
|
|
37
|
-
labelProps?: LabelHTMLAttributes<HTMLLabelElement>,
|
|
38
|
-
descriptionProps?: HTMLAttributes<HTMLElement>,
|
|
39
|
-
errorMessageProps?: HTMLAttributes<HTMLElement>,
|
|
40
|
-
wrapperClassName?: string,
|
|
41
|
-
wrapperProps?: HTMLAttributes<HTMLElement>
|
|
42
|
-
}
|
|
13
|
+
export {LabelProps, SpectrumLabelProps, SpectrumFieldProps} from '@react-spectrum/label';
|