@nextui-org/react 1.0.2-alpha.2 → 1.0.2-beta.1

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 (102) hide show
  1. package/README.md +1 -2
  2. package/cjs/avatar/avatar-group.styles.d.ts +66 -0
  3. package/cjs/avatar/avatar.styles.d.ts +33 -0
  4. package/cjs/backdrop/backdrop.d.ts +1 -1
  5. package/cjs/backdrop/backdrop.styles.d.ts +99 -0
  6. package/cjs/button/button-group.styles.d.ts +33 -0
  7. package/cjs/button/button-icon.d.ts +33 -0
  8. package/cjs/button/button.styles.d.ts +34 -1
  9. package/cjs/button/button.styles.js +36 -5
  10. package/cjs/card/card.styles.d.ts +132 -0
  11. package/cjs/card/card.styles.js +3 -3
  12. package/cjs/checkbox/checkbox.js +1 -1
  13. package/cjs/checkbox/checkbox.styles.d.ts +297 -0
  14. package/cjs/code/code.styles.d.ts +66 -0
  15. package/cjs/col/col.styles.d.ts +33 -0
  16. package/cjs/collapse/collapse.d.ts +3 -1
  17. package/cjs/collapse/collapse.js +2 -1
  18. package/cjs/collapse/collapse.styles.d.ts +165 -0
  19. package/cjs/collapse/collapse.styles.js +4 -2
  20. package/cjs/container/container.styles.d.ts +33 -0
  21. package/cjs/divider/divider.styles.d.ts +66 -0
  22. package/cjs/grid/grid.styles.d.ts +66 -0
  23. package/cjs/image/image.styles.d.ts +99 -0
  24. package/cjs/input/input.js +1 -0
  25. package/cjs/input/input.styles.d.ts +363 -0
  26. package/cjs/link/link.styles.d.ts +66 -0
  27. package/cjs/loading/loading.styles.d.ts +198 -0
  28. package/cjs/modal/modal.styles.d.ts +198 -0
  29. package/cjs/pagination/pagination.styles.d.ts +198 -0
  30. package/cjs/progress/progress.styles.d.ts +66 -0
  31. package/cjs/radio/radio.styles.d.ts +198 -0
  32. package/cjs/row/row.styles.d.ts +33 -0
  33. package/cjs/snippet/snippet.styles.d.ts +132 -0
  34. package/cjs/spacer/spacer.styles.d.ts +33 -0
  35. package/cjs/switch/switch.styles.d.ts +132 -0
  36. package/cjs/text/child.d.ts +2 -0
  37. package/cjs/text/text.styles.d.ts +33 -0
  38. package/cjs/theme/common.d.ts +60 -0
  39. package/cjs/theme/common.js +13 -0
  40. package/cjs/theme/stitches.config.d.ts +298 -1
  41. package/cjs/theme/stitches.config.js +3 -2
  42. package/cjs/theme/theme-provider.js +3 -7
  43. package/cjs/theme/types.d.ts +1 -0
  44. package/cjs/tooltip/tooltip.d.ts +4 -1
  45. package/cjs/tooltip/tooltip.js +4 -2
  46. package/cjs/tooltip/tooltip.styles.d.ts +132 -0
  47. package/cjs/user/user.styles.d.ts +165 -0
  48. package/cjs/utils/drip.d.ts +33 -0
  49. package/esm/avatar/avatar-group.styles.d.ts +66 -0
  50. package/esm/avatar/avatar.styles.d.ts +33 -0
  51. package/esm/backdrop/backdrop.d.ts +1 -1
  52. package/esm/backdrop/backdrop.styles.d.ts +99 -0
  53. package/esm/button/button-group.styles.d.ts +33 -0
  54. package/esm/button/button-icon.d.ts +33 -0
  55. package/esm/button/button.styles.d.ts +34 -1
  56. package/esm/button/button.styles.js +36 -5
  57. package/esm/card/card.styles.d.ts +132 -0
  58. package/esm/card/card.styles.js +3 -3
  59. package/esm/checkbox/checkbox.js +1 -1
  60. package/esm/checkbox/checkbox.styles.d.ts +297 -0
  61. package/esm/code/code.styles.d.ts +66 -0
  62. package/esm/col/col.styles.d.ts +33 -0
  63. package/esm/collapse/collapse.d.ts +3 -1
  64. package/esm/collapse/collapse.js +2 -1
  65. package/esm/collapse/collapse.styles.d.ts +165 -0
  66. package/esm/collapse/collapse.styles.js +4 -2
  67. package/esm/container/container.styles.d.ts +33 -0
  68. package/esm/divider/divider.styles.d.ts +66 -0
  69. package/esm/grid/grid.styles.d.ts +66 -0
  70. package/esm/image/image.styles.d.ts +99 -0
  71. package/esm/input/input.js +1 -0
  72. package/esm/input/input.styles.d.ts +363 -0
  73. package/esm/link/link.styles.d.ts +66 -0
  74. package/esm/loading/loading.styles.d.ts +198 -0
  75. package/esm/modal/modal.styles.d.ts +198 -0
  76. package/esm/pagination/pagination.styles.d.ts +198 -0
  77. package/esm/progress/progress.styles.d.ts +66 -0
  78. package/esm/radio/radio.styles.d.ts +198 -0
  79. package/esm/row/row.styles.d.ts +33 -0
  80. package/esm/snippet/snippet.styles.d.ts +132 -0
  81. package/esm/spacer/spacer.styles.d.ts +33 -0
  82. package/esm/switch/switch.styles.d.ts +132 -0
  83. package/esm/text/child.d.ts +2 -0
  84. package/esm/text/text.styles.d.ts +33 -0
  85. package/esm/theme/common.d.ts +60 -0
  86. package/esm/theme/common.js +13 -0
  87. package/esm/theme/stitches.config.d.ts +298 -1
  88. package/esm/theme/stitches.config.js +3 -2
  89. package/esm/theme/theme-provider.js +3 -7
  90. package/esm/theme/types.d.ts +1 -0
  91. package/esm/tooltip/tooltip.d.ts +4 -1
  92. package/esm/tooltip/tooltip.js +4 -2
  93. package/esm/tooltip/tooltip.styles.d.ts +132 -0
  94. package/esm/user/user.styles.d.ts +165 -0
  95. package/esm/utils/drip.d.ts +33 -0
  96. package/package.json +1 -1
  97. package/umd/nextui.js +92 -90
  98. package/umd/nextui.min.js +1 -1
  99. package/cjs/theme/ssr-provider.d.ts +0 -7
  100. package/cjs/theme/ssr-provider.js +0 -51
  101. package/esm/theme/ssr-provider.d.ts +0 -7
  102. package/esm/theme/ssr-provider.js +0 -51
@@ -841,6 +841,22 @@ export declare const StyledSwitchContainer: import("@stitches/react/types/styled
841
841
  readonly [$$PropertyValue]: "width";
842
842
  };
843
843
  };
844
+ minSize: (value: {
845
+ readonly [$$PropertyValue]: "width";
846
+ }) => {
847
+ minWidth: {
848
+ readonly [$$PropertyValue]: "width";
849
+ };
850
+ minHeight: {
851
+ readonly [$$PropertyValue]: "width";
852
+ };
853
+ width: {
854
+ readonly [$$PropertyValue]: "width";
855
+ };
856
+ height: {
857
+ readonly [$$PropertyValue]: "width";
858
+ };
859
+ };
844
860
  sizeMin: (value: {
845
861
  readonly [$$PropertyValue]: "width";
846
862
  }) => {
@@ -857,6 +873,16 @@ export declare const StyledSwitchContainer: import("@stitches/react/types/styled
857
873
  readonly [$$PropertyValue]: "width";
858
874
  };
859
875
  };
876
+ maxSize: (value: {
877
+ readonly [$$PropertyValue]: "width";
878
+ }) => {
879
+ maxWidth: {
880
+ readonly [$$PropertyValue]: "width";
881
+ };
882
+ maxHeight: {
883
+ readonly [$$PropertyValue]: "width";
884
+ };
885
+ };
860
886
  sizeMax: (value: {
861
887
  readonly [$$PropertyValue]: "width";
862
888
  }) => {
@@ -887,6 +913,13 @@ export declare const StyledSwitchContainer: import("@stitches/react/types/styled
887
913
  }) => {
888
914
  backgroundImage: string;
889
915
  };
916
+ tdl: (value: {
917
+ readonly [$$PropertyValue]: "textDecorationLine";
918
+ }) => {
919
+ textDecorationLine: {
920
+ readonly [$$PropertyValue]: "textDecorationLine";
921
+ };
922
+ };
890
923
  textGradient: (value: {
891
924
  readonly [$$PropertyValue]: "backgroundImage";
892
925
  }) => {
@@ -1731,6 +1764,22 @@ export declare const StyledSwitchInput: import("@stitches/react/types/styled-com
1731
1764
  readonly [$$PropertyValue]: "width";
1732
1765
  };
1733
1766
  };
1767
+ minSize: (value: {
1768
+ readonly [$$PropertyValue]: "width";
1769
+ }) => {
1770
+ minWidth: {
1771
+ readonly [$$PropertyValue]: "width";
1772
+ };
1773
+ minHeight: {
1774
+ readonly [$$PropertyValue]: "width";
1775
+ };
1776
+ width: {
1777
+ readonly [$$PropertyValue]: "width";
1778
+ };
1779
+ height: {
1780
+ readonly [$$PropertyValue]: "width";
1781
+ };
1782
+ };
1734
1783
  sizeMin: (value: {
1735
1784
  readonly [$$PropertyValue]: "width";
1736
1785
  }) => {
@@ -1747,6 +1796,16 @@ export declare const StyledSwitchInput: import("@stitches/react/types/styled-com
1747
1796
  readonly [$$PropertyValue]: "width";
1748
1797
  };
1749
1798
  };
1799
+ maxSize: (value: {
1800
+ readonly [$$PropertyValue]: "width";
1801
+ }) => {
1802
+ maxWidth: {
1803
+ readonly [$$PropertyValue]: "width";
1804
+ };
1805
+ maxHeight: {
1806
+ readonly [$$PropertyValue]: "width";
1807
+ };
1808
+ };
1750
1809
  sizeMax: (value: {
1751
1810
  readonly [$$PropertyValue]: "width";
1752
1811
  }) => {
@@ -1777,6 +1836,13 @@ export declare const StyledSwitchInput: import("@stitches/react/types/styled-com
1777
1836
  }) => {
1778
1837
  backgroundImage: string;
1779
1838
  };
1839
+ tdl: (value: {
1840
+ readonly [$$PropertyValue]: "textDecorationLine";
1841
+ }) => {
1842
+ textDecorationLine: {
1843
+ readonly [$$PropertyValue]: "textDecorationLine";
1844
+ };
1845
+ };
1780
1846
  textGradient: (value: {
1781
1847
  readonly [$$PropertyValue]: "backgroundImage";
1782
1848
  }) => {
@@ -2621,6 +2687,22 @@ export declare const StyledSwitchCircle: import("@stitches/react/types/styled-co
2621
2687
  readonly [$$PropertyValue]: "width";
2622
2688
  };
2623
2689
  };
2690
+ minSize: (value: {
2691
+ readonly [$$PropertyValue]: "width";
2692
+ }) => {
2693
+ minWidth: {
2694
+ readonly [$$PropertyValue]: "width";
2695
+ };
2696
+ minHeight: {
2697
+ readonly [$$PropertyValue]: "width";
2698
+ };
2699
+ width: {
2700
+ readonly [$$PropertyValue]: "width";
2701
+ };
2702
+ height: {
2703
+ readonly [$$PropertyValue]: "width";
2704
+ };
2705
+ };
2624
2706
  sizeMin: (value: {
2625
2707
  readonly [$$PropertyValue]: "width";
2626
2708
  }) => {
@@ -2637,6 +2719,16 @@ export declare const StyledSwitchCircle: import("@stitches/react/types/styled-co
2637
2719
  readonly [$$PropertyValue]: "width";
2638
2720
  };
2639
2721
  };
2722
+ maxSize: (value: {
2723
+ readonly [$$PropertyValue]: "width";
2724
+ }) => {
2725
+ maxWidth: {
2726
+ readonly [$$PropertyValue]: "width";
2727
+ };
2728
+ maxHeight: {
2729
+ readonly [$$PropertyValue]: "width";
2730
+ };
2731
+ };
2640
2732
  sizeMax: (value: {
2641
2733
  readonly [$$PropertyValue]: "width";
2642
2734
  }) => {
@@ -2667,6 +2759,13 @@ export declare const StyledSwitchCircle: import("@stitches/react/types/styled-co
2667
2759
  }) => {
2668
2760
  backgroundImage: string;
2669
2761
  };
2762
+ tdl: (value: {
2763
+ readonly [$$PropertyValue]: "textDecorationLine";
2764
+ }) => {
2765
+ textDecorationLine: {
2766
+ readonly [$$PropertyValue]: "textDecorationLine";
2767
+ };
2768
+ };
2670
2769
  textGradient: (value: {
2671
2770
  readonly [$$PropertyValue]: "backgroundImage";
2672
2771
  }) => {
@@ -3518,6 +3617,22 @@ export declare const StyledSwitch: import("@stitches/react/types/styled-componen
3518
3617
  readonly [$$PropertyValue]: "width";
3519
3618
  };
3520
3619
  };
3620
+ minSize: (value: {
3621
+ readonly [$$PropertyValue]: "width";
3622
+ }) => {
3623
+ minWidth: {
3624
+ readonly [$$PropertyValue]: "width";
3625
+ };
3626
+ minHeight: {
3627
+ readonly [$$PropertyValue]: "width";
3628
+ };
3629
+ width: {
3630
+ readonly [$$PropertyValue]: "width";
3631
+ };
3632
+ height: {
3633
+ readonly [$$PropertyValue]: "width";
3634
+ };
3635
+ };
3521
3636
  sizeMin: (value: {
3522
3637
  readonly [$$PropertyValue]: "width";
3523
3638
  }) => {
@@ -3534,6 +3649,16 @@ export declare const StyledSwitch: import("@stitches/react/types/styled-componen
3534
3649
  readonly [$$PropertyValue]: "width";
3535
3650
  };
3536
3651
  };
3652
+ maxSize: (value: {
3653
+ readonly [$$PropertyValue]: "width";
3654
+ }) => {
3655
+ maxWidth: {
3656
+ readonly [$$PropertyValue]: "width";
3657
+ };
3658
+ maxHeight: {
3659
+ readonly [$$PropertyValue]: "width";
3660
+ };
3661
+ };
3537
3662
  sizeMax: (value: {
3538
3663
  readonly [$$PropertyValue]: "width";
3539
3664
  }) => {
@@ -3564,6 +3689,13 @@ export declare const StyledSwitch: import("@stitches/react/types/styled-componen
3564
3689
  }) => {
3565
3690
  backgroundImage: string;
3566
3691
  };
3692
+ tdl: (value: {
3693
+ readonly [$$PropertyValue]: "textDecorationLine";
3694
+ }) => {
3695
+ textDecorationLine: {
3696
+ readonly [$$PropertyValue]: "textDecorationLine";
3697
+ };
3698
+ };
3567
3699
  textGradient: (value: {
3568
3700
  readonly [$$PropertyValue]: "backgroundImage";
3569
3701
  }) => {
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { CSS } from '../theme/stitches.config';
3
3
  import { SimpleColors, TextTransforms } from '../utils/prop-types';
4
4
  import { TextVariantsProps } from './text.styles';
5
+ declare type As = keyof JSX.IntrinsicElements | React.ComponentType<any>;
5
6
  export interface Props {
6
7
  tag: keyof JSX.IntrinsicElements;
7
8
  color?: SimpleColors | string;
@@ -9,6 +10,7 @@ export interface Props {
9
10
  margin?: string | number;
10
11
  transform?: TextTransforms;
11
12
  css?: CSS;
13
+ as?: As;
12
14
  }
13
15
  declare const defaultProps: {
14
16
  color: string;
@@ -837,6 +837,22 @@ export declare const StyledText: import("@stitches/react/types/styled-component"
837
837
  readonly [$$PropertyValue]: "width";
838
838
  };
839
839
  };
840
+ minSize: (value: {
841
+ readonly [$$PropertyValue]: "width";
842
+ }) => {
843
+ minWidth: {
844
+ readonly [$$PropertyValue]: "width";
845
+ };
846
+ minHeight: {
847
+ readonly [$$PropertyValue]: "width";
848
+ };
849
+ width: {
850
+ readonly [$$PropertyValue]: "width";
851
+ };
852
+ height: {
853
+ readonly [$$PropertyValue]: "width";
854
+ };
855
+ };
840
856
  sizeMin: (value: {
841
857
  readonly [$$PropertyValue]: "width";
842
858
  }) => {
@@ -853,6 +869,16 @@ export declare const StyledText: import("@stitches/react/types/styled-component"
853
869
  readonly [$$PropertyValue]: "width";
854
870
  };
855
871
  };
872
+ maxSize: (value: {
873
+ readonly [$$PropertyValue]: "width";
874
+ }) => {
875
+ maxWidth: {
876
+ readonly [$$PropertyValue]: "width";
877
+ };
878
+ maxHeight: {
879
+ readonly [$$PropertyValue]: "width";
880
+ };
881
+ };
856
882
  sizeMax: (value: {
857
883
  readonly [$$PropertyValue]: "width";
858
884
  }) => {
@@ -883,6 +909,13 @@ export declare const StyledText: import("@stitches/react/types/styled-component"
883
909
  }) => {
884
910
  backgroundImage: string;
885
911
  };
912
+ tdl: (value: {
913
+ readonly [$$PropertyValue]: "textDecorationLine";
914
+ }) => {
915
+ textDecorationLine: {
916
+ readonly [$$PropertyValue]: "textDecorationLine";
917
+ };
918
+ };
886
919
  textGradient: (value: {
887
920
  readonly [$$PropertyValue]: "backgroundImage";
888
921
  }) => {
@@ -551,6 +551,20 @@ export declare const defaultUtils: {
551
551
  readonly [$$PropertyValue]: "width";
552
552
  };
553
553
  };
554
+ minSize: (value: Stitches.PropertyValue<'width'>) => {
555
+ minWidth: {
556
+ readonly [$$PropertyValue]: "width";
557
+ };
558
+ minHeight: {
559
+ readonly [$$PropertyValue]: "width";
560
+ };
561
+ width: {
562
+ readonly [$$PropertyValue]: "width";
563
+ };
564
+ height: {
565
+ readonly [$$PropertyValue]: "width";
566
+ };
567
+ };
554
568
  sizeMin: (value: Stitches.PropertyValue<'width'>) => {
555
569
  minWidth: {
556
570
  readonly [$$PropertyValue]: "width";
@@ -565,6 +579,14 @@ export declare const defaultUtils: {
565
579
  readonly [$$PropertyValue]: "width";
566
580
  };
567
581
  };
582
+ maxSize: (value: Stitches.PropertyValue<'width'>) => {
583
+ maxWidth: {
584
+ readonly [$$PropertyValue]: "width";
585
+ };
586
+ maxHeight: {
587
+ readonly [$$PropertyValue]: "width";
588
+ };
589
+ };
568
590
  sizeMax: (value: Stitches.PropertyValue<'width'>) => {
569
591
  maxWidth: {
570
592
  readonly [$$PropertyValue]: "width";
@@ -587,6 +609,11 @@ export declare const defaultUtils: {
587
609
  linearGradient: (value: Stitches.PropertyValue<'backgroundImage'>) => {
588
610
  backgroundImage: string;
589
611
  };
612
+ tdl: (value: Stitches.PropertyValue<'textDecorationLine'>) => {
613
+ textDecorationLine: {
614
+ readonly [$$PropertyValue]: "textDecorationLine";
615
+ };
616
+ };
590
617
  textGradient: (value: Stitches.PropertyValue<'backgroundImage'>) => {
591
618
  backgroundImage: string;
592
619
  WebkitBackgroundClip: string;
@@ -1396,6 +1423,22 @@ declare const _default: {
1396
1423
  readonly [$$PropertyValue]: "width";
1397
1424
  };
1398
1425
  };
1426
+ minSize: (value: {
1427
+ readonly [$$PropertyValue]: "width";
1428
+ }) => {
1429
+ minWidth: {
1430
+ readonly [$$PropertyValue]: "width";
1431
+ };
1432
+ minHeight: {
1433
+ readonly [$$PropertyValue]: "width";
1434
+ };
1435
+ width: {
1436
+ readonly [$$PropertyValue]: "width";
1437
+ };
1438
+ height: {
1439
+ readonly [$$PropertyValue]: "width";
1440
+ };
1441
+ };
1399
1442
  sizeMin: (value: {
1400
1443
  readonly [$$PropertyValue]: "width";
1401
1444
  }) => {
@@ -1412,6 +1455,16 @@ declare const _default: {
1412
1455
  readonly [$$PropertyValue]: "width";
1413
1456
  };
1414
1457
  };
1458
+ maxSize: (value: {
1459
+ readonly [$$PropertyValue]: "width";
1460
+ }) => {
1461
+ maxWidth: {
1462
+ readonly [$$PropertyValue]: "width";
1463
+ };
1464
+ maxHeight: {
1465
+ readonly [$$PropertyValue]: "width";
1466
+ };
1467
+ };
1415
1468
  sizeMax: (value: {
1416
1469
  readonly [$$PropertyValue]: "width";
1417
1470
  }) => {
@@ -1442,6 +1495,13 @@ declare const _default: {
1442
1495
  }) => {
1443
1496
  backgroundImage: string;
1444
1497
  };
1498
+ tdl: (value: {
1499
+ readonly [$$PropertyValue]: "textDecorationLine";
1500
+ }) => {
1501
+ textDecorationLine: {
1502
+ readonly [$$PropertyValue]: "textDecorationLine";
1503
+ };
1504
+ };
1445
1505
  textGradient: (value: {
1446
1506
  readonly [$$PropertyValue]: "backgroundImage";
1447
1507
  }) => {
@@ -431,12 +431,22 @@ const defaultUtils = {
431
431
  width: value,
432
432
  height: value
433
433
  }),
434
+ minSize: value => ({
435
+ minWidth: value,
436
+ minHeight: value,
437
+ width: value,
438
+ height: value
439
+ }),
434
440
  sizeMin: value => ({
435
441
  minWidth: value,
436
442
  minHeight: value,
437
443
  width: value,
438
444
  height: value
439
445
  }),
446
+ maxSize: value => ({
447
+ maxWidth: value,
448
+ maxHeight: value
449
+ }),
440
450
  sizeMax: value => ({
441
451
  maxWidth: value,
442
452
  maxHeight: value
@@ -451,6 +461,9 @@ const defaultUtils = {
451
461
  linearGradient: value => ({
452
462
  backgroundImage: `linear-gradient(${value})`
453
463
  }),
464
+ tdl: value => ({
465
+ textDecorationLine: value
466
+ }),
454
467
  textGradient: value => ({
455
468
  backgroundImage: `linear-gradient(${value})`,
456
469
  WebkitBackgroundClip: 'text',