@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
@@ -0,0 +1,72 @@
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;
16
+ };
17
+ ".transition-background": {
18
+ "transition-property": string;
19
+ "transition-timing-function": string;
20
+ "transition-duration": string;
21
+ };
22
+ /**
23
+ * Tailwind utilities
24
+ */
25
+ ".transition-all": {
26
+ "transition-property": string;
27
+ "transition-timing-function": string;
28
+ "transition-duration": string;
29
+ };
30
+ ".transition": {
31
+ "transition-property": string;
32
+ "transition-timing-function": string;
33
+ "transition-duration": string;
34
+ };
35
+ ".transition-colors": {
36
+ "transition-property": string;
37
+ "transition-timing-function": string;
38
+ "transition-duration": string;
39
+ };
40
+ ".transition-opacity": {
41
+ "transition-property": string;
42
+ "transition-timing-function": string;
43
+ "transition-duration": string;
44
+ };
45
+ ".transition-width": {
46
+ "transition-property": string;
47
+ "transition-timing-function": string;
48
+ "transition-duration": string;
49
+ };
50
+ ".transition-shadow": {
51
+ "transition-property": string;
52
+ "transition-timing-function": string;
53
+ "transition-duration": string;
54
+ };
55
+ ".transition-transform": {
56
+ "transition-property": string;
57
+ "transition-timing-function": string;
58
+ "transition-duration": string;
59
+ };
60
+ ".transition-transform-opacity": {
61
+ "transition-property": string;
62
+ "transition-timing-function": string;
63
+ "transition-duration": string;
64
+ };
65
+ ".transition-transform-background": {
66
+ "transition-property": string;
67
+ "transition-timing-function": string;
68
+ "transition-duration": string;
69
+ };
70
+ };
71
+
72
+ export { utilities };
@@ -0,0 +1,94 @@
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/index.ts
21
+ var utilities_exports = {};
22
+ __export(utilities_exports, {
23
+ utilities: () => utilities
24
+ });
25
+ module.exports = __toCommonJS(utilities_exports);
26
+ 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",
42
+ "transition-timing-function": "ease",
43
+ "transition-duration": DEFAULT_TRANSITION_DURATION
44
+ },
45
+ ".transition-all": {
46
+ "transition-property": "all",
47
+ "transition-timing-function": "ease",
48
+ "transition-duration": DEFAULT_TRANSITION_DURATION
49
+ },
50
+ ".transition": {
51
+ "transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
52
+ "transition-timing-function": "ease",
53
+ "transition-duration": DEFAULT_TRANSITION_DURATION
54
+ },
55
+ ".transition-colors": {
56
+ "transition-property": "color, background-color, border-color, text-decoration-color, fill, stroke",
57
+ "transition-timing-function": "ease",
58
+ "transition-duration": DEFAULT_TRANSITION_DURATION
59
+ },
60
+ ".transition-opacity": {
61
+ "transition-property": "opacity",
62
+ "transition-timing-function": "ease",
63
+ "transition-duration": DEFAULT_TRANSITION_DURATION
64
+ },
65
+ ".transition-width": {
66
+ "transition-property": "width",
67
+ "transition-timing-function": "ease",
68
+ "transition-duration": DEFAULT_TRANSITION_DURATION
69
+ },
70
+ ".transition-shadow": {
71
+ "transition-property": "box-shadow",
72
+ "transition-timing-function": "ease",
73
+ "transition-duration": DEFAULT_TRANSITION_DURATION
74
+ },
75
+ ".transition-transform": {
76
+ "transition-property": "transform",
77
+ "transition-timing-function": "ease",
78
+ "transition-duration": DEFAULT_TRANSITION_DURATION
79
+ },
80
+ ".transition-transform-opacity": {
81
+ "transition-property": "transform, opacity",
82
+ "transition-timing-function": "ease",
83
+ "transition-duration": DEFAULT_TRANSITION_DURATION
84
+ },
85
+ ".transition-transform-background": {
86
+ "transition-property": "transform, background",
87
+ "transition-timing-function": "ease",
88
+ "transition-duration": DEFAULT_TRANSITION_DURATION
89
+ }
90
+ };
91
+ // Annotate the CommonJS export names for ESM import in node:
92
+ 0 && (module.exports = {
93
+ utilities
94
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ utilities
3
+ } from "../chunk-45FXWIO6.mjs";
4
+ export {
5
+ utilities
6
+ };
@@ -0,0 +1,4 @@
1
+ export { absoluteFullClasses, baseStyles, focusVisibleClasses, ringClasses, translateCenterClasses } from './styles.js';
2
+ export { SlotsToClasses } from './types.js';
3
+ export { colorVariants } from './variants.js';
4
+ import 'tailwind-variants';
@@ -0,0 +1,144 @@
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/utils/index.ts
21
+ var utils_exports = {};
22
+ __export(utils_exports, {
23
+ absoluteFullClasses: () => absoluteFullClasses,
24
+ baseStyles: () => baseStyles,
25
+ colorVariants: () => colorVariants,
26
+ focusVisibleClasses: () => focusVisibleClasses,
27
+ ringClasses: () => ringClasses,
28
+ translateCenterClasses: () => translateCenterClasses
29
+ });
30
+ module.exports = __toCommonJS(utils_exports);
31
+
32
+ // src/utils/styles.ts
33
+ var baseStyles = {
34
+ color: "hsl(var(--nextui-foreground))",
35
+ backgroundColor: "hsl(var(--nextui-background))"
36
+ };
37
+ var focusVisibleClasses = [
38
+ "focus:outline-0",
39
+ "focus-visible:ring-2",
40
+ "focus-visible:ring-primary",
41
+ "focus-visible:ring-offset-2",
42
+ "focus-visible:transition-shadow",
43
+ "focus-visible:ring-offset-background",
44
+ "dark:focus-visible:ring-offset-background-dark"
45
+ ];
46
+ var ringClasses = [
47
+ "outline-none",
48
+ "ring-2",
49
+ "!ring-primary",
50
+ "ring-offset-2",
51
+ "ring-offset-background",
52
+ "dark:ring-offset-background-dark"
53
+ ];
54
+ var translateCenterClasses = [
55
+ "absolute",
56
+ "top-1/2",
57
+ "left-1/2",
58
+ "-translate-x-1/2",
59
+ "-translate-y-1/2"
60
+ ];
61
+ var absoluteFullClasses = ["absolute", "inset-0"];
62
+
63
+ // src/utils/variants.ts
64
+ var solid = {
65
+ neutral: "bg-neutral text-neutral-contrastText",
66
+ primary: "bg-primary text-primary-contrastText",
67
+ secondary: "bg-secondary text-secondary-contrastText",
68
+ success: "bg-success text-success-contrastText",
69
+ warning: "bg-warning text-warning-contrastText",
70
+ danger: "bg-danger text-danger-contrastText",
71
+ foreground: "bg-foreground text-background"
72
+ };
73
+ var shadow = {
74
+ neutral: "shadow-lg shadow-neutral/50 bg-neutral text-neutral-contrastText",
75
+ primary: "shadow-lg shadow-primary/40 bg-primary text-primary-contrastText",
76
+ secondary: "shadow-lg shadow-secondary/40 bg-secondary text-secondary-contrastText",
77
+ success: "shadow-lg shadow-success/40 bg-success text-success-contrastText",
78
+ warning: "shadow-lg shadow-warning/40 bg-warning text-warning-contrastText",
79
+ danger: "shadow-lg shadow-danger/40 bg-danger text-danger-contrastText",
80
+ foreground: "shadow-lg shadow-foreground/40 bg-foreground text-background"
81
+ };
82
+ var bordered = {
83
+ neutral: "bg-transparent border-neutral text-foreground",
84
+ primary: "bg-transparent border-primary text-primary",
85
+ secondary: "bg-transparent border-secondary text-secondary",
86
+ success: "bg-transparent border-success text-success",
87
+ warning: "bg-transparent border-warning text-warning",
88
+ danger: "bg-transparent border-danger text-danger",
89
+ foreground: "bg-transparent border-foreground text-foreground"
90
+ };
91
+ var flat = {
92
+ neutral: "bg-neutral-100 text-neutral-contrastText",
93
+ primary: "bg-primary-50 text-primary",
94
+ secondary: "bg-secondary-100 text-secondary",
95
+ success: "bg-success-50 text-success",
96
+ warning: "bg-warning-50 text-warning",
97
+ danger: "bg-danger-50 text-danger",
98
+ foreground: "bg-foreground/10 text-foreground"
99
+ };
100
+ var faded = {
101
+ neutral: "border-neutral bg-neutral-100 text-neutral-contrastText",
102
+ primary: "border-neutral bg-neutral-100 text-primary",
103
+ secondary: "border-neutral bg-neutral-100 text-secondary",
104
+ success: "border-neutral bg-neutral-100 text-success",
105
+ warning: "border-neutral bg-neutral-100 text-warning",
106
+ danger: "border-neutral bg-neutral-100 text-danger",
107
+ foreground: "border-neutral bg-neutral-100 text-foreground"
108
+ };
109
+ var light = {
110
+ neutral: "bg-transparent text-neutral-contrastText",
111
+ primary: "bg-transparent text-primary",
112
+ secondary: "bg-transparent text-secondary",
113
+ success: "bg-transparent text-success",
114
+ warning: "bg-transparent text-warning",
115
+ danger: "bg-transparent text-danger",
116
+ foreground: "bg-transparent text-foreground"
117
+ };
118
+ var ghost = {
119
+ neutral: "border-neutral text-neutral-contrastText hover:!bg-neutral",
120
+ primary: "border-primary text-primary hover:!text-primary-contrastText hover:!bg-primary",
121
+ secondary: "border-secondary text-secondary hover:text-secondary-contrastText hover:!bg-secondary",
122
+ success: "border-success text-success hover:!text-success-contrastText hover:!bg-success",
123
+ warning: "border-warning text-warning hover:!text-warning-contrastText hover:!bg-warning",
124
+ danger: "border-danger text-danger hover:!text-danger-contrastText hover:!bg-danger",
125
+ foreground: "border-foreground text-foreground hover:!bg-foreground"
126
+ };
127
+ var colorVariants = {
128
+ solid,
129
+ shadow,
130
+ bordered,
131
+ flat,
132
+ faded,
133
+ light,
134
+ ghost
135
+ };
136
+ // Annotate the CommonJS export names for ESM import in node:
137
+ 0 && (module.exports = {
138
+ absoluteFullClasses,
139
+ baseStyles,
140
+ colorVariants,
141
+ focusVisibleClasses,
142
+ ringClasses,
143
+ translateCenterClasses
144
+ });
@@ -0,0 +1,20 @@
1
+ import "../chunk-CMYR6AOY.mjs";
2
+ import "../chunk-K7LK7NCE.mjs";
3
+ import {
4
+ colorVariants
5
+ } from "../chunk-LGGZKBOO.mjs";
6
+ import {
7
+ absoluteFullClasses,
8
+ baseStyles,
9
+ focusVisibleClasses,
10
+ ringClasses,
11
+ translateCenterClasses
12
+ } from "../chunk-IJCHUO4J.mjs";
13
+ export {
14
+ absoluteFullClasses,
15
+ baseStyles,
16
+ colorVariants,
17
+ focusVisibleClasses,
18
+ ringClasses,
19
+ translateCenterClasses
20
+ };
@@ -0,0 +1,4 @@
1
+ declare function swapColorValues<T extends Object>(colors: T): {};
2
+ declare function removeDefaultKeys<T extends Object>(obj: T): {};
3
+
4
+ export { removeDefaultKeys, swapColorValues };
@@ -0,0 +1,58 @@
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/utils/object.ts
21
+ var object_exports = {};
22
+ __export(object_exports, {
23
+ removeDefaultKeys: () => removeDefaultKeys,
24
+ swapColorValues: () => swapColorValues
25
+ });
26
+ module.exports = __toCommonJS(object_exports);
27
+ function swapColorValues(colors) {
28
+ const swappedColors = {};
29
+ const keys = Object.keys(colors);
30
+ const length = keys.length;
31
+ for (let i = 0; i < length / 2; i++) {
32
+ const key1 = keys[i];
33
+ const key2 = keys[length - 1 - i];
34
+ swappedColors[key1] = colors[key2];
35
+ swappedColors[key2] = colors[key1];
36
+ }
37
+ if (length % 2 !== 0) {
38
+ const middleKey = keys[Math.floor(length / 2)];
39
+ swappedColors[middleKey] = colors[middleKey];
40
+ }
41
+ return swappedColors;
42
+ }
43
+ function removeDefaultKeys(obj) {
44
+ const newObj = {};
45
+ for (const key in obj) {
46
+ if (key.endsWith("-DEFAULT")) {
47
+ newObj[key.replace("-DEFAULT", "")] = obj[key];
48
+ continue;
49
+ }
50
+ newObj[key] = obj[key];
51
+ }
52
+ return newObj;
53
+ }
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ removeDefaultKeys,
57
+ swapColorValues
58
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ removeDefaultKeys,
3
+ swapColorValues
4
+ } from "../chunk-37PIXVP4.mjs";
5
+ export {
6
+ removeDefaultKeys,
7
+ swapColorValues
8
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This is the base styles for all elements.
3
+ * Is meant to be used with the `addBase` method from tailwindcss.
4
+ */
5
+ declare const baseStyles: {
6
+ color: string;
7
+ backgroundColor: string;
8
+ };
9
+ /**
10
+ * focus styles when the element is focused by keyboard.
11
+ */
12
+ declare const focusVisibleClasses: string[];
13
+ declare const ringClasses: string[];
14
+ /**
15
+ * This classes centers the element by using absolute positioning.
16
+ */
17
+ declare const translateCenterClasses: string[];
18
+ declare const absoluteFullClasses: string[];
19
+
20
+ export { absoluteFullClasses, baseStyles, focusVisibleClasses, ringClasses, translateCenterClasses };
@@ -0,0 +1,66 @@
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/utils/styles.ts
21
+ var styles_exports = {};
22
+ __export(styles_exports, {
23
+ absoluteFullClasses: () => absoluteFullClasses,
24
+ baseStyles: () => baseStyles,
25
+ focusVisibleClasses: () => focusVisibleClasses,
26
+ ringClasses: () => ringClasses,
27
+ translateCenterClasses: () => translateCenterClasses
28
+ });
29
+ module.exports = __toCommonJS(styles_exports);
30
+ var baseStyles = {
31
+ color: "hsl(var(--nextui-foreground))",
32
+ backgroundColor: "hsl(var(--nextui-background))"
33
+ };
34
+ var focusVisibleClasses = [
35
+ "focus:outline-0",
36
+ "focus-visible:ring-2",
37
+ "focus-visible:ring-primary",
38
+ "focus-visible:ring-offset-2",
39
+ "focus-visible:transition-shadow",
40
+ "focus-visible:ring-offset-background",
41
+ "dark:focus-visible:ring-offset-background-dark"
42
+ ];
43
+ var ringClasses = [
44
+ "outline-none",
45
+ "ring-2",
46
+ "!ring-primary",
47
+ "ring-offset-2",
48
+ "ring-offset-background",
49
+ "dark:ring-offset-background-dark"
50
+ ];
51
+ var translateCenterClasses = [
52
+ "absolute",
53
+ "top-1/2",
54
+ "left-1/2",
55
+ "-translate-x-1/2",
56
+ "-translate-y-1/2"
57
+ ];
58
+ var absoluteFullClasses = ["absolute", "inset-0"];
59
+ // Annotate the CommonJS export names for ESM import in node:
60
+ 0 && (module.exports = {
61
+ absoluteFullClasses,
62
+ baseStyles,
63
+ focusVisibleClasses,
64
+ ringClasses,
65
+ translateCenterClasses
66
+ });
@@ -0,0 +1,14 @@
1
+ import {
2
+ absoluteFullClasses,
3
+ baseStyles,
4
+ focusVisibleClasses,
5
+ ringClasses,
6
+ translateCenterClasses
7
+ } from "../chunk-IJCHUO4J.mjs";
8
+ export {
9
+ absoluteFullClasses,
10
+ baseStyles,
11
+ focusVisibleClasses,
12
+ ringClasses,
13
+ translateCenterClasses
14
+ };
@@ -0,0 +1,10 @@
1
+ import { ClassValue } from 'tailwind-variants';
2
+
3
+ /**
4
+ * This Typescript utility transform a list of slots into a list of {slot: classes}
5
+ */
6
+ type SlotsToClasses<S extends string> = {
7
+ [key in S]?: ClassValue;
8
+ };
9
+
10
+ export { SlotsToClasses };
@@ -0,0 +1,18 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/utils/types.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1 @@
1
+ import "../chunk-K7LK7NCE.mjs";
@@ -0,0 +1,67 @@
1
+ declare const colorVariants: {
2
+ solid: {
3
+ neutral: string;
4
+ primary: string;
5
+ secondary: string;
6
+ success: string;
7
+ warning: string;
8
+ danger: string;
9
+ foreground: string;
10
+ };
11
+ shadow: {
12
+ neutral: string;
13
+ primary: string;
14
+ secondary: string;
15
+ success: string;
16
+ warning: string;
17
+ danger: string;
18
+ foreground: string;
19
+ };
20
+ bordered: {
21
+ neutral: string;
22
+ primary: string;
23
+ secondary: string;
24
+ success: string;
25
+ warning: string;
26
+ danger: string;
27
+ foreground: string;
28
+ };
29
+ flat: {
30
+ neutral: string;
31
+ primary: string;
32
+ secondary: string;
33
+ success: string;
34
+ warning: string;
35
+ danger: string;
36
+ foreground: string;
37
+ };
38
+ faded: {
39
+ neutral: string;
40
+ primary: string;
41
+ secondary: string;
42
+ success: string;
43
+ warning: string;
44
+ danger: string;
45
+ foreground: string;
46
+ };
47
+ light: {
48
+ neutral: string;
49
+ primary: string;
50
+ secondary: string;
51
+ success: string;
52
+ warning: string;
53
+ danger: string;
54
+ foreground: string;
55
+ };
56
+ ghost: {
57
+ neutral: string;
58
+ primary: string;
59
+ secondary: string;
60
+ success: string;
61
+ warning: string;
62
+ danger: string;
63
+ foreground: string;
64
+ };
65
+ };
66
+
67
+ export { colorVariants };