@nextui-org/react 1.0.0-beta.6 → 1.0.0-beta.9-dbg1
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/cjs/avatar/avatar.js +1 -1
- package/cjs/avatar/avatar.styles.js +1 -1
- package/cjs/backdrop/backdrop.styles.js +1 -1
- package/cjs/button/button-icon.js +1 -1
- package/cjs/button/button.js +1 -1
- package/cjs/button/button.styles.js +1 -1
- package/cjs/button/utils.js +1 -1
- package/cjs/card/card.js +1 -1
- package/cjs/card/card.styles.js +1 -1
- package/cjs/card/index.js +1 -1
- package/cjs/card/use-card.js +1 -0
- package/cjs/checkbox/checkbox-context.js +1 -1
- package/cjs/checkbox/checkbox-group.js +1 -1
- package/cjs/checkbox/checkbox.js +1 -1
- package/cjs/checkbox/checkbox.styles.js +1 -1
- package/cjs/checkbox/use-checkbox-group.js +1 -0
- package/cjs/checkbox/use-checkbox.js +1 -0
- package/cjs/collapse/collapse.styles.js +1 -1
- package/cjs/css-baseline/css-baseline.js +1 -1
- package/cjs/dropdown/base/dropdown-item-base.js +1 -0
- package/cjs/dropdown/dropdown-button.js +1 -0
- package/cjs/dropdown/dropdown-context.js +1 -0
- package/cjs/dropdown/dropdown-icon.js +1 -0
- package/cjs/dropdown/dropdown-item.js +1 -0
- package/cjs/dropdown/dropdown-menu.js +1 -0
- package/cjs/dropdown/dropdown-section.js +1 -0
- package/cjs/dropdown/dropdown-trigger.js +1 -0
- package/cjs/dropdown/dropdown-types.js +1 -0
- package/cjs/dropdown/dropdown.js +1 -0
- package/cjs/dropdown/dropdown.styles.js +1 -0
- package/cjs/dropdown/index.js +1 -0
- package/cjs/dropdown/use-dropdown.js +1 -0
- package/cjs/grid/grid-container.js +1 -1
- package/cjs/image/image.js +1 -1
- package/cjs/image/image.styles.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/input/input.styles.js +1 -1
- package/cjs/link/link.js +1 -1
- package/cjs/link/link.styles.js +1 -1
- package/cjs/modal/modal.styles.js +1 -1
- package/cjs/pagination/pagination.styles.js +1 -1
- package/cjs/popover/popover-content.js +1 -1
- package/cjs/popover/popover-trigger.js +1 -1
- package/cjs/popover/popover.js +1 -1
- package/cjs/popover/popover.styles.js +1 -1
- package/cjs/popover/use-popover.js +1 -1
- package/cjs/popover/utils.js +1 -1
- package/cjs/radio/index.js +1 -1
- package/cjs/radio/radio-context.js +1 -1
- package/cjs/radio/radio-group.js +1 -1
- package/cjs/radio/radio.js +1 -1
- package/cjs/radio/radio.styles.js +1 -1
- package/cjs/radio/use-radio-group.js +1 -0
- package/cjs/radio/use-radio.js +1 -0
- package/cjs/snippet/snippet.styles.js +1 -1
- package/cjs/switch/switch.styles.js +1 -1
- package/cjs/table/table-checkbox-cell.js +1 -1
- package/cjs/table/table-context.js +1 -1
- package/cjs/table/table-select-all-checkbox.js +1 -1
- package/cjs/table/table.js +1 -1
- package/cjs/table/table.styles.js +1 -1
- package/cjs/table/utils.js +1 -1
- package/cjs/theme/colors/blue.js +1 -0
- package/cjs/theme/colors/cyan.js +1 -0
- package/cjs/theme/colors/gray.js +1 -0
- package/cjs/theme/colors/green.js +1 -0
- package/cjs/theme/colors/index.js +1 -0
- package/cjs/theme/colors/pink.js +1 -0
- package/cjs/theme/colors/purple.js +1 -0
- package/cjs/theme/colors/red.js +1 -0
- package/cjs/theme/colors/yellow.js +1 -0
- package/cjs/theme/common.js +1 -1
- package/cjs/theme/dark-theme.js +1 -1
- package/cjs/theme/index.js +1 -1
- package/cjs/theme/light-theme.js +1 -1
- package/cjs/theme/shared-css.js +1 -0
- package/cjs/theme/stitches.config.js +1 -1
- package/cjs/tooltip/tooltip.styles.js +1 -1
- package/cjs/user/index.js +1 -1
- package/cjs/user/user-link.js +1 -1
- package/cjs/user/user.js +1 -1
- package/cjs/user/user.styles.js +1 -1
- package/cjs/utils/checkmark.js +1 -0
- package/cjs/utils/color.js +1 -1
- package/cjs/utils/dom.js +1 -1
- package/cjs/utils/icons.js +1 -1
- package/cjs/utils/prop-types.js +1 -1
- package/dropdown/package.json +6 -0
- package/esm/avatar/avatar.js +1 -1
- package/esm/avatar/avatar.styles.js +1 -1
- package/esm/backdrop/backdrop.styles.js +1 -1
- package/esm/button/button-icon.js +1 -1
- package/esm/button/button.js +1 -1
- package/esm/button/button.styles.js +1 -1
- package/esm/button/utils.js +1 -1
- package/esm/card/card.js +1 -1
- package/esm/card/card.styles.js +1 -1
- package/esm/card/index.js +1 -1
- package/esm/card/use-card.js +1 -0
- package/esm/checkbox/checkbox-context.js +1 -1
- package/esm/checkbox/checkbox-group.js +1 -1
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/checkbox/checkbox.styles.js +1 -1
- package/esm/checkbox/use-checkbox-group.js +1 -0
- package/esm/checkbox/use-checkbox.js +1 -0
- package/esm/collapse/collapse.styles.js +1 -1
- package/esm/css-baseline/css-baseline.js +1 -1
- package/esm/dropdown/base/dropdown-item-base.js +1 -0
- package/esm/dropdown/dropdown-button.js +1 -0
- package/esm/dropdown/dropdown-context.js +1 -0
- package/esm/dropdown/dropdown-icon.js +1 -0
- package/esm/dropdown/dropdown-item.js +1 -0
- package/esm/dropdown/dropdown-menu.js +1 -0
- package/esm/dropdown/dropdown-section.js +1 -0
- package/esm/dropdown/dropdown-trigger.js +1 -0
- package/esm/dropdown/dropdown-types.js +1 -0
- package/esm/dropdown/dropdown.js +1 -0
- package/esm/dropdown/dropdown.styles.js +1 -0
- package/esm/dropdown/index.js +1 -0
- package/esm/dropdown/use-dropdown.js +1 -0
- package/esm/grid/grid-container.js +1 -1
- package/esm/image/image.js +1 -1
- package/esm/image/image.styles.js +1 -1
- package/esm/index.js +1 -1
- package/esm/input/input.styles.js +1 -1
- package/esm/link/link.js +1 -1
- package/esm/link/link.styles.js +1 -1
- package/esm/modal/modal.styles.js +1 -1
- package/esm/pagination/pagination.styles.js +1 -1
- package/esm/popover/popover-content.js +1 -1
- package/esm/popover/popover-trigger.js +1 -1
- package/esm/popover/popover.js +1 -1
- package/esm/popover/popover.styles.js +1 -1
- package/esm/popover/use-popover.js +1 -1
- package/esm/popover/utils.js +1 -1
- package/esm/radio/index.js +1 -1
- package/esm/radio/radio-context.js +1 -1
- package/esm/radio/radio-group.js +1 -1
- package/esm/radio/radio.js +1 -1
- package/esm/radio/radio.styles.js +1 -1
- package/esm/radio/use-radio-group.js +1 -0
- package/esm/radio/use-radio.js +1 -0
- package/esm/snippet/snippet.styles.js +1 -1
- package/esm/switch/switch.styles.js +1 -1
- package/esm/table/table-checkbox-cell.js +1 -1
- package/esm/table/table-context.js +1 -1
- package/esm/table/table-select-all-checkbox.js +1 -1
- package/esm/table/table.js +1 -1
- package/esm/table/table.styles.js +1 -1
- package/esm/table/utils.js +1 -1
- package/esm/theme/colors/blue.js +1 -0
- package/esm/theme/colors/cyan.js +1 -0
- package/esm/theme/colors/gray.js +1 -0
- package/esm/theme/colors/green.js +1 -0
- package/esm/theme/colors/index.js +1 -0
- package/esm/theme/colors/pink.js +1 -0
- package/esm/theme/colors/purple.js +1 -0
- package/esm/theme/colors/red.js +1 -0
- package/esm/theme/colors/yellow.js +1 -0
- package/esm/theme/common.js +1 -1
- package/esm/theme/dark-theme.js +1 -1
- package/esm/theme/index.js +1 -1
- package/esm/theme/light-theme.js +1 -1
- package/esm/theme/shared-css.js +1 -0
- package/esm/theme/stitches.config.js +1 -1
- package/esm/tooltip/tooltip.styles.js +1 -1
- package/esm/user/index.js +1 -1
- package/esm/user/user-link.js +1 -1
- package/esm/user/user.js +1 -1
- package/esm/user/user.styles.js +1 -1
- package/esm/utils/checkmark.js +1 -0
- package/esm/utils/color.js +1 -1
- package/esm/utils/dom.js +1 -1
- package/esm/utils/icons.js +1 -1
- package/esm/utils/prop-types.js +1 -1
- package/package.json +29 -24
- package/types/avatar/avatar-group.styles.d.ts +396 -174
- package/types/avatar/avatar.d.ts +2372 -11
- package/types/avatar/avatar.styles.d.ts +2570 -98
- package/types/backdrop/backdrop.styles.d.ts +594 -261
- package/types/button/button-group.styles.d.ts +198 -87
- package/types/button/button-icon.d.ts +202 -89
- package/types/button/button.d.ts +5 -3
- package/types/button/button.styles.d.ts +1636 -189
- package/types/card/card.d.ts +8 -9
- package/types/card/card.styles.d.ts +3103 -350
- package/types/card/use-card.d.ts +301 -0
- package/types/checkbox/checkbox-context.d.ts +3 -11
- package/types/checkbox/checkbox-group.d.ts +9 -28
- package/types/checkbox/checkbox.d.ts +8 -40
- package/types/checkbox/checkbox.styles.d.ts +2193 -2021
- package/types/checkbox/use-checkbox-group.d.ts +30 -0
- package/types/checkbox/use-checkbox.d.ts +26 -0
- package/types/code/code.styles.d.ts +396 -174
- package/types/col/col.styles.d.ts +198 -87
- package/types/collapse/collapse.styles.d.ts +1199 -533
- package/types/container/container.styles.d.ts +198 -87
- package/types/divider/divider.styles.d.ts +396 -174
- package/types/dropdown/base/dropdown-item-base.d.ts +19 -0
- package/types/dropdown/dropdown-button.d.ts +3689 -0
- package/types/dropdown/dropdown-context.d.ts +728 -0
- package/types/dropdown/dropdown-icon.d.ts +9 -0
- package/types/dropdown/dropdown-item.d.ts +31 -0
- package/types/dropdown/dropdown-menu.d.ts +30 -0
- package/types/dropdown/dropdown-section.d.ts +29 -0
- package/types/dropdown/dropdown-trigger.d.ts +11 -0
- package/types/dropdown/dropdown-types.d.ts +24 -0
- package/types/dropdown/dropdown.d.ts +24 -0
- package/types/dropdown/dropdown.styles.d.ts +11869 -0
- package/types/dropdown/index.d.ts +9 -0
- package/types/dropdown/use-dropdown.d.ts +389 -0
- package/types/grid/grid.styles.d.ts +396 -174
- package/types/image/image.d.ts +5 -18
- package/types/image/image.styles.d.ts +594 -261
- package/types/index.d.ts +5 -1
- package/types/input/input-password.d.ts +1 -1
- package/types/input/input-props.d.ts +2 -2
- package/types/input/input.styles.d.ts +2367 -1146
- package/types/link/link.styles.d.ts +396 -174
- package/types/loading/loading.styles.d.ts +1199 -533
- package/types/modal/modal.styles.d.ts +1199 -533
- package/types/pagination/pagination.styles.d.ts +1199 -533
- package/types/popover/popover-content.d.ts +1147 -2
- package/types/popover/popover-context.d.ts +120 -0
- package/types/popover/popover.d.ts +4 -4
- package/types/popover/popover.styles.d.ts +2374 -88
- package/types/popover/use-popover.d.ts +83 -4
- package/types/popover/utils.d.ts +3 -1
- package/types/progress/progress.d.ts +1 -1
- package/types/progress/progress.styles.d.ts +396 -174
- package/types/radio/index.d.ts +2 -2
- package/types/radio/radio-context.d.ts +22 -13
- package/types/radio/radio-group.d.ts +9 -78
- package/types/radio/radio.d.ts +10 -66
- package/types/radio/radio.styles.d.ts +3335 -562
- package/types/radio/use-radio-group.d.ts +26 -0
- package/types/radio/use-radio.d.ts +31 -0
- package/types/row/row.styles.d.ts +198 -87
- package/types/snippet/snippet.styles.d.ts +803 -359
- package/types/spacer/spacer.styles.d.ts +198 -87
- package/types/switch/switch.d.ts +1 -1
- package/types/switch/switch.styles.d.ts +803 -359
- package/types/table/table-column-header.d.ts +198 -87
- package/types/table/table-sort-icon.d.ts +198 -87
- package/types/table/table.styles.d.ts +3745 -1856
- package/types/table/utils.d.ts +5 -29
- package/types/text/text.styles.d.ts +198 -87
- package/types/textarea/textarea.d.ts +1 -1
- package/types/theme/colors/blue.d.ts +24 -0
- package/types/theme/colors/cyan.d.ts +24 -0
- package/types/theme/colors/gray.d.ts +24 -0
- package/types/theme/colors/green.d.ts +24 -0
- package/types/theme/colors/index.d.ts +8 -0
- package/types/theme/colors/pink.d.ts +24 -0
- package/types/theme/colors/purple.d.ts +24 -0
- package/types/theme/colors/red.d.ts +24 -0
- package/types/theme/colors/yellow.d.ts +24 -0
- package/types/theme/common.d.ts +449 -392
- package/types/theme/dark-theme.d.ts +112 -22
- package/types/theme/light-theme.d.ts +91 -13
- package/types/theme/shared-css.d.ts +5237 -0
- package/types/theme/stitches.config.d.ts +3120 -4934
- package/types/theme/types.d.ts +3 -0
- package/types/tooltip/tooltip.d.ts +1 -1
- package/types/tooltip/tooltip.styles.d.ts +803 -359
- package/types/user/index.d.ts +1 -1
- package/types/user/user-link.d.ts +4 -11
- package/types/user/user.styles.d.ts +787 -1277
- package/types/utils/checkmark.d.ts +19 -0
- package/types/utils/color.d.ts +1 -0
- package/types/utils/dom.d.ts +5 -2
- package/types/utils/drip.d.ts +199 -88
- package/types/utils/prop-types.d.ts +4 -0
- package/umd/nextui.js +14191 -17827
- package/umd/nextui.min.js +1 -1
- package/cjs/checkbox/utils.js +0 -1
- package/esm/checkbox/utils.js +0 -1
- package/types/checkbox/utils.d.ts +0 -288
package/types/radio/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Radio from './radio';
|
|
2
|
-
export {
|
|
3
|
-
export type {
|
|
2
|
+
export { StyledRadioLabel, StyledRadioText, StyledRadioPoint, StyledRadioContainer, StyledRadioDescription, StyledRadioGroup, StyledRadioGroupContainer } from './radio.styles';
|
|
3
|
+
export type { RadioLabelVariantsProps, RadioTexVariantsProps, RadioPointVariantsProps, RadioContainerVariantsProps, RadioDescriptionVariantsProps, RadioGroupVariantsProps, RadioGroupContainerVariantsProps } from './radio.styles';
|
|
4
4
|
export default Radio;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RadioGroupProvider: import("react").Provider<{
|
|
3
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
+
color: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
5
|
+
orientation: import("@react-types/shared").Orientation;
|
|
6
|
+
labelColor: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
7
|
+
isRequired: boolean | undefined;
|
|
8
|
+
validationState: import("@react-types/shared").ValidationState | undefined;
|
|
9
|
+
radioGroupState: import("@react-stately/radio").RadioGroupState;
|
|
10
|
+
radioGroupProps: Omit<import("react").HTMLAttributes<HTMLElement>, "css">;
|
|
11
|
+
labelProps: Omit<import("react").HTMLAttributes<HTMLElement>, "css">;
|
|
12
|
+
}>, useRadioGroupContext: () => {
|
|
13
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
14
|
+
color: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
15
|
+
orientation: import("@react-types/shared").Orientation;
|
|
16
|
+
labelColor: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
17
|
+
isRequired: boolean | undefined;
|
|
18
|
+
validationState: import("@react-types/shared").ValidationState | undefined;
|
|
19
|
+
radioGroupState: import("@react-stately/radio").RadioGroupState;
|
|
20
|
+
radioGroupProps: Omit<import("react").HTMLAttributes<HTMLElement>, "css">;
|
|
21
|
+
labelProps: Omit<import("react").HTMLAttributes<HTMLElement>, "css">;
|
|
22
|
+
};
|
|
@@ -1,84 +1,15 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
children
|
|
7
|
-
|
|
8
|
-
initialValue?: string | number;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
color?: SimpleColors;
|
|
11
|
-
textColor?: SimpleColors;
|
|
12
|
-
size?: NormalSizes;
|
|
13
|
-
onChange?: (value: string | number) => void;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CSS } from '../theme/stitches.config';
|
|
3
|
+
import type { UseRadioGroupProps } from './use-radio-group';
|
|
4
|
+
interface Props extends UseRadioGroupProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
as?: keyof JSX.IntrinsicElements;
|
|
14
8
|
}
|
|
15
|
-
declare
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
size: number | "xs" | "sm" | "md" | "lg" | "xl";
|
|
18
|
-
color: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
19
|
-
textColor: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
20
|
-
};
|
|
21
|
-
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
22
|
-
export declare type RadioGroupProps = Props & typeof defaultProps & NativeAttrs & RadioGroupVariantsProps & {
|
|
9
|
+
export declare type RadioGroupProps = Props & {
|
|
23
10
|
css?: CSS;
|
|
24
11
|
};
|
|
25
12
|
export declare const RadioGroup: React.ForwardRefExoticComponent<Props & {
|
|
26
|
-
disabled: boolean;
|
|
27
|
-
size: number | "xs" | "sm" | "md" | "lg" | "xl";
|
|
28
|
-
color: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
29
|
-
textColor: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
30
|
-
} & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
|
|
31
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
32
|
-
row?: boolean | "true" | "false" | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
xs: string;
|
|
35
|
-
sm: string;
|
|
36
|
-
md: string;
|
|
37
|
-
lg: string;
|
|
38
|
-
xl: string;
|
|
39
|
-
xsMax: string;
|
|
40
|
-
smMax: string;
|
|
41
|
-
mdMax: string;
|
|
42
|
-
lgMax: string;
|
|
43
|
-
xlMax: string;
|
|
44
|
-
motion: string;
|
|
45
|
-
safari: string;
|
|
46
|
-
hover: string;
|
|
47
|
-
dark: string;
|
|
48
|
-
light: string;
|
|
49
|
-
}> & {
|
|
50
13
|
css?: CSS | undefined;
|
|
51
14
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
52
|
-
|
|
53
|
-
disabled: boolean;
|
|
54
|
-
size: number | "xs" | "sm" | "md" | "lg" | "xl";
|
|
55
|
-
color: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
56
|
-
textColor: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
57
|
-
}> & Omit<Props & {
|
|
58
|
-
disabled: boolean;
|
|
59
|
-
size: number | "xs" | "sm" | "md" | "lg" | "xl";
|
|
60
|
-
color: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
61
|
-
textColor: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
62
|
-
} & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
|
|
63
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
64
|
-
row?: boolean | "true" | "false" | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
xs: string;
|
|
67
|
-
sm: string;
|
|
68
|
-
md: string;
|
|
69
|
-
lg: string;
|
|
70
|
-
xl: string;
|
|
71
|
-
xsMax: string;
|
|
72
|
-
smMax: string;
|
|
73
|
-
mdMax: string;
|
|
74
|
-
lgMax: string;
|
|
75
|
-
xlMax: string;
|
|
76
|
-
motion: string;
|
|
77
|
-
safari: string;
|
|
78
|
-
hover: string;
|
|
79
|
-
dark: string;
|
|
80
|
-
light: string;
|
|
81
|
-
}> & {
|
|
82
|
-
css?: CSS | undefined;
|
|
83
|
-
} & React.RefAttributes<HTMLDivElement>, "color" | "size" | "textColor" | "disabled">>;
|
|
84
|
-
export default _default;
|
|
15
|
+
export default RadioGroup;
|
package/types/radio/radio.d.ts
CHANGED
|
@@ -1,78 +1,22 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import RadioGroup from './radio-group';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
checked: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface RadioEvent {
|
|
10
|
-
target: RadioEventTarget;
|
|
11
|
-
stopPropagation: () => void;
|
|
12
|
-
preventDefault: () => void;
|
|
13
|
-
nativeEvent: React.ChangeEvent;
|
|
14
|
-
}
|
|
15
|
-
interface Props {
|
|
3
|
+
import type { CSS } from '../theme/stitches.config';
|
|
4
|
+
import type { UseRadioProps } from './use-radio';
|
|
5
|
+
interface Props extends UseRadioProps {
|
|
6
|
+
label?: string;
|
|
16
7
|
children?: ReactNode;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
color?: SimpleColors;
|
|
21
|
-
textColor?: SimpleColors;
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
preventDefault?: boolean;
|
|
24
|
-
onChange?: (e: RadioEvent) => void;
|
|
8
|
+
description?: string | ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
as?: keyof JSX.IntrinsicElements;
|
|
25
11
|
}
|
|
26
|
-
declare
|
|
27
|
-
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
28
|
-
color: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
29
|
-
textColor: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
30
|
-
disabled: boolean;
|
|
31
|
-
preventDefault: boolean;
|
|
32
|
-
};
|
|
33
|
-
declare type NativeAttrs = Omit<React.InputHTMLAttributes<unknown>, keyof Props>;
|
|
34
|
-
export declare type RadioProps = Props & typeof defaultProps & NativeAttrs & RadioVariantsProps & {
|
|
12
|
+
export declare type RadioProps = Props & {
|
|
35
13
|
css?: CSS;
|
|
36
14
|
};
|
|
37
15
|
export declare const Radio: React.ForwardRefExoticComponent<Props & {
|
|
38
|
-
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
39
|
-
color: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
40
|
-
textColor: "default" | "primary" | "secondary" | "success" | "warning" | "error";
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
preventDefault: boolean;
|
|
43
|
-
} & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
|
|
44
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "error" | undefined;
|
|
45
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
46
|
-
disabled?: boolean | "true" | undefined;
|
|
47
|
-
squared?: boolean | "true" | "false" | undefined;
|
|
48
|
-
active?: boolean | "true" | undefined;
|
|
49
|
-
animated?: boolean | "true" | "false" | undefined;
|
|
50
|
-
}, {
|
|
51
|
-
xs: string;
|
|
52
|
-
sm: string;
|
|
53
|
-
md: string;
|
|
54
|
-
lg: string;
|
|
55
|
-
xl: string;
|
|
56
|
-
xsMax: string;
|
|
57
|
-
smMax: string;
|
|
58
|
-
mdMax: string;
|
|
59
|
-
lgMax: string;
|
|
60
|
-
xlMax: string;
|
|
61
|
-
motion: string;
|
|
62
|
-
safari: string;
|
|
63
|
-
hover: string;
|
|
64
|
-
dark: string;
|
|
65
|
-
light: string;
|
|
66
|
-
}> & {
|
|
67
16
|
css?: CSS | undefined;
|
|
68
17
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
69
|
-
declare type RadioComponent<P = {}> = React.
|
|
18
|
+
declare type RadioComponent<T, P = {}> = React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>> & {
|
|
70
19
|
Group: typeof RadioGroup;
|
|
71
|
-
Desc: typeof StyledRadioDescription;
|
|
72
|
-
Description: typeof StyledRadioDescription;
|
|
73
|
-
};
|
|
74
|
-
declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs & RadioVariantsProps & {
|
|
75
|
-
css?: CSS;
|
|
76
20
|
};
|
|
77
|
-
declare const _default: RadioComponent<
|
|
21
|
+
declare const _default: RadioComponent<HTMLLabelElement, RadioProps>;
|
|
78
22
|
export default _default;
|