@gomeniucivan/ui 1.0.70 → 1.0.73

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.ts CHANGED
@@ -114,12 +114,14 @@ type TextAreaProps$1 = HTMLAttributes<HTMLTextAreaElement>;
114
114
  type SpanProps = HTMLAttributes<HTMLSpanElement>;
115
115
 
116
116
  declare const A: FC<AProps & {
117
+ cy?: string;
117
118
  ref?: Ref<HTMLAnchorElement>;
118
119
  }>;
119
120
 
120
121
  type FlexDirection = 'vertical' | 'vertical-reverse' | 'horizontal' | 'horizontal-reverse';
121
122
  interface FlexProps extends FlexProps$1 {
122
123
  as?: ElementType;
124
+ cy?: string;
123
125
  direction?: FlexDirection;
124
126
  distribution?: CSSProperties['justifyContent'];
125
127
  horizontal?: boolean;
@@ -136,6 +138,7 @@ interface FlexProps extends FlexProps$1 {
136
138
  declare const Flex: react.ForwardRefExoticComponent<Omit<FlexProps, "ref"> & react.RefAttributes<HTMLElement>>;
137
139
 
138
140
  interface BlockProps extends FlexProps {
141
+ cy?: string;
139
142
  clickable?: boolean;
140
143
  glass?: boolean;
141
144
  ref?: Ref<HTMLDivElement>;
@@ -230,6 +233,7 @@ interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'
230
233
  * @default false
231
234
  */
232
235
  accordion?: boolean;
236
+ cy?: string;
233
237
  /**
234
238
  * Accordion items
235
239
  */
@@ -422,6 +426,7 @@ type TooltipPopupComponentProps = Omit<TooltipPopupProps, 'className' | 'style'
422
426
  */
423
427
  type TooltipPortalProps = Omit<TooltipPortalProps$1, 'children' | 'container'>;
424
428
  interface TooltipProps {
429
+ cy?: string;
425
430
  /**
426
431
  * Whether the tooltip has an arrow pointer.
427
432
  * @default false
@@ -580,6 +585,7 @@ interface ActionIconSizeConfig extends IconSizeConfig {
580
585
  type ActionIconSize = number | IconSizeType | ActionIconSizeConfig;
581
586
  interface ActionIconProps extends Partial<LucideIconProps>, Omit<FlexProps, 'title' | 'children'> {
582
587
  active?: boolean;
588
+ cy?: string;
583
589
  danger?: boolean;
584
590
  disabled?: boolean;
585
591
  glass?: boolean;
@@ -661,6 +667,7 @@ interface MenuDividerType extends MenuDividerType$1 {
661
667
  type ItemType<T extends MenuItemType = MenuItemType> = T | SubMenuType<T> | MenuItemGroupType<T> | MenuDividerType | null;
662
668
  type GenericItemType<T = unknown> = T extends infer U extends MenuItemType ? unknown extends U ? ItemType : ItemType<U> : ItemType;
663
669
  interface MenuProps<T = unknown> extends Omit<MenuProps$1, 'items'> {
670
+ cy?: string;
664
671
  compact?: boolean;
665
672
  iconProps?: IconContentConfig;
666
673
  items: GenericItemType<T>[];
@@ -710,6 +717,7 @@ type DropdownMenuCheckboxItem = MenuCheckboxItemType;
710
717
  type DropdownItem = BaseMenuItemType;
711
718
  interface DropdownMenuProps<Payload = unknown> extends Omit<MenuRootProps<Payload>, 'children'> {
712
719
  children: ReactNode;
720
+ cy?: string;
713
721
  /**
714
722
  * 图标空间保留模式
715
723
  * - 'global': 当任何一个选项有图标时,所有 item 都保留图标位
@@ -827,6 +835,7 @@ declare const DropdownMenu: react.NamedExoticComponent<DropdownMenuProps<unknown
827
835
 
828
836
  type ActionIconGroupEvent = Pick<MenuInfo, 'key' | 'keyPath' | 'domEvent'>;
829
837
  interface ActionIconGroupProps extends Omit<FlexProps, 'children'> {
838
+ cy?: string;
830
839
  actionIconProps?: Partial<Omit<ActionIconProps, 'icon' | 'size' | 'ref'>>;
831
840
  disabled?: boolean;
832
841
  glass?: boolean;
@@ -844,6 +853,7 @@ declare const ActionIconGroup: FC<ActionIconGroupProps>;
844
853
  type AlertClassNames = NonNullable<AlertProps$1['classNames']>;
845
854
  type AlertStyles = NonNullable<AlertProps$1['styles']>;
846
855
  interface AlertProps extends Omit<AlertProps$1, 'classNames' | 'icon' | 'styles' | 'type'> {
856
+ cy?: string;
847
857
  classNames?: AlertClassNames & {
848
858
  alert?: string;
849
859
  container?: string;
@@ -872,12 +882,14 @@ interface AlertProps extends Omit<AlertProps$1, 'classNames' | 'icon' | 'styles'
872
882
  declare const Alert: react.NamedExoticComponent<AlertProps>;
873
883
 
874
884
  interface AutoCompleteProps extends AutoCompleteProps$1 {
885
+ cy?: string;
875
886
  shadow?: boolean;
876
887
  }
877
888
 
878
889
  declare const AutoComplete: react.NamedExoticComponent<AutoCompleteProps>;
879
890
 
880
891
  interface AvatarProps extends AvatarProps$1 {
892
+ cy?: string;
881
893
  animation?: boolean;
882
894
  avatar?: string | ReactNode;
883
895
  background?: string;
@@ -899,6 +911,7 @@ interface AvatarGroupItemType extends Pick<AvatarProps, 'avatar' | 'title' | 'al
899
911
  key: string;
900
912
  }
901
913
  interface AvatarGroupProps extends Pick<AvatarProps, 'variant' | 'bordered' | 'shadow' | 'size' | 'background' | 'animation' | 'draggable' | 'shape'>, Omit<FlexProps, 'children' | 'onClick'> {
914
+ cy?: string;
902
915
  classNames?: {
903
916
  avatar?: string;
904
917
  count?: string;
@@ -926,6 +939,7 @@ interface IAvatar {
926
939
  declare const Avatar: IAvatar;
927
940
 
928
941
  interface BurgerProps {
942
+ cy?: string;
929
943
  className?: string;
930
944
  drawerProps?: Partial<Omit<DrawerProps$1, 'items' | 'opened' | 'setOpened'>>;
931
945
  fullscreen?: boolean;
@@ -947,6 +961,7 @@ interface BurgerProps {
947
961
  declare const Burger: react.NamedExoticComponent<BurgerProps>;
948
962
 
949
963
  interface ButtonProps extends Omit<ButtonProps$1, 'icon'> {
964
+ cy?: string;
950
965
  glass?: boolean;
951
966
  icon?: IconProps$1['icon'];
952
967
  iconProps?: Partial<Omit<IconProps$1, 'icon'>>;
@@ -957,6 +972,7 @@ interface ButtonProps extends Omit<ButtonProps$1, 'icon'> {
957
972
  declare const Button: FC<ButtonProps>;
958
973
 
959
974
  interface CardFormProps extends Omit<FlexProps, 'title'> {
975
+ cy?: string;
960
976
  actions?: ReactNode;
961
977
  backButtonProps?: Omit<ActionIconProps, 'icon' | 'onClick'>;
962
978
  backIcon?: ActionIconProps['icon'];
@@ -982,6 +998,7 @@ interface CardFormProps extends Omit<FlexProps, 'title'> {
982
998
  declare const CardForm: react.NamedExoticComponent<CardFormProps>;
983
999
 
984
1000
  interface TextProps extends DivProps {
1001
+ cy?: string;
985
1002
  align?: 'left' | 'center' | 'right';
986
1003
  as?: ElementType;
987
1004
  code?: boolean;
@@ -1023,6 +1040,7 @@ interface TextProps extends DivProps {
1023
1040
  declare const Text: FC<TextProps>;
1024
1041
 
1025
1042
  interface CheckboxProps extends Omit<DivProps, 'onChange'> {
1043
+ cy?: string;
1026
1044
  backgroundColor?: string;
1027
1045
  checked?: boolean;
1028
1046
  classNames?: {
@@ -1212,6 +1230,7 @@ interface CollapseItemType extends ItemType$1 {
1212
1230
  icon?: IconProps$1['icon'];
1213
1231
  }
1214
1232
  interface CollapseProps extends Omit<CollapseProps$1, 'collapsible' | 'ghost' | 'items'> {
1233
+ cy?: string;
1215
1234
  classNames?: {
1216
1235
  desc?: string;
1217
1236
  header?: string;
@@ -1236,6 +1255,7 @@ interface CollapseProps extends Omit<CollapseProps$1, 'collapsible' | 'ghost' |
1236
1255
  declare const Collapse: react.NamedExoticComponent<CollapseProps>;
1237
1256
 
1238
1257
  interface ColorPickerProps extends ColorPickerProps$1 {
1258
+ cy?: string;
1239
1259
  }
1240
1260
 
1241
1261
  declare const ColorPicker: react.NamedExoticComponent<ColorPickerProps>;
@@ -1246,6 +1266,7 @@ interface ColorSwatchesItemType {
1246
1266
  title?: ReactNode;
1247
1267
  }
1248
1268
  interface ColorSwatchesProps extends Omit<FlexProps, 'onChange'> {
1269
+ cy?: string;
1249
1270
  colors: ColorSwatchesItemType[];
1250
1271
  defaultValue?: string;
1251
1272
  enableColorPicker?: boolean;
@@ -1436,6 +1457,7 @@ declare const updateContextMenuItems: (items: ContextMenuItem[]) => void;
1436
1457
  declare const closeContextMenu: () => void;
1437
1458
 
1438
1459
  interface CopyButtonProps extends Omit<ActionIconProps, 'content'> {
1460
+ cy?: string;
1439
1461
  content: string | (() => string);
1440
1462
  }
1441
1463
 
@@ -1459,6 +1481,7 @@ declare const confirmConfirmationModal: (props: ConfirmationModalProps) => Confi
1459
1481
  declare const ConfirmationModal: ConfirmationModalAPI;
1460
1482
 
1461
1483
  interface DatePickerProps extends DatePickerProps$1 {
1484
+ cy?: string;
1462
1485
  shadow?: boolean;
1463
1486
  /**
1464
1487
  * Force mobile drawer / wheel UI when true; otherwise uses ThemeProvider context.
@@ -1481,6 +1504,7 @@ interface DatePickerProps extends DatePickerProps$1 {
1481
1504
  declare const DatePicker: react.NamedExoticComponent<DatePickerProps>;
1482
1505
 
1483
1506
  interface DownloadButtonProps extends ActionIconProps {
1507
+ cy?: string;
1484
1508
  blobUrl?: string;
1485
1509
  fileName?: string;
1486
1510
  fileType?: string;
@@ -1489,6 +1513,7 @@ interface DownloadButtonProps extends ActionIconProps {
1489
1513
  declare const DownloadButton: react__default.NamedExoticComponent<DownloadButtonProps>;
1490
1514
 
1491
1515
  interface InputProps extends InputProps$1 {
1516
+ cy?: string;
1492
1517
  ref?: Ref<InputRef>;
1493
1518
  shadow?: boolean;
1494
1519
  }
@@ -1574,6 +1599,7 @@ interface SelectClassNames {
1574
1599
  value?: string;
1575
1600
  }
1576
1601
  interface SelectProps<Value = string> {
1602
+ cy?: string;
1577
1603
  allowClear?: boolean;
1578
1604
  autoFocus?: boolean;
1579
1605
  /**
@@ -1650,6 +1676,7 @@ type TimeValue = {
1650
1676
  };
1651
1677
  interface TimePickerProps extends Omit<InputProps, 'defaultValue' | 'onChange' | 'type' | 'value' | 'size' | 'status' | 'addonAfter' | 'addonBefore' | 'suffix'> {
1652
1678
  allowClear?: boolean;
1679
+ cy?: string;
1653
1680
  className?: string;
1654
1681
  defaultOpen?: boolean;
1655
1682
  defaultValue?: string | null;
@@ -1693,6 +1720,7 @@ declare const DraggablePanelHeader: react.NamedExoticComponent<DraggablePanelHea
1693
1720
 
1694
1721
  type PlacementType = 'right' | 'left' | 'top' | 'bottom';
1695
1722
  interface DraggablePanelProps extends DivProps {
1723
+ cy?: string;
1696
1724
  backgroundColor?: string;
1697
1725
  classNames?: {
1698
1726
  content?: string;
@@ -1741,6 +1769,7 @@ interface IDraggablePanel {
1741
1769
  declare const DraggablePanel: IDraggablePanel;
1742
1770
 
1743
1771
  interface DraggableSideNavProps extends Omit<DivProps, 'children' | 'onSelect'> {
1772
+ cy?: string;
1744
1773
  backgroundColor?: string;
1745
1774
  /**
1746
1775
  * Body content (main content area)
@@ -1860,6 +1889,7 @@ interface DraggableSideNavProps extends Omit<DivProps, 'children' | 'onSelect'>
1860
1889
  declare const DraggableSideNav: react.NamedExoticComponent<DraggableSideNavProps>;
1861
1890
 
1862
1891
  interface DrawerProps extends Omit<DrawerProps$1, 'styles' | 'classNames'> {
1892
+ cy?: string;
1863
1893
  classNames?: DrawerProps$1['classNames'] & {
1864
1894
  bodyContent?: string;
1865
1895
  extra?: string;
@@ -1888,6 +1918,7 @@ interface DrawerProps extends Omit<DrawerProps$1, 'styles' | 'classNames'> {
1888
1918
  declare const Drawer: react.NamedExoticComponent<DrawerProps>;
1889
1919
 
1890
1920
  interface DropdownProps extends Omit<DropdownProps$1, 'menu'> {
1921
+ cy?: string;
1891
1922
  iconProps?: IconContentConfig;
1892
1923
  menu: MenuProps;
1893
1924
  }
@@ -1926,6 +1957,7 @@ interface ControlInputProps extends Omit<InputProps, 'onChange' | 'value' | 'onA
1926
1957
 
1927
1958
  interface EditableTextProps extends Omit<FlexProps, 'onChange' | 'onBlur' | 'onFocus'>, Pick<ControlInputProps, 'onChange' | 'value' | 'onChangeEnd' | 'onValueChanging' | 'texts' | 'variant' | 'onBlur' | 'onFocus' | 'size'> {
1928
1959
  className?: string;
1960
+ cy?: string;
1929
1961
  classNames?: {
1930
1962
  container?: string;
1931
1963
  input?: string;
@@ -2063,6 +2095,7 @@ type PopoverBackdropProps = Omit<PopoverBackdropProps$1, 'className' | 'style'>;
2063
2095
  */
2064
2096
  type PopoverPortalProps = Omit<PopoverPortalProps$1, 'children' | 'container'>;
2065
2097
  interface PopoverProps {
2098
+ cy?: string;
2066
2099
  /**
2067
2100
  * 是否显示箭头, 在 `inset` 下无法使用
2068
2101
  * @default false
@@ -2305,6 +2338,7 @@ interface EmojiPickerCustomTab {
2305
2338
  value: string;
2306
2339
  }
2307
2340
  interface EmojiPickerProps extends Omit<AvatarProps, 'onChange' | 'avatar'> {
2341
+ cy?: string;
2308
2342
  allowDelete?: boolean;
2309
2343
  allowUpload?: boolean | {
2310
2344
  enableEmoji?: boolean;
@@ -2338,6 +2372,7 @@ interface EmojiPickerProps extends Omit<AvatarProps, 'onChange' | 'avatar'> {
2338
2372
  declare const EmojiPicker: react.NamedExoticComponent<EmojiPickerProps>;
2339
2373
 
2340
2374
  interface EmptyProps extends Omit<FlexProps, 'title'> {
2375
+ cy?: string;
2341
2376
  action?: ReactNode;
2342
2377
  actionProps?: Omit<FlexProps, 'children'>;
2343
2378
  description?: ReactNode;
@@ -2425,6 +2460,7 @@ interface FolderTreeNode {
2425
2460
  count?: number;
2426
2461
  }
2427
2462
  interface FolderTreeProps {
2463
+ cy?: string;
2428
2464
  /**
2429
2465
  * Tree data.
2430
2466
  */
@@ -2503,6 +2539,7 @@ interface FolderIconProps {
2503
2539
  declare const FolderIcon: react.NamedExoticComponent<FolderIconProps>;
2504
2540
 
2505
2541
  interface FooterProps extends FlexProps {
2542
+ cy?: string;
2506
2543
  bottom?: ReactNode;
2507
2544
  columns: FooterProps$1['columns'];
2508
2545
  contentMaxWidth?: number;
@@ -2574,6 +2611,11 @@ type FormInstance<T extends Record<string, any>> = UseFormReturn<T> | UseFormRet
2574
2611
  type FormVariant = 'borderless' | 'filled' | 'outlined';
2575
2612
  interface FormProps<T extends Record<string, any>> extends Omit<FormHTMLAttributes<HTMLFormElement>, 'onSubmit'> {
2576
2613
  children: ReactNode;
2614
+ /**
2615
+ * Cypress test-id prefix. When the ThemeProvider `cy` flag is enabled, form field components
2616
+ * emit `data-cy="<cy>-<name>"`.
2617
+ */
2618
+ cy?: string;
2577
2619
  onSubmit?: (values: T) => void | Promise<void>;
2578
2620
  form?: FormInstance<T>;
2579
2621
  initialValues?: T;
@@ -2641,32 +2683,35 @@ interface FormBlockProps {
2641
2683
  onLabelClick?: () => void;
2642
2684
  }
2643
2685
 
2644
- declare function Form<T extends Record<string, any>>({ children, onSubmit, form, initialValues, validate, className, style, layout, labelWidth, variant, fieldMinWidth, maxWidth, ...props }: FormProps<T>): react_jsx_runtime.JSX.Element;
2686
+ declare function Form<T extends Record<string, any>>({ children, cy, onSubmit, form, initialValues, validate, className, style, layout, labelWidth, variant, fieldMinWidth, maxWidth, ...props }: FormProps<T>): react_jsx_runtime.JSX.Element;
2645
2687
  declare namespace Form {
2646
2688
  var displayName: string;
2647
2689
  }
2648
2690
 
2649
2691
  type FormErrorProps = {
2692
+ cy?: string;
2650
2693
  message?: string;
2651
2694
  className?: string;
2652
2695
  style?: react__default.CSSProperties;
2653
2696
  };
2654
2697
  declare const FormError: {
2655
- ({ message, className, style }: FormErrorProps): react_jsx_runtime.JSX.Element | null;
2698
+ ({ cy, message, className, style }: FormErrorProps): react_jsx_runtime.JSX.Element | null;
2656
2699
  displayName: string;
2657
2700
  };
2658
2701
 
2659
2702
  type FormDescriptionProps = {
2703
+ cy?: string;
2660
2704
  children?: react__default.ReactNode;
2661
2705
  className?: string;
2662
2706
  style?: react__default.CSSProperties;
2663
2707
  };
2664
2708
  declare const FormDescription: {
2665
- ({ children, className, style }: FormDescriptionProps): react_jsx_runtime.JSX.Element | null;
2709
+ ({ cy, children, className, style }: FormDescriptionProps): react_jsx_runtime.JSX.Element | null;
2666
2710
  displayName: string;
2667
2711
  };
2668
2712
 
2669
2713
  type FormInputProps<T extends Record<string, any>> = Omit<InputProps, 'name' | 'value' | 'onChange' | 'onBlur' | 'defaultValue' | 'form'> & {
2714
+ cy?: string;
2670
2715
  name: keyof T & string;
2671
2716
  label?: string;
2672
2717
  description?: react__default.ReactNode;
@@ -2697,11 +2742,12 @@ type FormFieldRules<T extends Record<string, any>> = {
2697
2742
  } | string;
2698
2743
  declare const runRules: <T extends Record<string, any>>(rules: FormFieldRules<T> | undefined, value: any, values: T) => string | undefined;
2699
2744
  declare const FormInput: {
2700
- <T extends Record<string, any>>({ name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, ...inputProps }: FormInputProps<T>): react_jsx_runtime.JSX.Element;
2745
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, ...inputProps }: FormInputProps<T>): react_jsx_runtime.JSX.Element;
2701
2746
  displayName: string;
2702
2747
  };
2703
2748
 
2704
2749
  type FormTextareaProps<T extends Record<string, any>> = Omit<TextAreaProps, 'name' | 'value' | 'onChange' | 'onBlur' | 'defaultValue' | 'form'> & {
2750
+ cy?: string;
2705
2751
  name: keyof T & string;
2706
2752
  label?: string;
2707
2753
  description?: react__default.ReactNode;
@@ -2713,11 +2759,12 @@ type FormTextareaProps<T extends Record<string, any>> = Omit<TextAreaProps, 'nam
2713
2759
  rules?: FormFieldRules<T>;
2714
2760
  };
2715
2761
  declare const FormTextarea: {
2716
- <T extends Record<string, any>>({ name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, ...inputProps }: FormTextareaProps<T>): react_jsx_runtime.JSX.Element;
2762
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, ...inputProps }: FormTextareaProps<T>): react_jsx_runtime.JSX.Element;
2717
2763
  displayName: string;
2718
2764
  };
2719
2765
 
2720
2766
  type FormLabelProps = {
2767
+ cy?: string;
2721
2768
  htmlFor?: string;
2722
2769
  children: react__default.ReactNode;
2723
2770
  className?: string;
@@ -2732,7 +2779,7 @@ type FormLabelProps = {
2732
2779
  onLabelClick?: () => void;
2733
2780
  };
2734
2781
  declare const FormLabel: {
2735
- ({ htmlFor, children, className, description, required, onLabelClick, }: FormLabelProps): react_jsx_runtime.JSX.Element;
2782
+ ({ cy, htmlFor, children, className, description, required, onLabelClick, }: FormLabelProps): react_jsx_runtime.JSX.Element;
2736
2783
  displayName: string;
2737
2784
  };
2738
2785
 
@@ -2742,6 +2789,7 @@ declare const FormBlock: {
2742
2789
  };
2743
2790
 
2744
2791
  type FormTimePickerProps<T extends Record<string, any>> = Omit<TimePickerProps, 'name' | 'value' | 'onChange' | 'defaultValue' | 'form'> & {
2792
+ cy?: string;
2745
2793
  name: keyof T & string;
2746
2794
  label?: string;
2747
2795
  description?: react__default.ReactNode;
@@ -2751,11 +2799,12 @@ type FormTimePickerProps<T extends Record<string, any>> = Omit<TimePickerProps,
2751
2799
  rules?: FormFieldRules<T>;
2752
2800
  };
2753
2801
  declare const FormTimePicker: {
2754
- <T extends Record<string, any>>({ name, label, description, form, required, className, variant: timeVariant, onValueChange, rules, ...pickerProps }: FormTimePickerProps<T>): react_jsx_runtime.JSX.Element;
2802
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, required, className, variant: timeVariant, onValueChange, rules, ...pickerProps }: FormTimePickerProps<T>): react_jsx_runtime.JSX.Element;
2755
2803
  displayName: string;
2756
2804
  };
2757
2805
 
2758
2806
  type FormCheckboxProps<T extends Record<string, any>> = Omit<CheckboxProps, 'checked' | 'defaultChecked' | 'onChange'> & {
2807
+ cy?: string;
2759
2808
  name: keyof T & string;
2760
2809
  label?: react__default.ReactNode;
2761
2810
  description?: react__default.ReactNode;
@@ -2764,7 +2813,7 @@ type FormCheckboxProps<T extends Record<string, any>> = Omit<CheckboxProps, 'che
2764
2813
  onChange?: (checked: boolean) => void;
2765
2814
  };
2766
2815
  declare const FormCheckbox: {
2767
- <T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, disabled, ...rest }: FormCheckboxProps<T>): react_jsx_runtime.JSX.Element;
2816
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, className, rules, onChange, disabled, ...rest }: FormCheckboxProps<T>): react_jsx_runtime.JSX.Element;
2768
2817
  displayName: string;
2769
2818
  };
2770
2819
 
@@ -2801,6 +2850,7 @@ type SwitchIconProps = HTMLMotionProps<'span'> & {
2801
2850
  transition?: Transition;
2802
2851
  };
2803
2852
  interface SwitchProps {
2853
+ cy?: string;
2804
2854
  /**
2805
2855
  * Whether to set focus automatically when mounted
2806
2856
  */
@@ -2893,6 +2943,7 @@ interface SwitchProps {
2893
2943
  }
2894
2944
 
2895
2945
  type FormSwitchProps<T extends Record<string, any>> = Omit<SwitchProps, 'checked' | 'defaultChecked' | 'onChange' | 'value'> & {
2946
+ cy?: string;
2896
2947
  name: keyof T & string;
2897
2948
  label?: string;
2898
2949
  description?: react__default.ReactNode;
@@ -2901,11 +2952,12 @@ type FormSwitchProps<T extends Record<string, any>> = Omit<SwitchProps, 'checked
2901
2952
  onChange?: (checked: boolean) => void;
2902
2953
  };
2903
2954
  declare const FormSwitch: {
2904
- <T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, disabled, ...rest }: FormSwitchProps<T>): react_jsx_runtime.JSX.Element;
2955
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, className, rules, onChange, disabled, ...rest }: FormSwitchProps<T>): react_jsx_runtime.JSX.Element;
2905
2956
  displayName: string;
2906
2957
  };
2907
2958
 
2908
2959
  type FormDatePickerProps<T extends Record<string, any>> = Omit<DatePickerProps, 'name' | 'value' | 'onChange' | 'defaultValue' | 'form'> & {
2960
+ cy?: string;
2909
2961
  name: keyof T & string;
2910
2962
  label?: string;
2911
2963
  description?: react__default.ReactNode;
@@ -2913,11 +2965,12 @@ type FormDatePickerProps<T extends Record<string, any>> = Omit<DatePickerProps,
2913
2965
  rules?: FormFieldRules<T>;
2914
2966
  };
2915
2967
  declare const FormDatePicker: {
2916
- <T extends Record<string, any>>({ name, label, description, form, className, variant: dateVariant, rules, ...rest }: FormDatePickerProps<T>): react_jsx_runtime.JSX.Element;
2968
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, className, variant: dateVariant, rules, ...rest }: FormDatePickerProps<T>): react_jsx_runtime.JSX.Element;
2917
2969
  displayName: string;
2918
2970
  };
2919
2971
 
2920
2972
  type FormSelectProps<T extends Record<string, any>, Value = string> = Omit<SelectProps<Value>, 'name' | 'value' | 'onChange' | 'defaultValue' | 'form'> & {
2973
+ cy?: string;
2921
2974
  name: keyof T & string;
2922
2975
  label?: string;
2923
2976
  description?: react__default.ReactNode;
@@ -2926,11 +2979,12 @@ type FormSelectProps<T extends Record<string, any>, Value = string> = Omit<Selec
2926
2979
  options?: SelectOption<Value>[];
2927
2980
  };
2928
2981
  declare const FormSelect: {
2929
- <T extends Record<string, any>, Value = string>({ name, label, description, form, className, variant: selectVariant, rules, ...rest }: FormSelectProps<T, Value>): react_jsx_runtime.JSX.Element;
2982
+ <T extends Record<string, any>, Value = string>({ cy: cyProp, name, label, description, form, className, variant: selectVariant, rules, ...rest }: FormSelectProps<T, Value>): react_jsx_runtime.JSX.Element;
2930
2983
  displayName: string;
2931
2984
  };
2932
2985
 
2933
2986
  interface SegmentedProps extends SegmentedProps$1 {
2987
+ cy?: string;
2934
2988
  glass?: boolean;
2935
2989
  iconProps?: Omit<IconProps$1, 'icon'>;
2936
2990
  padding?: string | number;
@@ -2940,6 +2994,7 @@ interface SegmentedProps extends SegmentedProps$1 {
2940
2994
  }
2941
2995
 
2942
2996
  type FormSegmentProps<T extends Record<string, any>> = Omit<SegmentedProps, 'name' | 'value' | 'onChange' | 'defaultValue' | 'form'> & {
2997
+ cy?: string;
2943
2998
  name: keyof T & string;
2944
2999
  label?: string;
2945
3000
  description?: react__default.ReactNode;
@@ -2947,7 +3002,7 @@ type FormSegmentProps<T extends Record<string, any>> = Omit<SegmentedProps, 'nam
2947
3002
  rules?: FormFieldRules<T>;
2948
3003
  };
2949
3004
  declare const FormSegment: {
2950
- <T extends Record<string, any>>({ name, label, description, form, className, rules, ...rest }: FormSegmentProps<T>): react_jsx_runtime.JSX.Element;
3005
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, className, rules, ...rest }: FormSegmentProps<T>): react_jsx_runtime.JSX.Element;
2951
3006
  displayName: string;
2952
3007
  };
2953
3008
 
@@ -2957,6 +3012,7 @@ declare const FormGroup: {
2957
3012
  };
2958
3013
 
2959
3014
  type FormInputNumberProps<T extends Record<string, any>> = Omit<InputNumberProps, 'name' | 'value' | 'onChange' | 'onBlur' | 'defaultValue' | 'form'> & {
3015
+ cy?: string;
2960
3016
  name: keyof T & string;
2961
3017
  label?: string;
2962
3018
  description?: react__default.ReactNode;
@@ -2968,11 +3024,12 @@ type FormInputNumberProps<T extends Record<string, any>> = Omit<InputNumberProps
2968
3024
  rules?: FormFieldRules<T>;
2969
3025
  };
2970
3026
  declare const FormInputNumber: {
2971
- <T extends Record<string, any>>({ name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, ...inputProps }: FormInputNumberProps<T>): react_jsx_runtime.JSX.Element;
3027
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, ...inputProps }: FormInputNumberProps<T>): react_jsx_runtime.JSX.Element;
2972
3028
  displayName: string;
2973
3029
  };
2974
3030
 
2975
3031
  type FormInputPasswordProps<T extends Record<string, any>> = Omit<InputPasswordProps, 'name' | 'value' | 'onChange' | 'onBlur' | 'defaultValue' | 'form'> & {
3032
+ cy?: string;
2976
3033
  name: keyof T & string;
2977
3034
  label?: string;
2978
3035
  description?: react__default.ReactNode;
@@ -2984,11 +3041,12 @@ type FormInputPasswordProps<T extends Record<string, any>> = Omit<InputPasswordP
2984
3041
  rules?: FormFieldRules<T>;
2985
3042
  };
2986
3043
  declare const FormInputPassword: {
2987
- <T extends Record<string, any>>({ name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, ...inputProps }: FormInputPasswordProps<T>): react_jsx_runtime.JSX.Element;
3044
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, ...inputProps }: FormInputPasswordProps<T>): react_jsx_runtime.JSX.Element;
2988
3045
  displayName: string;
2989
3046
  };
2990
3047
 
2991
3048
  type FormInputMaskProps<T extends Record<string, any>> = Omit<InputMaskProps, 'name' | 'value' | 'onChange' | 'onBlur' | 'defaultValue' | 'form'> & {
3049
+ cy?: string;
2992
3050
  name: keyof T & string;
2993
3051
  label?: string;
2994
3052
  description?: react__default.ReactNode;
@@ -3000,11 +3058,12 @@ type FormInputMaskProps<T extends Record<string, any>> = Omit<InputMaskProps, 'n
3000
3058
  rules?: FormFieldRules<T>;
3001
3059
  };
3002
3060
  declare const FormInputMask: {
3003
- <T extends Record<string, any>>({ name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, mask, maskChar, maskPlaceholder, alwaysShowMask, ...inputProps }: FormInputMaskProps<T>): react_jsx_runtime.JSX.Element;
3061
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, required, helperText, className, id, variant: inputVariant, onChange, onBlur, rules, mask, maskChar, maskPlaceholder, alwaysShowMask, ...inputProps }: FormInputMaskProps<T>): react_jsx_runtime.JSX.Element;
3004
3062
  displayName: string;
3005
3063
  };
3006
3064
 
3007
3065
  type FormColorPickerProps<T extends Record<string, any>> = Omit<ColorPickerProps, 'value' | 'onChange' | 'defaultValue'> & {
3066
+ cy?: string;
3008
3067
  name: keyof T & string;
3009
3068
  label?: string;
3010
3069
  description?: react__default.ReactNode;
@@ -3014,16 +3073,18 @@ type FormColorPickerProps<T extends Record<string, any>> = Omit<ColorPickerProps
3014
3073
  onChange?: ColorPickerProps['onChange'];
3015
3074
  };
3016
3075
  declare const FormColorPicker: {
3017
- <T extends Record<string, any>>({ name, label, description, form, required, className, rules, onChange, disabled, ...rest }: FormColorPickerProps<T>): react_jsx_runtime.JSX.Element;
3076
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, required, className, rules, onChange, disabled, ...rest }: FormColorPickerProps<T>): react_jsx_runtime.JSX.Element;
3018
3077
  displayName: string;
3019
3078
  };
3020
3079
 
3021
3080
  interface RadioProps extends RadioProps$1 {
3081
+ cy?: string;
3022
3082
  }
3023
3083
  interface RadioGroupProps extends RadioGroupProps$1 {
3024
3084
  }
3025
3085
 
3026
3086
  type FormRadioProps<T extends Record<string, any>> = Omit<RadioGroupProps, 'value' | 'defaultValue' | 'onChange'> & {
3087
+ cy?: string;
3027
3088
  name: keyof T & string;
3028
3089
  label?: react__default.ReactNode;
3029
3090
  description?: react__default.ReactNode;
@@ -3032,7 +3093,7 @@ type FormRadioProps<T extends Record<string, any>> = Omit<RadioGroupProps, 'valu
3032
3093
  onChange?: (value: any) => void;
3033
3094
  };
3034
3095
  declare const FormRadio: {
3035
- <T extends Record<string, any>>({ name, label, description, form, className, rules, onChange, disabled, children, ...rest }: FormRadioProps<T>): react_jsx_runtime.JSX.Element;
3096
+ <T extends Record<string, any>>({ cy: cyProp, name, label, description, form, className, rules, onChange, disabled, children, ...rest }: FormRadioProps<T>): react_jsx_runtime.JSX.Element;
3036
3097
  displayName: string;
3037
3098
  };
3038
3099
 
@@ -3059,7 +3120,16 @@ type FormCompound = FormComponent & {
3059
3120
  };
3060
3121
  declare const FormComponentImpl: FormCompound;
3061
3122
 
3123
+ /**
3124
+ * Returns `{ 'data-cy': cy }` when the ThemeProvider `cy` flag is enabled and a `cy` value is provided.
3125
+ * Otherwise returns an empty object.
3126
+ */
3127
+ declare const useCy: (cy?: string) => {
3128
+ "data-cy"?: string;
3129
+ };
3130
+
3062
3131
  type ModalProps = Omit<ModalProps$1, 'okType' | 'wrapClassName'> & {
3132
+ cy?: string;
3063
3133
  allowFullscreen?: boolean;
3064
3134
  enableResponsive?: boolean;
3065
3135
  paddings?: {
@@ -3114,6 +3184,7 @@ declare const useModalContext: () => ModalContextValue;
3114
3184
 
3115
3185
  interface FormModalProps<T extends Record<string, any>> extends Omit<ModalProps, 'footer' | 'onOk' | 'children' | 'title'> {
3116
3186
  children: ReactNode;
3187
+ cy?: string;
3117
3188
  form?: FormInstance<T>;
3118
3189
  initialValues?: T;
3119
3190
  onSubmit?: FormProps<T>['onSubmit'];
@@ -3149,11 +3220,12 @@ interface FormModalProps<T extends Record<string, any>> extends Omit<ModalProps,
3149
3220
  }
3150
3221
 
3151
3222
  declare const FormModal: {
3152
- <T extends Record<string, any>>({ children, form, initialValues, onSubmit, validate, submitText, submitButtonProps, loading, layout, labelWidth, fieldMinWidth, maxWidth, variant, ...modalProps }: FormModalProps<T>): react_jsx_runtime.JSX.Element;
3223
+ <T extends Record<string, any>>({ children, cy, form, initialValues, onSubmit, validate, submitText, submitButtonProps, loading, layout, labelWidth, fieldMinWidth, maxWidth, variant, ...modalProps }: FormModalProps<T>): react_jsx_runtime.JSX.Element;
3153
3224
  displayName: string;
3154
3225
  };
3155
3226
 
3156
3227
  interface GridProps extends Omit<FlexProps, 'gap'> {
3228
+ cy?: string;
3157
3229
  gap?: string | number;
3158
3230
  maxItemWidth?: string | number;
3159
3231
  ref?: Ref<HTMLDivElement>;
@@ -3176,6 +3248,7 @@ declare const SMOOTH_CORNER_MASKS: {
3176
3248
 
3177
3249
  type AvatarItem = string | Omit<AvatarProps, 'size'>;
3178
3250
  interface GroupAvatarProps extends Omit<BlockProps, 'width' | 'height' | 'variant'> {
3251
+ cy?: string;
3179
3252
  avatarShape?: AvatarProps['shape'];
3180
3253
  avatars?: AvatarItem[];
3181
3254
  cornerShape?: keyof typeof SMOOTH_CORNER_MASKS;
@@ -3187,6 +3260,7 @@ interface GroupAvatarProps extends Omit<BlockProps, 'width' | 'height' | 'varian
3187
3260
  declare const GroupAvatar: FC<GroupAvatarProps>;
3188
3261
 
3189
3262
  interface GuideCardProps extends Omit<FlexProps, 'title'> {
3263
+ cy?: string;
3190
3264
  afterClose?: () => void;
3191
3265
  alt?: string;
3192
3266
  classNames?: {
@@ -3216,6 +3290,7 @@ interface GuideCardProps extends Omit<FlexProps, 'title'> {
3216
3290
  declare const GuideCard: react.NamedExoticComponent<GuideCardProps>;
3217
3291
 
3218
3292
  interface HeaderProps extends FlexProps {
3293
+ cy?: string;
3219
3294
  actions?: ReactNode;
3220
3295
  actionsClassName?: string;
3221
3296
  actionsStyle?: CSSProperties;
@@ -3246,6 +3321,7 @@ interface SyntaxHighlighterProps extends DivProps {
3246
3321
  variant?: HighlighterProps['variant'];
3247
3322
  }
3248
3323
  interface HighlighterProps extends Omit<FlexProps, 'children' | 'wrap'> {
3324
+ cy?: string;
3249
3325
  actionIconSize?: ActionIconProps['size'];
3250
3326
  actionsRender?: (props: {
3251
3327
  actionIconSize: ActionIconProps['size'];
@@ -3301,6 +3377,7 @@ interface PreprocessOptions {
3301
3377
  declare const preprocessMarkdownContent: (str: string, { enableCustomFootnotes, enableLatex, citationsLength }?: PreprocessOptions) => string;
3302
3378
 
3303
3379
  interface HotkeyInputProps {
3380
+ cy?: string;
3304
3381
  allowReset?: boolean;
3305
3382
  className?: string;
3306
3383
  defaultValue?: string;
@@ -3343,6 +3420,7 @@ interface ImagePreviewOptions extends PreviewConfig {
3343
3420
  toolbarAddon?: ReactNode;
3344
3421
  }
3345
3422
  interface ImageProps$1 extends Omit<ImageProps$2, 'preview'> {
3423
+ cy?: string;
3346
3424
  actions?: ReactNode;
3347
3425
  alwaysShowActions?: boolean;
3348
3426
  classNames?: {
@@ -3382,6 +3460,7 @@ interface ImageSelectItem {
3382
3460
  value: string;
3383
3461
  }
3384
3462
  interface ImageSelectProps extends FlexProps {
3463
+ cy?: string;
3385
3464
  className?: string;
3386
3465
  classNames?: {
3387
3466
  img?: string;
@@ -3486,6 +3565,7 @@ interface ListItemProps extends Omit<FlexProps, 'title'> {
3486
3565
  title: ReactNode;
3487
3566
  }
3488
3567
  interface ListProps extends Omit<FlexProps, 'onClick'> {
3568
+ cy?: string;
3489
3569
  activeKey?: string;
3490
3570
  classNames?: {
3491
3571
  item?: string;
@@ -3691,6 +3771,7 @@ declare const Mermaid: react.NamedExoticComponent<MermaidProps>;
3691
3771
  declare const SyntaxMermaid: react.NamedExoticComponent<SyntaxMermaidProps>;
3692
3772
 
3693
3773
  interface TagProps extends Omit<TagProps$1, 'color' | 'variant'> {
3774
+ cy?: string;
3694
3775
  color?: TagProps$1['color'] | 'info';
3695
3776
  ref?: Ref<HTMLDivElement>;
3696
3777
  size?: 'small' | 'middle' | 'large';
@@ -3709,6 +3790,7 @@ interface CitationItem {
3709
3790
  }
3710
3791
 
3711
3792
  interface SnippetProps extends FlexProps {
3793
+ cy?: string;
3712
3794
  children: string;
3713
3795
  copyable?: boolean;
3714
3796
  language?: string;
@@ -3725,6 +3807,7 @@ type PreProps = HighlighterProps;
3725
3807
 
3726
3808
  interface VideoProps$1 extends VideoProps$2, Pick<FlexProps, 'width' | 'height'> {
3727
3809
  autoPlay?: boolean;
3810
+ cy?: string;
3728
3811
  classNames?: {
3729
3812
  mask?: string;
3730
3813
  video?: string;
@@ -3762,6 +3845,7 @@ declare const Video: react.NamedExoticComponent<VideoProps$1>;
3762
3845
  type VideoProps = VideoProps$1;
3763
3846
 
3764
3847
  interface TabsProps extends TabsProps$1 {
3848
+ cy?: string;
3765
3849
  compact?: boolean;
3766
3850
  variant?: 'square' | 'rounded' | 'point';
3767
3851
  }
@@ -3806,6 +3890,7 @@ interface SyntaxMarkdownProps {
3806
3890
  variant?: 'default' | 'chat';
3807
3891
  }
3808
3892
  interface MarkdownProps extends SyntaxMarkdownProps, Omit<TypographyProps, 'children'> {
3893
+ cy?: string;
3809
3894
  className?: string;
3810
3895
  customRender?: (dom: ReactNode, context: {
3811
3896
  text: string;
@@ -3887,6 +3972,7 @@ interface RemarkVideoOptions {
3887
3972
  declare const remarkVideo: (options?: RemarkVideoOptions) => (tree: any) => void;
3888
3973
 
3889
3974
  interface MaskShadowProps extends FlexProps {
3975
+ cy?: string;
3890
3976
  position?: 'top' | 'bottom' | 'left' | 'right';
3891
3977
  size?: number;
3892
3978
  visibility?: 'auto' | 'always' | 'never';
@@ -3972,6 +4058,7 @@ declare const ScrollAreaCorner: {
3972
4058
  };
3973
4059
 
3974
4060
  interface ScrollAreaProps extends Omit<ScrollAreaRootProps, 'children'> {
4061
+ cy?: string;
3975
4062
  children?: ReactNode;
3976
4063
  contentProps?: Omit<ScrollAreaContentProps, 'children'>;
3977
4064
  corner?: boolean;
@@ -3985,6 +4072,7 @@ interface ScrollAreaProps extends Omit<ScrollAreaRootProps, 'children'> {
3985
4072
  declare const ScrollArea: FC<ScrollAreaProps>;
3986
4073
 
3987
4074
  interface ScrollShadowProps extends FlexProps {
4075
+ cy?: string;
3988
4076
  hideScrollBar?: boolean;
3989
4077
  isEnabled?: boolean;
3990
4078
  offset?: number;
@@ -4003,6 +4091,7 @@ interface ScrollShadowProps extends FlexProps {
4003
4091
  declare const ScrollShadow: FC<ScrollShadowProps>;
4004
4092
 
4005
4093
  interface SearchBarProps extends Omit<InputProps, 'styles' | 'classNames'> {
4094
+ cy?: string;
4006
4095
  classNames?: {
4007
4096
  input?: string;
4008
4097
  shortKey?: string;
@@ -4036,6 +4125,7 @@ declare const SearchBar: react.NamedExoticComponent<SearchBarProps>;
4036
4125
  declare const Segmented: react.NamedExoticComponent<SegmentedProps>;
4037
4126
 
4038
4127
  interface SideNavProps extends FlexProps {
4128
+ cy?: string;
4039
4129
  avatar?: ReactNode;
4040
4130
  bottomActions: ReactNode;
4041
4131
  topActions?: ReactNode;
@@ -4046,6 +4136,7 @@ declare const SideNav: react.NamedExoticComponent<SideNavProps>;
4046
4136
  interface SkeletonBlockProps {
4047
4137
  active?: boolean;
4048
4138
  className?: string;
4139
+ cy?: string;
4049
4140
  height?: number | string;
4050
4141
  style?: CSSProperties;
4051
4142
  width?: number | string;
@@ -4080,6 +4171,7 @@ interface SkeletonButtonProps extends SkeletonBlockProps {
4080
4171
  size?: 'large' | 'small' | 'default';
4081
4172
  }
4082
4173
  interface SkeletonProps extends SkeletonBlockProps {
4174
+ cy?: string;
4083
4175
  avatar?: SkeletonAvatarProps | boolean;
4084
4176
  classNames?: {
4085
4177
  avatar?: string;
@@ -4122,6 +4214,7 @@ interface ISkeleton {
4122
4214
  declare const Skeleton: ISkeleton;
4123
4215
 
4124
4216
  interface SliderWithInputProps extends Omit<SliderSingleProps, 'classNames' | 'styles'> {
4217
+ cy?: string;
4125
4218
  changeOnWheel?: boolean;
4126
4219
  classNames?: {
4127
4220
  input?: string;
@@ -4153,6 +4246,7 @@ interface SortableListItem {
4153
4246
  id: string | number;
4154
4247
  }
4155
4248
  interface SortableListProps extends Omit<FlexProps, 'onChange'> {
4249
+ cy?: string;
4156
4250
  items: SortableListItem[];
4157
4251
  onChange(items: SortableListItem[]): void;
4158
4252
  ref?: Ref<HTMLUListElement>;
@@ -4224,6 +4318,7 @@ type TableTexts = {
4224
4318
  };
4225
4319
  type AntdTablePropsBase<TData> = Omit<TableProps$1<TData>, "columns" | "dataSource" | "pagination">;
4226
4320
  interface TableProps<TData> extends AntdTablePropsBase<TData> {
4321
+ cy?: string;
4227
4322
  data: TableDataSource<TData>;
4228
4323
  columns: TableColumn<TData>[];
4229
4324
  pagination?: boolean;
@@ -4244,7 +4339,7 @@ interface TableProps<TData> extends AntdTablePropsBase<TData> {
4244
4339
  }
4245
4340
 
4246
4341
  declare const Table: {
4247
- <TData extends object>({ data, columns, pagination, sortable, reload, filterable, selectable: selectableProp, height, defaultPageSize, pageSize, className, emptyState, onDataChange, loading: loadingProp, rowSelection: rowSelectionProp, rowKey: rowKeyProp, bordered: borderedProp, size: sizeProp, sticky: stickyProp, scroll: scrollProp, virtual: virtualProp, locale: localeProp, style: tableStyle, texts: textsProp, ...restTableProps }: TableProps<TData>): react_jsx_runtime.JSX.Element;
4342
+ <TData extends object>({ cy, data, columns, pagination, sortable, reload, filterable, selectable: selectableProp, height, defaultPageSize, pageSize, className, emptyState, onDataChange, loading: loadingProp, rowSelection: rowSelectionProp, rowKey: rowKeyProp, bordered: borderedProp, size: sizeProp, sticky: stickyProp, scroll: scrollProp, virtual: virtualProp, locale: localeProp, style: tableStyle, texts: textsProp, ...restTableProps }: TableProps<TData>): react_jsx_runtime.JSX.Element;
4248
4343
  displayName: string;
4249
4344
  };
4250
4345
 
@@ -4672,6 +4767,10 @@ declare const CLASSNAMES: {
4672
4767
 
4673
4768
  interface ThemeProviderProps extends ThemeProviderProps$1<any> {
4674
4769
  className?: string;
4770
+ /**
4771
+ * When `true`, components with a `cy` prop will render a `data-cy` attribute for Cypress/testing selectors.
4772
+ */
4773
+ cy?: boolean;
4675
4774
  customFonts?: string[];
4676
4775
  customStylish?: (theme: CustomStylishParams) => {
4677
4776
  [key: string]: any;
@@ -4702,6 +4801,7 @@ declare const Meta: FC<MetaProps>;
4702
4801
  declare const ThemeProvider: react.NamedExoticComponent<ThemeProviderProps>;
4703
4802
 
4704
4803
  interface ThemeSwitchProps extends DivProps {
4804
+ cy?: string;
4705
4805
  labels?: {
4706
4806
  auto: string;
4707
4807
  dark: string;
@@ -4903,6 +5003,7 @@ interface TocMobileProps {
4903
5003
  tocWidth?: number;
4904
5004
  }
4905
5005
  interface TocProps extends TocMobileProps {
5006
+ cy?: string;
4906
5007
  isMobile?: boolean;
4907
5008
  }
4908
5009
 
@@ -5483,4 +5584,4 @@ declare const useToken: () => {
5483
5584
  motionDurationSlow: string;
5484
5585
  };
5485
5586
 
5486
- export { A, type AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type BaseMenuItemType, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, CLASSNAMES, CUSTOM_SELECT_CONTAINER_ATTR, CardForm, type CardFormProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, CodeDiff, type CodeDiffProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, type ColorPalettes, type ColorPalettesAlpha, ColorPicker, type ColorPickerProps, ColorSwatches, type ColorSwatchesProps, type ColorToken, type Config, ConfigProvider, ConfirmationModal, type ConfirmationModalAPI, type ConfirmationModalInstance, type ConfirmationModalProps, type ConfirmationModalType, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuItem, ContextMenuTrigger, CopyButton, type CopyButtonProps, DROPDOWN_MENU_CONTAINER_ATTR, DatePicker, type DatePickerProps, type DiffViewMode, type DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type MenuItemType as DropdownMenuItemType, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type DropdownProps, EditableText, type EditableTextProps, EditorSlashMenu, EditorSlashMenuGroup$1 as EditorSlashMenuGroup, type EditorSlashMenuItems, type EditorSlashMenuOption, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, FileTypeIcon, type FileTypeIconProps, Flex, type FlexDirection, type FlexProps, FluentEmoji, type FluentEmojiProps, FolderIcon, FolderTree, type FolderTreeNode, type FolderTreeProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, FormComponentImpl as Form, FormBlock, type FormBlockProps, FormCheckbox, FormColorPicker, type FormConfig, FormDatePicker, FormDescription, FormError, type FormFieldRules, FormGroup, FormInput, FormInputMask, FormInputNumber, FormInputPassword, type FormInstance, FormLabel, FormModal, type FormModalProps, type FormProps, FormRadio, FormSegment, FormSelect, type FormState, FormSwitch, FormTextarea, FormTimePicker, type GenericItemType, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, I18nProvider, type I18nProviderProps, Icon, type IconProps$1 as IconProps, IconProvider, type IconSize, Image, type ImageProps$1 as ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, type ImgProps, type ImperativeModalProps, Input, InputMask, type InputMaskProps, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, A as Link, List, ListItem, type ListItemProps, type ListProps, type LobeCustomStylish, type LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuCheckboxItemType, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, ModalHost, type ModalHostProps, type ModalInstance, type ModalProps, ModalProvider, MotionComponent, type MotionComponentType, MotionProvider, type NeutralColors, type NeutralColorsObj, POPOVER_CONTAINER_ATTR, PatchDiff, type PatchDiffProps, type Placement, type PlacementConfig, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverContextValue, PopoverGroup, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, PopoverPortal, type PopoverPortalAtomProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, type PresetColorKey, type PresetColorType, type PresetSystemColorKey, type PresetSystemColorType, PreviewGroup, type PreviewGroupProps, type PrimaryColors, type PrimaryColorsObj, Radio, type RadioGroupProps, type RadioProps, type RawModalComponent, type RawModalComponentProps, type RawModalInstance, type RawModalKeyOptions, type RawModalOptions, SELECT_CONTAINER_ATTR, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, _default as ShikiLobeTheme, SideNav, type SideNavProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBlock, type SkeletonBlockProps, SkeletonButton, type SkeletonButtonProps, SkeletonParagraph, type SkeletonParagraphProps, type SkeletonProps, SkeletonTags, type SkeletonTagsProps, SkeletonTitle, type SkeletonTitleProps, SliderWithInput, type SliderWithInputProps, Snippet, type SnippetProps, SortableList, type SortableListProps, type SpanProps, type SvgProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, type SystemColorToken, Table, type TableColumn, type TableDataSource, type TablePageSizeConfig, type TableProps, type TableReadConfig, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type Meridiem as TimePickerMeridiem, type TimePickerProps, type TimeValue as TimePickerValue, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, type Trigger, Typography, type TypographyProps, type UseFormReturn, Video, type VideoProps$1 as VideoProps, closeContextMenu, combineKeys, confirmConfirmationModal, copyToClipboard, createModal, createRawModal, createStyles, cx, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, runRules, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useCdnFn, useForm, useModalContext, useMotionComponent, usePopoverContext, usePopoverPortalContainer, useSwitchContext, useToast, useToken, useTranslation };
5587
+ export { A, type AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type BaseMenuItemType, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, CLASSNAMES, CUSTOM_SELECT_CONTAINER_ATTR, CardForm, type CardFormProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, CodeDiff, type CodeDiffProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, type ColorPalettes, type ColorPalettesAlpha, ColorPicker, type ColorPickerProps, ColorSwatches, type ColorSwatchesProps, type ColorToken, type Config, ConfigProvider, ConfirmationModal, type ConfirmationModalAPI, type ConfirmationModalInstance, type ConfirmationModalProps, type ConfirmationModalType, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuItem, ContextMenuTrigger, CopyButton, type CopyButtonProps, DROPDOWN_MENU_CONTAINER_ATTR, DatePicker, type DatePickerProps, type DiffViewMode, type DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type MenuItemType as DropdownMenuItemType, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type DropdownProps, EditableText, type EditableTextProps, EditorSlashMenu, EditorSlashMenuGroup$1 as EditorSlashMenuGroup, type EditorSlashMenuItems, type EditorSlashMenuOption, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, FileTypeIcon, type FileTypeIconProps, Flex, type FlexDirection, type FlexProps, FluentEmoji, type FluentEmojiProps, FolderIcon, FolderTree, type FolderTreeNode, type FolderTreeProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, FormComponentImpl as Form, FormBlock, type FormBlockProps, FormCheckbox, FormColorPicker, type FormConfig, FormDatePicker, FormDescription, FormError, type FormFieldRules, FormGroup, FormInput, FormInputMask, FormInputNumber, FormInputPassword, type FormInstance, FormLabel, FormModal, type FormModalProps, type FormProps, FormRadio, FormSegment, FormSelect, type FormState, FormSwitch, FormTextarea, FormTimePicker, type GenericItemType, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, I18nProvider, type I18nProviderProps, Icon, type IconProps$1 as IconProps, IconProvider, type IconSize, Image, type ImageProps$1 as ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, type ImgProps, type ImperativeModalProps, Input, InputMask, type InputMaskProps, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, A as Link, List, ListItem, type ListItemProps, type ListProps, type LobeCustomStylish, type LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuCheckboxItemType, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, ModalHost, type ModalHostProps, type ModalInstance, type ModalProps, ModalProvider, MotionComponent, type MotionComponentType, MotionProvider, type NeutralColors, type NeutralColorsObj, POPOVER_CONTAINER_ATTR, PatchDiff, type PatchDiffProps, type Placement, type PlacementConfig, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverContextValue, PopoverGroup, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, PopoverPortal, type PopoverPortalAtomProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, type PresetColorKey, type PresetColorType, type PresetSystemColorKey, type PresetSystemColorType, PreviewGroup, type PreviewGroupProps, type PrimaryColors, type PrimaryColorsObj, Radio, type RadioGroupProps, type RadioProps, type RawModalComponent, type RawModalComponentProps, type RawModalInstance, type RawModalKeyOptions, type RawModalOptions, SELECT_CONTAINER_ATTR, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, _default as ShikiLobeTheme, SideNav, type SideNavProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBlock, type SkeletonBlockProps, SkeletonButton, type SkeletonButtonProps, SkeletonParagraph, type SkeletonParagraphProps, type SkeletonProps, SkeletonTags, type SkeletonTagsProps, SkeletonTitle, type SkeletonTitleProps, SliderWithInput, type SliderWithInputProps, Snippet, type SnippetProps, SortableList, type SortableListProps, type SpanProps, type SvgProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, type SystemColorToken, Table, type TableColumn, type TableDataSource, type TablePageSizeConfig, type TableProps, type TableReadConfig, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, TimePicker, type Meridiem as TimePickerMeridiem, type TimePickerProps, type TimeValue as TimePickerValue, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, type Trigger, Typography, type TypographyProps, type UseFormReturn, Video, type VideoProps$1 as VideoProps, closeContextMenu, combineKeys, confirmConfirmationModal, copyToClipboard, createModal, createRawModal, createStyles, cx, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, runRules, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useCdnFn, useCy, useForm, useModalContext, useMotionComponent, usePopoverContext, usePopoverPortalContainer, useSwitchContext, useToast, useToken, useTranslation };