@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.
Files changed (145) hide show
  1. package/README.md +3 -0
  2. package/cjs/avatar/avatar.js +1 -1
  3. package/cjs/backdrop/backdrop.styles.js +1 -1
  4. package/cjs/button/button-icon.js +1 -1
  5. package/cjs/button/utils.js +1 -1
  6. package/cjs/card/card.styles.js +1 -1
  7. package/cjs/checkbox/checkbox.js +1 -1
  8. package/cjs/checkbox/checkbox.styles.js +1 -1
  9. package/cjs/checkbox/use-checkbox.js +1 -1
  10. package/cjs/divider/divider.js +1 -1
  11. package/cjs/dropdown/dropdown-menu.js +1 -1
  12. package/cjs/dropdown/dropdown.js +1 -1
  13. package/cjs/grid/grid.js +1 -1
  14. package/cjs/input/index.js +1 -1
  15. package/cjs/input/input.js +1 -1
  16. package/cjs/input/input.styles.js +1 -1
  17. package/cjs/link/link.styles.js +1 -1
  18. package/cjs/loading/loading.js +1 -1
  19. package/cjs/navbar/navbar-link.js +1 -1
  20. package/cjs/navbar/navbar.styles.js +1 -1
  21. package/cjs/popover/popover-content.js +1 -1
  22. package/cjs/popover/popover.styles.js +1 -1
  23. package/cjs/popover/use-popover.js +1 -1
  24. package/cjs/radio/radio.js +1 -1
  25. package/cjs/radio/use-radio-group.js +1 -1
  26. package/cjs/radio/use-radio.js +1 -1
  27. package/cjs/spacer/spacer.js +1 -1
  28. package/cjs/switch/switch.js +1 -1
  29. package/cjs/table/table-body.js +1 -1
  30. package/cjs/table/table-cell.js +1 -1
  31. package/cjs/table/table.js +1 -1
  32. package/cjs/table/table.styles.js +1 -1
  33. package/cjs/textarea/textarea.js +1 -1
  34. package/cjs/theme/utils.js +1 -1
  35. package/cjs/tooltip/tooltip.js +1 -1
  36. package/cjs/use-pagination/index.js +1 -1
  37. package/cjs/user/user.js +1 -1
  38. package/cjs/user/user.styles.js +1 -1
  39. package/cjs/utils/checkmark.js +1 -1
  40. package/cjs/utils/css-transition.js +1 -1
  41. package/esm/avatar/avatar.js +1 -1
  42. package/esm/backdrop/backdrop.styles.js +1 -1
  43. package/esm/button/button-icon.js +1 -1
  44. package/esm/button/utils.js +1 -1
  45. package/esm/card/card.styles.js +1 -1
  46. package/esm/checkbox/checkbox.js +1 -1
  47. package/esm/checkbox/checkbox.styles.js +1 -1
  48. package/esm/checkbox/use-checkbox.js +1 -1
  49. package/esm/divider/divider.js +1 -1
  50. package/esm/dropdown/dropdown-menu.js +1 -1
  51. package/esm/dropdown/dropdown.js +1 -1
  52. package/esm/grid/grid.js +1 -1
  53. package/esm/input/index.js +1 -1
  54. package/esm/input/input.js +1 -1
  55. package/esm/input/input.styles.js +1 -1
  56. package/esm/link/link.styles.js +1 -1
  57. package/esm/loading/loading.js +1 -1
  58. package/esm/navbar/navbar-link.js +1 -1
  59. package/esm/navbar/navbar.styles.js +1 -1
  60. package/esm/popover/popover-content.js +1 -1
  61. package/esm/popover/popover.styles.js +1 -1
  62. package/esm/popover/use-popover.js +1 -1
  63. package/esm/radio/radio.js +1 -1
  64. package/esm/radio/use-radio-group.js +1 -1
  65. package/esm/radio/use-radio.js +1 -1
  66. package/esm/spacer/spacer.js +1 -1
  67. package/esm/switch/switch.js +1 -1
  68. package/esm/table/table-body.js +1 -1
  69. package/esm/table/table-cell.js +1 -1
  70. package/esm/table/table.js +1 -1
  71. package/esm/table/table.styles.js +1 -1
  72. package/esm/textarea/textarea.js +1 -1
  73. package/esm/theme/utils.js +1 -1
  74. package/esm/tooltip/tooltip.js +1 -1
  75. package/esm/use-pagination/index.js +1 -1
  76. package/esm/user/user.js +1 -1
  77. package/esm/user/user.styles.js +1 -1
  78. package/esm/utils/checkmark.js +1 -1
  79. package/esm/utils/css-transition.js +1 -1
  80. package/package.json +30 -28
  81. package/types/avatar/avatar.d.ts +3 -1
  82. package/types/backdrop/backdrop.d.ts +3 -2
  83. package/types/backdrop/backdrop.styles.d.ts +1 -1
  84. package/types/button/button-group.d.ts +8 -1
  85. package/types/button/button-icon.d.ts +33 -2
  86. package/types/button/button.d.ts +1 -1
  87. package/types/button/utils.d.ts +3 -51
  88. package/types/card/card.d.ts +1 -1
  89. package/types/card/card.styles.d.ts +28 -0
  90. package/types/checkbox/checkbox.styles.d.ts +1 -1
  91. package/types/checkbox/use-checkbox.d.ts +3 -0
  92. package/types/code/code.d.ts +25 -1
  93. package/types/col/col.d.ts +27 -2
  94. package/types/collapse/collapse-group.d.ts +2 -1
  95. package/types/collapse/collapse.d.ts +1 -0
  96. package/types/container/container.d.ts +2 -1
  97. package/types/divider/divider.d.ts +26 -2
  98. package/types/dropdown/dropdown-menu.d.ts +2 -1
  99. package/types/grid/grid-container.d.ts +2 -1
  100. package/types/grid/grid-item.d.ts +2 -1
  101. package/types/image/image.d.ts +1 -1
  102. package/types/image/image.skeleton.d.ts +1 -1
  103. package/types/input/input-password.d.ts +2 -1
  104. package/types/input/input.d.ts +1 -3
  105. package/types/loading/loading.d.ts +32 -2
  106. package/types/loading/spinner.d.ts +2 -1
  107. package/types/modal/modal-footer.d.ts +31 -2
  108. package/types/modal/modal-header.d.ts +31 -2
  109. package/types/modal/modal-wrapper.d.ts +2 -1
  110. package/types/modal/modal.d.ts +1 -0
  111. package/types/navbar/navbar.styles.d.ts +199 -196
  112. package/types/pagination/pagination-highlight.d.ts +1 -1
  113. package/types/pagination/pagination-item.d.ts +2 -1
  114. package/types/pagination/pagination.d.ts +1 -0
  115. package/types/popover/popover-content.d.ts +1 -1
  116. package/types/popover/popover-context.d.ts +2 -2
  117. package/types/popover/popover.styles.d.ts +11 -0
  118. package/types/popover/use-popover.d.ts +1 -1
  119. package/types/progress/progress.d.ts +1 -1
  120. package/types/radio/index.d.ts +2 -0
  121. package/types/radio/use-radio.d.ts +1 -0
  122. package/types/row/row.d.ts +26 -2
  123. package/types/snippet/snippet.d.ts +37 -1
  124. package/types/spacer/spacer.d.ts +1 -1
  125. package/types/switch/switch.d.ts +1 -0
  126. package/types/table/table-body.d.ts +4 -2
  127. package/types/table/table-cell.d.ts +1 -0
  128. package/types/table/table-column-header.d.ts +3 -3
  129. package/types/table/table-context.d.ts +1 -1
  130. package/types/table/table-footer.d.ts +5 -4
  131. package/types/table/table-header-row.d.ts +1 -2
  132. package/types/table/table-row-group.d.ts +2 -1
  133. package/types/table/table-row.d.ts +1 -2
  134. package/types/table/table.d.ts +1 -1
  135. package/types/table/table.styles.d.ts +14 -7
  136. package/types/text/child.d.ts +1 -1
  137. package/types/textarea/textarea.d.ts +1 -1
  138. package/types/theme/theme-provider.d.ts +2 -1
  139. package/types/tooltip/tooltip-content.d.ts +3 -2
  140. package/types/tooltip/tooltip.d.ts +6 -2
  141. package/types/user/user.d.ts +1 -1
  142. package/types/utils/css-transition.d.ts +6 -20
  143. package/types/utils/expand.d.ts +2 -1
  144. package/umd/nextui.js +3640 -4506
  145. package/umd/nextui.min.js +1 -1
@@ -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 { PaginationHighlightVariantsProps } from "./pagination.styles";
4
4
  interface Props {
5
5
  active: number;
@@ -11,6 +11,7 @@ interface Props {
11
11
  preserveContent?: boolean;
12
12
  onClick?: (e: React.MouseEvent) => void;
13
13
  as?: keyof JSX.IntrinsicElements;
14
+ children?: React.ReactNode;
14
15
  }
15
16
  declare type NativeAttrs = Omit<React.ButtonHTMLAttributes<unknown>, keyof Props>;
16
17
  export declare type PaginationItemProps = Props & NativeAttrs & PaginationItemVariantsProps & {
@@ -18,5 +19,5 @@ export declare type PaginationItemProps = Props & NativeAttrs & PaginationItemVa
18
19
  };
19
20
  declare const _default: React.ComponentType<Partial<{
20
21
  preserveContent: boolean;
21
- }> & Omit<React.PropsWithChildren<PaginationItemProps>, "preserveContent">>;
22
+ }> & Omit<PaginationItemProps, "preserveContent">>;
22
23
  export default _default;
@@ -18,6 +18,7 @@ interface Props {
18
18
  boundaries?: number;
19
19
  onChange?: (page: number) => 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, { ReactNode } from "react";
2
- import { CSS } from "../theme/stitches.config";
3
3
  import { PopoverContentVariantsProps } from "./popover.styles";
4
4
  interface Props {
5
5
  children: ReactNode;
@@ -93,7 +93,7 @@ export declare const PopoverProvider: import("react").Provider<{
93
93
  overlayProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
94
94
  positionProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
95
95
  getTriggerProps: (props?: any, _ref?: any) => any;
96
- getPopoverProps: (props?: any) => any;
96
+ getPopoverProps: (props?: any, css?: any) => any;
97
97
  }>, usePopoverContext: () => {
98
98
  state: import("@react-stately/overlays").OverlayTriggerState;
99
99
  exited: boolean;
@@ -188,5 +188,5 @@ export declare const PopoverProvider: import("react").Provider<{
188
188
  overlayProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
189
189
  positionProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
190
190
  getTriggerProps: (props?: any, _ref?: any) => any;
191
- getPopoverProps: (props?: any) => any;
191
+ getPopoverProps: (props?: any, css?: any) => any;
192
192
  };
@@ -82,6 +82,17 @@ export declare const StyledPopoverContentContainer: import("@stitches/react/type
82
82
  $$popoverBorderWeight: string;
83
83
  };
84
84
  };
85
+ disableAnimation: {
86
+ true: {
87
+ transition: string;
88
+ "&.nextui-popover-content-enter": {
89
+ animation: string;
90
+ };
91
+ "&.nextui-popover-content-leave": {
92
+ animation: string;
93
+ };
94
+ };
95
+ };
85
96
  };
86
97
  defaultVariants: {
87
98
  isBordered: false;
@@ -151,6 +151,6 @@ export declare function usePopover(props?: UsePopoverProps): {
151
151
  overlayProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
152
152
  positionProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
153
153
  getTriggerProps: (props?: any, _ref?: any) => any;
154
- getPopoverProps: (props?: any) => any;
154
+ getPopoverProps: (props?: any, css?: any) => any;
155
155
  };
156
156
  export declare type UsePopoverReturn = ReturnType<typeof usePopover>;
@@ -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 { ProgressVariantsProps } from "./progress.styles";
4
4
  interface Props {
5
5
  value: number;
@@ -1,4 +1,6 @@
1
1
  import Radio from "./radio";
2
2
  export { StyledRadioLabel, StyledRadioText, StyledRadioPoint, StyledRadioContainer, StyledRadioDescription, StyledRadioGroup, StyledRadioGroupContainer, } from "./radio.styles";
3
3
  export type { RadioLabelVariantsProps, RadioTexVariantsProps, RadioPointVariantsProps, RadioContainerVariantsProps, RadioDescriptionVariantsProps, RadioGroupVariantsProps, RadioGroupContainerVariantsProps, } from "./radio.styles";
4
+ export type { RadioProps } from "./radio";
5
+ export type { RadioGroupProps } from "./radio-group";
4
6
  export default Radio;
@@ -23,6 +23,7 @@ export declare const useRadio: (props: UseRadioProps) => {
23
23
  isInvalid: boolean;
24
24
  isHovered: boolean;
25
25
  isSquared: boolean;
26
+ isRequired: boolean;
26
27
  disableAnimation: boolean;
27
28
  inputProps: React.InputHTMLAttributes<HTMLInputElement>;
28
29
  hoverProps: import("@react-types/shared").DOMAttributes<import("@react-types/shared").FocusableElement>;
@@ -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 { Justify, AlignItems, Wrap } from "../utils/prop-types";
4
4
  import { RowVariantsProps } from "./row.styles";
5
5
  interface Props {
@@ -9,6 +9,7 @@ interface Props {
9
9
  align?: AlignItems;
10
10
  css?: CSS;
11
11
  as?: keyof JSX.IntrinsicElements;
12
+ children?: React.ReactNode;
12
13
  }
13
14
  declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
14
15
  export declare type RowProps = Props & NativeAttrs & RowVariantsProps;
@@ -17,5 +18,28 @@ declare const _default: React.ComponentType<Partial<{
17
18
  wrap: "nowrap" | "wrap" | "wrap-reverse";
18
19
  justify: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly";
19
20
  align: "center" | "flex-start" | "flex-end" | "stretch" | "baseline";
20
- }> & Omit<RowProps, "wrap" | "gap" | "justify" | "align">>;
21
+ }> & Omit<Props & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
22
+ fluid?: boolean | "true" | undefined;
23
+ }, {
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
+ }>, "wrap" | "gap" | "justify" | "align">>;
21
45
  export default _default;
@@ -11,6 +11,7 @@ interface Props {
11
11
  copy?: CopyTypes;
12
12
  tooltipColor?: TooltipColors;
13
13
  as?: keyof JSX.IntrinsicElements;
14
+ children?: React.ReactNode;
14
15
  }
15
16
  declare const defaultProps: {
16
17
  symbol: string;
@@ -31,5 +32,40 @@ declare const _default: React.ComponentType<Partial<{
31
32
  tooltipColor: string;
32
33
  tooltipCopyText: string;
33
34
  tooltipCopiedText: string;
34
- }> & Omit<SnippetProps, "symbol" | "copy" | "showTooltip" | "tooltipCopyText" | "tooltipCopiedText" | "tooltipColor">>;
35
+ }> & Omit<Props & {
36
+ symbol: string;
37
+ showTooltip: boolean;
38
+ copy: "default" | "slient" | "prevent";
39
+ tooltipColor: string;
40
+ tooltipCopyText: string;
41
+ tooltipCopiedText: string;
42
+ } & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
43
+ color?: "default" | "primary" | "secondary" | "success" | "warning" | "error" | "invert" | undefined;
44
+ borderWeight?: "light" | "normal" | "bold" | "extrabold" | "black" | undefined;
45
+ bordered?: boolean | "true" | undefined;
46
+ filled?: boolean | "true" | undefined;
47
+ }, {
48
+ xs: string;
49
+ sm: string;
50
+ md: string;
51
+ lg: string;
52
+ xl: string;
53
+ xsMin: string;
54
+ smMin: string;
55
+ mdMin: string;
56
+ lgMin: string;
57
+ xlMin: string;
58
+ xsMax: string;
59
+ smMax: string;
60
+ mdMax: string;
61
+ lgMax: string;
62
+ xlMax: string;
63
+ motion: string;
64
+ safari: string;
65
+ hover: string;
66
+ dark: string;
67
+ light: string;
68
+ }> & {
69
+ css?: CSS | undefined;
70
+ }, "symbol" | "copy" | "showTooltip" | "tooltipCopyText" | "tooltipCopiedText" | "tooltipColor">>;
35
71
  export default _default;
@@ -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 { SpacerVariantsProps } from "./spacer.styles";
4
4
  interface Props {
5
5
  x?: number;
@@ -21,6 +21,7 @@ interface Props {
21
21
  iconOff?: React.ReactNode;
22
22
  initialChecked?: boolean;
23
23
  preventDefault?: boolean;
24
+ name?: string;
24
25
  disabled?: boolean;
25
26
  onChange?: (ev: SwitchEvent) => void;
26
27
  as?: keyof JSX.IntrinsicElements;
@@ -1,7 +1,7 @@
1
+ import type { CSS } from "../theme/stitches.config";
1
2
  import React from "react";
2
3
  import { TableCollection } from "@react-types/table";
3
4
  import { TableState } from "@react-stately/table";
4
- import { CSS } from "../theme/stitches.config";
5
5
  import { TableVariantsProps } from "./table.styles";
6
6
  interface Props<T> {
7
7
  state: TableState<T>;
@@ -9,12 +9,14 @@ interface Props<T> {
9
9
  animated?: boolean;
10
10
  hideLoading?: boolean;
11
11
  hasPagination?: boolean;
12
+ isStatic?: boolean;
12
13
  color?: TableVariantsProps["color"];
13
14
  as?: keyof JSX.IntrinsicElements;
15
+ children?: React.ReactNode;
14
16
  }
15
17
  declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props<any>>;
16
18
  export declare type TableBodyProps<T = unknown> = Props<T> & NativeAttrs & {
17
19
  css?: CSS;
18
20
  };
19
- declare const TableBody: React.FC<React.PropsWithChildren<TableBodyProps>>;
21
+ declare const TableBody: React.FC<TableBodyProps>;
20
22
  export default TableBody;
@@ -8,6 +8,7 @@ declare type CellProps<T> = GridNode<T> & {
8
8
  interface Props<T> {
9
9
  cell: CellProps<T>;
10
10
  state: TableState<T>;
11
+ isStatic?: boolean;
11
12
  as?: keyof JSX.IntrinsicElements;
12
13
  }
13
14
  declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props<any>>;
@@ -20,15 +20,15 @@ declare const TableColumnHeader: React.ForwardRefExoticComponent<Props<unknown>
20
20
  fontSize: string;
21
21
  textAlign: string;
22
22
  position: string;
23
- '@motion': {
23
+ "@motion": {
24
24
  transition: string;
25
25
  };
26
- '&:first-child': {
26
+ "&:first-child": {
27
27
  pl: string;
28
28
  btlr: string;
29
29
  bblr: string;
30
30
  };
31
- '&:last-child': {
31
+ "&:last-child": {
32
32
  pr: string;
33
33
  btrr: string;
34
34
  bbrr: string;
@@ -23,7 +23,7 @@ export declare type ProviderProps = {
23
23
  defaultValues?: Partial<TableConfig>;
24
24
  };
25
25
  declare const _default: {
26
- Provider: React.FC<React.PropsWithChildren<ProviderProps>>;
26
+ Provider: React.FC<ProviderProps>;
27
27
  Consumer: React.Consumer<TableConfig>;
28
28
  };
29
29
  export default _default;
@@ -1,11 +1,14 @@
1
1
  import React from "react";
2
2
  import { CSS } from "../theme/stitches.config";
3
3
  import { TableFooterVatiantsProps } from "./table.styles";
4
+ declare type Props = {
5
+ children?: React.ReactNode;
6
+ };
4
7
  declare type NativeAttrs = React.HTMLAttributes<unknown>;
5
- export declare type TableFooterProps = NativeAttrs & TableFooterVatiantsProps & {
8
+ export declare type TableFooterProps = Props & NativeAttrs & TableFooterVatiantsProps & {
6
9
  css?: CSS;
7
10
  };
8
- declare const TableFooter: React.ForwardRefExoticComponent<NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
11
+ declare const TableFooter: React.ForwardRefExoticComponent<Props & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
9
12
  align?: "start" | "center" | "end" | undefined;
10
13
  }, {
11
14
  xs: string;
@@ -30,7 +33,5 @@ declare const TableFooter: React.ForwardRefExoticComponent<NativeAttrs & import(
30
33
  light: string;
31
34
  }> & {
32
35
  css?: CSS | undefined;
33
- } & {
34
- children?: React.ReactNode;
35
36
  } & React.RefAttributes<HTMLTableSectionElement>>;
36
37
  export default TableFooter;
@@ -6,6 +6,7 @@ interface Props<T> {
6
6
  item: GridNode<T>;
7
7
  state: TableState<T>;
8
8
  as?: keyof JSX.IntrinsicElements;
9
+ children?: React.ReactNode;
9
10
  }
10
11
  declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props<any>>;
11
12
  export declare type TableHeaderRowProps<T = unknown> = Props<T> & NativeAttrs & {
@@ -13,7 +14,5 @@ export declare type TableHeaderRowProps<T = unknown> = Props<T> & NativeAttrs &
13
14
  };
14
15
  declare const TableHeaderRow: React.ForwardRefExoticComponent<Props<unknown> & NativeAttrs & {
15
16
  css?: CSS | undefined;
16
- } & {
17
- children?: React.ReactNode;
18
17
  } & React.RefAttributes<HTMLTableRowElement>>;
19
18
  export default TableHeaderRow;
@@ -3,6 +3,7 @@ import { CSS } from "../theme/stitches.config";
3
3
  import { TableRowGroupVariants } from "./table.styles";
4
4
  interface Props {
5
5
  as?: keyof JSX.IntrinsicElements;
6
+ children?: React.ReactNode;
6
7
  }
7
8
  declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
8
9
  export declare type TableRowGroupProps = Props & TableRowGroupVariants & NativeAttrs & {
@@ -10,5 +11,5 @@ export declare type TableRowGroupProps = Props & TableRowGroupVariants & NativeA
10
11
  };
11
12
  declare const _default: React.ComponentType<Partial<{
12
13
  as: string;
13
- }> & Omit<React.PropsWithChildren<TableRowGroupProps>, "as">>;
14
+ }> & Omit<TableRowGroupProps, "as">>;
14
15
  export default _default;
@@ -6,6 +6,7 @@ interface Props<T> {
6
6
  item: GridNode<T>;
7
7
  state: TableState<T>;
8
8
  as?: keyof JSX.IntrinsicElements;
9
+ children?: React.ReactNode;
9
10
  }
10
11
  declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props<any>>;
11
12
  export declare type TableRowProps<T = unknown> = Props<T> & NativeAttrs & {
@@ -13,7 +14,5 @@ export declare type TableRowProps<T = unknown> = Props<T> & NativeAttrs & {
13
14
  };
14
15
  declare const TableRow: React.ForwardRefExoticComponent<Props<unknown> & NativeAttrs & {
15
16
  css?: CSS | undefined;
16
- } & {
17
- children?: React.ReactNode;
18
17
  } & React.RefAttributes<HTMLTableRowElement>>;
19
18
  export default TableRow;
@@ -1,7 +1,7 @@
1
+ import type { CSS } from "../theme/stitches.config";
1
2
  import React, { RefAttributes, PropsWithoutRef } from "react";
2
3
  import { TableStateProps } from "@react-stately/table";
3
4
  import { SelectionMode, SelectionBehavior } from "@react-types/shared";
4
- import { CSS } from "../theme/stitches.config";
5
5
  import { TableColumn as TableColumnBase, TableCell as TableCellBase, TableRow as TableRowBase, TableBody as TableBodyBase, TableHeader as TableHeaderBase } from "./base";
6
6
  import TablePagination from "./table-pagination";
7
7
  import { TableVariantsProps, TableContainerVariantsProps } from "./table.styles";
@@ -1079,15 +1079,15 @@ export declare const StyledTableColumnHeader: import("@stitches/react/types/styl
1079
1079
  fontSize: string;
1080
1080
  textAlign: string;
1081
1081
  position: string;
1082
- '@motion': {
1082
+ "@motion": {
1083
1083
  transition: string;
1084
1084
  };
1085
- '&:first-child': {
1085
+ "&:first-child": {
1086
1086
  pl: string;
1087
1087
  btlr: string;
1088
1088
  bblr: string;
1089
1089
  };
1090
- '&:last-child': {
1090
+ "&:last-child": {
1091
1091
  pr: string;
1092
1092
  btrr: string;
1093
1093
  bbrr: string;
@@ -3287,15 +3287,15 @@ export declare const StyledTableHeaderCell: import("@stitches/react/types/styled
3287
3287
  fontSize: string;
3288
3288
  textAlign: string;
3289
3289
  position: string;
3290
- '@motion': {
3290
+ "@motion": {
3291
3291
  transition: string;
3292
3292
  };
3293
- '&:first-child': {
3293
+ "&:first-child": {
3294
3294
  pl: string;
3295
3295
  btlr: string;
3296
3296
  bblr: string;
3297
3297
  };
3298
- '&:last-child': {
3298
+ "&:last-child": {
3299
3299
  pr: string;
3300
3300
  btrr: string;
3301
3301
  bbrr: string;
@@ -9780,6 +9780,7 @@ export declare const StyledTableCell: import("@stitches/react/types/styled-compo
9780
9780
  }>>, import("@stitches/react/types/styled-component").StyledComponentProps<[{
9781
9781
  position: string;
9782
9782
  userSelect: string;
9783
+ cursor: string;
9783
9784
  py: string;
9784
9785
  pr: string;
9785
9786
  zIndex: string;
@@ -9816,6 +9817,12 @@ export declare const StyledTableCell: import("@stitches/react/types/styled-compo
9816
9817
  textAlign: string;
9817
9818
  };
9818
9819
  };
9820
+ isStatic: {
9821
+ true: {
9822
+ cursor: string;
9823
+ userSelect: string;
9824
+ };
9825
+ };
9819
9826
  };
9820
9827
  }, import("@stitches/react/types/styled-component").CssComponent<never, {
9821
9828
  isFocusVisible?: boolean | "true" | "false" | undefined;
@@ -16287,7 +16294,7 @@ export declare const StyledTable: import("@stitches/react/types/styled-component
16287
16294
  headerLined?: boolean | "true" | undefined;
16288
16295
  lined?: boolean | "true" | undefined;
16289
16296
  fixed?: boolean | "true" | undefined;
16290
- hoverable?: boolean | "true" | "false" | undefined;
16297
+ hoverable?: boolean | "true" | undefined;
16291
16298
  isMultiple?: boolean | "true" | undefined;
16292
16299
  hasPagination?: boolean | "true" | undefined;
16293
16300
  shadow?: boolean | "true" | undefined;
@@ -25,7 +25,7 @@ export interface Props {
25
25
  * **Initial value**: `none`
26
26
  *
27
27
  */
28
- transform?: CSS["textTransform"];
28
+ transform?: CSS["tt"];
29
29
  css?: CSS;
30
30
  as?: As;
31
31
  }
@@ -1,7 +1,7 @@
1
+ import type { CSS } from "../theme/stitches.config";
1
2
  import React from "react";
2
3
  import { Props as InputProps } from "../input/input-props";
3
4
  import { ExcludedInputProps } from "../utils/prop-types";
4
- import { CSS } from "../theme/stitches.config";
5
5
  export declare type TextareaHeightChangeMeta = {
6
6
  rowHeight: number;
7
7
  };
@@ -3,6 +3,7 @@ import { CreateTheme } from "./types";
3
3
  export interface Props {
4
4
  theme?: CreateTheme;
5
5
  disableBaseline?: boolean;
6
+ children?: React.ReactNode;
6
7
  }
7
8
  declare const defaultProps: {
8
9
  disableBaseline: boolean;
@@ -10,5 +11,5 @@ declare const defaultProps: {
10
11
  export declare type ThemeProviderProps = Props & typeof defaultProps;
11
12
  declare const _default: React.ComponentType<Partial<{
12
13
  disableBaseline: boolean;
13
- }> & Omit<React.PropsWithChildren<ThemeProviderProps>, "disableBaseline">>;
14
+ }> & Omit<ThemeProviderProps, "disableBaseline">>;
14
15
  export default _default;
@@ -1,5 +1,5 @@
1
+ import type { CSS } from "../theme/stitches.config";
1
2
  import React, { MutableRefObject } from "react";
2
- import { CSS } from "../theme/stitches.config";
3
3
  import { Placement } from "../utils/prop-types";
4
4
  import { TooltipContentVariantsProps } from "./tooltip.styles";
5
5
  interface Props {
@@ -12,6 +12,7 @@ interface Props {
12
12
  hideArrow?: boolean;
13
13
  className?: string;
14
14
  css?: CSS;
15
+ children?: React.ReactNode;
15
16
  }
16
17
  declare const defaultProps: {
17
18
  placement: "top" | "topStart" | "topEnd" | "left" | "leftStart" | "leftEnd" | "bottom" | "bottomStart" | "bottomEnd" | "right" | "rightStart" | "rightEnd";
@@ -23,5 +24,5 @@ declare const _default: React.ComponentType<Partial<{
23
24
  placement: "top" | "topStart" | "topEnd" | "left" | "leftStart" | "leftEnd" | "bottom" | "bottomStart" | "bottomEnd" | "right" | "rightStart" | "rightEnd";
24
25
  offset: number;
25
26
  className: string;
26
- }> & Omit<React.PropsWithChildren<TooltipContentProps>, "offset" | "className" | "placement">>;
27
+ }> & Omit<TooltipContentProps, "offset" | "className" | "placement">>;
27
28
  export default _default;
@@ -1,6 +1,6 @@
1
+ import type { CSS } from "../theme/stitches.config";
1
2
  import React from "react";
2
3
  import { Placement } from "../utils/prop-types";
3
- import { CSS } from "../theme/stitches.config";
4
4
  import { TriggerTypes } from "../utils/prop-types";
5
5
  import { TooltipContentProps } from "./tooltip-content";
6
6
  import { TooltipContentVariantsProps } from "./tooltip.styles";
@@ -20,11 +20,13 @@ interface Props {
20
20
  offset?: number;
21
21
  className?: string;
22
22
  keepMounted?: boolean;
23
+ isDisabled?: boolean;
23
24
  portalClassName?: string;
24
25
  onClick?: () => void;
25
26
  onVisibleChange?: TooltipOnVisibleChange;
26
27
  as?: keyof JSX.IntrinsicElements;
27
28
  triggerCss?: CSS;
29
+ children?: React.ReactNode;
28
30
  }
29
31
  declare const defaultProps: {
30
32
  initialVisible: boolean;
@@ -33,6 +35,7 @@ declare const defaultProps: {
33
35
  shadow: boolean;
34
36
  rounded: boolean;
35
37
  keepMounted: boolean;
38
+ isDisabled: boolean;
36
39
  trigger: "hover" | "click";
37
40
  enterDelay: number;
38
41
  leaveDelay: number;
@@ -49,11 +52,12 @@ declare const _default: React.ComponentType<Partial<{
49
52
  shadow: boolean;
50
53
  rounded: boolean;
51
54
  keepMounted: boolean;
55
+ isDisabled: boolean;
52
56
  trigger: "hover" | "click";
53
57
  enterDelay: number;
54
58
  leaveDelay: number;
55
59
  className: string;
56
60
  portalClassName: string;
57
61
  onVisibleChange: TooltipOnVisibleChange;
58
- }> & Omit<React.PropsWithChildren<TooltipProps>, "rounded" | "shadow" | "className" | "animated" | "hideArrow" | "initialVisible" | "trigger" | "enterDelay" | "leaveDelay" | "keepMounted" | "portalClassName" | "onVisibleChange">>;
62
+ }> & Omit<TooltipProps, "rounded" | "shadow" | "className" | "animated" | "isDisabled" | "hideArrow" | "initialVisible" | "trigger" | "enterDelay" | "leaveDelay" | "keepMounted" | "portalClassName" | "onVisibleChange">>;
59
63
  export default _default;
@@ -1,6 +1,6 @@
1
+ import type { CSS } from "../theme/stitches.config";
1
2
  import React, { ReactNode } from "react";
2
3
  import { NormalColors, NormalSizes } from "../utils/prop-types";
3
- import { CSS } from "../theme/stitches.config";
4
4
  import UserLink from "./user-link";
5
5
  interface Props {
6
6
  name: ReactNode | string;
@@ -1,30 +1,16 @@
1
+ import type { ReactNode, RefObject } from "react";
1
2
  import React from "react";
2
- interface Props {
3
+ export interface CSSTransitionProps {
4
+ name?: string;
3
5
  visible?: boolean;
4
- childrenRef?: React.RefObject<HTMLElement>;
5
6
  enterTime?: number;
6
7
  leaveTime?: number;
7
8
  clearTime?: number;
8
9
  className?: string;
9
- name?: string;
10
+ children?: ReactNode;
11
+ childrenRef?: RefObject<HTMLElement>;
10
12
  onExited?: () => void;
11
13
  onEntered?: () => void;
12
14
  }
13
- declare const defaultProps: {
14
- visible: boolean;
15
- enterTime: number;
16
- leaveTime: number;
17
- clearTime: number;
18
- className: string;
19
- name: string;
20
- };
21
- export declare type CSSTransitionProps = Props & typeof defaultProps;
22
- declare const _default: React.ComponentType<Partial<{
23
- visible: boolean;
24
- enterTime: number;
25
- leaveTime: number;
26
- clearTime: number;
27
- className: string;
28
- name: string;
29
- }> & Omit<React.PropsWithChildren<CSSTransitionProps>, "visible" | "className" | "name" | "enterTime" | "leaveTime" | "clearTime">>;
15
+ declare const _default: React.NamedExoticComponent<CSSTransitionProps>;
30
16
  export default _default;
@@ -5,6 +5,7 @@ interface Props {
5
5
  animated?: boolean;
6
6
  delay?: number;
7
7
  css?: CSS;
8
+ children?: React.ReactNode;
8
9
  }
9
10
  declare const defaultProps: {
10
11
  isExpanded: boolean;
@@ -16,5 +17,5 @@ declare const _default: React.ComponentType<Partial<{
16
17
  isExpanded: boolean;
17
18
  animated: boolean;
18
19
  delay: number;
19
- }> & Omit<React.PropsWithChildren<ExpandProps>, "animated" | "isExpanded" | "delay">>;
20
+ }> & Omit<ExpandProps, "animated" | "isExpanded" | "delay">>;
20
21
  export default _default;