@wistia/ui 0.6.21 → 0.6.22-beta.4a9bd6c4.abe6245
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/index.cjs +155 -146
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +25 -9
- package/dist/index.d.ts +25 -9
- package/dist/index.mjs +107 -98
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -828,7 +828,7 @@ declare const Card: {
|
|
|
828
828
|
};
|
|
829
829
|
|
|
830
830
|
type CheckboxSizeType = 'lg' | 'md' | 'sm';
|
|
831
|
-
declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "size"> & {
|
|
831
|
+
declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "onChange" | "size" | "hideLabel"> & {
|
|
832
832
|
/**
|
|
833
833
|
* Indicates the state of the checkbox
|
|
834
834
|
*/
|
|
@@ -844,7 +844,7 @@ declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.Detailed
|
|
|
844
844
|
/**
|
|
845
845
|
* The label for the checkbox
|
|
846
846
|
*/
|
|
847
|
-
label
|
|
847
|
+
label: JSX.Element | string;
|
|
848
848
|
/**
|
|
849
849
|
* The description for the checkbox
|
|
850
850
|
*/
|
|
@@ -869,6 +869,10 @@ declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.Detailed
|
|
|
869
869
|
* The value given as data when submitted with a `name`.
|
|
870
870
|
*/
|
|
871
871
|
value?: string;
|
|
872
|
+
/**
|
|
873
|
+
* Whether to visually hide the label (it will still be available to screen readers)
|
|
874
|
+
*/
|
|
875
|
+
hideLabel?: boolean;
|
|
872
876
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
873
877
|
|
|
874
878
|
type ClickRegionProps = {
|
|
@@ -1067,7 +1071,7 @@ declare const EditableHeading: ({ children, onValueChange, onEditingChange, tool
|
|
|
1067
1071
|
|
|
1068
1072
|
declare const ellipsisStyle: styled_components.FlattenSimpleInterpolation;
|
|
1069
1073
|
declare const ellipsisFlexParentStyle: styled_components.FlattenSimpleInterpolation;
|
|
1070
|
-
type EllipsisProps = ComponentPropsWithoutRef<'
|
|
1074
|
+
type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
1071
1075
|
/**
|
|
1072
1076
|
* The text that will be truncated with an ellipsis
|
|
1073
1077
|
*/
|
|
@@ -1163,6 +1167,10 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1163
1167
|
* This should be a single child that is a valid form field (or can pretend to be one).
|
|
1164
1168
|
*/
|
|
1165
1169
|
children: JSX.Element;
|
|
1170
|
+
/**
|
|
1171
|
+
* Additional descriptive text to display below the form field
|
|
1172
|
+
*/
|
|
1173
|
+
description?: ReactNode;
|
|
1166
1174
|
/**
|
|
1167
1175
|
* Valid label text
|
|
1168
1176
|
*/
|
|
@@ -1189,10 +1197,10 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1189
1197
|
labelPosition?: 'block' | 'inline';
|
|
1190
1198
|
};
|
|
1191
1199
|
/**
|
|
1192
|
-
*
|
|
1200
|
+
* FormField is a compound component that combines a label, form control, and optional description and error message.
|
|
1193
1201
|
*/
|
|
1194
1202
|
declare const FormField: {
|
|
1195
|
-
({ children,
|
|
1203
|
+
({ children, description, error, id, label, labelPosition, name, value, ...props }: FormFieldProps): JSX.Element;
|
|
1196
1204
|
displayName: string;
|
|
1197
1205
|
};
|
|
1198
1206
|
|
|
@@ -2248,7 +2256,7 @@ declare const ProgressBar: {
|
|
|
2248
2256
|
};
|
|
2249
2257
|
|
|
2250
2258
|
type RadioSizeType = 'lg' | 'md' | 'sm';
|
|
2251
|
-
type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'onChange' | 'size'> & {
|
|
2259
|
+
type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label' | 'onChange' | 'size'> & {
|
|
2252
2260
|
/**
|
|
2253
2261
|
* Indicates the state of the radio
|
|
2254
2262
|
*/
|
|
@@ -2268,7 +2276,7 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'onChange' | 'size'> &
|
|
|
2268
2276
|
/**
|
|
2269
2277
|
* The label for the input
|
|
2270
2278
|
*/
|
|
2271
|
-
label
|
|
2279
|
+
label: JSX.Element | string;
|
|
2272
2280
|
/**
|
|
2273
2281
|
* The description for the radio
|
|
2274
2282
|
*/
|
|
@@ -2294,8 +2302,12 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'onChange' | 'size'> &
|
|
|
2294
2302
|
* The value attribute of the input
|
|
2295
2303
|
*/
|
|
2296
2304
|
value?: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* Whether to visually hide the label (it will still be available to screen readers)
|
|
2307
|
+
*/
|
|
2308
|
+
hideLabel?: boolean;
|
|
2297
2309
|
};
|
|
2298
|
-
declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "size"> & {
|
|
2310
|
+
declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "onChange" | "size" | "hideLabel"> & {
|
|
2299
2311
|
/**
|
|
2300
2312
|
* Indicates the state of the radio
|
|
2301
2313
|
*/
|
|
@@ -2315,7 +2327,7 @@ declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
|
|
|
2315
2327
|
/**
|
|
2316
2328
|
* The label for the input
|
|
2317
2329
|
*/
|
|
2318
|
-
label
|
|
2330
|
+
label: JSX.Element | string;
|
|
2319
2331
|
/**
|
|
2320
2332
|
* The description for the radio
|
|
2321
2333
|
*/
|
|
@@ -2341,6 +2353,10 @@ declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
|
|
|
2341
2353
|
* The value attribute of the input
|
|
2342
2354
|
*/
|
|
2343
2355
|
value?: string;
|
|
2356
|
+
/**
|
|
2357
|
+
* Whether to visually hide the label (it will still be available to screen readers)
|
|
2358
|
+
*/
|
|
2359
|
+
hideLabel?: boolean;
|
|
2344
2360
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
2345
2361
|
|
|
2346
2362
|
type ScreenReaderOnlyProps = ComponentPropsWithoutRef<'div'> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -828,7 +828,7 @@ declare const Card: {
|
|
|
828
828
|
};
|
|
829
829
|
|
|
830
830
|
type CheckboxSizeType = 'lg' | 'md' | 'sm';
|
|
831
|
-
declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "size"> & {
|
|
831
|
+
declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "onChange" | "size" | "hideLabel"> & {
|
|
832
832
|
/**
|
|
833
833
|
* Indicates the state of the checkbox
|
|
834
834
|
*/
|
|
@@ -844,7 +844,7 @@ declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.Detailed
|
|
|
844
844
|
/**
|
|
845
845
|
* The label for the checkbox
|
|
846
846
|
*/
|
|
847
|
-
label
|
|
847
|
+
label: JSX.Element | string;
|
|
848
848
|
/**
|
|
849
849
|
* The description for the checkbox
|
|
850
850
|
*/
|
|
@@ -869,6 +869,10 @@ declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.Detailed
|
|
|
869
869
|
* The value given as data when submitted with a `name`.
|
|
870
870
|
*/
|
|
871
871
|
value?: string;
|
|
872
|
+
/**
|
|
873
|
+
* Whether to visually hide the label (it will still be available to screen readers)
|
|
874
|
+
*/
|
|
875
|
+
hideLabel?: boolean;
|
|
872
876
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
873
877
|
|
|
874
878
|
type ClickRegionProps = {
|
|
@@ -1067,7 +1071,7 @@ declare const EditableHeading: ({ children, onValueChange, onEditingChange, tool
|
|
|
1067
1071
|
|
|
1068
1072
|
declare const ellipsisStyle: styled_components.FlattenSimpleInterpolation;
|
|
1069
1073
|
declare const ellipsisFlexParentStyle: styled_components.FlattenSimpleInterpolation;
|
|
1070
|
-
type EllipsisProps = ComponentPropsWithoutRef<'
|
|
1074
|
+
type EllipsisProps = ComponentPropsWithoutRef<'span'> & {
|
|
1071
1075
|
/**
|
|
1072
1076
|
* The text that will be truncated with an ellipsis
|
|
1073
1077
|
*/
|
|
@@ -1163,6 +1167,10 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1163
1167
|
* This should be a single child that is a valid form field (or can pretend to be one).
|
|
1164
1168
|
*/
|
|
1165
1169
|
children: JSX.Element;
|
|
1170
|
+
/**
|
|
1171
|
+
* Additional descriptive text to display below the form field
|
|
1172
|
+
*/
|
|
1173
|
+
description?: ReactNode;
|
|
1166
1174
|
/**
|
|
1167
1175
|
* Valid label text
|
|
1168
1176
|
*/
|
|
@@ -1189,10 +1197,10 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1189
1197
|
labelPosition?: 'block' | 'inline';
|
|
1190
1198
|
};
|
|
1191
1199
|
/**
|
|
1192
|
-
*
|
|
1200
|
+
* FormField is a compound component that combines a label, form control, and optional description and error message.
|
|
1193
1201
|
*/
|
|
1194
1202
|
declare const FormField: {
|
|
1195
|
-
({ children,
|
|
1203
|
+
({ children, description, error, id, label, labelPosition, name, value, ...props }: FormFieldProps): JSX.Element;
|
|
1196
1204
|
displayName: string;
|
|
1197
1205
|
};
|
|
1198
1206
|
|
|
@@ -2248,7 +2256,7 @@ declare const ProgressBar: {
|
|
|
2248
2256
|
};
|
|
2249
2257
|
|
|
2250
2258
|
type RadioSizeType = 'lg' | 'md' | 'sm';
|
|
2251
|
-
type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'onChange' | 'size'> & {
|
|
2259
|
+
type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'hideLabel' | 'label' | 'onChange' | 'size'> & {
|
|
2252
2260
|
/**
|
|
2253
2261
|
* Indicates the state of the radio
|
|
2254
2262
|
*/
|
|
@@ -2268,7 +2276,7 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'onChange' | 'size'> &
|
|
|
2268
2276
|
/**
|
|
2269
2277
|
* The label for the input
|
|
2270
2278
|
*/
|
|
2271
|
-
label
|
|
2279
|
+
label: JSX.Element | string;
|
|
2272
2280
|
/**
|
|
2273
2281
|
* The description for the radio
|
|
2274
2282
|
*/
|
|
@@ -2294,8 +2302,12 @@ type RadioProps = Omit<ComponentPropsWithoutRef<'input'>, 'onChange' | 'size'> &
|
|
|
2294
2302
|
* The value attribute of the input
|
|
2295
2303
|
*/
|
|
2296
2304
|
value?: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* Whether to visually hide the label (it will still be available to screen readers)
|
|
2307
|
+
*/
|
|
2308
|
+
hideLabel?: boolean;
|
|
2297
2309
|
};
|
|
2298
|
-
declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "size"> & {
|
|
2310
|
+
declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "label" | "onChange" | "size" | "hideLabel"> & {
|
|
2299
2311
|
/**
|
|
2300
2312
|
* Indicates the state of the radio
|
|
2301
2313
|
*/
|
|
@@ -2315,7 +2327,7 @@ declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
|
|
|
2315
2327
|
/**
|
|
2316
2328
|
* The label for the input
|
|
2317
2329
|
*/
|
|
2318
|
-
label
|
|
2330
|
+
label: JSX.Element | string;
|
|
2319
2331
|
/**
|
|
2320
2332
|
* The description for the radio
|
|
2321
2333
|
*/
|
|
@@ -2341,6 +2353,10 @@ declare const Radio: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
|
|
|
2341
2353
|
* The value attribute of the input
|
|
2342
2354
|
*/
|
|
2343
2355
|
value?: string;
|
|
2356
|
+
/**
|
|
2357
|
+
* Whether to visually hide the label (it will still be available to screen readers)
|
|
2358
|
+
*/
|
|
2359
|
+
hideLabel?: boolean;
|
|
2344
2360
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
2345
2361
|
|
|
2346
2362
|
type ScreenReaderOnlyProps = ComponentPropsWithoutRef<'div'> & {
|