@nextui-org/theme 0.0.0-dev-v2-20230326012034

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 (181) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +24 -0
  3. package/colors.d.ts +1 -0
  4. package/colors.js +1 -0
  5. package/dist/animations/index.d.ts +57 -0
  6. package/dist/animations/index.js +84 -0
  7. package/dist/animations/index.mjs +6 -0
  8. package/dist/chunk-37PIXVP4.mjs +33 -0
  9. package/dist/chunk-45FXWIO6.mjs +70 -0
  10. package/dist/chunk-5OE5CWK6.mjs +84 -0
  11. package/dist/chunk-5SJ7B53O.mjs +0 -0
  12. package/dist/chunk-5Z3NCB7W.mjs +391 -0
  13. package/dist/chunk-7BYRB2YS.mjs +386 -0
  14. package/dist/chunk-7MQD7UA2.mjs +16 -0
  15. package/dist/chunk-B5S7HT6N.mjs +44 -0
  16. package/dist/chunk-CMYR6AOY.mjs +0 -0
  17. package/dist/chunk-CO6ANWRA.mjs +125 -0
  18. package/dist/chunk-CRCBVLUP.mjs +38 -0
  19. package/dist/chunk-D4TJV7NY.mjs +206 -0
  20. package/dist/chunk-DCEG5LGX.mjs +17 -0
  21. package/dist/chunk-FS36US4S.mjs +25 -0
  22. package/dist/chunk-HHWXPWYN.mjs +13 -0
  23. package/dist/chunk-IJCHUO4J.mjs +38 -0
  24. package/dist/chunk-K7LK7NCE.mjs +0 -0
  25. package/dist/chunk-KZJBCC2H.mjs +17 -0
  26. package/dist/chunk-L2OL7R23.mjs +17 -0
  27. package/dist/chunk-LGGZKBOO.mjs +77 -0
  28. package/dist/chunk-M63AFAHO.mjs +0 -0
  29. package/dist/chunk-MLH3XSY7.mjs +14 -0
  30. package/dist/chunk-NJQP2VWT.mjs +160 -0
  31. package/dist/chunk-OIVGIOVG.mjs +9 -0
  32. package/dist/chunk-OR5PUD24.mjs +17 -0
  33. package/dist/chunk-OSARGUKT.mjs +326 -0
  34. package/dist/chunk-QIC7EALL.mjs +277 -0
  35. package/dist/chunk-QMP2FDFR.mjs +240 -0
  36. package/dist/chunk-QPN3H4E3.mjs +60 -0
  37. package/dist/chunk-RD42SVXB.mjs +90 -0
  38. package/dist/chunk-T3GWIVAM.mjs +17 -0
  39. package/dist/chunk-TV7EJNXI.mjs +457 -0
  40. package/dist/chunk-U77YMEWM.mjs +13 -0
  41. package/dist/chunk-VB4T62HR.mjs +159 -0
  42. package/dist/chunk-VKFQ7EZN.mjs +17 -0
  43. package/dist/chunk-WQEDQHKX.mjs +0 -0
  44. package/dist/chunk-Y37XC5QN.mjs +169 -0
  45. package/dist/chunk-Y4YW5MKL.mjs +17 -0
  46. package/dist/chunk-Y52EXP4A.mjs +142 -0
  47. package/dist/chunk-YYBLBQIV.mjs +16 -0
  48. package/dist/chunk-YZYGFPNK.mjs +17 -0
  49. package/dist/chunk-Z5OKZPNV.mjs +190 -0
  50. package/dist/colors/blue.d.ts +14 -0
  51. package/dist/colors/blue.js +41 -0
  52. package/dist/colors/blue.mjs +6 -0
  53. package/dist/colors/common.d.ts +91 -0
  54. package/dist/colors/common.js +140 -0
  55. package/dist/colors/common.mjs +13 -0
  56. package/dist/colors/cyan.d.ts +14 -0
  57. package/dist/colors/cyan.js +41 -0
  58. package/dist/colors/cyan.mjs +6 -0
  59. package/dist/colors/green.d.ts +14 -0
  60. package/dist/colors/green.js +41 -0
  61. package/dist/colors/green.mjs +6 -0
  62. package/dist/colors/index.d.ts +97 -0
  63. package/dist/colors/index.js +306 -0
  64. package/dist/colors/index.mjs +23 -0
  65. package/dist/colors/pink.d.ts +14 -0
  66. package/dist/colors/pink.js +41 -0
  67. package/dist/colors/pink.mjs +6 -0
  68. package/dist/colors/purple.d.ts +14 -0
  69. package/dist/colors/purple.js +41 -0
  70. package/dist/colors/purple.mjs +6 -0
  71. package/dist/colors/red.d.ts +14 -0
  72. package/dist/colors/red.js +41 -0
  73. package/dist/colors/red.mjs +6 -0
  74. package/dist/colors/semantic.d.ts +10 -0
  75. package/dist/colors/semantic.js +298 -0
  76. package/dist/colors/semantic.mjs +19 -0
  77. package/dist/colors/types.d.ts +37 -0
  78. package/dist/colors/types.js +18 -0
  79. package/dist/colors/types.mjs +1 -0
  80. package/dist/colors/yellow.d.ts +14 -0
  81. package/dist/colors/yellow.js +41 -0
  82. package/dist/colors/yellow.mjs +6 -0
  83. package/dist/colors.d.ts +4 -0
  84. package/dist/colors.js +306 -0
  85. package/dist/colors.mjs +24 -0
  86. package/dist/components/accordion-item.d.ts +135 -0
  87. package/dist/components/accordion-item.js +122 -0
  88. package/dist/components/accordion-item.mjs +10 -0
  89. package/dist/components/accordion.d.ts +30 -0
  90. package/dist/components/accordion.js +40 -0
  91. package/dist/components/accordion.mjs +6 -0
  92. package/dist/components/avatar-group.d.ts +26 -0
  93. package/dist/components/avatar-group.js +38 -0
  94. package/dist/components/avatar-group.mjs +6 -0
  95. package/dist/components/avatar.d.ts +211 -0
  96. package/dist/components/avatar.js +315 -0
  97. package/dist/components/avatar.mjs +10 -0
  98. package/dist/components/badge.d.ts +235 -0
  99. package/dist/components/badge.js +487 -0
  100. package/dist/components/badge.mjs +10 -0
  101. package/dist/components/button-group.d.ts +26 -0
  102. package/dist/components/button-group.js +41 -0
  103. package/dist/components/button-group.mjs +6 -0
  104. package/dist/components/button.d.ts +122 -0
  105. package/dist/components/button.js +429 -0
  106. package/dist/components/button.mjs +10 -0
  107. package/dist/components/card.d.ts +239 -0
  108. package/dist/components/card.js +222 -0
  109. package/dist/components/card.mjs +10 -0
  110. package/dist/components/checkbox-group.d.ts +32 -0
  111. package/dist/components/checkbox-group.js +37 -0
  112. package/dist/components/checkbox-group.mjs +6 -0
  113. package/dist/components/checkbox.d.ts +226 -0
  114. package/dist/components/checkbox.js +192 -0
  115. package/dist/components/checkbox.mjs +10 -0
  116. package/dist/components/chip.d.ts +274 -0
  117. package/dist/components/chip.js +560 -0
  118. package/dist/components/chip.mjs +10 -0
  119. package/dist/components/code.d.ts +68 -0
  120. package/dist/components/code.js +140 -0
  121. package/dist/components/code.mjs +10 -0
  122. package/dist/components/drip.d.ts +14 -0
  123. package/dist/components/drip.js +33 -0
  124. package/dist/components/drip.mjs +6 -0
  125. package/dist/components/index.d.ts +24 -0
  126. package/dist/components/index.js +3442 -0
  127. package/dist/components/index.mjs +95 -0
  128. package/dist/components/link.d.ts +74 -0
  129. package/dist/components/link.js +117 -0
  130. package/dist/components/link.mjs +10 -0
  131. package/dist/components/pagination.d.ts +201 -0
  132. package/dist/components/pagination.js +489 -0
  133. package/dist/components/pagination.mjs +10 -0
  134. package/dist/components/radio-group.d.ts +32 -0
  135. package/dist/components/radio-group.js +37 -0
  136. package/dist/components/radio-group.mjs +6 -0
  137. package/dist/components/radio.d.ts +271 -0
  138. package/dist/components/radio.js +201 -0
  139. package/dist/components/radio.mjs +10 -0
  140. package/dist/components/snippet.d.ts +184 -0
  141. package/dist/components/snippet.js +343 -0
  142. package/dist/components/snippet.mjs +10 -0
  143. package/dist/components/spinner.d.ts +192 -0
  144. package/dist/components/spinner.js +149 -0
  145. package/dist/components/spinner.mjs +6 -0
  146. package/dist/components/toggle.d.ts +197 -0
  147. package/dist/components/toggle.js +191 -0
  148. package/dist/components/toggle.mjs +10 -0
  149. package/dist/components/tooltip.d.ts +176 -0
  150. package/dist/components/tooltip.js +373 -0
  151. package/dist/components/tooltip.mjs +10 -0
  152. package/dist/components/user.d.ts +40 -0
  153. package/dist/components/user.js +57 -0
  154. package/dist/components/user.mjs +10 -0
  155. package/dist/index.d.ts +35 -0
  156. package/dist/index.js +3747 -0
  157. package/dist/index.mjs +138 -0
  158. package/dist/plugin.d.ts +38 -0
  159. package/dist/plugin.js +564 -0
  160. package/dist/plugin.mjs +151 -0
  161. package/dist/utilities/index.d.ts +72 -0
  162. package/dist/utilities/index.js +94 -0
  163. package/dist/utilities/index.mjs +6 -0
  164. package/dist/utils/index.d.ts +4 -0
  165. package/dist/utils/index.js +144 -0
  166. package/dist/utils/index.mjs +20 -0
  167. package/dist/utils/object.d.ts +4 -0
  168. package/dist/utils/object.js +58 -0
  169. package/dist/utils/object.mjs +8 -0
  170. package/dist/utils/styles.d.ts +20 -0
  171. package/dist/utils/styles.js +66 -0
  172. package/dist/utils/styles.mjs +14 -0
  173. package/dist/utils/types.d.ts +10 -0
  174. package/dist/utils/types.js +18 -0
  175. package/dist/utils/types.mjs +1 -0
  176. package/dist/utils/variants.d.ts +67 -0
  177. package/dist/utils/variants.js +101 -0
  178. package/dist/utils/variants.mjs +6 -0
  179. package/package.json +85 -0
  180. package/plugin.d.ts +1 -0
  181. package/plugin.js +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Next UI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # @nextui-org/theme
2
+
3
+ A Quick description of the component
4
+
5
+ > This is an internal utility, not intended for public usage.
6
+
7
+ ## Installation
8
+
9
+ ```sh
10
+ yarn add @nextui-org/theme
11
+ # or
12
+ npm i @nextui-org/theme
13
+ ```
14
+
15
+ ## Contribution
16
+
17
+ Yes please! See the
18
+ [contributing guidelines](https://github.com/nextui-org/nextui/blob/master/CONTRIBUTING.md)
19
+ for details.
20
+
21
+ ## Licence
22
+
23
+ This project is licensed under the terms of the
24
+ [MIT license](https://github.com/nextui-org/nextui/blob/master/LICENSE).
package/colors.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/colors";
package/colors.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("./dist/colors");
@@ -0,0 +1,57 @@
1
+ declare const animations: {
2
+ animation: {
3
+ "drip-expand": string;
4
+ "spinner-ease-spin": string;
5
+ "spinner-linear-spin": string;
6
+ "appearance-in": string;
7
+ "appearance-out": string;
8
+ };
9
+ keyframes: {
10
+ "spinner-spin": {
11
+ "0%": {
12
+ transform: string;
13
+ };
14
+ "100%": {
15
+ transform: string;
16
+ };
17
+ };
18
+ "drip-expand": {
19
+ "0%": {
20
+ opacity: string;
21
+ transform: string;
22
+ };
23
+ "100%": {
24
+ opacity: string;
25
+ transform: string;
26
+ };
27
+ };
28
+ "appearance-in": {
29
+ "0%": {
30
+ opacity: string;
31
+ transform: string;
32
+ };
33
+ "60%": {
34
+ opacity: string;
35
+ backfaceVisibility: string;
36
+ webkitFontSmoothing: string;
37
+ transform: string;
38
+ };
39
+ "100%": {
40
+ opacity: string;
41
+ transform: string;
42
+ };
43
+ };
44
+ "appearance-out": {
45
+ "0%": {
46
+ opacity: string;
47
+ transform: string;
48
+ };
49
+ "100%": {
50
+ opacity: string;
51
+ transform: string;
52
+ };
53
+ };
54
+ };
55
+ };
56
+
57
+ export { animations };
@@ -0,0 +1,84 @@
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/animations/index.ts
21
+ var animations_exports = {};
22
+ __export(animations_exports, {
23
+ animations: () => animations
24
+ });
25
+ module.exports = __toCommonJS(animations_exports);
26
+ var animations = {
27
+ animation: {
28
+ "drip-expand": "drip-expand 350ms linear",
29
+ "spinner-ease-spin": "spinner-spin 0.8s ease infinite",
30
+ "spinner-linear-spin": "spinner-spin 0.8s linear infinite",
31
+ "appearance-in": "appearance-in 250ms ease-out normal both",
32
+ "appearance-out": "appearance-out 60ms ease-in normal both"
33
+ },
34
+ keyframes: {
35
+ "spinner-spin": {
36
+ "0%": {
37
+ transform: "rotate(0deg)"
38
+ },
39
+ "100%": {
40
+ transform: "rotate(360deg)"
41
+ }
42
+ },
43
+ "drip-expand": {
44
+ "0%": {
45
+ opacity: "0.4",
46
+ transform: "scale(0)"
47
+ },
48
+ "100%": {
49
+ opacity: "0",
50
+ transform: "scale(2)"
51
+ }
52
+ },
53
+ "appearance-in": {
54
+ "0%": {
55
+ opacity: "0",
56
+ transform: "translateZ(0) scale(0.95)"
57
+ },
58
+ "60%": {
59
+ opacity: "0.75",
60
+ backfaceVisibility: "hidden",
61
+ webkitFontSmoothing: "antialiased",
62
+ transform: "translateZ(0) scale(1.05)"
63
+ },
64
+ "100%": {
65
+ opacity: "1",
66
+ transform: "translateZ(0) scale(1)"
67
+ }
68
+ },
69
+ "appearance-out": {
70
+ "0%": {
71
+ opacity: "1",
72
+ transform: "scale(1)"
73
+ },
74
+ "100%": {
75
+ opacity: "0",
76
+ transform: "scale(0.85)"
77
+ }
78
+ }
79
+ }
80
+ };
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
83
+ animations
84
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ animations
3
+ } from "../chunk-QPN3H4E3.mjs";
4
+ export {
5
+ animations
6
+ };
@@ -0,0 +1,33 @@
1
+ // src/utils/object.ts
2
+ function swapColorValues(colors) {
3
+ const swappedColors = {};
4
+ const keys = Object.keys(colors);
5
+ const length = keys.length;
6
+ for (let i = 0; i < length / 2; i++) {
7
+ const key1 = keys[i];
8
+ const key2 = keys[length - 1 - i];
9
+ swappedColors[key1] = colors[key2];
10
+ swappedColors[key2] = colors[key1];
11
+ }
12
+ if (length % 2 !== 0) {
13
+ const middleKey = keys[Math.floor(length / 2)];
14
+ swappedColors[middleKey] = colors[middleKey];
15
+ }
16
+ return swappedColors;
17
+ }
18
+ function removeDefaultKeys(obj) {
19
+ const newObj = {};
20
+ for (const key in obj) {
21
+ if (key.endsWith("-DEFAULT")) {
22
+ newObj[key.replace("-DEFAULT", "")] = obj[key];
23
+ continue;
24
+ }
25
+ newObj[key] = obj[key];
26
+ }
27
+ return newObj;
28
+ }
29
+
30
+ export {
31
+ swapColorValues,
32
+ removeDefaultKeys
33
+ };
@@ -0,0 +1,70 @@
1
+ // src/utilities/index.ts
2
+ var DEFAULT_TRANSITION_DURATION = "250ms";
3
+ var utilities = {
4
+ ".leading-inherit": {
5
+ "line-height": "inherit"
6
+ },
7
+ ".bg-img-inherit": {
8
+ "background-image": "inherit"
9
+ },
10
+ ".bg-clip-inherit": {
11
+ "background-clip": "inherit"
12
+ },
13
+ ".text-fill-inherit": {
14
+ "-webkit-text-fill-color": "inherit"
15
+ },
16
+ ".transition-background": {
17
+ "transition-property": "background",
18
+ "transition-timing-function": "ease",
19
+ "transition-duration": DEFAULT_TRANSITION_DURATION
20
+ },
21
+ ".transition-all": {
22
+ "transition-property": "all",
23
+ "transition-timing-function": "ease",
24
+ "transition-duration": DEFAULT_TRANSITION_DURATION
25
+ },
26
+ ".transition": {
27
+ "transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
28
+ "transition-timing-function": "ease",
29
+ "transition-duration": DEFAULT_TRANSITION_DURATION
30
+ },
31
+ ".transition-colors": {
32
+ "transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke",
33
+ "transition-timing-function": "ease",
34
+ "transition-duration": DEFAULT_TRANSITION_DURATION
35
+ },
36
+ ".transition-opacity": {
37
+ "transition-property": "opacity",
38
+ "transition-timing-function": "ease",
39
+ "transition-duration": DEFAULT_TRANSITION_DURATION
40
+ },
41
+ ".transition-width": {
42
+ "transition-property": "width",
43
+ "transition-timing-function": "ease",
44
+ "transition-duration": DEFAULT_TRANSITION_DURATION
45
+ },
46
+ ".transition-shadow": {
47
+ "transition-property": "box-shadow",
48
+ "transition-timing-function": "ease",
49
+ "transition-duration": DEFAULT_TRANSITION_DURATION
50
+ },
51
+ ".transition-transform": {
52
+ "transition-property": "transform",
53
+ "transition-timing-function": "ease",
54
+ "transition-duration": DEFAULT_TRANSITION_DURATION
55
+ },
56
+ ".transition-transform-opacity": {
57
+ "transition-property": "transform, opacity",
58
+ "transition-timing-function": "ease",
59
+ "transition-duration": DEFAULT_TRANSITION_DURATION
60
+ },
61
+ ".transition-transform-background": {
62
+ "transition-property": "transform, background",
63
+ "transition-timing-function": "ease",
64
+ "transition-duration": DEFAULT_TRANSITION_DURATION
65
+ }
66
+ };
67
+
68
+ export {
69
+ utilities
70
+ };
@@ -0,0 +1,84 @@
1
+ import {
2
+ focusVisibleClasses
3
+ } from "./chunk-IJCHUO4J.mjs";
4
+
5
+ // src/components/link.ts
6
+ import { tv } from "tailwind-variants";
7
+ var link = tv({
8
+ base: [...focusVisibleClasses, "relative inline-flex items-center [&_svg]:ml-1"],
9
+ variants: {
10
+ size: {
11
+ xs: "text-xs",
12
+ sm: "text-sm",
13
+ md: "text-base",
14
+ lg: "text-lg",
15
+ xl: "text-xl"
16
+ },
17
+ color: {
18
+ foreground: "text-foreground",
19
+ primary: "text-primary",
20
+ secondary: "text-secondary",
21
+ success: "text-success",
22
+ warning: "text-warning",
23
+ danger: "text-danger"
24
+ },
25
+ isUnderline: {
26
+ true: "hover:underline active:underline focus:underline underline-offset-4",
27
+ false: "no-underline"
28
+ },
29
+ isBlock: {
30
+ true: "px-2 py-1 hover:after:opacity-100 after:content-[' '] after:inset-0 after:opacity-0 after:w-full after:h-full after:rounded-xl after:transition-background after:absolute",
31
+ false: "hover:opacity-80 transition-opacity"
32
+ },
33
+ isDisabled: {
34
+ true: "opacity-50 cursor-default pointer-events-none"
35
+ },
36
+ disableAnimation: {
37
+ true: "after:transition-none transition-none"
38
+ }
39
+ },
40
+ compoundVariants: [
41
+ {
42
+ isBlock: true,
43
+ color: "foreground",
44
+ class: "hover:after:bg-foreground/20"
45
+ },
46
+ {
47
+ isBlock: true,
48
+ color: "primary",
49
+ class: "hover:after:bg-primary/20"
50
+ },
51
+ {
52
+ isBlock: true,
53
+ color: "secondary",
54
+ class: "hover:after:bg-secondary/20"
55
+ },
56
+ {
57
+ isBlock: true,
58
+ color: "success",
59
+ class: "hover:after:bg-success/20"
60
+ },
61
+ {
62
+ isBlock: true,
63
+ color: "warning",
64
+ class: "hover:after:bg-warning/20"
65
+ },
66
+ {
67
+ isBlock: true,
68
+ color: "danger",
69
+ class: "hover:after:bg-danger/20"
70
+ }
71
+ ],
72
+ defaultVariants: {
73
+ color: "primary",
74
+ size: "md",
75
+ isBlock: false,
76
+ isUnderline: false,
77
+ isDisabled: false,
78
+ disableAnimation: false
79
+ }
80
+ });
81
+
82
+ export {
83
+ link
84
+ };
File without changes