qstd 0.3.11 → 0.3.12
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/block/input.d.ts +13 -7
- package/dist/block/input.d.ts.map +1 -1
- package/dist/react/index.cjs +35 -59
- package/dist/react/index.css +67 -31
- package/dist/react/index.js +35 -59
- package/package.json +1 -1
- package/styled-system/styles.css +84 -36
package/dist/block/input.d.ts
CHANGED
|
@@ -18,15 +18,21 @@ export declare namespace RightSide {
|
|
|
18
18
|
/**
|
|
19
19
|
* Floating label for Input component.
|
|
20
20
|
*
|
|
21
|
-
* Style defaults can be overridden by passing the same props
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* Style defaults can be overridden by passing the same props.
|
|
22
|
+
* For `_labelLifted`, partial overrides are merged with defaults.
|
|
23
|
+
*
|
|
24
|
+
* **`bg` cascades to lifted state:** If you set `bg`, it applies to both
|
|
25
|
+
* default and lifted states. Only specify `_labelLifted.bg` if you want
|
|
26
|
+
* a different background when lifted.
|
|
24
27
|
*
|
|
25
28
|
* @example
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* >
|
|
29
|
+
* // bg applies to both states
|
|
30
|
+
* <Block.Input.Label bg={{ base: "white", _dark: "gray.900" }}>
|
|
31
|
+
* Email
|
|
32
|
+
* </Block.Input.Label>
|
|
33
|
+
*
|
|
34
|
+
* // Different lifted bg
|
|
35
|
+
* <Block.Input.Label bg="white" _labelLifted={{ bg: "blue.50" }}>
|
|
30
36
|
* Email
|
|
31
37
|
* </Block.Input.Label>
|
|
32
38
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/block/input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAU9B,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,2CAgFtD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,2CAyBhD;yBAzBe,QAAQ;;;AA4BxB,wBAAgB,SAAS,CACvB,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,kDA4BnE;yBA7Be,SAAS;;;AAgCzB
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/block/input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAU9B,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,2CAgFtD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,2CAyBhD;yBAzBe,QAAQ;;;AA4BxB,wBAAgB,SAAS,CACvB,KAAK,EAAE,EAAE,CAAC,cAAc,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,kDA4BnE;yBA7Be,SAAS;;;AAgCzB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC,GAAG,UAAU,2CA0DvE;yBA1De,KAAK"}
|
package/dist/react/index.cjs
CHANGED
|
@@ -1219,40 +1219,6 @@ var omit = (obj, keys) => {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
return result;
|
|
1221
1221
|
};
|
|
1222
|
-
function deepMerge(...sources) {
|
|
1223
|
-
const result = {};
|
|
1224
|
-
for (const source of sources) {
|
|
1225
|
-
if (!source) continue;
|
|
1226
|
-
for (const [key, value] of Object.entries(source)) {
|
|
1227
|
-
const existing = result[key];
|
|
1228
|
-
if (typeof existing === "object" && existing !== null && !Array.isArray(existing) && typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
1229
|
-
result[key] = deepMerge(
|
|
1230
|
-
existing,
|
|
1231
|
-
value
|
|
1232
|
-
);
|
|
1233
|
-
} else {
|
|
1234
|
-
result[key] = value;
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
return result;
|
|
1239
|
-
}
|
|
1240
|
-
function mergeStyleDefaults(defaults2, props, nonStyleKeys) {
|
|
1241
|
-
const styleProps = {};
|
|
1242
|
-
const otherProps = {};
|
|
1243
|
-
const nonStyleSet = new Set(
|
|
1244
|
-
nonStyleKeys
|
|
1245
|
-
);
|
|
1246
|
-
for (const [key, value] of Object.entries(props)) {
|
|
1247
|
-
if (nonStyleSet.has(key)) {
|
|
1248
|
-
otherProps[key] = value;
|
|
1249
|
-
} else if (value !== void 0) {
|
|
1250
|
-
styleProps[key] = value;
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
const mergedStyles = deepMerge(defaults2, styleProps);
|
|
1254
|
-
return { ...otherProps, ...mergedStyles };
|
|
1255
|
-
}
|
|
1256
1222
|
var TrackNameKey = "Track";
|
|
1257
1223
|
var ThumbNameKey = "Thumb";
|
|
1258
1224
|
var Button = motionTags.button;
|
|
@@ -2266,40 +2232,50 @@ function Label2(props) {
|
|
|
2266
2232
|
required,
|
|
2267
2233
|
children,
|
|
2268
2234
|
hasLeftIcon,
|
|
2235
|
+
bg: consumerBg,
|
|
2236
|
+
_labelLifted: consumerLabelLifted,
|
|
2269
2237
|
onAnimationStart: _onAnimationStart,
|
|
2270
2238
|
onAnimationComplete: _onAnimationComplete,
|
|
2271
|
-
...
|
|
2239
|
+
...rest
|
|
2272
2240
|
} = props;
|
|
2273
2241
|
const ml = hasLeftIcon ? 6 : 1;
|
|
2274
|
-
const
|
|
2275
|
-
gridAutoFlow: "column",
|
|
2276
|
-
position: "absolute",
|
|
2277
|
-
pointerEvents: "none",
|
|
2278
|
-
top: "50%",
|
|
2242
|
+
const defaultLabelLifted = {
|
|
2279
2243
|
transformOrigin: "top left",
|
|
2280
|
-
transform: "
|
|
2281
|
-
|
|
2244
|
+
transform: "scale(0.8)",
|
|
2245
|
+
top: "-10px",
|
|
2282
2246
|
ml,
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2247
|
+
color: error ? "text-alert" : value ? "input-label-color-lifted" : "input-label-color",
|
|
2248
|
+
bg: consumerBg ?? "input-label-bg"
|
|
2249
|
+
};
|
|
2250
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2251
|
+
Base4,
|
|
2252
|
+
{
|
|
2253
|
+
gridAutoFlow: "column",
|
|
2254
|
+
position: "absolute",
|
|
2255
|
+
pointerEvents: "none",
|
|
2256
|
+
top: "50%",
|
|
2290
2257
|
transformOrigin: "top left",
|
|
2291
|
-
transform: "
|
|
2292
|
-
|
|
2258
|
+
transform: "translate(0, -50%) scale(1)",
|
|
2259
|
+
transition: "200ms cubic-bezier(0, 0, 0.2, 1) 0ms, .2s color ease-in-out, .2s background ease-in-out",
|
|
2293
2260
|
ml,
|
|
2294
|
-
|
|
2295
|
-
|
|
2261
|
+
mr: 1,
|
|
2262
|
+
px: 2,
|
|
2263
|
+
py: 0.5,
|
|
2264
|
+
br: 8,
|
|
2265
|
+
color: error ? "text-alert" : "input-label-color",
|
|
2266
|
+
lineHeight: 1.1,
|
|
2267
|
+
bg: consumerBg,
|
|
2268
|
+
...rest,
|
|
2269
|
+
_labelLifted: {
|
|
2270
|
+
...defaultLabelLifted,
|
|
2271
|
+
...consumerLabelLifted
|
|
2272
|
+
},
|
|
2273
|
+
children: [
|
|
2274
|
+
children,
|
|
2275
|
+
required && "*"
|
|
2276
|
+
]
|
|
2296
2277
|
}
|
|
2297
|
-
|
|
2298
|
-
const mergedStyles = mergeStyleDefaults(styleDefaults, consumerProps, []);
|
|
2299
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Base4, { ...mergedStyles, children: [
|
|
2300
|
-
children,
|
|
2301
|
-
required && "*"
|
|
2302
|
-
] });
|
|
2278
|
+
);
|
|
2303
2279
|
}
|
|
2304
2280
|
Label2.displayName = LabelNameKey2;
|
|
2305
2281
|
function useResizeObserver(opts = {}) {
|
package/dist/react/index.css
CHANGED
|
@@ -889,11 +889,14 @@
|
|
|
889
889
|
.rounded_50\% {
|
|
890
890
|
border-radius: 50%;
|
|
891
891
|
}
|
|
892
|
-
.
|
|
893
|
-
|
|
892
|
+
.trs_200ms_cubic-bezier\(0\,_0\,_0\.2\,_1\)_0ms\,_\.2s_color_ease-in-out\,_\.2s_background_ease-in-out {
|
|
893
|
+
transition:
|
|
894
|
+
200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
|
|
895
|
+
.2s color ease-in-out,
|
|
896
|
+
.2s background ease-in-out;
|
|
894
897
|
}
|
|
895
|
-
.
|
|
896
|
-
|
|
898
|
+
.px_2 {
|
|
899
|
+
padding-inline: var(--spacing-2);
|
|
897
900
|
}
|
|
898
901
|
.py_0\.5 {
|
|
899
902
|
padding-block: var(--spacing-0\.5);
|
|
@@ -901,6 +904,12 @@
|
|
|
901
904
|
.rounded_8 {
|
|
902
905
|
border-radius: 8px;
|
|
903
906
|
}
|
|
907
|
+
.bd-c_input-border-color-error {
|
|
908
|
+
border-color: var(--colors-input-border-color-error);
|
|
909
|
+
}
|
|
910
|
+
.bd-c_input-border-color {
|
|
911
|
+
border-color: var(--colors-input-border-color);
|
|
912
|
+
}
|
|
904
913
|
.ring_1px_solid_rgba\(208\,_58\,_58\,_0\.05\) {
|
|
905
914
|
outline: 1px solid rgba(208, 58, 58, 0.05);
|
|
906
915
|
}
|
|
@@ -934,15 +943,6 @@
|
|
|
934
943
|
.trs_background-color_0\.2s_ease-in-out {
|
|
935
944
|
transition: background-color 0.2s ease-in-out;
|
|
936
945
|
}
|
|
937
|
-
.trs_200ms_cubic-bezier\(0\,_0\,_0\.2\,_1\)_0ms\,_\.2s_color_ease-in-out\,_\.2s_background_ease-in-out {
|
|
938
|
-
transition:
|
|
939
|
-
200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
|
|
940
|
-
.2s color ease-in-out,
|
|
941
|
-
.2s background ease-in-out;
|
|
942
|
-
}
|
|
943
|
-
.px_2 {
|
|
944
|
-
padding-inline: var(--spacing-2);
|
|
945
|
-
}
|
|
946
946
|
.px_10px {
|
|
947
947
|
padding-inline: 10px;
|
|
948
948
|
}
|
|
@@ -1098,6 +1098,24 @@
|
|
|
1098
1098
|
.trf_translateY\(-50\%\) {
|
|
1099
1099
|
transform: translateY(-50%);
|
|
1100
1100
|
}
|
|
1101
|
+
.c_input-label-color {
|
|
1102
|
+
color: var(--colors-input-label-color);
|
|
1103
|
+
}
|
|
1104
|
+
.grid-af_column {
|
|
1105
|
+
grid-auto-flow: column;
|
|
1106
|
+
}
|
|
1107
|
+
.pointer-events_none {
|
|
1108
|
+
pointer-events: none;
|
|
1109
|
+
}
|
|
1110
|
+
.trf-o_top_left {
|
|
1111
|
+
transform-origin: top left;
|
|
1112
|
+
}
|
|
1113
|
+
.trf_translate\(0\,_-50\%\)_scale\(1\) {
|
|
1114
|
+
transform: translate(0, -50%) scale(1);
|
|
1115
|
+
}
|
|
1116
|
+
.lh_1\.1 {
|
|
1117
|
+
line-height: 1.1;
|
|
1118
|
+
}
|
|
1101
1119
|
.ring-c_input-outline-color-error {
|
|
1102
1120
|
outline-color: var(--colors-input-outline-color-error);
|
|
1103
1121
|
}
|
|
@@ -1128,9 +1146,6 @@
|
|
|
1128
1146
|
.absolute_true {
|
|
1129
1147
|
position: absolute;
|
|
1130
1148
|
}
|
|
1131
|
-
.pointer-events_none {
|
|
1132
|
-
pointer-events: none;
|
|
1133
|
-
}
|
|
1134
1149
|
.bx-sh_0_0_0_6px_rgba\(0\,0\,0\,\.08\) {
|
|
1135
1150
|
box-shadow: 0 0 0 6px rgba(0, 0, 0, .08);
|
|
1136
1151
|
}
|
|
@@ -1180,18 +1195,9 @@
|
|
|
1180
1195
|
.bx-s_content-box {
|
|
1181
1196
|
box-sizing: content-box;
|
|
1182
1197
|
}
|
|
1183
|
-
.grid-af_column {
|
|
1184
|
-
grid-auto-flow: column;
|
|
1185
|
-
}
|
|
1186
|
-
.trf-o_top_left {
|
|
1187
|
-
transform-origin: top left;
|
|
1188
|
-
}
|
|
1189
1198
|
.trf_translate\(0\,_0\)_scale\(1\) {
|
|
1190
1199
|
transform: translate(0, 0) scale(1);
|
|
1191
1200
|
}
|
|
1192
|
-
.c_input-label-color {
|
|
1193
|
-
color: var(--colors-input-label-color);
|
|
1194
|
-
}
|
|
1195
1201
|
.resize_none {
|
|
1196
1202
|
resize: none;
|
|
1197
1203
|
}
|
|
@@ -1306,6 +1312,15 @@
|
|
|
1306
1312
|
.right_11px {
|
|
1307
1313
|
right: 11px;
|
|
1308
1314
|
}
|
|
1315
|
+
.ml_6 {
|
|
1316
|
+
margin-left: var(--spacing-6);
|
|
1317
|
+
}
|
|
1318
|
+
.ml_1 {
|
|
1319
|
+
margin-left: var(--spacing-1);
|
|
1320
|
+
}
|
|
1321
|
+
.mr_1 {
|
|
1322
|
+
margin-right: var(--spacing-1);
|
|
1323
|
+
}
|
|
1309
1324
|
.pl_7 {
|
|
1310
1325
|
padding-left: var(--spacing-7);
|
|
1311
1326
|
}
|
|
@@ -1348,12 +1363,6 @@
|
|
|
1348
1363
|
.top_1 {
|
|
1349
1364
|
top: var(--spacing-1);
|
|
1350
1365
|
}
|
|
1351
|
-
.ml_1 {
|
|
1352
|
-
margin-left: var(--spacing-1);
|
|
1353
|
-
}
|
|
1354
|
-
.mr_1 {
|
|
1355
|
-
margin-right: var(--spacing-1);
|
|
1356
|
-
}
|
|
1357
1366
|
[data-theme=dark] .dark\:bg_neutral\.700 {
|
|
1358
1367
|
background: var(--colors-neutral-700);
|
|
1359
1368
|
}
|
|
@@ -1454,6 +1463,9 @@
|
|
|
1454
1463
|
.active\:bg_neutral\.200:active:focus-visible:not(:disabled) {
|
|
1455
1464
|
background: var(--colors-neutral-200);
|
|
1456
1465
|
}
|
|
1466
|
+
.labelLifted\:bg_input-label-bg:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1467
|
+
background: var(--colors-input-label-bg);
|
|
1468
|
+
}
|
|
1457
1469
|
.active\:bg_none:active:not(:disabled),
|
|
1458
1470
|
.active\:bg_none:active:not(:focus-visible):not(:disabled),
|
|
1459
1471
|
.active\:bg_none:active:focus-visible:not(:disabled) {
|
|
@@ -1475,6 +1487,21 @@
|
|
|
1475
1487
|
.focus\:bx-sh_0_0_0_6px_hsl\(0_0\%_100\%_\/_0\.05\):is(:focus, [data-focus]) {
|
|
1476
1488
|
box-shadow: 0 0 0 6px hsl(0 0% 100% / 0.05);
|
|
1477
1489
|
}
|
|
1490
|
+
.labelLifted\:c_input-label-color-lifted:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1491
|
+
color: var(--colors-input-label-color-lifted);
|
|
1492
|
+
}
|
|
1493
|
+
.labelLifted\:c_input-label-color:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1494
|
+
color: var(--colors-input-label-color);
|
|
1495
|
+
}
|
|
1496
|
+
.labelLifted\:c_text-alert:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1497
|
+
color: var(--colors-text-alert);
|
|
1498
|
+
}
|
|
1499
|
+
.labelLifted\:trf-o_top_left:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1500
|
+
transform-origin: top left;
|
|
1501
|
+
}
|
|
1502
|
+
.labelLifted\:trf_scale\(0\.8\):has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1503
|
+
transform: scale(0.8);
|
|
1504
|
+
}
|
|
1478
1505
|
.active\:trf_none\!:active:not(:disabled),
|
|
1479
1506
|
.active\:trf_none\!:active:not(:focus-visible):not(:disabled),
|
|
1480
1507
|
.active\:trf_none\!:active:focus-visible:not(:disabled) {
|
|
@@ -1497,6 +1524,15 @@
|
|
|
1497
1524
|
.\[\&\:has\(\+_textarea\:focus\,_\+_textarea\:not\(\:placeholder-shown\)\)\]\:trf_scale\(0\.8\):has(+ textarea:focus, + textarea:not(:placeholder-shown)) {
|
|
1498
1525
|
transform: scale(0.8);
|
|
1499
1526
|
}
|
|
1527
|
+
.labelLifted\:ml_6:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1528
|
+
margin-left: var(--spacing-6);
|
|
1529
|
+
}
|
|
1530
|
+
.labelLifted\:ml_1:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1531
|
+
margin-left: var(--spacing-1);
|
|
1532
|
+
}
|
|
1533
|
+
.labelLifted\:top_-10px:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1534
|
+
top: -10px;
|
|
1535
|
+
}
|
|
1500
1536
|
.\[\&\:has\(\+_textarea\:focus\,_\+_textarea\:not\(\:placeholder-shown\)\)\]\:top_-14px:has(+ textarea:focus, + textarea:not(:placeholder-shown)) {
|
|
1501
1537
|
top: -14px;
|
|
1502
1538
|
}
|
package/dist/react/index.js
CHANGED
|
@@ -1196,40 +1196,6 @@ var omit = (obj, keys) => {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
return result;
|
|
1198
1198
|
};
|
|
1199
|
-
function deepMerge(...sources) {
|
|
1200
|
-
const result = {};
|
|
1201
|
-
for (const source of sources) {
|
|
1202
|
-
if (!source) continue;
|
|
1203
|
-
for (const [key, value] of Object.entries(source)) {
|
|
1204
|
-
const existing = result[key];
|
|
1205
|
-
if (typeof existing === "object" && existing !== null && !Array.isArray(existing) && typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
1206
|
-
result[key] = deepMerge(
|
|
1207
|
-
existing,
|
|
1208
|
-
value
|
|
1209
|
-
);
|
|
1210
|
-
} else {
|
|
1211
|
-
result[key] = value;
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
return result;
|
|
1216
|
-
}
|
|
1217
|
-
function mergeStyleDefaults(defaults2, props, nonStyleKeys) {
|
|
1218
|
-
const styleProps = {};
|
|
1219
|
-
const otherProps = {};
|
|
1220
|
-
const nonStyleSet = new Set(
|
|
1221
|
-
nonStyleKeys
|
|
1222
|
-
);
|
|
1223
|
-
for (const [key, value] of Object.entries(props)) {
|
|
1224
|
-
if (nonStyleSet.has(key)) {
|
|
1225
|
-
otherProps[key] = value;
|
|
1226
|
-
} else if (value !== void 0) {
|
|
1227
|
-
styleProps[key] = value;
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
const mergedStyles = deepMerge(defaults2, styleProps);
|
|
1231
|
-
return { ...otherProps, ...mergedStyles };
|
|
1232
|
-
}
|
|
1233
1199
|
var TrackNameKey = "Track";
|
|
1234
1200
|
var ThumbNameKey = "Thumb";
|
|
1235
1201
|
var Button = motionTags.button;
|
|
@@ -2243,40 +2209,50 @@ function Label2(props) {
|
|
|
2243
2209
|
required,
|
|
2244
2210
|
children,
|
|
2245
2211
|
hasLeftIcon,
|
|
2212
|
+
bg: consumerBg,
|
|
2213
|
+
_labelLifted: consumerLabelLifted,
|
|
2246
2214
|
onAnimationStart: _onAnimationStart,
|
|
2247
2215
|
onAnimationComplete: _onAnimationComplete,
|
|
2248
|
-
...
|
|
2216
|
+
...rest
|
|
2249
2217
|
} = props;
|
|
2250
2218
|
const ml = hasLeftIcon ? 6 : 1;
|
|
2251
|
-
const
|
|
2252
|
-
gridAutoFlow: "column",
|
|
2253
|
-
position: "absolute",
|
|
2254
|
-
pointerEvents: "none",
|
|
2255
|
-
top: "50%",
|
|
2219
|
+
const defaultLabelLifted = {
|
|
2256
2220
|
transformOrigin: "top left",
|
|
2257
|
-
transform: "
|
|
2258
|
-
|
|
2221
|
+
transform: "scale(0.8)",
|
|
2222
|
+
top: "-10px",
|
|
2259
2223
|
ml,
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2224
|
+
color: error ? "text-alert" : value ? "input-label-color-lifted" : "input-label-color",
|
|
2225
|
+
bg: consumerBg ?? "input-label-bg"
|
|
2226
|
+
};
|
|
2227
|
+
return /* @__PURE__ */ jsxs(
|
|
2228
|
+
Base4,
|
|
2229
|
+
{
|
|
2230
|
+
gridAutoFlow: "column",
|
|
2231
|
+
position: "absolute",
|
|
2232
|
+
pointerEvents: "none",
|
|
2233
|
+
top: "50%",
|
|
2267
2234
|
transformOrigin: "top left",
|
|
2268
|
-
transform: "
|
|
2269
|
-
|
|
2235
|
+
transform: "translate(0, -50%) scale(1)",
|
|
2236
|
+
transition: "200ms cubic-bezier(0, 0, 0.2, 1) 0ms, .2s color ease-in-out, .2s background ease-in-out",
|
|
2270
2237
|
ml,
|
|
2271
|
-
|
|
2272
|
-
|
|
2238
|
+
mr: 1,
|
|
2239
|
+
px: 2,
|
|
2240
|
+
py: 0.5,
|
|
2241
|
+
br: 8,
|
|
2242
|
+
color: error ? "text-alert" : "input-label-color",
|
|
2243
|
+
lineHeight: 1.1,
|
|
2244
|
+
bg: consumerBg,
|
|
2245
|
+
...rest,
|
|
2246
|
+
_labelLifted: {
|
|
2247
|
+
...defaultLabelLifted,
|
|
2248
|
+
...consumerLabelLifted
|
|
2249
|
+
},
|
|
2250
|
+
children: [
|
|
2251
|
+
children,
|
|
2252
|
+
required && "*"
|
|
2253
|
+
]
|
|
2273
2254
|
}
|
|
2274
|
-
|
|
2275
|
-
const mergedStyles = mergeStyleDefaults(styleDefaults, consumerProps, []);
|
|
2276
|
-
return /* @__PURE__ */ jsxs(Base4, { ...mergedStyles, children: [
|
|
2277
|
-
children,
|
|
2278
|
-
required && "*"
|
|
2279
|
-
] });
|
|
2255
|
+
);
|
|
2280
2256
|
}
|
|
2281
2257
|
Label2.displayName = LabelNameKey2;
|
|
2282
2258
|
function useResizeObserver(opts = {}) {
|
package/package.json
CHANGED
package/styled-system/styles.css
CHANGED
|
@@ -880,12 +880,12 @@
|
|
|
880
880
|
border-radius: 50%;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
.
|
|
884
|
-
|
|
883
|
+
.trs_200ms_cubic-bezier\(0\,_0\,_0\.2\,_1\)_0ms\,_\.2s_color_ease-in-out\,_\.2s_background_ease-in-out {
|
|
884
|
+
transition: 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, .2s color ease-in-out, .2s background ease-in-out;
|
|
885
885
|
}
|
|
886
886
|
|
|
887
|
-
.
|
|
888
|
-
|
|
887
|
+
.px_2 {
|
|
888
|
+
padding-inline: var(--spacing-2);
|
|
889
889
|
}
|
|
890
890
|
|
|
891
891
|
.py_0\.5 {
|
|
@@ -896,6 +896,14 @@
|
|
|
896
896
|
border-radius: 8px;
|
|
897
897
|
}
|
|
898
898
|
|
|
899
|
+
.bd-c_input-border-color-error {
|
|
900
|
+
border-color: var(--colors-input-border-color-error);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.bd-c_input-border-color {
|
|
904
|
+
border-color: var(--colors-input-border-color);
|
|
905
|
+
}
|
|
906
|
+
|
|
899
907
|
.ring_1px_solid_rgba\(208\,_58\,_58\,_0\.05\) {
|
|
900
908
|
outline: 1px solid rgba(208, 58, 58, 0.05);
|
|
901
909
|
}
|
|
@@ -940,14 +948,6 @@
|
|
|
940
948
|
transition: background-color 0.2s ease-in-out;
|
|
941
949
|
}
|
|
942
950
|
|
|
943
|
-
.trs_200ms_cubic-bezier\(0\,_0\,_0\.2\,_1\)_0ms\,_\.2s_color_ease-in-out\,_\.2s_background_ease-in-out {
|
|
944
|
-
transition: 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, .2s color ease-in-out, .2s background ease-in-out;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
.px_2 {
|
|
948
|
-
padding-inline: var(--spacing-2);
|
|
949
|
-
}
|
|
950
|
-
|
|
951
951
|
.px_10px {
|
|
952
952
|
padding-inline: 10px;
|
|
953
953
|
}
|
|
@@ -1144,6 +1144,30 @@
|
|
|
1144
1144
|
transform: translateY(-50%);
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
|
+
.c_input-label-color {
|
|
1148
|
+
color: var(--colors-input-label-color);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.grid-af_column {
|
|
1152
|
+
grid-auto-flow: column;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
.pointer-events_none {
|
|
1156
|
+
pointer-events: none;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
.trf-o_top_left {
|
|
1160
|
+
transform-origin: top left;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
.trf_translate\(0\,_-50\%\)_scale\(1\) {
|
|
1164
|
+
transform: translate(0, -50%) scale(1);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.lh_1\.1 {
|
|
1168
|
+
line-height: 1.1;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1147
1171
|
.ring-c_input-outline-color-error {
|
|
1148
1172
|
outline-color: var(--colors-input-outline-color-error);
|
|
1149
1173
|
}
|
|
@@ -1183,10 +1207,6 @@
|
|
|
1183
1207
|
position: absolute;
|
|
1184
1208
|
}
|
|
1185
1209
|
|
|
1186
|
-
.pointer-events_none {
|
|
1187
|
-
pointer-events: none;
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
1210
|
.bx-sh_0_0_0_6px_rgba\(0\,0\,0\,\.08\) {
|
|
1191
1211
|
box-shadow: 0 0 0 6px rgba(0,0,0,.08);
|
|
1192
1212
|
}
|
|
@@ -1252,22 +1272,10 @@
|
|
|
1252
1272
|
box-sizing: content-box;
|
|
1253
1273
|
}
|
|
1254
1274
|
|
|
1255
|
-
.grid-af_column {
|
|
1256
|
-
grid-auto-flow: column;
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
.trf-o_top_left {
|
|
1260
|
-
transform-origin: top left;
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
1275
|
.trf_translate\(0\,_0\)_scale\(1\) {
|
|
1264
1276
|
transform: translate(0, 0) scale(1);
|
|
1265
1277
|
}
|
|
1266
1278
|
|
|
1267
|
-
.c_input-label-color {
|
|
1268
|
-
color: var(--colors-input-label-color);
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
1279
|
.resize_none {
|
|
1272
1280
|
resize: none;
|
|
1273
1281
|
}
|
|
@@ -1420,6 +1428,18 @@
|
|
|
1420
1428
|
right: 11px;
|
|
1421
1429
|
}
|
|
1422
1430
|
|
|
1431
|
+
.ml_6 {
|
|
1432
|
+
margin-left: var(--spacing-6);
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
.ml_1 {
|
|
1436
|
+
margin-left: var(--spacing-1);
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
.mr_1 {
|
|
1440
|
+
margin-right: var(--spacing-1);
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1423
1443
|
.pl_7 {
|
|
1424
1444
|
padding-left: var(--spacing-7);
|
|
1425
1445
|
}
|
|
@@ -1476,14 +1496,6 @@
|
|
|
1476
1496
|
top: var(--spacing-1);
|
|
1477
1497
|
}
|
|
1478
1498
|
|
|
1479
|
-
.ml_1 {
|
|
1480
|
-
margin-left: var(--spacing-1);
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
.mr_1 {
|
|
1484
|
-
margin-right: var(--spacing-1);
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
1499
|
[data-theme=dark] .dark\:bg_neutral\.700 {
|
|
1488
1500
|
background: var(--colors-neutral-700);
|
|
1489
1501
|
}
|
|
@@ -1604,6 +1616,10 @@
|
|
|
1604
1616
|
background: var(--colors-neutral-200);
|
|
1605
1617
|
}
|
|
1606
1618
|
|
|
1619
|
+
.labelLifted\:bg_input-label-bg:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1620
|
+
background: var(--colors-input-label-bg);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1607
1623
|
.active\:bg_none:active:not(:disabled),.active\:bg_none:active:not(:focus-visible):not(:disabled),.active\:bg_none:active:focus-visible:not(:disabled) {
|
|
1608
1624
|
background: none;
|
|
1609
1625
|
}
|
|
@@ -1624,6 +1640,26 @@
|
|
|
1624
1640
|
box-shadow: 0 0 0 6px hsl(0 0% 100% / 0.05);
|
|
1625
1641
|
}
|
|
1626
1642
|
|
|
1643
|
+
.labelLifted\:c_input-label-color-lifted:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1644
|
+
color: var(--colors-input-label-color-lifted);
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
.labelLifted\:c_input-label-color:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1648
|
+
color: var(--colors-input-label-color);
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
.labelLifted\:c_text-alert:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1652
|
+
color: var(--colors-text-alert);
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
.labelLifted\:trf-o_top_left:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1656
|
+
transform-origin: top left;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
.labelLifted\:trf_scale\(0\.8\):has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1660
|
+
transform: scale(0.8);
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1627
1663
|
.active\:trf_none\!:active:not(:disabled),.active\:trf_none\!:active:not(:focus-visible):not(:disabled),.active\:trf_none\!:active:focus-visible:not(:disabled) {
|
|
1628
1664
|
transform: none !important;
|
|
1629
1665
|
}
|
|
@@ -1648,6 +1684,18 @@
|
|
|
1648
1684
|
transform: scale(0.8);
|
|
1649
1685
|
}
|
|
1650
1686
|
|
|
1687
|
+
.labelLifted\:ml_6:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1688
|
+
margin-left: var(--spacing-6);
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
.labelLifted\:ml_1:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1692
|
+
margin-left: var(--spacing-1);
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
.labelLifted\:top_-10px:has(+ input:focus, + input:not(:placeholder-shown)) {
|
|
1696
|
+
top: -10px;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1651
1699
|
.\[\&\:has\(\+_textarea\:focus\,_\+_textarea\:not\(\:placeholder-shown\)\)\]\:top_-14px:has(+ textarea:focus, + textarea:not(:placeholder-shown)) {
|
|
1652
1700
|
top: -14px;
|
|
1653
1701
|
}
|