@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.
- package/dist/es/components/accordion.d.ts +22 -0
- package/dist/es/components/accordion.js +101 -0
- package/dist/es/components/accordion.js.map +1 -0
- package/dist/es/components/button.d.ts +11 -0
- package/dist/es/components/button.js +221 -0
- package/dist/es/components/button.js.map +1 -0
- package/dist/es/components/card.d.ts +6 -0
- package/dist/es/components/card.js +51 -0
- package/dist/es/components/card.js.map +1 -0
- package/dist/es/components/checkbox.d.ts +2 -0
- package/dist/es/components/checkbox.js +53 -0
- package/dist/es/components/checkbox.js.map +1 -0
- package/dist/es/components/divider.d.ts +49 -0
- package/dist/es/components/divider.js +30 -0
- package/dist/es/components/divider.js.map +1 -0
- package/dist/es/components/modal.d.ts +13 -0
- package/dist/es/components/modal.js +97 -0
- package/dist/es/components/modal.js.map +1 -0
- package/dist/es/components/number-field.d.ts +10 -0
- package/dist/es/components/number-field.js +110 -0
- package/dist/es/components/number-field.js.map +1 -0
- package/dist/es/components/popover.d.ts +0 -0
- package/dist/es/components/popover.js +0 -0
- package/dist/es/components/progress-bar.d.ts +6 -0
- package/dist/es/components/progress-bar.js +41 -0
- package/dist/es/components/progress-bar.js.map +1 -0
- package/dist/es/components/radio-group.d.ts +3 -0
- package/dist/es/components/radio-group.js +82 -0
- package/dist/es/components/radio-group.js.map +1 -0
- package/dist/es/components/search-field.d.ts +6 -0
- package/dist/es/components/search-field.js +95 -0
- package/dist/es/components/search-field.js.map +1 -0
- package/dist/es/components/select.d.ts +11 -0
- package/dist/es/components/select.js +117 -0
- package/dist/es/components/select.js.map +1 -0
- package/dist/es/components/slider/images.d.ts +4 -0
- package/dist/es/components/slider/images.js +12 -0
- package/dist/es/components/slider/images.js.map +1 -0
- package/dist/es/components/slider/slider.d.ts +8 -0
- package/dist/es/components/slider/slider.js +169 -0
- package/dist/es/components/slider/slider.js.map +1 -0
- package/dist/es/components/spinner/images.d.ts +1 -0
- package/dist/es/components/spinner/images.js +6 -0
- package/dist/es/components/spinner/images.js.map +1 -0
- package/dist/es/components/spinner/spinner.d.ts +5 -0
- package/dist/es/components/spinner/spinner.js +23 -0
- package/dist/es/components/spinner/spinner.js.map +1 -0
- package/dist/es/components/switch.d.ts +4 -0
- package/dist/es/components/switch.js +96 -0
- package/dist/es/components/switch.js.map +1 -0
- package/dist/es/components/tabs.d.ts +6 -0
- package/dist/es/components/tabs.js +107 -0
- package/dist/es/components/tabs.js.map +1 -0
- package/dist/es/components/text-area.d.ts +6 -0
- package/dist/es/components/text-area.js +67 -0
- package/dist/es/components/text-area.js.map +1 -0
- package/dist/es/components/text-field.d.ts +6 -0
- package/dist/es/components/text-field.js +68 -0
- package/dist/es/components/text-field.js.map +1 -0
- package/dist/es/components/toggle-button.d.ts +12 -0
- package/dist/es/components/toggle-button.js +208 -0
- package/dist/es/components/toggle-button.js.map +1 -0
- package/dist/es/components/tooltip.d.ts +3 -0
- package/dist/es/components/tooltip.js +73 -0
- package/dist/es/components/tooltip.js.map +1 -0
- package/dist/es/components/typography/heading.d.ts +9 -0
- package/dist/es/components/typography/heading.js +38 -0
- package/dist/es/components/typography/heading.js.map +1 -0
- package/dist/es/components/typography/text.d.ts +17 -0
- package/dist/es/components/typography/text.js +62 -0
- package/dist/es/components/typography/text.js.map +1 -0
- package/dist/es/index.d.ts +23 -0
- package/dist/es/index.js +25 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/plugin.d.ts +4 -0
- package/dist/es/plugin.js +13 -0
- package/dist/es/plugin.js.map +1 -0
- package/dist/es/utilities/css-id.d.ts +1 -0
- package/dist/es/utilities/css-id.js +9 -0
- package/dist/es/utilities/css-id.js.map +1 -0
- package/dist/es/utilities/gradient.d.ts +8 -0
- package/dist/es/utilities/gradient.js +20 -0
- package/dist/es/utilities/gradient.js.map +1 -0
- package/dist/es/utilities/outline.d.ts +1 -0
- package/dist/es/utilities/outline.js +6 -0
- package/dist/es/utilities/outline.js.map +1 -0
- package/dist/es/utilities/resolve-class-name.d.ts +1 -0
- package/dist/es/utilities/resolve-class-name.js +8 -0
- package/dist/es/utilities/resolve-class-name.js.map +1 -0
- package/dist/es/utilities/theme.d.ts +98 -0
- package/dist/{chunk-KUMYC3II.js → es/utilities/theme.js} +3 -4
- package/dist/es/utilities/theme.js.map +1 -0
- package/dist/es/utilities/tv.d.ts +1 -0
- package/dist/es/utilities/tv.js +21 -0
- package/dist/es/utilities/tv.js.map +1 -0
- package/dist/es/utilities/view-transition.d.ts +1 -0
- package/dist/es/utilities/view-transition.js +15 -0
- package/dist/es/utilities/view-transition.js.map +1 -0
- package/dist/lib/components/accordion.cjs +128 -0
- package/dist/lib/components/accordion.d.cts +22 -0
- package/dist/lib/components/accordion.d.ts +22 -0
- package/dist/lib/components/button.cjs +232 -0
- package/dist/lib/components/button.d.cts +11 -0
- package/dist/lib/components/button.d.ts +11 -0
- package/dist/lib/components/card.cjs +74 -0
- package/dist/lib/components/card.d.cts +6 -0
- package/dist/lib/components/card.d.ts +6 -0
- package/dist/lib/components/checkbox.cjs +75 -0
- package/dist/lib/components/checkbox.d.cts +2 -0
- package/dist/lib/components/checkbox.d.ts +2 -0
- package/dist/lib/components/divider.cjs +52 -0
- package/dist/lib/components/divider.d.cts +49 -0
- package/dist/lib/components/divider.d.ts +49 -0
- package/dist/lib/components/modal.cjs +116 -0
- package/dist/lib/components/modal.d.cts +13 -0
- package/dist/lib/components/modal.d.ts +13 -0
- package/dist/lib/components/number-field.cjs +122 -0
- package/dist/lib/components/number-field.d.cts +10 -0
- package/dist/lib/components/number-field.d.ts +10 -0
- package/dist/lib/components/popover.cjs +1 -0
- package/dist/lib/components/popover.d.cts +0 -0
- package/dist/lib/components/popover.d.ts +0 -0
- package/dist/lib/components/progress-bar.cjs +60 -0
- package/dist/lib/components/progress-bar.d.cts +6 -0
- package/dist/lib/components/progress-bar.d.ts +6 -0
- package/dist/lib/components/radio-group.cjs +102 -0
- package/dist/lib/components/radio-group.d.cts +3 -0
- package/dist/lib/components/radio-group.d.ts +3 -0
- package/dist/lib/components/search-field.cjs +113 -0
- package/dist/lib/components/search-field.d.cts +6 -0
- package/dist/lib/components/search-field.d.ts +6 -0
- package/dist/lib/components/select.cjs +127 -0
- package/dist/lib/components/select.d.cts +11 -0
- package/dist/lib/components/select.d.ts +11 -0
- package/dist/lib/components/slider/images.cjs +37 -0
- package/dist/lib/components/slider/images.d.cts +4 -0
- package/dist/lib/components/slider/images.d.ts +4 -0
- package/dist/lib/components/slider/slider.cjs +182 -0
- package/dist/lib/components/slider/slider.d.cts +8 -0
- package/dist/lib/components/slider/slider.d.ts +8 -0
- package/dist/lib/components/spinner/images.cjs +28 -0
- package/dist/lib/components/spinner/images.d.cts +1 -0
- package/dist/lib/components/spinner/images.d.ts +1 -0
- package/dist/lib/components/spinner/spinner.cjs +45 -0
- package/dist/lib/components/spinner/spinner.d.cts +5 -0
- package/dist/lib/components/spinner/spinner.d.ts +5 -0
- package/dist/lib/components/switch.cjs +113 -0
- package/dist/lib/components/switch.d.cts +4 -0
- package/dist/lib/components/switch.d.ts +4 -0
- package/dist/lib/components/tabs.cjs +127 -0
- package/dist/lib/components/tabs.d.cts +6 -0
- package/dist/lib/components/tabs.d.ts +6 -0
- package/dist/lib/components/text-area.cjs +86 -0
- package/dist/lib/components/text-area.d.cts +6 -0
- package/dist/lib/components/text-area.d.ts +6 -0
- package/dist/lib/components/text-field.cjs +87 -0
- package/dist/lib/components/text-field.d.cts +6 -0
- package/dist/lib/components/text-field.d.ts +6 -0
- package/dist/lib/components/toggle-button.cjs +219 -0
- package/dist/lib/components/toggle-button.d.cts +12 -0
- package/dist/lib/components/toggle-button.d.ts +12 -0
- package/dist/lib/components/tooltip.cjs +96 -0
- package/dist/lib/components/tooltip.d.cts +3 -0
- package/dist/lib/components/tooltip.d.ts +3 -0
- package/dist/lib/components/typography/heading.cjs +60 -0
- package/dist/lib/components/typography/heading.d.cts +9 -0
- package/dist/lib/components/typography/heading.d.ts +9 -0
- package/dist/lib/components/typography/text.cjs +83 -0
- package/dist/lib/components/typography/text.d.cts +17 -0
- package/dist/lib/components/typography/text.d.ts +17 -0
- package/dist/lib/index.cjs +66 -0
- package/dist/lib/index.d.cts +23 -0
- package/dist/lib/index.d.ts +23 -0
- package/dist/lib/plugin.cjs +45 -0
- package/dist/lib/plugin.d.cts +4 -0
- package/dist/lib/plugin.d.ts +4 -0
- package/dist/lib/utilities/css-id.cjs +31 -0
- package/dist/lib/utilities/css-id.d.cts +1 -0
- package/dist/lib/utilities/css-id.d.ts +1 -0
- package/dist/lib/utilities/gradient.cjs +49 -0
- package/dist/lib/utilities/gradient.d.cts +8 -0
- package/dist/lib/utilities/gradient.d.ts +8 -0
- package/dist/lib/utilities/outline.cjs +28 -0
- package/dist/lib/utilities/outline.d.cts +1 -0
- package/dist/lib/utilities/outline.d.ts +1 -0
- package/dist/lib/utilities/resolve-class-name.cjs +30 -0
- package/dist/lib/utilities/resolve-class-name.d.cts +1 -0
- package/dist/lib/utilities/resolve-class-name.d.ts +1 -0
- package/dist/{plugin.cjs → lib/utilities/theme.cjs} +6 -30
- package/dist/lib/utilities/theme.d.cts +98 -0
- package/dist/lib/utilities/theme.d.ts +98 -0
- package/dist/lib/utilities/tv.cjs +43 -0
- package/dist/lib/utilities/tv.d.cts +1 -0
- package/dist/lib/utilities/tv.d.ts +1 -0
- package/dist/lib/utilities/view-transition.cjs +37 -0
- package/dist/lib/utilities/view-transition.d.cts +1 -0
- package/dist/lib/utilities/view-transition.d.ts +1 -0
- package/package.json +27 -15
- package/dist/chunk-KUMYC3II.js.map +0 -1
- package/dist/index.cjs +0 -1987
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -279
- package/dist/index.d.ts +0 -279
- package/dist/index.js +0 -1857
- package/dist/index.js.map +0 -1
- package/dist/plugin.cjs.map +0 -1
- package/dist/plugin.d.cts +0 -8
- package/dist/plugin.d.ts +0 -8
- package/dist/plugin.js +0 -16
- 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
|
-
|
|
31
|
-
|
|
32
|
-
__export(plugin_exports, {
|
|
33
|
-
lolmathui: () => lolmathui
|
|
19
|
+
var theme_exports = {};
|
|
20
|
+
__export(theme_exports, {
|
|
21
|
+
theme: () => theme
|
|
34
22
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
36
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
"
|
|
43
|
-
"vitest": "^1.0.
|
|
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
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
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": "
|
|
72
|
-
"dev": "
|
|
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":[]}
|