@nextui-org/react 1.0.0-beta.10 → 1.0.0-beta.11
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/dropdown/use-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.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/pagination/pagination.js +1 -1
- package/cjs/popover/popover-content.js +1 -1
- package/cjs/popover/popover-trigger.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/dark-theme.js +1 -1
- package/cjs/theme/light-theme.js +1 -1
- package/cjs/theme/shared-css.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/dropdown/use-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.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/pagination/pagination.js +1 -1
- package/esm/popover/popover-content.js +1 -1
- package/esm/popover/popover-trigger.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/dark-theme.js +1 -1
- package/esm/theme/light-theme.js +1 -1
- package/esm/theme/shared-css.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 +31 -29
- package/types/avatar/avatar-group.styles.d.ts +4 -0
- package/types/avatar/avatar.d.ts +5 -1
- package/types/avatar/avatar.styles.d.ts +4 -0
- package/types/backdrop/backdrop.d.ts +3 -2
- package/types/backdrop/backdrop.styles.d.ts +7 -1
- package/types/badge/badge.styles.d.ts +6 -0
- package/types/button/button-group.d.ts +8 -1
- package/types/button/button-group.styles.d.ts +2 -0
- package/types/button/button-icon.d.ts +35 -2
- package/types/button/button.d.ts +1 -1
- package/types/button/button.styles.d.ts +4 -0
- package/types/button/utils.d.ts +3 -51
- package/types/card/card.d.ts +1 -1
- package/types/card/card.styles.d.ts +40 -0
- package/types/checkbox/checkbox.styles.d.ts +21 -1
- package/types/checkbox/use-checkbox-group.d.ts +2 -2
- package/types/checkbox/use-checkbox.d.ts +3 -0
- package/types/code/code.d.ts +25 -1
- package/types/code/code.styles.d.ts +4 -0
- package/types/col/col.d.ts +27 -2
- package/types/col/col.styles.d.ts +2 -0
- package/types/collapse/collapse-group.d.ts +2 -1
- package/types/collapse/collapse.d.ts +1 -0
- package/types/collapse/collapse.styles.d.ts +12 -0
- package/types/container/container.d.ts +2 -1
- package/types/container/container.styles.d.ts +2 -0
- package/types/divider/divider.d.ts +26 -2
- package/types/divider/divider.styles.d.ts +4 -0
- package/types/dropdown/dropdown-context.d.ts +58 -14
- package/types/dropdown/dropdown-menu.d.ts +2 -1
- package/types/dropdown/dropdown.styles.d.ts +22 -0
- package/types/dropdown/use-dropdown.d.ts +29 -7
- package/types/grid/grid-container.d.ts +2 -1
- package/types/grid/grid-item.d.ts +2 -1
- package/types/grid/grid.styles.d.ts +4 -0
- package/types/image/image.d.ts +1 -1
- package/types/image/image.skeleton.d.ts +1 -1
- package/types/image/image.styles.d.ts +6 -0
- package/types/input/input-password.d.ts +2 -1
- package/types/input/input.d.ts +1 -3
- package/types/input/input.styles.d.ts +22 -0
- package/types/link/link.styles.d.ts +6 -0
- package/types/loading/loading.d.ts +32 -2
- package/types/loading/loading.styles.d.ts +12 -0
- 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/modal/modal.styles.d.ts +12 -0
- package/types/navbar/navbar.styles.d.ts +277 -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/pagination/pagination.styles.d.ts +12 -0
- package/types/popover/popover-content.d.ts +1 -1
- package/types/popover/popover-context.d.ts +8 -6
- package/types/popover/popover-trigger.d.ts +1 -1
- package/types/popover/popover.styles.d.ts +27 -0
- package/types/popover/use-popover.d.ts +4 -3
- package/types/progress/progress.d.ts +1 -1
- package/types/progress/progress.styles.d.ts +4 -0
- package/types/radio/index.d.ts +2 -0
- package/types/radio/radio-context.d.ts +4 -4
- package/types/radio/radio.styles.d.ts +16 -0
- package/types/radio/use-radio-group.d.ts +2 -2
- package/types/radio/use-radio.d.ts +2 -1
- package/types/row/row.d.ts +26 -2
- package/types/row/row.styles.d.ts +2 -0
- package/types/snippet/snippet.d.ts +37 -1
- package/types/snippet/snippet.styles.d.ts +8 -0
- package/types/spacer/spacer.d.ts +1 -1
- package/types/spacer/spacer.styles.d.ts +2 -0
- package/types/switch/switch.d.ts +1 -0
- package/types/switch/switch.styles.d.ts +8 -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 +5 -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-sort-icon.d.ts +2 -0
- package/types/table/table.d.ts +1 -1
- package/types/table/table.styles.d.ts +48 -7
- package/types/text/child.d.ts +17 -1
- package/types/text/text.styles.d.ts +10 -0
- package/types/textarea/textarea.d.ts +1 -1
- package/types/theme/dark-theme.d.ts +2 -0
- package/types/theme/light-theme.d.ts +2 -0
- package/types/theme/shared-css.d.ts +20 -0
- package/types/theme/stitches.config.d.ts +20 -0
- 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/tooltip/tooltip.styles.d.ts +8 -0
- package/types/user/user.d.ts +1 -1
- package/types/user/user.styles.d.ts +8 -0
- package/types/utils/css-transition.d.ts +6 -20
- package/types/utils/drip.d.ts +2 -0
- package/types/utils/expand.d.ts +2 -1
- package/umd/nextui.js +27257 -12247
- package/umd/nextui.min.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextui-org/react",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "🚀 Beautiful and modern React UI library.",
|
|
6
6
|
"homepage": "https://nextui.org",
|
|
@@ -31,36 +31,38 @@
|
|
|
31
31
|
"sideEffects": false,
|
|
32
32
|
"scripts": {},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/runtime": "^7.
|
|
35
|
-
"@react-aria/button": "3.6.
|
|
36
|
-
"@react-aria/checkbox": "3.
|
|
37
|
-
"@react-aria/dialog": "3.
|
|
34
|
+
"@babel/runtime": "^7.20.1",
|
|
35
|
+
"@react-aria/button": "3.6.2",
|
|
36
|
+
"@react-aria/checkbox": "3.6.0",
|
|
37
|
+
"@react-aria/dialog": "3.4.0",
|
|
38
38
|
"@react-aria/focus": "3.7.0",
|
|
39
|
-
"@react-aria/i18n": "3.
|
|
40
|
-
"@react-aria/interactions": "3.
|
|
41
|
-
"@react-aria/label": "3.4.
|
|
42
|
-
"@react-aria/link": "3.3.
|
|
43
|
-
"@react-aria/menu": "3.6.
|
|
44
|
-
"@react-aria/overlays": "3.
|
|
45
|
-
"@react-aria/radio": "3.
|
|
39
|
+
"@react-aria/i18n": "3.6.1",
|
|
40
|
+
"@react-aria/interactions": "3.12.0",
|
|
41
|
+
"@react-aria/label": "3.4.2",
|
|
42
|
+
"@react-aria/link": "3.3.4",
|
|
43
|
+
"@react-aria/menu": "3.6.2",
|
|
44
|
+
"@react-aria/overlays": "3.11.0",
|
|
45
|
+
"@react-aria/radio": "3.4.0",
|
|
46
46
|
"@react-aria/ssr": "3.3.0",
|
|
47
|
-
"@react-aria/table": "3.
|
|
48
|
-
"@react-aria/utils": "3.
|
|
49
|
-
"@react-aria/visually-hidden": "3.
|
|
50
|
-
"@react-stately/checkbox": "3.
|
|
51
|
-
"@react-stately/
|
|
52
|
-
"@react-stately/
|
|
53
|
-
"@react-stately/
|
|
54
|
-
"@react-stately/
|
|
55
|
-
"@react-stately/
|
|
56
|
-
"@react-stately/
|
|
57
|
-
"@react-
|
|
58
|
-
"@react-
|
|
59
|
-
"@react-types/
|
|
60
|
-
"@react-types/
|
|
61
|
-
"@react-types/
|
|
62
|
-
"@react-types/
|
|
63
|
-
"@
|
|
47
|
+
"@react-aria/table": "3.5.0",
|
|
48
|
+
"@react-aria/utils": "3.14.0",
|
|
49
|
+
"@react-aria/visually-hidden": "3.5.0",
|
|
50
|
+
"@react-stately/checkbox": "3.3.0",
|
|
51
|
+
"@react-stately/collections": "3.4.4",
|
|
52
|
+
"@react-stately/data": "3.7.0",
|
|
53
|
+
"@react-stately/menu": "3.4.2",
|
|
54
|
+
"@react-stately/overlays": "3.4.2",
|
|
55
|
+
"@react-stately/radio": "3.6.0",
|
|
56
|
+
"@react-stately/table": "3.5.0",
|
|
57
|
+
"@react-stately/toggle": "3.4.2",
|
|
58
|
+
"@react-stately/tree": "3.3.4",
|
|
59
|
+
"@react-types/button": "^3.6.2",
|
|
60
|
+
"@react-types/checkbox": "3.4.0",
|
|
61
|
+
"@react-types/grid": "3.1.4",
|
|
62
|
+
"@react-types/menu": "3.7.2",
|
|
63
|
+
"@react-types/overlays": "3.6.4",
|
|
64
|
+
"@stitches/react": "1.2.8",
|
|
65
|
+
"@react-types/shared": "3.15.0"
|
|
64
66
|
},
|
|
65
67
|
"peerDependencies": {
|
|
66
68
|
"react": ">=16.8.0",
|
|
@@ -57,7 +57,9 @@ export declare const StyledAvatarGroupCount: import("@stitches/react/types/style
|
|
|
57
57
|
xl: string;
|
|
58
58
|
};
|
|
59
59
|
colors: {
|
|
60
|
+
textLight: string;
|
|
60
61
|
text: string;
|
|
62
|
+
linkLight: string;
|
|
61
63
|
link: string;
|
|
62
64
|
codeLight: string;
|
|
63
65
|
code: string;
|
|
@@ -1131,7 +1133,9 @@ export declare const StyledAvatarGroup: import("@stitches/react/types/styled-com
|
|
|
1131
1133
|
xl: string;
|
|
1132
1134
|
};
|
|
1133
1135
|
colors: {
|
|
1136
|
+
textLight: string;
|
|
1134
1137
|
text: string;
|
|
1138
|
+
linkLight: string;
|
|
1135
1139
|
link: string;
|
|
1136
1140
|
codeLight: string;
|
|
1137
1141
|
code: string;
|
package/types/avatar/avatar.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
+
import { ReactRef } from "../utils/refs";
|
|
3
4
|
import { AvatarVariantsProps } from "./avatar.styles";
|
|
4
5
|
import AvatarGroup from "./avatar-group";
|
|
5
6
|
interface Props {
|
|
@@ -8,6 +9,7 @@ interface Props {
|
|
|
8
9
|
icon?: React.ReactNode;
|
|
9
10
|
alt?: string;
|
|
10
11
|
className?: string;
|
|
12
|
+
imgRef?: ReactRef<HTMLImageElement>;
|
|
11
13
|
as?: keyof JSX.IntrinsicElements;
|
|
12
14
|
}
|
|
13
15
|
declare type NativeAttrs = Omit<Partial<React.ImgHTMLAttributes<unknown> & React.HTMLAttributes<unknown>>, keyof Props | "sizes">;
|
|
@@ -367,7 +369,9 @@ export declare const Avatar: React.ForwardRefExoticComponent<Props & import("@st
|
|
|
367
369
|
xl: string;
|
|
368
370
|
};
|
|
369
371
|
colors: {
|
|
372
|
+
textLight: string;
|
|
370
373
|
text: string;
|
|
374
|
+
linkLight: string;
|
|
371
375
|
link: string;
|
|
372
376
|
codeLight: string;
|
|
373
377
|
code: string;
|
|
@@ -352,7 +352,9 @@ export declare const StyledAvatar: import("@stitches/react/types/styled-componen
|
|
|
352
352
|
xl: string;
|
|
353
353
|
};
|
|
354
354
|
colors: {
|
|
355
|
+
textLight: string;
|
|
355
356
|
text: string;
|
|
357
|
+
linkLight: string;
|
|
356
358
|
link: string;
|
|
357
359
|
codeLight: string;
|
|
358
360
|
code: string;
|
|
@@ -1423,7 +1425,9 @@ export declare const StyledAvatar: import("@stitches/react/types/styled-componen
|
|
|
1423
1425
|
xl: string;
|
|
1424
1426
|
};
|
|
1425
1427
|
colors: {
|
|
1428
|
+
textLight: string;
|
|
1426
1429
|
text: string;
|
|
1430
|
+
linkLight: string;
|
|
1427
1431
|
link: string;
|
|
1428
1432
|
codeLight: string;
|
|
1429
1433
|
code: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CSS } from "../theme/stitches.config";
|
|
1
2
|
import React, { MouseEvent } from "react";
|
|
2
|
-
import { CSS } from "../theme/stitches.config";
|
|
3
3
|
import { BackdropVariantsProps } from "./backdrop.styles";
|
|
4
4
|
interface Props {
|
|
5
5
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
@@ -13,6 +13,7 @@ interface Props {
|
|
|
13
13
|
css?: CSS;
|
|
14
14
|
className?: string;
|
|
15
15
|
as?: keyof JSX.IntrinsicElements;
|
|
16
|
+
children?: React.ReactNode;
|
|
16
17
|
}
|
|
17
18
|
declare const defaultProps: {
|
|
18
19
|
onClick: () => void;
|
|
@@ -33,5 +34,5 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
33
34
|
preventDefault: boolean;
|
|
34
35
|
opacity: number;
|
|
35
36
|
className: string;
|
|
36
|
-
}> & Omit<
|
|
37
|
+
}> & Omit<BackdropProps, "blur" | "opacity" | "visible" | "className" | "preventDefault" | "onClick" | "animated">>;
|
|
37
38
|
export default _default;
|
|
@@ -59,7 +59,9 @@ export declare const StyledBackdropContent: import("@stitches/react/types/styled
|
|
|
59
59
|
xl: string;
|
|
60
60
|
};
|
|
61
61
|
colors: {
|
|
62
|
+
textLight: string;
|
|
62
63
|
text: string;
|
|
64
|
+
linkLight: string;
|
|
63
65
|
link: string;
|
|
64
66
|
codeLight: string;
|
|
65
67
|
code: string;
|
|
@@ -1075,7 +1077,7 @@ export declare const StyledBackdropContent: import("@stitches/react/types/styled
|
|
|
1075
1077
|
}>>;
|
|
1076
1078
|
export declare const StyledBackdropLayer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
1077
1079
|
blur?: boolean | "true" | "false" | undefined;
|
|
1078
|
-
animated?: boolean | "false" | undefined;
|
|
1080
|
+
animated?: boolean | "true" | "false" | undefined;
|
|
1079
1081
|
}, {
|
|
1080
1082
|
xs: string;
|
|
1081
1083
|
sm: string;
|
|
@@ -1134,7 +1136,9 @@ export declare const StyledBackdropLayer: import("@stitches/react/types/styled-c
|
|
|
1134
1136
|
xl: string;
|
|
1135
1137
|
};
|
|
1136
1138
|
colors: {
|
|
1139
|
+
textLight: string;
|
|
1137
1140
|
text: string;
|
|
1141
|
+
linkLight: string;
|
|
1138
1142
|
link: string;
|
|
1139
1143
|
codeLight: string;
|
|
1140
1144
|
code: string;
|
|
@@ -2208,7 +2212,9 @@ export declare const StyledBackdrop: import("@stitches/react/types/styled-compon
|
|
|
2208
2212
|
xl: string;
|
|
2209
2213
|
};
|
|
2210
2214
|
colors: {
|
|
2215
|
+
textLight: string;
|
|
2211
2216
|
text: string;
|
|
2217
|
+
linkLight: string;
|
|
2212
2218
|
link: string;
|
|
2213
2219
|
codeLight: string;
|
|
2214
2220
|
code: string;
|
|
@@ -57,7 +57,9 @@ export declare const StyledBadgeRoot: import("@stitches/react/types/styled-compo
|
|
|
57
57
|
xl: string;
|
|
58
58
|
};
|
|
59
59
|
colors: {
|
|
60
|
+
textLight: string;
|
|
60
61
|
text: string;
|
|
62
|
+
linkLight: string;
|
|
61
63
|
link: string;
|
|
62
64
|
codeLight: string;
|
|
63
65
|
code: string;
|
|
@@ -1145,7 +1147,9 @@ export declare const StyledBadge: import("@stitches/react/types/styled-component
|
|
|
1145
1147
|
xl: string;
|
|
1146
1148
|
};
|
|
1147
1149
|
colors: {
|
|
1150
|
+
textLight: string;
|
|
1148
1151
|
text: string;
|
|
1152
|
+
linkLight: string;
|
|
1149
1153
|
link: string;
|
|
1150
1154
|
codeLight: string;
|
|
1151
1155
|
code: string;
|
|
@@ -2220,7 +2224,9 @@ export declare const StyledBadgePoints: import("@stitches/react/types/styled-com
|
|
|
2220
2224
|
xl: string;
|
|
2221
2225
|
};
|
|
2222
2226
|
colors: {
|
|
2227
|
+
textLight: string;
|
|
2223
2228
|
text: string;
|
|
2229
|
+
linkLight: string;
|
|
2224
2230
|
link: string;
|
|
2225
2231
|
codeLight: string;
|
|
2226
2232
|
code: string;
|
|
@@ -16,6 +16,7 @@ interface Props {
|
|
|
16
16
|
borderWeight?: NormalWeights;
|
|
17
17
|
size?: NormalSizes;
|
|
18
18
|
color?: NormalColors;
|
|
19
|
+
children?: React.ReactNode;
|
|
19
20
|
}
|
|
20
21
|
declare const defaultProps: {
|
|
21
22
|
borderWeight: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
@@ -30,5 +31,11 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
30
31
|
borderWeight: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
31
32
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
32
33
|
color: "default" | "primary" | "secondary" | "success" | "warning" | "error" | "gradient";
|
|
33
|
-
}> & Omit<
|
|
34
|
+
}> & Omit<Props & ButtonGroupVariantsProps & NativeAttrs & {
|
|
35
|
+
borderWeight: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
36
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
37
|
+
color: "default" | "primary" | "secondary" | "success" | "warning" | "error" | "gradient";
|
|
38
|
+
} & {
|
|
39
|
+
css?: CSS | undefined;
|
|
40
|
+
}, "color" | "size" | "borderWeight">>;
|
|
34
41
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { VariantProps, CSS } from "../theme/stitches.config";
|
|
1
2
|
import React from "react";
|
|
2
|
-
import { VariantProps, CSS } from "../theme/stitches.config";
|
|
3
3
|
interface Props {
|
|
4
4
|
isRight?: boolean;
|
|
5
5
|
isSingle?: boolean;
|
|
6
6
|
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
7
8
|
}
|
|
8
9
|
declare const defaultProps: {
|
|
9
10
|
className: string;
|
|
@@ -71,7 +72,9 @@ export declare const StyledButtonIcon: import("@stitches/react/types/styled-comp
|
|
|
71
72
|
xl: string;
|
|
72
73
|
};
|
|
73
74
|
colors: {
|
|
75
|
+
textLight: string;
|
|
74
76
|
text: string;
|
|
77
|
+
linkLight: string;
|
|
75
78
|
link: string;
|
|
76
79
|
codeLight: string;
|
|
77
80
|
code: string;
|
|
@@ -1091,5 +1094,35 @@ export declare type ButtonIconProps = Props & typeof defaultProps & ButtonIconVa
|
|
|
1091
1094
|
};
|
|
1092
1095
|
declare const _default: React.ComponentType<Partial<{
|
|
1093
1096
|
className: string;
|
|
1094
|
-
}> & Omit<
|
|
1097
|
+
}> & Omit<Props & {
|
|
1098
|
+
className: string;
|
|
1099
|
+
} & import("@stitches/react/types/styled-component").TransformProps<{
|
|
1100
|
+
isAuto?: boolean | "true" | undefined;
|
|
1101
|
+
isRight?: boolean | "true" | undefined;
|
|
1102
|
+
isSingle?: boolean | "true" | undefined;
|
|
1103
|
+
isGradientButtonBorder?: boolean | "true" | undefined;
|
|
1104
|
+
}, {
|
|
1105
|
+
xs: string;
|
|
1106
|
+
sm: string;
|
|
1107
|
+
md: string;
|
|
1108
|
+
lg: string;
|
|
1109
|
+
xl: string;
|
|
1110
|
+
xsMin: string;
|
|
1111
|
+
smMin: string;
|
|
1112
|
+
mdMin: string;
|
|
1113
|
+
lgMin: string;
|
|
1114
|
+
xlMin: string;
|
|
1115
|
+
xsMax: string;
|
|
1116
|
+
smMax: string;
|
|
1117
|
+
mdMax: string;
|
|
1118
|
+
lgMax: string;
|
|
1119
|
+
xlMax: string;
|
|
1120
|
+
motion: string;
|
|
1121
|
+
safari: string;
|
|
1122
|
+
hover: string;
|
|
1123
|
+
dark: string;
|
|
1124
|
+
light: string;
|
|
1125
|
+
}> & {
|
|
1126
|
+
css?: CSS | undefined;
|
|
1127
|
+
}, "className">>;
|
|
1095
1128
|
export default _default;
|
package/types/button/button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AriaButtonProps } from "@react-types/button";
|
|
2
|
+
import type { CSS } from "../theme/stitches.config";
|
|
2
3
|
import React, { PropsWithoutRef, RefAttributes } from "react";
|
|
3
|
-
import { CSS } from "../theme/stitches.config";
|
|
4
4
|
import { NormalColors } from "../utils/prop-types";
|
|
5
5
|
import { HTMLNextUIProps } from "../utils/system";
|
|
6
6
|
import ButtonGroup from "./button-group";
|
|
@@ -1383,7 +1383,9 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
1383
1383
|
xl: string;
|
|
1384
1384
|
};
|
|
1385
1385
|
colors: {
|
|
1386
|
+
textLight: string;
|
|
1386
1387
|
text: string;
|
|
1388
|
+
linkLight: string;
|
|
1387
1389
|
link: string;
|
|
1388
1390
|
codeLight: string;
|
|
1389
1391
|
code: string;
|
|
@@ -2454,7 +2456,9 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
2454
2456
|
xl: string;
|
|
2455
2457
|
};
|
|
2456
2458
|
colors: {
|
|
2459
|
+
textLight: string;
|
|
2457
2460
|
text: string;
|
|
2461
|
+
linkLight: string;
|
|
2458
2462
|
link: string;
|
|
2459
2463
|
codeLight: string;
|
|
2460
2464
|
code: string;
|
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"> {
|
|
@@ -57,7 +57,9 @@ export declare const StyledCardBody: import("@stitches/react/types/styled-compon
|
|
|
57
57
|
xl: string;
|
|
58
58
|
};
|
|
59
59
|
colors: {
|
|
60
|
+
textLight: string;
|
|
60
61
|
text: string;
|
|
62
|
+
linkLight: string;
|
|
61
63
|
link: string;
|
|
62
64
|
codeLight: string;
|
|
63
65
|
code: string;
|
|
@@ -1079,6 +1081,7 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1079
1081
|
transform: string;
|
|
1080
1082
|
dropShadow?: undefined;
|
|
1081
1083
|
"@safari"?: undefined;
|
|
1084
|
+
"@-moz-document url-prefix()"?: undefined;
|
|
1082
1085
|
};
|
|
1083
1086
|
isHovered?: undefined;
|
|
1084
1087
|
variant?: undefined;
|
|
@@ -1089,6 +1092,7 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1089
1092
|
transform: string;
|
|
1090
1093
|
dropShadow?: undefined;
|
|
1091
1094
|
"@safari"?: undefined;
|
|
1095
|
+
"@-moz-document url-prefix()"?: undefined;
|
|
1092
1096
|
};
|
|
1093
1097
|
isPressed?: undefined;
|
|
1094
1098
|
variant?: undefined;
|
|
@@ -1101,6 +1105,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1101
1105
|
boxShadow: string;
|
|
1102
1106
|
dropShadow: string;
|
|
1103
1107
|
};
|
|
1108
|
+
"@-moz-document url-prefix()": {
|
|
1109
|
+
boxShadow: string;
|
|
1110
|
+
dropShadow: string;
|
|
1111
|
+
};
|
|
1104
1112
|
transform?: undefined;
|
|
1105
1113
|
};
|
|
1106
1114
|
isPressed?: undefined;
|
|
@@ -1152,6 +1160,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1152
1160
|
boxShadow: string;
|
|
1153
1161
|
dropShadow: string;
|
|
1154
1162
|
};
|
|
1163
|
+
"@-moz-document url-prefix()": {
|
|
1164
|
+
boxShadow: string;
|
|
1165
|
+
dropShadow: string;
|
|
1166
|
+
};
|
|
1155
1167
|
};
|
|
1156
1168
|
bordered: {
|
|
1157
1169
|
borderStyle: string;
|
|
@@ -1200,6 +1212,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1200
1212
|
boxShadow: string;
|
|
1201
1213
|
dropShadow: string;
|
|
1202
1214
|
};
|
|
1215
|
+
"@-moz-document url-prefix()": {
|
|
1216
|
+
boxShadow: string;
|
|
1217
|
+
dropShadow: string;
|
|
1218
|
+
};
|
|
1203
1219
|
};
|
|
1204
1220
|
};
|
|
1205
1221
|
transition?: undefined;
|
|
@@ -1238,6 +1254,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1238
1254
|
boxShadow: string;
|
|
1239
1255
|
dropShadow: string;
|
|
1240
1256
|
};
|
|
1257
|
+
"@-moz-document url-prefix()": {
|
|
1258
|
+
boxShadow: string;
|
|
1259
|
+
dropShadow: string;
|
|
1260
|
+
};
|
|
1241
1261
|
};
|
|
1242
1262
|
bordered: {
|
|
1243
1263
|
borderStyle: string;
|
|
@@ -1286,6 +1306,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1286
1306
|
boxShadow: string;
|
|
1287
1307
|
dropShadow: string;
|
|
1288
1308
|
};
|
|
1309
|
+
"@-moz-document url-prefix()": {
|
|
1310
|
+
boxShadow: string;
|
|
1311
|
+
dropShadow: string;
|
|
1312
|
+
};
|
|
1289
1313
|
};
|
|
1290
1314
|
};
|
|
1291
1315
|
};
|
|
@@ -1296,6 +1320,7 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1296
1320
|
transform: string;
|
|
1297
1321
|
dropShadow?: undefined;
|
|
1298
1322
|
"@safari"?: undefined;
|
|
1323
|
+
"@-moz-document url-prefix()"?: undefined;
|
|
1299
1324
|
};
|
|
1300
1325
|
isHovered?: undefined;
|
|
1301
1326
|
variant?: undefined;
|
|
@@ -1306,6 +1331,7 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1306
1331
|
transform: string;
|
|
1307
1332
|
dropShadow?: undefined;
|
|
1308
1333
|
"@safari"?: undefined;
|
|
1334
|
+
"@-moz-document url-prefix()"?: undefined;
|
|
1309
1335
|
};
|
|
1310
1336
|
isPressed?: undefined;
|
|
1311
1337
|
variant?: undefined;
|
|
@@ -1318,6 +1344,10 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1318
1344
|
boxShadow: string;
|
|
1319
1345
|
dropShadow: string;
|
|
1320
1346
|
};
|
|
1347
|
+
"@-moz-document url-prefix()": {
|
|
1348
|
+
boxShadow: string;
|
|
1349
|
+
dropShadow: string;
|
|
1350
|
+
};
|
|
1321
1351
|
transform?: undefined;
|
|
1322
1352
|
};
|
|
1323
1353
|
isPressed?: undefined;
|
|
@@ -1381,7 +1411,9 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
1381
1411
|
xl: string;
|
|
1382
1412
|
};
|
|
1383
1413
|
colors: {
|
|
1414
|
+
textLight: string;
|
|
1384
1415
|
text: string;
|
|
1416
|
+
linkLight: string;
|
|
1385
1417
|
link: string;
|
|
1386
1418
|
codeLight: string;
|
|
1387
1419
|
code: string;
|
|
@@ -2454,7 +2486,9 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
2454
2486
|
xl: string;
|
|
2455
2487
|
};
|
|
2456
2488
|
colors: {
|
|
2489
|
+
textLight: string;
|
|
2457
2490
|
text: string;
|
|
2491
|
+
linkLight: string;
|
|
2458
2492
|
link: string;
|
|
2459
2493
|
codeLight: string;
|
|
2460
2494
|
code: string;
|
|
@@ -3525,7 +3559,9 @@ export declare const StyledCard: import("@stitches/react/types/styled-component"
|
|
|
3525
3559
|
xl: string;
|
|
3526
3560
|
};
|
|
3527
3561
|
colors: {
|
|
3562
|
+
textLight: string;
|
|
3528
3563
|
text: string;
|
|
3564
|
+
linkLight: string;
|
|
3529
3565
|
link: string;
|
|
3530
3566
|
codeLight: string;
|
|
3531
3567
|
code: string;
|
|
@@ -4597,7 +4633,9 @@ export declare const StyledCardHeader: import("@stitches/react/types/styled-comp
|
|
|
4597
4633
|
xl: string;
|
|
4598
4634
|
};
|
|
4599
4635
|
colors: {
|
|
4636
|
+
textLight: string;
|
|
4600
4637
|
text: string;
|
|
4638
|
+
linkLight: string;
|
|
4601
4639
|
link: string;
|
|
4602
4640
|
codeLight: string;
|
|
4603
4641
|
code: string;
|
|
@@ -5671,7 +5709,9 @@ export declare const StyledCardFooter: import("@stitches/react/types/styled-comp
|
|
|
5671
5709
|
xl: string;
|
|
5672
5710
|
};
|
|
5673
5711
|
colors: {
|
|
5712
|
+
textLight: string;
|
|
5674
5713
|
text: string;
|
|
5714
|
+
linkLight: string;
|
|
5675
5715
|
link: string;
|
|
5676
5716
|
codeLight: string;
|
|
5677
5717
|
code: string;
|