@wistia/ui 0.14.13 → 0.14.15
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 +98 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +63 -3
- package/dist/index.d.ts +63 -3
- package/dist/index.mjs +94 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1401,7 +1401,7 @@ declare const Icon: {
|
|
|
1401
1401
|
displayName: string;
|
|
1402
1402
|
};
|
|
1403
1403
|
|
|
1404
|
-
type CollapsibleTriggerIconProps = {
|
|
1404
|
+
type CollapsibleTriggerIconProps = Omit<IconProps, 'type'> & {
|
|
1405
1405
|
type: Extract<IconProps['type'], 'caret-left-strong' | 'caret-left' | 'caret-right-strong' | 'caret-right' | 'plus'>;
|
|
1406
1406
|
};
|
|
1407
1407
|
declare const CollapsibleTriggerIcon: {
|
|
@@ -2861,6 +2861,10 @@ type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2861
2861
|
* The maximum progress value
|
|
2862
2862
|
*/
|
|
2863
2863
|
max?: number;
|
|
2864
|
+
/**
|
|
2865
|
+
* Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
|
|
2866
|
+
*/
|
|
2867
|
+
colorScheme?: ColorSchemeTypes;
|
|
2864
2868
|
/**
|
|
2865
2869
|
* Slot for additional content to be rendered to the left of the progress bar
|
|
2866
2870
|
*/
|
|
@@ -2874,7 +2878,7 @@ type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2874
2878
|
* A progress component that visually represents the completion status of a task
|
|
2875
2879
|
*/
|
|
2876
2880
|
declare const ProgressBar: {
|
|
2877
|
-
({ progress, max, children, labelLeft, labelRight, ...props }: ProgressBarProps): JSX.Element;
|
|
2881
|
+
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX.Element;
|
|
2878
2882
|
displayName: string;
|
|
2879
2883
|
};
|
|
2880
2884
|
|
|
@@ -3907,4 +3911,60 @@ type ContextMenuProps = {
|
|
|
3907
3911
|
*/
|
|
3908
3912
|
declare const ContextMenu: ({ position, triggerRef, children, onRequestClose, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
|
|
3909
3913
|
|
|
3910
|
-
|
|
3914
|
+
type DataListProps = ComponentPropsWithoutRef<'dl'> & {
|
|
3915
|
+
/**
|
|
3916
|
+
* Should only contain `DataListItem` components.
|
|
3917
|
+
*/
|
|
3918
|
+
children: ReactNode;
|
|
3919
|
+
/**
|
|
3920
|
+
* Maximum width for the label.
|
|
3921
|
+
*/
|
|
3922
|
+
labelMaxWith?: string;
|
|
3923
|
+
/**
|
|
3924
|
+
* Prominence of the label text. Default is `primary`.
|
|
3925
|
+
*/
|
|
3926
|
+
labelProminence?: 'primary' | 'secondary';
|
|
3927
|
+
/**
|
|
3928
|
+
* Alignment of the value text. Default is `start`.
|
|
3929
|
+
*/
|
|
3930
|
+
valueAlignment?: 'end' | 'start';
|
|
3931
|
+
};
|
|
3932
|
+
/**
|
|
3933
|
+
* The DataList component is used to display a list of items with labels and values.
|
|
3934
|
+
*/
|
|
3935
|
+
declare const DataList: {
|
|
3936
|
+
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX.Element;
|
|
3937
|
+
displayName: string;
|
|
3938
|
+
};
|
|
3939
|
+
|
|
3940
|
+
type DataListItemProps = Omit<ComponentPropsWithoutRef<'dl'>, 'childern'> & {
|
|
3941
|
+
/**
|
|
3942
|
+
* Should only contain `DataListItemItem` components.
|
|
3943
|
+
*/
|
|
3944
|
+
children: ReactNode;
|
|
3945
|
+
};
|
|
3946
|
+
/**
|
|
3947
|
+
* An item within a `DataList`. It should only contain `DataListItemLabel` and `DataListItemValue` components.
|
|
3948
|
+
*/
|
|
3949
|
+
declare const DataListItem: {
|
|
3950
|
+
({ children }: DataListItemProps): ReactNode;
|
|
3951
|
+
displayName: string;
|
|
3952
|
+
};
|
|
3953
|
+
|
|
3954
|
+
/**
|
|
3955
|
+
* The label of the `DataListItem`. Extends the [Text]() component.
|
|
3956
|
+
*/
|
|
3957
|
+
declare const DataListItemLabel: {
|
|
3958
|
+
(props: TextProps): JSX.Element;
|
|
3959
|
+
displayName: string;
|
|
3960
|
+
};
|
|
3961
|
+
|
|
3962
|
+
/**
|
|
3963
|
+
* The value of the `DataListItem`. Extends the [Text]() component.
|
|
3964
|
+
*/
|
|
3965
|
+
declare const DataListItemValue: {
|
|
3966
|
+
(props: TextProps): JSX.Element;
|
|
3967
|
+
displayName: string;
|
|
3968
|
+
};
|
|
3969
|
+
|
|
3970
|
+
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, 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, 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
|
@@ -1401,7 +1401,7 @@ declare const Icon: {
|
|
|
1401
1401
|
displayName: string;
|
|
1402
1402
|
};
|
|
1403
1403
|
|
|
1404
|
-
type CollapsibleTriggerIconProps = {
|
|
1404
|
+
type CollapsibleTriggerIconProps = Omit<IconProps, 'type'> & {
|
|
1405
1405
|
type: Extract<IconProps['type'], 'caret-left-strong' | 'caret-left' | 'caret-right-strong' | 'caret-right' | 'plus'>;
|
|
1406
1406
|
};
|
|
1407
1407
|
declare const CollapsibleTriggerIcon: {
|
|
@@ -2861,6 +2861,10 @@ type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2861
2861
|
* The maximum progress value
|
|
2862
2862
|
*/
|
|
2863
2863
|
max?: number;
|
|
2864
|
+
/**
|
|
2865
|
+
* Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
|
|
2866
|
+
*/
|
|
2867
|
+
colorScheme?: ColorSchemeTypes;
|
|
2864
2868
|
/**
|
|
2865
2869
|
* Slot for additional content to be rendered to the left of the progress bar
|
|
2866
2870
|
*/
|
|
@@ -2874,7 +2878,7 @@ type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
2874
2878
|
* A progress component that visually represents the completion status of a task
|
|
2875
2879
|
*/
|
|
2876
2880
|
declare const ProgressBar: {
|
|
2877
|
-
({ progress, max, children, labelLeft, labelRight, ...props }: ProgressBarProps): JSX.Element;
|
|
2881
|
+
({ progress, max, children, labelLeft, labelRight, colorScheme, ...props }: ProgressBarProps): JSX.Element;
|
|
2878
2882
|
displayName: string;
|
|
2879
2883
|
};
|
|
2880
2884
|
|
|
@@ -3907,4 +3911,60 @@ type ContextMenuProps = {
|
|
|
3907
3911
|
*/
|
|
3908
3912
|
declare const ContextMenu: ({ position, triggerRef, children, onRequestClose, }: ContextMenuProps) => react_jsx_runtime.JSX.Element | null;
|
|
3909
3913
|
|
|
3910
|
-
|
|
3914
|
+
type DataListProps = ComponentPropsWithoutRef<'dl'> & {
|
|
3915
|
+
/**
|
|
3916
|
+
* Should only contain `DataListItem` components.
|
|
3917
|
+
*/
|
|
3918
|
+
children: ReactNode;
|
|
3919
|
+
/**
|
|
3920
|
+
* Maximum width for the label.
|
|
3921
|
+
*/
|
|
3922
|
+
labelMaxWith?: string;
|
|
3923
|
+
/**
|
|
3924
|
+
* Prominence of the label text. Default is `primary`.
|
|
3925
|
+
*/
|
|
3926
|
+
labelProminence?: 'primary' | 'secondary';
|
|
3927
|
+
/**
|
|
3928
|
+
* Alignment of the value text. Default is `start`.
|
|
3929
|
+
*/
|
|
3930
|
+
valueAlignment?: 'end' | 'start';
|
|
3931
|
+
};
|
|
3932
|
+
/**
|
|
3933
|
+
* The DataList component is used to display a list of items with labels and values.
|
|
3934
|
+
*/
|
|
3935
|
+
declare const DataList: {
|
|
3936
|
+
({ children, valueAlignment, labelMaxWith, labelProminence, ...props }: DataListProps): JSX.Element;
|
|
3937
|
+
displayName: string;
|
|
3938
|
+
};
|
|
3939
|
+
|
|
3940
|
+
type DataListItemProps = Omit<ComponentPropsWithoutRef<'dl'>, 'childern'> & {
|
|
3941
|
+
/**
|
|
3942
|
+
* Should only contain `DataListItemItem` components.
|
|
3943
|
+
*/
|
|
3944
|
+
children: ReactNode;
|
|
3945
|
+
};
|
|
3946
|
+
/**
|
|
3947
|
+
* An item within a `DataList`. It should only contain `DataListItemLabel` and `DataListItemValue` components.
|
|
3948
|
+
*/
|
|
3949
|
+
declare const DataListItem: {
|
|
3950
|
+
({ children }: DataListItemProps): ReactNode;
|
|
3951
|
+
displayName: string;
|
|
3952
|
+
};
|
|
3953
|
+
|
|
3954
|
+
/**
|
|
3955
|
+
* The label of the `DataListItem`. Extends the [Text]() component.
|
|
3956
|
+
*/
|
|
3957
|
+
declare const DataListItemLabel: {
|
|
3958
|
+
(props: TextProps): JSX.Element;
|
|
3959
|
+
displayName: string;
|
|
3960
|
+
};
|
|
3961
|
+
|
|
3962
|
+
/**
|
|
3963
|
+
* The value of the `DataListItem`. Extends the [Text]() component.
|
|
3964
|
+
*/
|
|
3965
|
+
declare const DataListItemValue: {
|
|
3966
|
+
(props: TextProps): JSX.Element;
|
|
3967
|
+
displayName: string;
|
|
3968
|
+
};
|
|
3969
|
+
|
|
3970
|
+
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, 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, 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.15
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7133,7 +7133,7 @@ var StyledLink = styled4.a`
|
|
|
7133
7133
|
${({ href }) => isNil6(href) && buttonResetCss};
|
|
7134
7134
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
7135
7135
|
cursor: ${({ $disabled }) => $disabled ? "not-allowed" : "pointer"};
|
|
7136
|
-
font-family:
|
|
7136
|
+
font-family: inherit;
|
|
7137
7137
|
color: ${({ $disabled }) => $disabled ? "var(--wui-color-text-disabled)" : "var(--wui-color-text-link)"};
|
|
7138
7138
|
text-decoration: ${({ $underline }) => $underline === "always" ? "underline" : "none"};
|
|
7139
7139
|
display: inline-flex;
|
|
@@ -14634,8 +14634,6 @@ import { isNotNil as isNotNil31 } from "@wistia/type-guards";
|
|
|
14634
14634
|
import { jsx as jsx285, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
14635
14635
|
var ProgressBarWrapper = styled75.div`
|
|
14636
14636
|
--progress-bar-height: 8px;
|
|
14637
|
-
--progress-bar-indicator-color: var(--wui-color-bg-fill);
|
|
14638
|
-
--progress-bar-background-color: var(--wui-color-bg-surface-secondary);
|
|
14639
14637
|
|
|
14640
14638
|
display: flex;
|
|
14641
14639
|
align-items: center;
|
|
@@ -14657,7 +14655,8 @@ var ProgressBarLabel = styled75.div`
|
|
|
14657
14655
|
flex-shrink: 0;
|
|
14658
14656
|
`;
|
|
14659
14657
|
var StyledProgressIndicator = styled75(ProgressIndicator)`
|
|
14660
|
-
|
|
14658
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14659
|
+
background-color: var(--wui-color-bg-fill);
|
|
14661
14660
|
width: 100%;
|
|
14662
14661
|
height: 100%;
|
|
14663
14662
|
border-top-right-radius: var(--wui-border-radius-rounded);
|
|
@@ -14666,9 +14665,10 @@ var StyledProgressIndicator = styled75(ProgressIndicator)`
|
|
|
14666
14665
|
transform: ${({ $progress, $max }) => getTranslateValue($progress, $max)};
|
|
14667
14666
|
`;
|
|
14668
14667
|
var StyledProgressBar = styled75(ProgressRoot)`
|
|
14668
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14669
14669
|
position: relative;
|
|
14670
14670
|
overflow: hidden;
|
|
14671
|
-
background: var(--
|
|
14671
|
+
background-color: var(--wui-color-bg-surface-secondary);
|
|
14672
14672
|
border-radius: var(--wui-border-radius-rounded);
|
|
14673
14673
|
width: 100%;
|
|
14674
14674
|
height: var(--progress-bar-height);
|
|
@@ -14682,6 +14682,7 @@ var ProgressBar = ({
|
|
|
14682
14682
|
children,
|
|
14683
14683
|
labelLeft,
|
|
14684
14684
|
labelRight,
|
|
14685
|
+
colorScheme = "inherit",
|
|
14685
14686
|
...props
|
|
14686
14687
|
}) => {
|
|
14687
14688
|
return /* @__PURE__ */ jsxs51(ProgressBarWrapper, { children: [
|
|
@@ -14689,12 +14690,14 @@ var ProgressBar = ({
|
|
|
14689
14690
|
/* @__PURE__ */ jsx285(
|
|
14690
14691
|
StyledProgressBar,
|
|
14691
14692
|
{
|
|
14693
|
+
$colorScheme: colorScheme,
|
|
14692
14694
|
max,
|
|
14693
14695
|
value: progress,
|
|
14694
14696
|
...props,
|
|
14695
14697
|
children: /* @__PURE__ */ jsx285(
|
|
14696
14698
|
StyledProgressIndicator,
|
|
14697
14699
|
{
|
|
14700
|
+
$colorScheme: colorScheme,
|
|
14698
14701
|
$max: max,
|
|
14699
14702
|
$progress: progress
|
|
14700
14703
|
}
|
|
@@ -16917,6 +16920,87 @@ var ContextMenu = ({
|
|
|
16917
16920
|
}
|
|
16918
16921
|
) : null;
|
|
16919
16922
|
};
|
|
16923
|
+
|
|
16924
|
+
// src/components/DataList/DataList.tsx
|
|
16925
|
+
import styled103 from "styled-components";
|
|
16926
|
+
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
16927
|
+
var StyledDataList = styled103.dl`
|
|
16928
|
+
display: grid;
|
|
16929
|
+
grid-template-columns: auto 1fr;
|
|
16930
|
+
column-gap: var(--wui-space-02);
|
|
16931
|
+
row-gap: var(--wui-space-04);
|
|
16932
|
+
align-items: baseline;
|
|
16933
|
+
align-content: start;
|
|
16934
|
+
|
|
16935
|
+
dt {
|
|
16936
|
+
margin: 0;
|
|
16937
|
+
padding: 0;
|
|
16938
|
+
font-weight: var(--wui-datalist-label-prominence);
|
|
16939
|
+
width: var(--wui-datalist-label-max-width, auto);
|
|
16940
|
+
}
|
|
16941
|
+
|
|
16942
|
+
dd {
|
|
16943
|
+
margin: 0;
|
|
16944
|
+
padding: 0;
|
|
16945
|
+
text-align: var(--wui-datalist-value-alignment, start);
|
|
16946
|
+
}
|
|
16947
|
+
`;
|
|
16948
|
+
var DataList = ({
|
|
16949
|
+
children,
|
|
16950
|
+
valueAlignment = "start",
|
|
16951
|
+
labelMaxWith = "auto",
|
|
16952
|
+
labelProminence = "primary",
|
|
16953
|
+
...props
|
|
16954
|
+
}) => {
|
|
16955
|
+
return /* @__PURE__ */ jsx315(
|
|
16956
|
+
StyledDataList,
|
|
16957
|
+
{
|
|
16958
|
+
role: "list",
|
|
16959
|
+
style: {
|
|
16960
|
+
"--wui-datalist-label-max-width": labelMaxWith,
|
|
16961
|
+
"--wui-datalist-value-alignment": valueAlignment === "end" ? "right" : "left",
|
|
16962
|
+
"--wui-datalist-label-prominence": labelProminence === "secondary" ? "var(--wui-typography-weight-label)" : "var(--wui-typography-weight-label-bold)"
|
|
16963
|
+
},
|
|
16964
|
+
...props,
|
|
16965
|
+
children
|
|
16966
|
+
}
|
|
16967
|
+
);
|
|
16968
|
+
};
|
|
16969
|
+
DataList.displayName = "DataList_UI";
|
|
16970
|
+
|
|
16971
|
+
// src/components/DataList/DataListItem.tsx
|
|
16972
|
+
var DataListItem = ({ children }) => {
|
|
16973
|
+
return children;
|
|
16974
|
+
};
|
|
16975
|
+
DataListItem.displayName = "DataListItem_UI";
|
|
16976
|
+
|
|
16977
|
+
// src/components/DataList/DataListItemLabel.tsx
|
|
16978
|
+
import { jsx as jsx316 } from "react/jsx-runtime";
|
|
16979
|
+
var DataListItemLabel = (props) => {
|
|
16980
|
+
return /* @__PURE__ */ jsx316(
|
|
16981
|
+
Text,
|
|
16982
|
+
{
|
|
16983
|
+
variant: "label4",
|
|
16984
|
+
...props,
|
|
16985
|
+
renderAs: "dt"
|
|
16986
|
+
}
|
|
16987
|
+
);
|
|
16988
|
+
};
|
|
16989
|
+
DataListItemLabel.displayName = "DataListItemLabel_UI";
|
|
16990
|
+
|
|
16991
|
+
// src/components/DataList/DataListItemValue.tsx
|
|
16992
|
+
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
16993
|
+
var DataListItemValue = (props) => {
|
|
16994
|
+
return /* @__PURE__ */ jsx317(
|
|
16995
|
+
Text,
|
|
16996
|
+
{
|
|
16997
|
+
variant: "body3",
|
|
16998
|
+
...props,
|
|
16999
|
+
renderAs: "dd"
|
|
17000
|
+
}
|
|
17001
|
+
);
|
|
17002
|
+
};
|
|
17003
|
+
DataListItemValue.displayName = "DataListItemValue_UI";
|
|
16920
17004
|
export {
|
|
16921
17005
|
ActionButton,
|
|
16922
17006
|
Avatar,
|
|
@@ -16955,6 +17039,10 @@ export {
|
|
|
16955
17039
|
DataCardHoverArrow,
|
|
16956
17040
|
DataCardTrend,
|
|
16957
17041
|
DataCards,
|
|
17042
|
+
DataList,
|
|
17043
|
+
DataListItem,
|
|
17044
|
+
DataListItemLabel,
|
|
17045
|
+
DataListItemValue,
|
|
16958
17046
|
Divider,
|
|
16959
17047
|
EditableHeading,
|
|
16960
17048
|
Ellipsis,
|