Blame view

天文台pc/tianwentai-ui/node_modules/@radix-ui/react-radio-group/dist/index.d.ts 3.04 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
  import * as _radix_ui_react_context from '@radix-ui/react-context';
  import * as React from 'react';
  import { Primitive } from '@radix-ui/react-primitive';
  import * as RovingFocusGroup from '@radix-ui/react-roving-focus';
  
  type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
  interface RadioProps$1 extends PrimitiveButtonProps {
      checked?: boolean;
      required?: boolean;
      onCheck?(): void;
  }
  declare const Radio: React.ForwardRefExoticComponent<RadioProps$1 & React.RefAttributes<HTMLButtonElement>>;
  type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
  interface RadioIndicatorProps$1 extends PrimitiveSpanProps {
      /**
       * Used to force mounting when more control is needed. Useful when
       * controlling animation with React animation libraries.
       */
      forceMount?: true;
  }
  declare const RadioIndicator: React.ForwardRefExoticComponent<RadioIndicatorProps$1 & React.RefAttributes<HTMLSpanElement>>;
  
  declare const createRadioGroupScope: _radix_ui_react_context.CreateScope;
  type RadioGroupContextValue = {
      name?: string;
      required: boolean;
      disabled: boolean;
      value?: string;
      onValueChange(value: string): void;
  };
  type RovingFocusGroupProps = React.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
  type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
  interface RadioGroupProps extends PrimitiveDivProps {
      name?: RadioGroupContextValue['name'];
      required?: React.ComponentPropsWithoutRef<typeof Radio>['required'];
      disabled?: React.ComponentPropsWithoutRef<typeof Radio>['disabled'];
      dir?: RovingFocusGroupProps['dir'];
      orientation?: RovingFocusGroupProps['orientation'];
      loop?: RovingFocusGroupProps['loop'];
      defaultValue?: string;
      value?: RadioGroupContextValue['value'];
      onValueChange?: RadioGroupContextValue['onValueChange'];
  }
  declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
  type RadioProps = React.ComponentPropsWithoutRef<typeof Radio>;
  interface RadioGroupItemProps extends Omit<RadioProps, 'onCheck' | 'name'> {
      value: string;
  }
  declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
  type RadioIndicatorProps = React.ComponentPropsWithoutRef<typeof RadioIndicator>;
  interface RadioGroupIndicatorProps extends RadioIndicatorProps {
  }
  declare const RadioGroupIndicator: React.ForwardRefExoticComponent<RadioGroupIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
  declare const Root: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
  declare const Item: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
  declare const Indicator: React.ForwardRefExoticComponent<RadioGroupIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
  
  export { Indicator, Item, RadioGroup, RadioGroupIndicator, type RadioGroupIndicatorProps, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Root, createRadioGroupScope };