@nextui-org/theme 0.0.0-dev-v2-20230620154717 → 0.0.0-dev-v2-20230620194547

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 (88) hide show
  1. package/dist/{chunk-DWC7GT4K.mjs → chunk-3D7G7PZH.mjs} +1 -1
  2. package/dist/chunk-4Z22WXZX.mjs +21 -0
  3. package/dist/{chunk-PMVP54WC.mjs → chunk-52QYM3YD.mjs} +9 -9
  4. package/dist/{chunk-BH4BMASL.mjs → chunk-576B55VI.mjs} +1 -1
  5. package/dist/{chunk-QU6QFAKV.mjs → chunk-7VYHIENL.mjs} +3 -2
  6. package/dist/{chunk-LWJT5D6G.mjs → chunk-A4SRDPJZ.mjs} +1 -0
  7. package/dist/{chunk-UHOIXUPW.mjs → chunk-AUOEYXLQ.mjs} +1 -0
  8. package/dist/{chunk-G34JOIZ3.mjs → chunk-C6TGDK6D.mjs} +1 -1
  9. package/dist/{chunk-FPFQCKUP.mjs → chunk-CEW7YOHH.mjs} +1 -1
  10. package/dist/chunk-DI2L75XK.mjs +22 -0
  11. package/dist/{chunk-2RQFBKZ4.mjs → chunk-E7FRZBCH.mjs} +1 -1
  12. package/dist/{chunk-NVCWXYAR.mjs → chunk-HI3IKEJ5.mjs} +13 -3
  13. package/dist/{chunk-JH2TR6BI.mjs → chunk-HJLDXSH7.mjs} +7 -19
  14. package/dist/{chunk-YQXYRWJP.mjs → chunk-I36TDMJB.mjs} +2 -2
  15. package/dist/{chunk-4G25OMVV.mjs → chunk-I75M4OOG.mjs} +1 -1
  16. package/dist/{chunk-QW2ZGOKD.mjs → chunk-IN5LCODJ.mjs} +1 -1
  17. package/dist/{chunk-RT4IWYYT.mjs → chunk-IUW423TP.mjs} +13 -2
  18. package/dist/{chunk-FHA5PJK4.mjs → chunk-LBMDDCFV.mjs} +2 -2
  19. package/dist/chunk-OQGOVMIP.mjs +20 -0
  20. package/dist/{chunk-ONXWXFZH.mjs → chunk-RB7R7Z3Y.mjs} +3 -3
  21. package/dist/{chunk-O32L4YWJ.mjs → chunk-SEWAA5ZW.mjs} +1 -1
  22. package/dist/{chunk-42RVICJN.mjs → chunk-UKSPZOXY.mjs} +1 -1
  23. package/dist/{chunk-HNRHIJNK.mjs → chunk-YNGJCDQN.mjs} +2 -2
  24. package/dist/{chunk-D4S5JGOT.mjs → chunk-ZQF2KGKX.mjs} +1 -1
  25. package/dist/{chunk-GRAPREJD.mjs → chunk-ZSOCX2PK.mjs} +3 -2
  26. package/dist/colors/common.mjs +2 -2
  27. package/dist/colors/index.mjs +5 -5
  28. package/dist/colors/semantic.mjs +4 -4
  29. package/dist/colors.mjs +5 -5
  30. package/dist/components/accordion.js +2 -2
  31. package/dist/components/accordion.mjs +1 -1
  32. package/dist/components/avatar.js +1 -1
  33. package/dist/components/avatar.mjs +3 -3
  34. package/dist/components/badge.js +1 -1
  35. package/dist/components/badge.mjs +3 -3
  36. package/dist/components/button.js +3 -2
  37. package/dist/components/button.mjs +3 -3
  38. package/dist/components/card.js +1 -1
  39. package/dist/components/card.mjs +1 -1
  40. package/dist/components/checkbox.js +1 -1
  41. package/dist/components/checkbox.mjs +1 -1
  42. package/dist/components/chip.js +3 -2
  43. package/dist/components/chip.mjs +3 -3
  44. package/dist/components/code.js +1 -1
  45. package/dist/components/code.mjs +3 -3
  46. package/dist/components/index.js +39 -14
  47. package/dist/components/index.mjs +37 -37
  48. package/dist/components/link.d.ts +4 -4
  49. package/dist/components/link.js +2 -2
  50. package/dist/components/link.mjs +1 -1
  51. package/dist/components/modal.js +1 -0
  52. package/dist/components/modal.mjs +1 -1
  53. package/dist/components/navbar.js +1 -0
  54. package/dist/components/navbar.mjs +1 -1
  55. package/dist/components/pagination.js +13 -2
  56. package/dist/components/pagination.mjs +3 -3
  57. package/dist/components/popover.js +1 -1
  58. package/dist/components/popover.mjs +3 -3
  59. package/dist/components/radio.js +1 -1
  60. package/dist/components/radio.mjs +1 -1
  61. package/dist/components/snippet.js +1 -1
  62. package/dist/components/snippet.mjs +3 -3
  63. package/dist/components/tabs.js +13 -3
  64. package/dist/components/tabs.mjs +3 -3
  65. package/dist/components/toggle.js +1 -1
  66. package/dist/components/toggle.mjs +1 -1
  67. package/dist/index.js +89 -32
  68. package/dist/index.mjs +56 -53
  69. package/dist/plugin.js +50 -18
  70. package/dist/plugin.mjs +12 -9
  71. package/dist/utilities/custom.d.ts +22 -0
  72. package/dist/utilities/custom.js +44 -0
  73. package/dist/utilities/custom.mjs +6 -0
  74. package/dist/utilities/index.d.ts +30 -19
  75. package/dist/utilities/index.js +51 -17
  76. package/dist/utilities/index.mjs +4 -1
  77. package/dist/utilities/scrollbar-hide.d.ts +24 -0
  78. package/dist/utilities/scrollbar-hide.js +43 -0
  79. package/dist/utilities/scrollbar-hide.mjs +6 -0
  80. package/dist/utilities/transition.d.ts +72 -0
  81. package/dist/utilities/transition.js +95 -0
  82. package/dist/utilities/transition.mjs +6 -0
  83. package/dist/utils/index.js +1 -1
  84. package/dist/utils/index.mjs +2 -2
  85. package/dist/utils/variants.js +1 -1
  86. package/dist/utils/variants.mjs +1 -1
  87. package/package.json +1 -1
  88. package/dist/{chunk-2G3JZ2MA.mjs → chunk-5LKRUH3Q.mjs} +3 -3
@@ -1,28 +1,24 @@
1
1
  declare const utilities: {
2
- /**
3
- * Custom utilities
4
- */
5
- ".leading-inherit": {
6
- "line-height": string;
7
- };
8
- ".bg-img-inherit": {
9
- "background-image": string;
10
- };
11
- ".bg-clip-inherit": {
12
- "background-clip": string;
13
- };
14
- ".text-fill-inherit": {
15
- "-webkit-text-fill-color": string;
2
+ ".scrollbar-hide": {
3
+ "-ms-overflow-style": string;
4
+ "scrollbar-width": string;
5
+ "&::-webkit-scrollbar": {
6
+ display: string;
7
+ };
8
+ };
9
+ ".scrollbar-default": {
10
+ "-ms-overflow-style": string;
11
+ "scrollbar-width": string;
12
+ "&::-webkit-scrollbar": {
13
+ display: string;
14
+ };
16
15
  };
17
- ".transition-background": {
16
+ ".transition-all": {
18
17
  "transition-property": string;
19
18
  "transition-timing-function": string;
20
19
  "transition-duration": string;
21
20
  };
22
- /**
23
- * Tailwind utilities
24
- */
25
- ".transition-all": {
21
+ ".transition-background": {
26
22
  "transition-property": string;
27
23
  "transition-timing-function": string;
28
24
  "transition-duration": string;
@@ -82,6 +78,21 @@ declare const utilities: {
82
78
  "transition-timing-function": string;
83
79
  "transition-duration": string;
84
80
  };
81
+ ".leading-inherit": {
82
+ "line-height": string;
83
+ };
84
+ ".bg-img-inherit": {
85
+ "background-image": string;
86
+ };
87
+ ".bg-clip-inherit": {
88
+ "background-clip": string;
89
+ };
90
+ ".text-fill-inherit": {
91
+ "-webkit-text-fill-color": string;
92
+ };
93
+ ".tap-highlight-transparent": {
94
+ "-webkit-tap-highlight-color": string;
95
+ };
85
96
  };
86
97
 
87
98
  export { utilities };
@@ -23,27 +23,17 @@ __export(utilities_exports, {
23
23
  utilities: () => utilities
24
24
  });
25
25
  module.exports = __toCommonJS(utilities_exports);
26
+
27
+ // src/utilities/transition.ts
26
28
  var DEFAULT_TRANSITION_DURATION = "250ms";
27
- var utilities = {
28
- ".leading-inherit": {
29
- "line-height": "inherit"
30
- },
31
- ".bg-img-inherit": {
32
- "background-image": "inherit"
33
- },
34
- ".bg-clip-inherit": {
35
- "background-clip": "inherit"
36
- },
37
- ".text-fill-inherit": {
38
- "-webkit-text-fill-color": "inherit"
39
- },
40
- ".transition-background": {
41
- "transition-property": "background",
29
+ var transition_default = {
30
+ ".transition-all": {
31
+ "transition-property": "all",
42
32
  "transition-timing-function": "ease",
43
33
  "transition-duration": DEFAULT_TRANSITION_DURATION
44
34
  },
45
- ".transition-all": {
46
- "transition-property": "all",
35
+ ".transition-background": {
36
+ "transition-property": "background",
47
37
  "transition-timing-function": "ease",
48
38
  "transition-duration": DEFAULT_TRANSITION_DURATION
49
39
  },
@@ -103,6 +93,50 @@ var utilities = {
103
93
  "transition-duration": DEFAULT_TRANSITION_DURATION
104
94
  }
105
95
  };
96
+
97
+ // src/utilities/custom.ts
98
+ var custom_default = {
99
+ ".leading-inherit": {
100
+ "line-height": "inherit"
101
+ },
102
+ ".bg-img-inherit": {
103
+ "background-image": "inherit"
104
+ },
105
+ ".bg-clip-inherit": {
106
+ "background-clip": "inherit"
107
+ },
108
+ ".text-fill-inherit": {
109
+ "-webkit-text-fill-color": "inherit"
110
+ },
111
+ ".tap-highlight-transparent": {
112
+ "-webkit-tap-highlight-color": "transparent"
113
+ }
114
+ };
115
+
116
+ // src/utilities/scrollbar-hide.ts
117
+ var scrollbar_hide_default = {
118
+ ".scrollbar-hide": {
119
+ "-ms-overflow-style": "none",
120
+ "scrollbar-width": "none",
121
+ "&::-webkit-scrollbar": {
122
+ display: "none"
123
+ }
124
+ },
125
+ ".scrollbar-default": {
126
+ "-ms-overflow-style": "auto",
127
+ "scrollbar-width": "auto",
128
+ "&::-webkit-scrollbar": {
129
+ display: "block"
130
+ }
131
+ }
132
+ };
133
+
134
+ // src/utilities/index.ts
135
+ var utilities = {
136
+ ...custom_default,
137
+ ...transition_default,
138
+ ...scrollbar_hide_default
139
+ };
106
140
  // Annotate the CommonJS export names for ESM import in node:
107
141
  0 && (module.exports = {
108
142
  utilities
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  utilities
3
- } from "../chunk-JH2TR6BI.mjs";
3
+ } from "../chunk-OQGOVMIP.mjs";
4
+ import "../chunk-4Z22WXZX.mjs";
5
+ import "../chunk-HJLDXSH7.mjs";
6
+ import "../chunk-DI2L75XK.mjs";
4
7
  export {
5
8
  utilities
6
9
  };
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Credits to: https://github.com/reslear/tailwind-scrollbar-hide/tree/main
3
+ */
4
+ declare const _default: {
5
+ /**
6
+ * Scroll Hide
7
+ */
8
+ ".scrollbar-hide": {
9
+ "-ms-overflow-style": string;
10
+ "scrollbar-width": string;
11
+ "&::-webkit-scrollbar": {
12
+ display: string;
13
+ };
14
+ };
15
+ ".scrollbar-default": {
16
+ "-ms-overflow-style": string;
17
+ "scrollbar-width": string;
18
+ "&::-webkit-scrollbar": {
19
+ display: string;
20
+ };
21
+ };
22
+ };
23
+
24
+ export { _default as default };
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utilities/scrollbar-hide.ts
21
+ var scrollbar_hide_exports = {};
22
+ __export(scrollbar_hide_exports, {
23
+ default: () => scrollbar_hide_default
24
+ });
25
+ module.exports = __toCommonJS(scrollbar_hide_exports);
26
+ var scrollbar_hide_default = {
27
+ ".scrollbar-hide": {
28
+ "-ms-overflow-style": "none",
29
+ "scrollbar-width": "none",
30
+ "&::-webkit-scrollbar": {
31
+ display: "none"
32
+ }
33
+ },
34
+ ".scrollbar-default": {
35
+ "-ms-overflow-style": "auto",
36
+ "scrollbar-width": "auto",
37
+ "&::-webkit-scrollbar": {
38
+ display: "block"
39
+ }
40
+ }
41
+ };
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {});
@@ -0,0 +1,6 @@
1
+ import {
2
+ scrollbar_hide_default
3
+ } from "../chunk-4Z22WXZX.mjs";
4
+ export {
5
+ scrollbar_hide_default as default
6
+ };
@@ -0,0 +1,72 @@
1
+ declare const _default: {
2
+ /**
3
+ * Transition utilities
4
+ */
5
+ ".transition-all": {
6
+ "transition-property": string;
7
+ "transition-timing-function": string;
8
+ "transition-duration": string;
9
+ };
10
+ ".transition-background": {
11
+ "transition-property": string;
12
+ "transition-timing-function": string;
13
+ "transition-duration": string;
14
+ };
15
+ ".transition": {
16
+ "transition-property": string;
17
+ "transition-timing-function": string;
18
+ "transition-duration": string;
19
+ };
20
+ ".transition-colors": {
21
+ "transition-property": string;
22
+ "transition-timing-function": string;
23
+ "transition-duration": string;
24
+ };
25
+ ".transition-opacity": {
26
+ "transition-property": string;
27
+ "transition-timing-function": string;
28
+ "transition-duration": string;
29
+ };
30
+ ".transition-width": {
31
+ "transition-property": string;
32
+ "transition-timing-function": string;
33
+ "transition-duration": string;
34
+ };
35
+ ".transition-height": {
36
+ "transition-property": string;
37
+ "transition-timing-function": string;
38
+ "transition-duration": string;
39
+ };
40
+ ".transition-left": {
41
+ "transition-property": string;
42
+ "transition-timing-function": string;
43
+ "transition-duration": string;
44
+ };
45
+ ".transition-shadow": {
46
+ "transition-property": string;
47
+ "transition-timing-function": string;
48
+ "transition-duration": string;
49
+ };
50
+ ".transition-transform": {
51
+ "transition-property": string;
52
+ "transition-timing-function": string;
53
+ "transition-duration": string;
54
+ };
55
+ ".transition-transform-opacity": {
56
+ "transition-property": string;
57
+ "transition-timing-function": string;
58
+ "transition-duration": string;
59
+ };
60
+ ".transition-transform-background": {
61
+ "transition-property": string;
62
+ "transition-timing-function": string;
63
+ "transition-duration": string;
64
+ };
65
+ ".transition-transform-colors": {
66
+ " transition-property": string;
67
+ "transition-timing-function": string;
68
+ "transition-duration": string;
69
+ };
70
+ };
71
+
72
+ export { _default as default };
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/utilities/transition.ts
21
+ var transition_exports = {};
22
+ __export(transition_exports, {
23
+ default: () => transition_default
24
+ });
25
+ module.exports = __toCommonJS(transition_exports);
26
+ var DEFAULT_TRANSITION_DURATION = "250ms";
27
+ var transition_default = {
28
+ ".transition-all": {
29
+ "transition-property": "all",
30
+ "transition-timing-function": "ease",
31
+ "transition-duration": DEFAULT_TRANSITION_DURATION
32
+ },
33
+ ".transition-background": {
34
+ "transition-property": "background",
35
+ "transition-timing-function": "ease",
36
+ "transition-duration": DEFAULT_TRANSITION_DURATION
37
+ },
38
+ ".transition": {
39
+ "transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
40
+ "transition-timing-function": "ease",
41
+ "transition-duration": DEFAULT_TRANSITION_DURATION
42
+ },
43
+ ".transition-colors": {
44
+ "transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke",
45
+ "transition-timing-function": "ease",
46
+ "transition-duration": DEFAULT_TRANSITION_DURATION
47
+ },
48
+ ".transition-opacity": {
49
+ "transition-property": "opacity",
50
+ "transition-timing-function": "ease",
51
+ "transition-duration": DEFAULT_TRANSITION_DURATION
52
+ },
53
+ ".transition-width": {
54
+ "transition-property": "width",
55
+ "transition-timing-function": "ease",
56
+ "transition-duration": DEFAULT_TRANSITION_DURATION
57
+ },
58
+ ".transition-height": {
59
+ "transition-property": "height",
60
+ "transition-timing-function": "ease",
61
+ "transition-duration": DEFAULT_TRANSITION_DURATION
62
+ },
63
+ ".transition-left": {
64
+ "transition-property": "left",
65
+ "transition-timing-function": "ease",
66
+ "transition-duration": DEFAULT_TRANSITION_DURATION
67
+ },
68
+ ".transition-shadow": {
69
+ "transition-property": "box-shadow",
70
+ "transition-timing-function": "ease",
71
+ "transition-duration": DEFAULT_TRANSITION_DURATION
72
+ },
73
+ ".transition-transform": {
74
+ "transition-property": "transform",
75
+ "transition-timing-function": "ease",
76
+ "transition-duration": DEFAULT_TRANSITION_DURATION
77
+ },
78
+ ".transition-transform-opacity": {
79
+ "transition-property": "transform, opacity",
80
+ "transition-timing-function": "ease",
81
+ "transition-duration": DEFAULT_TRANSITION_DURATION
82
+ },
83
+ ".transition-transform-background": {
84
+ "transition-property": "transform, background",
85
+ "transition-timing-function": "ease",
86
+ "transition-duration": DEFAULT_TRANSITION_DURATION
87
+ },
88
+ ".transition-transform-colors": {
89
+ " transition-property": "transform, color, background, background-color, border-color, text-decoration-color, fill, stroke",
90
+ "transition-timing-function": "ease",
91
+ "transition-duration": DEFAULT_TRANSITION_DURATION
92
+ }
93
+ };
94
+ // Annotate the CommonJS export names for ESM import in node:
95
+ 0 && (module.exports = {});
@@ -0,0 +1,6 @@
1
+ import {
2
+ transition_default
3
+ } from "../chunk-HJLDXSH7.mjs";
4
+ export {
5
+ transition_default as default
6
+ };
@@ -89,7 +89,7 @@ var bordered = {
89
89
  foreground: "bg-transparent border-foreground text-foreground"
90
90
  };
91
91
  var flat = {
92
- default: "bg-default/20 text-default-foreground",
92
+ default: "bg-default/40 text-default-foreground",
93
93
  primary: "bg-primary/20 text-primary",
94
94
  secondary: "bg-secondary/20 text-secondary",
95
95
  success: "bg-success/20 text-success-600 dark:text-success",
@@ -1,7 +1,8 @@
1
1
  import "../chunk-CMYR6AOY.mjs";
2
+ import "../chunk-K7LK7NCE.mjs";
2
3
  import {
3
4
  colorVariants
4
- } from "../chunk-FPFQCKUP.mjs";
5
+ } from "../chunk-CEW7YOHH.mjs";
5
6
  import {
6
7
  absoluteFullClasses,
7
8
  baseStyles,
@@ -9,7 +10,6 @@ import {
9
10
  ringClasses,
10
11
  translateCenterClasses
11
12
  } from "../chunk-TSW7CNKY.mjs";
12
- import "../chunk-K7LK7NCE.mjs";
13
13
  export {
14
14
  absoluteFullClasses,
15
15
  baseStyles,
@@ -51,7 +51,7 @@ var bordered = {
51
51
  foreground: "bg-transparent border-foreground text-foreground"
52
52
  };
53
53
  var flat = {
54
- default: "bg-default/20 text-default-foreground",
54
+ default: "bg-default/40 text-default-foreground",
55
55
  primary: "bg-primary/20 text-primary",
56
56
  secondary: "bg-secondary/20 text-secondary",
57
57
  success: "bg-success/20 text-success-600 dark:text-success",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  colorVariants
3
- } from "../chunk-FPFQCKUP.mjs";
3
+ } from "../chunk-CEW7YOHH.mjs";
4
4
  export {
5
5
  colorVariants
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230620154717",
3
+ "version": "0.0.0-dev-v2-20230620194547",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
@@ -1,3 +1,6 @@
1
+ import {
2
+ pink
3
+ } from "./chunk-DCEG5LGX.mjs";
1
4
  import {
2
5
  purple
3
6
  } from "./chunk-L2OL7R23.mjs";
@@ -16,9 +19,6 @@ import {
16
19
  import {
17
20
  green
18
21
  } from "./chunk-OR5PUD24.mjs";
19
- import {
20
- pink
21
- } from "./chunk-DCEG5LGX.mjs";
22
22
 
23
23
  // src/colors/common.ts
24
24
  var commonColors = {