@wistia/ui 0.4.5 → 0.4.6-beta.12aa477c.cc6313b
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 +129 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.mjs +106 -96
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -60,15 +60,15 @@ type AddEventListenerType = (type: string, listener: (evt: Event) => void, optio
|
|
|
60
60
|
type RemoveEventListenerType = (type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions | boolean) => void;
|
|
61
61
|
declare const useEvent: <T extends Event>(eventName: Parameters<AddEventListenerType>[0], eventHandler: (event: T) => unknown, eventTarget?: unknown, eventOptions?: Parameters<RemoveEventListenerType>[2]) => void;
|
|
62
62
|
|
|
63
|
+
type EventHandler = (event: KeyboardEvent) => void;
|
|
63
64
|
type KeyFilterPredicate = (evt: KeyboardEvent) => boolean;
|
|
64
65
|
type KeyFilter = KeyFilterPredicate | boolean | string | null | undefined;
|
|
65
|
-
type EventHandler = (event: KeyboardEvent) => unknown;
|
|
66
66
|
type UseKeyOptions = {
|
|
67
67
|
eventName?: string;
|
|
68
68
|
eventTarget?: Parameters<typeof useEvent>[2];
|
|
69
69
|
eventOptions?: Parameters<typeof useEvent>[3];
|
|
70
70
|
};
|
|
71
|
-
declare const useKey: (key: KeyFilter, eventHandler: EventHandler,
|
|
71
|
+
declare const useKey: (key: KeyFilter, eventHandler: EventHandler, { eventName, eventTarget, eventOptions }?: UseKeyOptions) => void;
|
|
72
72
|
|
|
73
73
|
type AriaLiveContextType = {
|
|
74
74
|
announce: (message: string, politeness?: 'assertive' | 'polite') => void;
|
|
@@ -526,14 +526,15 @@ type BreadcrumbsProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
526
526
|
children: ReactNode;
|
|
527
527
|
};
|
|
528
528
|
/**
|
|
529
|
-
* Used to display a screens's location within a hierarchical structure
|
|
529
|
+
* Used to display a screens's location within a hierarchical structure. Each `Breadcrumb` is a composed version of
|
|
530
|
+
* [Button](?path=/docs/components-button--docs). See it's documentation for additional functionality.
|
|
530
531
|
*/
|
|
531
532
|
declare const Breadcrumbs: {
|
|
532
533
|
({ children, ...props }: BreadcrumbsProps): JSX.Element;
|
|
533
534
|
displayName: string;
|
|
534
535
|
};
|
|
535
536
|
|
|
536
|
-
type BreadcrumbProps = {
|
|
537
|
+
type BreadcrumbProps = ButtonAsLinkProps & {
|
|
537
538
|
/**
|
|
538
539
|
* An [Icon](../?path=/docs/components-icon--docs) to show at the beginning of the breadcrumb
|
|
539
540
|
* */
|
|
@@ -547,7 +548,7 @@ type BreadcrumbProps = {
|
|
|
547
548
|
*/
|
|
548
549
|
href: string;
|
|
549
550
|
};
|
|
550
|
-
declare const Breadcrumb: ({ icon, href, children }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
551
|
+
declare const Breadcrumb: ({ icon, href, children, ...props }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
551
552
|
|
|
552
553
|
type ButtonGroupProps = ComponentPropsWithoutRef<'div'> & {
|
|
553
554
|
/**
|
|
@@ -2162,4 +2163,4 @@ declare const WistiaLogo: {
|
|
|
2162
2163
|
displayName: string;
|
|
2163
2164
|
};
|
|
2164
2165
|
|
|
2165
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
|
2166
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -60,15 +60,15 @@ type AddEventListenerType = (type: string, listener: (evt: Event) => void, optio
|
|
|
60
60
|
type RemoveEventListenerType = (type: string, listener: (evt: Event) => void, options?: AddEventListenerOptions | boolean) => void;
|
|
61
61
|
declare const useEvent: <T extends Event>(eventName: Parameters<AddEventListenerType>[0], eventHandler: (event: T) => unknown, eventTarget?: unknown, eventOptions?: Parameters<RemoveEventListenerType>[2]) => void;
|
|
62
62
|
|
|
63
|
+
type EventHandler = (event: KeyboardEvent) => void;
|
|
63
64
|
type KeyFilterPredicate = (evt: KeyboardEvent) => boolean;
|
|
64
65
|
type KeyFilter = KeyFilterPredicate | boolean | string | null | undefined;
|
|
65
|
-
type EventHandler = (event: KeyboardEvent) => unknown;
|
|
66
66
|
type UseKeyOptions = {
|
|
67
67
|
eventName?: string;
|
|
68
68
|
eventTarget?: Parameters<typeof useEvent>[2];
|
|
69
69
|
eventOptions?: Parameters<typeof useEvent>[3];
|
|
70
70
|
};
|
|
71
|
-
declare const useKey: (key: KeyFilter, eventHandler: EventHandler,
|
|
71
|
+
declare const useKey: (key: KeyFilter, eventHandler: EventHandler, { eventName, eventTarget, eventOptions }?: UseKeyOptions) => void;
|
|
72
72
|
|
|
73
73
|
type AriaLiveContextType = {
|
|
74
74
|
announce: (message: string, politeness?: 'assertive' | 'polite') => void;
|
|
@@ -526,14 +526,15 @@ type BreadcrumbsProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
526
526
|
children: ReactNode;
|
|
527
527
|
};
|
|
528
528
|
/**
|
|
529
|
-
* Used to display a screens's location within a hierarchical structure
|
|
529
|
+
* Used to display a screens's location within a hierarchical structure. Each `Breadcrumb` is a composed version of
|
|
530
|
+
* [Button](?path=/docs/components-button--docs). See it's documentation for additional functionality.
|
|
530
531
|
*/
|
|
531
532
|
declare const Breadcrumbs: {
|
|
532
533
|
({ children, ...props }: BreadcrumbsProps): JSX.Element;
|
|
533
534
|
displayName: string;
|
|
534
535
|
};
|
|
535
536
|
|
|
536
|
-
type BreadcrumbProps = {
|
|
537
|
+
type BreadcrumbProps = ButtonAsLinkProps & {
|
|
537
538
|
/**
|
|
538
539
|
* An [Icon](../?path=/docs/components-icon--docs) to show at the beginning of the breadcrumb
|
|
539
540
|
* */
|
|
@@ -547,7 +548,7 @@ type BreadcrumbProps = {
|
|
|
547
548
|
*/
|
|
548
549
|
href: string;
|
|
549
550
|
};
|
|
550
|
-
declare const Breadcrumb: ({ icon, href, children }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
551
|
+
declare const Breadcrumb: ({ icon, href, children, ...props }: BreadcrumbProps) => react_jsx_runtime.JSX.Element;
|
|
551
552
|
|
|
552
553
|
type ButtonGroupProps = ComponentPropsWithoutRef<'div'> & {
|
|
553
554
|
/**
|
|
@@ -2162,4 +2163,4 @@ declare const WistiaLogo: {
|
|
|
2162
2163
|
displayName: string;
|
|
2163
2164
|
};
|
|
2164
2165
|
|
|
2165
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
|
2166
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarInstanceType, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Checkbox, CheckboxGroup, CheckboxMenuItem, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Divider, Ellipsis, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Heading, type HeadingProps, Icon, IconButton, type IconButtonProps, type IconNameType, Input, type InputProps, Label, type LabelProps, Link, type LinkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Radio, RadioGroup, RadioMenuItem, type RadioProps, ScreenReaderOnly, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|