@wistia/ui 0.5.3 → 0.5.4-beta.31b8aad1.95d4301
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 +1622 -1377
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +288 -197
- package/dist/index.d.ts +288 -197
- package/dist/index.mjs +1657 -1414
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -134,7 +134,7 @@ declare const ColorSchemeWrapper: {
|
|
|
134
134
|
type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
|
|
135
135
|
|
|
136
136
|
type LinkTypes = 'default' | 'email' | 'external' | 'phone';
|
|
137
|
-
type BaseProps$
|
|
137
|
+
type BaseProps$2 = {
|
|
138
138
|
/**
|
|
139
139
|
* A Promise to invoke before navigating to location.
|
|
140
140
|
* _Caution: if used with `external` type prop a new window will **not** be opened_
|
|
@@ -175,11 +175,11 @@ type BaseProps$1 = {
|
|
|
175
175
|
*/
|
|
176
176
|
underline?: boolean;
|
|
177
177
|
};
|
|
178
|
-
type LinkAsLinkProps = BaseProps$
|
|
178
|
+
type LinkAsLinkProps = BaseProps$2 & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
|
|
179
179
|
href: string | undefined;
|
|
180
180
|
type?: LinkTypes;
|
|
181
181
|
};
|
|
182
|
-
type LinkAsButtonProps = BaseProps$
|
|
182
|
+
type LinkAsButtonProps = BaseProps$2 & ComponentPropsWithRef<'button'> & {
|
|
183
183
|
href?: never;
|
|
184
184
|
type?: 'button' | 'reset' | 'submit';
|
|
185
185
|
};
|
|
@@ -763,6 +763,78 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
|
|
|
763
763
|
};
|
|
764
764
|
declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
765
765
|
|
|
766
|
+
type DataCardProps = ComponentPropsWithoutRef<'div'> & {
|
|
767
|
+
/**
|
|
768
|
+
* Label text displayed above the value
|
|
769
|
+
*/
|
|
770
|
+
label: ReactNode;
|
|
771
|
+
/**
|
|
772
|
+
* Main value to display in the card
|
|
773
|
+
*/
|
|
774
|
+
value: ReactNode;
|
|
775
|
+
/**
|
|
776
|
+
* Optional content to display in the top-right corner
|
|
777
|
+
*/
|
|
778
|
+
upperRightSlot?: ReactNode;
|
|
779
|
+
/**
|
|
780
|
+
* Sets the color scheme of the card
|
|
781
|
+
*/
|
|
782
|
+
colorScheme?: ColorSchemeTypes;
|
|
783
|
+
/**
|
|
784
|
+
* Controls the loading state of the card
|
|
785
|
+
*/
|
|
786
|
+
isLoading?: boolean;
|
|
787
|
+
/**
|
|
788
|
+
* Optional trend arrow to display below the value. Use the `DataCardTrend` component to create this.
|
|
789
|
+
*/
|
|
790
|
+
trend?: JSX.Element;
|
|
791
|
+
};
|
|
792
|
+
/**
|
|
793
|
+
* A single DataCard for use in the DataCards component
|
|
794
|
+
*/
|
|
795
|
+
declare const DataCard: {
|
|
796
|
+
({ label, value, upperRightSlot, colorScheme, isLoading, trend, ...props }: DataCardProps): JSX.Element;
|
|
797
|
+
displayName: string;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
type DataCardsProps = ComponentPropsWithoutRef<'dl'> & {
|
|
801
|
+
/**
|
|
802
|
+
* Should be at least one `DataCard` component
|
|
803
|
+
*/
|
|
804
|
+
children: ReactNode;
|
|
805
|
+
/**
|
|
806
|
+
* String to pass to the `max-width` property of its children. [View the syntax on MDN →](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width#syntax)
|
|
807
|
+
*/
|
|
808
|
+
cardMaxWidth?: string;
|
|
809
|
+
/**
|
|
810
|
+
* Sets the color scheme of the cards, can be overriden at the card level
|
|
811
|
+
*/
|
|
812
|
+
colorScheme?: ColorSchemeTypes;
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
* Displays a series of cards tailor made for displaying analytics data
|
|
816
|
+
*/
|
|
817
|
+
declare const DataCards: {
|
|
818
|
+
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX.Element;
|
|
819
|
+
displayName: string;
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
type DataCardTrendProps = {
|
|
823
|
+
/**
|
|
824
|
+
* Direction of the trend arrow
|
|
825
|
+
*/
|
|
826
|
+
direction?: 'down' | 'up';
|
|
827
|
+
/**
|
|
828
|
+
* Outlook of the trend arrow
|
|
829
|
+
*/
|
|
830
|
+
outlook?: 'negative' | 'positive';
|
|
831
|
+
/**
|
|
832
|
+
* Content to display next to the trend arrow
|
|
833
|
+
*/
|
|
834
|
+
children: JSX.Element | string;
|
|
835
|
+
};
|
|
836
|
+
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
|
|
837
|
+
|
|
766
838
|
type DividerProps = ComponentPropsWithoutRef<'div'> & {
|
|
767
839
|
/**
|
|
768
840
|
* Orientation of the divider.
|
|
@@ -777,6 +849,49 @@ declare const Divider: {
|
|
|
777
849
|
displayName: string;
|
|
778
850
|
};
|
|
779
851
|
|
|
852
|
+
type EditableHeadingProps = {
|
|
853
|
+
/**
|
|
854
|
+
* The initial text content of the heading.
|
|
855
|
+
* This will be displayed and used as the starting value when editing begins.
|
|
856
|
+
*/
|
|
857
|
+
children: string;
|
|
858
|
+
/**
|
|
859
|
+
* Callback fired when editing is completed (on blur or Enter key). Does not fire if the value is empty or the same as the previous value.
|
|
860
|
+
* @param value The new text content after editing
|
|
861
|
+
*/
|
|
862
|
+
onValueChange?: (value: string) => void;
|
|
863
|
+
/**
|
|
864
|
+
* Callback fired when the editing state changes.
|
|
865
|
+
* @param isEditing True when entering edit mode, false when exiting
|
|
866
|
+
*/
|
|
867
|
+
onEditingChange?: (isEditing: boolean) => void;
|
|
868
|
+
/**
|
|
869
|
+
* Custom tooltip text shown when hovering over the heading.
|
|
870
|
+
*/
|
|
871
|
+
tooltipText?: string;
|
|
872
|
+
/**
|
|
873
|
+
* Sets an aria-label for the input and label for the screen reader only button.
|
|
874
|
+
*/
|
|
875
|
+
ariaLabel?: string;
|
|
876
|
+
/**
|
|
877
|
+
* Force editing state for testing purposes
|
|
878
|
+
*
|
|
879
|
+
*/
|
|
880
|
+
forceEditing?: boolean;
|
|
881
|
+
/**
|
|
882
|
+
* When true, prevents the heading from entering edit mode
|
|
883
|
+
* @default false
|
|
884
|
+
*/
|
|
885
|
+
editingDisabled?: boolean;
|
|
886
|
+
};
|
|
887
|
+
/**
|
|
888
|
+
* A special heading component that allows for inline editing. When clicked or activated via keyboard,
|
|
889
|
+
* it transforms into an editable text field. In its default state, it renders as a heading with
|
|
890
|
+
* an accessible button that enables editing mode. The component handles empty values, keyboard
|
|
891
|
+
* navigation (Enter to save, Escape to cancel), and provides callbacks for value and state changes.
|
|
892
|
+
*/
|
|
893
|
+
declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, forceEditing, editingDisabled, }: EditableHeadingProps) => JSX.Element;
|
|
894
|
+
|
|
780
895
|
declare const ellipsisStyle: styled_components.FlattenSimpleInterpolation;
|
|
781
896
|
declare const ellipsisFlexParentStyle: styled_components.FlattenSimpleInterpolation;
|
|
782
897
|
type EllipsisProps = ComponentPropsWithoutRef<'div'> & {
|
|
@@ -1584,7 +1699,7 @@ type TextProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
1584
1699
|
/**
|
|
1585
1700
|
* Used for rending paragraphs and inline text.
|
|
1586
1701
|
*/
|
|
1587
|
-
declare const Text: (<C extends ElementType = "
|
|
1702
|
+
declare const Text: (<C extends ElementType = "p">(props: PolymorphicComponentProps<C, TextProps>) => react.ReactElement | null) & UnknownRecord;
|
|
1588
1703
|
|
|
1589
1704
|
type MenuItemLabelProps = {
|
|
1590
1705
|
/**
|
|
@@ -1881,7 +1996,7 @@ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
|
|
|
1881
1996
|
*/
|
|
1882
1997
|
fullWidth?: boolean | undefined;
|
|
1883
1998
|
/**
|
|
1884
|
-
* Callback function invoked when the value changes
|
|
1999
|
+
* Callback function invoked when the `SegmentedControlItem` value changes
|
|
1885
2000
|
*/
|
|
1886
2001
|
onSelectedValueChange: (value: string) => void;
|
|
1887
2002
|
/**
|
|
@@ -1894,7 +2009,7 @@ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
|
|
|
1894
2009
|
*/
|
|
1895
2010
|
declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps>;
|
|
1896
2011
|
|
|
1897
|
-
type BaseProps = {
|
|
2012
|
+
type BaseProps$1 = {
|
|
1898
2013
|
/**
|
|
1899
2014
|
* Disable the `SegmentedControlItem`
|
|
1900
2015
|
*/
|
|
@@ -1904,7 +2019,7 @@ type BaseProps = {
|
|
|
1904
2019
|
*/
|
|
1905
2020
|
value: string;
|
|
1906
2021
|
};
|
|
1907
|
-
type IconWithLabel = {
|
|
2022
|
+
type IconWithLabel$1 = {
|
|
1908
2023
|
/**
|
|
1909
2024
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
1910
2025
|
*/
|
|
@@ -1915,7 +2030,7 @@ type IconWithLabel = {
|
|
|
1915
2030
|
label?: ReactNode | string | undefined;
|
|
1916
2031
|
'aria-label'?: never;
|
|
1917
2032
|
};
|
|
1918
|
-
type IconWithAriaLabel = {
|
|
2033
|
+
type IconWithAriaLabel$1 = {
|
|
1919
2034
|
/**
|
|
1920
2035
|
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
1921
2036
|
*/
|
|
@@ -1926,7 +2041,7 @@ type IconWithAriaLabel = {
|
|
|
1926
2041
|
'aria-label'?: string | undefined;
|
|
1927
2042
|
label?: never;
|
|
1928
2043
|
};
|
|
1929
|
-
type NoIcon = {
|
|
2044
|
+
type NoIcon$1 = {
|
|
1930
2045
|
icon?: undefined;
|
|
1931
2046
|
/**
|
|
1932
2047
|
* The label of the item
|
|
@@ -1934,9 +2049,80 @@ type NoIcon = {
|
|
|
1934
2049
|
label?: ReactNode | string | undefined;
|
|
1935
2050
|
'aria-label'?: never;
|
|
1936
2051
|
};
|
|
1937
|
-
type SegmentedControlItemProps = BaseProps & (IconWithAriaLabel | IconWithLabel | NoIcon);
|
|
2052
|
+
type SegmentedControlItemProps = BaseProps$1 & (IconWithAriaLabel$1 | IconWithLabel$1 | NoIcon$1);
|
|
1938
2053
|
declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1939
2054
|
|
|
2055
|
+
type SelectProps = {
|
|
2056
|
+
/**
|
|
2057
|
+
* Sets the validity status of the input
|
|
2058
|
+
*
|
|
2059
|
+
* @default false
|
|
2060
|
+
*/
|
|
2061
|
+
'aria-invalid'?: boolean;
|
|
2062
|
+
/**
|
|
2063
|
+
* A group of `Option` or `OptionGroup`s
|
|
2064
|
+
*/
|
|
2065
|
+
children: ReactNode;
|
|
2066
|
+
colorScheme?: ColorSchemeTypes;
|
|
2067
|
+
/**
|
|
2068
|
+
* When true, the select can't be interacted with.
|
|
2069
|
+
*
|
|
2070
|
+
* @default false
|
|
2071
|
+
*/
|
|
2072
|
+
disabled?: boolean;
|
|
2073
|
+
/**
|
|
2074
|
+
* If true, the select will fill its container
|
|
2075
|
+
*/
|
|
2076
|
+
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2077
|
+
/**
|
|
2078
|
+
* Called when a value is changed.
|
|
2079
|
+
*/
|
|
2080
|
+
onChange?: (value: string) => void;
|
|
2081
|
+
/**
|
|
2082
|
+
* Text shown when no value is selected
|
|
2083
|
+
*/
|
|
2084
|
+
placeholder?: string;
|
|
2085
|
+
/**
|
|
2086
|
+
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2087
|
+
*/
|
|
2088
|
+
value?: string;
|
|
2089
|
+
};
|
|
2090
|
+
/**
|
|
2091
|
+
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2092
|
+
*/
|
|
2093
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2094
|
+
|
|
2095
|
+
type SelectOptionProps = {
|
|
2096
|
+
/**
|
|
2097
|
+
* The visual content of the select
|
|
2098
|
+
*/
|
|
2099
|
+
children: ReactNode;
|
|
2100
|
+
/**
|
|
2101
|
+
* The value to set
|
|
2102
|
+
*/
|
|
2103
|
+
value: string;
|
|
2104
|
+
/**
|
|
2105
|
+
* When true, this option will not be selectable
|
|
2106
|
+
*
|
|
2107
|
+
* @default false
|
|
2108
|
+
*/
|
|
2109
|
+
disabled?: boolean;
|
|
2110
|
+
/**
|
|
2111
|
+
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2112
|
+
* Use this when the content is complex, or you have non-textual content inside.
|
|
2113
|
+
*/
|
|
2114
|
+
textValue?: string;
|
|
2115
|
+
};
|
|
2116
|
+
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2117
|
+
|
|
2118
|
+
type SelectOptionGroupProps = {
|
|
2119
|
+
/** The label of the group */
|
|
2120
|
+
label: string;
|
|
2121
|
+
/** At least one `Option` */
|
|
2122
|
+
children: ReactNode;
|
|
2123
|
+
};
|
|
2124
|
+
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2125
|
+
|
|
1940
2126
|
type StackProps = {
|
|
1941
2127
|
/**
|
|
1942
2128
|
* Optional children
|
|
@@ -1960,6 +2146,97 @@ type StackProps = {
|
|
|
1960
2146
|
*/
|
|
1961
2147
|
declare const Stack: (<C extends ElementType = "div">(props: PolymorphicComponentProps<C, StackProps>) => react.ReactElement | null) & UnknownRecord;
|
|
1962
2148
|
|
|
2149
|
+
type BaseTabsProps = {
|
|
2150
|
+
/**
|
|
2151
|
+
* Accesible label to describe the `TabList`
|
|
2152
|
+
*/
|
|
2153
|
+
'aria-label': string;
|
|
2154
|
+
/**
|
|
2155
|
+
* `Tab` components that will be rendered
|
|
2156
|
+
*/
|
|
2157
|
+
children: ReactNode;
|
|
2158
|
+
/**
|
|
2159
|
+
* When true, the tabs will span the full width of the container.
|
|
2160
|
+
*/
|
|
2161
|
+
fullWidth?: boolean;
|
|
2162
|
+
};
|
|
2163
|
+
type ControlledTabsProps = BaseTabsProps & {
|
|
2164
|
+
/**
|
|
2165
|
+
* The value of the `Tab` which should be selected; used for controlled mode
|
|
2166
|
+
*/
|
|
2167
|
+
selectedValue: string;
|
|
2168
|
+
/**
|
|
2169
|
+
* Callback invoked when the selected `Tab` value changes; used for controlled mode
|
|
2170
|
+
*/
|
|
2171
|
+
onSelectedValueChange: (value: string) => void;
|
|
2172
|
+
/**
|
|
2173
|
+
* This prop should not be provided in controlled mode.
|
|
2174
|
+
*/
|
|
2175
|
+
defaultSelectedValue?: never;
|
|
2176
|
+
};
|
|
2177
|
+
type UncontrolledTabsProps = BaseTabsProps & {
|
|
2178
|
+
/**
|
|
2179
|
+
* The `Tab` that will be initially selected; used for uncontrolled mode
|
|
2180
|
+
*/
|
|
2181
|
+
defaultSelectedValue: string;
|
|
2182
|
+
/**
|
|
2183
|
+
* These props should not be provided in uncontrolled mode.
|
|
2184
|
+
*/
|
|
2185
|
+
selectedValue?: never;
|
|
2186
|
+
onSelectedValueChange?: never;
|
|
2187
|
+
};
|
|
2188
|
+
type TabsProps = ControlledTabsProps | UncontrolledTabsProps;
|
|
2189
|
+
declare const Tabs: react.ForwardRefExoticComponent<TabsProps & react.RefAttributes<HTMLDivElement>>;
|
|
2190
|
+
|
|
2191
|
+
type BaseProps = {
|
|
2192
|
+
/**
|
|
2193
|
+
* Disable the `SegmentedControlItem`
|
|
2194
|
+
*/
|
|
2195
|
+
disabled?: boolean;
|
|
2196
|
+
/**
|
|
2197
|
+
* The value of the item
|
|
2198
|
+
*/
|
|
2199
|
+
value: string;
|
|
2200
|
+
};
|
|
2201
|
+
type IconWithLabel = {
|
|
2202
|
+
/**
|
|
2203
|
+
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2204
|
+
*/
|
|
2205
|
+
icon?: JSX.Element;
|
|
2206
|
+
/**
|
|
2207
|
+
* The label of the item
|
|
2208
|
+
*/
|
|
2209
|
+
label?: ReactNode | string;
|
|
2210
|
+
'aria-label'?: never;
|
|
2211
|
+
};
|
|
2212
|
+
type IconWithAriaLabel = {
|
|
2213
|
+
/**
|
|
2214
|
+
* The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
|
|
2215
|
+
*/
|
|
2216
|
+
icon?: JSX.Element;
|
|
2217
|
+
/**
|
|
2218
|
+
* Use this when displaying an icon without a label
|
|
2219
|
+
*/
|
|
2220
|
+
'aria-label'?: string;
|
|
2221
|
+
label?: never;
|
|
2222
|
+
};
|
|
2223
|
+
type NoIcon = {
|
|
2224
|
+
icon?: undefined;
|
|
2225
|
+
/**
|
|
2226
|
+
* The label of the item
|
|
2227
|
+
*/
|
|
2228
|
+
label?: ReactNode | string;
|
|
2229
|
+
'aria-label'?: never;
|
|
2230
|
+
};
|
|
2231
|
+
type TabItemProps = BaseProps & (IconWithAriaLabel | IconWithLabel | NoIcon);
|
|
2232
|
+
|
|
2233
|
+
type TabProps = Omit<TabItemProps, 'children'> & {
|
|
2234
|
+
children?: ReactNode;
|
|
2235
|
+
};
|
|
2236
|
+
declare const Tab: react.ForwardRefExoticComponent<Omit<TabItemProps, "children"> & {
|
|
2237
|
+
children?: ReactNode;
|
|
2238
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
2239
|
+
|
|
1963
2240
|
type TagProps = ComponentPropsWithoutRef<'div'> & {
|
|
1964
2241
|
/**
|
|
1965
2242
|
* Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
|
|
@@ -2087,190 +2364,4 @@ declare const WistiaLogo: {
|
|
|
2087
2364
|
displayName: string;
|
|
2088
2365
|
};
|
|
2089
2366
|
|
|
2090
|
-
type SelectProps
|
|
2091
|
-
/**
|
|
2092
|
-
* Sets the validity status of the input
|
|
2093
|
-
*
|
|
2094
|
-
* @default false
|
|
2095
|
-
*/
|
|
2096
|
-
'aria-invalid'?: boolean;
|
|
2097
|
-
/**
|
|
2098
|
-
* A group of `Option` or `OptionGroup`s
|
|
2099
|
-
*/
|
|
2100
|
-
children: ReactNode;
|
|
2101
|
-
colorScheme?: ColorSchemeTypes;
|
|
2102
|
-
/**
|
|
2103
|
-
* When true, the select can't be interacted with.
|
|
2104
|
-
*
|
|
2105
|
-
* @default false
|
|
2106
|
-
*/
|
|
2107
|
-
disabled?: boolean;
|
|
2108
|
-
/**
|
|
2109
|
-
* If true, the select will fill its container
|
|
2110
|
-
*/
|
|
2111
|
-
fullWidth?: ResponsiveObject<boolean> | boolean;
|
|
2112
|
-
/**
|
|
2113
|
-
* Called when a value is changed.
|
|
2114
|
-
*/
|
|
2115
|
-
onChange?: (value: string) => void;
|
|
2116
|
-
/**
|
|
2117
|
-
* Text shown when no value is selected
|
|
2118
|
-
*/
|
|
2119
|
-
placeholder?: string;
|
|
2120
|
-
/**
|
|
2121
|
-
* The controlled value. Must be used in conjunction with `onChange`.
|
|
2122
|
-
*/
|
|
2123
|
-
value?: string;
|
|
2124
|
-
};
|
|
2125
|
-
/**
|
|
2126
|
-
* Display a list of options and choose one of them. Replacement for the native Select HTML element.
|
|
2127
|
-
*/
|
|
2128
|
-
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
2129
|
-
|
|
2130
|
-
type SelectOptionProps = {
|
|
2131
|
-
/**
|
|
2132
|
-
* The visual content of the select
|
|
2133
|
-
*/
|
|
2134
|
-
children: ReactNode;
|
|
2135
|
-
/**
|
|
2136
|
-
* The value to set
|
|
2137
|
-
*/
|
|
2138
|
-
value: string;
|
|
2139
|
-
/**
|
|
2140
|
-
* When true, this option will not be selectable
|
|
2141
|
-
*
|
|
2142
|
-
* @default false
|
|
2143
|
-
*/
|
|
2144
|
-
disabled?: boolean;
|
|
2145
|
-
/**
|
|
2146
|
-
* Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
|
|
2147
|
-
* Use this when the content is complex, or you have non-textual content inside.
|
|
2148
|
-
*/
|
|
2149
|
-
textValue?: string;
|
|
2150
|
-
};
|
|
2151
|
-
declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
|
|
2152
|
-
|
|
2153
|
-
type SelectOptionGroupProps = {
|
|
2154
|
-
/** The label of the group */
|
|
2155
|
-
label: string;
|
|
2156
|
-
/** At least one `Option` */
|
|
2157
|
-
children: ReactNode;
|
|
2158
|
-
};
|
|
2159
|
-
declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2160
|
-
|
|
2161
|
-
type DataCardProps = ComponentPropsWithoutRef<'div'> & {
|
|
2162
|
-
/**
|
|
2163
|
-
* Label text displayed above the value
|
|
2164
|
-
*/
|
|
2165
|
-
label: ReactNode;
|
|
2166
|
-
/**
|
|
2167
|
-
* Main value to display in the card
|
|
2168
|
-
*/
|
|
2169
|
-
value: ReactNode;
|
|
2170
|
-
/**
|
|
2171
|
-
* Optional content to display in the top-right corner
|
|
2172
|
-
*/
|
|
2173
|
-
upperRightSlot?: ReactNode;
|
|
2174
|
-
/**
|
|
2175
|
-
* Sets the color scheme of the card
|
|
2176
|
-
*/
|
|
2177
|
-
colorScheme?: ColorSchemeTypes;
|
|
2178
|
-
/**
|
|
2179
|
-
* Controls the loading state of the card
|
|
2180
|
-
*/
|
|
2181
|
-
isLoading?: boolean;
|
|
2182
|
-
/**
|
|
2183
|
-
* Optional trend arrow to display below the value. Use the `DataCardTrend` component to create this.
|
|
2184
|
-
*/
|
|
2185
|
-
trend?: JSX.Element;
|
|
2186
|
-
};
|
|
2187
|
-
/**
|
|
2188
|
-
* A single DataCard for use in the DataCards component
|
|
2189
|
-
*/
|
|
2190
|
-
declare const DataCard: {
|
|
2191
|
-
({ label, value, upperRightSlot, colorScheme, isLoading, trend, ...props }: DataCardProps): JSX.Element;
|
|
2192
|
-
displayName: string;
|
|
2193
|
-
};
|
|
2194
|
-
|
|
2195
|
-
type DataCardsProps = ComponentPropsWithoutRef<'dl'> & {
|
|
2196
|
-
/**
|
|
2197
|
-
* Should be at least one `DataCard` component
|
|
2198
|
-
*/
|
|
2199
|
-
children: ReactNode;
|
|
2200
|
-
/**
|
|
2201
|
-
* String to pass to the `max-width` property of its children. [View the syntax on MDN →](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width#syntax)
|
|
2202
|
-
*/
|
|
2203
|
-
cardMaxWidth?: string;
|
|
2204
|
-
/**
|
|
2205
|
-
* Sets the color scheme of the cards, can be overriden at the card level
|
|
2206
|
-
*/
|
|
2207
|
-
colorScheme?: ColorSchemeTypes;
|
|
2208
|
-
};
|
|
2209
|
-
/**
|
|
2210
|
-
* Displays a series of cards tailor made for displaying analytics data
|
|
2211
|
-
*/
|
|
2212
|
-
declare const DataCards: {
|
|
2213
|
-
({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX.Element;
|
|
2214
|
-
displayName: string;
|
|
2215
|
-
};
|
|
2216
|
-
|
|
2217
|
-
type DataCardTrendProps = {
|
|
2218
|
-
/**
|
|
2219
|
-
* Direction of the trend arrow
|
|
2220
|
-
*/
|
|
2221
|
-
direction?: 'down' | 'up';
|
|
2222
|
-
/**
|
|
2223
|
-
* Outlook of the trend arrow
|
|
2224
|
-
*/
|
|
2225
|
-
outlook?: 'negative' | 'positive';
|
|
2226
|
-
/**
|
|
2227
|
-
* Content to display next to the trend arrow
|
|
2228
|
-
*/
|
|
2229
|
-
children: JSX.Element | string;
|
|
2230
|
-
};
|
|
2231
|
-
declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
|
|
2232
|
-
|
|
2233
|
-
type EditableHeadingProps = {
|
|
2234
|
-
/**
|
|
2235
|
-
* The initial text content of the heading.
|
|
2236
|
-
* This will be displayed and used as the starting value when editing begins.
|
|
2237
|
-
*/
|
|
2238
|
-
children: string;
|
|
2239
|
-
/**
|
|
2240
|
-
* Callback fired when editing is completed (on blur or Enter key). Does not fire if the value is empty or the same as the previous value.
|
|
2241
|
-
* @param value The new text content after editing
|
|
2242
|
-
*/
|
|
2243
|
-
onValueChange?: (value: string) => void;
|
|
2244
|
-
/**
|
|
2245
|
-
* Callback fired when the editing state changes.
|
|
2246
|
-
* @param isEditing True when entering edit mode, false when exiting
|
|
2247
|
-
*/
|
|
2248
|
-
onEditingChange?: (isEditing: boolean) => void;
|
|
2249
|
-
/**
|
|
2250
|
-
* Custom tooltip text shown when hovering over the heading.
|
|
2251
|
-
*/
|
|
2252
|
-
tooltipText?: string;
|
|
2253
|
-
/**
|
|
2254
|
-
* Sets an aria-label for the input and label for the screen reader only button.
|
|
2255
|
-
*/
|
|
2256
|
-
ariaLabel?: string;
|
|
2257
|
-
/**
|
|
2258
|
-
* Force editing state for testing purposes
|
|
2259
|
-
*
|
|
2260
|
-
*/
|
|
2261
|
-
forceEditing?: boolean;
|
|
2262
|
-
/**
|
|
2263
|
-
* When true, prevents the heading from entering edit mode
|
|
2264
|
-
* @default false
|
|
2265
|
-
*/
|
|
2266
|
-
editingDisabled?: boolean;
|
|
2267
|
-
};
|
|
2268
|
-
/**
|
|
2269
|
-
* A special heading component that allows for inline editing. When clicked or activated via keyboard,
|
|
2270
|
-
* it transforms into an editable text field. In its default state, it renders as a heading with
|
|
2271
|
-
* an accessible button that enables editing mode. The component handles empty values, keyboard
|
|
2272
|
-
* navigation (Enter to save, Escape to cancel), and provides callbacks for value and state changes.
|
|
2273
|
-
*/
|
|
2274
|
-
declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, forceEditing, editingDisabled, }: EditableHeadingProps) => JSX.Element;
|
|
2275
|
-
|
|
2276
|
-
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, 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, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, 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, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|
|
2367
|
+
export { ActionButton, type ActionButtonProps, Avatar, type AvatarProps, type AvatarStatus, 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, DataCard, type DataCardProps, DataCardTrend, type DataCardTrendProps, DataCards, type DataCardsProps, Divider, EditableHeading, type EditableHeadingProps, 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, SegmentedControl, SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlProps, Select, SelectOption, SelectOptionGroup, type SelectOptionGroupProps, type SelectOptionProps, type SelectProps, Stack, SubMenu, Tab, type TabProps, Tabs, type TabsProps, Tag, type TagProps, Text, type TextProps, Tooltip, type TooltipProps, UIProvider, WistiaLogo, colorSchemeOptions, copyToClipboard, dateTime, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, mq, useActiveMq, useAriaLive, useBoolean, useFormState, useKey, useMq, useToast, useWindowSize };
|