@wistia/ui 0.5.3 → 0.5.4-beta.1547643.4c14bee

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.d.mts CHANGED
@@ -3,8 +3,10 @@ import * as react from 'react';
3
3
  import { ReactNode, Dispatch, SetStateAction, ComponentPropsWithoutRef, JSX, ComponentPropsWithRef, MouseEvent, ElementType, ChangeEvent, ForwardedRef, Ref, InputHTMLAttributes, RefObject, ForwardRefExoticComponent, RefAttributes } from 'react';
4
4
  import { LinkProps as LinkProps$1 } from 'react-router-dom';
5
5
  import * as styled_components from 'styled-components';
6
+ import { Keyframes } from 'styled-components';
6
7
  import { DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
7
8
  import { ToggleGroupSingleProps } from '@radix-ui/react-toggle-group';
9
+ import { Slot } from '@radix-ui/react-slot';
8
10
 
9
11
  type UIProviderProps = {
10
12
  children: ReactNode;
@@ -134,7 +136,7 @@ declare const ColorSchemeWrapper: {
134
136
  type ButtonVariants = 'ghost' | 'outline' | 'soft' | 'solid';
135
137
 
136
138
  type LinkTypes = 'default' | 'email' | 'external' | 'phone';
137
- type BaseProps$1 = {
139
+ type BaseProps$2 = {
138
140
  /**
139
141
  * A Promise to invoke before navigating to location.
140
142
  * _Caution: if used with `external` type prop a new window will **not** be opened_
@@ -175,11 +177,11 @@ type BaseProps$1 = {
175
177
  */
176
178
  underline?: boolean;
177
179
  };
178
- type LinkAsLinkProps = BaseProps$1 & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
180
+ type LinkAsLinkProps = BaseProps$2 & ComponentPropsWithRef<'a'> & Omit<LinkProps$1, 'to'> & {
179
181
  href: string | undefined;
180
182
  type?: LinkTypes;
181
183
  };
182
- type LinkAsButtonProps = BaseProps$1 & ComponentPropsWithRef<'button'> & {
184
+ type LinkAsButtonProps = BaseProps$2 & ComponentPropsWithRef<'button'> & {
183
185
  href?: never;
184
186
  type?: 'button' | 'reset' | 'submit';
185
187
  };
@@ -763,6 +765,78 @@ type CheckboxProps = Omit<ComponentPropsWithRef<'label'>, 'onChange'> & {
763
765
  };
764
766
  declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
765
767
 
768
+ type DataCardProps = ComponentPropsWithoutRef<'div'> & {
769
+ /**
770
+ * Label text displayed above the value
771
+ */
772
+ label: ReactNode;
773
+ /**
774
+ * Main value to display in the card
775
+ */
776
+ value: ReactNode;
777
+ /**
778
+ * Optional content to display in the top-right corner
779
+ */
780
+ upperRightSlot?: ReactNode;
781
+ /**
782
+ * Sets the color scheme of the card
783
+ */
784
+ colorScheme?: ColorSchemeTypes;
785
+ /**
786
+ * Controls the loading state of the card
787
+ */
788
+ isLoading?: boolean;
789
+ /**
790
+ * Optional trend arrow to display below the value. Use the `DataCardTrend` component to create this.
791
+ */
792
+ trend?: JSX.Element;
793
+ };
794
+ /**
795
+ * A single DataCard for use in the DataCards component
796
+ */
797
+ declare const DataCard: {
798
+ ({ label, value, upperRightSlot, colorScheme, isLoading, trend, ...props }: DataCardProps): JSX.Element;
799
+ displayName: string;
800
+ };
801
+
802
+ type DataCardsProps = ComponentPropsWithoutRef<'dl'> & {
803
+ /**
804
+ * Should be at least one `DataCard` component
805
+ */
806
+ children: ReactNode;
807
+ /**
808
+ * 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)
809
+ */
810
+ cardMaxWidth?: string;
811
+ /**
812
+ * Sets the color scheme of the cards, can be overriden at the card level
813
+ */
814
+ colorScheme?: ColorSchemeTypes;
815
+ };
816
+ /**
817
+ * Displays a series of cards tailor made for displaying analytics data
818
+ */
819
+ declare const DataCards: {
820
+ ({ children, cardMaxWidth, colorScheme, ...props }: DataCardsProps): JSX.Element;
821
+ displayName: string;
822
+ };
823
+
824
+ type DataCardTrendProps = {
825
+ /**
826
+ * Direction of the trend arrow
827
+ */
828
+ direction?: 'down' | 'up';
829
+ /**
830
+ * Outlook of the trend arrow
831
+ */
832
+ outlook?: 'negative' | 'positive';
833
+ /**
834
+ * Content to display next to the trend arrow
835
+ */
836
+ children: JSX.Element | string;
837
+ };
838
+ declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
839
+
766
840
  type DividerProps = ComponentPropsWithoutRef<'div'> & {
767
841
  /**
768
842
  * Orientation of the divider.
@@ -777,6 +851,49 @@ declare const Divider: {
777
851
  displayName: string;
778
852
  };
779
853
 
854
+ type EditableHeadingProps = {
855
+ /**
856
+ * The initial text content of the heading.
857
+ * This will be displayed and used as the starting value when editing begins.
858
+ */
859
+ children: string;
860
+ /**
861
+ * 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.
862
+ * @param value The new text content after editing
863
+ */
864
+ onValueChange?: (value: string) => void;
865
+ /**
866
+ * Callback fired when the editing state changes.
867
+ * @param isEditing True when entering edit mode, false when exiting
868
+ */
869
+ onEditingChange?: (isEditing: boolean) => void;
870
+ /**
871
+ * Custom tooltip text shown when hovering over the heading.
872
+ */
873
+ tooltipText?: string;
874
+ /**
875
+ * Sets an aria-label for the input and label for the screen reader only button.
876
+ */
877
+ ariaLabel?: string;
878
+ /**
879
+ * Force editing state for testing purposes
880
+ *
881
+ */
882
+ forceEditing?: boolean;
883
+ /**
884
+ * When true, prevents the heading from entering edit mode
885
+ * @default false
886
+ */
887
+ editingDisabled?: boolean;
888
+ };
889
+ /**
890
+ * A special heading component that allows for inline editing. When clicked or activated via keyboard,
891
+ * it transforms into an editable text field. In its default state, it renders as a heading with
892
+ * an accessible button that enables editing mode. The component handles empty values, keyboard
893
+ * navigation (Enter to save, Escape to cancel), and provides callbacks for value and state changes.
894
+ */
895
+ declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, forceEditing, editingDisabled, }: EditableHeadingProps) => JSX.Element;
896
+
780
897
  declare const ellipsisStyle: styled_components.FlattenSimpleInterpolation;
781
898
  declare const ellipsisFlexParentStyle: styled_components.FlattenSimpleInterpolation;
782
899
  type EllipsisProps = ComponentPropsWithoutRef<'div'> & {
@@ -1881,7 +1998,7 @@ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
1881
1998
  */
1882
1999
  fullWidth?: boolean | undefined;
1883
2000
  /**
1884
- * Callback function invoked when the value changes
2001
+ * Callback function invoked when the `SegmentedControlItem` value changes
1885
2002
  */
1886
2003
  onSelectedValueChange: (value: string) => void;
1887
2004
  /**
@@ -1894,7 +2011,7 @@ type SegmentedControlProps = Omit<ToggleGroupSingleProps, 'type'> & {
1894
2011
  */
1895
2012
  declare const SegmentedControl: ForwardRefExoticComponent<RefAttributes<HTMLDivElement> & SegmentedControlProps>;
1896
2013
 
1897
- type BaseProps = {
2014
+ type BaseProps$1 = {
1898
2015
  /**
1899
2016
  * Disable the `SegmentedControlItem`
1900
2017
  */
@@ -1904,7 +2021,7 @@ type BaseProps = {
1904
2021
  */
1905
2022
  value: string;
1906
2023
  };
1907
- type IconWithLabel = {
2024
+ type IconWithLabel$1 = {
1908
2025
  /**
1909
2026
  * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1910
2027
  */
@@ -1915,7 +2032,7 @@ type IconWithLabel = {
1915
2032
  label?: ReactNode | string | undefined;
1916
2033
  'aria-label'?: never;
1917
2034
  };
1918
- type IconWithAriaLabel = {
2035
+ type IconWithAriaLabel$1 = {
1919
2036
  /**
1920
2037
  * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
1921
2038
  */
@@ -1926,7 +2043,7 @@ type IconWithAriaLabel = {
1926
2043
  'aria-label'?: string | undefined;
1927
2044
  label?: never;
1928
2045
  };
1929
- type NoIcon = {
2046
+ type NoIcon$1 = {
1930
2047
  icon?: undefined;
1931
2048
  /**
1932
2049
  * The label of the item
@@ -1934,9 +2051,80 @@ type NoIcon = {
1934
2051
  label?: ReactNode | string | undefined;
1935
2052
  'aria-label'?: never;
1936
2053
  };
1937
- type SegmentedControlItemProps = BaseProps & (IconWithAriaLabel | IconWithLabel | NoIcon);
2054
+ type SegmentedControlItemProps = BaseProps$1 & (IconWithAriaLabel$1 | IconWithLabel$1 | NoIcon$1);
1938
2055
  declare const SegmentedControlItem: react.ForwardRefExoticComponent<SegmentedControlItemProps & react.RefAttributes<HTMLButtonElement>>;
1939
2056
 
2057
+ type SelectProps = {
2058
+ /**
2059
+ * Sets the validity status of the input
2060
+ *
2061
+ * @default false
2062
+ */
2063
+ 'aria-invalid'?: boolean;
2064
+ /**
2065
+ * A group of `Option` or `OptionGroup`s
2066
+ */
2067
+ children: ReactNode;
2068
+ colorScheme?: ColorSchemeTypes;
2069
+ /**
2070
+ * When true, the select can't be interacted with.
2071
+ *
2072
+ * @default false
2073
+ */
2074
+ disabled?: boolean;
2075
+ /**
2076
+ * If true, the select will fill its container
2077
+ */
2078
+ fullWidth?: ResponsiveObject<boolean> | boolean;
2079
+ /**
2080
+ * Called when a value is changed.
2081
+ */
2082
+ onChange?: (value: string) => void;
2083
+ /**
2084
+ * Text shown when no value is selected
2085
+ */
2086
+ placeholder?: string;
2087
+ /**
2088
+ * The controlled value. Must be used in conjunction with `onChange`.
2089
+ */
2090
+ value?: string;
2091
+ };
2092
+ /**
2093
+ * Display a list of options and choose one of them. Replacement for the native Select HTML element.
2094
+ */
2095
+ declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
2096
+
2097
+ type SelectOptionProps = {
2098
+ /**
2099
+ * The visual content of the select
2100
+ */
2101
+ children: ReactNode;
2102
+ /**
2103
+ * The value to set
2104
+ */
2105
+ value: string;
2106
+ /**
2107
+ * When true, this option will not be selectable
2108
+ *
2109
+ * @default false
2110
+ */
2111
+ disabled?: boolean;
2112
+ /**
2113
+ * Optional text used for typeahead purposes. By default the typeahead behavior will use the `.textContent` of the Option.
2114
+ * Use this when the content is complex, or you have non-textual content inside.
2115
+ */
2116
+ textValue?: string;
2117
+ };
2118
+ declare const SelectOption: react.ForwardRefExoticComponent<SelectOptionProps & react.RefAttributes<HTMLDivElement>>;
2119
+
2120
+ type SelectOptionGroupProps = {
2121
+ /** The label of the group */
2122
+ label: string;
2123
+ /** At least one `Option` */
2124
+ children: ReactNode;
2125
+ };
2126
+ declare const SelectOptionGroup: ({ children, label, ...props }: SelectOptionGroupProps) => react_jsx_runtime.JSX.Element;
2127
+
1940
2128
  type StackProps = {
1941
2129
  /**
1942
2130
  * Optional children
@@ -1960,6 +2148,97 @@ type StackProps = {
1960
2148
  */
1961
2149
  declare const Stack: (<C extends ElementType = "div">(props: PolymorphicComponentProps<C, StackProps>) => react.ReactElement | null) & UnknownRecord;
1962
2150
 
2151
+ type BaseTabsProps = {
2152
+ /**
2153
+ * Accesible label to describe the `TabList`
2154
+ */
2155
+ 'aria-label': string;
2156
+ /**
2157
+ * `Tab` components that will be rendered
2158
+ */
2159
+ children: ReactNode;
2160
+ /**
2161
+ * When true, the tabs will span the full width of the container.
2162
+ */
2163
+ fullWidth?: boolean;
2164
+ };
2165
+ type ControlledTabsProps = BaseTabsProps & {
2166
+ /**
2167
+ * The value of the `Tab` which should be selected; used for controlled mode
2168
+ */
2169
+ selectedValue: string;
2170
+ /**
2171
+ * Callback invoked when the selected `Tab` value changes; used for controlled mode
2172
+ */
2173
+ onSelectedValueChange: (value: string) => void;
2174
+ /**
2175
+ * This prop should not be provided in controlled mode.
2176
+ */
2177
+ defaultSelectedValue?: never;
2178
+ };
2179
+ type UncontrolledTabsProps = BaseTabsProps & {
2180
+ /**
2181
+ * The `Tab` that will be initially selected; used for uncontrolled mode
2182
+ */
2183
+ defaultSelectedValue: string;
2184
+ /**
2185
+ * These props should not be provided in uncontrolled mode.
2186
+ */
2187
+ selectedValue?: never;
2188
+ onSelectedValueChange?: never;
2189
+ };
2190
+ type TabsProps = ControlledTabsProps | UncontrolledTabsProps;
2191
+ declare const Tabs: react.ForwardRefExoticComponent<TabsProps & react.RefAttributes<HTMLDivElement>>;
2192
+
2193
+ type BaseProps = {
2194
+ /**
2195
+ * Disable the `SegmentedControlItem`
2196
+ */
2197
+ disabled?: boolean;
2198
+ /**
2199
+ * The value of the item
2200
+ */
2201
+ value: string;
2202
+ };
2203
+ type IconWithLabel = {
2204
+ /**
2205
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2206
+ */
2207
+ icon?: JSX.Element;
2208
+ /**
2209
+ * The label of the item
2210
+ */
2211
+ label?: ReactNode | string;
2212
+ 'aria-label'?: never;
2213
+ };
2214
+ type IconWithAriaLabel = {
2215
+ /**
2216
+ * The [Icon](?path=/docs/components-icon--docs) component to use, e.g. `<Icon type="favorite" />`
2217
+ */
2218
+ icon?: JSX.Element;
2219
+ /**
2220
+ * Use this when displaying an icon without a label
2221
+ */
2222
+ 'aria-label'?: string;
2223
+ label?: never;
2224
+ };
2225
+ type NoIcon = {
2226
+ icon?: undefined;
2227
+ /**
2228
+ * The label of the item
2229
+ */
2230
+ label?: ReactNode | string;
2231
+ 'aria-label'?: never;
2232
+ };
2233
+ type TabItemProps = BaseProps & (IconWithAriaLabel | IconWithLabel | NoIcon);
2234
+
2235
+ type TabProps = Omit<TabItemProps, 'children'> & {
2236
+ children?: ReactNode;
2237
+ };
2238
+ declare const Tab: react.ForwardRefExoticComponent<Omit<TabItemProps, "children"> & {
2239
+ children?: ReactNode;
2240
+ } & react.RefAttributes<HTMLDivElement>>;
2241
+
1963
2242
  type TagProps = ComponentPropsWithoutRef<'div'> & {
1964
2243
  /**
1965
2244
  * Sets the [color scheme](../?path=/docs/docs-color-schemes--docs)
@@ -2087,190 +2366,92 @@ declare const WistiaLogo: {
2087
2366
  displayName: string;
2088
2367
  };
2089
2368
 
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>>;
2369
+ type BorderRadii = 'border-radius-01' | 'border-radius-02' | 'border-radius-03' | 'border-radius-04' | 'border-radius-05' | 'border-radius-rounded';
2152
2370
 
2153
- type SelectOptionGroupProps = {
2154
- /** The label of the group */
2155
- label: string;
2156
- /** At least one `Option` */
2371
+ type TextVariants = keyof typeof variantStyleMap;
2372
+ type ListBoxItemProps = ComponentPropsWithoutRef<typeof Slot> & {
2157
2373
  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;
2374
+ padding?: Spacings;
2375
+ borderRadius?: BorderRadii;
2376
+ textVariant?: Extract<TextVariants, 'label1' | 'label2' | 'label3' | 'label4'>;
2377
+ gap?: Spacings;
2378
+ colorScheme?: ColorSchemeTypes | undefined;
2379
+ separatorMargin?: Spacings;
2186
2380
  };
2187
2381
  /**
2188
- * A single DataCard for use in the DataCards component
2382
+ * Component description goes here
2189
2383
  */
2190
- declare const DataCard: {
2191
- ({ label, value, upperRightSlot, colorScheme, isLoading, trend, ...props }: DataCardProps): JSX.Element;
2384
+ declare const ListBoxItem: {
2385
+ ({ children, padding, borderRadius, textVariant, gap, colorScheme, separatorMargin, ...props }: ListBoxItemProps): JSX.Element;
2192
2386
  displayName: string;
2193
2387
  };
2194
2388
 
2195
- type DataCardsProps = ComponentPropsWithoutRef<'dl'> & {
2196
- /**
2197
- * Should be at least one `DataCard` component
2198
- */
2199
- children: ReactNode;
2389
+ type Elevations = 'elevation-01' | 'elevation-02';
2390
+
2391
+ type MotionDurations = 'duration-01' | 'duration-02' | 'duration-03' | 'duration-04' | 'duration-05' | 'duration-06';
2392
+ type MotionEasings = 'ease-in-out' | 'ease-in' | 'ease-out' | 'ease' | 'linear';
2393
+
2394
+ type ZIndices = 'zindex-backdrop' | 'zindex-menu' | 'zindex-modal';
2395
+
2396
+ type FloatingCardZIndex = Extract<ZIndices, 'zindex-menu' | 'zindex-modal'>;
2397
+ type FloatingCardProps = ComponentPropsWithoutRef<typeof Slot> & {
2200
2398
  /**
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)
2399
+ * The padding applied to the card's content
2202
2400
  */
2203
- cardMaxWidth?: string;
2401
+ padding?: Spacings;
2204
2402
  /**
2205
- * Sets the color scheme of the cards, can be overriden at the card level
2403
+ * The elevation level that determines the shadow depth
2206
2404
  */
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 = {
2405
+ elevation?: Elevations;
2218
2406
  /**
2219
- * Direction of the trend arrow
2407
+ * The border radius of the card's corners
2220
2408
  */
2221
- direction?: 'down' | 'up';
2409
+ borderRadius?: BorderRadii;
2222
2410
  /**
2223
- * Outlook of the trend arrow
2411
+ * The maximum width of the card
2224
2412
  */
2225
- outlook?: 'negative' | 'positive';
2413
+ maxWidth?: string;
2226
2414
  /**
2227
- * Content to display next to the trend arrow
2415
+ * The minimum width of the card
2228
2416
  */
2229
- children: JSX.Element | string;
2230
- };
2231
- declare const DataCardTrend: ({ direction, outlook, children, ...props }: DataCardTrendProps) => JSX.Element;
2232
-
2233
- type EditableHeadingProps = {
2417
+ minWidth?: string;
2234
2418
  /**
2235
- * The initial text content of the heading.
2236
- * This will be displayed and used as the starting value when editing begins.
2419
+ * The duration of the open/close animations
2237
2420
  */
2238
- children: string;
2421
+ animationDuration?: MotionDurations;
2239
2422
  /**
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
2423
+ * The easing function for the opening animation
2242
2424
  */
2243
- onValueChange?: (value: string) => void;
2425
+ openAnimationEasing?: MotionEasings;
2244
2426
  /**
2245
- * Callback fired when the editing state changes.
2246
- * @param isEditing True when entering edit mode, false when exiting
2427
+ * The easing function for the closing animation
2247
2428
  */
2248
- onEditingChange?: (isEditing: boolean) => void;
2429
+ closeAnimationEasing?: MotionEasings;
2249
2430
  /**
2250
- * Custom tooltip text shown when hovering over the heading.
2431
+ * Custom keyframe animation for the opening state
2251
2432
  */
2252
- tooltipText?: string;
2433
+ openAnimation?: Keyframes;
2253
2434
  /**
2254
- * Sets an aria-label for the input and label for the screen reader only button.
2435
+ * Custom keyframe animation for the closing state
2255
2436
  */
2256
- ariaLabel?: string;
2437
+ closeAnimation?: Keyframes;
2257
2438
  /**
2258
- * Force editing state for testing purposes
2259
- *
2439
+ * The z-index level of the card. Use 'zindex-modal' for modals and 'zindex-menu' for menus
2260
2440
  */
2261
- forceEditing?: boolean;
2441
+ zIndex?: FloatingCardZIndex;
2262
2442
  /**
2263
- * When true, prevents the heading from entering edit mode
2264
- * @default false
2443
+ * The content to be rendered inside the card
2265
2444
  */
2266
- editingDisabled?: boolean;
2445
+ children: ReactNode;
2267
2446
  };
2268
2447
  /**
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.
2448
+ * FloatingCard applies consistent styling for floating UI elements like menus,
2449
+ * popovers, and modals. It merges with its children to apply consistent floating
2450
+ * card styles while preserving the child component's functionality.
2273
2451
  */
2274
- declare const EditableHeading: ({ children, onValueChange, onEditingChange, tooltipText, ariaLabel, forceEditing, editingDisabled, }: EditableHeadingProps) => JSX.Element;
2452
+ declare const FloatingCard: {
2453
+ ({ padding, elevation, borderRadius, maxWidth, minWidth, children, ...props }: FloatingCardProps): react_jsx_runtime.JSX.Element;
2454
+ displayName: string;
2455
+ };
2275
2456
 
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 };
2457
+ 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, FloatingCard, type FloatingCardProps, 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, ListBoxItem, type ListBoxItemProps, 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 };