@wistia/ui 0.14.23 → 0.14.24-beta.9c5d52fa.6eeab65
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 +119 -83
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.mjs +55 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +31 -31
package/dist/index.d.mts
CHANGED
|
@@ -1684,7 +1684,7 @@ type DividerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Orientation of the divider.
|
|
1686
1686
|
*/
|
|
1687
|
-
orientation?: 'horizontal' | 'vertical';
|
|
1687
|
+
orientation?: ResponsiveObject<'horizontal' | 'vertical'> | 'horizontal' | 'vertical';
|
|
1688
1688
|
};
|
|
1689
1689
|
/**
|
|
1690
1690
|
* A line used to visually separate content; note that dividers have no margin/spacing on their own.
|
|
@@ -4100,9 +4100,9 @@ declare const DataList: {
|
|
|
4100
4100
|
displayName: string;
|
|
4101
4101
|
};
|
|
4102
4102
|
|
|
4103
|
-
type DataListItemProps = Omit<ComponentPropsWithoutRef<'dl'>, '
|
|
4103
|
+
type DataListItemProps = Omit<ComponentPropsWithoutRef<'dl'>, 'children'> & {
|
|
4104
4104
|
/**
|
|
4105
|
-
* Should only contain `
|
|
4105
|
+
* Should only contain `DataListItemLabel` and `DataListItemValue` components.
|
|
4106
4106
|
*/
|
|
4107
4107
|
children: ReactNode;
|
|
4108
4108
|
};
|
|
@@ -4130,4 +4130,17 @@ declare const DataListItemValue: {
|
|
|
4130
4130
|
displayName: string;
|
|
4131
4131
|
};
|
|
4132
4132
|
|
|
4133
|
-
|
|
4133
|
+
type MarkProps = ComponentPropsWithoutRef<'div'> & {
|
|
4134
|
+
/** The content of the Mark component. */
|
|
4135
|
+
children: ReactNode;
|
|
4136
|
+
colorScheme?: ColorSchemeTypes;
|
|
4137
|
+
};
|
|
4138
|
+
/**
|
|
4139
|
+
* Defines text that should be marked or highlighted.
|
|
4140
|
+
*/
|
|
4141
|
+
declare const Mark: {
|
|
4142
|
+
({ children, colorScheme, ...props }: MarkProps): JSX.Element;
|
|
4143
|
+
displayName: string;
|
|
4144
|
+
};
|
|
4145
|
+
|
|
4146
|
+
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, type ListProps, Mark, type MarkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, 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
|
@@ -1684,7 +1684,7 @@ type DividerProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Orientation of the divider.
|
|
1686
1686
|
*/
|
|
1687
|
-
orientation?: 'horizontal' | 'vertical';
|
|
1687
|
+
orientation?: ResponsiveObject<'horizontal' | 'vertical'> | 'horizontal' | 'vertical';
|
|
1688
1688
|
};
|
|
1689
1689
|
/**
|
|
1690
1690
|
* A line used to visually separate content; note that dividers have no margin/spacing on their own.
|
|
@@ -4100,9 +4100,9 @@ declare const DataList: {
|
|
|
4100
4100
|
displayName: string;
|
|
4101
4101
|
};
|
|
4102
4102
|
|
|
4103
|
-
type DataListItemProps = Omit<ComponentPropsWithoutRef<'dl'>, '
|
|
4103
|
+
type DataListItemProps = Omit<ComponentPropsWithoutRef<'dl'>, 'children'> & {
|
|
4104
4104
|
/**
|
|
4105
|
-
* Should only contain `
|
|
4105
|
+
* Should only contain `DataListItemLabel` and `DataListItemValue` components.
|
|
4106
4106
|
*/
|
|
4107
4107
|
children: ReactNode;
|
|
4108
4108
|
};
|
|
@@ -4130,4 +4130,17 @@ declare const DataListItemValue: {
|
|
|
4130
4130
|
displayName: string;
|
|
4131
4131
|
};
|
|
4132
4132
|
|
|
4133
|
-
|
|
4133
|
+
type MarkProps = ComponentPropsWithoutRef<'div'> & {
|
|
4134
|
+
/** The content of the Mark component. */
|
|
4135
|
+
children: ReactNode;
|
|
4136
|
+
colorScheme?: ColorSchemeTypes;
|
|
4137
|
+
};
|
|
4138
|
+
/**
|
|
4139
|
+
* Defines text that should be marked or highlighted.
|
|
4140
|
+
*/
|
|
4141
|
+
declare const Mark: {
|
|
4142
|
+
({ children, colorScheme, ...props }: MarkProps): JSX.Element;
|
|
4143
|
+
displayName: string;
|
|
4144
|
+
};
|
|
4145
|
+
|
|
4146
|
+
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, type ListProps, Mark, type MarkProps, Menu, MenuItem, MenuItemDescription, MenuItemLabel, MenuLabel, MenuRadioGroup, Modal, type ModalProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, Radio, RadioCard, RadioCardImage, type RadioCardImageProps, type RadioCardProps, RadioGroup, RadioMenuItem, type RadioProps, SaturationAndValuePicker, ScreenReaderOnly, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Slider, type SliderProps, 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.14.
|
|
3
|
+
* @license @wistia/ui v0.14.24-beta.9c5d52fa.6eeab65
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -8176,17 +8176,25 @@ import { forwardRef as forwardRef7 } from "react";
|
|
|
8176
8176
|
import styled13, { css as css21 } from "styled-components";
|
|
8177
8177
|
import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
8178
8178
|
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
8179
|
-
var
|
|
8179
|
+
var sharedBodyStyle = css21`
|
|
8180
8180
|
> strong,
|
|
8181
8181
|
b {
|
|
8182
8182
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
8183
8183
|
}
|
|
8184
|
+
|
|
8185
|
+
> mark {
|
|
8186
|
+
font-weight: var(--wui-typography-weight-body-mark);
|
|
8187
|
+
}
|
|
8184
8188
|
`;
|
|
8185
8189
|
var labelBoldStyles = css21`
|
|
8186
8190
|
> strong,
|
|
8187
8191
|
b {
|
|
8188
8192
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
8189
8193
|
}
|
|
8194
|
+
|
|
8195
|
+
> mark {
|
|
8196
|
+
font-weight: var(--wui-typography-weight-label-mark);
|
|
8197
|
+
}
|
|
8190
8198
|
`;
|
|
8191
8199
|
var body1TextStyle = css21`
|
|
8192
8200
|
--font-family: var(--wui-typography-body-1-family);
|
|
@@ -8194,7 +8202,7 @@ var body1TextStyle = css21`
|
|
|
8194
8202
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
8195
8203
|
--line-height: var(--wui-typography-body-1-line-height);
|
|
8196
8204
|
--paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
|
|
8197
|
-
${
|
|
8205
|
+
${sharedBodyStyle}
|
|
8198
8206
|
`;
|
|
8199
8207
|
var body2TextStyle = css21`
|
|
8200
8208
|
--font-family: var(--wui-typography-body-2-family);
|
|
@@ -8202,7 +8210,7 @@ var body2TextStyle = css21`
|
|
|
8202
8210
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
8203
8211
|
--line-height: var(--wui-typography-body-2-line-height);
|
|
8204
8212
|
--paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
|
|
8205
|
-
${
|
|
8213
|
+
${sharedBodyStyle}
|
|
8206
8214
|
`;
|
|
8207
8215
|
var body3TextStyle = css21`
|
|
8208
8216
|
--font-family: var(--wui-typography-body-3-family);
|
|
@@ -8210,7 +8218,7 @@ var body3TextStyle = css21`
|
|
|
8210
8218
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
8211
8219
|
--line-height: var(--wui-typography-body-3-line-height);
|
|
8212
8220
|
--paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
|
|
8213
|
-
${
|
|
8221
|
+
${sharedBodyStyle}
|
|
8214
8222
|
`;
|
|
8215
8223
|
var body4TextStyle = css21`
|
|
8216
8224
|
--font-family: var(--wui-typography-body-4-family);
|
|
@@ -8218,7 +8226,7 @@ var body4TextStyle = css21`
|
|
|
8218
8226
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
8219
8227
|
--line-height: var(--wui-typography-body-4-line-height);
|
|
8220
8228
|
--paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
|
|
8221
|
-
${
|
|
8229
|
+
${sharedBodyStyle}
|
|
8222
8230
|
`;
|
|
8223
8231
|
var label1TextStyle = css21`
|
|
8224
8232
|
--font-family: var(--wui-typography-label-1-family);
|
|
@@ -12051,7 +12059,7 @@ Tag.displayName = "Tag_UI";
|
|
|
12051
12059
|
|
|
12052
12060
|
// src/components/Combobox/Combobox.tsx
|
|
12053
12061
|
import { jsx as jsx254, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12054
|
-
var
|
|
12062
|
+
var ComboboxWrapper = styled50.div`
|
|
12055
12063
|
${inputCss};
|
|
12056
12064
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
12057
12065
|
padding: var(--wui-input-vertical-padding) var(--wui-input-horizontal-padding);
|
|
@@ -12115,7 +12123,7 @@ var ComboboxInput = styled50(Ariakit.Combobox)`
|
|
|
12115
12123
|
outline-width: 2px;
|
|
12116
12124
|
}
|
|
12117
12125
|
`;
|
|
12118
|
-
var
|
|
12126
|
+
var ComboboxPopover2 = styled50(Ariakit.ComboboxPopover)`
|
|
12119
12127
|
--wui-combobox-content-border: var(--wui-color-border);
|
|
12120
12128
|
--wui-combobox-content-bg: var(--wui-color-bg-surface);
|
|
12121
12129
|
--wui-combobox-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -12152,7 +12160,9 @@ var ComboboxItem2 = styled50(Ariakit.ComboboxItem)`
|
|
|
12152
12160
|
cursor: pointer;
|
|
12153
12161
|
|
|
12154
12162
|
&:hover,
|
|
12155
|
-
&:focus-visible
|
|
12163
|
+
&:focus-visible,
|
|
12164
|
+
&[data-focus-visible='true'],
|
|
12165
|
+
&[data-active-item='true'] {
|
|
12156
12166
|
background-color: var(--wui-combobox-option-bg-hover);
|
|
12157
12167
|
outline: none;
|
|
12158
12168
|
}
|
|
@@ -12235,7 +12245,7 @@ var Combobox2 = ({
|
|
|
12235
12245
|
},
|
|
12236
12246
|
children: [
|
|
12237
12247
|
/* @__PURE__ */ jsxs34(
|
|
12238
|
-
|
|
12248
|
+
ComboboxWrapper,
|
|
12239
12249
|
{
|
|
12240
12250
|
ref: comboboxWrapperRef,
|
|
12241
12251
|
$fullWidth: fullWidth,
|
|
@@ -12255,7 +12265,7 @@ var Combobox2 = ({
|
|
|
12255
12265
|
}
|
|
12256
12266
|
),
|
|
12257
12267
|
/* @__PURE__ */ jsxs34(
|
|
12258
|
-
|
|
12268
|
+
ComboboxPopover2,
|
|
12259
12269
|
{
|
|
12260
12270
|
"aria-busy": isPending,
|
|
12261
12271
|
gutter: 8,
|
|
@@ -12268,7 +12278,6 @@ var Combobox2 = ({
|
|
|
12268
12278
|
ComboboxItem2,
|
|
12269
12279
|
{
|
|
12270
12280
|
className: "combobox-item",
|
|
12271
|
-
focusOnHover: true,
|
|
12272
12281
|
value: match,
|
|
12273
12282
|
children: [
|
|
12274
12283
|
/* @__PURE__ */ jsx254(
|
|
@@ -12614,11 +12623,12 @@ var DividerComponent = styled55.div`
|
|
|
12614
12623
|
}}
|
|
12615
12624
|
`;
|
|
12616
12625
|
var Divider = ({ orientation = "horizontal", ...props }) => {
|
|
12626
|
+
const responsiveOrientation = useResponsiveProp(orientation);
|
|
12617
12627
|
return /* @__PURE__ */ jsx259(
|
|
12618
12628
|
DividerComponent,
|
|
12619
12629
|
{
|
|
12620
|
-
$orientation:
|
|
12621
|
-
"aria-orientation":
|
|
12630
|
+
$orientation: responsiveOrientation,
|
|
12631
|
+
"aria-orientation": responsiveOrientation,
|
|
12622
12632
|
role: "separator",
|
|
12623
12633
|
...props
|
|
12624
12634
|
}
|
|
@@ -14568,7 +14578,7 @@ var StyledContent2 = styled74(Content2)`
|
|
|
14568
14578
|
right: var(--wui-space-02);
|
|
14569
14579
|
}
|
|
14570
14580
|
`;
|
|
14571
|
-
var
|
|
14581
|
+
var Popover = ({
|
|
14572
14582
|
children,
|
|
14573
14583
|
trigger,
|
|
14574
14584
|
isOpen = false,
|
|
@@ -14614,7 +14624,7 @@ var Popover2 = ({
|
|
|
14614
14624
|
) })
|
|
14615
14625
|
] });
|
|
14616
14626
|
};
|
|
14617
|
-
|
|
14627
|
+
Popover.displayName = "Popover_UI";
|
|
14618
14628
|
|
|
14619
14629
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
14620
14630
|
import styled75 from "styled-components";
|
|
@@ -15825,6 +15835,7 @@ var Table = ({
|
|
|
15825
15835
|
};
|
|
15826
15836
|
|
|
15827
15837
|
// src/components/Table/TableBody.tsx
|
|
15838
|
+
import "react";
|
|
15828
15839
|
import styled89 from "styled-components";
|
|
15829
15840
|
|
|
15830
15841
|
// src/components/Table/TableSectionContext.ts
|
|
@@ -15868,6 +15879,7 @@ var TableCell = ({ children, ...props }) => {
|
|
|
15868
15879
|
};
|
|
15869
15880
|
|
|
15870
15881
|
// src/components/Table/TableFoot.tsx
|
|
15882
|
+
import "react";
|
|
15871
15883
|
import styled91 from "styled-components";
|
|
15872
15884
|
import { jsx as jsx301 } from "react/jsx-runtime";
|
|
15873
15885
|
var StyledTableFoot = styled91.tfoot``;
|
|
@@ -15876,6 +15888,7 @@ var TableFoot = ({ children, ...props }) => {
|
|
|
15876
15888
|
};
|
|
15877
15889
|
|
|
15878
15890
|
// src/components/Table/TableHead.tsx
|
|
15891
|
+
import "react";
|
|
15879
15892
|
import styled92 from "styled-components";
|
|
15880
15893
|
import { jsx as jsx302 } from "react/jsx-runtime";
|
|
15881
15894
|
var StyledThead = styled92.thead``;
|
|
@@ -16556,7 +16569,7 @@ var Thumbnail = forwardRef34(
|
|
|
16556
16569
|
Thumbnail.displayName = "Thumbnail_UI";
|
|
16557
16570
|
|
|
16558
16571
|
// src/components/ThumbnailCollage/ThumbnailCollage.tsx
|
|
16559
|
-
import
|
|
16572
|
+
import React5 from "react";
|
|
16560
16573
|
import styled100 from "styled-components";
|
|
16561
16574
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
16562
16575
|
import { jsx as jsx311 } from "react/jsx-runtime";
|
|
@@ -16633,10 +16646,10 @@ var ThumbnailCollage = ({
|
|
|
16633
16646
|
gradientBackground = "defaultMidOne",
|
|
16634
16647
|
...props
|
|
16635
16648
|
}) => {
|
|
16636
|
-
const thumbnailArray =
|
|
16649
|
+
const thumbnailArray = React5.Children.toArray(children);
|
|
16637
16650
|
const truncatedThumbnails = thumbnailArray.slice(0, 3);
|
|
16638
16651
|
const thumbnails = isNonEmptyArray(thumbnailArray) ? truncatedThumbnails.map((child) => {
|
|
16639
|
-
return
|
|
16652
|
+
return React5.cloneElement(child, {
|
|
16640
16653
|
...child.props,
|
|
16641
16654
|
children: void 0
|
|
16642
16655
|
});
|
|
@@ -17443,6 +17456,27 @@ var DataListItemValue = (props) => {
|
|
|
17443
17456
|
);
|
|
17444
17457
|
};
|
|
17445
17458
|
DataListItemValue.displayName = "DataListItemValue_UI";
|
|
17459
|
+
|
|
17460
|
+
// src/components/Mark/Mark.tsx
|
|
17461
|
+
import styled107 from "styled-components";
|
|
17462
|
+
import { jsx as jsx323 } from "react/jsx-runtime";
|
|
17463
|
+
var StyledMark = styled107.mark`
|
|
17464
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
17465
|
+
background-color: var(--wui-color-bg-surface-tertiary);
|
|
17466
|
+
color: var(--wui-color-text);
|
|
17467
|
+
border-radius: var(--wui-border-radius-01);
|
|
17468
|
+
padding-inline: 0.1em;
|
|
17469
|
+
margin-inline: -0.1em;
|
|
17470
|
+
`;
|
|
17471
|
+
var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */ jsx323(
|
|
17472
|
+
StyledMark,
|
|
17473
|
+
{
|
|
17474
|
+
$colorScheme: colorScheme,
|
|
17475
|
+
...props,
|
|
17476
|
+
children
|
|
17477
|
+
}
|
|
17478
|
+
);
|
|
17479
|
+
Mark.displayName = "Mark_UI";
|
|
17446
17480
|
export {
|
|
17447
17481
|
ActionButton,
|
|
17448
17482
|
Avatar,
|
|
@@ -17521,6 +17555,7 @@ export {
|
|
|
17521
17555
|
Label,
|
|
17522
17556
|
Link,
|
|
17523
17557
|
List,
|
|
17558
|
+
Mark,
|
|
17524
17559
|
Menu,
|
|
17525
17560
|
MenuItem,
|
|
17526
17561
|
MenuItemDescription,
|
|
@@ -17529,7 +17564,7 @@ export {
|
|
|
17529
17564
|
MenuRadioGroup,
|
|
17530
17565
|
Modal,
|
|
17531
17566
|
PersistentFileAmountLimitValidator,
|
|
17532
|
-
|
|
17567
|
+
Popover,
|
|
17533
17568
|
ProgressBar,
|
|
17534
17569
|
Radio,
|
|
17535
17570
|
RadioCard,
|