@nextui-org/react 1.0.0-beta.10 → 1.0.0-beta.11-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/README.md +3 -0
- package/cjs/avatar/avatar.js +1 -1
- package/cjs/backdrop/backdrop.styles.js +1 -1
- package/cjs/button/button-icon.js +1 -1
- package/cjs/button/utils.js +1 -1
- package/cjs/card/card.styles.js +1 -1
- package/cjs/checkbox/checkbox.js +1 -1
- package/cjs/checkbox/checkbox.styles.js +1 -1
- package/cjs/checkbox/use-checkbox.js +1 -1
- package/cjs/divider/divider.js +1 -1
- package/cjs/dropdown/dropdown-menu.js +1 -1
- package/cjs/dropdown/dropdown.js +1 -1
- package/cjs/grid/grid.js +1 -1
- package/cjs/input/index.js +1 -1
- package/cjs/input/input.js +1 -1
- package/cjs/input/input.styles.js +1 -1
- package/cjs/link/link.styles.js +1 -1
- package/cjs/loading/loading.js +1 -1
- package/cjs/navbar/navbar-link.js +1 -1
- package/cjs/navbar/navbar.styles.js +1 -1
- package/cjs/popover/popover-content.js +1 -1
- package/cjs/popover/popover.styles.js +1 -1
- package/cjs/popover/use-popover.js +1 -1
- package/cjs/radio/radio.js +1 -1
- package/cjs/radio/use-radio-group.js +1 -1
- package/cjs/radio/use-radio.js +1 -1
- package/cjs/spacer/spacer.js +1 -1
- package/cjs/switch/switch.js +1 -1
- package/cjs/table/table-body.js +1 -1
- package/cjs/table/table-cell.js +1 -1
- package/cjs/table/table.js +1 -1
- package/cjs/table/table.styles.js +1 -1
- package/cjs/textarea/textarea.js +1 -1
- package/cjs/theme/utils.js +1 -1
- package/cjs/tooltip/tooltip.js +1 -1
- package/cjs/use-pagination/index.js +1 -1
- package/cjs/user/user.js +1 -1
- package/cjs/user/user.styles.js +1 -1
- package/cjs/utils/checkmark.js +1 -1
- package/cjs/utils/css-transition.js +1 -1
- package/esm/avatar/avatar.js +1 -1
- package/esm/backdrop/backdrop.styles.js +1 -1
- package/esm/button/button-icon.js +1 -1
- package/esm/button/utils.js +1 -1
- package/esm/card/card.styles.js +1 -1
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/checkbox/checkbox.styles.js +1 -1
- package/esm/checkbox/use-checkbox.js +1 -1
- package/esm/divider/divider.js +1 -1
- package/esm/dropdown/dropdown-menu.js +1 -1
- package/esm/dropdown/dropdown.js +1 -1
- package/esm/grid/grid.js +1 -1
- package/esm/input/index.js +1 -1
- package/esm/input/input.js +1 -1
- package/esm/input/input.styles.js +1 -1
- package/esm/link/link.styles.js +1 -1
- package/esm/loading/loading.js +1 -1
- package/esm/navbar/navbar-link.js +1 -1
- package/esm/navbar/navbar.styles.js +1 -1
- package/esm/popover/popover-content.js +1 -1
- package/esm/popover/popover.styles.js +1 -1
- package/esm/popover/use-popover.js +1 -1
- package/esm/radio/radio.js +1 -1
- package/esm/radio/use-radio-group.js +1 -1
- package/esm/radio/use-radio.js +1 -1
- package/esm/spacer/spacer.js +1 -1
- package/esm/switch/switch.js +1 -1
- package/esm/table/table-body.js +1 -1
- package/esm/table/table-cell.js +1 -1
- package/esm/table/table.js +1 -1
- package/esm/table/table.styles.js +1 -1
- package/esm/textarea/textarea.js +1 -1
- package/esm/theme/utils.js +1 -1
- package/esm/tooltip/tooltip.js +1 -1
- package/esm/use-pagination/index.js +1 -1
- package/esm/user/user.js +1 -1
- package/esm/user/user.styles.js +1 -1
- package/esm/utils/checkmark.js +1 -1
- package/esm/utils/css-transition.js +1 -1
- package/package.json +30 -28
- package/types/avatar/avatar.d.ts +3 -1
- package/types/backdrop/backdrop.d.ts +3 -2
- package/types/backdrop/backdrop.styles.d.ts +1 -1
- package/types/button/button-group.d.ts +8 -1
- package/types/button/button-icon.d.ts +33 -2
- package/types/button/button.d.ts +1 -1
- package/types/button/utils.d.ts +3 -51
- package/types/card/card.d.ts +1 -1
- package/types/card/card.styles.d.ts +28 -0
- package/types/checkbox/checkbox.styles.d.ts +1 -1
- package/types/checkbox/use-checkbox.d.ts +3 -0
- package/types/code/code.d.ts +25 -1
- package/types/col/col.d.ts +27 -2
- package/types/collapse/collapse-group.d.ts +2 -1
- package/types/collapse/collapse.d.ts +1 -0
- package/types/container/container.d.ts +2 -1
- package/types/divider/divider.d.ts +26 -2
- package/types/dropdown/dropdown-menu.d.ts +2 -1
- package/types/grid/grid-container.d.ts +2 -1
- package/types/grid/grid-item.d.ts +2 -1
- package/types/image/image.d.ts +1 -1
- package/types/image/image.skeleton.d.ts +1 -1
- package/types/input/input-password.d.ts +2 -1
- package/types/input/input.d.ts +1 -3
- package/types/loading/loading.d.ts +32 -2
- package/types/loading/spinner.d.ts +2 -1
- package/types/modal/modal-footer.d.ts +31 -2
- package/types/modal/modal-header.d.ts +31 -2
- package/types/modal/modal-wrapper.d.ts +2 -1
- package/types/modal/modal.d.ts +1 -0
- package/types/navbar/navbar.styles.d.ts +199 -196
- package/types/pagination/pagination-highlight.d.ts +1 -1
- package/types/pagination/pagination-item.d.ts +2 -1
- package/types/pagination/pagination.d.ts +1 -0
- package/types/popover/popover-content.d.ts +1 -1
- package/types/popover/popover-context.d.ts +2 -2
- package/types/popover/popover.styles.d.ts +11 -0
- package/types/popover/use-popover.d.ts +1 -1
- package/types/progress/progress.d.ts +1 -1
- package/types/radio/index.d.ts +2 -0
- package/types/radio/use-radio.d.ts +1 -0
- package/types/row/row.d.ts +26 -2
- package/types/snippet/snippet.d.ts +37 -1
- package/types/spacer/spacer.d.ts +1 -1
- package/types/switch/switch.d.ts +1 -0
- package/types/table/table-body.d.ts +4 -2
- package/types/table/table-cell.d.ts +1 -0
- package/types/table/table-column-header.d.ts +3 -3
- package/types/table/table-context.d.ts +1 -1
- package/types/table/table-footer.d.ts +5 -4
- package/types/table/table-header-row.d.ts +1 -2
- package/types/table/table-row-group.d.ts +2 -1
- package/types/table/table-row.d.ts +1 -2
- package/types/table/table.d.ts +1 -1
- package/types/table/table.styles.d.ts +14 -7
- package/types/text/child.d.ts +1 -1
- package/types/textarea/textarea.d.ts +1 -1
- package/types/theme/theme-provider.d.ts +2 -1
- package/types/tooltip/tooltip-content.d.ts +3 -2
- package/types/tooltip/tooltip.d.ts +6 -2
- package/types/user/user.d.ts +1 -1
- package/types/utils/css-transition.d.ts +6 -20
- package/types/utils/expand.d.ts +2 -1
- package/umd/nextui.js +3640 -4506
- package/umd/nextui.min.js +1 -1
package/types/button/utils.d.ts
CHANGED
|
@@ -1,53 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
2
2
|
import { ButtonProps } from "./button";
|
|
3
3
|
import { ButtonGroupConfig } from "./button-group-context";
|
|
4
|
-
export declare const filterPropsWithGroup: (props:
|
|
5
|
-
export declare const getCssColors: (props:
|
|
6
|
-
bg: string;
|
|
7
|
-
color: string;
|
|
8
|
-
transform: string;
|
|
9
|
-
boxShadow: string;
|
|
10
|
-
pe: string;
|
|
11
|
-
} | {
|
|
12
|
-
px: string;
|
|
13
|
-
py: string;
|
|
14
|
-
color?: undefined;
|
|
15
|
-
backgroundImage?: undefined;
|
|
16
|
-
transform?: undefined;
|
|
17
|
-
boxShadow?: undefined;
|
|
18
|
-
pe?: undefined;
|
|
19
|
-
pl?: undefined;
|
|
20
|
-
pr?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
px?: undefined;
|
|
23
|
-
py?: undefined;
|
|
24
|
-
color?: undefined;
|
|
25
|
-
backgroundImage?: undefined;
|
|
26
|
-
transform?: undefined;
|
|
27
|
-
boxShadow?: undefined;
|
|
28
|
-
pe?: undefined;
|
|
29
|
-
pl?: undefined;
|
|
30
|
-
pr?: undefined;
|
|
31
|
-
} | {
|
|
32
|
-
color: string;
|
|
33
|
-
backgroundImage: string;
|
|
34
|
-
transform: string;
|
|
35
|
-
boxShadow: string;
|
|
36
|
-
pe: string;
|
|
37
|
-
pl: string;
|
|
38
|
-
pr: string;
|
|
39
|
-
px?: undefined;
|
|
40
|
-
py?: undefined;
|
|
41
|
-
} | {
|
|
42
|
-
bg: string;
|
|
43
|
-
borderColor: string;
|
|
44
|
-
color: string;
|
|
45
|
-
transform: string;
|
|
46
|
-
boxShadow: string;
|
|
47
|
-
pe: string;
|
|
48
|
-
px?: undefined;
|
|
49
|
-
py?: undefined;
|
|
50
|
-
backgroundImage?: undefined;
|
|
51
|
-
pl?: undefined;
|
|
52
|
-
pr?: undefined;
|
|
53
|
-
};
|
|
4
|
+
export declare const filterPropsWithGroup: (props: ButtonProps, config: ButtonGroupConfig) => ButtonProps;
|
|
5
|
+
export declare const getCssColors: (props: ButtonProps) => CSS | undefined;
|
package/types/card/card.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { UseCardProps } from "./use-card";
|
|
3
|
+
import type { CSS } from "../theme/stitches.config";
|
|
3
4
|
import React, { PropsWithoutRef, RefAttributes } from "react";
|
|
4
|
-
import { CSS } from "../theme/stitches.config";
|
|
5
5
|
import { Image, Divider } from "../index";
|
|
6
6
|
import { StyledCardHeader as CardHeader, StyledCardFooter as CardFooter, StyledCardBody as CardBody } from "./card.styles";
|
|
7
7
|
interface Props extends Omit<UseCardProps, "ref"> {
|
|
@@ -1079,6 +1079,7 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1079
1079
|
transform: string;
|
|
1080
1080
|
dropShadow?: undefined;
|
|
1081
1081
|
"@safari"?: undefined;
|
|
1082
|
+
"@-moz-document url-prefix()"?: undefined;
|
|
1082
1083
|
};
|
|
1083
1084
|
isHovered?: undefined;
|
|
1084
1085
|
variant?: undefined;
|
|
@@ -1089,6 +1090,7 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1089
1090
|
transform: string;
|
|
1090
1091
|
dropShadow?: undefined;
|
|
1091
1092
|
"@safari"?: undefined;
|
|
1093
|
+
"@-moz-document url-prefix()"?: undefined;
|
|
1092
1094
|
};
|
|
1093
1095
|
isPressed?: undefined;
|
|
1094
1096
|
variant?: undefined;
|
|
@@ -1101,6 +1103,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1101
1103
|
boxShadow: string;
|
|
1102
1104
|
dropShadow: string;
|
|
1103
1105
|
};
|
|
1106
|
+
"@-moz-document url-prefix()": {
|
|
1107
|
+
boxShadow: string;
|
|
1108
|
+
dropShadow: string;
|
|
1109
|
+
};
|
|
1104
1110
|
transform?: undefined;
|
|
1105
1111
|
};
|
|
1106
1112
|
isPressed?: undefined;
|
|
@@ -1152,6 +1158,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1152
1158
|
boxShadow: string;
|
|
1153
1159
|
dropShadow: string;
|
|
1154
1160
|
};
|
|
1161
|
+
"@-moz-document url-prefix()": {
|
|
1162
|
+
boxShadow: string;
|
|
1163
|
+
dropShadow: string;
|
|
1164
|
+
};
|
|
1155
1165
|
};
|
|
1156
1166
|
bordered: {
|
|
1157
1167
|
borderStyle: string;
|
|
@@ -1200,6 +1210,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1200
1210
|
boxShadow: string;
|
|
1201
1211
|
dropShadow: string;
|
|
1202
1212
|
};
|
|
1213
|
+
"@-moz-document url-prefix()": {
|
|
1214
|
+
boxShadow: string;
|
|
1215
|
+
dropShadow: string;
|
|
1216
|
+
};
|
|
1203
1217
|
};
|
|
1204
1218
|
};
|
|
1205
1219
|
transition?: undefined;
|
|
@@ -1238,6 +1252,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1238
1252
|
boxShadow: string;
|
|
1239
1253
|
dropShadow: string;
|
|
1240
1254
|
};
|
|
1255
|
+
"@-moz-document url-prefix()": {
|
|
1256
|
+
boxShadow: string;
|
|
1257
|
+
dropShadow: string;
|
|
1258
|
+
};
|
|
1241
1259
|
};
|
|
1242
1260
|
bordered: {
|
|
1243
1261
|
borderStyle: string;
|
|
@@ -1286,6 +1304,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1286
1304
|
boxShadow: string;
|
|
1287
1305
|
dropShadow: string;
|
|
1288
1306
|
};
|
|
1307
|
+
"@-moz-document url-prefix()": {
|
|
1308
|
+
boxShadow: string;
|
|
1309
|
+
dropShadow: string;
|
|
1310
|
+
};
|
|
1289
1311
|
};
|
|
1290
1312
|
};
|
|
1291
1313
|
};
|
|
@@ -1296,6 +1318,7 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1296
1318
|
transform: string;
|
|
1297
1319
|
dropShadow?: undefined;
|
|
1298
1320
|
"@safari"?: undefined;
|
|
1321
|
+
"@-moz-document url-prefix()"?: undefined;
|
|
1299
1322
|
};
|
|
1300
1323
|
isHovered?: undefined;
|
|
1301
1324
|
variant?: undefined;
|
|
@@ -1306,6 +1329,7 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1306
1329
|
transform: string;
|
|
1307
1330
|
dropShadow?: undefined;
|
|
1308
1331
|
"@safari"?: undefined;
|
|
1332
|
+
"@-moz-document url-prefix()"?: undefined;
|
|
1309
1333
|
};
|
|
1310
1334
|
isPressed?: undefined;
|
|
1311
1335
|
variant?: undefined;
|
|
@@ -1318,6 +1342,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1318
1342
|
boxShadow: string;
|
|
1319
1343
|
dropShadow: string;
|
|
1320
1344
|
};
|
|
1345
|
+
"@-moz-document url-prefix()": {
|
|
1346
|
+
boxShadow: string;
|
|
1347
|
+
dropShadow: string;
|
|
1348
|
+
};
|
|
1321
1349
|
transform?: undefined;
|
|
1322
1350
|
};
|
|
1323
1351
|
isPressed?: undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { AriaCheckboxProps } from "@react-types/checkbox";
|
|
3
3
|
import type { NormalSizes, NormalColors, SimpleColors } from "../utils/prop-types";
|
|
4
|
+
import { CSS } from "../theme";
|
|
4
5
|
export interface UseCheckboxProps extends AriaCheckboxProps {
|
|
5
6
|
isRounded?: boolean;
|
|
6
7
|
lineThrough?: boolean;
|
|
@@ -8,6 +9,7 @@ export interface UseCheckboxProps extends AriaCheckboxProps {
|
|
|
8
9
|
size?: NormalSizes;
|
|
9
10
|
color?: NormalColors;
|
|
10
11
|
labelColor?: SimpleColors;
|
|
12
|
+
containerCss?: CSS;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* @internal
|
|
@@ -22,5 +24,6 @@ export declare const useCheckbox: (props: UseCheckboxProps) => {
|
|
|
22
24
|
isIndeterminate: boolean;
|
|
23
25
|
inputRef: import("react").RefObject<HTMLInputElement>;
|
|
24
26
|
inputProps: import("react").InputHTMLAttributes<HTMLInputElement>;
|
|
27
|
+
containerCss: CSS | undefined;
|
|
25
28
|
};
|
|
26
29
|
export declare type UseCheckboxReturn = ReturnType<typeof useCheckbox>;
|
package/types/code/code.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { CodeVariantsProps } from "./code.styles";
|
|
|
4
4
|
interface Props {
|
|
5
5
|
block?: boolean;
|
|
6
6
|
as?: keyof JSX.IntrinsicElements;
|
|
7
|
+
children?: React.ReactNode;
|
|
7
8
|
}
|
|
8
9
|
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
9
10
|
export declare type CodeProps = Props & NativeAttrs & CodeVariantsProps & {
|
|
@@ -11,5 +12,28 @@ export declare type CodeProps = Props & NativeAttrs & CodeVariantsProps & {
|
|
|
11
12
|
};
|
|
12
13
|
declare const _default: React.ComponentType<Partial<{
|
|
13
14
|
block: boolean;
|
|
14
|
-
}> & Omit<
|
|
15
|
+
}> & Omit<Props & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{}, {
|
|
16
|
+
xs: string;
|
|
17
|
+
sm: string;
|
|
18
|
+
md: string;
|
|
19
|
+
lg: string;
|
|
20
|
+
xl: string;
|
|
21
|
+
xsMin: string;
|
|
22
|
+
smMin: string;
|
|
23
|
+
mdMin: string;
|
|
24
|
+
lgMin: string;
|
|
25
|
+
xlMin: string;
|
|
26
|
+
xsMax: string;
|
|
27
|
+
smMax: string;
|
|
28
|
+
mdMax: string;
|
|
29
|
+
lgMax: string;
|
|
30
|
+
xlMax: string;
|
|
31
|
+
motion: string;
|
|
32
|
+
safari: string;
|
|
33
|
+
hover: string;
|
|
34
|
+
dark: string;
|
|
35
|
+
light: string;
|
|
36
|
+
}> & {
|
|
37
|
+
css?: CSS | undefined;
|
|
38
|
+
}, "block">>;
|
|
15
39
|
export default _default;
|
package/types/col/col.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import { CSS } from "../theme/stitches.config";
|
|
3
3
|
import { ColVariantsProps } from "./col.styles";
|
|
4
4
|
interface Props {
|
|
5
5
|
span?: number;
|
|
6
6
|
offset?: number;
|
|
7
7
|
css?: CSS;
|
|
8
8
|
as?: keyof JSX.IntrinsicElements;
|
|
9
|
+
children?: React.ReactNode;
|
|
9
10
|
}
|
|
10
11
|
declare const defaultProps: {
|
|
11
12
|
span: number;
|
|
@@ -16,5 +17,29 @@ export declare type ColProps = Props & typeof defaultProps & ColVariantsProps &
|
|
|
16
17
|
declare const _default: React.ComponentType<Partial<{
|
|
17
18
|
span: number;
|
|
18
19
|
offset: number;
|
|
19
|
-
}> & Omit<
|
|
20
|
+
}> & Omit<Props & {
|
|
21
|
+
span: number;
|
|
22
|
+
offset: number;
|
|
23
|
+
} & import("@stitches/react/types/styled-component").TransformProps<{}, {
|
|
24
|
+
xs: string;
|
|
25
|
+
sm: string;
|
|
26
|
+
md: string;
|
|
27
|
+
lg: string;
|
|
28
|
+
xl: string;
|
|
29
|
+
xsMin: string;
|
|
30
|
+
smMin: string;
|
|
31
|
+
mdMin: string;
|
|
32
|
+
lgMin: string;
|
|
33
|
+
xlMin: string;
|
|
34
|
+
xsMax: string;
|
|
35
|
+
smMax: string;
|
|
36
|
+
mdMax: string;
|
|
37
|
+
lgMax: string;
|
|
38
|
+
xlMax: string;
|
|
39
|
+
motion: string;
|
|
40
|
+
safari: string;
|
|
41
|
+
hover: string;
|
|
42
|
+
dark: string;
|
|
43
|
+
light: string;
|
|
44
|
+
}> & NativeAttrs, "span" | "offset">>;
|
|
20
45
|
export default _default;
|
|
@@ -7,6 +7,7 @@ interface Props {
|
|
|
7
7
|
divider?: boolean;
|
|
8
8
|
onChange?: (index?: number | undefined, value?: boolean) => void;
|
|
9
9
|
as?: keyof JSX.IntrinsicElements;
|
|
10
|
+
children?: React.ReactNode;
|
|
10
11
|
}
|
|
11
12
|
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
12
13
|
export declare type CollapseGroupProps = Props & NativeAttrs & CollapseGroupVariantsProps & {
|
|
@@ -14,5 +15,5 @@ export declare type CollapseGroupProps = Props & NativeAttrs & CollapseGroupVari
|
|
|
14
15
|
};
|
|
15
16
|
declare const _default: React.ComponentType<Partial<{
|
|
16
17
|
accordion: boolean;
|
|
17
|
-
}> & Omit<
|
|
18
|
+
}> & Omit<CollapseGroupProps, "accordion">>;
|
|
18
19
|
export default _default;
|
|
@@ -18,6 +18,7 @@ interface Props {
|
|
|
18
18
|
preventDefault?: boolean;
|
|
19
19
|
onChange?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, index?: number | undefined, value?: boolean) => void;
|
|
20
20
|
as?: keyof JSX.IntrinsicElements;
|
|
21
|
+
children?: React.ReactNode;
|
|
21
22
|
}
|
|
22
23
|
declare const defaultProps: {
|
|
23
24
|
shadow: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import { CSS } from "../theme/stitches.config";
|
|
3
3
|
import { Wrap, Display, Justify, Direction, AlignItems, AlignContent } from "../utils/prop-types";
|
|
4
4
|
interface Props {
|
|
5
5
|
gap?: number;
|
|
@@ -18,6 +18,7 @@ interface Props {
|
|
|
18
18
|
alignContent?: AlignContent;
|
|
19
19
|
as?: keyof JSX.IntrinsicElements;
|
|
20
20
|
css?: CSS;
|
|
21
|
+
children?: React.ReactNode;
|
|
21
22
|
}
|
|
22
23
|
declare const defaultProps: {
|
|
23
24
|
gap: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { DividerAlign, SimpleColors } from "../utils/prop-types";
|
|
3
|
-
import { CSS } from "../theme/stitches.config";
|
|
4
4
|
import { DividerVariantsProps } from "./divider.styles";
|
|
5
5
|
interface Props {
|
|
6
6
|
x?: number;
|
|
@@ -10,6 +10,7 @@ interface Props {
|
|
|
10
10
|
align?: DividerAlign;
|
|
11
11
|
css?: CSS;
|
|
12
12
|
as?: keyof JSX.IntrinsicElements;
|
|
13
|
+
children?: React.ReactNode;
|
|
13
14
|
}
|
|
14
15
|
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
15
16
|
export declare type DividerProps = Props & DividerVariantsProps & NativeAttrs;
|
|
@@ -18,5 +19,28 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
18
19
|
y: number;
|
|
19
20
|
height: number;
|
|
20
21
|
align: "left" | "right" | "start" | "center" | "end";
|
|
21
|
-
}> & Omit<
|
|
22
|
+
}> & Omit<Props & import("@stitches/react/types/styled-component").TransformProps<{
|
|
23
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "error" | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
xs: string;
|
|
26
|
+
sm: string;
|
|
27
|
+
md: string;
|
|
28
|
+
lg: string;
|
|
29
|
+
xl: string;
|
|
30
|
+
xsMin: string;
|
|
31
|
+
smMin: string;
|
|
32
|
+
mdMin: string;
|
|
33
|
+
lgMin: string;
|
|
34
|
+
xlMin: string;
|
|
35
|
+
xsMax: string;
|
|
36
|
+
smMax: string;
|
|
37
|
+
mdMax: string;
|
|
38
|
+
lgMax: string;
|
|
39
|
+
xlMax: string;
|
|
40
|
+
motion: string;
|
|
41
|
+
safari: string;
|
|
42
|
+
hover: string;
|
|
43
|
+
dark: string;
|
|
44
|
+
light: string;
|
|
45
|
+
}> & NativeAttrs, "height" | "x" | "y" | "align">>;
|
|
22
46
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SimpleColors, DropdownVariants } from "../utils/prop-types";
|
|
2
|
+
import type { CSS } from "../theme/stitches.config";
|
|
2
3
|
import React, { RefAttributes, PropsWithoutRef } from "react";
|
|
3
4
|
import { DOMProps, AriaLabelingProps } from "@react-types/shared";
|
|
4
5
|
import { AriaMenuProps } from "@react-types/menu";
|
|
5
|
-
import { CSS } from "../theme/stitches.config";
|
|
6
6
|
interface Props<T> extends AriaMenuProps<T>, DOMProps, AriaLabelingProps {
|
|
7
7
|
as?: keyof JSX.IntrinsicElements;
|
|
8
8
|
/**
|
|
@@ -20,6 +20,7 @@ interface Props<T> extends AriaMenuProps<T>, DOMProps, AriaLabelingProps {
|
|
|
20
20
|
* @default 'default'
|
|
21
21
|
*/
|
|
22
22
|
textColor?: SimpleColors;
|
|
23
|
+
containerCss?: CSS;
|
|
23
24
|
}
|
|
24
25
|
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props<object>>;
|
|
25
26
|
export declare type DropdownMenuProps<T = object> = Props<T> & NativeAttrs & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React, { RefAttributes, PropsWithoutRef } from "react";
|
|
2
|
-
import { CSS } from "../theme/stitches.config";
|
|
3
3
|
import { Wrap } from "../utils/prop-types";
|
|
4
4
|
import { GridItemProps } from "./grid-item";
|
|
5
5
|
interface Props {
|
|
@@ -7,6 +7,7 @@ interface Props {
|
|
|
7
7
|
wrap?: Wrap;
|
|
8
8
|
className?: string;
|
|
9
9
|
css?: CSS;
|
|
10
|
+
children?: React.ReactNode;
|
|
10
11
|
}
|
|
11
12
|
declare const defaultProps: {
|
|
12
13
|
gap: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React, { RefAttributes, PropsWithoutRef } from "react";
|
|
2
3
|
import { BreakpointsValue, Justify, Direction, AlignItems, AlignContent } from "../utils/prop-types";
|
|
3
|
-
import { CSS } from "../theme/stitches.config";
|
|
4
4
|
import { GridItemVariantProps } from "./grid.styles";
|
|
5
5
|
interface Props {
|
|
6
6
|
xs?: BreakpointsValue;
|
|
@@ -15,6 +15,7 @@ interface Props {
|
|
|
15
15
|
css?: CSS;
|
|
16
16
|
as?: keyof JSX.IntrinsicElements;
|
|
17
17
|
className?: string;
|
|
18
|
+
children?: React.ReactNode;
|
|
18
19
|
}
|
|
19
20
|
declare const defaultProps: {
|
|
20
21
|
xs: BreakpointsValue;
|
package/types/image/image.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropsWithoutRef, RefAttributes } from "react";
|
|
2
|
+
import type { CSS } from "../theme/stitches.config";
|
|
2
3
|
import React from "react";
|
|
3
4
|
import { ObjectFit } from "../utils/prop-types";
|
|
4
|
-
import { CSS } from "../theme/stitches.config";
|
|
5
5
|
import { ImageContainerVariantProps } from "./image.styles";
|
|
6
6
|
interface Props {
|
|
7
7
|
src: string;
|
|
@@ -5,6 +5,7 @@ interface PasswordProps extends Props {
|
|
|
5
5
|
hideToggle?: boolean;
|
|
6
6
|
visibleIcon?: React.ReactNode;
|
|
7
7
|
hiddenIcon?: React.ReactNode;
|
|
8
|
+
children?: React.ReactNode;
|
|
8
9
|
}
|
|
9
10
|
declare const passwordDefaultProps: {
|
|
10
11
|
hideToggle: boolean;
|
|
@@ -94,5 +95,5 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
94
95
|
initialValue: string;
|
|
95
96
|
} & NativeAttrs & {
|
|
96
97
|
css?: CSS | undefined;
|
|
97
|
-
} & React.RefAttributes<HTMLInputElement>, "clearable" | "rounded" | "contentClickable" | "contentLeftStyling" | "contentRightStyling" | "shadow" | "bordered" | "width" | "color" | "size" | "className" | "placeholder" | "status" | "borderWeight" | "animated" | "disabled" | "autoComplete" | "readOnly" | "required" | "
|
|
98
|
+
} & React.RefAttributes<HTMLInputElement>, "clearable" | "rounded" | "contentClickable" | "contentLeftStyling" | "contentRightStyling" | "shadow" | "bordered" | "width" | "color" | "size" | "className" | "placeholder" | "status" | "borderWeight" | "animated" | "disabled" | "autoComplete" | "readOnly" | "required" | "helperColor" | "underlined" | "fullWidth" | "initialValue" | "hideToggle" | "visibleIcon" | "hiddenIcon">>;
|
|
98
99
|
export default _default;
|
package/types/input/input.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React, { PropsWithoutRef, RefAttributes } from "react";
|
|
2
|
-
import { CSS } from "../theme/stitches.config";
|
|
3
|
-
import Textarea from "../textarea";
|
|
4
3
|
import { Props, FormElement, defaultProps } from "./input-props";
|
|
5
4
|
import InputPassword from "./input-password";
|
|
6
5
|
declare type NativeAttrs = Omit<React.InputHTMLAttributes<any>, keyof Props>;
|
|
@@ -8,7 +7,6 @@ export declare type InputProps = Props & typeof defaultProps & NativeAttrs & {
|
|
|
8
7
|
css?: CSS;
|
|
9
8
|
};
|
|
10
9
|
declare type InputComponent<T, P = {}> = React.ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>> & {
|
|
11
|
-
Textarea: typeof Textarea;
|
|
12
10
|
Password: typeof InputPassword;
|
|
13
11
|
};
|
|
14
12
|
declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { NormalSizes, NormalLoaders } from "../utils/prop-types";
|
|
3
|
-
import { CSS } from "../theme/stitches.config";
|
|
4
4
|
import { LoadingContainerVariantsProps } from "./loading.styles";
|
|
5
5
|
interface Props {
|
|
6
6
|
size?: NormalSizes;
|
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
8
8
|
type?: NormalLoaders;
|
|
9
9
|
loadingCss?: CSS;
|
|
10
10
|
as?: keyof JSX.IntrinsicElements;
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
}
|
|
12
13
|
declare const defaultProps: {
|
|
13
14
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -20,5 +21,34 @@ export declare type LoadingProps = Props & typeof defaultProps & NativeAttrs & L
|
|
|
20
21
|
declare const _default: React.ComponentType<Partial<{
|
|
21
22
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
22
23
|
type: "default" | "gradient" | "points" | "points-opacity" | "spinner";
|
|
23
|
-
}> & Omit<
|
|
24
|
+
}> & Omit<Props & {
|
|
25
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
26
|
+
type: "default" | "gradient" | "points" | "points-opacity" | "spinner";
|
|
27
|
+
} & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
|
|
28
|
+
color?: "default" | "primary" | "secondary" | "success" | "warning" | "error" | "white" | "currentColor" | undefined;
|
|
29
|
+
textColor?: "default" | "primary" | "secondary" | "success" | "warning" | "error" | "white" | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
xs: string;
|
|
32
|
+
sm: string;
|
|
33
|
+
md: string;
|
|
34
|
+
lg: string;
|
|
35
|
+
xl: string;
|
|
36
|
+
xsMin: string;
|
|
37
|
+
smMin: string;
|
|
38
|
+
mdMin: string;
|
|
39
|
+
lgMin: string;
|
|
40
|
+
xlMin: string;
|
|
41
|
+
xsMax: string;
|
|
42
|
+
smMax: string;
|
|
43
|
+
mdMax: string;
|
|
44
|
+
lgMax: string;
|
|
45
|
+
xlMax: string;
|
|
46
|
+
motion: string;
|
|
47
|
+
safari: string;
|
|
48
|
+
hover: string;
|
|
49
|
+
dark: string;
|
|
50
|
+
light: string;
|
|
51
|
+
}> & {
|
|
52
|
+
css?: CSS | undefined;
|
|
53
|
+
}, "size" | "type">>;
|
|
24
54
|
export default _default;
|
|
@@ -8,10 +8,11 @@ interface Props {
|
|
|
8
8
|
textColor?: SimpleColors;
|
|
9
9
|
className?: string;
|
|
10
10
|
as?: keyof JSX.IntrinsicElements;
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
}
|
|
12
13
|
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
13
14
|
export declare type SpinnerProps = Props & NativeAttrs & SpinnerVariantsProps & {
|
|
14
15
|
css?: CSS;
|
|
15
16
|
};
|
|
16
|
-
declare const Spinner: React.FC<
|
|
17
|
+
declare const Spinner: React.FC<SpinnerProps>;
|
|
17
18
|
export default Spinner;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { Justify } from "../utils/prop-types";
|
|
3
|
-
import { CSS } from "../theme/stitches.config";
|
|
4
4
|
import { ModalFooterVariantsProps } from "./modal.styles";
|
|
5
5
|
interface Props {
|
|
6
6
|
className?: string;
|
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
8
8
|
autoMargin?: boolean;
|
|
9
9
|
css?: CSS;
|
|
10
10
|
as?: keyof JSX.IntrinsicElements;
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
}
|
|
12
13
|
declare const defaultProps: {
|
|
13
14
|
className: string;
|
|
@@ -20,5 +21,33 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
20
21
|
className: string;
|
|
21
22
|
justify: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
22
23
|
autoMargin: boolean;
|
|
23
|
-
}> & Omit<
|
|
24
|
+
}> & Omit<Props & {
|
|
25
|
+
className: string;
|
|
26
|
+
justify: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
27
|
+
autoMargin: boolean;
|
|
28
|
+
} & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
|
|
29
|
+
noPadding?: boolean | "true" | undefined;
|
|
30
|
+
autoMargin?: boolean | "true" | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
xs: string;
|
|
33
|
+
sm: string;
|
|
34
|
+
md: string;
|
|
35
|
+
lg: string;
|
|
36
|
+
xl: string;
|
|
37
|
+
xsMin: string;
|
|
38
|
+
smMin: string;
|
|
39
|
+
mdMin: string;
|
|
40
|
+
lgMin: string;
|
|
41
|
+
xlMin: string;
|
|
42
|
+
xsMax: string;
|
|
43
|
+
smMax: string;
|
|
44
|
+
mdMax: string;
|
|
45
|
+
lgMax: string;
|
|
46
|
+
xlMax: string;
|
|
47
|
+
motion: string;
|
|
48
|
+
safari: string;
|
|
49
|
+
hover: string;
|
|
50
|
+
dark: string;
|
|
51
|
+
light: string;
|
|
52
|
+
}>, "justify" | "className" | "autoMargin">>;
|
|
24
53
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { Justify } from "../utils/prop-types";
|
|
3
|
-
import { CSS } from "../theme/stitches.config";
|
|
4
4
|
import { ModalHeaderVariantsProps } from "./modal.styles";
|
|
5
5
|
interface Props {
|
|
6
6
|
className?: string;
|
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
8
8
|
autoMargin?: boolean;
|
|
9
9
|
css?: CSS;
|
|
10
10
|
as?: keyof JSX.IntrinsicElements;
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
}
|
|
12
13
|
declare const defaultProps: {
|
|
13
14
|
className: string;
|
|
@@ -20,5 +21,33 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
20
21
|
className: string;
|
|
21
22
|
justify: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
22
23
|
autoMargin: boolean;
|
|
23
|
-
}> & Omit<
|
|
24
|
+
}> & Omit<Props & {
|
|
25
|
+
className: string;
|
|
26
|
+
justify: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
27
|
+
autoMargin: boolean;
|
|
28
|
+
} & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
|
|
29
|
+
noPadding?: boolean | "true" | undefined;
|
|
30
|
+
autoMargin?: boolean | "true" | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
xs: string;
|
|
33
|
+
sm: string;
|
|
34
|
+
md: string;
|
|
35
|
+
lg: string;
|
|
36
|
+
xl: string;
|
|
37
|
+
xsMin: string;
|
|
38
|
+
smMin: string;
|
|
39
|
+
mdMin: string;
|
|
40
|
+
lgMin: string;
|
|
41
|
+
xlMin: string;
|
|
42
|
+
xsMax: string;
|
|
43
|
+
smMax: string;
|
|
44
|
+
mdMax: string;
|
|
45
|
+
lgMax: string;
|
|
46
|
+
xlMax: string;
|
|
47
|
+
motion: string;
|
|
48
|
+
safari: string;
|
|
49
|
+
hover: string;
|
|
50
|
+
dark: string;
|
|
51
|
+
light: string;
|
|
52
|
+
}>, "justify" | "className" | "autoMargin">>;
|
|
24
53
|
export default _default;
|
|
@@ -11,6 +11,7 @@ interface Props {
|
|
|
11
11
|
as?: keyof JSX.IntrinsicElements;
|
|
12
12
|
className?: string;
|
|
13
13
|
onCloseButtonClick?: () => void;
|
|
14
|
+
children?: React.ReactNode;
|
|
14
15
|
}
|
|
15
16
|
declare type NativeAttrs = Omit<React.DialogHTMLAttributes<unknown>, keyof Props>;
|
|
16
17
|
export declare type ModalWrapperProps = Props & NativeAttrs & ModalVariantsProps & {
|
|
@@ -20,5 +21,5 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
20
21
|
className: string;
|
|
21
22
|
visible: boolean;
|
|
22
23
|
rebound: boolean;
|
|
23
|
-
}> & Omit<
|
|
24
|
+
}> & Omit<ModalWrapperProps, "visible" | "className" | "rebound">>;
|
|
24
25
|
export default _default;
|