@nextui-org/react 1.0.0-beta.7 → 1.0.0-beta.8
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/button/button-icon.js +1 -1
- package/cjs/button/button.js +1 -1
- package/cjs/button/button.styles.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-group.js +1 -1
- package/cjs/checkbox/checkbox.styles.js +1 -1
- package/cjs/checkbox/use-checkbox-group.js +1 -1
- 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/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/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.styles.js +1 -1
- package/cjs/theme/colors/gray.js +1 -1
- package/cjs/theme/common.js +1 -1
- package/cjs/theme/dark-theme.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/button/button-icon.js +1 -1
- package/esm/button/button.js +1 -1
- package/esm/button/button.styles.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-group.js +1 -1
- package/esm/checkbox/checkbox.styles.js +1 -1
- package/esm/checkbox/use-checkbox-group.js +1 -1
- 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/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/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.styles.js +1 -1
- package/esm/theme/colors/gray.js +1 -1
- package/esm/theme/common.js +1 -1
- package/esm/theme/dark-theme.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 +6 -1
- package/types/avatar/avatar-group.styles.d.ts +150 -6
- package/types/avatar/avatar.d.ts +2372 -11
- package/types/avatar/avatar.styles.d.ts +2447 -14
- package/types/backdrop/backdrop.styles.d.ts +225 -9
- package/types/button/button-group.styles.d.ts +75 -3
- package/types/button/button-icon.d.ts +79 -5
- package/types/button/button.d.ts +5 -3
- package/types/button/button.styles.d.ts +1249 -7
- package/types/card/card.d.ts +8 -9
- package/types/card/card.styles.d.ts +2621 -24
- package/types/card/use-card.d.ts +301 -0
- package/types/checkbox/checkbox.styles.d.ts +751 -31
- package/types/checkbox/use-checkbox-group.d.ts +3 -2
- package/types/code/code.styles.d.ts +150 -6
- package/types/col/col.styles.d.ts +75 -3
- package/types/collapse/collapse.styles.d.ts +450 -18
- package/types/container/container.styles.d.ts +75 -3
- package/types/divider/divider.styles.d.ts +150 -6
- 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 +150 -6
- package/types/image/image.d.ts +5 -18
- package/types/image/image.styles.d.ts +225 -9
- package/types/index.d.ts +4 -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 +825 -33
- package/types/link/link.styles.d.ts +150 -6
- package/types/loading/loading.styles.d.ts +450 -18
- package/types/modal/modal.styles.d.ts +450 -18
- package/types/pagination/pagination.styles.d.ts +450 -18
- 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 +1279 -7
- 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 +150 -6
- 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 +2574 -35
- 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 +75 -3
- package/types/snippet/snippet.styles.d.ts +300 -12
- package/types/spacer/spacer.styles.d.ts +75 -3
- package/types/switch/switch.d.ts +1 -1
- package/types/switch/switch.styles.d.ts +300 -12
- package/types/table/table-column-header.d.ts +75 -3
- package/types/table/table-sort-icon.d.ts +75 -3
- package/types/table/table.styles.d.ts +1278 -52
- package/types/text/text.styles.d.ts +75 -3
- package/types/textarea/textarea.d.ts +1 -1
- package/types/theme/common.d.ts +127 -6
- package/types/theme/dark-theme.d.ts +11 -0
- package/types/theme/light-theme.d.ts +7 -0
- package/types/theme/shared-css.d.ts +5237 -0
- package/types/theme/stitches.config.d.ts +643 -2964
- package/types/theme/types.d.ts +3 -0
- package/types/tooltip/tooltip.d.ts +1 -1
- package/types/tooltip/tooltip.styles.d.ts +300 -12
- package/types/user/index.d.ts +1 -1
- package/types/user/user-link.d.ts +4 -11
- package/types/user/user.styles.d.ts +298 -983
- 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 +76 -4
- package/types/utils/prop-types.d.ts +4 -0
- package/umd/nextui.js +6269 -3172
- package/umd/nextui.min.js +1 -1
|
@@ -1,8 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
2
|
import { OverlayTriggerProps } from '@react-types/overlays';
|
|
3
3
|
import { PopoverPlacement } from './utils';
|
|
4
|
-
|
|
4
|
+
import { PopoverContentVariantsProps } from './popover.styles';
|
|
5
|
+
export interface UsePopoverProps extends OverlayTriggerProps, PopoverContentVariantsProps {
|
|
6
|
+
ref?: RefObject<HTMLElement>;
|
|
7
|
+
/**
|
|
8
|
+
* The ref for the element which the overlay positions itself with respect to.
|
|
9
|
+
*/
|
|
10
|
+
triggerRef?: RefObject<HTMLElement>;
|
|
11
|
+
/**
|
|
12
|
+
* A ref for the scrollable region within the overlay.
|
|
13
|
+
* @default overlayRef
|
|
14
|
+
*/
|
|
15
|
+
scrollRef?: RefObject<HTMLElement>;
|
|
16
|
+
/**
|
|
17
|
+
* The placement of the element with respect to its anchor element.
|
|
18
|
+
* @default 'bottom'
|
|
19
|
+
*/
|
|
5
20
|
placement?: PopoverPlacement;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the element should flip its orientation (e.g. top to bottom or left to right) when there is insufficient room for it to render completely.
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
6
25
|
shouldFlip?: boolean;
|
|
7
26
|
offset?: number;
|
|
8
27
|
/** Handler that is called when the overlay should close. */
|
|
@@ -41,12 +60,72 @@ export interface UsePopoverProps extends OverlayTriggerProps {
|
|
|
41
60
|
export declare function usePopover(props?: UsePopoverProps): {
|
|
42
61
|
state: import("@react-stately/overlays").OverlayTriggerState;
|
|
43
62
|
exited: boolean;
|
|
44
|
-
overlayRef:
|
|
45
|
-
triggerRef:
|
|
63
|
+
overlayRef: RefObject<HTMLElement>;
|
|
64
|
+
triggerRef: RefObject<HTMLElement>;
|
|
46
65
|
placement: PopoverPlacement;
|
|
66
|
+
disableShadow: boolean | "true" | ({
|
|
67
|
+
"@xs"?: boolean | "true" | undefined;
|
|
68
|
+
"@sm"?: boolean | "true" | undefined;
|
|
69
|
+
"@md"?: boolean | "true" | undefined;
|
|
70
|
+
"@lg"?: boolean | "true" | undefined;
|
|
71
|
+
"@xl"?: boolean | "true" | undefined;
|
|
72
|
+
"@dark"?: boolean | "true" | undefined;
|
|
73
|
+
"@light"?: boolean | "true" | undefined;
|
|
74
|
+
"@hover"?: boolean | "true" | undefined;
|
|
75
|
+
"@motion"?: boolean | "true" | undefined;
|
|
76
|
+
"@xsMax"?: boolean | "true" | undefined;
|
|
77
|
+
"@smMax"?: boolean | "true" | undefined;
|
|
78
|
+
"@mdMax"?: boolean | "true" | undefined;
|
|
79
|
+
"@lgMax"?: boolean | "true" | undefined;
|
|
80
|
+
"@xlMax"?: boolean | "true" | undefined;
|
|
81
|
+
"@safari"?: boolean | "true" | undefined;
|
|
82
|
+
"@initial"?: boolean | "true" | undefined;
|
|
83
|
+
} & {
|
|
84
|
+
[x: string]: boolean | "true" | undefined;
|
|
85
|
+
}) | undefined;
|
|
47
86
|
disableAnimation: boolean;
|
|
48
87
|
shouldCloseOnBlur: boolean;
|
|
49
88
|
isDismissable: boolean;
|
|
89
|
+
isBordered: boolean | "true" | ({
|
|
90
|
+
"@xs"?: boolean | "true" | undefined;
|
|
91
|
+
"@sm"?: boolean | "true" | undefined;
|
|
92
|
+
"@md"?: boolean | "true" | undefined;
|
|
93
|
+
"@lg"?: boolean | "true" | undefined;
|
|
94
|
+
"@xl"?: boolean | "true" | undefined;
|
|
95
|
+
"@dark"?: boolean | "true" | undefined;
|
|
96
|
+
"@light"?: boolean | "true" | undefined;
|
|
97
|
+
"@hover"?: boolean | "true" | undefined;
|
|
98
|
+
"@motion"?: boolean | "true" | undefined;
|
|
99
|
+
"@xsMax"?: boolean | "true" | undefined;
|
|
100
|
+
"@smMax"?: boolean | "true" | undefined;
|
|
101
|
+
"@mdMax"?: boolean | "true" | undefined;
|
|
102
|
+
"@lgMax"?: boolean | "true" | undefined;
|
|
103
|
+
"@xlMax"?: boolean | "true" | undefined;
|
|
104
|
+
"@safari"?: boolean | "true" | undefined;
|
|
105
|
+
"@initial"?: boolean | "true" | undefined;
|
|
106
|
+
} & {
|
|
107
|
+
[x: string]: boolean | "true" | undefined;
|
|
108
|
+
}) | undefined;
|
|
109
|
+
borderWeight: "light" | "normal" | "bold" | "extrabold" | "black" | ({
|
|
110
|
+
"@xs"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
111
|
+
"@sm"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
112
|
+
"@md"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
113
|
+
"@lg"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
114
|
+
"@xl"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
115
|
+
"@dark"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
116
|
+
"@light"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
117
|
+
"@hover"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
118
|
+
"@motion"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
119
|
+
"@xsMax"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
120
|
+
"@smMax"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
121
|
+
"@mdMax"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
122
|
+
"@lgMax"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
123
|
+
"@xlMax"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
124
|
+
"@safari"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
125
|
+
"@initial"?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
126
|
+
} & {
|
|
127
|
+
[x: string]: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
128
|
+
}) | undefined;
|
|
50
129
|
isKeyboardDismissDisabled: boolean;
|
|
51
130
|
shouldCloseOnInteractOutside: ((element: HTMLElement) => boolean) | undefined;
|
|
52
131
|
isOpen: boolean;
|
package/types/popover/utils.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Placement } from '@react-types/overlays';
|
|
1
|
+
import { Placement, PlacementAxis } from '@react-types/overlays';
|
|
2
2
|
export declare type PopoverPlacement = 'bottom' | 'bottom-left' | 'bottom-right' | 'top' | 'top-left' | 'top-right' | 'left' | 'left-top' | 'left-bottom' | 'right' | 'right-top' | 'right-bottom';
|
|
3
3
|
export declare const getAriaPlacement: (placement?: PopoverPlacement | undefined) => Placement;
|
|
4
|
+
export declare const getPopoverPlacementFromAxis: (placementAxis?: PlacementAxis | undefined) => PopoverPlacement;
|
|
5
|
+
export declare const getPopoverPlacement: (ariaPlacement?: Placement | undefined) => "top" | "left" | "bottom" | "right" | "start" | "end" | "bottom-left" | "bottom-right" | "top-left" | "top-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom" | "bottom left" | "bottom right" | "bottom start" | "bottom end" | "top left" | "top right" | "top start" | "top end" | "left top" | "left bottom" | "start top" | "start bottom" | "right top" | "right bottom" | "end top" | "end bottom";
|
|
4
6
|
export declare const getTransformOrigin: (placement?: PopoverPlacement | undefined) => Placement | "top center" | "bottom center" | "right center" | "left center";
|
|
@@ -61,5 +61,5 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
61
61
|
hover: string;
|
|
62
62
|
dark: string;
|
|
63
63
|
light: string;
|
|
64
|
-
}>, "
|
|
64
|
+
}>, "shadow" | "max" | "value" | "animated" | "min" | "indeterminated" | "striped">>;
|
|
65
65
|
export default _default;
|
|
@@ -45,6 +45,13 @@ export declare const StyledProgress: import("@stitches/react/types/styled-compon
|
|
|
45
45
|
lg: string;
|
|
46
46
|
xl: string;
|
|
47
47
|
};
|
|
48
|
+
dropShadows: {
|
|
49
|
+
xs: string;
|
|
50
|
+
sm: string;
|
|
51
|
+
md: string;
|
|
52
|
+
lg: string;
|
|
53
|
+
xl: string;
|
|
54
|
+
};
|
|
48
55
|
colors: {
|
|
49
56
|
text: string;
|
|
50
57
|
link: string;
|
|
@@ -186,6 +193,16 @@ export declare const StyledProgress: import("@stitches/react/types/styled-compon
|
|
|
186
193
|
errorSolidHover: string;
|
|
187
194
|
errorSolidContrast: string;
|
|
188
195
|
errorShadow: string;
|
|
196
|
+
neutralLight: string;
|
|
197
|
+
neutralLightHover: string;
|
|
198
|
+
neutralLightActive: string;
|
|
199
|
+
neutralLightContrast: string;
|
|
200
|
+
neutral: string;
|
|
201
|
+
neutralBorder: string;
|
|
202
|
+
neutralBorderHover: string;
|
|
203
|
+
neutralSolidHover: string;
|
|
204
|
+
neutralSolidContrast: string;
|
|
205
|
+
neutralShadow: string;
|
|
189
206
|
gradient: string;
|
|
190
207
|
accents0: string;
|
|
191
208
|
accents1: string;
|
|
@@ -204,13 +221,20 @@ export declare const StyledProgress: import("@stitches/react/types/styled-compon
|
|
|
204
221
|
mono: string;
|
|
205
222
|
};
|
|
206
223
|
fontSizes: {
|
|
207
|
-
tiny: string;
|
|
208
224
|
xs: string;
|
|
209
|
-
base: string;
|
|
210
225
|
sm: string;
|
|
226
|
+
base: string;
|
|
211
227
|
md: string;
|
|
212
228
|
lg: string;
|
|
213
229
|
xl: string;
|
|
230
|
+
xl2: string;
|
|
231
|
+
xl3: string;
|
|
232
|
+
xl4: string;
|
|
233
|
+
xl5: string;
|
|
234
|
+
xl6: string;
|
|
235
|
+
xl7: string;
|
|
236
|
+
xl8: string;
|
|
237
|
+
xl9: string;
|
|
214
238
|
};
|
|
215
239
|
fontWeights: {
|
|
216
240
|
hairline: number;
|
|
@@ -226,9 +250,18 @@ export declare const StyledProgress: import("@stitches/react/types/styled-compon
|
|
|
226
250
|
lineHeights: {
|
|
227
251
|
xs: number;
|
|
228
252
|
sm: number;
|
|
253
|
+
base: number;
|
|
229
254
|
md: number;
|
|
230
255
|
lg: number;
|
|
231
256
|
xl: number;
|
|
257
|
+
xl2: number;
|
|
258
|
+
xl3: number;
|
|
259
|
+
xl4: number;
|
|
260
|
+
xl5: number;
|
|
261
|
+
xl6: number;
|
|
262
|
+
xl7: number;
|
|
263
|
+
xl8: number;
|
|
264
|
+
xl9: number;
|
|
232
265
|
};
|
|
233
266
|
letterSpacings: {
|
|
234
267
|
tighter: string;
|
|
@@ -313,6 +346,7 @@ export declare const StyledProgress: import("@stitches/react/types/styled-compon
|
|
|
313
346
|
avatar: string;
|
|
314
347
|
link: string;
|
|
315
348
|
card: string;
|
|
349
|
+
dropdownItem: string;
|
|
316
350
|
};
|
|
317
351
|
breakpoints: {
|
|
318
352
|
xs: string;
|
|
@@ -688,7 +722,9 @@ export declare const StyledProgress: import("@stitches/react/types/styled-compon
|
|
|
688
722
|
readonly [$$PropertyValue]: "backgroundColor";
|
|
689
723
|
}) => {
|
|
690
724
|
bf: string;
|
|
691
|
-
bg:
|
|
725
|
+
bg: {
|
|
726
|
+
readonly [$$PropertyValue]: "backgroundColor";
|
|
727
|
+
};
|
|
692
728
|
};
|
|
693
729
|
bgColor: (value: {
|
|
694
730
|
readonly [$$PropertyValue]: "backgroundColor";
|
|
@@ -766,6 +802,32 @@ export declare const StyledProgress: import("@stitches/react/types/styled-compon
|
|
|
766
802
|
readonly [$$PropertyValue]: "boxShadow";
|
|
767
803
|
};
|
|
768
804
|
};
|
|
805
|
+
ds: (value: {
|
|
806
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
807
|
+
}) => {
|
|
808
|
+
dropShadow: {
|
|
809
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
shadow: (value: {
|
|
813
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
814
|
+
}) => {
|
|
815
|
+
boxShadow: {
|
|
816
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
dshadow: (value: {
|
|
820
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
821
|
+
}) => {
|
|
822
|
+
dropShadow: {
|
|
823
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
dropShadow: (value: {
|
|
827
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
828
|
+
}) => {
|
|
829
|
+
filter: string;
|
|
830
|
+
};
|
|
769
831
|
normalShadow: (value: {
|
|
770
832
|
readonly [$$PropertyValue]: "backgroundColor";
|
|
771
833
|
}) => {
|
|
@@ -969,6 +1031,16 @@ export declare const StyledProgress: import("@stitches/react/types/styled-compon
|
|
|
969
1031
|
readonly [$$PropertyValue]: "textDecorationLine";
|
|
970
1032
|
};
|
|
971
1033
|
};
|
|
1034
|
+
truncateText: (value: {
|
|
1035
|
+
readonly [$$PropertyValue]: "width";
|
|
1036
|
+
}) => {
|
|
1037
|
+
maxWidth: {
|
|
1038
|
+
readonly [$$PropertyValue]: "width";
|
|
1039
|
+
};
|
|
1040
|
+
whiteSpace: string;
|
|
1041
|
+
overflow: string;
|
|
1042
|
+
textOverflow: string;
|
|
1043
|
+
};
|
|
972
1044
|
textGradient: (value: {
|
|
973
1045
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
974
1046
|
}) => {
|
|
@@ -1025,6 +1097,13 @@ export declare const StyledProgressBar: import("@stitches/react/types/styled-com
|
|
|
1025
1097
|
lg: string;
|
|
1026
1098
|
xl: string;
|
|
1027
1099
|
};
|
|
1100
|
+
dropShadows: {
|
|
1101
|
+
xs: string;
|
|
1102
|
+
sm: string;
|
|
1103
|
+
md: string;
|
|
1104
|
+
lg: string;
|
|
1105
|
+
xl: string;
|
|
1106
|
+
};
|
|
1028
1107
|
colors: {
|
|
1029
1108
|
text: string;
|
|
1030
1109
|
link: string;
|
|
@@ -1166,6 +1245,16 @@ export declare const StyledProgressBar: import("@stitches/react/types/styled-com
|
|
|
1166
1245
|
errorSolidHover: string;
|
|
1167
1246
|
errorSolidContrast: string;
|
|
1168
1247
|
errorShadow: string;
|
|
1248
|
+
neutralLight: string;
|
|
1249
|
+
neutralLightHover: string;
|
|
1250
|
+
neutralLightActive: string;
|
|
1251
|
+
neutralLightContrast: string;
|
|
1252
|
+
neutral: string;
|
|
1253
|
+
neutralBorder: string;
|
|
1254
|
+
neutralBorderHover: string;
|
|
1255
|
+
neutralSolidHover: string;
|
|
1256
|
+
neutralSolidContrast: string;
|
|
1257
|
+
neutralShadow: string;
|
|
1169
1258
|
gradient: string;
|
|
1170
1259
|
accents0: string;
|
|
1171
1260
|
accents1: string;
|
|
@@ -1184,13 +1273,20 @@ export declare const StyledProgressBar: import("@stitches/react/types/styled-com
|
|
|
1184
1273
|
mono: string;
|
|
1185
1274
|
};
|
|
1186
1275
|
fontSizes: {
|
|
1187
|
-
tiny: string;
|
|
1188
1276
|
xs: string;
|
|
1189
|
-
base: string;
|
|
1190
1277
|
sm: string;
|
|
1278
|
+
base: string;
|
|
1191
1279
|
md: string;
|
|
1192
1280
|
lg: string;
|
|
1193
1281
|
xl: string;
|
|
1282
|
+
xl2: string;
|
|
1283
|
+
xl3: string;
|
|
1284
|
+
xl4: string;
|
|
1285
|
+
xl5: string;
|
|
1286
|
+
xl6: string;
|
|
1287
|
+
xl7: string;
|
|
1288
|
+
xl8: string;
|
|
1289
|
+
xl9: string;
|
|
1194
1290
|
};
|
|
1195
1291
|
fontWeights: {
|
|
1196
1292
|
hairline: number;
|
|
@@ -1206,9 +1302,18 @@ export declare const StyledProgressBar: import("@stitches/react/types/styled-com
|
|
|
1206
1302
|
lineHeights: {
|
|
1207
1303
|
xs: number;
|
|
1208
1304
|
sm: number;
|
|
1305
|
+
base: number;
|
|
1209
1306
|
md: number;
|
|
1210
1307
|
lg: number;
|
|
1211
1308
|
xl: number;
|
|
1309
|
+
xl2: number;
|
|
1310
|
+
xl3: number;
|
|
1311
|
+
xl4: number;
|
|
1312
|
+
xl5: number;
|
|
1313
|
+
xl6: number;
|
|
1314
|
+
xl7: number;
|
|
1315
|
+
xl8: number;
|
|
1316
|
+
xl9: number;
|
|
1212
1317
|
};
|
|
1213
1318
|
letterSpacings: {
|
|
1214
1319
|
tighter: string;
|
|
@@ -1293,6 +1398,7 @@ export declare const StyledProgressBar: import("@stitches/react/types/styled-com
|
|
|
1293
1398
|
avatar: string;
|
|
1294
1399
|
link: string;
|
|
1295
1400
|
card: string;
|
|
1401
|
+
dropdownItem: string;
|
|
1296
1402
|
};
|
|
1297
1403
|
breakpoints: {
|
|
1298
1404
|
xs: string;
|
|
@@ -1668,7 +1774,9 @@ export declare const StyledProgressBar: import("@stitches/react/types/styled-com
|
|
|
1668
1774
|
readonly [$$PropertyValue]: "backgroundColor";
|
|
1669
1775
|
}) => {
|
|
1670
1776
|
bf: string;
|
|
1671
|
-
bg:
|
|
1777
|
+
bg: {
|
|
1778
|
+
readonly [$$PropertyValue]: "backgroundColor";
|
|
1779
|
+
};
|
|
1672
1780
|
};
|
|
1673
1781
|
bgColor: (value: {
|
|
1674
1782
|
readonly [$$PropertyValue]: "backgroundColor";
|
|
@@ -1746,6 +1854,32 @@ export declare const StyledProgressBar: import("@stitches/react/types/styled-com
|
|
|
1746
1854
|
readonly [$$PropertyValue]: "boxShadow";
|
|
1747
1855
|
};
|
|
1748
1856
|
};
|
|
1857
|
+
ds: (value: {
|
|
1858
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
1859
|
+
}) => {
|
|
1860
|
+
dropShadow: {
|
|
1861
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
shadow: (value: {
|
|
1865
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
1866
|
+
}) => {
|
|
1867
|
+
boxShadow: {
|
|
1868
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
1869
|
+
};
|
|
1870
|
+
};
|
|
1871
|
+
dshadow: (value: {
|
|
1872
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
1873
|
+
}) => {
|
|
1874
|
+
dropShadow: {
|
|
1875
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
1876
|
+
};
|
|
1877
|
+
};
|
|
1878
|
+
dropShadow: (value: {
|
|
1879
|
+
readonly [$$PropertyValue]: "boxShadow";
|
|
1880
|
+
}) => {
|
|
1881
|
+
filter: string;
|
|
1882
|
+
};
|
|
1749
1883
|
normalShadow: (value: {
|
|
1750
1884
|
readonly [$$PropertyValue]: "backgroundColor";
|
|
1751
1885
|
}) => {
|
|
@@ -1949,6 +2083,16 @@ export declare const StyledProgressBar: import("@stitches/react/types/styled-com
|
|
|
1949
2083
|
readonly [$$PropertyValue]: "textDecorationLine";
|
|
1950
2084
|
};
|
|
1951
2085
|
};
|
|
2086
|
+
truncateText: (value: {
|
|
2087
|
+
readonly [$$PropertyValue]: "width";
|
|
2088
|
+
}) => {
|
|
2089
|
+
maxWidth: {
|
|
2090
|
+
readonly [$$PropertyValue]: "width";
|
|
2091
|
+
};
|
|
2092
|
+
whiteSpace: string;
|
|
2093
|
+
overflow: string;
|
|
2094
|
+
textOverflow: string;
|
|
2095
|
+
};
|
|
1952
2096
|
textGradient: (value: {
|
|
1953
2097
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
1954
2098
|
}) => {
|
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;
|