melonykit 0.7.6 → 0.8.0
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/index.js +31 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -742,7 +742,7 @@ var Qe = "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"position:absolute;wi
|
|
|
742
742
|
},
|
|
743
743
|
colors: {
|
|
744
744
|
primary: "#8adae8",
|
|
745
|
-
secondary: "#
|
|
745
|
+
secondary: "#fad6b3",
|
|
746
746
|
danger: "#fdcbc9",
|
|
747
747
|
border: "#c6cacd",
|
|
748
748
|
back: {
|
|
@@ -916,6 +916,10 @@ var nt = {
|
|
|
916
916
|
normal: J`
|
|
917
917
|
border: solid 1px ${t(Y.colors.primary, .3)};
|
|
918
918
|
background-color: ${Y.colors.primary};
|
|
919
|
+
`,
|
|
920
|
+
warn: J`
|
|
921
|
+
border: solid 1px ${t(Y.colors.secondary, .2)};
|
|
922
|
+
background-color: ${Y.colors.secondary};
|
|
919
923
|
`,
|
|
920
924
|
danger: J`
|
|
921
925
|
border: solid 1px ${t(Y.colors.danger, .3)};
|
|
@@ -924,24 +928,31 @@ var nt = {
|
|
|
924
928
|
};
|
|
925
929
|
//#endregion
|
|
926
930
|
//#region src/components/_box.jsx
|
|
927
|
-
function it({
|
|
931
|
+
function it({ type: e = "normal", className: t, width: n, height: r, children: i }) {
|
|
928
932
|
return /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o("div", {
|
|
929
|
-
className: q(at.base, e),
|
|
933
|
+
className: q(at.base, at[e] ?? at.normal, t),
|
|
930
934
|
style: {
|
|
931
|
-
width:
|
|
932
|
-
height:
|
|
935
|
+
width: n,
|
|
936
|
+
height: r
|
|
933
937
|
},
|
|
934
|
-
children:
|
|
938
|
+
children: i
|
|
935
939
|
}) });
|
|
936
940
|
}
|
|
937
|
-
var at = {
|
|
941
|
+
var at = {
|
|
942
|
+
base: J`
|
|
938
943
|
position: relative;
|
|
939
944
|
border-radius: 18px;
|
|
940
945
|
border: solid 2px #eee;
|
|
941
946
|
padding: 1.875rem 1.25rem;
|
|
942
|
-
background-color: ${Y.colors.back.primary};
|
|
943
947
|
box-shadow: ${Y.colors.shadow.primary};
|
|
944
|
-
|
|
948
|
+
`,
|
|
949
|
+
normal: J`
|
|
950
|
+
background-color: ${Y.colors.back.primary};
|
|
951
|
+
`,
|
|
952
|
+
alternative: J`
|
|
953
|
+
background-color: #fafafa;
|
|
954
|
+
`
|
|
955
|
+
};
|
|
945
956
|
//#endregion
|
|
946
957
|
//#region src/components/_icon.jsx
|
|
947
958
|
function Z({ className: e, size: t = "1.25rem", color: n = Y.colors.fore.primary, iconName: r, isSpinning: i }) {
|
|
@@ -1009,12 +1020,12 @@ function st({ type: e = "primary", label: t, iconName: r, isDisabled: i = !1, is
|
|
|
1009
1020
|
className: J`
|
|
1010
1021
|
${Y.extends.verticalCenter}
|
|
1011
1022
|
|
|
1012
|
-
left: .
|
|
1023
|
+
left: .6rem;
|
|
1013
1024
|
`,
|
|
1014
1025
|
children: c ? /* @__PURE__ */ o(Z, {
|
|
1015
|
-
|
|
1026
|
+
iconName: "loader",
|
|
1016
1027
|
isSpinning: !0
|
|
1017
|
-
}) : /* @__PURE__ */ o(Z, {
|
|
1028
|
+
}) : /* @__PURE__ */ o(Z, { iconName: r })
|
|
1018
1029
|
}) }),
|
|
1019
1030
|
t,
|
|
1020
1031
|
d.value && /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o("span", {
|
|
@@ -1052,7 +1063,7 @@ var ct = Ze`
|
|
|
1052
1063
|
font-weight: 600;
|
|
1053
1064
|
border-radius: 12px;
|
|
1054
1065
|
will-change: transform, border;
|
|
1055
|
-
transition: transform .
|
|
1066
|
+
transition: transform .1s linear, border .1s linear;
|
|
1056
1067
|
font-family: ${Y.fontFamily}, sans-serif;
|
|
1057
1068
|
|
|
1058
1069
|
&:active {
|
|
@@ -1060,15 +1071,15 @@ var ct = Ze`
|
|
|
1060
1071
|
border-width: 1px;
|
|
1061
1072
|
}
|
|
1062
1073
|
|
|
1063
|
-
&[has-icon] { padding-left:
|
|
1074
|
+
&[has-icon] { padding-left: 2rem; }
|
|
1064
1075
|
`,
|
|
1065
1076
|
primary: J`
|
|
1066
|
-
color: ${t(Y.colors.primary, .
|
|
1077
|
+
color: ${t(Y.colors.primary, .5)};
|
|
1067
1078
|
border-bottom: solid 3px ${t(Y.colors.primary, .25)};
|
|
1068
1079
|
background-color: ${Y.colors.primary};
|
|
1069
1080
|
`,
|
|
1070
1081
|
secondary: J`
|
|
1071
|
-
color: ${Y.colors.
|
|
1082
|
+
color: ${t(Y.colors.secondary, .5)};
|
|
1072
1083
|
border-bottom: solid 3px ${t(Y.colors.secondary, .25)};
|
|
1073
1084
|
background-color: ${Y.colors.secondary};
|
|
1074
1085
|
`,
|
|
@@ -1118,11 +1129,11 @@ var ft = {
|
|
|
1118
1129
|
line-height: 1.125rem;
|
|
1119
1130
|
`,
|
|
1120
1131
|
small: J`
|
|
1121
|
-
font-size:
|
|
1132
|
+
font-size: .75rem;
|
|
1122
1133
|
line-height: 1rem;
|
|
1123
1134
|
`,
|
|
1124
1135
|
tiny: J`
|
|
1125
|
-
font-size:
|
|
1136
|
+
font-size: .65rem;
|
|
1126
1137
|
line-height: 1rem;
|
|
1127
1138
|
`
|
|
1128
1139
|
};
|
|
@@ -1260,7 +1271,6 @@ var St = {
|
|
|
1260
1271
|
base: J`
|
|
1261
1272
|
position: relative;
|
|
1262
1273
|
display: flex;
|
|
1263
|
-
padding: .2rem 0 0 2rem;
|
|
1264
1274
|
gap: .5rem;
|
|
1265
1275
|
`,
|
|
1266
1276
|
label: J`
|
|
@@ -1290,11 +1300,11 @@ var St = {
|
|
|
1290
1300
|
position: relative;
|
|
1291
1301
|
height: 1.1rem;
|
|
1292
1302
|
border-radius: 12px;
|
|
1293
|
-
background-color: #3a3a3a;
|
|
1294
1303
|
cursor: pointer;
|
|
1295
1304
|
user-select: none;
|
|
1296
1305
|
transition: background .3s ease;
|
|
1297
1306
|
width: ${vt}px;
|
|
1307
|
+
background-color: ${Y.colors.back.secondary};
|
|
1298
1308
|
|
|
1299
1309
|
&:before {
|
|
1300
1310
|
background-color: #e1e1e1;
|
|
@@ -1365,15 +1375,7 @@ var Et = { base: J`
|
|
|
1365
1375
|
width: 2.25rem;
|
|
1366
1376
|
height: 2.25rem;
|
|
1367
1377
|
border-radius: 8px;
|
|
1368
|
-
will-change: transform, border;
|
|
1369
|
-
transition: transform .1s ease, border .1s ease;
|
|
1370
|
-
border-bottom: solid 2px ${Y.colors.border};
|
|
1371
1378
|
background-color: ${Y.colors.back.secondary};
|
|
1372
|
-
|
|
1373
|
-
&:active {
|
|
1374
|
-
transform: translateY(1px);
|
|
1375
|
-
border-width: 1px;
|
|
1376
|
-
}
|
|
1377
1379
|
` };
|
|
1378
1380
|
//#endregion
|
|
1379
1381
|
//#region src/components/_tab-box.jsx
|
|
@@ -1504,7 +1506,7 @@ var $ = {
|
|
|
1504
1506
|
font-weight: 700;
|
|
1505
1507
|
line-height: 1;
|
|
1506
1508
|
color: ${Y.colors.fore.primary};
|
|
1507
|
-
background-color:
|
|
1509
|
+
background-color: #e1e1e1;
|
|
1508
1510
|
`
|
|
1509
1511
|
};
|
|
1510
1512
|
//#endregion
|