@nextui-org/react 1.0.2-beta.4 → 1.0.2-beta.5-dbg3
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.styles.js +1 -1
- package/cjs/checkbox/checkbox.js +1 -1
- package/cjs/checkbox/checkbox.styles.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/pagination/pagination-highlight.js +1 -1
- package/cjs/pagination/pagination.js +1 -1
- package/cjs/pagination/pagination.styles.js +1 -1
- package/cjs/spacer/spacer.js +1 -1
- package/cjs/table/base/index.js +1 -0
- package/cjs/table/base/table-body.js +1 -0
- package/cjs/table/base/table-cell.js +1 -0
- package/cjs/table/base/table-column.js +1 -0
- package/cjs/table/base/table-header.js +1 -0
- package/cjs/table/base/table-row.js +1 -0
- package/cjs/table/index.js +1 -0
- package/cjs/table/table-body.js +1 -0
- package/cjs/table/table-cell.js +1 -0
- package/cjs/table/table-checkbox-cell.js +1 -0
- package/cjs/table/table-column-header.js +1 -0
- package/cjs/table/table-context.js +1 -0
- package/cjs/table/table-footer.js +1 -0
- package/cjs/table/table-header-row.js +1 -0
- package/cjs/table/table-pagination.js +1 -0
- package/cjs/table/table-row-group.js +1 -0
- package/cjs/table/table-row.js +1 -0
- package/cjs/table/table-select-all-checkbox.js +1 -0
- package/cjs/table/table-sort-icon.js +1 -0
- package/cjs/table/table.js +1 -0
- package/cjs/table/table.styles.js +1 -0
- package/cjs/table/utils.js +1 -0
- package/cjs/theme/common.js +1 -1
- package/cjs/theme/stitches.config.js +1 -1
- package/cjs/theme/utils.js +1 -1
- package/cjs/tooltip/tooltip.js +1 -1
- package/cjs/tooltip/tooltip.styles.js +1 -1
- package/cjs/use-keyboard/codes.js +1 -1
- package/cjs/use-keyboard/helper.js +1 -1
- package/cjs/use-keyboard/use-keyboard.js +1 -1
- package/cjs/use-pagination/index.js +1 -1
- package/cjs/user/index.js +1 -1
- package/cjs/user/user.js +1 -1
- package/cjs/user/user.styles.js +1 -1
- package/cjs/utils/collections.js +1 -1
- package/cjs/utils/icons.js +1 -1
- package/cjs/utils/object.js +1 -1
- package/cjs/utils/prop-types.js +1 -1
- package/esm/avatar/avatar.styles.js +1 -1
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/checkbox/checkbox.styles.js +1 -1
- package/esm/index.js +1 -1
- package/esm/pagination/pagination-highlight.js +1 -1
- package/esm/pagination/pagination.js +1 -1
- package/esm/pagination/pagination.styles.js +1 -1
- package/esm/spacer/spacer.js +1 -1
- package/esm/table/base/index.js +1 -0
- package/esm/table/base/table-body.js +1 -0
- package/esm/table/base/table-cell.js +1 -0
- package/esm/table/base/table-column.js +1 -0
- package/esm/table/base/table-header.js +1 -0
- package/esm/table/base/table-row.js +1 -0
- package/esm/table/index.js +1 -0
- package/esm/table/table-body.js +1 -0
- package/esm/table/table-cell.js +1 -0
- package/esm/table/table-checkbox-cell.js +1 -0
- package/esm/table/table-column-header.js +1 -0
- package/esm/table/table-context.js +1 -0
- package/esm/table/table-footer.js +1 -0
- package/esm/table/table-header-row.js +1 -0
- package/esm/table/table-pagination.js +1 -0
- package/esm/table/table-row-group.js +1 -0
- package/esm/table/table-row.js +1 -0
- package/esm/table/table-select-all-checkbox.js +1 -0
- package/esm/table/table-sort-icon.js +1 -0
- package/esm/table/table.js +1 -0
- package/esm/table/table.styles.js +1 -0
- package/esm/table/utils.js +1 -0
- package/esm/theme/common.js +1 -1
- package/esm/theme/stitches.config.js +1 -1
- package/esm/theme/utils.js +1 -1
- package/esm/tooltip/tooltip.js +1 -1
- package/esm/tooltip/tooltip.styles.js +1 -1
- package/esm/use-keyboard/codes.js +1 -1
- package/esm/use-keyboard/helper.js +1 -1
- package/esm/use-keyboard/use-keyboard.js +1 -1
- package/esm/use-pagination/index.js +1 -1
- package/esm/user/index.js +1 -1
- package/esm/user/user.js +1 -1
- package/esm/user/user.styles.js +1 -1
- package/esm/utils/collections.js +1 -1
- package/esm/utils/icons.js +1 -1
- package/esm/utils/object.js +1 -1
- package/esm/utils/prop-types.js +1 -1
- package/package.json +15 -5
- package/table/package.json +6 -0
- package/types/backdrop/backdrop.d.ts +1 -1
- package/types/backdrop/backdrop.styles.d.ts +1 -1
- package/types/button/button-group.styles.d.ts +1 -1
- package/types/button/button.styles.d.ts +2 -1
- package/types/card/card.styles.d.ts +3 -3
- package/types/checkbox/checkbox.d.ts +3 -3
- package/types/checkbox/checkbox.styles.d.ts +995 -6
- package/types/checkbox/index.d.ts +1 -1
- package/types/collapse/collapse.styles.d.ts +2 -2
- package/types/image/image.styles.d.ts +1 -1
- package/types/index.d.ts +4 -0
- package/types/input/input-password.d.ts +1 -1
- package/types/input/input.styles.d.ts +5 -5
- package/types/modal/modal.styles.d.ts +1 -1
- package/types/pagination/pagination-highlight.d.ts +2 -1
- package/types/pagination/pagination.styles.d.ts +5 -5
- package/types/progress/progress.d.ts +1 -1
- package/types/radio/radio.styles.d.ts +3 -3
- package/types/snippet/snippet.styles.d.ts +1 -1
- package/types/spacer/spacer.d.ts +1 -1
- package/types/spacer/spacer.styles.d.ts +1 -1
- package/types/switch/switch.d.ts +1 -1
- package/types/switch/switch.styles.d.ts +1 -1
- package/types/table/base/index.d.ts +5 -0
- package/types/table/base/table-body.d.ts +8 -0
- package/types/table/base/table-cell.d.ts +8 -0
- package/types/table/base/table-column.d.ts +8 -0
- package/types/table/base/table-header.d.ts +4 -0
- package/types/table/base/table-row.d.ts +8 -0
- package/types/table/index.d.ts +12 -0
- package/types/table/table-body.d.ts +20 -0
- package/types/table/table-cell-old.d.ts +22 -0
- package/types/table/table-cell.d.ts +20 -0
- package/types/table/table-checkbox-cell.d.ts +23 -0
- package/types/table/table-column-header.d.ts +1018 -0
- package/types/table/table-column.d.ts +17 -0
- package/types/table/table-context.d.ts +29 -0
- package/types/table/table-footer.d.ts +31 -0
- package/types/table/table-header-row.d.ts +19 -0
- package/types/table/table-old.d.ts +49 -0
- package/types/table/table-pagination.d.ts +16 -0
- package/types/table/table-row-group.d.ts +14 -0
- package/types/table/table-row.d.ts +20 -0
- package/types/table/table-select-all-checkbox.d.ts +20 -0
- package/types/table/table-sort-icon.d.ts +944 -0
- package/types/table/table-types.d.ts +30 -0
- package/types/table/table.d.ts +28 -0
- package/types/table/table.styles.d.ts +15098 -0
- package/types/table/utils.d.ts +2 -0
- package/types/theme/ssr-provider.d.ts +7 -0
- package/types/theme/stitches.config.d.ts +2 -1
- package/types/tooltip/tooltip.d.ts +1 -1
- package/types/tooltip/tooltip.styles.d.ts +2 -2
- package/types/use-keyboard/codes.d.ts +84 -84
- package/types/user/index.d.ts +1 -2
- package/types/user/user-link.d.ts +2 -19
- package/types/user/user.d.ts +2 -2
- package/types/user/user.styles.d.ts +1 -7
- package/types/utils/collections.d.ts +2 -1
- package/types/utils/object.d.ts +4 -0
- package/types/utils/prop-types.d.ts +7 -0
- package/umd/nextui.js +30064 -13783
- package/umd/nextui.min.js +1 -1
- package/umd/nextui.min.js.LICENSE.txt +15 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Checkbox from './checkbox';
|
|
2
|
-
export type { CheckboxProps
|
|
2
|
+
export type { CheckboxProps } from './checkbox';
|
|
3
3
|
export type { CheckboxGroupProps } from './checkbox-group';
|
|
4
4
|
export { StyledCheckboxLabel, StyledCheckboxContainer, StyledIconCheckFirstLine, StyledIconCheckSecondLine, StyledIconCheck, StyledCheckboxMask, StyledCheckboxText, StyledCheckboxInput, StyledCheckboxGroup } from './checkbox.styles';
|
|
5
5
|
export type { CheckboxVariantsProps, CheckboxGroupVariantsProps, CheckboxTextVariantsProps, CheckboxMaskVariantsProps, CheckboxIconCheckVariantsProps, CheckboxIconCheckFirstLineVariantsProps, CheckboxIconCheckSecondLineVariantsProps, CheckboxLabelVariantsProps, CheckboxContainerVariantsProps } from './checkbox.styles';
|
|
@@ -4,8 +4,8 @@ export declare const StyledCollapse: import("@stitches/react/types/styled-compon
|
|
|
4
4
|
borderWeight?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
5
5
|
divider?: boolean | "true" | undefined;
|
|
6
6
|
bordered?: boolean | "true" | undefined;
|
|
7
|
-
animated?: boolean | "
|
|
8
|
-
visible?: boolean | "
|
|
7
|
+
animated?: boolean | "false" | "true" | undefined;
|
|
8
|
+
visible?: boolean | "false" | "true" | undefined;
|
|
9
9
|
isDark?: boolean | "true" | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
xs: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '../theme/stitches.config';
|
|
2
2
|
export declare const StyledImageContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
3
|
-
ready?: boolean | "
|
|
3
|
+
ready?: boolean | "false" | "true" | undefined;
|
|
4
4
|
}, {
|
|
5
5
|
xs: string;
|
|
6
6
|
sm: string;
|
package/types/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export type { PaginationParams } from './use-pagination';
|
|
|
18
18
|
export type { UseKeyboardHandler, KeyboardOptions, KeyboardResult, UseKeyboard } from './use-keyboard';
|
|
19
19
|
export { KeyMod, KeyCode } from './use-keyboard/codes';
|
|
20
20
|
export { default as CssBaseline } from './css-baseline';
|
|
21
|
+
export { useAsyncList } from '@react-stately/data';
|
|
22
|
+
export { useCollator } from '@react-aria/i18n';
|
|
21
23
|
export { default as NextUIProvider } from './theme/theme-provider';
|
|
22
24
|
export { changeTheme, getDocumentTheme, getTokenValue } from './theme/utils';
|
|
23
25
|
export type { VariantProps, CSS } from './theme/stitches.config';
|
|
@@ -77,3 +79,5 @@ export * from './tooltip';
|
|
|
77
79
|
export { default as Input } from './input';
|
|
78
80
|
export * from './input';
|
|
79
81
|
export { default as Textarea } from './textarea';
|
|
82
|
+
export { default as Table } from './table';
|
|
83
|
+
export * from './table';
|
|
@@ -94,5 +94,5 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
94
94
|
initialValue: string;
|
|
95
95
|
} & NativeAttrs & {
|
|
96
96
|
css?: CSS | undefined;
|
|
97
|
-
} & React.RefAttributes<HTMLInputElement>, "clearable" | "rounded" | "contentClickable" | "contentLeftStyling" | "contentRightStyling" | "width" | "color" | "size" | "className" | "borderWeight" | "bordered" | "placeholder" | "status" | "
|
|
97
|
+
} & React.RefAttributes<HTMLInputElement>, "clearable" | "rounded" | "contentClickable" | "contentLeftStyling" | "contentRightStyling" | "width" | "color" | "size" | "animated" | "className" | "borderWeight" | "bordered" | "placeholder" | "status" | "disabled" | "autoComplete" | "readOnly" | "required" | "shadow" | "initialValue" | "fullWidth" | "helperColor" | "underlined" | "hideToggle" | "visibleIcon" | "hiddenIcon">>;
|
|
98
98
|
export default _default;
|
|
@@ -943,7 +943,7 @@ export declare const StyledInputContainer: import("@stitches/react/types/styled-
|
|
|
943
943
|
focused?: boolean | "true" | undefined;
|
|
944
944
|
isReadOnly?: boolean | "false" | undefined;
|
|
945
945
|
underlined?: boolean | "true" | undefined;
|
|
946
|
-
animated?: boolean | "
|
|
946
|
+
animated?: boolean | "false" | "true" | undefined;
|
|
947
947
|
}, {
|
|
948
948
|
xs: string;
|
|
949
949
|
sm: string;
|
|
@@ -2820,9 +2820,9 @@ export declare const StyledInputWrapper: import("@stitches/react/types/styled-co
|
|
|
2820
2820
|
bordered?: boolean | "true" | undefined;
|
|
2821
2821
|
shadow?: boolean | "true" | undefined;
|
|
2822
2822
|
disabled?: boolean | "true" | undefined;
|
|
2823
|
-
underlined?: boolean | "
|
|
2823
|
+
underlined?: boolean | "false" | "true" | undefined;
|
|
2824
2824
|
animated?: boolean | "false" | undefined;
|
|
2825
|
-
isTextarea?: boolean | "
|
|
2825
|
+
isTextarea?: boolean | "false" | "true" | undefined;
|
|
2826
2826
|
}, {
|
|
2827
2827
|
xs: string;
|
|
2828
2828
|
sm: string;
|
|
@@ -3755,7 +3755,7 @@ export declare const StyledInputWrapper: import("@stitches/react/types/styled-co
|
|
|
3755
3755
|
};
|
|
3756
3756
|
}>>;
|
|
3757
3757
|
export declare const StyledHelperTextContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
3758
|
-
animated?: boolean | "
|
|
3758
|
+
animated?: boolean | "false" | "true" | undefined;
|
|
3759
3759
|
withValue?: boolean | "true" | undefined;
|
|
3760
3760
|
}, {
|
|
3761
3761
|
xs: string;
|
|
@@ -7492,7 +7492,7 @@ export declare const StyledInputBlockLabel: import("@stitches/react/types/styled
|
|
|
7492
7492
|
};
|
|
7493
7493
|
}>>;
|
|
7494
7494
|
export declare const StyledInputLabel: import("@stitches/react/types/styled-component").StyledComponent<"span", {
|
|
7495
|
-
isRight?: boolean | "
|
|
7495
|
+
isRight?: boolean | "false" | "true" | undefined;
|
|
7496
7496
|
isDark?: boolean | "true" | undefined;
|
|
7497
7497
|
isDefaultStatus?: boolean | "true" | undefined;
|
|
7498
7498
|
underlined?: boolean | "true" | undefined;
|
|
@@ -4666,7 +4666,7 @@ export declare const StyledModalFooter: import("@stitches/react/types/styled-com
|
|
|
4666
4666
|
};
|
|
4667
4667
|
}>>;
|
|
4668
4668
|
export declare const StyledModal: import("@stitches/react/types/styled-component").StyledComponent<"section", {
|
|
4669
|
-
fullScreen?: boolean | "
|
|
4669
|
+
fullScreen?: boolean | "false" | "true" | undefined;
|
|
4670
4670
|
scroll?: boolean | "true" | undefined;
|
|
4671
4671
|
closeButton?: boolean | "true" | undefined;
|
|
4672
4672
|
isDark?: boolean | "true" | undefined;
|
|
@@ -9,6 +9,7 @@ interface Props {
|
|
|
9
9
|
css?: CSS;
|
|
10
10
|
as?: keyof JSX.IntrinsicElements;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
13
|
+
export declare type PaginationHighlightProps = Props & NativeAttrs & PaginationHighlightVariantsProps;
|
|
13
14
|
declare const PaginationHighlight: React.FC<PaginationHighlightProps>;
|
|
14
15
|
export default PaginationHighlight;
|
|
@@ -2803,7 +2803,7 @@ export declare const StyledPaginationItem: import("@stitches/react/types/styled-
|
|
|
2803
2803
|
bordered?: boolean | "true" | undefined;
|
|
2804
2804
|
onlyDots?: boolean | "true" | undefined;
|
|
2805
2805
|
preserveContent?: boolean | "true" | undefined;
|
|
2806
|
-
animated?: boolean | "
|
|
2806
|
+
animated?: boolean | "false" | "true" | undefined;
|
|
2807
2807
|
}, {
|
|
2808
2808
|
xs: string;
|
|
2809
2809
|
sm: string;
|
|
@@ -3736,7 +3736,7 @@ export declare const StyledPaginationItem: import("@stitches/react/types/styled-
|
|
|
3736
3736
|
};
|
|
3737
3737
|
}>>;
|
|
3738
3738
|
export declare const StyledPaginationHighlight: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
3739
|
-
animated?: boolean | "
|
|
3739
|
+
animated?: boolean | "false" | "true" | undefined;
|
|
3740
3740
|
noMargin?: boolean | "true" | undefined;
|
|
3741
3741
|
rounded?: boolean | "true" | undefined;
|
|
3742
3742
|
shadow?: boolean | "true" | undefined;
|
|
@@ -4676,9 +4676,9 @@ export declare const StyledPagination: import("@stitches/react/types/styled-comp
|
|
|
4676
4676
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
4677
4677
|
borderWeight?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
|
|
4678
4678
|
bordered?: boolean | "true" | undefined;
|
|
4679
|
-
onlyDots?: boolean | "
|
|
4680
|
-
rounded?: boolean | "
|
|
4681
|
-
noMargin?: boolean | "
|
|
4679
|
+
onlyDots?: boolean | "false" | "true" | undefined;
|
|
4680
|
+
rounded?: boolean | "false" | "true" | undefined;
|
|
4681
|
+
noMargin?: boolean | "false" | "true" | undefined;
|
|
4682
4682
|
}, {
|
|
4683
4683
|
xs: string;
|
|
4684
4684
|
sm: string;
|
|
@@ -61,5 +61,5 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
61
61
|
hover: string;
|
|
62
62
|
dark: string;
|
|
63
63
|
light: string;
|
|
64
|
-
}>, "max" | "
|
|
64
|
+
}>, "max" | "animated" | "value" | "min" | "shadow" | "indeterminated" | "striped">>;
|
|
65
65
|
export default _default;
|
|
@@ -2799,9 +2799,9 @@ export declare const StyledRadio: import("@stitches/react/types/styled-component
|
|
|
2799
2799
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "error" | undefined;
|
|
2800
2800
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
2801
2801
|
disabled?: boolean | "true" | undefined;
|
|
2802
|
-
squared?: boolean | "
|
|
2802
|
+
squared?: boolean | "false" | "true" | undefined;
|
|
2803
2803
|
active?: boolean | "true" | undefined;
|
|
2804
|
-
animated?: boolean | "
|
|
2804
|
+
animated?: boolean | "false" | "true" | undefined;
|
|
2805
2805
|
}, {
|
|
2806
2806
|
xs: string;
|
|
2807
2807
|
sm: string;
|
|
@@ -3735,7 +3735,7 @@ export declare const StyledRadio: import("@stitches/react/types/styled-component
|
|
|
3735
3735
|
}>>;
|
|
3736
3736
|
export declare const StyledRadioGroup: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
3737
3737
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
3738
|
-
row?: boolean | "
|
|
3738
|
+
row?: boolean | "false" | "true" | undefined;
|
|
3739
3739
|
}, {
|
|
3740
3740
|
xs: string;
|
|
3741
3741
|
sm: string;
|
|
@@ -936,7 +936,7 @@ export declare const StyledSnippet: import("@stitches/react/types/styled-compone
|
|
|
936
936
|
};
|
|
937
937
|
}>>;
|
|
938
938
|
export declare const StyledSnippetPre: import("@stitches/react/types/styled-component").StyledComponent<"pre", {
|
|
939
|
-
withCopyButton?: boolean | "
|
|
939
|
+
withCopyButton?: boolean | "false" | "true" | undefined;
|
|
940
940
|
}, {
|
|
941
941
|
xs: string;
|
|
942
942
|
sm: string;
|
package/types/spacer/spacer.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
20
20
|
x: number;
|
|
21
21
|
y: number;
|
|
22
22
|
} & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
|
|
23
|
-
inline?: boolean | "
|
|
23
|
+
inline?: boolean | "false" | "true" | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
xs: string;
|
|
26
26
|
sm: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from '../theme/stitches.config';
|
|
2
2
|
export declare const StyledSpacer: import("@stitches/react/types/styled-component").StyledComponent<"span", {
|
|
3
|
-
inline?: boolean | "
|
|
3
|
+
inline?: boolean | "false" | "true" | undefined;
|
|
4
4
|
}, {
|
|
5
5
|
xs: string;
|
|
6
6
|
sm: string;
|
package/types/switch/switch.d.ts
CHANGED
|
@@ -78,5 +78,5 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
78
78
|
light: string;
|
|
79
79
|
}> & {
|
|
80
80
|
css?: CSS | undefined;
|
|
81
|
-
}, "squared" | "
|
|
81
|
+
}, "squared" | "animated" | "preventDefault" | "bordered" | "disabled" | "shadow" | "initialChecked">>;
|
|
82
82
|
export default _default;
|
|
@@ -2804,7 +2804,7 @@ export declare const StyledSwitch: import("@stitches/react/types/styled-componen
|
|
|
2804
2804
|
squared?: boolean | "true" | undefined;
|
|
2805
2805
|
shadow?: boolean | "true" | undefined;
|
|
2806
2806
|
disabled?: boolean | "true" | undefined;
|
|
2807
|
-
animated?: boolean | "
|
|
2807
|
+
animated?: boolean | "false" | "true" | undefined;
|
|
2808
2808
|
}, {
|
|
2809
2809
|
xs: string;
|
|
2810
2810
|
sm: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as TableBody } from './table-body';
|
|
2
|
+
export { default as TableCell } from './table-cell';
|
|
3
|
+
export { default as TableColumn } from './table-column';
|
|
4
|
+
export { default as TableHeader } from './table-header';
|
|
5
|
+
export { default as TableRow } from './table-row';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TableBodyProps as TableBodyBaseProps } from '@react-types/table';
|
|
3
|
+
import { CSS } from '../../theme/stitches.config';
|
|
4
|
+
export declare type TableBodyProps<T> = TableBodyBaseProps<T> & {
|
|
5
|
+
css?: CSS;
|
|
6
|
+
};
|
|
7
|
+
declare const TableBody: <T>(props: TableBodyProps<T>) => JSX.Element;
|
|
8
|
+
export default TableBody;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CellProps as TableCellBaseProps } from '@react-types/table';
|
|
3
|
+
import { CSS } from '../../theme/stitches.config';
|
|
4
|
+
export declare type TableCellProps = TableCellBaseProps & {
|
|
5
|
+
css?: CSS;
|
|
6
|
+
};
|
|
7
|
+
declare const TableCell: (props: TableCellProps) => JSX.Element;
|
|
8
|
+
export default TableCell;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SpectrumColumnProps } from '@react-types/table';
|
|
3
|
+
import { CSS } from '../../theme/stitches.config';
|
|
4
|
+
export declare type TableColumnProps<T> = Omit<SpectrumColumnProps<T>, 'showDivider'> & {
|
|
5
|
+
css?: CSS;
|
|
6
|
+
};
|
|
7
|
+
declare const TableColumn: <T>(props: TableColumnProps<T>) => JSX.Element;
|
|
8
|
+
export default TableColumn;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RowProps as TableRowBaseProps } from '@react-types/table';
|
|
3
|
+
import { CSS } from '../../theme/stitches.config';
|
|
4
|
+
export declare type TableRowProps = TableRowBaseProps & {
|
|
5
|
+
css?: CSS;
|
|
6
|
+
};
|
|
7
|
+
declare const TableRow: (props: TableRowProps) => JSX.Element;
|
|
8
|
+
export default TableRow;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Table from './table';
|
|
2
|
+
export type { SortDescriptor } from '@react-types/shared';
|
|
3
|
+
export { StyledTable, StyledTableRow, StyledTableCell, StyledTableHeaderCell } from './table.styles';
|
|
4
|
+
export type { TableVariantsProps, TableColumnHeaderVariantsProps, TableCellVariantsProps, StyledTableRowGroup, StyledTableHeaderRow } from './table.styles';
|
|
5
|
+
export type { TableProps } from './table';
|
|
6
|
+
export type { TablePaginationProps } from './table-pagination';
|
|
7
|
+
export type { TableBodyProps } from './table-body';
|
|
8
|
+
export type { TableHeaderRowProps } from './table-header-row';
|
|
9
|
+
export type { TableRowProps } from './table-row';
|
|
10
|
+
export type { TableCellProps } from './table-cell';
|
|
11
|
+
export type { TableFooterProps } from './table-footer';
|
|
12
|
+
export default Table;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CSS } from '../theme/stitches.config';
|
|
3
|
+
import { TableCollection } from '@react-types/table';
|
|
4
|
+
import { TableVariantsProps } from './table.styles';
|
|
5
|
+
import { TableState } from '@react-stately/table';
|
|
6
|
+
interface Props<T> {
|
|
7
|
+
state: TableState<T>;
|
|
8
|
+
collection: TableCollection<T>;
|
|
9
|
+
animated?: boolean;
|
|
10
|
+
hideLoading?: boolean;
|
|
11
|
+
hasPagination?: boolean;
|
|
12
|
+
color?: TableVariantsProps['color'];
|
|
13
|
+
as?: keyof JSX.IntrinsicElements;
|
|
14
|
+
}
|
|
15
|
+
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props<any>>;
|
|
16
|
+
export declare type TableBodyProps<T = unknown> = Props<T> & NativeAttrs & {
|
|
17
|
+
css?: CSS;
|
|
18
|
+
};
|
|
19
|
+
declare const TableBody: React.FC<React.PropsWithChildren<TableBodyProps>>;
|
|
20
|
+
export default TableBody;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableRowData, TableOnCellClick } from './table-types';
|
|
3
|
+
import { TableColumnProps } from './table-column';
|
|
4
|
+
import { CSS } from '../theme/stitches.config';
|
|
5
|
+
interface Props<TableDataItem extends TableRowData> {
|
|
6
|
+
row?: TableDataItem;
|
|
7
|
+
rowIndex?: number;
|
|
8
|
+
columns?: Array<TableColumnProps<TableDataItem>>;
|
|
9
|
+
emptyText?: string;
|
|
10
|
+
onCellClick?: TableOnCellClick<TableDataItem>;
|
|
11
|
+
as?: keyof JSX.IntrinsicElements;
|
|
12
|
+
}
|
|
13
|
+
declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props<any>>;
|
|
14
|
+
export declare type TableCellProps<TableDataItem extends TableRowData> = Props<TableDataItem> & NativeAttrs & {
|
|
15
|
+
css?: CSS;
|
|
16
|
+
};
|
|
17
|
+
declare const TableCell: React.ForwardRefExoticComponent<Props<TableRowData> & NativeAttrs & {
|
|
18
|
+
css?: CSS | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
22
|
+
export default TableCell;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CSS } from '../theme/stitches.config';
|
|
3
|
+
import { GridNode } from '@react-types/grid';
|
|
4
|
+
import { TableState } from '@react-stately/table';
|
|
5
|
+
declare type CellProps<T> = GridNode<T> & {
|
|
6
|
+
rendered: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
interface Props<T> {
|
|
9
|
+
cell: CellProps<T>;
|
|
10
|
+
state: TableState<T>;
|
|
11
|
+
as?: keyof JSX.IntrinsicElements;
|
|
12
|
+
}
|
|
13
|
+
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props<any>>;
|
|
14
|
+
export declare type TableCellProps<T = unknown> = Props<T> & NativeAttrs & {
|
|
15
|
+
css?: CSS;
|
|
16
|
+
};
|
|
17
|
+
declare const TableCell: React.ForwardRefExoticComponent<Props<unknown> & NativeAttrs & {
|
|
18
|
+
css?: CSS | undefined;
|
|
19
|
+
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
20
|
+
export default TableCell;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CSS } from '../theme/stitches.config';
|
|
3
|
+
import { GridNode } from '@react-types/grid';
|
|
4
|
+
import { TableState } from '@react-stately/table';
|
|
5
|
+
import { TableVariantsProps } from './table.styles';
|
|
6
|
+
declare type CellProps<T> = GridNode<T> & {
|
|
7
|
+
parentKey?: React.Key;
|
|
8
|
+
};
|
|
9
|
+
interface Props<T> {
|
|
10
|
+
cell: CellProps<T>;
|
|
11
|
+
state: TableState<T>;
|
|
12
|
+
color?: TableVariantsProps['color'];
|
|
13
|
+
animated?: boolean;
|
|
14
|
+
as?: keyof JSX.IntrinsicElements;
|
|
15
|
+
}
|
|
16
|
+
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props<any>>;
|
|
17
|
+
export declare type TableCheckboxCellProps<T = unknown> = Props<T> & NativeAttrs & {
|
|
18
|
+
css?: CSS;
|
|
19
|
+
};
|
|
20
|
+
declare const TableCheckboxCell: React.ForwardRefExoticComponent<Props<unknown> & NativeAttrs & {
|
|
21
|
+
css?: CSS | undefined;
|
|
22
|
+
} & React.RefAttributes<HTMLTableCellElement>>;
|
|
23
|
+
export default TableCheckboxCell;
|