@lolmath/ui 3.2.1 → 3.2.2

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 (210) hide show
  1. package/dist/es/components/accordion.d.ts +22 -0
  2. package/dist/es/components/accordion.js +101 -0
  3. package/dist/es/components/accordion.js.map +1 -0
  4. package/dist/es/components/button.d.ts +11 -0
  5. package/dist/es/components/button.js +221 -0
  6. package/dist/es/components/button.js.map +1 -0
  7. package/dist/es/components/card.d.ts +6 -0
  8. package/dist/es/components/card.js +51 -0
  9. package/dist/es/components/card.js.map +1 -0
  10. package/dist/es/components/checkbox.d.ts +2 -0
  11. package/dist/es/components/checkbox.js +53 -0
  12. package/dist/es/components/checkbox.js.map +1 -0
  13. package/dist/es/components/divider.d.ts +49 -0
  14. package/dist/es/components/divider.js +30 -0
  15. package/dist/es/components/divider.js.map +1 -0
  16. package/dist/es/components/modal.d.ts +13 -0
  17. package/dist/es/components/modal.js +97 -0
  18. package/dist/es/components/modal.js.map +1 -0
  19. package/dist/es/components/number-field.d.ts +10 -0
  20. package/dist/es/components/number-field.js +110 -0
  21. package/dist/es/components/number-field.js.map +1 -0
  22. package/dist/es/components/popover.d.ts +0 -0
  23. package/dist/es/components/popover.js +0 -0
  24. package/dist/es/components/progress-bar.d.ts +6 -0
  25. package/dist/es/components/progress-bar.js +41 -0
  26. package/dist/es/components/progress-bar.js.map +1 -0
  27. package/dist/es/components/radio-group.d.ts +3 -0
  28. package/dist/es/components/radio-group.js +82 -0
  29. package/dist/es/components/radio-group.js.map +1 -0
  30. package/dist/es/components/search-field.d.ts +6 -0
  31. package/dist/es/components/search-field.js +95 -0
  32. package/dist/es/components/search-field.js.map +1 -0
  33. package/dist/es/components/select.d.ts +11 -0
  34. package/dist/es/components/select.js +117 -0
  35. package/dist/es/components/select.js.map +1 -0
  36. package/dist/es/components/slider/images.d.ts +4 -0
  37. package/dist/es/components/slider/images.js +12 -0
  38. package/dist/es/components/slider/images.js.map +1 -0
  39. package/dist/es/components/slider/slider.d.ts +8 -0
  40. package/dist/es/components/slider/slider.js +169 -0
  41. package/dist/es/components/slider/slider.js.map +1 -0
  42. package/dist/es/components/spinner/images.d.ts +1 -0
  43. package/dist/es/components/spinner/images.js +6 -0
  44. package/dist/es/components/spinner/images.js.map +1 -0
  45. package/dist/es/components/spinner/spinner.d.ts +5 -0
  46. package/dist/es/components/spinner/spinner.js +23 -0
  47. package/dist/es/components/spinner/spinner.js.map +1 -0
  48. package/dist/es/components/switch.d.ts +4 -0
  49. package/dist/es/components/switch.js +96 -0
  50. package/dist/es/components/switch.js.map +1 -0
  51. package/dist/es/components/tabs.d.ts +6 -0
  52. package/dist/es/components/tabs.js +107 -0
  53. package/dist/es/components/tabs.js.map +1 -0
  54. package/dist/es/components/text-area.d.ts +6 -0
  55. package/dist/es/components/text-area.js +67 -0
  56. package/dist/es/components/text-area.js.map +1 -0
  57. package/dist/es/components/text-field.d.ts +6 -0
  58. package/dist/es/components/text-field.js +68 -0
  59. package/dist/es/components/text-field.js.map +1 -0
  60. package/dist/es/components/toggle-button.d.ts +12 -0
  61. package/dist/es/components/toggle-button.js +208 -0
  62. package/dist/es/components/toggle-button.js.map +1 -0
  63. package/dist/es/components/tooltip.d.ts +3 -0
  64. package/dist/es/components/tooltip.js +73 -0
  65. package/dist/es/components/tooltip.js.map +1 -0
  66. package/dist/es/components/typography/heading.d.ts +9 -0
  67. package/dist/es/components/typography/heading.js +38 -0
  68. package/dist/es/components/typography/heading.js.map +1 -0
  69. package/dist/es/components/typography/text.d.ts +17 -0
  70. package/dist/es/components/typography/text.js +62 -0
  71. package/dist/es/components/typography/text.js.map +1 -0
  72. package/dist/es/index.d.ts +23 -0
  73. package/dist/es/index.js +25 -0
  74. package/dist/es/index.js.map +1 -0
  75. package/dist/es/plugin.d.ts +4 -0
  76. package/dist/es/plugin.js +13 -0
  77. package/dist/es/plugin.js.map +1 -0
  78. package/dist/es/utilities/css-id.d.ts +1 -0
  79. package/dist/es/utilities/css-id.js +9 -0
  80. package/dist/es/utilities/css-id.js.map +1 -0
  81. package/dist/es/utilities/gradient.d.ts +8 -0
  82. package/dist/es/utilities/gradient.js +20 -0
  83. package/dist/es/utilities/gradient.js.map +1 -0
  84. package/dist/es/utilities/outline.d.ts +1 -0
  85. package/dist/es/utilities/outline.js +6 -0
  86. package/dist/es/utilities/outline.js.map +1 -0
  87. package/dist/es/utilities/resolve-class-name.d.ts +1 -0
  88. package/dist/es/utilities/resolve-class-name.js +8 -0
  89. package/dist/es/utilities/resolve-class-name.js.map +1 -0
  90. package/dist/es/utilities/theme.d.ts +98 -0
  91. package/dist/{chunk-KUMYC3II.js → es/utilities/theme.js} +3 -4
  92. package/dist/es/utilities/theme.js.map +1 -0
  93. package/dist/es/utilities/tv.d.ts +1 -0
  94. package/dist/es/utilities/tv.js +21 -0
  95. package/dist/es/utilities/tv.js.map +1 -0
  96. package/dist/es/utilities/view-transition.d.ts +1 -0
  97. package/dist/es/utilities/view-transition.js +15 -0
  98. package/dist/es/utilities/view-transition.js.map +1 -0
  99. package/dist/lib/components/accordion.cjs +128 -0
  100. package/dist/lib/components/accordion.d.cts +22 -0
  101. package/dist/lib/components/accordion.d.ts +22 -0
  102. package/dist/lib/components/button.cjs +232 -0
  103. package/dist/lib/components/button.d.cts +11 -0
  104. package/dist/lib/components/button.d.ts +11 -0
  105. package/dist/lib/components/card.cjs +74 -0
  106. package/dist/lib/components/card.d.cts +6 -0
  107. package/dist/lib/components/card.d.ts +6 -0
  108. package/dist/lib/components/checkbox.cjs +75 -0
  109. package/dist/lib/components/checkbox.d.cts +2 -0
  110. package/dist/lib/components/checkbox.d.ts +2 -0
  111. package/dist/lib/components/divider.cjs +52 -0
  112. package/dist/lib/components/divider.d.cts +49 -0
  113. package/dist/lib/components/divider.d.ts +49 -0
  114. package/dist/lib/components/modal.cjs +116 -0
  115. package/dist/lib/components/modal.d.cts +13 -0
  116. package/dist/lib/components/modal.d.ts +13 -0
  117. package/dist/lib/components/number-field.cjs +122 -0
  118. package/dist/lib/components/number-field.d.cts +10 -0
  119. package/dist/lib/components/number-field.d.ts +10 -0
  120. package/dist/lib/components/popover.cjs +1 -0
  121. package/dist/lib/components/popover.d.cts +0 -0
  122. package/dist/lib/components/popover.d.ts +0 -0
  123. package/dist/lib/components/progress-bar.cjs +60 -0
  124. package/dist/lib/components/progress-bar.d.cts +6 -0
  125. package/dist/lib/components/progress-bar.d.ts +6 -0
  126. package/dist/lib/components/radio-group.cjs +102 -0
  127. package/dist/lib/components/radio-group.d.cts +3 -0
  128. package/dist/lib/components/radio-group.d.ts +3 -0
  129. package/dist/lib/components/search-field.cjs +113 -0
  130. package/dist/lib/components/search-field.d.cts +6 -0
  131. package/dist/lib/components/search-field.d.ts +6 -0
  132. package/dist/lib/components/select.cjs +127 -0
  133. package/dist/lib/components/select.d.cts +11 -0
  134. package/dist/lib/components/select.d.ts +11 -0
  135. package/dist/lib/components/slider/images.cjs +37 -0
  136. package/dist/lib/components/slider/images.d.cts +4 -0
  137. package/dist/lib/components/slider/images.d.ts +4 -0
  138. package/dist/lib/components/slider/slider.cjs +182 -0
  139. package/dist/lib/components/slider/slider.d.cts +8 -0
  140. package/dist/lib/components/slider/slider.d.ts +8 -0
  141. package/dist/lib/components/spinner/images.cjs +28 -0
  142. package/dist/lib/components/spinner/images.d.cts +1 -0
  143. package/dist/lib/components/spinner/images.d.ts +1 -0
  144. package/dist/lib/components/spinner/spinner.cjs +45 -0
  145. package/dist/lib/components/spinner/spinner.d.cts +5 -0
  146. package/dist/lib/components/spinner/spinner.d.ts +5 -0
  147. package/dist/lib/components/switch.cjs +113 -0
  148. package/dist/lib/components/switch.d.cts +4 -0
  149. package/dist/lib/components/switch.d.ts +4 -0
  150. package/dist/lib/components/tabs.cjs +127 -0
  151. package/dist/lib/components/tabs.d.cts +6 -0
  152. package/dist/lib/components/tabs.d.ts +6 -0
  153. package/dist/lib/components/text-area.cjs +86 -0
  154. package/dist/lib/components/text-area.d.cts +6 -0
  155. package/dist/lib/components/text-area.d.ts +6 -0
  156. package/dist/lib/components/text-field.cjs +87 -0
  157. package/dist/lib/components/text-field.d.cts +6 -0
  158. package/dist/lib/components/text-field.d.ts +6 -0
  159. package/dist/lib/components/toggle-button.cjs +219 -0
  160. package/dist/lib/components/toggle-button.d.cts +12 -0
  161. package/dist/lib/components/toggle-button.d.ts +12 -0
  162. package/dist/lib/components/tooltip.cjs +96 -0
  163. package/dist/lib/components/tooltip.d.cts +3 -0
  164. package/dist/lib/components/tooltip.d.ts +3 -0
  165. package/dist/lib/components/typography/heading.cjs +60 -0
  166. package/dist/lib/components/typography/heading.d.cts +9 -0
  167. package/dist/lib/components/typography/heading.d.ts +9 -0
  168. package/dist/lib/components/typography/text.cjs +83 -0
  169. package/dist/lib/components/typography/text.d.cts +17 -0
  170. package/dist/lib/components/typography/text.d.ts +17 -0
  171. package/dist/lib/index.cjs +66 -0
  172. package/dist/lib/index.d.cts +23 -0
  173. package/dist/lib/index.d.ts +23 -0
  174. package/dist/lib/plugin.cjs +45 -0
  175. package/dist/lib/plugin.d.cts +4 -0
  176. package/dist/lib/plugin.d.ts +4 -0
  177. package/dist/lib/utilities/css-id.cjs +31 -0
  178. package/dist/lib/utilities/css-id.d.cts +1 -0
  179. package/dist/lib/utilities/css-id.d.ts +1 -0
  180. package/dist/lib/utilities/gradient.cjs +49 -0
  181. package/dist/lib/utilities/gradient.d.cts +8 -0
  182. package/dist/lib/utilities/gradient.d.ts +8 -0
  183. package/dist/lib/utilities/outline.cjs +28 -0
  184. package/dist/lib/utilities/outline.d.cts +1 -0
  185. package/dist/lib/utilities/outline.d.ts +1 -0
  186. package/dist/lib/utilities/resolve-class-name.cjs +30 -0
  187. package/dist/lib/utilities/resolve-class-name.d.cts +1 -0
  188. package/dist/lib/utilities/resolve-class-name.d.ts +1 -0
  189. package/dist/{plugin.cjs → lib/utilities/theme.cjs} +6 -30
  190. package/dist/lib/utilities/theme.d.cts +98 -0
  191. package/dist/lib/utilities/theme.d.ts +98 -0
  192. package/dist/lib/utilities/tv.cjs +43 -0
  193. package/dist/lib/utilities/tv.d.cts +1 -0
  194. package/dist/lib/utilities/tv.d.ts +1 -0
  195. package/dist/lib/utilities/view-transition.cjs +37 -0
  196. package/dist/lib/utilities/view-transition.d.cts +1 -0
  197. package/dist/lib/utilities/view-transition.d.ts +1 -0
  198. package/package.json +27 -15
  199. package/dist/chunk-KUMYC3II.js.map +0 -1
  200. package/dist/index.cjs +0 -1987
  201. package/dist/index.cjs.map +0 -1
  202. package/dist/index.d.cts +0 -279
  203. package/dist/index.d.ts +0 -279
  204. package/dist/index.js +0 -1857
  205. package/dist/index.js.map +0 -1
  206. package/dist/plugin.cjs.map +0 -1
  207. package/dist/plugin.d.cts +0 -8
  208. package/dist/plugin.d.ts +0 -8
  209. package/dist/plugin.js +0 -16
  210. package/dist/plugin.js.map +0 -1
@@ -0,0 +1,30 @@
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
+ var resolve_class_name_exports = {};
20
+ __export(resolve_class_name_exports, {
21
+ resolveClassName: () => resolveClassName
22
+ });
23
+ module.exports = __toCommonJS(resolve_class_name_exports);
24
+ function resolveClassName(className, values) {
25
+ return typeof className === "function" ? className(values) : className ?? "";
26
+ }
27
+ // Annotate the CommonJS export names for ESM import in node:
28
+ 0 && (module.exports = {
29
+ resolveClassName
30
+ });
@@ -0,0 +1 @@
1
+ export declare function resolveClassName(className: ((values: any) => string) | string | undefined, values: any): string;
@@ -0,0 +1 @@
1
+ export declare function resolveClassName(className: ((values: any) => string) | string | undefined, values: any): string;
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,26 +15,13 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/plugin.ts
31
- var plugin_exports = {};
32
- __export(plugin_exports, {
33
- lolmathui: () => lolmathui
19
+ var theme_exports = {};
20
+ __export(theme_exports, {
21
+ theme: () => theme
34
22
  });
35
- module.exports = __toCommonJS(plugin_exports);
36
- var import_plugin = __toESM(require("tailwindcss/plugin"), 1);
37
-
38
- // src/utilities/theme.ts
39
- var theme = {
23
+ module.exports = __toCommonJS(theme_exports);
24
+ const theme = {
40
25
  colors: {
41
26
  lol: {
42
27
  blue: {
@@ -144,16 +129,7 @@ var theme = {
144
129
  spiegel: "spiegel"
145
130
  }
146
131
  };
147
-
148
- // src/plugin.ts
149
- var lolmathui = (0, import_plugin.default)(function({}) {
150
- }, {
151
- theme: {
152
- extend: theme
153
- }
154
- });
155
132
  // Annotate the CommonJS export names for ESM import in node:
156
133
  0 && (module.exports = {
157
- lolmathui
134
+ theme
158
135
  });
159
- //# sourceMappingURL=plugin.cjs.map
@@ -0,0 +1,98 @@
1
+ export declare const theme: {
2
+ colors: {
3
+ lol: {
4
+ blue: {
5
+ 100: string;
6
+ 200: string;
7
+ 300: string;
8
+ 400: string;
9
+ 500: string;
10
+ 600: string;
11
+ 700: string;
12
+ };
13
+ grey: {
14
+ 100: string;
15
+ 150: string;
16
+ 200: string;
17
+ 300: string;
18
+ cool: string;
19
+ "hextech-black": string;
20
+ };
21
+ gold: {
22
+ 100: string;
23
+ 200: string;
24
+ 300: string;
25
+ 400: string;
26
+ 500: string;
27
+ 600: string;
28
+ 700: string;
29
+ };
30
+ };
31
+ };
32
+ fontSize: {
33
+ "lol-h5": [string, {
34
+ lineHeight: string;
35
+ letterSpacing: string;
36
+ fontWeight: number;
37
+ }];
38
+ "lol-h4": [string, {
39
+ lineHeight: string;
40
+ letterSpacing: string;
41
+ fontWeight: number;
42
+ }];
43
+ "lol-h3": [string, {
44
+ lineHeight: string;
45
+ letterSpacing: string;
46
+ fontWeight: number;
47
+ }];
48
+ "lol-h2": [string, {
49
+ lineHeight: string;
50
+ letterSpacing: string;
51
+ fontWeight: number;
52
+ }];
53
+ "lol-h1": [string, {
54
+ lineHeight: string;
55
+ letterSpacing: string;
56
+ fontWeight: number;
57
+ }];
58
+ "lol-label": [string, {
59
+ lineHeight: string;
60
+ letterSpacing: string;
61
+ fontWeight: number;
62
+ }];
63
+ "lol-stat": [string, {
64
+ lineHeight: string;
65
+ letterSpacing: string;
66
+ fontWeight: number;
67
+ }];
68
+ "lol-large-number": [string, {
69
+ lineHeight: string;
70
+ letterSpacing: string;
71
+ fontWeight: number;
72
+ }];
73
+ "lol-sm": [string, {
74
+ lineHeight: string;
75
+ letterSpacing: string;
76
+ fontWeight: number;
77
+ }];
78
+ "lol-base": [string, {
79
+ lineHeight: string;
80
+ letterSpacing: string;
81
+ fontWeight: number;
82
+ }];
83
+ "lol-md": [string, {
84
+ lineHeight: string;
85
+ letterSpacing: string;
86
+ fontWeight: number;
87
+ }];
88
+ "lol-lg": [string, {
89
+ lineHeight: string;
90
+ letterSpacing: string;
91
+ fontWeight: number;
92
+ }];
93
+ };
94
+ fontFamily: {
95
+ beaufort: string;
96
+ spiegel: string;
97
+ };
98
+ };
@@ -0,0 +1,98 @@
1
+ export declare const theme: {
2
+ colors: {
3
+ lol: {
4
+ blue: {
5
+ 100: string;
6
+ 200: string;
7
+ 300: string;
8
+ 400: string;
9
+ 500: string;
10
+ 600: string;
11
+ 700: string;
12
+ };
13
+ grey: {
14
+ 100: string;
15
+ 150: string;
16
+ 200: string;
17
+ 300: string;
18
+ cool: string;
19
+ "hextech-black": string;
20
+ };
21
+ gold: {
22
+ 100: string;
23
+ 200: string;
24
+ 300: string;
25
+ 400: string;
26
+ 500: string;
27
+ 600: string;
28
+ 700: string;
29
+ };
30
+ };
31
+ };
32
+ fontSize: {
33
+ "lol-h5": [string, {
34
+ lineHeight: string;
35
+ letterSpacing: string;
36
+ fontWeight: number;
37
+ }];
38
+ "lol-h4": [string, {
39
+ lineHeight: string;
40
+ letterSpacing: string;
41
+ fontWeight: number;
42
+ }];
43
+ "lol-h3": [string, {
44
+ lineHeight: string;
45
+ letterSpacing: string;
46
+ fontWeight: number;
47
+ }];
48
+ "lol-h2": [string, {
49
+ lineHeight: string;
50
+ letterSpacing: string;
51
+ fontWeight: number;
52
+ }];
53
+ "lol-h1": [string, {
54
+ lineHeight: string;
55
+ letterSpacing: string;
56
+ fontWeight: number;
57
+ }];
58
+ "lol-label": [string, {
59
+ lineHeight: string;
60
+ letterSpacing: string;
61
+ fontWeight: number;
62
+ }];
63
+ "lol-stat": [string, {
64
+ lineHeight: string;
65
+ letterSpacing: string;
66
+ fontWeight: number;
67
+ }];
68
+ "lol-large-number": [string, {
69
+ lineHeight: string;
70
+ letterSpacing: string;
71
+ fontWeight: number;
72
+ }];
73
+ "lol-sm": [string, {
74
+ lineHeight: string;
75
+ letterSpacing: string;
76
+ fontWeight: number;
77
+ }];
78
+ "lol-base": [string, {
79
+ lineHeight: string;
80
+ letterSpacing: string;
81
+ fontWeight: number;
82
+ }];
83
+ "lol-md": [string, {
84
+ lineHeight: string;
85
+ letterSpacing: string;
86
+ fontWeight: number;
87
+ }];
88
+ "lol-lg": [string, {
89
+ lineHeight: string;
90
+ letterSpacing: string;
91
+ fontWeight: number;
92
+ }];
93
+ };
94
+ fontFamily: {
95
+ beaufort: string;
96
+ spiegel: string;
97
+ };
98
+ };
@@ -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
+ var tv_exports = {};
20
+ __export(tv_exports, {
21
+ tv: () => tv
22
+ });
23
+ module.exports = __toCommonJS(tv_exports);
24
+ var import_tailwind_variants = require("tailwind-variants");
25
+ var import_theme = require("./theme.cjs");
26
+ const tv = (0, import_tailwind_variants.createTV)({
27
+ twMergeConfig: {
28
+ // theme: {
29
+ // colors: formatColors(),
30
+ // },
31
+ classGroups: {
32
+ "font-size": [
33
+ {
34
+ text: Object.keys(import_theme.theme.fontSize)
35
+ }
36
+ ]
37
+ }
38
+ }
39
+ });
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ tv
43
+ });
@@ -0,0 +1 @@
1
+ export declare const tv: import("tailwind-variants").TV;
@@ -0,0 +1 @@
1
+ export declare const tv: import("tailwind-variants").TV;
@@ -0,0 +1,37 @@
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
+ var view_transition_exports = {};
20
+ __export(view_transition_exports, {
21
+ startViewTransition: () => startViewTransition
22
+ });
23
+ module.exports = __toCommonJS(view_transition_exports);
24
+ var import_react_dom = require("react-dom");
25
+ function startViewTransition(callback) {
26
+ if ("startViewTransition" in document) {
27
+ document.startViewTransition(() => {
28
+ (0, import_react_dom.flushSync)(callback);
29
+ });
30
+ } else {
31
+ callback();
32
+ }
33
+ }
34
+ // Annotate the CommonJS export names for ESM import in node:
35
+ 0 && (module.exports = {
36
+ startViewTransition
37
+ });
@@ -0,0 +1 @@
1
+ export declare function startViewTransition(callback: () => void): void;
@@ -0,0 +1 @@
1
+ export declare function startViewTransition(callback: () => void): void;
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@lolmath/ui",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "private": false,
5
5
  "description": "lolmath.net UI",
6
6
  "type": "module",
7
- "main": "./dist/index.cjs",
8
- "module": "./dist/index.js",
7
+ "main": "./dist/lib/index.cjs",
8
+ "module": "./dist/es/index.js",
9
+ "types": "./dist/es/index.d.ts",
9
10
  "files": [
10
11
  "dist"
11
12
  ],
@@ -33,14 +34,15 @@
33
34
  "email": "incoming+lol-math-lolmath-41959739-1qbix14106nxnde3k5iusimi8-issue@incoming.gitlab.com"
34
35
  },
35
36
  "devDependencies": {
37
+ "@modern-js/module-tools": "^2.42.2",
36
38
  "@types/react": "^18.2.43",
37
39
  "@types/react-dom": "^18.2.17",
38
40
  "publint": "^0.2.6",
39
41
  "react": "^18.2.0",
40
42
  "react-dom": "^18.2.0",
41
43
  "tailwindcss": "^3.3.6",
42
- "tsup": "^8.0.1",
43
- "vitest": "^1.0.3"
44
+ "typescript": "^5.3.3",
45
+ "vitest": "^1.0.4"
44
46
  },
45
47
  "peerDependencies": {
46
48
  "react": ">=18",
@@ -49,9 +51,24 @@
49
51
  },
50
52
  "exports": {
51
53
  ".": {
52
- "types": "./dist/index.d.ts",
53
- "import": "./dist/index.js",
54
- "require": "./dist/index.cjs"
54
+ "import": {
55
+ "types": "./dist/es/index.d.ts",
56
+ "default": "./dist/es/index.js"
57
+ },
58
+ "require": {
59
+ "types": "./dist/lib/index.d.cts",
60
+ "default": "./dist/lib/index.cjs"
61
+ }
62
+ },
63
+ "./plugin": {
64
+ "import": {
65
+ "types": "./dist/es/plugin.d.ts",
66
+ "default": "./dist/es/plugin.js"
67
+ },
68
+ "require": {
69
+ "types": "./dist/lib/plugin.d.cts",
70
+ "default": "./dist/lib/plugin.cjs"
71
+ }
55
72
  },
56
73
  "./font/beaufort": {
57
74
  "import": "./dist/font/beaufort/beaufort.css",
@@ -60,16 +77,11 @@
60
77
  "./font/spiegel": {
61
78
  "import": "./dist/font/spiegel/spiegel.css",
62
79
  "require": "./dist/font/spiegel/spiegel.css"
63
- },
64
- "./plugin": {
65
- "types": "./dist/plugin.d.ts",
66
- "import": "./dist/plugin.js",
67
- "require": "./dist/plugin.cjs"
68
80
  }
69
81
  },
70
82
  "scripts": {
71
- "build": "tsup",
72
- "dev": "tsup --watch",
83
+ "build": "modern build",
84
+ "dev": "modern build --watch",
73
85
  "lint": "publint",
74
86
  "typecheck": "tsc --noEmit"
75
87
  }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utilities/theme.ts"],"sourcesContent":["import { ThemeConfig } from \"tailwindcss/types/config\";\n\nexport const theme = {\n colors: {\n lol: {\n blue: {\n 100: \"#CDFAFA\",\n 200: \"#0AC8B9\",\n 300: \"#0397AB\",\n 400: \"#005A82\",\n 500: \"#0A323C\",\n 600: \"#091428\",\n 700: \"#0A1428\",\n },\n grey: {\n 100: \"#A09B8C\",\n 150: \"#5B5A56\",\n 200: \"#3C3C41\",\n 300: \"#1E2328\",\n cool: \"#1E282D\",\n \"hextech-black\": \"#010A13\",\n },\n gold: {\n 100: \"#F0E6D2\",\n 200: \"#C8AA6E\",\n 300: \"#CDBE91\",\n 400: \"#C89B3C\",\n 500: \"#785A28\",\n 600: \"#463714\",\n 700: \"#32281E\",\n },\n },\n },\n fontSize: {\n // Heading\n \"lol-h5\": [\n \"1.1667rem\",\n { lineHeight: \"1.5rem\", letterSpacing: \"0.075em\", fontWeight: 700 },\n ],\n \"lol-h4\": [\n \"1.5rem\",\n { lineHeight: \"1.8333rem\", letterSpacing: \"0.05em\", fontWeight: 700 },\n ],\n \"lol-h3\": [\n \"1.9167rem\",\n { lineHeight: \"2.3333rem\", letterSpacing: \"0.05em\", fontWeight: 700 },\n ],\n \"lol-h2\": [\n \"2.3333rem\",\n { lineHeight: \"2.6667rem\", letterSpacing: \"0.05em\", fontWeight: 700 },\n ],\n \"lol-h1\": [\n \"3.3333rem\",\n { lineHeight: \"3.5rem\", letterSpacing: \"0.05em\", fontWeight: 700 },\n ],\n\n // Text\n \"lol-label\": [\n \"0.9167rem\",\n { lineHeight: \"1.3333rem\", letterSpacing: \"0.05em\", fontWeight: 700 },\n ],\n \"lol-stat\": [\n \"1.1667rem\",\n { lineHeight: \"1.6667rem\", letterSpacing: \"0.05em\", fontWeight: 700 },\n ],\n \"lol-large-number\": [\n \"4.75rem\",\n {\n lineHeight: \"5.1667rem\",\n letterSpacing: \"0.025em\",\n fontWeight: 500,\n },\n ],\n \"lol-sm\": [\n \"0.875rem\",\n {\n lineHeight: \"1.1025rem\",\n letterSpacing: \"0.02em\",\n fontWeight: 400,\n },\n ],\n \"lol-base\": [\n \"1rem\",\n {\n lineHeight: \"1.24rem\",\n letterSpacing: \"0.01em\",\n fontWeight: 400,\n },\n ],\n \"lol-md\": [\n \"1.1667rem\",\n {\n lineHeight: \"1.6667rem\",\n letterSpacing: \"0.025em\",\n fontWeight: 400,\n },\n ],\n \"lol-lg\": [\n \"1.5rem\",\n {\n lineHeight: \"1.875rem\",\n letterSpacing: \"0.025em\",\n fontWeight: 400,\n },\n ],\n },\n fontFamily: {\n beaufort: \"beaufort\",\n spiegel: \"spiegel\",\n },\n} satisfies Partial<ThemeConfig>;\n"],"mappings":";AAEO,IAAM,QAAQ;AAAA,EACnB,QAAQ;AAAA,IACN,KAAK;AAAA,MACH,MAAM;AAAA,QACJ,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,MACP;AAAA,MACA,MAAM;AAAA,QACJ,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,MAAM;AAAA,QACN,iBAAiB;AAAA,MACnB;AAAA,MACA,MAAM;AAAA,QACJ,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,QACL,KAAK;AAAA,MACP;AAAA,IACF;AAAA,EACF;AAAA,EACA,UAAU;AAAA;AAAA,IAER,UAAU;AAAA,MACR;AAAA,MACA,EAAE,YAAY,UAAU,eAAe,WAAW,YAAY,IAAI;AAAA,IACpE;AAAA,IACA,UAAU;AAAA,MACR;AAAA,MACA,EAAE,YAAY,aAAa,eAAe,UAAU,YAAY,IAAI;AAAA,IACtE;AAAA,IACA,UAAU;AAAA,MACR;AAAA,MACA,EAAE,YAAY,aAAa,eAAe,UAAU,YAAY,IAAI;AAAA,IACtE;AAAA,IACA,UAAU;AAAA,MACR;AAAA,MACA,EAAE,YAAY,aAAa,eAAe,UAAU,YAAY,IAAI;AAAA,IACtE;AAAA,IACA,UAAU;AAAA,MACR;AAAA,MACA,EAAE,YAAY,UAAU,eAAe,UAAU,YAAY,IAAI;AAAA,IACnE;AAAA;AAAA,IAGA,aAAa;AAAA,MACX;AAAA,MACA,EAAE,YAAY,aAAa,eAAe,UAAU,YAAY,IAAI;AAAA,IACtE;AAAA,IACA,YAAY;AAAA,MACV;AAAA,MACA,EAAE,YAAY,aAAa,eAAe,UAAU,YAAY,IAAI;AAAA,IACtE;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,MACA;AAAA,QACE,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,YAAY;AAAA,MACd;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR;AAAA,MACA;AAAA,QACE,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,YAAY;AAAA,MACd;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,MACA;AAAA,QACE,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,YAAY;AAAA,MACd;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR;AAAA,MACA;AAAA,QACE,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,YAAY;AAAA,MACd;AAAA,IACF;AAAA,IACA,UAAU;AAAA,MACR;AAAA,MACA;AAAA,QACE,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,YAAY;AAAA,MACd;AAAA,IACF;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV,UAAU;AAAA,IACV,SAAS;AAAA,EACX;AACF;","names":[]}