bonkers-ui 2.0.13 → 2.0.14
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/_types/colors.d.ts +1 -8
- package/_types/colors.js +1 -1
- package/_types/colors.js.map +1 -1
- package/bonkers.css +0 -20
- package/components/UiBerRank/UiBerRank.js +38 -47
- package/components/UiBerRank/UiBerRank.js.map +1 -1
- package/components/UiBerRank/_types.d.ts +16 -18
- package/components/UiBerRank/_types.js +21 -23
- package/components/UiBerRank/_types.js.map +1 -1
- package/components/UiToggle/UiToggle.js +7 -7
- package/components/UiToggle/UiToggle.js.map +1 -1
- package/package.json +18 -18
- package/assets/UiBerRank.css +0 -1
package/_types/colors.d.ts
CHANGED
|
@@ -57,12 +57,5 @@ export declare enum EColors {
|
|
|
57
57
|
SECONDARY_ALT_400 = "--color-secondary-alt-400",
|
|
58
58
|
SECONDARY_ALT_500 = "--color-secondary-alt-500",
|
|
59
59
|
SECONDARY_ALT_600 = "--color-secondary-alt-600",
|
|
60
|
-
SECONDARY_ALT_700 = "--color-secondary-alt-700"
|
|
61
|
-
BER_DARK_GREEN = "--color-ber-dark-green",
|
|
62
|
-
BER_MID_GREEN = "--color-ber-mid-green",
|
|
63
|
-
BER_BRIGHT_GREEN = "--color-ber-bright-green",
|
|
64
|
-
BER_YELLOW = "--color-ber-yellow",
|
|
65
|
-
BER_MID_ORANGE = "--color-ber-mid-orange",
|
|
66
|
-
BER_DARK_ORANGE = "--color-ber-dark-orange",
|
|
67
|
-
BER_RED = "--color-ber-red"
|
|
60
|
+
SECONDARY_ALT_700 = "--color-secondary-alt-700"
|
|
68
61
|
}
|
package/_types/colors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var r = /* @__PURE__ */ ((c) => (c.WHITE = "--color-white", c.BLACK = "--color-black", c.TRANSPARENT = "--color-transparent", c.CURRENT = "--color-current", c.PRIMARY = "--color-primary", c.PRIMARY_50 = "--color-primary-50", c.PRIMARY_100 = "--color-primary-100", c.PRIMARY_200 = "--color-primary-200", c.PRIMARY_300 = "--color-primary-300", c.PRIMARY_400 = "--color-primary-400", c.PRIMARY_500 = "--color-primary-500", c.PRIMARY_600 = "--color-primary-600", c.PRIMARY_700 = "--color-primary-700", c.PRIMARY_800 = "--color-primary-800", c.PRIMARY_900 = "--color-primary-900", c.PRIMARY_ALT = "--color-primary-alt", c.PRIMARY_ALT_300 = "--color-primary-alt-300", c.PRIMARY_ALT_400 = "--color-primary-alt-400", c.PRIMARY_ALT_500 = "--color-primary-alt-500", c.PRIMARY_ALT_600 = "--color-primary-alt-600", c.PRIMARY_ALT_700 = "--color-primary-alt-700", c.SECONDARY = "--color-secondary", c.SECONDARY_300 = "--color-secondary-300", c.SECONDARY_400 = "--color-secondary-400", c.SECONDARY_500 = "--color-secondary-500", c.SECONDARY_600 = "--color-secondary-600", c.SECONDARY_700 = "--color-secondary-700", c.WARNING = "--color-warning", c.WARNING_300 = "--color-warning-300", c.WARNING_400 = "--color-warning-400", c.WARNING_500 = "--color-warning-500", c.WARNING_600 = "--color-warning-600", c.WARNING_700 = "--color-warning-700", c.ERROR = "--color-error", c.ERROR_100 = "--color-error-100", c.ERROR_200 = "--color-error-200", c.ERROR_300 = "--color-error-300", c.ERROR_400 = "--color-error-400", c.ERROR_500 = "--color-error-500", c.ERROR_600 = "--color-error-600", c.ERROR_700 = "--color-error-700", c.ACCENT = "--color-accent", c.ACCENT_300 = "--color-accent-300", c.ACCENT_500 = "--color-accent-500", c.ACCENT_600 = "--color-accent-600", c.ACCENT_700 = "--color-accent-700", c.ACCENT_ALT = "--color-accent-alt", c.ACCENT_ALT_300 = "--color-accent-alt-300", c.ACCENT_ALT_400 = "--color-accent-alt-400", c.ACCENT_ALT_500 = "--color-accent-alt-500", c.ACCENT_ALT_600 = "--color-accent-alt-600", c.ACCENT_ALT_700 = "--color-accent-alt-700", c.SECONDARY_ALT = "--color-secondary-alt", c.SECONDARY_ALT_200 = "--color-secondary-alt-200", c.SECONDARY_ALT_300 = "--color-secondary-alt-300", c.SECONDARY_ALT_400 = "--color-secondary-alt-400", c.SECONDARY_ALT_500 = "--color-secondary-alt-500", c.SECONDARY_ALT_600 = "--color-secondary-alt-600", c.SECONDARY_ALT_700 = "--color-secondary-alt-700", c
|
|
1
|
+
var r = /* @__PURE__ */ ((c) => (c.WHITE = "--color-white", c.BLACK = "--color-black", c.TRANSPARENT = "--color-transparent", c.CURRENT = "--color-current", c.PRIMARY = "--color-primary", c.PRIMARY_50 = "--color-primary-50", c.PRIMARY_100 = "--color-primary-100", c.PRIMARY_200 = "--color-primary-200", c.PRIMARY_300 = "--color-primary-300", c.PRIMARY_400 = "--color-primary-400", c.PRIMARY_500 = "--color-primary-500", c.PRIMARY_600 = "--color-primary-600", c.PRIMARY_700 = "--color-primary-700", c.PRIMARY_800 = "--color-primary-800", c.PRIMARY_900 = "--color-primary-900", c.PRIMARY_ALT = "--color-primary-alt", c.PRIMARY_ALT_300 = "--color-primary-alt-300", c.PRIMARY_ALT_400 = "--color-primary-alt-400", c.PRIMARY_ALT_500 = "--color-primary-alt-500", c.PRIMARY_ALT_600 = "--color-primary-alt-600", c.PRIMARY_ALT_700 = "--color-primary-alt-700", c.SECONDARY = "--color-secondary", c.SECONDARY_300 = "--color-secondary-300", c.SECONDARY_400 = "--color-secondary-400", c.SECONDARY_500 = "--color-secondary-500", c.SECONDARY_600 = "--color-secondary-600", c.SECONDARY_700 = "--color-secondary-700", c.WARNING = "--color-warning", c.WARNING_300 = "--color-warning-300", c.WARNING_400 = "--color-warning-400", c.WARNING_500 = "--color-warning-500", c.WARNING_600 = "--color-warning-600", c.WARNING_700 = "--color-warning-700", c.ERROR = "--color-error", c.ERROR_100 = "--color-error-100", c.ERROR_200 = "--color-error-200", c.ERROR_300 = "--color-error-300", c.ERROR_400 = "--color-error-400", c.ERROR_500 = "--color-error-500", c.ERROR_600 = "--color-error-600", c.ERROR_700 = "--color-error-700", c.ACCENT = "--color-accent", c.ACCENT_300 = "--color-accent-300", c.ACCENT_500 = "--color-accent-500", c.ACCENT_600 = "--color-accent-600", c.ACCENT_700 = "--color-accent-700", c.ACCENT_ALT = "--color-accent-alt", c.ACCENT_ALT_300 = "--color-accent-alt-300", c.ACCENT_ALT_400 = "--color-accent-alt-400", c.ACCENT_ALT_500 = "--color-accent-alt-500", c.ACCENT_ALT_600 = "--color-accent-alt-600", c.ACCENT_ALT_700 = "--color-accent-alt-700", c.SECONDARY_ALT = "--color-secondary-alt", c.SECONDARY_ALT_200 = "--color-secondary-alt-200", c.SECONDARY_ALT_300 = "--color-secondary-alt-300", c.SECONDARY_ALT_400 = "--color-secondary-alt-400", c.SECONDARY_ALT_500 = "--color-secondary-alt-500", c.SECONDARY_ALT_600 = "--color-secondary-alt-600", c.SECONDARY_ALT_700 = "--color-secondary-alt-700", c))(r || {});
|
|
2
2
|
export {
|
|
3
3
|
r as EColors
|
|
4
4
|
};
|
package/_types/colors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","sources":["../../src/_types/colors.ts"],"sourcesContent":["export enum EColors {\n\tWHITE = \"--color-white\",\n\tBLACK = \"--color-black\",\n\tTRANSPARENT = \"--color-transparent\",\n\tCURRENT = \"--color-current\",\n\n\tPRIMARY = \"--color-primary\",\n\tPRIMARY_50 = \"--color-primary-50\",\n\tPRIMARY_100 = \"--color-primary-100\",\n\tPRIMARY_200 = \"--color-primary-200\",\n\tPRIMARY_300 = \"--color-primary-300\",\n\tPRIMARY_400 = \"--color-primary-400\",\n\tPRIMARY_500 = \"--color-primary-500\",\n\tPRIMARY_600 = \"--color-primary-600\",\n\tPRIMARY_700 = \"--color-primary-700\",\n\tPRIMARY_800 = \"--color-primary-800\",\n\tPRIMARY_900 = \"--color-primary-900\",\n\n\tPRIMARY_ALT = \"--color-primary-alt\",\n\tPRIMARY_ALT_300 = \"--color-primary-alt-300\",\n\tPRIMARY_ALT_400 = \"--color-primary-alt-400\",\n\tPRIMARY_ALT_500 = \"--color-primary-alt-500\",\n\tPRIMARY_ALT_600 = \"--color-primary-alt-600\",\n\tPRIMARY_ALT_700 = \"--color-primary-alt-700\",\n\n\tSECONDARY = \"--color-secondary\",\n\tSECONDARY_300 = \"--color-secondary-300\",\n\tSECONDARY_400 = \"--color-secondary-400\",\n\tSECONDARY_500 = \"--color-secondary-500\",\n\tSECONDARY_600 = \"--color-secondary-600\",\n\tSECONDARY_700 = \"--color-secondary-700\",\n\n\tWARNING = \"--color-warning\",\n\tWARNING_300 = \"--color-warning-300\",\n\tWARNING_400 = \"--color-warning-400\",\n\tWARNING_500 = \"--color-warning-500\",\n\tWARNING_600 = \"--color-warning-600\",\n\tWARNING_700 = \"--color-warning-700\",\n\n\tERROR = \"--color-error\",\n\tERROR_100 = \"--color-error-100\",\n\tERROR_200 = \"--color-error-200\",\n\tERROR_300 = \"--color-error-300\",\n\tERROR_400 = \"--color-error-400\",\n\tERROR_500 = \"--color-error-500\",\n\tERROR_600 = \"--color-error-600\",\n\tERROR_700 = \"--color-error-700\",\n\n\tACCENT = \"--color-accent\",\n\tACCENT_300 = \"--color-accent-300\",\n\tACCENT_500 = \"--color-accent-500\",\n\tACCENT_600 = \"--color-accent-600\",\n\tACCENT_700 = \"--color-accent-700\",\n\n\tACCENT_ALT = \"--color-accent-alt\",\n\tACCENT_ALT_300 = \"--color-accent-alt-300\",\n\tACCENT_ALT_400 = \"--color-accent-alt-400\",\n\tACCENT_ALT_500 = \"--color-accent-alt-500\",\n\tACCENT_ALT_600 = \"--color-accent-alt-600\",\n\tACCENT_ALT_700 = \"--color-accent-alt-700\",\n\n\tSECONDARY_ALT = \"--color-secondary-alt\",\n\tSECONDARY_ALT_200 = \"--color-secondary-alt-200\",\n\tSECONDARY_ALT_300 = \"--color-secondary-alt-300\",\n\tSECONDARY_ALT_400 = \"--color-secondary-alt-400\",\n\tSECONDARY_ALT_500 = \"--color-secondary-alt-500\",\n\tSECONDARY_ALT_600 = \"--color-secondary-alt-600\",\n\tSECONDARY_ALT_700 = \"--color-secondary-alt-700\",\n
|
|
1
|
+
{"version":3,"file":"colors.js","sources":["../../src/_types/colors.ts"],"sourcesContent":["export enum EColors {\n\tWHITE = \"--color-white\",\n\tBLACK = \"--color-black\",\n\tTRANSPARENT = \"--color-transparent\",\n\tCURRENT = \"--color-current\",\n\n\tPRIMARY = \"--color-primary\",\n\tPRIMARY_50 = \"--color-primary-50\",\n\tPRIMARY_100 = \"--color-primary-100\",\n\tPRIMARY_200 = \"--color-primary-200\",\n\tPRIMARY_300 = \"--color-primary-300\",\n\tPRIMARY_400 = \"--color-primary-400\",\n\tPRIMARY_500 = \"--color-primary-500\",\n\tPRIMARY_600 = \"--color-primary-600\",\n\tPRIMARY_700 = \"--color-primary-700\",\n\tPRIMARY_800 = \"--color-primary-800\",\n\tPRIMARY_900 = \"--color-primary-900\",\n\n\tPRIMARY_ALT = \"--color-primary-alt\",\n\tPRIMARY_ALT_300 = \"--color-primary-alt-300\",\n\tPRIMARY_ALT_400 = \"--color-primary-alt-400\",\n\tPRIMARY_ALT_500 = \"--color-primary-alt-500\",\n\tPRIMARY_ALT_600 = \"--color-primary-alt-600\",\n\tPRIMARY_ALT_700 = \"--color-primary-alt-700\",\n\n\tSECONDARY = \"--color-secondary\",\n\tSECONDARY_300 = \"--color-secondary-300\",\n\tSECONDARY_400 = \"--color-secondary-400\",\n\tSECONDARY_500 = \"--color-secondary-500\",\n\tSECONDARY_600 = \"--color-secondary-600\",\n\tSECONDARY_700 = \"--color-secondary-700\",\n\n\tWARNING = \"--color-warning\",\n\tWARNING_300 = \"--color-warning-300\",\n\tWARNING_400 = \"--color-warning-400\",\n\tWARNING_500 = \"--color-warning-500\",\n\tWARNING_600 = \"--color-warning-600\",\n\tWARNING_700 = \"--color-warning-700\",\n\n\tERROR = \"--color-error\",\n\tERROR_100 = \"--color-error-100\",\n\tERROR_200 = \"--color-error-200\",\n\tERROR_300 = \"--color-error-300\",\n\tERROR_400 = \"--color-error-400\",\n\tERROR_500 = \"--color-error-500\",\n\tERROR_600 = \"--color-error-600\",\n\tERROR_700 = \"--color-error-700\",\n\n\tACCENT = \"--color-accent\",\n\tACCENT_300 = \"--color-accent-300\",\n\tACCENT_500 = \"--color-accent-500\",\n\tACCENT_600 = \"--color-accent-600\",\n\tACCENT_700 = \"--color-accent-700\",\n\n\tACCENT_ALT = \"--color-accent-alt\",\n\tACCENT_ALT_300 = \"--color-accent-alt-300\",\n\tACCENT_ALT_400 = \"--color-accent-alt-400\",\n\tACCENT_ALT_500 = \"--color-accent-alt-500\",\n\tACCENT_ALT_600 = \"--color-accent-alt-600\",\n\tACCENT_ALT_700 = \"--color-accent-alt-700\",\n\n\tSECONDARY_ALT = \"--color-secondary-alt\",\n\tSECONDARY_ALT_200 = \"--color-secondary-alt-200\",\n\tSECONDARY_ALT_300 = \"--color-secondary-alt-300\",\n\tSECONDARY_ALT_400 = \"--color-secondary-alt-400\",\n\tSECONDARY_ALT_500 = \"--color-secondary-alt-500\",\n\tSECONDARY_ALT_600 = \"--color-secondary-alt-600\",\n\tSECONDARY_ALT_700 = \"--color-secondary-alt-700\",\n}\n"],"names":["EColors"],"mappings":"AAAO,IAAKA,sBAAAA,OACXA,EAAA,QAAQ,iBACRA,EAAA,QAAQ,iBACRA,EAAA,cAAc,uBACdA,EAAA,UAAU,mBAEVA,EAAA,UAAU,mBACVA,EAAA,aAAa,sBACbA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBAEdA,EAAA,cAAc,uBACdA,EAAA,kBAAkB,2BAClBA,EAAA,kBAAkB,2BAClBA,EAAA,kBAAkB,2BAClBA,EAAA,kBAAkB,2BAClBA,EAAA,kBAAkB,2BAElBA,EAAA,YAAY,qBACZA,EAAA,gBAAgB,yBAChBA,EAAA,gBAAgB,yBAChBA,EAAA,gBAAgB,yBAChBA,EAAA,gBAAgB,yBAChBA,EAAA,gBAAgB,yBAEhBA,EAAA,UAAU,mBACVA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBACdA,EAAA,cAAc,uBAEdA,EAAA,QAAQ,iBACRA,EAAA,YAAY,qBACZA,EAAA,YAAY,qBACZA,EAAA,YAAY,qBACZA,EAAA,YAAY,qBACZA,EAAA,YAAY,qBACZA,EAAA,YAAY,qBACZA,EAAA,YAAY,qBAEZA,EAAA,SAAS,kBACTA,EAAA,aAAa,sBACbA,EAAA,aAAa,sBACbA,EAAA,aAAa,sBACbA,EAAA,aAAa,sBAEbA,EAAA,aAAa,sBACbA,EAAA,iBAAiB,0BACjBA,EAAA,iBAAiB,0BACjBA,EAAA,iBAAiB,0BACjBA,EAAA,iBAAiB,0BACjBA,EAAA,iBAAiB,0BAEjBA,EAAA,gBAAgB,yBAChBA,EAAA,oBAAoB,6BACpBA,EAAA,oBAAoB,6BACpBA,EAAA,oBAAoB,6BACpBA,EAAA,oBAAoB,6BACpBA,EAAA,oBAAoB,6BACpBA,EAAA,oBAAoB,6BAnETA,IAAAA,KAAA,CAAA,CAAA;"}
|
package/bonkers.css
CHANGED
|
@@ -121,15 +121,6 @@
|
|
|
121
121
|
--color-secondary-alt-600: #767b92;
|
|
122
122
|
--color-secondary-alt-700: #595c6e;
|
|
123
123
|
|
|
124
|
-
--color-ber-dark-green: #00a651;
|
|
125
|
-
--color-ber-mid-green: #51b848;
|
|
126
|
-
--color-ber-bright-green: #bfd730;
|
|
127
|
-
--color-ber-yellow: #fff200;
|
|
128
|
-
--color-ber-mid-orange: #fdb913;
|
|
129
|
-
--color-ber-dark-orange: #f37021;
|
|
130
|
-
--color-ber-red:#ed1c24;
|
|
131
|
-
|
|
132
|
-
|
|
133
124
|
/* backdrop blur */
|
|
134
125
|
--backdrop-blur-min: 0.5px;
|
|
135
126
|
--backdrop-blur-xs: 2px;
|
|
@@ -264,17 +255,6 @@
|
|
|
264
255
|
--color-secondary-alt: var(--color-secondary-alt-500);
|
|
265
256
|
--color-warning: var(--color-warning-500);
|
|
266
257
|
|
|
267
|
-
--color-ber-dark-green: var(--color-ber-dark-green);
|
|
268
|
-
--color-ber-mid-green: var(--color-ber-mid-green);
|
|
269
|
-
--color-ber-bright-green: var(--color-ber-bright-green);
|
|
270
|
-
--color-ber-yellow: var(--color-ber-yellow);
|
|
271
|
-
--color-ber-mid-orange: var(--color-ber-mid-orange);
|
|
272
|
-
--color-ber-dark-orange: var(--color-ber-dark-orange);
|
|
273
|
-
--color-ber-red: var(--color-ber-red);
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
258
|
/* backdrop blur */
|
|
279
259
|
--backdrop-blur-*: initial;
|
|
280
260
|
--backdrop-blur-min: var(--backdrop-blur-min);
|
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
4
|
-
import { EColors as
|
|
5
|
-
import { EBerSize as
|
|
6
|
-
import { UiTypography as
|
|
7
|
-
import { ETypographySizes as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, d = {
|
|
12
|
-
[l.SMALL]: f.icon_small,
|
|
13
|
-
[l.MEDIUM]: f.icon_medium
|
|
3
|
+
import i from "classnames";
|
|
4
|
+
import { EColors as C } from "../../_types/colors.js";
|
|
5
|
+
import { EBerSize as r, berRankDictionary as l } from "./_types.js";
|
|
6
|
+
import { UiTypography as n } from "../UiTypography/UiTypography.js";
|
|
7
|
+
import { ETypographySizes as a, ETextTransform as c, ETextWeight as m } from "../UiTypography/_types.js";
|
|
8
|
+
const f = {
|
|
9
|
+
[r.SMALL]: "h-[30px]",
|
|
10
|
+
[r.MEDIUM]: "h-[60px]"
|
|
14
11
|
}, x = {
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
},
|
|
12
|
+
[r.SMALL]: a.SM,
|
|
13
|
+
[r.MEDIUM]: a.XXXL
|
|
14
|
+
}, g = ({
|
|
18
15
|
rank: s,
|
|
19
16
|
className: p,
|
|
20
|
-
size:
|
|
21
|
-
}) => /* @__PURE__ */
|
|
17
|
+
size: t = r.SMALL
|
|
18
|
+
}) => /* @__PURE__ */ o("div", { className: i(
|
|
22
19
|
"ui-ber-rank",
|
|
23
20
|
"flex",
|
|
24
21
|
p
|
|
25
22
|
), children: [
|
|
26
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ o("div", { className: "relative", children: [
|
|
27
24
|
/* @__PURE__ */ e(
|
|
28
25
|
"svg",
|
|
29
26
|
{
|
|
30
|
-
className:
|
|
27
|
+
className: i("text-secondary", f[t]),
|
|
31
28
|
viewBox: "0 0 160 60",
|
|
32
29
|
fill: "none",
|
|
33
30
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -42,55 +39,49 @@ import '../../assets/UiBerRank.css';const h = "_icon_medium_18il7_1", u = "_icon
|
|
|
42
39
|
}
|
|
43
40
|
),
|
|
44
41
|
/* @__PURE__ */ e(
|
|
45
|
-
|
|
42
|
+
n,
|
|
46
43
|
{
|
|
47
44
|
className: "absolute top-0 left-0 flex size-full items-center justify-center",
|
|
48
|
-
color:
|
|
49
|
-
size: x[
|
|
50
|
-
weight:
|
|
51
|
-
textTransform:
|
|
45
|
+
color: C.WHITE,
|
|
46
|
+
size: x[t],
|
|
47
|
+
weight: m.BOLD,
|
|
48
|
+
textTransform: c.UPPERCASE,
|
|
52
49
|
children: "ber"
|
|
53
50
|
}
|
|
54
51
|
)
|
|
55
52
|
] }),
|
|
56
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ o("div", { className: "relative", children: [
|
|
57
54
|
/* @__PURE__ */ e(
|
|
58
|
-
|
|
55
|
+
"svg",
|
|
59
56
|
{
|
|
60
|
-
|
|
57
|
+
className: i(f[t], l[+s]?.color || l[0].color),
|
|
58
|
+
viewBox: "0 0 106 60",
|
|
59
|
+
fill: "none",
|
|
60
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
61
61
|
children: /* @__PURE__ */ e(
|
|
62
|
-
"
|
|
62
|
+
"path",
|
|
63
63
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
fill: "
|
|
67
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
68
|
-
children: /* @__PURE__ */ e(
|
|
69
|
-
"path",
|
|
70
|
-
{
|
|
71
|
-
fillRule: "evenodd",
|
|
72
|
-
d: "M3.01833 20.2172C0.74308 13.3915 -0.394547 9.9786 0.287586 7.26202C0.884697 4.88404 2.36903 2.82464 4.43616 1.50619C6.79762 0 10.3951 0 17.5901 0H90.3607C95.7373 0 98.4255 0 100.479 1.04634C102.285 1.96672 103.754 3.43534 104.674 5.24169C105.721 7.29524 105.721 9.9835 105.721 15.36V44.64C105.721 50.0165 105.721 52.7048 104.674 54.7583C103.754 56.5647 102.285 58.0333 100.479 58.9537C98.4255 60 95.7373 60 90.3607 60H17.5901C10.3951 60 6.79762 60 4.43616 58.4938C2.36903 57.1754 0.884697 55.116 0.287586 52.738C-0.394547 50.0214 0.743081 46.6085 3.01834 39.7827L4.93001 34.0477C5.43062 32.5459 5.68093 31.795 5.78035 31.0268C5.86857 30.3451 5.86857 29.6549 5.78035 28.9732C5.68093 28.205 5.43062 27.4541 4.93001 25.9523L3.01833 20.2172Z",
|
|
73
|
-
fill: "currentColor"
|
|
74
|
-
}
|
|
75
|
-
)
|
|
64
|
+
fillRule: "evenodd",
|
|
65
|
+
d: "M3.01833 20.2172C0.74308 13.3915 -0.394547 9.9786 0.287586 7.26202C0.884697 4.88404 2.36903 2.82464 4.43616 1.50619C6.79762 0 10.3951 0 17.5901 0H90.3607C95.7373 0 98.4255 0 100.479 1.04634C102.285 1.96672 103.754 3.43534 104.674 5.24169C105.721 7.29524 105.721 9.9835 105.721 15.36V44.64C105.721 50.0165 105.721 52.7048 104.674 54.7583C103.754 56.5647 102.285 58.0333 100.479 58.9537C98.4255 60 95.7373 60 90.3607 60H17.5901C10.3951 60 6.79762 60 4.43616 58.4938C2.36903 57.1754 0.884697 55.116 0.287586 52.738C-0.394547 50.0214 0.743081 46.6085 3.01834 39.7827L4.93001 34.0477C5.43062 32.5459 5.68093 31.795 5.78035 31.0268C5.86857 30.3451 5.86857 29.6549 5.78035 28.9732C5.68093 28.205 5.43062 27.4541 4.93001 25.9523L3.01833 20.2172Z",
|
|
66
|
+
fill: "currentColor"
|
|
76
67
|
}
|
|
77
68
|
)
|
|
78
69
|
}
|
|
79
70
|
),
|
|
80
71
|
/* @__PURE__ */ e(
|
|
81
|
-
|
|
72
|
+
n,
|
|
82
73
|
{
|
|
83
74
|
className: "absolute top-0 left-0 flex size-full items-center justify-center",
|
|
84
|
-
color:
|
|
85
|
-
size: x[
|
|
86
|
-
weight:
|
|
87
|
-
textTransform:
|
|
88
|
-
children:
|
|
75
|
+
color: C.WHITE,
|
|
76
|
+
size: x[t],
|
|
77
|
+
weight: m.BOLD,
|
|
78
|
+
textTransform: c.UPPERCASE,
|
|
79
|
+
children: l[+s]?.text || l[0].text
|
|
89
80
|
}
|
|
90
81
|
)
|
|
91
82
|
] })
|
|
92
83
|
] });
|
|
93
84
|
export {
|
|
94
|
-
|
|
85
|
+
g as UiBerRank
|
|
95
86
|
};
|
|
96
87
|
//# sourceMappingURL=UiBerRank.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiBerRank.js","sources":["../../../src/components/UiBerRank/UiBerRank.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport
|
|
1
|
+
{"version":3,"file":"UiBerRank.js","sources":["../../../src/components/UiBerRank/UiBerRank.tsx"],"sourcesContent":["import React from \"react\";\nimport cx from \"classnames\";\nimport { EColors } from \"../../_types/colors.ts\";\nimport { berRankDictionary, type TBerPropNumber, type TBerPropString, EBerSize } from \"./_types\";\nimport { UiTypography, ETextWeight, ETypographySizes, ETextTransform } from \"../UiTypography\";\n\ninterface IUiBerRankProps {\n\trank: TBerPropNumber | TBerPropString | number;\n\tsize?: EBerSize;\n\tclassName?: string;\n}\n\nconst sizeClasses = {\n\t[EBerSize.SMALL]: \"h-[30px]\",\n\t[EBerSize.MEDIUM]: \"h-[60px]\"\n};\n\nconst textSize = {\n\t[EBerSize.SMALL]: ETypographySizes.SM,\n\t[EBerSize.MEDIUM]: ETypographySizes.XXXL\n};\n\nexport const UiBerRank: React.FC<IUiBerRankProps> = ({\n\trank,\n\tclassName,\n\tsize = EBerSize.SMALL\n}) => {\n\treturn (\n\t\t<div className={ cx(\n\t\t\t\"ui-ber-rank\",\n\t\t\t\"flex\",\n\t\t\tclassName\n\t\t) }>\n\t\t\t<div className=\"relative\">\n\t\t\t\t<svg className={ cx(\"text-secondary\", sizeClasses[size]) }\n\t\t\t\t\tviewBox=\"0 0 160 60\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\t\t\td=\"M0.279251 15.36C0.279251 9.9835 0.279251 7.29524 1.32559 5.24169C2.24597 3.43534 3.71459 1.96672 5.52094 1.04634C7.5745 0 10.2627 0 15.6393 0H139.208C143.189 0 145.18 0 146.874 0.666121C148.369 1.25435 149.693 2.20864 150.724 3.44151C151.892 4.83764 152.521 6.72601 153.78 10.5027L158.93 25.9523C159.431 27.4541 159.681 28.205 159.78 28.9732C159.869 29.6549 159.869 30.3451 159.78 31.0268C159.681 31.795 159.431 32.5459 158.93 34.0477L153.78 49.4973C152.521 53.274 151.892 55.1624 150.724 56.5585C149.693 57.7914 148.369 58.7457 146.874 59.3339C145.18 60 143.189 60 139.208 60H15.6393C10.2627 60 7.5745 60 5.52094 58.9537C3.71459 58.0333 2.24597 56.5647 1.32559 54.7583C0.279251 52.7048 0.279251 50.0165 0.279251 44.64V15.36Z\"\n\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t\t<UiTypography\n\t\t\t\t\tclassName=\"absolute top-0 left-0 flex size-full items-center justify-center\"\n\t\t\t\t\tcolor={ EColors.WHITE }\n\t\t\t\t\tsize={ textSize[size] }\n\t\t\t\t\tweight={ ETextWeight.BOLD }\n\t\t\t\t\ttextTransform={ ETextTransform.UPPERCASE }\n\t\t\t\t>\n\t\t\t\t\tber\n\t\t\t\t</UiTypography>\n\t\t\t</div>\n\n\t\t\t<div className=\"relative\">\n\n\t\t\t\t<svg className={\n\t\t\t\t\tcx(sizeClasses[size], berRankDictionary[+rank]?.color || berRankDictionary[0].color)\n\t\t\t\t}\n\t\t\t\tviewBox=\"0 0 106 60\"\n\t\t\t\tfill=\"none\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t>\n\t\t\t\t\t<path\n\t\t\t\t\t\tfillRule=\"evenodd\"\n\t\t\t\t\t\td=\"M3.01833 20.2172C0.74308 13.3915 -0.394547 9.9786 0.287586 7.26202C0.884697 4.88404 2.36903 2.82464 4.43616 1.50619C6.79762 0 10.3951 0 17.5901 0H90.3607C95.7373 0 98.4255 0 100.479 1.04634C102.285 1.96672 103.754 3.43534 104.674 5.24169C105.721 7.29524 105.721 9.9835 105.721 15.36V44.64C105.721 50.0165 105.721 52.7048 104.674 54.7583C103.754 56.5647 102.285 58.0333 100.479 58.9537C98.4255 60 95.7373 60 90.3607 60H17.5901C10.3951 60 6.79762 60 4.43616 58.4938C2.36903 57.1754 0.884697 55.116 0.287586 52.738C-0.394547 50.0214 0.743081 46.6085 3.01834 39.7827L4.93001 34.0477C5.43062 32.5459 5.68093 31.795 5.78035 31.0268C5.86857 30.3451 5.86857 29.6549 5.78035 28.9732C5.68093 28.205 5.43062 27.4541 4.93001 25.9523L3.01833 20.2172Z\"\n\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\n\t\t\t\t<UiTypography\n\t\t\t\t\tclassName=\"absolute top-0 left-0 flex size-full items-center justify-center\"\n\t\t\t\t\tcolor={ EColors.WHITE }\n\t\t\t\t\tsize={ textSize[size] }\n\t\t\t\t\tweight={ ETextWeight.BOLD }\n\t\t\t\t\ttextTransform={ ETextTransform.UPPERCASE }\n\t\t\t\t>\n\t\t\t\t\t{ berRankDictionary[+rank]?.text || berRankDictionary[0].text }\n\t\t\t\t</UiTypography>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n"],"names":["sizeClasses","EBerSize","textSize","ETypographySizes","UiBerRank","rank","className","size","jsxs","cx","jsx","UiTypography","EColors","ETextWeight","ETextTransform","berRankDictionary"],"mappings":";;;;;;;AAYA,MAAMA,IAAc;AAAA,EACnB,CAACC,EAAS,KAAK,GAAG;AAAA,EAClB,CAACA,EAAS,MAAM,GAAG;AACpB,GAEMC,IAAW;AAAA,EAChB,CAACD,EAAS,KAAK,GAAGE,EAAiB;AAAA,EACnC,CAACF,EAAS,MAAM,GAAGE,EAAiB;AACrC,GAEaC,IAAuC,CAAC;AAAA,EACpD,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAON,EAAS;AACjB,MAEE,gBAAAO,EAAC,SAAI,WAAYC;AAAA,EAChB;AAAA,EACA;AAAA,EACAH;AAAA,GAEA,UAAA;AAAA,EAAA,gBAAAE,EAAC,OAAA,EAAI,WAAU,YACd,UAAA;AAAA,IAAA,gBAAAE;AAAA,MAAC;AAAA,MAAA;AAAA,QAAI,WAAYD,EAAG,kBAAkBT,EAAYO,CAAI,CAAC;AAAA,QACtD,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,OAAM;AAAA,QAEN,UAAA,gBAAAG;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,UAAS;AAAA,YACT,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MACN;AAAA,IAAA;AAAA,IAED,gBAAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACA,WAAU;AAAA,QACV,OAAQC,EAAQ;AAAA,QAChB,MAAOV,EAASK,CAAI;AAAA,QACpB,QAASM,EAAY;AAAA,QACrB,eAAgBC,EAAe;AAAA,QAC/B,UAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAED,GACD;AAAA,EAEA,gBAAAN,EAAC,OAAA,EAAI,WAAU,YAEd,UAAA;AAAA,IAAA,gBAAAE;AAAA,MAAC;AAAA,MAAA;AAAA,QAAI,WACJD,EAAGT,EAAYO,CAAI,GAAGQ,EAAkB,CAACV,CAAI,GAAG,SAASU,EAAkB,CAAC,EAAE,KAAK;AAAA,QAEpF,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,OAAM;AAAA,QAEL,UAAA,gBAAAL;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,UAAS;AAAA,YACT,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA;AAAA,MACN;AAAA,IAAA;AAAA,IAGD,gBAAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACA,WAAU;AAAA,QACV,OAAQC,EAAQ;AAAA,QAChB,MAAOV,EAASK,CAAI;AAAA,QACpB,QAASM,EAAY;AAAA,QACrB,eAAgBC,EAAe;AAAA,QAE7B,YAAkB,CAACT,CAAI,GAAG,QAAQU,EAAkB,CAAC,EAAE;AAAA,MAAA;AAAA,IAAA;AAAA,EAC1D,EAAA,CACD;AAAA,GACD;"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EColors } from '../../_types/colors.ts';
|
|
2
1
|
type Ran<T extends number> = number extends T ? number : _Range<T, []>;
|
|
3
2
|
type _Range<T extends number, R extends unknown[]> = R["length"] extends T ? R[number] : _Range<T, [R["length"], ...R]>;
|
|
4
3
|
export type TBerPropNumber = Ran<typeof berRankDictionary.length>;
|
|
@@ -6,54 +5,53 @@ export type TBerPropString = `${TBerPropNumber}`;
|
|
|
6
5
|
export type TBerRank = typeof berRankDictionary[TBerPropNumber]["text"];
|
|
7
6
|
export declare const berRankDictionary: readonly [{
|
|
8
7
|
readonly text: "N/A";
|
|
9
|
-
readonly color:
|
|
8
|
+
readonly color: "text-secondary-alt";
|
|
10
9
|
}, {
|
|
11
10
|
readonly text: "G";
|
|
12
|
-
readonly color:
|
|
11
|
+
readonly color: "text-[#ed1c24]";
|
|
13
12
|
}, {
|
|
14
13
|
readonly text: "F";
|
|
15
|
-
readonly color:
|
|
14
|
+
readonly color: "text-[#f37021]";
|
|
16
15
|
}, {
|
|
17
16
|
readonly text: "E2";
|
|
18
|
-
readonly color:
|
|
17
|
+
readonly color: "text-[#fdb913]";
|
|
19
18
|
}, {
|
|
20
19
|
readonly text: "E1";
|
|
21
|
-
readonly color:
|
|
20
|
+
readonly color: "text-[#f37021]";
|
|
22
21
|
}, {
|
|
23
22
|
readonly text: "D2";
|
|
24
|
-
readonly color:
|
|
23
|
+
readonly color: "text-[#fff200]";
|
|
25
24
|
}, {
|
|
26
25
|
readonly text: "D1";
|
|
27
|
-
readonly color:
|
|
26
|
+
readonly color: "text-[#fff200]";
|
|
28
27
|
}, {
|
|
29
28
|
readonly text: "C3";
|
|
30
|
-
readonly color:
|
|
29
|
+
readonly color: "text-[#bfd730]";
|
|
31
30
|
}, {
|
|
32
31
|
readonly text: "C2";
|
|
33
|
-
readonly color:
|
|
32
|
+
readonly color: "text-[#bfd730]";
|
|
34
33
|
}, {
|
|
35
34
|
readonly text: "C1";
|
|
36
|
-
readonly color:
|
|
35
|
+
readonly color: "text-[#bfd730]";
|
|
37
36
|
}, {
|
|
38
37
|
readonly text: "B3";
|
|
39
|
-
readonly color:
|
|
38
|
+
readonly color: "text-[#51b848]";
|
|
40
39
|
}, {
|
|
41
40
|
readonly text: "B2";
|
|
42
|
-
readonly color:
|
|
41
|
+
readonly color: "text-[#51b848]";
|
|
43
42
|
}, {
|
|
44
43
|
readonly text: "B1";
|
|
45
|
-
readonly color:
|
|
44
|
+
readonly color: "text-[#51b848]";
|
|
46
45
|
}, {
|
|
47
46
|
readonly text: "A3";
|
|
48
|
-
readonly color:
|
|
47
|
+
readonly color: "text-[#00a651]";
|
|
49
48
|
}, {
|
|
50
49
|
readonly text: "A2";
|
|
51
|
-
readonly color:
|
|
50
|
+
readonly color: "text-[#00a651]";
|
|
52
51
|
}, {
|
|
53
52
|
readonly text: "A1";
|
|
54
|
-
readonly color:
|
|
53
|
+
readonly color: "text-[#00a651]";
|
|
55
54
|
}];
|
|
56
|
-
export declare const berRanksList: ("N/A" | "G" | "F" | "E2" | "E1" | "D2" | "D1" | "C3" | "C2" | "C1" | "B3" | "B2" | "B1" | "A3" | "A2" | "A1")[];
|
|
57
55
|
export declare enum EBerSize {
|
|
58
56
|
SMALL = "small",
|
|
59
57
|
MEDIUM = "medium"
|
|
@@ -1,74 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
const t = [
|
|
1
|
+
const o = [
|
|
3
2
|
{
|
|
4
3
|
text: "N/A",
|
|
5
|
-
color:
|
|
4
|
+
color: "text-secondary-alt"
|
|
6
5
|
},
|
|
7
6
|
{
|
|
8
7
|
text: "G",
|
|
9
|
-
color:
|
|
8
|
+
color: "text-[#ed1c24]"
|
|
10
9
|
},
|
|
11
10
|
{
|
|
12
11
|
text: "F",
|
|
13
|
-
color:
|
|
12
|
+
color: "text-[#f37021]"
|
|
14
13
|
},
|
|
15
14
|
{
|
|
16
15
|
text: "E2",
|
|
17
|
-
color:
|
|
16
|
+
color: "text-[#fdb913]"
|
|
18
17
|
},
|
|
19
18
|
{
|
|
20
19
|
text: "E1",
|
|
21
|
-
color:
|
|
20
|
+
color: "text-[#f37021]"
|
|
22
21
|
},
|
|
23
22
|
{
|
|
24
23
|
text: "D2",
|
|
25
|
-
color:
|
|
24
|
+
color: "text-[#fff200]"
|
|
26
25
|
},
|
|
27
26
|
{
|
|
28
27
|
text: "D1",
|
|
29
|
-
color:
|
|
28
|
+
color: "text-[#fff200]"
|
|
30
29
|
},
|
|
31
30
|
{
|
|
32
31
|
text: "C3",
|
|
33
|
-
color:
|
|
32
|
+
color: "text-[#bfd730]"
|
|
34
33
|
},
|
|
35
34
|
{
|
|
36
35
|
text: "C2",
|
|
37
|
-
color:
|
|
36
|
+
color: "text-[#bfd730]"
|
|
38
37
|
},
|
|
39
38
|
{
|
|
40
39
|
text: "C1",
|
|
41
|
-
color:
|
|
40
|
+
color: "text-[#bfd730]"
|
|
42
41
|
},
|
|
43
42
|
{
|
|
44
43
|
text: "B3",
|
|
45
|
-
color:
|
|
44
|
+
color: "text-[#51b848]"
|
|
46
45
|
},
|
|
47
46
|
{
|
|
48
47
|
text: "B2",
|
|
49
|
-
color:
|
|
48
|
+
color: "text-[#51b848]"
|
|
50
49
|
},
|
|
51
50
|
{
|
|
52
51
|
text: "B1",
|
|
53
|
-
color:
|
|
52
|
+
color: "text-[#51b848]"
|
|
54
53
|
},
|
|
55
54
|
{
|
|
56
55
|
text: "A3",
|
|
57
|
-
color:
|
|
56
|
+
color: "text-[#00a651]"
|
|
58
57
|
},
|
|
59
58
|
{
|
|
60
59
|
text: "A2",
|
|
61
|
-
color:
|
|
60
|
+
color: "text-[#00a651]"
|
|
62
61
|
},
|
|
63
62
|
{
|
|
64
63
|
text: "A1",
|
|
65
|
-
color:
|
|
64
|
+
color: "text-[#00a651]"
|
|
66
65
|
}
|
|
67
|
-
]
|
|
68
|
-
var
|
|
66
|
+
];
|
|
67
|
+
var e = /* @__PURE__ */ ((t) => (t.SMALL = "small", t.MEDIUM = "medium", t))(e || {});
|
|
69
68
|
export {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
r as berRanksList
|
|
69
|
+
e as EBerSize,
|
|
70
|
+
o as berRankDictionary
|
|
73
71
|
};
|
|
74
72
|
//# sourceMappingURL=_types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_types.js","sources":["../../../src/components/UiBerRank/_types.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"_types.js","sources":["../../../src/components/UiBerRank/_types.ts"],"sourcesContent":["type Ran<T extends number> = number extends T ? number : _Range<T, []>;\ntype _Range<T extends number, R extends unknown[]> = R[\"length\"] extends T ? R[number] : _Range<T, [R[\"length\"], ...R]>;\n\nexport type TBerPropNumber = Ran<typeof berRankDictionary.length>\nexport type TBerPropString = `${TBerPropNumber}`;\nexport type TBerRank = typeof berRankDictionary[TBerPropNumber][\"text\"];\n\nexport const berRankDictionary = [\n\t{\n\t\ttext: \"N/A\",\n\t\tcolor: \"text-secondary-alt\",\n\t},\n\t{\n\t\ttext: \"G\",\n\t\tcolor: \"text-[#ed1c24]\",\n\t},\n\t{\n\t\ttext: \"F\",\n\t\tcolor: \"text-[#f37021]\",\n\t},\n\t{\n\t\ttext: \"E2\",\n\t\tcolor: \"text-[#fdb913]\",\n\t},\n\t{\n\t\ttext: \"E1\",\n\t\tcolor: \"text-[#f37021]\",\n\t},\n\t{\n\t\ttext: \"D2\",\n\t\tcolor: \"text-[#fff200]\",\n\t},\n\t{\n\t\ttext: \"D1\",\n\t\tcolor: \"text-[#fff200]\",\n\t},\n\t{\n\t\ttext: \"C3\",\n\t\tcolor: \"text-[#bfd730]\",\n\t},\n\t{\n\t\ttext: \"C2\",\n\t\tcolor: \"text-[#bfd730]\",\n\t},\n\t{\n\t\ttext: \"C1\",\n\t\tcolor: \"text-[#bfd730]\",\n\t},\n\t{\n\t\ttext: \"B3\",\n\t\tcolor: \"text-[#51b848]\",\n\t},\n\t{\n\t\ttext: \"B2\",\n\t\tcolor: \"text-[#51b848]\",\n\t},\n\t{\n\t\ttext: \"B1\",\n\t\tcolor: \"text-[#51b848]\",\n\t},\n\t{\n\t\ttext: \"A3\",\n\t\tcolor: \"text-[#00a651]\",\n\t},\n\t{\n\t\ttext: \"A2\",\n\t\tcolor: \"text-[#00a651]\",\n\t},\n\t{\n\t\ttext: \"A1\",\n\t\tcolor: \"text-[#00a651]\",\n\t},\n] as const;\n\nexport enum EBerSize {\n\tSMALL = \"small\",\n\tMEDIUM = \"medium\",\n}\n"],"names":["berRankDictionary","EBerSize"],"mappings":"AAOO,MAAMA,IAAoB;AAAA,EAChC;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAAA,EAER;AAAA,IACC,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAET;AAEO,IAAKC,sBAAAA,OACXA,EAAA,QAAQ,SACRA,EAAA,SAAS,UAFEA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -2,12 +2,12 @@ import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as U, useEffect as v } from "react";
|
|
3
3
|
import i from "classnames";
|
|
4
4
|
import { EJustify as t } from "../../_types/align.js";
|
|
5
|
-
import '../../assets/UiToggle.css';const
|
|
6
|
-
UiToggle__dot:
|
|
7
|
-
UiToggle__dot_checked:
|
|
5
|
+
import '../../assets/UiToggle.css';const k = "_UiToggle__dot_1uov6_1", w = "_UiToggle__dot_checked_1uov6_13", x = "_UiToggle__icon_1uov6_17", N = "_UiToggle__icon_checked_1uov6_26", n = {
|
|
6
|
+
UiToggle__dot: k,
|
|
7
|
+
UiToggle__dot_checked: w,
|
|
8
8
|
UiToggle__icon: x,
|
|
9
9
|
UiToggle__icon_checked: N
|
|
10
|
-
},
|
|
10
|
+
}, L = ({
|
|
11
11
|
children: a,
|
|
12
12
|
disabled: o = !1,
|
|
13
13
|
invertOrder: d = !1,
|
|
@@ -117,8 +117,8 @@ import '../../assets/UiToggle.css';const w = "_UiToggle__dot_1uov6_1", k = "_UiT
|
|
|
117
117
|
{
|
|
118
118
|
d: "M1 4.40106L6.60071 10.1135L15.1694 1.71245",
|
|
119
119
|
stroke: "currentColor",
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
strokeWidth: "1.6",
|
|
121
|
+
strokeLinecap: "round"
|
|
122
122
|
}
|
|
123
123
|
)
|
|
124
124
|
}
|
|
@@ -128,6 +128,6 @@ import '../../assets/UiToggle.css';const w = "_UiToggle__dot_1uov6_1", k = "_UiT
|
|
|
128
128
|
] });
|
|
129
129
|
};
|
|
130
130
|
export {
|
|
131
|
-
|
|
131
|
+
L as UiToggle
|
|
132
132
|
};
|
|
133
133
|
//# sourceMappingURL=UiToggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UiToggle.js","sources":["../../../src/components/UiToggle/UiToggle.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport cx from \"classnames\";\nimport styles from \"./UiToggle.module.css\";\nimport { EJustify } from \"../../_types/align\";\n\ntype TUiToggleProps = {\n\tchildren?: React.ReactNode\n\tdisabled?: boolean\n\tinvertOrder?: boolean\n\tjustify?: EJustify;\n\tdefaultChecked?: boolean\n\tchecked?: boolean\n\tvalue?: boolean\n\tonChange?: (checked: boolean) => void\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, \"onChange\">;\n\nexport const UiToggle: React.FC<TUiToggleProps> = ({\n\tchildren,\n\tdisabled = false,\n\tinvertOrder = false,\n\tjustify = EJustify.START,\n\tchecked,\n\tvalue,\n\tclassName,\n\tdefaultChecked,\n\tonChange,\n\t...rest\n}) => {\n\n\tconst [toggled, setIsToggled] = useState<boolean>(defaultChecked ?? false);\n\n\tconst isChecked = value ?? checked ?? toggled;\n\n\tconst handleChange = () => {\n\t\tif (value === undefined && checked === undefined) {\n\t\t\tsetIsToggled(!toggled);\n\t\t}\n\n\t\tonChange?.(!isChecked);\n\t};\n\n\tuseEffect(()=>{\n\t\tif ( checked !== undefined) {\n\t\t\tsetIsToggled(checked);\n\t\t}\n\t}, [checked]);\n\n\tconst justificationClasses = {\n\t\t[EJustify.START]: \"justify-start\",\n\t\t[EJustify.END]: \"justify-end\",\n\t\t[EJustify.CENTER]: \"justify-center\",\n\t\t[EJustify.BETWEEN]: \"justify-between\",\n\t\t[EJustify.AROUND]: \"justify-around\",\n\t\t[EJustify.EVENLY]: \"justify-evenly\"\n\t};\n\n\treturn (\n\t\t<label className={ cx(\n\t\t\t\"ui-toggle\",\n\t\t\t\"flex\",\n\t\t\t\"cursor-pointer\",\n\t\t\t\"gap-sm\",\n\t\t\t\"rounded-full\",\n\t\t\t\"items-center\",\n\t\t\t\"w-full\",\n\t\t\t\"leading-normal\",\n\t\t\t\"text-md\",\n\t\t\t{\n\t\t\t\t\"flex-row-reverse\": invertOrder,\n\t\t\t\t\"pointer-events-none opacity-50\": disabled\n\t\t\t},\n\t\t\tjustificationClasses[justify],\n\t\t\tclassName\n\t\t) }>\n\t\t\t<span className={ cx(\n\t\t\t\t\"relative\",\n\t\t\t\t\"block\",\n\t\t\t\t\"h-md\"\n\t\t\t) }>\n\n\t\t\t\t<input className={ cx(\n\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\"size-0\",\n\t\t\t\t\t\"appearance-none\",\n\t\t\t\t\t\"border-0\"\n\t\t\t\t) }\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\tchecked={ isChecked }\n\t\t\t\tonChange={ handleChange }\n\t\t\t\tdisabled={ disabled }\n\t\t\t\tvalue={ value }\n\t\t\t\t{ ...rest }\n\t\t\t\t>\n\t\t\t\t</input>\n\n\t\t\t\t<span className={ cx(\n\t\t\t\t\t\"block\",\n\t\t\t\t\t\"h-md\",\n\t\t\t\t\t\"w-xl\",\n\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t{\n\t\t\t\t\t\t\"bg-primary-600\": isChecked && !disabled,\n\t\t\t\t\t\t\"bg-secondary-alt-300\": !isChecked && disabled,\n\t\t\t\t\t\t\"bg-secondary-alt-600\": !isChecked && !disabled,\n\t\t\t\t\t\t\"bg-primary-300\": isChecked && disabled\n\n\t\t\t\t\t}\n\t\t\t\t) }/>\n\n\t\t\t\t<span className={ cx(\n\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\"top-[50%]\",\n\t\t\t\t\t\"block\",\n\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t\"bg-white\",\n\t\t\t\t\tstyles.UiToggle__dot,\n\t\t\t\t\t{\n\t\t\t\t\t\t\"hover:shadow-border-secondary\": !isChecked && !disabled,\n\t\t\t\t\t\t\"hover:shadow-border-primary\": isChecked && !disabled,\n\t\t\t\t\t\t[styles.UiToggle__dot_checked]: isChecked\n\t\t\t\t\t},\n\n\t\t\t\t) }>\n\n\t\t\t\t\t<svg\n\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\tstyles.UiToggle__icon,\n\t\t\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t? \"text-primary-300\"\n\t\t\t\t\t\t\t\t: \"text-primary-600\",\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t[styles.UiToggle__icon_checked]: isChecked ,\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t) }\n\t\t\t\t\t\twidth=\"16\"\n\t\t\t\t\t\theight=\"16\"\n\t\t\t\t\t\tviewBox=\"0 0 16 16\"\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M1 4.40106L6.60071 10.1135L15.1694 1.71245\"\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\
|
|
1
|
+
{"version":3,"file":"UiToggle.js","sources":["../../../src/components/UiToggle/UiToggle.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport cx from \"classnames\";\nimport styles from \"./UiToggle.module.css\";\nimport { EJustify } from \"../../_types/align\";\n\ntype TUiToggleProps = {\n\tchildren?: React.ReactNode\n\tdisabled?: boolean\n\tinvertOrder?: boolean\n\tjustify?: EJustify;\n\tdefaultChecked?: boolean\n\tchecked?: boolean\n\tvalue?: boolean\n\tonChange?: (checked: boolean) => void\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, \"onChange\">;\n\nexport const UiToggle: React.FC<TUiToggleProps> = ({\n\tchildren,\n\tdisabled = false,\n\tinvertOrder = false,\n\tjustify = EJustify.START,\n\tchecked,\n\tvalue,\n\tclassName,\n\tdefaultChecked,\n\tonChange,\n\t...rest\n}) => {\n\n\tconst [toggled, setIsToggled] = useState<boolean>(defaultChecked ?? false);\n\n\tconst isChecked = value ?? checked ?? toggled;\n\n\tconst handleChange = () => {\n\t\tif (value === undefined && checked === undefined) {\n\t\t\tsetIsToggled(!toggled);\n\t\t}\n\n\t\tonChange?.(!isChecked);\n\t};\n\n\tuseEffect(()=>{\n\t\tif ( checked !== undefined) {\n\t\t\tsetIsToggled(checked);\n\t\t}\n\t}, [checked]);\n\n\tconst justificationClasses = {\n\t\t[EJustify.START]: \"justify-start\",\n\t\t[EJustify.END]: \"justify-end\",\n\t\t[EJustify.CENTER]: \"justify-center\",\n\t\t[EJustify.BETWEEN]: \"justify-between\",\n\t\t[EJustify.AROUND]: \"justify-around\",\n\t\t[EJustify.EVENLY]: \"justify-evenly\"\n\t};\n\n\treturn (\n\t\t<label className={ cx(\n\t\t\t\"ui-toggle\",\n\t\t\t\"flex\",\n\t\t\t\"cursor-pointer\",\n\t\t\t\"gap-sm\",\n\t\t\t\"rounded-full\",\n\t\t\t\"items-center\",\n\t\t\t\"w-full\",\n\t\t\t\"leading-normal\",\n\t\t\t\"text-md\",\n\t\t\t{\n\t\t\t\t\"flex-row-reverse\": invertOrder,\n\t\t\t\t\"pointer-events-none opacity-50\": disabled\n\t\t\t},\n\t\t\tjustificationClasses[justify],\n\t\t\tclassName\n\t\t) }>\n\t\t\t<span className={ cx(\n\t\t\t\t\"relative\",\n\t\t\t\t\"block\",\n\t\t\t\t\"h-md\"\n\t\t\t) }>\n\n\t\t\t\t<input className={ cx(\n\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\"size-0\",\n\t\t\t\t\t\"appearance-none\",\n\t\t\t\t\t\"border-0\"\n\t\t\t\t) }\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\tchecked={ isChecked }\n\t\t\t\tonChange={ handleChange }\n\t\t\t\tdisabled={ disabled }\n\t\t\t\tvalue={ value }\n\t\t\t\t{ ...rest }\n\t\t\t\t>\n\t\t\t\t</input>\n\n\t\t\t\t<span className={ cx(\n\t\t\t\t\t\"block\",\n\t\t\t\t\t\"h-md\",\n\t\t\t\t\t\"w-xl\",\n\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t{\n\t\t\t\t\t\t\"bg-primary-600\": isChecked && !disabled,\n\t\t\t\t\t\t\"bg-secondary-alt-300\": !isChecked && disabled,\n\t\t\t\t\t\t\"bg-secondary-alt-600\": !isChecked && !disabled,\n\t\t\t\t\t\t\"bg-primary-300\": isChecked && disabled\n\n\t\t\t\t\t}\n\t\t\t\t) }/>\n\n\t\t\t\t<span className={ cx(\n\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\"top-[50%]\",\n\t\t\t\t\t\"block\",\n\t\t\t\t\t\"rounded-full\",\n\t\t\t\t\t\"bg-white\",\n\t\t\t\t\tstyles.UiToggle__dot,\n\t\t\t\t\t{\n\t\t\t\t\t\t\"hover:shadow-border-secondary\": !isChecked && !disabled,\n\t\t\t\t\t\t\"hover:shadow-border-primary\": isChecked && !disabled,\n\t\t\t\t\t\t[styles.UiToggle__dot_checked]: isChecked\n\t\t\t\t\t},\n\n\t\t\t\t) }>\n\n\t\t\t\t\t<svg\n\t\t\t\t\t\tclassName={ cx(\n\t\t\t\t\t\t\tstyles.UiToggle__icon,\n\t\t\t\t\t\t\t\"absolute\",\n\t\t\t\t\t\t\tdisabled\n\t\t\t\t\t\t\t\t? \"text-primary-300\"\n\t\t\t\t\t\t\t\t: \"text-primary-600\",\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t[styles.UiToggle__icon_checked]: isChecked ,\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t) }\n\t\t\t\t\t\twidth=\"16\"\n\t\t\t\t\t\theight=\"16\"\n\t\t\t\t\t\tviewBox=\"0 0 16 16\"\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M1 4.40106L6.60071 10.1135L15.1694 1.71245\"\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\tstrokeWidth=\"1.6\"\n\t\t\t\t\t\t\tstrokeLinecap=\"round\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</svg>\n\n\t\t\t\t</span>\n\t\t\t</span>\n\n\t\t\t{ children }\n\n\t\t</label>\n\n\t);\n};\n"],"names":["UiToggle","children","disabled","invertOrder","justify","EJustify","checked","value","className","defaultChecked","onChange","rest","toggled","setIsToggled","useState","isChecked","handleChange","useEffect","justificationClasses","jsxs","cx","jsx","styles"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bonkers-ui",
|
|
3
|
-
"version": "v2.0.
|
|
3
|
+
"version": "v2.0.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bonkers ui library",
|
|
6
6
|
"author": "cc6.magister@gmail.com",
|
|
@@ -18,38 +18,38 @@
|
|
|
18
18
|
"prepare": "husky"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tailwindcss/vite": "^4.1.
|
|
21
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
22
22
|
"ajv": "^8.17.1",
|
|
23
23
|
"classnames": "^2.5.1",
|
|
24
24
|
"postcss": "^8.5.6",
|
|
25
25
|
"prettier": "^3.6.2",
|
|
26
|
-
"react": "^19.
|
|
27
|
-
"react-dom": "^19.
|
|
28
|
-
"tailwindcss": "^4.1.
|
|
26
|
+
"react": "^19.2.0",
|
|
27
|
+
"react-dom": "^19.2.0",
|
|
28
|
+
"tailwindcss": "^4.1.14",
|
|
29
29
|
"vite-tsconfig-paths": "^5.1.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@chromatic-com/storybook": "^4.1.1",
|
|
33
|
-
"@storybook/addon-docs": "^9.1.
|
|
34
|
-
"@storybook/addon-onboarding": "^9.1.
|
|
35
|
-
"@storybook/react-vite": "^9.1.
|
|
33
|
+
"@storybook/addon-docs": "^9.1.10",
|
|
34
|
+
"@storybook/addon-onboarding": "^9.1.10",
|
|
35
|
+
"@storybook/react-vite": "^9.1.10",
|
|
36
36
|
"@stylistic/eslint-plugin": "^5.4.0",
|
|
37
37
|
"@types/bun": "latest",
|
|
38
|
-
"@types/react": "^19.
|
|
39
|
-
"@types/react-dom": "^19.1
|
|
40
|
-
"@vitejs/plugin-react": "^5.0.
|
|
41
|
-
"eslint": "^9.
|
|
38
|
+
"@types/react": "^19.2.2",
|
|
39
|
+
"@types/react-dom": "^19.2.1",
|
|
40
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
41
|
+
"eslint": "^9.37.0",
|
|
42
42
|
"eslint-plugin-better-tailwindcss": "^3.7.9",
|
|
43
43
|
"eslint-plugin-react": "^7.37.5",
|
|
44
|
-
"eslint-plugin-storybook": "^9.1.
|
|
44
|
+
"eslint-plugin-storybook": "^9.1.10",
|
|
45
45
|
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
46
46
|
"gh-pages": "^6.3.0",
|
|
47
47
|
"husky": "^9.1.7",
|
|
48
|
-
"lint-staged": "^16.2.
|
|
49
|
-
"storybook": "^9.1.
|
|
50
|
-
"typescript": "^5.9.
|
|
51
|
-
"typescript-eslint": "^8.
|
|
52
|
-
"vite": "^7.1.
|
|
48
|
+
"lint-staged": "^16.2.3",
|
|
49
|
+
"storybook": "^9.1.10",
|
|
50
|
+
"typescript": "^5.9.3",
|
|
51
|
+
"typescript-eslint": "^8.46.0",
|
|
52
|
+
"vite": "^7.1.9",
|
|
53
53
|
"vite-plugin-dts": "^4.5.4",
|
|
54
54
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
55
55
|
},
|
package/assets/UiBerRank.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._icon_medium_18il7_1{height:60px}._icon_small_18il7_5{height:30px}
|