@nextui-org/react 1.0.4-beta.5 → 1.0.7-beta.5

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 (112) hide show
  1. package/cjs/avatar/avatar.styles.js +1 -1
  2. package/cjs/backdrop/backdrop.js +1 -1
  3. package/cjs/backdrop/backdrop.styles.js +1 -1
  4. package/cjs/button/button-group.styles.js +1 -1
  5. package/cjs/button/button-icon.js +1 -1
  6. package/cjs/button/button.js +1 -1
  7. package/cjs/button/button.styles.js +1 -1
  8. package/cjs/button/utils.js +1 -1
  9. package/cjs/card/card.styles.js +1 -1
  10. package/cjs/checkbox/checkbox-context.js +1 -1
  11. package/cjs/checkbox/checkbox-group.js +1 -1
  12. package/cjs/checkbox/checkbox.js +1 -1
  13. package/cjs/checkbox/checkbox.styles.js +1 -1
  14. package/cjs/checkbox/index.js +1 -1
  15. package/cjs/checkbox/utils.js +1 -0
  16. package/cjs/css-baseline/css-baseline.js +1 -1
  17. package/cjs/index.js +1 -1
  18. package/cjs/input/input.js +1 -1
  19. package/cjs/link/link.styles.js +1 -1
  20. package/cjs/loading/loading.js +1 -1
  21. package/cjs/loading/loading.styles.js +1 -1
  22. package/cjs/pagination/pagination.styles.js +1 -1
  23. package/cjs/progress/progress.styles.js +1 -1
  24. package/cjs/table/table-checkbox-cell.js +1 -1
  25. package/cjs/table/table-select-all-checkbox.js +1 -1
  26. package/cjs/table/table.styles.js +1 -1
  27. package/cjs/table/utils.js +1 -1
  28. package/cjs/theme/common.js +1 -1
  29. package/cjs/theme/stitches.config.js +1 -1
  30. package/cjs/utils/dom.js +1 -1
  31. package/esm/avatar/avatar.styles.js +1 -1
  32. package/esm/backdrop/backdrop.js +1 -1
  33. package/esm/backdrop/backdrop.styles.js +1 -1
  34. package/esm/button/button-group.styles.js +1 -1
  35. package/esm/button/button-icon.js +1 -1
  36. package/esm/button/button.js +1 -1
  37. package/esm/button/button.styles.js +1 -1
  38. package/esm/button/utils.js +1 -1
  39. package/esm/card/card.styles.js +1 -1
  40. package/esm/checkbox/checkbox-context.js +1 -1
  41. package/esm/checkbox/checkbox-group.js +1 -1
  42. package/esm/checkbox/checkbox.js +1 -1
  43. package/esm/checkbox/checkbox.styles.js +1 -1
  44. package/esm/checkbox/index.js +1 -1
  45. package/esm/checkbox/utils.js +1 -0
  46. package/esm/css-baseline/css-baseline.js +1 -1
  47. package/esm/index.js +1 -1
  48. package/esm/input/input.js +1 -1
  49. package/esm/link/link.styles.js +1 -1
  50. package/esm/loading/loading.js +1 -1
  51. package/esm/loading/loading.styles.js +1 -1
  52. package/esm/pagination/pagination.styles.js +1 -1
  53. package/esm/progress/progress.styles.js +1 -1
  54. package/esm/table/table-checkbox-cell.js +1 -1
  55. package/esm/table/table-select-all-checkbox.js +1 -1
  56. package/esm/table/table.styles.js +1 -1
  57. package/esm/table/utils.js +1 -1
  58. package/esm/theme/common.js +1 -1
  59. package/esm/theme/stitches.config.js +1 -1
  60. package/esm/utils/dom.js +1 -1
  61. package/package.json +6 -3
  62. package/types/avatar/avatar-group.styles.d.ts +8 -0
  63. package/types/avatar/avatar.styles.d.ts +5 -1
  64. package/types/backdrop/backdrop.styles.d.ts +15 -1
  65. package/types/button/button-group.styles.d.ts +4 -0
  66. package/types/button/button-icon.d.ts +5 -0
  67. package/types/button/button.d.ts +6 -5
  68. package/types/button/button.styles.d.ts +254 -300
  69. package/types/button/utils.d.ts +49 -0
  70. package/types/card/card.styles.d.ts +16 -0
  71. package/types/checkbox/checkbox-context.d.ts +4 -6
  72. package/types/checkbox/checkbox-group.d.ts +13 -12
  73. package/types/checkbox/checkbox.d.ts +13 -20
  74. package/types/checkbox/checkbox.styles.d.ts +1090 -86
  75. package/types/checkbox/index.d.ts +2 -2
  76. package/types/checkbox/utils.d.ts +288 -0
  77. package/types/code/code.styles.d.ts +8 -0
  78. package/types/col/col.styles.d.ts +4 -0
  79. package/types/collapse/collapse.styles.d.ts +24 -0
  80. package/types/container/container.styles.d.ts +4 -0
  81. package/types/divider/divider.styles.d.ts +8 -0
  82. package/types/grid/grid.styles.d.ts +8 -0
  83. package/types/image/image.styles.d.ts +12 -0
  84. package/types/index.d.ts +2 -0
  85. package/types/input/input-password.d.ts +1 -1
  86. package/types/input/input.styles.d.ts +44 -0
  87. package/types/link/link.styles.d.ts +8 -0
  88. package/types/loading/loading.styles.d.ts +25 -1
  89. package/types/modal/modal.d.ts +2 -4
  90. package/types/modal/modal.styles.d.ts +24 -0
  91. package/types/pagination/pagination.styles.d.ts +24 -0
  92. package/types/progress/progress.styles.d.ts +8 -0
  93. package/types/radio/radio.styles.d.ts +24 -0
  94. package/types/row/row.styles.d.ts +4 -0
  95. package/types/snippet/snippet.styles.d.ts +16 -0
  96. package/types/spacer/spacer.styles.d.ts +4 -0
  97. package/types/switch/switch.styles.d.ts +16 -0
  98. package/types/table/table-column-header.d.ts +4 -1
  99. package/types/table/table-sort-icon.d.ts +4 -0
  100. package/types/table/table.styles.d.ts +68 -3
  101. package/types/table/utils.d.ts +29 -0
  102. package/types/text/text.styles.d.ts +4 -0
  103. package/types/theme/common.d.ts +8 -0
  104. package/types/theme/stitches.config.d.ts +52 -0
  105. package/types/theme/types.d.ts +11 -14
  106. package/types/tooltip/tooltip.styles.d.ts +16 -0
  107. package/types/use-drip/use-drip.d.ts +2 -1
  108. package/types/user/user.styles.d.ts +20 -0
  109. package/types/utils/dom.d.ts +18 -0
  110. package/types/utils/drip.d.ts +4 -0
  111. package/umd/nextui.js +18248 -15570
  112. package/umd/nextui.min.js +1 -1
@@ -265,6 +265,10 @@ export declare const StyledText: import("@stitches/react/types/styled-component"
265
265
  };
266
266
  transitions: {
267
267
  default: string;
268
+ button: string;
269
+ avatar: string;
270
+ link: string;
271
+ card: string;
268
272
  };
269
273
  breakpoints: {
270
274
  xs: string;
@@ -110,6 +110,10 @@ export declare const defaultTokens: {
110
110
  };
111
111
  transitions: {
112
112
  default: string;
113
+ button: string;
114
+ avatar: string;
115
+ link: string;
116
+ card: string;
113
117
  };
114
118
  breakpoints: {
115
119
  xs: string;
@@ -970,6 +974,10 @@ declare const _default: {
970
974
  };
971
975
  transitions: {
972
976
  default: string;
977
+ button: string;
978
+ avatar: string;
979
+ link: string;
980
+ card: string;
973
981
  };
974
982
  breakpoints: {
975
983
  xs: string;
@@ -234,6 +234,10 @@ export declare const createThemeBase: <Argument0 extends string | ({
234
234
  } | undefined;
235
235
  transitions?: {
236
236
  default?: string | number | boolean | undefined;
237
+ button?: string | number | boolean | undefined;
238
+ avatar?: string | number | boolean | undefined;
239
+ link?: string | number | boolean | undefined;
240
+ card?: string | number | boolean | undefined;
237
241
  } | undefined;
238
242
  breakpoints?: {
239
243
  xs?: string | number | boolean | undefined;
@@ -479,6 +483,10 @@ export declare const createThemeBase: <Argument0 extends string | ({
479
483
  } | undefined;
480
484
  transitions?: {
481
485
  default?: string | number | boolean | undefined;
486
+ button?: string | number | boolean | undefined;
487
+ avatar?: string | number | boolean | undefined;
488
+ link?: string | number | boolean | undefined;
489
+ card?: string | number | boolean | undefined;
482
490
  } | undefined;
483
491
  breakpoints?: {
484
492
  xs?: string | number | boolean | undefined;
@@ -746,6 +754,10 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
746
754
  };
747
755
  transitions: {
748
756
  default: string;
757
+ button: string;
758
+ avatar: string;
759
+ link: string;
760
+ card: string;
749
761
  };
750
762
  breakpoints: {
751
763
  xs: string;
@@ -1687,6 +1699,10 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
1687
1699
  };
1688
1700
  transitions: {
1689
1701
  default: string;
1702
+ button: string;
1703
+ avatar: string;
1704
+ link: string;
1705
+ card: string;
1690
1706
  };
1691
1707
  breakpoints: {
1692
1708
  xs: string;
@@ -2604,6 +2620,10 @@ export declare const css: <Composers extends (string | import("@stitches/react/t
2604
2620
  };
2605
2621
  transitions: {
2606
2622
  default: string;
2623
+ button: string;
2624
+ avatar: string;
2625
+ link: string;
2626
+ card: string;
2607
2627
  };
2608
2628
  breakpoints: {
2609
2629
  xs: string;
@@ -3552,6 +3572,10 @@ export declare const globalCss: <Styles extends {
3552
3572
  };
3553
3573
  transitions: {
3554
3574
  default: string;
3575
+ button: string;
3576
+ avatar: string;
3577
+ link: string;
3578
+ card: string;
3555
3579
  };
3556
3580
  breakpoints: {
3557
3581
  xs: string;
@@ -4467,6 +4491,10 @@ export declare const globalCss: <Styles extends {
4467
4491
  };
4468
4492
  transitions: {
4469
4493
  default: string;
4494
+ button: string;
4495
+ avatar: string;
4496
+ link: string;
4497
+ card: string;
4470
4498
  };
4471
4499
  breakpoints: {
4472
4500
  xs: string;
@@ -5383,6 +5411,10 @@ export declare const keyframes: (style: {
5383
5411
  };
5384
5412
  transitions: {
5385
5413
  default: string;
5414
+ button: string;
5415
+ avatar: string;
5416
+ link: string;
5417
+ card: string;
5386
5418
  };
5387
5419
  breakpoints: {
5388
5420
  xs: string;
@@ -6290,6 +6322,10 @@ export declare const theme: string & {
6290
6322
  };
6291
6323
  transitions: {
6292
6324
  default: import("@stitches/react/types/theme").Token<"default", string, "transitions", string>;
6325
+ button: import("@stitches/react/types/theme").Token<"button", string, "transitions", string>;
6326
+ avatar: import("@stitches/react/types/theme").Token<"avatar", string, "transitions", string>;
6327
+ link: import("@stitches/react/types/theme").Token<"link", string, "transitions", string>;
6328
+ card: import("@stitches/react/types/theme").Token<"card", string, "transitions", string>;
6293
6329
  };
6294
6330
  breakpoints: {
6295
6331
  xs: import("@stitches/react/types/theme").Token<"xs", string, "breakpoints", string>;
@@ -6550,6 +6586,10 @@ export declare const config: {
6550
6586
  };
6551
6587
  transitions: {
6552
6588
  default: string;
6589
+ button: string;
6590
+ avatar: string;
6591
+ link: string;
6592
+ card: string;
6553
6593
  };
6554
6594
  breakpoints: {
6555
6595
  xs: string;
@@ -7484,6 +7524,10 @@ export declare const sharedFocus: import("@stitches/react/types/styled-component
7484
7524
  };
7485
7525
  transitions: {
7486
7526
  default: string;
7527
+ button: string;
7528
+ avatar: string;
7529
+ link: string;
7530
+ card: string;
7487
7531
  };
7488
7532
  breakpoints: {
7489
7533
  xs: string;
@@ -8417,6 +8461,10 @@ export declare const cssFocusVisible: import("@stitches/react/types/styled-compo
8417
8461
  };
8418
8462
  transitions: {
8419
8463
  default: string;
8464
+ button: string;
8465
+ avatar: string;
8466
+ link: string;
8467
+ card: string;
8420
8468
  };
8421
8469
  breakpoints: {
8422
8470
  xs: string;
@@ -9348,6 +9396,10 @@ export declare const sharedVisuallyHidden: import("@stitches/react/types/styled-
9348
9396
  };
9349
9397
  transitions: {
9350
9398
  default: string;
9399
+ button: string;
9400
+ avatar: string;
9401
+ link: string;
9402
+ card: string;
9351
9403
  };
9352
9404
  breakpoints: {
9353
9405
  xs: string;
@@ -4,15 +4,6 @@ import commonTheme from './common';
4
4
  declare namespace ConfigType {
5
5
  /** Theme interface. */
6
6
  type Theme<T = {}> = {
7
- borderStyles?: {
8
- [token in number | string]: boolean | number | string;
9
- };
10
- borderWidths?: {
11
- [token in number | string]: boolean | number | string;
12
- };
13
- colors?: {
14
- [token in number | string]: boolean | number | string;
15
- };
16
7
  fonts?: {
17
8
  [token in number | string]: boolean | number | string;
18
9
  };
@@ -22,28 +13,34 @@ declare namespace ConfigType {
22
13
  fontWeights?: {
23
14
  [token in number | string]: boolean | number | string;
24
15
  };
16
+ lineHeights?: {
17
+ [token in number | string]: boolean | number | string;
18
+ };
25
19
  letterSpacings?: {
26
20
  [token in number | string]: boolean | number | string;
27
21
  };
28
- lineHeights?: {
22
+ space?: {
29
23
  [token in number | string]: boolean | number | string;
30
24
  };
31
25
  radii?: {
32
26
  [token in number | string]: boolean | number | string;
33
27
  };
34
- shadows?: {
28
+ zIndices?: {
35
29
  [token in number | string]: boolean | number | string;
36
30
  };
37
- sizes?: {
31
+ borderWeights?: {
38
32
  [token in number | string]: boolean | number | string;
39
33
  };
40
- space?: {
34
+ colors?: {
35
+ [token in number | string]: boolean | number | string;
36
+ };
37
+ shadows?: {
41
38
  [token in number | string]: boolean | number | string;
42
39
  };
43
40
  transitions?: {
44
41
  [token in number | string]: boolean | number | string;
45
42
  };
46
- zIndices?: {
43
+ breakpoints?: {
47
44
  [token in number | string]: boolean | number | string;
48
45
  };
49
46
  } & {
@@ -263,6 +263,10 @@ export declare const StyledTooltipTrigger: import("@stitches/react/types/styled-
263
263
  };
264
264
  transitions: {
265
265
  default: string;
266
+ button: string;
267
+ avatar: string;
268
+ link: string;
269
+ card: string;
266
270
  };
267
271
  breakpoints: {
268
272
  xs: string;
@@ -1194,6 +1198,10 @@ export declare const StyledTooltipArrow: import("@stitches/react/types/styled-co
1194
1198
  };
1195
1199
  transitions: {
1196
1200
  default: string;
1201
+ button: string;
1202
+ avatar: string;
1203
+ link: string;
1204
+ card: string;
1197
1205
  };
1198
1206
  breakpoints: {
1199
1207
  xs: string;
@@ -2127,6 +2135,10 @@ export declare const StyledTooltip: import("@stitches/react/types/styled-compone
2127
2135
  };
2128
2136
  transitions: {
2129
2137
  default: string;
2138
+ button: string;
2139
+ avatar: string;
2140
+ link: string;
2141
+ card: string;
2130
2142
  };
2131
2143
  breakpoints: {
2132
2144
  xs: string;
@@ -3064,6 +3076,10 @@ export declare const StyledTooltipContent: import("@stitches/react/types/styled-
3064
3076
  };
3065
3077
  transitions: {
3066
3078
  default: string;
3079
+ button: string;
3080
+ avatar: string;
3081
+ link: string;
3082
+ card: string;
3067
3083
  };
3068
3084
  breakpoints: {
3069
3085
  xs: string;
@@ -1,9 +1,10 @@
1
+ import { PressEvent } from '@react-types/shared';
1
2
  import React from 'react';
2
3
  declare const useDrip: (initialValue: boolean | undefined, ref: React.RefObject<HTMLElement>) => {
3
4
  visible: boolean;
4
5
  x: number;
5
6
  y: number;
6
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
7
+ onClick: (event: React.MouseEvent<HTMLElement> | PressEvent) => void;
7
8
  onCompleted: () => void;
8
9
  };
9
10
  export default useDrip;
@@ -262,6 +262,10 @@ export declare const StyledUser: import("@stitches/react/types/styled-component"
262
262
  };
263
263
  transitions: {
264
264
  default: string;
265
+ button: string;
266
+ avatar: string;
267
+ link: string;
268
+ card: string;
265
269
  };
266
270
  breakpoints: {
267
271
  xs: string;
@@ -1193,6 +1197,10 @@ export declare const StyledUserInfo: import("@stitches/react/types/styled-compon
1193
1197
  };
1194
1198
  transitions: {
1195
1199
  default: string;
1200
+ button: string;
1201
+ avatar: string;
1202
+ link: string;
1203
+ card: string;
1196
1204
  };
1197
1205
  breakpoints: {
1198
1206
  xs: string;
@@ -2124,6 +2132,10 @@ export declare const StyledUserName: import("@stitches/react/types/styled-compon
2124
2132
  };
2125
2133
  transitions: {
2126
2134
  default: string;
2135
+ button: string;
2136
+ avatar: string;
2137
+ link: string;
2138
+ card: string;
2127
2139
  };
2128
2140
  breakpoints: {
2129
2141
  xs: string;
@@ -3055,6 +3067,10 @@ export declare const StyledUserDesc: import("@stitches/react/types/styled-compon
3055
3067
  };
3056
3068
  transitions: {
3057
3069
  default: string;
3070
+ button: string;
3071
+ avatar: string;
3072
+ link: string;
3073
+ card: string;
3058
3074
  };
3059
3075
  breakpoints: {
3060
3076
  xs: string;
@@ -3986,6 +4002,10 @@ export declare const StyledUserLink: import("@stitches/react/types/styled-compon
3986
4002
  };
3987
4003
  transitions: {
3988
4004
  default: string;
4005
+ button: string;
4006
+ avatar: string;
4007
+ link: string;
4008
+ card: string;
3989
4009
  };
3990
4010
  breakpoints: {
3991
4011
  xs: string;
@@ -0,0 +1,18 @@
1
+ import { DOMRef, DOMRefValue, FocusableRef, FocusableRefValue } from '@react-types/shared';
2
+ import { RefObject } from 'react';
3
+ export declare function canUseDOM(): boolean;
4
+ export declare const isBrowser: boolean;
5
+ declare function getUserAgentBrowser(navigator: Navigator): "Chrome for iOS" | "Edge" | "Silk" | "Chrome" | "Firefox" | "AOSP" | "IE" | "Safari" | "WebKit" | null;
6
+ export declare type UserAgentBrowser = NonNullable<ReturnType<typeof getUserAgentBrowser>>;
7
+ declare function getUserAgentOS(navigator: Navigator): "Android" | "iOS" | "Windows" | "Mac" | "Chrome OS" | "Firefox OS" | null;
8
+ export declare type UserAgentOS = NonNullable<ReturnType<typeof getUserAgentOS>>;
9
+ export declare function detectDeviceType(navigator: Navigator): "tablet" | "phone" | "desktop";
10
+ export declare type UserAgentDeviceType = NonNullable<ReturnType<typeof detectDeviceType>>;
11
+ export declare function detectOS(os: UserAgentOS): boolean;
12
+ export declare function detectBrowser(browser: UserAgentBrowser): boolean;
13
+ export declare function detectTouch(): boolean;
14
+ export declare function createDOMRef<T extends HTMLElement = HTMLElement>(ref: RefObject<T>): DOMRefValue<T>;
15
+ export declare function createFocusableRef<T extends HTMLElement = HTMLElement>(domRef: RefObject<T>, focusableRef?: RefObject<HTMLElement>): FocusableRefValue<T>;
16
+ export declare function useDOMRef<T extends HTMLElement = HTMLElement>(ref: DOMRef<T>): RefObject<T>;
17
+ export declare function useFocusableRef<T extends HTMLElement = HTMLElement>(ref: FocusableRef<T>, focusableRef?: RefObject<HTMLElement>): RefObject<T>;
18
+ export {};
@@ -278,6 +278,10 @@ export declare const StyledDrip: import("@stitches/react/types/styled-component"
278
278
  };
279
279
  transitions: {
280
280
  default: string;
281
+ button: string;
282
+ avatar: string;
283
+ link: string;
284
+ card: string;
281
285
  };
282
286
  breakpoints: {
283
287
  xs: string;