@wistia/ui 0.15.14 → 0.16.0-beta.dd70b7a0.caf3e8e
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 +52 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -3
- package/dist/index.d.ts +23 -3
- package/dist/index.mjs +52 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
package/dist/index.d.mts
CHANGED
|
@@ -171,7 +171,7 @@ declare const useOnClickOutside: (ref: RefObject<HTMLElement | null | undefined>
|
|
|
171
171
|
|
|
172
172
|
declare const usePreviousValue: <T>(value: T) => T | undefined;
|
|
173
173
|
|
|
174
|
-
declare const colorSchemeOptions: readonly ["
|
|
174
|
+
declare const colorSchemeOptions: readonly ["standard", "inherit", "error", "info", "success", "warning", "blue", "green", "orange", "pink", "purple", "red", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
|
|
175
175
|
type ColorSchemeTypes = (typeof colorSchemeOptions)[number];
|
|
176
176
|
type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
177
177
|
/**
|
|
@@ -664,6 +664,22 @@ declare const Banner: {
|
|
|
664
664
|
displayName: string;
|
|
665
665
|
};
|
|
666
666
|
|
|
667
|
+
type BannerImageProps = ComponentPropsWithoutRef<'div'> & {
|
|
668
|
+
/**
|
|
669
|
+
* The URL of the image to display in the banner
|
|
670
|
+
*/
|
|
671
|
+
src: string;
|
|
672
|
+
/**
|
|
673
|
+
* Alternative text description of the image for accessibility
|
|
674
|
+
*/
|
|
675
|
+
alt?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Position of the image within the banner layout. Only applies in horizontal orientation.
|
|
678
|
+
*/
|
|
679
|
+
alignment?: 'left' | 'right';
|
|
680
|
+
};
|
|
681
|
+
declare const BannerImage: ({ alignment, alt, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
|
|
682
|
+
|
|
667
683
|
type UnknownRecord = Record<string, unknown>;
|
|
668
684
|
type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
|
|
669
685
|
type ExtendedProps<Props = UnknownRecord, OverrideProps = UnknownRecord> = Omit<Props, keyof OverrideProps> & OverrideProps;
|
|
@@ -2373,6 +2389,10 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2373
2389
|
* The name attribute of the field. It will map to the form data passed into `useFormState`.
|
|
2374
2390
|
*/
|
|
2375
2391
|
name: string;
|
|
2392
|
+
/**
|
|
2393
|
+
* Use if label describes a required form component
|
|
2394
|
+
*/
|
|
2395
|
+
required?: boolean;
|
|
2376
2396
|
/**
|
|
2377
2397
|
* A value that overrides the basic value. This should pair with `onChange`.
|
|
2378
2398
|
*/
|
|
@@ -2386,7 +2406,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2386
2406
|
* FormField is a compound component that combines a label, form control, and optional description and error message.
|
|
2387
2407
|
*/
|
|
2388
2408
|
declare const FormField: {
|
|
2389
|
-
({ children, description, error, id, label, labelPosition, name, value, ...props }: FormFieldProps): JSX$1.Element;
|
|
2409
|
+
({ children, description, error, id, label, labelPosition, name, required, value, ...props }: FormFieldProps): JSX$1.Element;
|
|
2390
2410
|
displayName: string;
|
|
2391
2411
|
};
|
|
2392
2412
|
|
|
@@ -4316,4 +4336,4 @@ declare const SplitButton: {
|
|
|
4316
4336
|
displayName: string;
|
|
4317
4337
|
};
|
|
4318
4338
|
|
|
4319
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerIcon, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, DataList, DataListItem, DataListItemLabel, DataListItemValue, type DataListProps, Divider, EditableHeading, type EditableHeadingProps, EditableText, EditableTextCancelButton, EditableTextContext, EditableTextDisplay, EditableTextInput, EditableTextLabel, type EditableTextProps, EditableTextRoot, type EditableTextRootProps, EditableTextSubmitButton, EditableTextTrigger, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Mark, type MarkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, ModalCallout, ModalCallouts, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, ScrollArea, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, SplitButton, type SplitButtonProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
|
|
4339
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, BannerImage, type BannerProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerIcon, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, DataList, DataListItem, DataListItemLabel, DataListItemValue, type DataListProps, Divider, EditableHeading, type EditableHeadingProps, EditableText, EditableTextCancelButton, EditableTextContext, EditableTextDisplay, EditableTextInput, EditableTextLabel, type EditableTextProps, EditableTextRoot, type EditableTextRootProps, EditableTextSubmitButton, EditableTextTrigger, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Mark, type MarkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, ModalCallout, ModalCallouts, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, ScrollArea, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, SplitButton, type SplitButtonProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -171,7 +171,7 @@ declare const useOnClickOutside: (ref: RefObject<HTMLElement | null | undefined>
|
|
|
171
171
|
|
|
172
172
|
declare const usePreviousValue: <T>(value: T) => T | undefined;
|
|
173
173
|
|
|
174
|
-
declare const colorSchemeOptions: readonly ["
|
|
174
|
+
declare const colorSchemeOptions: readonly ["standard", "inherit", "error", "info", "success", "warning", "blue", "green", "orange", "pink", "purple", "red", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
|
|
175
175
|
type ColorSchemeTypes = (typeof colorSchemeOptions)[number];
|
|
176
176
|
type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
|
|
177
177
|
/**
|
|
@@ -664,6 +664,22 @@ declare const Banner: {
|
|
|
664
664
|
displayName: string;
|
|
665
665
|
};
|
|
666
666
|
|
|
667
|
+
type BannerImageProps = ComponentPropsWithoutRef<'div'> & {
|
|
668
|
+
/**
|
|
669
|
+
* The URL of the image to display in the banner
|
|
670
|
+
*/
|
|
671
|
+
src: string;
|
|
672
|
+
/**
|
|
673
|
+
* Alternative text description of the image for accessibility
|
|
674
|
+
*/
|
|
675
|
+
alt?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Position of the image within the banner layout. Only applies in horizontal orientation.
|
|
678
|
+
*/
|
|
679
|
+
alignment?: 'left' | 'right';
|
|
680
|
+
};
|
|
681
|
+
declare const BannerImage: ({ alignment, alt, src, ...props }: BannerImageProps) => react_jsx_runtime.JSX.Element;
|
|
682
|
+
|
|
667
683
|
type UnknownRecord = Record<string, unknown>;
|
|
668
684
|
type PropsOf<Component extends ElementType> = ComponentPropsWithoutRef<Component>;
|
|
669
685
|
type ExtendedProps<Props = UnknownRecord, OverrideProps = UnknownRecord> = Omit<Props, keyof OverrideProps> & OverrideProps;
|
|
@@ -2373,6 +2389,10 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2373
2389
|
* The name attribute of the field. It will map to the form data passed into `useFormState`.
|
|
2374
2390
|
*/
|
|
2375
2391
|
name: string;
|
|
2392
|
+
/**
|
|
2393
|
+
* Use if label describes a required form component
|
|
2394
|
+
*/
|
|
2395
|
+
required?: boolean;
|
|
2376
2396
|
/**
|
|
2377
2397
|
* A value that overrides the basic value. This should pair with `onChange`.
|
|
2378
2398
|
*/
|
|
@@ -2386,7 +2406,7 @@ type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2386
2406
|
* FormField is a compound component that combines a label, form control, and optional description and error message.
|
|
2387
2407
|
*/
|
|
2388
2408
|
declare const FormField: {
|
|
2389
|
-
({ children, description, error, id, label, labelPosition, name, value, ...props }: FormFieldProps): JSX$1.Element;
|
|
2409
|
+
({ children, description, error, id, label, labelPosition, name, required, value, ...props }: FormFieldProps): JSX$1.Element;
|
|
2390
2410
|
displayName: string;
|
|
2391
2411
|
};
|
|
2392
2412
|
|
|
@@ -4316,4 +4336,4 @@ declare const SplitButton: {
|
|
|
4316
4336
|
displayName: string;
|
|
4317
4337
|
};
|
|
4318
4338
|
|
|
4319
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, type BannerProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerIcon, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, DataList, DataListItem, DataListItemLabel, DataListItemValue, type DataListProps, Divider, EditableHeading, type EditableHeadingProps, EditableText, EditableTextCancelButton, EditableTextContext, EditableTextDisplay, EditableTextInput, EditableTextLabel, type EditableTextProps, EditableTextRoot, type EditableTextRootProps, EditableTextSubmitButton, EditableTextTrigger, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Mark, type MarkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, ModalCallout, ModalCallouts, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, ScrollArea, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, SplitButton, type SplitButtonProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
|
|
4339
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, Badge, type BadgeProps, Banner, BannerImage, type BannerProps, Box, type BoxProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Card, type CardProps, Center, type CenterProps, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickRegion, type ClickRegionProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, CollapsibleTriggerIcon, ColorGrid, ColorGridOption, type ColorGridOptionProps, type ColorGridProps, ColorList, ColorListGroup, type ColorListGroupProps, ColorListOption, type ColorListOptionProps, type ColorListProps, ColorPicker, ColorPickerPopoverContent, type ColorPickerPopoverContentProps, type ColorPickerProps, ColorPickerSection, type ColorPickerSectionProps, ColorPickerTrigger, type ColorPickerTriggerProps, type ColorSchemeTypes, ColorSchemeWrapper, type ColorSchemeWrapperProps, Combobox, ComboboxOption, type ComboboxOptionProps, type ComboboxProps, ContextMenu, type ContextMenuProps, ContrastControls, DataCard, DataCardHoverArrow, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, DataList, DataListItem, DataListItemLabel, DataListItemValue, type DataListProps, Divider, EditableHeading, type EditableHeadingProps, EditableText, EditableTextCancelButton, EditableTextContext, EditableTextDisplay, EditableTextInput, EditableTextLabel, type EditableTextProps, EditableTextRoot, type EditableTextRootProps, EditableTextSubmitButton, EditableTextTrigger, Ellipsis, type EllipsisProps, FilterMenu, FilterMenuItem, Form, FormErrorSummary, FormField, type FormFieldProps, FormGroup, type FormGroupProps, type FormProps, Grid, type GridProps, Heading, type HeadingProps, HexColorInput, type HexColorInputProps, HueSlider, Icon, IconButton, type IconButtonProps, type IconNameType, Image, type ImageProps, Input, InputClickToCopy, type InputClickToCopyProps, InputPassword, type InputPasswordProps, type InputProps, type KeyboardKeys, KeyboardShortcut, Label, type LabelProps, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Mark, type MarkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, ModalCallout, ModalCallouts, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, ScrollArea, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, SplitButton, type SplitButtonProps, Stack, SubMenu, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, Text, type TextProps, Thumbnail, ThumbnailBadge, type ThumbnailBadgeProps, ThumbnailCollage, type ThumbnailCollageProps, type ThumbnailProps, Tooltip, type TooltipProps, UIProvider, type UseToastProps, ValueNameOrHexCode, ValueSwatch, WistiaLogo, calculateContrast, colorSchemeOptions, copyToClipboard, dateTime, iconSizeMap, mergeRefs, mq, useActiveMq, useAriaLive, useBoolean, useClipboard, useElementObserver, useFilePicker, useFocusTrap, useForceUpdate, useFormState, useImperativeFilePicker, useIsHovered, useKey, useLocalStorage, useLockBodyScroll, useMq, useOnClickOutside, usePreviousValue, useToast, useWindowSize };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.
|
|
3
|
+
* @license @wistia/ui v0.16.0-beta.dd70b7a0.caf3e8e
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -822,7 +822,7 @@ import { css as css4 } from "styled-components";
|
|
|
822
822
|
|
|
823
823
|
// src/css/designTokens/colorSchemes.tsx
|
|
824
824
|
import { css as css3 } from "styled-components";
|
|
825
|
-
var
|
|
825
|
+
var standardColorScheme = css3`
|
|
826
826
|
--wui-color-base-1: var(--wui-gray-1);
|
|
827
827
|
--wui-color-base-2: var(--wui-gray-2);
|
|
828
828
|
--wui-color-base-3: var(--wui-gray-3);
|
|
@@ -1344,7 +1344,7 @@ var baseAliasTokens = css4`
|
|
|
1344
1344
|
`;
|
|
1345
1345
|
var colorAliasTokens = css4`
|
|
1346
1346
|
--wui-color-bg-app: var(--wui-app-background);
|
|
1347
|
-
${
|
|
1347
|
+
${standardColorScheme}
|
|
1348
1348
|
${baseAliasTokens}
|
|
1349
1349
|
/* --- Semantic --- */
|
|
1350
1350
|
/* Error */
|
|
@@ -3123,7 +3123,7 @@ Ellipsis.displayName = "Ellipsis_UI";
|
|
|
3123
3123
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
3124
3124
|
import { css as css15 } from "styled-components";
|
|
3125
3125
|
var colorSchemes = {
|
|
3126
|
-
|
|
3126
|
+
standard: standardColorScheme,
|
|
3127
3127
|
blue: blueColorScheme,
|
|
3128
3128
|
green: greenColorScheme,
|
|
3129
3129
|
red: redColorScheme,
|
|
@@ -7959,7 +7959,7 @@ var StyledLabel = styled6.span`
|
|
|
7959
7959
|
var ActionButton = forwardRef3(
|
|
7960
7960
|
({
|
|
7961
7961
|
icon,
|
|
7962
|
-
colorScheme = "
|
|
7962
|
+
colorScheme = "standard",
|
|
7963
7963
|
disabled = false,
|
|
7964
7964
|
hoverColorScheme,
|
|
7965
7965
|
variant = "default",
|
|
@@ -8074,7 +8074,7 @@ Image.displayName = "Image_UI";
|
|
|
8074
8074
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
8075
8075
|
import styled8 from "styled-components";
|
|
8076
8076
|
import { jsx as jsx203 } from "react/jsx-runtime";
|
|
8077
|
-
var defaultColorSchemeOptions = ["
|
|
8077
|
+
var defaultColorSchemeOptions = ["standard", "inherit"];
|
|
8078
8078
|
var semanticColorSchemeOptions = ["error", "info", "success", "warning"];
|
|
8079
8079
|
var brandColorSchemeOptions = [
|
|
8080
8080
|
"blue",
|
|
@@ -13197,7 +13197,7 @@ var MenuItemButton = forwardRef18(({ children, appearance, command, icon, ...pro
|
|
|
13197
13197
|
...props,
|
|
13198
13198
|
ref,
|
|
13199
13199
|
$isGated: appearance === "gated",
|
|
13200
|
-
colorScheme: colorScheme ?? "
|
|
13200
|
+
colorScheme: colorScheme ?? "inherit",
|
|
13201
13201
|
fullWidth: true,
|
|
13202
13202
|
unstyled: true,
|
|
13203
13203
|
children: [
|
|
@@ -14178,10 +14178,44 @@ import { createContext as createContext7, useMemo as useMemo13, useState as useS
|
|
|
14178
14178
|
import { isNonEmptyString as isNonEmptyString6 } from "@wistia/type-guards";
|
|
14179
14179
|
import styled63 from "styled-components";
|
|
14180
14180
|
import { jsx as jsx277 } from "react/jsx-runtime";
|
|
14181
|
+
var LARGE_PADDING = "var(--wui-space-02)";
|
|
14182
|
+
var SMALL_PADDING = "var(--wui-space-01)";
|
|
14183
|
+
var getPaddingForVariant = (variant) => {
|
|
14184
|
+
const largePaddingVariants = [
|
|
14185
|
+
"hero",
|
|
14186
|
+
"heading1",
|
|
14187
|
+
"heading2",
|
|
14188
|
+
"heading3",
|
|
14189
|
+
"body1",
|
|
14190
|
+
"label1",
|
|
14191
|
+
"body1Mono"
|
|
14192
|
+
];
|
|
14193
|
+
const smallPaddingVariants = [
|
|
14194
|
+
"heading4",
|
|
14195
|
+
"heading5",
|
|
14196
|
+
"heading6",
|
|
14197
|
+
"body2",
|
|
14198
|
+
"body3",
|
|
14199
|
+
"body4",
|
|
14200
|
+
"label2",
|
|
14201
|
+
"label3",
|
|
14202
|
+
"label4",
|
|
14203
|
+
"body2Mono",
|
|
14204
|
+
"body3Mono",
|
|
14205
|
+
"body4Mono"
|
|
14206
|
+
];
|
|
14207
|
+
if (largePaddingVariants.includes(variant)) {
|
|
14208
|
+
return LARGE_PADDING;
|
|
14209
|
+
}
|
|
14210
|
+
if (smallPaddingVariants.includes(variant)) {
|
|
14211
|
+
return SMALL_PADDING;
|
|
14212
|
+
}
|
|
14213
|
+
return SMALL_PADDING;
|
|
14214
|
+
};
|
|
14181
14215
|
var StyledEditableTextRoot = styled63.div`
|
|
14182
14216
|
display: contents;
|
|
14183
14217
|
|
|
14184
|
-
--wui-editable-text-padding:
|
|
14218
|
+
--wui-editable-text-padding: ${({ $typographicVariant }) => getPaddingForVariant($typographicVariant)};
|
|
14185
14219
|
--wui-editable-text-border-radius: var(--wui-border-radius-01);
|
|
14186
14220
|
`;
|
|
14187
14221
|
var EditableTextContext = createContext7(null);
|
|
@@ -14279,6 +14313,7 @@ var EditableTextRoot = ({
|
|
|
14279
14313
|
return /* @__PURE__ */ jsx277(
|
|
14280
14314
|
StyledEditableTextRoot,
|
|
14281
14315
|
{
|
|
14316
|
+
$typographicVariant: typographicVariant,
|
|
14282
14317
|
"data-testid": "editable-text-root",
|
|
14283
14318
|
"data-wui-editable-text-root": true,
|
|
14284
14319
|
"data-wui-editable-text-state": getState(),
|
|
@@ -14787,6 +14822,7 @@ var FormField = ({
|
|
|
14787
14822
|
label,
|
|
14788
14823
|
labelPosition,
|
|
14789
14824
|
name,
|
|
14825
|
+
required = false,
|
|
14790
14826
|
value,
|
|
14791
14827
|
...props
|
|
14792
14828
|
}) => {
|
|
@@ -14836,7 +14872,14 @@ var FormField = ({
|
|
|
14836
14872
|
...props,
|
|
14837
14873
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
14838
14874
|
children: [
|
|
14839
|
-
!isIntegratedLabel && /* @__PURE__ */ jsx283(
|
|
14875
|
+
!isIntegratedLabel && /* @__PURE__ */ jsx283(
|
|
14876
|
+
Label,
|
|
14877
|
+
{
|
|
14878
|
+
htmlFor: computedId,
|
|
14879
|
+
required,
|
|
14880
|
+
children: label
|
|
14881
|
+
}
|
|
14882
|
+
),
|
|
14840
14883
|
isNotNil28(description) ? /* @__PURE__ */ jsx283(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
14841
14884
|
cloneElement8(children, childProps),
|
|
14842
14885
|
isNotNil28(computedError) ? /* @__PURE__ */ jsxs46(Fragment9, { children: [
|