@lolmath/ui 3.2.1 → 3.2.3
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 +25 -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 +1 -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.d.ts +22 -0
- package/dist/lib/components/accordion.js +130 -0
- package/dist/lib/components/accordion.js.map +1 -0
- package/dist/lib/components/button.d.ts +11 -0
- package/dist/lib/components/button.js +234 -0
- package/dist/lib/components/button.js.map +1 -0
- package/dist/lib/components/card.d.ts +6 -0
- package/dist/lib/components/card.js +76 -0
- package/dist/lib/components/card.js.map +1 -0
- package/dist/lib/components/checkbox.d.ts +2 -0
- package/dist/lib/components/checkbox.js +77 -0
- package/dist/lib/components/checkbox.js.map +1 -0
- package/dist/lib/components/divider.d.ts +25 -0
- package/dist/lib/components/divider.js +54 -0
- package/dist/lib/components/divider.js.map +1 -0
- package/dist/lib/components/modal.d.ts +13 -0
- package/dist/lib/components/modal.js +118 -0
- package/dist/lib/components/modal.js.map +1 -0
- package/dist/lib/components/number-field.d.ts +10 -0
- package/dist/lib/components/number-field.js +124 -0
- package/dist/lib/components/number-field.js.map +1 -0
- package/dist/lib/components/popover.d.ts +1 -0
- package/dist/lib/components/popover.js +1 -0
- package/dist/lib/components/progress-bar.d.ts +6 -0
- package/dist/lib/components/progress-bar.js +62 -0
- package/dist/lib/components/progress-bar.js.map +1 -0
- package/dist/lib/components/radio-group.d.ts +3 -0
- package/dist/lib/components/radio-group.js +104 -0
- package/dist/lib/components/radio-group.js.map +1 -0
- package/dist/lib/components/search-field.d.ts +6 -0
- package/dist/lib/components/search-field.js +115 -0
- package/dist/lib/components/search-field.js.map +1 -0
- package/dist/lib/components/select.d.ts +11 -0
- package/dist/lib/components/select.js +129 -0
- package/dist/lib/components/select.js.map +1 -0
- package/dist/lib/components/slider/images.d.ts +4 -0
- package/dist/lib/components/slider/images.js +39 -0
- package/dist/lib/components/slider/images.js.map +1 -0
- package/dist/lib/components/slider/slider.d.ts +8 -0
- package/dist/lib/components/slider/slider.js +184 -0
- package/dist/lib/components/slider/slider.js.map +1 -0
- package/dist/lib/components/spinner/images.d.ts +1 -0
- package/dist/lib/components/spinner/images.js +30 -0
- package/dist/lib/components/spinner/images.js.map +1 -0
- package/dist/lib/components/spinner/spinner.d.ts +5 -0
- package/dist/lib/components/spinner/spinner.js +47 -0
- package/dist/lib/components/spinner/spinner.js.map +1 -0
- package/dist/lib/components/switch.d.ts +4 -0
- package/dist/lib/components/switch.js +115 -0
- package/dist/lib/components/switch.js.map +1 -0
- package/dist/lib/components/tabs.d.ts +6 -0
- package/dist/lib/components/tabs.js +129 -0
- package/dist/lib/components/tabs.js.map +1 -0
- package/dist/lib/components/text-area.d.ts +6 -0
- package/dist/lib/components/text-area.js +88 -0
- package/dist/lib/components/text-area.js.map +1 -0
- package/dist/lib/components/text-field.d.ts +6 -0
- package/dist/lib/components/text-field.js +89 -0
- package/dist/lib/components/text-field.js.map +1 -0
- package/dist/lib/components/toggle-button.d.ts +12 -0
- package/dist/lib/components/toggle-button.js +221 -0
- package/dist/lib/components/toggle-button.js.map +1 -0
- package/dist/lib/components/tooltip.d.ts +3 -0
- package/dist/lib/components/tooltip.js +98 -0
- package/dist/lib/components/tooltip.js.map +1 -0
- package/dist/lib/components/typography/heading.d.ts +9 -0
- package/dist/lib/components/typography/heading.js +62 -0
- package/dist/lib/components/typography/heading.js.map +1 -0
- package/dist/lib/components/typography/text.d.ts +17 -0
- package/dist/lib/components/typography/text.js +85 -0
- package/dist/lib/components/typography/text.js.map +1 -0
- package/dist/lib/index.d.ts +23 -0
- package/dist/lib/index.js +68 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/plugin.d.ts +4 -0
- package/dist/lib/plugin.js +47 -0
- package/dist/lib/plugin.js.map +1 -0
- package/dist/lib/utilities/css-id.d.ts +1 -0
- package/dist/lib/utilities/css-id.js +33 -0
- package/dist/lib/utilities/css-id.js.map +1 -0
- package/dist/lib/utilities/gradient.d.ts +8 -0
- package/dist/lib/utilities/gradient.js +51 -0
- package/dist/lib/utilities/gradient.js.map +1 -0
- package/dist/lib/utilities/outline.d.ts +1 -0
- package/dist/lib/utilities/outline.js +30 -0
- package/dist/lib/utilities/outline.js.map +1 -0
- package/dist/lib/utilities/resolve-class-name.d.ts +1 -0
- package/dist/lib/utilities/resolve-class-name.js +32 -0
- package/dist/lib/utilities/resolve-class-name.js.map +1 -0
- package/dist/lib/utilities/theme.d.ts +98 -0
- package/dist/{plugin.cjs → lib/utilities/theme.js} +8 -30
- package/dist/lib/utilities/theme.js.map +1 -0
- package/dist/lib/utilities/tv.d.ts +1 -0
- package/dist/lib/utilities/tv.js +45 -0
- package/dist/lib/utilities/tv.js.map +1 -0
- package/dist/lib/utilities/view-transition.d.ts +1 -0
- package/dist/lib/utilities/view-transition.js +39 -0
- package/dist/lib/utilities/view-transition.js.map +1 -0
- package/package.json +24 -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,68 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var src_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(src_exports);
|
|
18
|
+
__reExport(src_exports, require("./components/accordion.js"), module.exports);
|
|
19
|
+
__reExport(src_exports, require("./components/button.js"), module.exports);
|
|
20
|
+
__reExport(src_exports, require("./components/card.js"), module.exports);
|
|
21
|
+
__reExport(src_exports, require("./components/checkbox.js"), module.exports);
|
|
22
|
+
__reExport(src_exports, require("./components/divider.js"), module.exports);
|
|
23
|
+
__reExport(src_exports, require("./components/modal.js"), module.exports);
|
|
24
|
+
__reExport(src_exports, require("./components/number-field.js"), module.exports);
|
|
25
|
+
__reExport(src_exports, require("./components/progress-bar.js"), module.exports);
|
|
26
|
+
__reExport(src_exports, require("./components/radio-group.js"), module.exports);
|
|
27
|
+
__reExport(src_exports, require("./components/search-field.js"), module.exports);
|
|
28
|
+
__reExport(src_exports, require("./components/select.js"), module.exports);
|
|
29
|
+
__reExport(src_exports, require("./components/slider/slider.js"), module.exports);
|
|
30
|
+
__reExport(src_exports, require("./components/spinner/spinner.js"), module.exports);
|
|
31
|
+
__reExport(src_exports, require("./components/switch.js"), module.exports);
|
|
32
|
+
__reExport(src_exports, require("./components/tabs.js"), module.exports);
|
|
33
|
+
__reExport(src_exports, require("./components/text-area.js"), module.exports);
|
|
34
|
+
__reExport(src_exports, require("./components/text-field.js"), module.exports);
|
|
35
|
+
__reExport(src_exports, require("./components/toggle-button.js"), module.exports);
|
|
36
|
+
__reExport(src_exports, require("./components/tooltip.js"), module.exports);
|
|
37
|
+
__reExport(src_exports, require("./components/typography/heading.js"), module.exports);
|
|
38
|
+
__reExport(src_exports, require("./components/typography/text.js"), module.exports);
|
|
39
|
+
__reExport(src_exports, require("./utilities/gradient.js"), module.exports);
|
|
40
|
+
__reExport(src_exports, require("./utilities/tv.js"), module.exports);
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
...require("./components/accordion.js"),
|
|
44
|
+
...require("./components/button.js"),
|
|
45
|
+
...require("./components/card.js"),
|
|
46
|
+
...require("./components/checkbox.js"),
|
|
47
|
+
...require("./components/divider.js"),
|
|
48
|
+
...require("./components/modal.js"),
|
|
49
|
+
...require("./components/number-field.js"),
|
|
50
|
+
...require("./components/progress-bar.js"),
|
|
51
|
+
...require("./components/radio-group.js"),
|
|
52
|
+
...require("./components/search-field.js"),
|
|
53
|
+
...require("./components/select.js"),
|
|
54
|
+
...require("./components/slider/slider.js"),
|
|
55
|
+
...require("./components/spinner/spinner.js"),
|
|
56
|
+
...require("./components/switch.js"),
|
|
57
|
+
...require("./components/tabs.js"),
|
|
58
|
+
...require("./components/text-area.js"),
|
|
59
|
+
...require("./components/text-field.js"),
|
|
60
|
+
...require("./components/toggle-button.js"),
|
|
61
|
+
...require("./components/tooltip.js"),
|
|
62
|
+
...require("./components/typography/heading.js"),
|
|
63
|
+
...require("./components/typography/text.js"),
|
|
64
|
+
...require("./utilities/gradient.js"),
|
|
65
|
+
...require("./utilities/tv.js")
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,sCAAd;AACA,wBAAc,mCADd;AAEA,wBAAc,iCAFd;AAGA,wBAAc,qCAHd;AAIA,wBAAc,oCAJd;AAKA,wBAAc,kCALd;AAMA,wBAAc,yCANd;AAOA,wBAAc,yCAPd;AAQA,wBAAc,wCARd;AASA,wBAAc,yCATd;AAUA,wBAAc,mCAVd;AAWA,wBAAc,0CAXd;AAYA,wBAAc,4CAZd;AAaA,wBAAc,mCAbd;AAcA,wBAAc,iCAdd;AAeA,wBAAc,sCAfd;AAgBA,wBAAc,uCAhBd;AAiBA,wBAAc,0CAjBd;AAkBA,wBAAc,oCAlBd;AAmBA,wBAAc,+CAnBd;AAoBA,wBAAc,4CApBd;AAqBA,wBAAc,oCArBd;AAsBA,wBAAc,8BAtBd","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from \"./components/accordion.js\";\nexport * from \"./components/button.js\";\nexport * from \"./components/card.js\";\nexport * from \"./components/checkbox.js\";\nexport * from \"./components/divider.js\";\nexport * from \"./components/modal.js\";\nexport * from \"./components/number-field.js\";\nexport * from \"./components/progress-bar.js\";\nexport * from \"./components/radio-group.js\";\nexport * from \"./components/search-field.js\";\nexport * from \"./components/select.js\";\nexport * from \"./components/slider/slider.js\";\nexport * from \"./components/spinner/spinner.js\";\nexport * from \"./components/switch.js\";\nexport * from \"./components/tabs.js\";\nexport * from \"./components/text-area.js\";\nexport * from \"./components/text-field.js\";\nexport * from \"./components/toggle-button.js\";\nexport * from \"./components/tooltip.js\";\nexport * from \"./components/typography/heading.js\";\nexport * from \"./components/typography/text.js\";\nexport * from \"./utilities/gradient.js\";\nexport * from \"./utilities/tv.js\";\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IiIsIm5hbWVzIjpbXSwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXX0="]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
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
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var plugin_exports = {};
|
|
30
|
+
__export(plugin_exports, {
|
|
31
|
+
lolmathui: () => lolmathui
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(plugin_exports);
|
|
34
|
+
var import_plugin = __toESM(require("tailwindcss/plugin.js"));
|
|
35
|
+
var import_theme = require("./utilities/theme.js");
|
|
36
|
+
const lolmathui = (0, import_plugin.default)(function({}) {
|
|
37
|
+
}, {
|
|
38
|
+
theme: {
|
|
39
|
+
extend: import_theme.theme
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
lolmathui
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AACnB,mBAAsB;AAEf,MAAM,gBAAY,cAAAA,SAAO,SAAU,CAAC,GAAG;AAAC,GAAG;AAAA,EAChD,OAAO;AAAA,IACL,QAAQ;AAAA,EACV;AACF,CAAC","names":["plugin"],"sources":["../../src/plugin.ts"],"sourcesContent":["import plugin from \"tailwindcss/plugin.js\";\nimport { theme } from \"./utilities/theme.js\";\n\nexport const lolmathui = plugin(function ({}) {}, {\n theme: {\n extend: theme,\n },\n});\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IiIsIm5hbWVzIjpbXSwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXX0="]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useCssId(): string;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 css_id_exports = {};
|
|
20
|
+
__export(css_id_exports, {
|
|
21
|
+
useCssId: () => useCssId
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(css_id_exports);
|
|
24
|
+
var import_react = require("react");
|
|
25
|
+
function useCssId() {
|
|
26
|
+
return (0, import_react.useId)().replaceAll(":", "");
|
|
27
|
+
}
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
useCssId
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=css-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsB;AAEf,SAAS,WAAW;AACzB,aAAO,oBAAM,EAAE,WAAW,KAAK,EAAE;AACnC","names":[],"sources":["../../../src/utilities/css-id.tsx"],"sourcesContent":["import { useId } from \"react\";\n\nexport function useCssId() {\n return useId().replaceAll(\":\", \"\");\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IiIsIm5hbWVzIjpbXSwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXX0="]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const goldGradient = "from-lol-gold-500 via-lol-gold-400 to-lol-gold-200";
|
|
2
|
+
export declare const goldGradientHover = "from-lol-gold-400 via-lol-gold-200 to-lol-gold-100";
|
|
3
|
+
export declare const goldGradientPressed = "from-lol-gold-600 via-lol-gold-600 to-lol-gold-500";
|
|
4
|
+
export declare const hextechGradient = "from-lol-blue-200 to-lol-blue-400";
|
|
5
|
+
export declare const hextechGradientHover = "from-lol-blue-100 to-lol-blue-300";
|
|
6
|
+
export declare const hextechGradientPressed = "from-lol-blue-500 to-lol-blue-400";
|
|
7
|
+
export declare const dimmedGradient = "from-lol-grey-300 via-lol-grey-300 to-lol-grey-300";
|
|
8
|
+
export declare const disabledGradient = "from-lol-grey-150 via-lol-grey-150 to-lol-grey-150";
|
|
@@ -0,0 +1,51 @@
|
|
|
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 gradient_exports = {};
|
|
20
|
+
__export(gradient_exports, {
|
|
21
|
+
dimmedGradient: () => dimmedGradient,
|
|
22
|
+
disabledGradient: () => disabledGradient,
|
|
23
|
+
goldGradient: () => goldGradient,
|
|
24
|
+
goldGradientHover: () => goldGradientHover,
|
|
25
|
+
goldGradientPressed: () => goldGradientPressed,
|
|
26
|
+
hextechGradient: () => hextechGradient,
|
|
27
|
+
hextechGradientHover: () => hextechGradientHover,
|
|
28
|
+
hextechGradientPressed: () => hextechGradientPressed
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(gradient_exports);
|
|
31
|
+
const goldGradient = "from-lol-gold-500 via-lol-gold-400 to-lol-gold-200";
|
|
32
|
+
const goldGradientHover = "from-lol-gold-400 via-lol-gold-200 to-lol-gold-100";
|
|
33
|
+
const goldGradientPressed = "from-lol-gold-600 via-lol-gold-600 to-lol-gold-500";
|
|
34
|
+
const hextechGradient = "from-lol-blue-200 to-lol-blue-400";
|
|
35
|
+
const hextechGradientHover = "from-lol-blue-100 to-lol-blue-300";
|
|
36
|
+
const hextechGradientPressed = "from-lol-blue-500 to-lol-blue-400";
|
|
37
|
+
const dimmedGradient = "from-lol-grey-300 via-lol-grey-300 to-lol-grey-300";
|
|
38
|
+
const disabledGradient = "from-lol-grey-150 via-lol-grey-150 to-lol-grey-150";
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
dimmedGradient,
|
|
42
|
+
disabledGradient,
|
|
43
|
+
goldGradient,
|
|
44
|
+
goldGradientHover,
|
|
45
|
+
goldGradientPressed,
|
|
46
|
+
hextechGradient,
|
|
47
|
+
hextechGradientHover,
|
|
48
|
+
hextechGradientPressed
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=gradient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,eACX;AACK,MAAM,oBACX;AACK,MAAM,sBACX;AAEK,MAAM,kBAAkB;AACxB,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAE/B,MAAM,iBACX;AACK,MAAM,mBACX","names":[],"sources":["../../../src/utilities/gradient.tsx"],"sourcesContent":["export const goldGradient =\n \"from-lol-gold-500 via-lol-gold-400 to-lol-gold-200\";\nexport const goldGradientHover =\n \"from-lol-gold-400 via-lol-gold-200 to-lol-gold-100\";\nexport const goldGradientPressed =\n \"from-lol-gold-600 via-lol-gold-600 to-lol-gold-500\";\n\nexport const hextechGradient = \"from-lol-blue-200 to-lol-blue-400\";\nexport const hextechGradientHover = \"from-lol-blue-100 to-lol-blue-300\";\nexport const hextechGradientPressed = \"from-lol-blue-500 to-lol-blue-400\";\n\nexport const dimmedGradient =\n \"from-lol-grey-300 via-lol-grey-300 to-lol-grey-300\";\nexport const disabledGradient =\n \"from-lol-grey-150 via-lol-grey-150 to-lol-grey-150\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const outlineClassName = "outline outline-[#dcc188] outline-offset-2 outline-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 outline_exports = {};
|
|
20
|
+
__export(outline_exports, {
|
|
21
|
+
outlineClassName: () => outlineClassName
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(outline_exports);
|
|
24
|
+
const outlineClassName = "outline outline-[#dcc188] outline-offset-2 outline-1";
|
|
25
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
+
0 && (module.exports = {
|
|
27
|
+
outlineClassName
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=outline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,mBACX","names":[],"sources":["../../../src/utilities/outline.tsx"],"sourcesContent":["export const outlineClassName =\n \"outline outline-[#dcc188] outline-offset-2 outline-1\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveClassName(className: ((values: any) => string) | string | undefined, values: any): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
});
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=resolve-class-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,iBACd,WACA,QACQ;AACR,SAAO,OAAO,cAAc,aAAa,UAAU,MAAM,IAAI,aAAa;AAC5E","names":[],"sources":["../../../src/utilities/resolve-class-name.ts"],"sourcesContent":["export function resolveClassName(\n className: ((values: any) => string) | string | undefined,\n values: any,\n): string {\n return typeof className === \"function\" ? className(values) : className ?? \"\";\n}\n"]}
|
|
@@ -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
|
+
};
|
|
@@ -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,9 @@ 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
|
-
|
|
136
|
+
|
|
137
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,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":[],"sources":["../../../src/utilities/theme.ts"],"sourcesContent":["import { ThemeConfig } from \"tailwindcss/types/config.js\";\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//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IiIsIm5hbWVzIjpbXSwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXX0="]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tv: import("tailwind-variants").TV;
|
|
@@ -0,0 +1,45 @@
|
|
|
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.js");
|
|
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
|
+
});
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=tv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+BAAyB;AACzB,mBAAsB;AAiBf,MAAM,SAAK,mCAAS;AAAA,EACzB,eAAe;AAAA;AAAA;AAAA;AAAA,IAIb,aAAa;AAAA,MACX,aAAa;AAAA,QACX;AAAA,UACE,MAAM,OAAO,KAAK,mBAAM,QAAQ;AAAA,QAClC;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,CAAC","names":[],"sources":["../../../src/utilities/tv.ts"],"sourcesContent":["import { createTV } from \"tailwind-variants\";\nimport { theme } from \"./theme.js\";\n\n// function formatColors() {\n// const colors = [];\n// for (const [key, color] of Object.entries(theme.colors)) {\n// if (typeof color === \"string\") {\n// colors.push(key);\n// } else {\n// const colorGroup = Object.keys(color).map((subKey) =>\n// subKey === \"DEFAULT\" ? \"\" : subKey,\n// );\n// colors.push({ [key]: colorGroup });\n// }\n// }\n// return colors;\n// }\n\nexport const tv = createTV({\n twMergeConfig: {\n // theme: {\n // colors: formatColors(),\n // },\n classGroups: {\n \"font-size\": [\n {\n text: Object.keys(theme.fontSize),\n },\n ],\n },\n },\n});\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IiIsIm5hbWVzIjpbXSwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXX0="]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function startViewTransition(callback: () => void): void;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
});
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=view-transition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA0B;AAEnB,SAAS,oBAAoB,UAAsB;AACxD,MAAI,yBAAyB,UAAU;AACrC,IAAC,SAAS,oBAA4B,MAAM;AAC1C,sCAAU,QAAQ;AAAA,IACpB,CAAC;AAAA,EACH,OAAO;AACL,aAAS;AAAA,EACX;AACF","names":[],"sources":["../../../src/utilities/view-transition.tsx"],"sourcesContent":["import { flushSync } from \"react-dom\";\n\nexport function startViewTransition(callback: () => void) {\n if (\"startViewTransition\" in document) {\n (document.startViewTransition as any)(() => {\n flushSync(callback);\n });\n } else {\n callback();\n }\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IiIsIm5hbWVzIjpbXSwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXX0="]}
|