@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,53 +1,5 @@
1
- import React from "react";
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: React.PropsWithChildren<ButtonProps>, config: ButtonGroupConfig) => ButtonProps;
5
- export declare const getCssColors: (props: React.PropsWithChildren<ButtonProps>) => {
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;
@@ -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;
@@ -6515,7 +6515,7 @@ export declare const StyledCheckboxContainer: import("@stitches/react/types/styl
6515
6515
  };
6516
6516
  isRounded: {
6517
6517
  true: {
6518
- br: string;
6518
+ $$checkboxBorderRadius: string;
6519
6519
  };
6520
6520
  };
6521
6521
  isDisabled: {
@@ -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>;
@@ -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<CodeProps, "block">>;
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;
@@ -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<ColProps, "span" | "offset">>;
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<React.PropsWithChildren<CollapseGroupProps>, "accordion">>;
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<DividerProps, "height" | "x" | "y" | "align">>;
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;
@@ -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;
@@ -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 { ImageSkeletonVariantsProps } from "./image.styles";
4
4
  interface Props {
5
5
  opacity: number;
@@ -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" | "fullWidth" | "initialValue" | "helperColor" | "underlined" | "hideToggle" | "visibleIcon" | "hiddenIcon">>;
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;
@@ -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<LoadingProps, "size" | "type">>;
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<React.PropsWithChildren<SpinnerProps>>;
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<ModalFooterProps, "justify" | "className" | "autoMargin">>;
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<ModalHeaderProps, "justify" | "className" | "autoMargin">>;
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<React.PropsWithChildren<ModalWrapperProps>, "visible" | "className" | "rebound">>;
24
+ }> & Omit<ModalWrapperProps, "visible" | "className" | "rebound">>;
24
25
  export default _default;
@@ -17,6 +17,7 @@ interface Props {
17
17
  onOpen?: () => void;
18
18
  onClose?: () => void;
19
19
  className?: string;
20
+ children?: React.ReactNode;
20
21
  }
21
22
  declare const defaultProps: {
22
23
  width: string;