@wistia/ui 0.6.26 → 0.6.27
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 +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +27 -3
- package/dist/index.d.ts +27 -3
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -217,7 +217,7 @@ type BaseButtonProps = {
|
|
|
217
217
|
*
|
|
218
218
|
* @type ReactNode
|
|
219
219
|
*/
|
|
220
|
-
children
|
|
220
|
+
children: ReactNode;
|
|
221
221
|
/**
|
|
222
222
|
* Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
|
|
223
223
|
*/
|
|
@@ -283,6 +283,9 @@ type ButtonAsLinkProps = BaseButtonProps & ComponentPropsWithRef<'a'> & LinkProp
|
|
|
283
283
|
type?: LinkTypes;
|
|
284
284
|
};
|
|
285
285
|
type ButtonAsButtonProps = BaseButtonProps & ComponentPropsWithRef<'button'> & {
|
|
286
|
+
/**
|
|
287
|
+
* If supplied, the button will render as a link
|
|
288
|
+
*/
|
|
286
289
|
href?: never;
|
|
287
290
|
type?: 'button' | 'reset' | 'submit';
|
|
288
291
|
children: ReactNode;
|
|
@@ -384,11 +387,18 @@ declare const useWindowSize: (interval?: number) => {
|
|
|
384
387
|
};
|
|
385
388
|
|
|
386
389
|
type ActionButtonProps = {
|
|
390
|
+
/**
|
|
391
|
+
* @override
|
|
392
|
+
* The text to display for the ActionButton
|
|
393
|
+
*
|
|
394
|
+
*/
|
|
395
|
+
children: ReactNode;
|
|
387
396
|
/**
|
|
388
397
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
389
398
|
*/
|
|
390
399
|
icon: JSX.Element;
|
|
391
400
|
/**
|
|
401
|
+
* @override
|
|
392
402
|
* Disables the button
|
|
393
403
|
*/
|
|
394
404
|
disabled?: boolean;
|
|
@@ -405,11 +415,18 @@ type ActionButtonProps = {
|
|
|
405
415
|
* Action Button component is used as one of a group of main actions on the page. It composes [Button]().
|
|
406
416
|
*/
|
|
407
417
|
declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
418
|
+
/**
|
|
419
|
+
* @override
|
|
420
|
+
* The text to display for the ActionButton
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
children: ReactNode;
|
|
408
424
|
/**
|
|
409
425
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
410
426
|
*/
|
|
411
427
|
icon: JSX.Element;
|
|
412
428
|
/**
|
|
429
|
+
* @override
|
|
413
430
|
* Disables the button
|
|
414
431
|
*/
|
|
415
432
|
disabled?: boolean;
|
|
@@ -422,11 +439,18 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
422
439
|
*/
|
|
423
440
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
424
441
|
} & Omit<ButtonAsButtonProps, "size" | "leftIcon" | "rightIcon" | "isLoading" | "fullWidth" | "unstyled" | "variant">, "ref"> | Omit<{
|
|
442
|
+
/**
|
|
443
|
+
* @override
|
|
444
|
+
* The text to display for the ActionButton
|
|
445
|
+
*
|
|
446
|
+
*/
|
|
447
|
+
children: ReactNode;
|
|
425
448
|
/**
|
|
426
449
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
427
450
|
*/
|
|
428
451
|
icon: JSX.Element;
|
|
429
452
|
/**
|
|
453
|
+
* @override
|
|
430
454
|
* Disables the button
|
|
431
455
|
*/
|
|
432
456
|
disabled?: boolean;
|
|
@@ -1127,7 +1151,7 @@ type FormProps<T> = Omit<ComponentPropsWithoutRef<'form'>, 'action' | 'aria-labe
|
|
|
1127
1151
|
* Sets the default label position for all `FormFields` within the form. Will be ignored if labelPosition
|
|
1128
1152
|
* is set on the `FormField` itself.
|
|
1129
1153
|
*/
|
|
1130
|
-
labelPosition?: 'block' | 'inline';
|
|
1154
|
+
labelPosition?: 'block' | 'inline-compact' | 'inline';
|
|
1131
1155
|
/**
|
|
1132
1156
|
* The form elements used in the form
|
|
1133
1157
|
*/
|
|
@@ -1193,7 +1217,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1193
1217
|
/**
|
|
1194
1218
|
* Setting to `inline` will have the label and input appear on the same line. Setting to `block` will have the label above the input.
|
|
1195
1219
|
*/
|
|
1196
|
-
labelPosition?: 'block' | 'inline';
|
|
1220
|
+
labelPosition?: 'block' | 'inline-compact' | 'inline';
|
|
1197
1221
|
};
|
|
1198
1222
|
/**
|
|
1199
1223
|
* Component description goes here
|
package/dist/index.d.ts
CHANGED
|
@@ -217,7 +217,7 @@ type BaseButtonProps = {
|
|
|
217
217
|
*
|
|
218
218
|
* @type ReactNode
|
|
219
219
|
*/
|
|
220
|
-
children
|
|
220
|
+
children: ReactNode;
|
|
221
221
|
/**
|
|
222
222
|
* Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
|
|
223
223
|
*/
|
|
@@ -283,6 +283,9 @@ type ButtonAsLinkProps = BaseButtonProps & ComponentPropsWithRef<'a'> & LinkProp
|
|
|
283
283
|
type?: LinkTypes;
|
|
284
284
|
};
|
|
285
285
|
type ButtonAsButtonProps = BaseButtonProps & ComponentPropsWithRef<'button'> & {
|
|
286
|
+
/**
|
|
287
|
+
* If supplied, the button will render as a link
|
|
288
|
+
*/
|
|
286
289
|
href?: never;
|
|
287
290
|
type?: 'button' | 'reset' | 'submit';
|
|
288
291
|
children: ReactNode;
|
|
@@ -384,11 +387,18 @@ declare const useWindowSize: (interval?: number) => {
|
|
|
384
387
|
};
|
|
385
388
|
|
|
386
389
|
type ActionButtonProps = {
|
|
390
|
+
/**
|
|
391
|
+
* @override
|
|
392
|
+
* The text to display for the ActionButton
|
|
393
|
+
*
|
|
394
|
+
*/
|
|
395
|
+
children: ReactNode;
|
|
387
396
|
/**
|
|
388
397
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
389
398
|
*/
|
|
390
399
|
icon: JSX.Element;
|
|
391
400
|
/**
|
|
401
|
+
* @override
|
|
392
402
|
* Disables the button
|
|
393
403
|
*/
|
|
394
404
|
disabled?: boolean;
|
|
@@ -405,11 +415,18 @@ type ActionButtonProps = {
|
|
|
405
415
|
* Action Button component is used as one of a group of main actions on the page. It composes [Button]().
|
|
406
416
|
*/
|
|
407
417
|
declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
418
|
+
/**
|
|
419
|
+
* @override
|
|
420
|
+
* The text to display for the ActionButton
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
children: ReactNode;
|
|
408
424
|
/**
|
|
409
425
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
410
426
|
*/
|
|
411
427
|
icon: JSX.Element;
|
|
412
428
|
/**
|
|
429
|
+
* @override
|
|
413
430
|
* Disables the button
|
|
414
431
|
*/
|
|
415
432
|
disabled?: boolean;
|
|
@@ -422,11 +439,18 @@ declare const ActionButton: react.ForwardRefExoticComponent<(Omit<{
|
|
|
422
439
|
*/
|
|
423
440
|
variant?: "default" | "gated" | "menu-down" | "menu-up";
|
|
424
441
|
} & Omit<ButtonAsButtonProps, "size" | "leftIcon" | "rightIcon" | "isLoading" | "fullWidth" | "unstyled" | "variant">, "ref"> | Omit<{
|
|
442
|
+
/**
|
|
443
|
+
* @override
|
|
444
|
+
* The text to display for the ActionButton
|
|
445
|
+
*
|
|
446
|
+
*/
|
|
447
|
+
children: ReactNode;
|
|
425
448
|
/**
|
|
426
449
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
427
450
|
*/
|
|
428
451
|
icon: JSX.Element;
|
|
429
452
|
/**
|
|
453
|
+
* @override
|
|
430
454
|
* Disables the button
|
|
431
455
|
*/
|
|
432
456
|
disabled?: boolean;
|
|
@@ -1127,7 +1151,7 @@ type FormProps<T> = Omit<ComponentPropsWithoutRef<'form'>, 'action' | 'aria-labe
|
|
|
1127
1151
|
* Sets the default label position for all `FormFields` within the form. Will be ignored if labelPosition
|
|
1128
1152
|
* is set on the `FormField` itself.
|
|
1129
1153
|
*/
|
|
1130
|
-
labelPosition?: 'block' | 'inline';
|
|
1154
|
+
labelPosition?: 'block' | 'inline-compact' | 'inline';
|
|
1131
1155
|
/**
|
|
1132
1156
|
* The form elements used in the form
|
|
1133
1157
|
*/
|
|
@@ -1193,7 +1217,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1193
1217
|
/**
|
|
1194
1218
|
* Setting to `inline` will have the label and input appear on the same line. Setting to `block` will have the label above the input.
|
|
1195
1219
|
*/
|
|
1196
|
-
labelPosition?: 'block' | 'inline';
|
|
1220
|
+
labelPosition?: 'block' | 'inline-compact' | 'inline';
|
|
1197
1221
|
};
|
|
1198
1222
|
/**
|
|
1199
1223
|
* Component description goes here
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.27
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9108,6 +9108,12 @@ var StyledFormField = styled34.div`
|
|
|
9108
9108
|
grid-template-columns: auto 1fr;
|
|
9109
9109
|
grid-template-rows: auto 1fr;
|
|
9110
9110
|
|
|
9111
|
+
&[data-label-position='inline-compact'] {
|
|
9112
|
+
gap: var(--form-field-spacing-inline);
|
|
9113
|
+
grid-template-columns: auto 1fr;
|
|
9114
|
+
grid-template-rows: 1fr auto;
|
|
9115
|
+
}
|
|
9116
|
+
|
|
9111
9117
|
&[data-label-position='inline'] {
|
|
9112
9118
|
gap: var(--form-field-spacing-inline);
|
|
9113
9119
|
grid-template-columns: minmax(auto, 1fr) 1fr;
|