@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.
- package/README.md +1 -2
- package/cjs/avatar/avatar-group.styles.d.ts +66 -0
- package/cjs/avatar/avatar.styles.d.ts +33 -0
- package/cjs/backdrop/backdrop.d.ts +1 -1
- package/cjs/backdrop/backdrop.styles.d.ts +99 -0
- package/cjs/button/button-group.styles.d.ts +33 -0
- package/cjs/button/button-icon.d.ts +33 -0
- package/cjs/button/button.styles.d.ts +34 -1
- package/cjs/button/button.styles.js +36 -5
- package/cjs/card/card.styles.d.ts +132 -0
- package/cjs/card/card.styles.js +3 -3
- package/cjs/checkbox/checkbox.js +1 -1
- package/cjs/checkbox/checkbox.styles.d.ts +297 -0
- package/cjs/code/code.styles.d.ts +66 -0
- package/cjs/col/col.styles.d.ts +33 -0
- package/cjs/collapse/collapse.d.ts +3 -1
- package/cjs/collapse/collapse.js +2 -1
- package/cjs/collapse/collapse.styles.d.ts +165 -0
- package/cjs/collapse/collapse.styles.js +4 -2
- package/cjs/container/container.styles.d.ts +33 -0
- package/cjs/divider/divider.styles.d.ts +66 -0
- package/cjs/grid/grid.styles.d.ts +66 -0
- package/cjs/image/image.styles.d.ts +99 -0
- package/cjs/input/input.js +1 -0
- package/cjs/input/input.styles.d.ts +363 -0
- package/cjs/link/link.styles.d.ts +66 -0
- package/cjs/loading/loading.styles.d.ts +198 -0
- package/cjs/modal/modal.styles.d.ts +198 -0
- package/cjs/pagination/pagination.styles.d.ts +198 -0
- package/cjs/progress/progress.styles.d.ts +66 -0
- package/cjs/radio/radio.styles.d.ts +198 -0
- package/cjs/row/row.styles.d.ts +33 -0
- package/cjs/snippet/snippet.styles.d.ts +132 -0
- package/cjs/spacer/spacer.styles.d.ts +33 -0
- package/cjs/switch/switch.styles.d.ts +132 -0
- package/cjs/text/child.d.ts +2 -0
- package/cjs/text/text.styles.d.ts +33 -0
- package/cjs/theme/common.d.ts +60 -0
- package/cjs/theme/common.js +13 -0
- package/cjs/theme/stitches.config.d.ts +298 -1
- package/cjs/theme/stitches.config.js +3 -2
- package/cjs/theme/theme-provider.js +3 -7
- package/cjs/theme/types.d.ts +1 -0
- package/cjs/tooltip/tooltip.d.ts +4 -1
- package/cjs/tooltip/tooltip.js +4 -2
- package/cjs/tooltip/tooltip.styles.d.ts +132 -0
- package/cjs/user/user.styles.d.ts +165 -0
- package/cjs/utils/drip.d.ts +33 -0
- package/esm/avatar/avatar-group.styles.d.ts +66 -0
- package/esm/avatar/avatar.styles.d.ts +33 -0
- package/esm/backdrop/backdrop.d.ts +1 -1
- package/esm/backdrop/backdrop.styles.d.ts +99 -0
- package/esm/button/button-group.styles.d.ts +33 -0
- package/esm/button/button-icon.d.ts +33 -0
- package/esm/button/button.styles.d.ts +34 -1
- package/esm/button/button.styles.js +36 -5
- package/esm/card/card.styles.d.ts +132 -0
- package/esm/card/card.styles.js +3 -3
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/checkbox/checkbox.styles.d.ts +297 -0
- package/esm/code/code.styles.d.ts +66 -0
- package/esm/col/col.styles.d.ts +33 -0
- package/esm/collapse/collapse.d.ts +3 -1
- package/esm/collapse/collapse.js +2 -1
- package/esm/collapse/collapse.styles.d.ts +165 -0
- package/esm/collapse/collapse.styles.js +4 -2
- package/esm/container/container.styles.d.ts +33 -0
- package/esm/divider/divider.styles.d.ts +66 -0
- package/esm/grid/grid.styles.d.ts +66 -0
- package/esm/image/image.styles.d.ts +99 -0
- package/esm/input/input.js +1 -0
- package/esm/input/input.styles.d.ts +363 -0
- package/esm/link/link.styles.d.ts +66 -0
- package/esm/loading/loading.styles.d.ts +198 -0
- package/esm/modal/modal.styles.d.ts +198 -0
- package/esm/pagination/pagination.styles.d.ts +198 -0
- package/esm/progress/progress.styles.d.ts +66 -0
- package/esm/radio/radio.styles.d.ts +198 -0
- package/esm/row/row.styles.d.ts +33 -0
- package/esm/snippet/snippet.styles.d.ts +132 -0
- package/esm/spacer/spacer.styles.d.ts +33 -0
- package/esm/switch/switch.styles.d.ts +132 -0
- package/esm/text/child.d.ts +2 -0
- package/esm/text/text.styles.d.ts +33 -0
- package/esm/theme/common.d.ts +60 -0
- package/esm/theme/common.js +13 -0
- package/esm/theme/stitches.config.d.ts +298 -1
- package/esm/theme/stitches.config.js +3 -2
- package/esm/theme/theme-provider.js +3 -7
- package/esm/theme/types.d.ts +1 -0
- package/esm/tooltip/tooltip.d.ts +4 -1
- package/esm/tooltip/tooltip.js +4 -2
- package/esm/tooltip/tooltip.styles.d.ts +132 -0
- package/esm/user/user.styles.d.ts +165 -0
- package/esm/utils/drip.d.ts +33 -0
- package/package.json +1 -1
- package/umd/nextui.js +92 -90
- package/umd/nextui.min.js +1 -1
- package/cjs/theme/ssr-provider.d.ts +0 -7
- package/cjs/theme/ssr-provider.js +0 -51
- package/esm/theme/ssr-provider.d.ts +0 -7
- package/esm/theme/ssr-provider.js +0 -51
|
@@ -824,6 +824,22 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
824
824
|
readonly [$$PropertyValue]: "width";
|
|
825
825
|
};
|
|
826
826
|
};
|
|
827
|
+
minSize: (value: {
|
|
828
|
+
readonly [$$PropertyValue]: "width";
|
|
829
|
+
}) => {
|
|
830
|
+
minWidth: {
|
|
831
|
+
readonly [$$PropertyValue]: "width";
|
|
832
|
+
};
|
|
833
|
+
minHeight: {
|
|
834
|
+
readonly [$$PropertyValue]: "width";
|
|
835
|
+
};
|
|
836
|
+
width: {
|
|
837
|
+
readonly [$$PropertyValue]: "width";
|
|
838
|
+
};
|
|
839
|
+
height: {
|
|
840
|
+
readonly [$$PropertyValue]: "width";
|
|
841
|
+
};
|
|
842
|
+
};
|
|
827
843
|
sizeMin: (value: {
|
|
828
844
|
readonly [$$PropertyValue]: "width";
|
|
829
845
|
}) => {
|
|
@@ -840,6 +856,16 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
840
856
|
readonly [$$PropertyValue]: "width";
|
|
841
857
|
};
|
|
842
858
|
};
|
|
859
|
+
maxSize: (value: {
|
|
860
|
+
readonly [$$PropertyValue]: "width";
|
|
861
|
+
}) => {
|
|
862
|
+
maxWidth: {
|
|
863
|
+
readonly [$$PropertyValue]: "width";
|
|
864
|
+
};
|
|
865
|
+
maxHeight: {
|
|
866
|
+
readonly [$$PropertyValue]: "width";
|
|
867
|
+
};
|
|
868
|
+
};
|
|
843
869
|
sizeMax: (value: {
|
|
844
870
|
readonly [$$PropertyValue]: "width";
|
|
845
871
|
}) => {
|
|
@@ -870,6 +896,13 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
870
896
|
}) => {
|
|
871
897
|
backgroundImage: string;
|
|
872
898
|
};
|
|
899
|
+
tdl: (value: {
|
|
900
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
901
|
+
}) => {
|
|
902
|
+
textDecorationLine: {
|
|
903
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
904
|
+
};
|
|
905
|
+
};
|
|
873
906
|
textGradient: (value: {
|
|
874
907
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
875
908
|
}) => {
|
|
@@ -1724,6 +1757,22 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
1724
1757
|
readonly [$$PropertyValue]: "width";
|
|
1725
1758
|
};
|
|
1726
1759
|
};
|
|
1760
|
+
minSize: (value: {
|
|
1761
|
+
readonly [$$PropertyValue]: "width";
|
|
1762
|
+
}) => {
|
|
1763
|
+
minWidth: {
|
|
1764
|
+
readonly [$$PropertyValue]: "width";
|
|
1765
|
+
};
|
|
1766
|
+
minHeight: {
|
|
1767
|
+
readonly [$$PropertyValue]: "width";
|
|
1768
|
+
};
|
|
1769
|
+
width: {
|
|
1770
|
+
readonly [$$PropertyValue]: "width";
|
|
1771
|
+
};
|
|
1772
|
+
height: {
|
|
1773
|
+
readonly [$$PropertyValue]: "width";
|
|
1774
|
+
};
|
|
1775
|
+
};
|
|
1727
1776
|
sizeMin: (value: {
|
|
1728
1777
|
readonly [$$PropertyValue]: "width";
|
|
1729
1778
|
}) => {
|
|
@@ -1740,6 +1789,16 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
1740
1789
|
readonly [$$PropertyValue]: "width";
|
|
1741
1790
|
};
|
|
1742
1791
|
};
|
|
1792
|
+
maxSize: (value: {
|
|
1793
|
+
readonly [$$PropertyValue]: "width";
|
|
1794
|
+
}) => {
|
|
1795
|
+
maxWidth: {
|
|
1796
|
+
readonly [$$PropertyValue]: "width";
|
|
1797
|
+
};
|
|
1798
|
+
maxHeight: {
|
|
1799
|
+
readonly [$$PropertyValue]: "width";
|
|
1800
|
+
};
|
|
1801
|
+
};
|
|
1743
1802
|
sizeMax: (value: {
|
|
1744
1803
|
readonly [$$PropertyValue]: "width";
|
|
1745
1804
|
}) => {
|
|
@@ -1770,6 +1829,13 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
1770
1829
|
}) => {
|
|
1771
1830
|
backgroundImage: string;
|
|
1772
1831
|
};
|
|
1832
|
+
tdl: (value: {
|
|
1833
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
1834
|
+
}) => {
|
|
1835
|
+
textDecorationLine: {
|
|
1836
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1773
1839
|
textGradient: (value: {
|
|
1774
1840
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
1775
1841
|
}) => {
|
|
@@ -2599,6 +2665,22 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
2599
2665
|
readonly [$$PropertyValue]: "width";
|
|
2600
2666
|
};
|
|
2601
2667
|
};
|
|
2668
|
+
minSize: (value: {
|
|
2669
|
+
readonly [$$PropertyValue]: "width";
|
|
2670
|
+
}) => {
|
|
2671
|
+
minWidth: {
|
|
2672
|
+
readonly [$$PropertyValue]: "width";
|
|
2673
|
+
};
|
|
2674
|
+
minHeight: {
|
|
2675
|
+
readonly [$$PropertyValue]: "width";
|
|
2676
|
+
};
|
|
2677
|
+
width: {
|
|
2678
|
+
readonly [$$PropertyValue]: "width";
|
|
2679
|
+
};
|
|
2680
|
+
height: {
|
|
2681
|
+
readonly [$$PropertyValue]: "width";
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2602
2684
|
sizeMin: (value: {
|
|
2603
2685
|
readonly [$$PropertyValue]: "width";
|
|
2604
2686
|
}) => {
|
|
@@ -2615,6 +2697,16 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
2615
2697
|
readonly [$$PropertyValue]: "width";
|
|
2616
2698
|
};
|
|
2617
2699
|
};
|
|
2700
|
+
maxSize: (value: {
|
|
2701
|
+
readonly [$$PropertyValue]: "width";
|
|
2702
|
+
}) => {
|
|
2703
|
+
maxWidth: {
|
|
2704
|
+
readonly [$$PropertyValue]: "width";
|
|
2705
|
+
};
|
|
2706
|
+
maxHeight: {
|
|
2707
|
+
readonly [$$PropertyValue]: "width";
|
|
2708
|
+
};
|
|
2709
|
+
};
|
|
2618
2710
|
sizeMax: (value: {
|
|
2619
2711
|
readonly [$$PropertyValue]: "width";
|
|
2620
2712
|
}) => {
|
|
@@ -2645,6 +2737,13 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
2645
2737
|
}) => {
|
|
2646
2738
|
backgroundImage: string;
|
|
2647
2739
|
};
|
|
2740
|
+
tdl: (value: {
|
|
2741
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
2742
|
+
}) => {
|
|
2743
|
+
textDecorationLine: {
|
|
2744
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
2745
|
+
};
|
|
2746
|
+
};
|
|
2648
2747
|
textGradient: (value: {
|
|
2649
2748
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
2650
2749
|
}) => {
|
|
@@ -4226,6 +4325,22 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
4226
4325
|
readonly [$$PropertyValue]: "width";
|
|
4227
4326
|
};
|
|
4228
4327
|
};
|
|
4328
|
+
minSize: (value: {
|
|
4329
|
+
readonly [$$PropertyValue]: "width";
|
|
4330
|
+
}) => {
|
|
4331
|
+
minWidth: {
|
|
4332
|
+
readonly [$$PropertyValue]: "width";
|
|
4333
|
+
};
|
|
4334
|
+
minHeight: {
|
|
4335
|
+
readonly [$$PropertyValue]: "width";
|
|
4336
|
+
};
|
|
4337
|
+
width: {
|
|
4338
|
+
readonly [$$PropertyValue]: "width";
|
|
4339
|
+
};
|
|
4340
|
+
height: {
|
|
4341
|
+
readonly [$$PropertyValue]: "width";
|
|
4342
|
+
};
|
|
4343
|
+
};
|
|
4229
4344
|
sizeMin: (value: {
|
|
4230
4345
|
readonly [$$PropertyValue]: "width";
|
|
4231
4346
|
}) => {
|
|
@@ -4242,6 +4357,16 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
4242
4357
|
readonly [$$PropertyValue]: "width";
|
|
4243
4358
|
};
|
|
4244
4359
|
};
|
|
4360
|
+
maxSize: (value: {
|
|
4361
|
+
readonly [$$PropertyValue]: "width";
|
|
4362
|
+
}) => {
|
|
4363
|
+
maxWidth: {
|
|
4364
|
+
readonly [$$PropertyValue]: "width";
|
|
4365
|
+
};
|
|
4366
|
+
maxHeight: {
|
|
4367
|
+
readonly [$$PropertyValue]: "width";
|
|
4368
|
+
};
|
|
4369
|
+
};
|
|
4245
4370
|
sizeMax: (value: {
|
|
4246
4371
|
readonly [$$PropertyValue]: "width";
|
|
4247
4372
|
}) => {
|
|
@@ -4272,6 +4397,13 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
4272
4397
|
}) => {
|
|
4273
4398
|
backgroundImage: string;
|
|
4274
4399
|
};
|
|
4400
|
+
tdl: (value: {
|
|
4401
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
4402
|
+
}) => {
|
|
4403
|
+
textDecorationLine: {
|
|
4404
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
4405
|
+
};
|
|
4406
|
+
};
|
|
4275
4407
|
textGradient: (value: {
|
|
4276
4408
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
4277
4409
|
}) => {
|
|
@@ -5100,6 +5232,22 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
5100
5232
|
readonly [$$PropertyValue]: "width";
|
|
5101
5233
|
};
|
|
5102
5234
|
};
|
|
5235
|
+
minSize: (value: {
|
|
5236
|
+
readonly [$$PropertyValue]: "width";
|
|
5237
|
+
}) => {
|
|
5238
|
+
minWidth: {
|
|
5239
|
+
readonly [$$PropertyValue]: "width";
|
|
5240
|
+
};
|
|
5241
|
+
minHeight: {
|
|
5242
|
+
readonly [$$PropertyValue]: "width";
|
|
5243
|
+
};
|
|
5244
|
+
width: {
|
|
5245
|
+
readonly [$$PropertyValue]: "width";
|
|
5246
|
+
};
|
|
5247
|
+
height: {
|
|
5248
|
+
readonly [$$PropertyValue]: "width";
|
|
5249
|
+
};
|
|
5250
|
+
};
|
|
5103
5251
|
sizeMin: (value: {
|
|
5104
5252
|
readonly [$$PropertyValue]: "width";
|
|
5105
5253
|
}) => {
|
|
@@ -5116,6 +5264,16 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
5116
5264
|
readonly [$$PropertyValue]: "width";
|
|
5117
5265
|
};
|
|
5118
5266
|
};
|
|
5267
|
+
maxSize: (value: {
|
|
5268
|
+
readonly [$$PropertyValue]: "width";
|
|
5269
|
+
}) => {
|
|
5270
|
+
maxWidth: {
|
|
5271
|
+
readonly [$$PropertyValue]: "width";
|
|
5272
|
+
};
|
|
5273
|
+
maxHeight: {
|
|
5274
|
+
readonly [$$PropertyValue]: "width";
|
|
5275
|
+
};
|
|
5276
|
+
};
|
|
5119
5277
|
sizeMax: (value: {
|
|
5120
5278
|
readonly [$$PropertyValue]: "width";
|
|
5121
5279
|
}) => {
|
|
@@ -5146,6 +5304,13 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
5146
5304
|
}) => {
|
|
5147
5305
|
backgroundImage: string;
|
|
5148
5306
|
};
|
|
5307
|
+
tdl: (value: {
|
|
5308
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
5309
|
+
}) => {
|
|
5310
|
+
textDecorationLine: {
|
|
5311
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
5312
|
+
};
|
|
5313
|
+
};
|
|
5149
5314
|
textGradient: (value: {
|
|
5150
5315
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
5151
5316
|
}) => {
|
|
@@ -5974,6 +6139,22 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
5974
6139
|
readonly [$$PropertyValue]: "width";
|
|
5975
6140
|
};
|
|
5976
6141
|
};
|
|
6142
|
+
minSize: (value: {
|
|
6143
|
+
readonly [$$PropertyValue]: "width";
|
|
6144
|
+
}) => {
|
|
6145
|
+
minWidth: {
|
|
6146
|
+
readonly [$$PropertyValue]: "width";
|
|
6147
|
+
};
|
|
6148
|
+
minHeight: {
|
|
6149
|
+
readonly [$$PropertyValue]: "width";
|
|
6150
|
+
};
|
|
6151
|
+
width: {
|
|
6152
|
+
readonly [$$PropertyValue]: "width";
|
|
6153
|
+
};
|
|
6154
|
+
height: {
|
|
6155
|
+
readonly [$$PropertyValue]: "width";
|
|
6156
|
+
};
|
|
6157
|
+
};
|
|
5977
6158
|
sizeMin: (value: {
|
|
5978
6159
|
readonly [$$PropertyValue]: "width";
|
|
5979
6160
|
}) => {
|
|
@@ -5990,6 +6171,16 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
5990
6171
|
readonly [$$PropertyValue]: "width";
|
|
5991
6172
|
};
|
|
5992
6173
|
};
|
|
6174
|
+
maxSize: (value: {
|
|
6175
|
+
readonly [$$PropertyValue]: "width";
|
|
6176
|
+
}) => {
|
|
6177
|
+
maxWidth: {
|
|
6178
|
+
readonly [$$PropertyValue]: "width";
|
|
6179
|
+
};
|
|
6180
|
+
maxHeight: {
|
|
6181
|
+
readonly [$$PropertyValue]: "width";
|
|
6182
|
+
};
|
|
6183
|
+
};
|
|
5993
6184
|
sizeMax: (value: {
|
|
5994
6185
|
readonly [$$PropertyValue]: "width";
|
|
5995
6186
|
}) => {
|
|
@@ -6020,6 +6211,13 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
6020
6211
|
}) => {
|
|
6021
6212
|
backgroundImage: string;
|
|
6022
6213
|
};
|
|
6214
|
+
tdl: (value: {
|
|
6215
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
6216
|
+
}) => {
|
|
6217
|
+
textDecorationLine: {
|
|
6218
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
6219
|
+
};
|
|
6220
|
+
};
|
|
6023
6221
|
textGradient: (value: {
|
|
6024
6222
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
6025
6223
|
}) => {
|
|
@@ -6856,6 +7054,22 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
6856
7054
|
readonly [$$PropertyValue]: "width";
|
|
6857
7055
|
};
|
|
6858
7056
|
};
|
|
7057
|
+
minSize: (value: {
|
|
7058
|
+
readonly [$$PropertyValue]: "width";
|
|
7059
|
+
}) => {
|
|
7060
|
+
minWidth: {
|
|
7061
|
+
readonly [$$PropertyValue]: "width";
|
|
7062
|
+
};
|
|
7063
|
+
minHeight: {
|
|
7064
|
+
readonly [$$PropertyValue]: "width";
|
|
7065
|
+
};
|
|
7066
|
+
width: {
|
|
7067
|
+
readonly [$$PropertyValue]: "width";
|
|
7068
|
+
};
|
|
7069
|
+
height: {
|
|
7070
|
+
readonly [$$PropertyValue]: "width";
|
|
7071
|
+
};
|
|
7072
|
+
};
|
|
6859
7073
|
sizeMin: (value: {
|
|
6860
7074
|
readonly [$$PropertyValue]: "width";
|
|
6861
7075
|
}) => {
|
|
@@ -6872,6 +7086,16 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
6872
7086
|
readonly [$$PropertyValue]: "width";
|
|
6873
7087
|
};
|
|
6874
7088
|
};
|
|
7089
|
+
maxSize: (value: {
|
|
7090
|
+
readonly [$$PropertyValue]: "width";
|
|
7091
|
+
}) => {
|
|
7092
|
+
maxWidth: {
|
|
7093
|
+
readonly [$$PropertyValue]: "width";
|
|
7094
|
+
};
|
|
7095
|
+
maxHeight: {
|
|
7096
|
+
readonly [$$PropertyValue]: "width";
|
|
7097
|
+
};
|
|
7098
|
+
};
|
|
6875
7099
|
sizeMax: (value: {
|
|
6876
7100
|
readonly [$$PropertyValue]: "width";
|
|
6877
7101
|
}) => {
|
|
@@ -6902,6 +7126,13 @@ export declare const styled: <Type extends keyof JSX.IntrinsicElements | import(
|
|
|
6902
7126
|
}) => {
|
|
6903
7127
|
backgroundImage: string;
|
|
6904
7128
|
};
|
|
7129
|
+
tdl: (value: {
|
|
7130
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
7131
|
+
}) => {
|
|
7132
|
+
textDecorationLine: {
|
|
7133
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
7134
|
+
};
|
|
7135
|
+
};
|
|
6905
7136
|
textGradient: (value: {
|
|
6906
7137
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
6907
7138
|
}) => {
|
|
@@ -7747,6 +7978,22 @@ export declare const sharedFocus: import("@stitches/react/types/styled-component
|
|
|
7747
7978
|
readonly [$$PropertyValue]: "width";
|
|
7748
7979
|
};
|
|
7749
7980
|
};
|
|
7981
|
+
minSize: (value: {
|
|
7982
|
+
readonly [$$PropertyValue]: "width";
|
|
7983
|
+
}) => {
|
|
7984
|
+
minWidth: {
|
|
7985
|
+
readonly [$$PropertyValue]: "width";
|
|
7986
|
+
};
|
|
7987
|
+
minHeight: {
|
|
7988
|
+
readonly [$$PropertyValue]: "width";
|
|
7989
|
+
};
|
|
7990
|
+
width: {
|
|
7991
|
+
readonly [$$PropertyValue]: "width";
|
|
7992
|
+
};
|
|
7993
|
+
height: {
|
|
7994
|
+
readonly [$$PropertyValue]: "width";
|
|
7995
|
+
};
|
|
7996
|
+
};
|
|
7750
7997
|
sizeMin: (value: {
|
|
7751
7998
|
readonly [$$PropertyValue]: "width";
|
|
7752
7999
|
}) => {
|
|
@@ -7763,6 +8010,16 @@ export declare const sharedFocus: import("@stitches/react/types/styled-component
|
|
|
7763
8010
|
readonly [$$PropertyValue]: "width";
|
|
7764
8011
|
};
|
|
7765
8012
|
};
|
|
8013
|
+
maxSize: (value: {
|
|
8014
|
+
readonly [$$PropertyValue]: "width";
|
|
8015
|
+
}) => {
|
|
8016
|
+
maxWidth: {
|
|
8017
|
+
readonly [$$PropertyValue]: "width";
|
|
8018
|
+
};
|
|
8019
|
+
maxHeight: {
|
|
8020
|
+
readonly [$$PropertyValue]: "width";
|
|
8021
|
+
};
|
|
8022
|
+
};
|
|
7766
8023
|
sizeMax: (value: {
|
|
7767
8024
|
readonly [$$PropertyValue]: "width";
|
|
7768
8025
|
}) => {
|
|
@@ -7793,6 +8050,13 @@ export declare const sharedFocus: import("@stitches/react/types/styled-component
|
|
|
7793
8050
|
}) => {
|
|
7794
8051
|
backgroundImage: string;
|
|
7795
8052
|
};
|
|
8053
|
+
tdl: (value: {
|
|
8054
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
8055
|
+
}) => {
|
|
8056
|
+
textDecorationLine: {
|
|
8057
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
8058
|
+
};
|
|
8059
|
+
};
|
|
7796
8060
|
textGradient: (value: {
|
|
7797
8061
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
7798
8062
|
}) => {
|
|
@@ -8637,6 +8901,22 @@ export declare const sharedVisuallyHidden: import("@stitches/react/types/styled-
|
|
|
8637
8901
|
readonly [$$PropertyValue]: "width";
|
|
8638
8902
|
};
|
|
8639
8903
|
};
|
|
8904
|
+
minSize: (value: {
|
|
8905
|
+
readonly [$$PropertyValue]: "width";
|
|
8906
|
+
}) => {
|
|
8907
|
+
minWidth: {
|
|
8908
|
+
readonly [$$PropertyValue]: "width";
|
|
8909
|
+
};
|
|
8910
|
+
minHeight: {
|
|
8911
|
+
readonly [$$PropertyValue]: "width";
|
|
8912
|
+
};
|
|
8913
|
+
width: {
|
|
8914
|
+
readonly [$$PropertyValue]: "width";
|
|
8915
|
+
};
|
|
8916
|
+
height: {
|
|
8917
|
+
readonly [$$PropertyValue]: "width";
|
|
8918
|
+
};
|
|
8919
|
+
};
|
|
8640
8920
|
sizeMin: (value: {
|
|
8641
8921
|
readonly [$$PropertyValue]: "width";
|
|
8642
8922
|
}) => {
|
|
@@ -8653,6 +8933,16 @@ export declare const sharedVisuallyHidden: import("@stitches/react/types/styled-
|
|
|
8653
8933
|
readonly [$$PropertyValue]: "width";
|
|
8654
8934
|
};
|
|
8655
8935
|
};
|
|
8936
|
+
maxSize: (value: {
|
|
8937
|
+
readonly [$$PropertyValue]: "width";
|
|
8938
|
+
}) => {
|
|
8939
|
+
maxWidth: {
|
|
8940
|
+
readonly [$$PropertyValue]: "width";
|
|
8941
|
+
};
|
|
8942
|
+
maxHeight: {
|
|
8943
|
+
readonly [$$PropertyValue]: "width";
|
|
8944
|
+
};
|
|
8945
|
+
};
|
|
8656
8946
|
sizeMax: (value: {
|
|
8657
8947
|
readonly [$$PropertyValue]: "width";
|
|
8658
8948
|
}) => {
|
|
@@ -8683,6 +8973,13 @@ export declare const sharedVisuallyHidden: import("@stitches/react/types/styled-
|
|
|
8683
8973
|
}) => {
|
|
8684
8974
|
backgroundImage: string;
|
|
8685
8975
|
};
|
|
8976
|
+
tdl: (value: {
|
|
8977
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
8978
|
+
}) => {
|
|
8979
|
+
textDecorationLine: {
|
|
8980
|
+
readonly [$$PropertyValue]: "textDecorationLine";
|
|
8981
|
+
};
|
|
8982
|
+
};
|
|
8686
8983
|
textGradient: (value: {
|
|
8687
8984
|
readonly [$$PropertyValue]: "backgroundImage";
|
|
8688
8985
|
}) => {
|
|
@@ -8691,7 +8988,7 @@ export declare const sharedVisuallyHidden: import("@stitches/react/types/styled-
|
|
|
8691
8988
|
WebkitTextFillColor: string;
|
|
8692
8989
|
};
|
|
8693
8990
|
}>>;
|
|
8694
|
-
export declare const createTheme: ({ type, theme }: Theme) => string & {
|
|
8991
|
+
export declare const createTheme: ({ type, theme, className }: Theme) => string & {
|
|
8695
8992
|
className: string;
|
|
8696
8993
|
selector: string;
|
|
8697
8994
|
} & import("@stitches/react/types/stitches").ThemeTokens<any, string>;
|
|
@@ -76,13 +76,14 @@ exports.sharedVisuallyHidden = sharedVisuallyHidden;
|
|
|
76
76
|
|
|
77
77
|
const createTheme = ({
|
|
78
78
|
type,
|
|
79
|
-
theme
|
|
79
|
+
theme,
|
|
80
|
+
className
|
|
80
81
|
}) => {
|
|
81
82
|
if (!type) {
|
|
82
83
|
throw new Error('Theme type is required');
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
return createThemeBase(`${type}-theme`, (0, _deepMerge.default)(type === 'dark' ? _darkTheme.default : _lightTheme.default, theme));
|
|
86
|
+
return createThemeBase(className || `${type}-theme`, (0, _deepMerge.default)(type === 'dark' ? _darkTheme.default : _lightTheme.default, theme));
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
exports.createTheme = createTheme;
|
|
@@ -17,8 +17,6 @@ var _deepMerge = _interopRequireDefault(require("../utils/deep-merge"));
|
|
|
17
17
|
|
|
18
18
|
var _object = require("../utils/object");
|
|
19
19
|
|
|
20
|
-
var _ssrProvider = require("./ssr-provider");
|
|
21
|
-
|
|
22
20
|
var _utils = require("./utils");
|
|
23
21
|
|
|
24
22
|
var _useSsr = _interopRequireDefault(require("../use-ssr"));
|
|
@@ -101,11 +99,9 @@ const ThemeProvider = ({
|
|
|
101
99
|
changeCurrentTheme((0, _utils.getThemeName)(userTheme.className));
|
|
102
100
|
}
|
|
103
101
|
}, [isBrowser, userTheme]);
|
|
104
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
children: [!disableBaseline && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cssBaseline.default, {}), children]
|
|
108
|
-
})
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_themeContext.default.Provider, {
|
|
103
|
+
value: providerValue,
|
|
104
|
+
children: [!disableBaseline && /*#__PURE__*/(0, _jsxRuntime.jsx)(_cssBaseline.default, {}), children]
|
|
109
105
|
});
|
|
110
106
|
};
|
|
111
107
|
|
package/cjs/theme/types.d.ts
CHANGED
package/cjs/tooltip/tooltip.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ interface Props {
|
|
|
19
19
|
leaveDelay?: number;
|
|
20
20
|
offset?: number;
|
|
21
21
|
className?: string;
|
|
22
|
+
keepMounted?: boolean;
|
|
22
23
|
portalClassName?: string;
|
|
23
24
|
onClick?: () => void;
|
|
24
25
|
onVisibleChange?: TooltipOnVisibleChange;
|
|
@@ -31,6 +32,7 @@ declare const defaultProps: {
|
|
|
31
32
|
animated: boolean;
|
|
32
33
|
shadow: boolean;
|
|
33
34
|
rounded: boolean;
|
|
35
|
+
keepMounted: boolean;
|
|
34
36
|
trigger: "hover" | "click";
|
|
35
37
|
enterDelay: number;
|
|
36
38
|
leaveDelay: number;
|
|
@@ -46,11 +48,12 @@ declare const _default: React.ComponentType<Partial<{
|
|
|
46
48
|
animated: boolean;
|
|
47
49
|
shadow: boolean;
|
|
48
50
|
rounded: boolean;
|
|
51
|
+
keepMounted: boolean;
|
|
49
52
|
trigger: "hover" | "click";
|
|
50
53
|
enterDelay: number;
|
|
51
54
|
leaveDelay: number;
|
|
52
55
|
className: string;
|
|
53
56
|
portalClassName: string;
|
|
54
57
|
onVisibleChange: TooltipOnVisibleChange;
|
|
55
|
-
}> & Omit<React.PropsWithChildren<TooltipProps>, "rounded" | "className" | "animated" | "shadow" | "hideArrow" | "initialVisible" | "trigger" | "enterDelay" | "leaveDelay" | "portalClassName" | "onVisibleChange">>;
|
|
58
|
+
}> & Omit<React.PropsWithChildren<TooltipProps>, "rounded" | "className" | "animated" | "shadow" | "hideArrow" | "initialVisible" | "trigger" | "enterDelay" | "leaveDelay" | "keepMounted" | "portalClassName" | "onVisibleChange">>;
|
|
56
59
|
export default _default;
|
package/cjs/tooltip/tooltip.js
CHANGED
|
@@ -27,6 +27,7 @@ const defaultProps = {
|
|
|
27
27
|
animated: true,
|
|
28
28
|
shadow: true,
|
|
29
29
|
rounded: false,
|
|
30
|
+
keepMounted: false,
|
|
30
31
|
trigger: 'hover',
|
|
31
32
|
enterDelay: 0,
|
|
32
33
|
leaveDelay: 0,
|
|
@@ -56,6 +57,7 @@ const Tooltip = ({
|
|
|
56
57
|
css,
|
|
57
58
|
triggerCss,
|
|
58
59
|
onClick,
|
|
60
|
+
keepMounted,
|
|
59
61
|
visible: customVisible,
|
|
60
62
|
...props
|
|
61
63
|
}) => {
|
|
@@ -63,9 +65,9 @@ const Tooltip = ({
|
|
|
63
65
|
const ref = (0, _react.useRef)(null);
|
|
64
66
|
const [visible, setVisible] = (0, _react.useState)(initialVisible);
|
|
65
67
|
const contentProps = {
|
|
66
|
-
css,
|
|
67
68
|
animated,
|
|
68
69
|
visible,
|
|
70
|
+
css,
|
|
69
71
|
shadow,
|
|
70
72
|
offset,
|
|
71
73
|
placement,
|
|
@@ -108,7 +110,7 @@ const Tooltip = ({
|
|
|
108
110
|
onClick == null ? void 0 : onClick();
|
|
109
111
|
};
|
|
110
112
|
|
|
111
|
-
(0, _useClickAway.default)(ref, () => trigger === 'click' && changeVisible(false));
|
|
113
|
+
(0, _useClickAway.default)(ref, () => trigger === 'click' && !keepMounted && changeVisible(false));
|
|
112
114
|
(0, _react.useEffect)(() => {
|
|
113
115
|
if (customVisible === undefined) return;
|
|
114
116
|
changeVisible(customVisible);
|