@liner-fe/prism 2.6.4 → 2.6.5
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/lib/index.css +49 -36
- package/lib/index.d.ts +1 -1
- package/lib/index.js +23 -21
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -1372,19 +1372,25 @@
|
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
1374
|
/* esbuild-sass-plugin:css-chunk:src/components/Textfield/style.module.scss */
|
|
1375
|
-
._textfield-
|
|
1375
|
+
._textfield-container_ogykf_1 {
|
|
1376
1376
|
display: flex;
|
|
1377
1377
|
flex-direction: column;
|
|
1378
1378
|
gap: var(--lp-sys-gap-positive-200);
|
|
1379
1379
|
width: 100%;
|
|
1380
1380
|
}
|
|
1381
|
-
._textfield-
|
|
1382
|
-
|
|
1381
|
+
._textfield-container_ogykf_1:hover > ._textfield_ogykf_1 {
|
|
1382
|
+
outline: 1px solid var(--neutral-border-opaque-strong);
|
|
1383
1383
|
}
|
|
1384
|
-
._textfield-
|
|
1384
|
+
._textfield-container_ogykf_1[data-disabled=true] {
|
|
1385
1385
|
cursor: not-allowed;
|
|
1386
1386
|
}
|
|
1387
|
-
.
|
|
1387
|
+
._textfield-container_ogykf_1[data-disabled=true] > * {
|
|
1388
|
+
cursor: not-allowed !important;
|
|
1389
|
+
}
|
|
1390
|
+
._textfield-container_ogykf_1[data-disabled=true] > ._textfield_ogykf_1 {
|
|
1391
|
+
outline: 1px solid var(--neutral-border-opaque-normal) !important;
|
|
1392
|
+
}
|
|
1393
|
+
._textfield_ogykf_1 {
|
|
1388
1394
|
box-sizing: border-box;
|
|
1389
1395
|
position: relative;
|
|
1390
1396
|
width: 100%;
|
|
@@ -1395,46 +1401,53 @@
|
|
|
1395
1401
|
cursor: text;
|
|
1396
1402
|
transition: ease-out all 0.1s;
|
|
1397
1403
|
}
|
|
1398
|
-
.
|
|
1399
|
-
outline: 1px solid var(--neutral-border-opaque-strong);
|
|
1400
|
-
}
|
|
1401
|
-
._textfield_15lqz_1:focus-within {
|
|
1404
|
+
._textfield_ogykf_1:focus-within {
|
|
1402
1405
|
outline: 2px solid var(--neutral-border-opaque-strong);
|
|
1403
1406
|
}
|
|
1404
|
-
.
|
|
1407
|
+
._textfield_ogykf_1:disabled {
|
|
1405
1408
|
outline: 1px solid var(--neutral-border-opaque-subtle);
|
|
1406
1409
|
cursor: not-allowed;
|
|
1407
1410
|
}
|
|
1408
|
-
.
|
|
1411
|
+
._textfield_ogykf_1:disabled > ._label_ogykf_38 {
|
|
1409
1412
|
color: var(--neutral-label-tertiary);
|
|
1410
1413
|
cursor: not-allowed;
|
|
1411
1414
|
}
|
|
1412
|
-
.
|
|
1415
|
+
._textfield_ogykf_1._label-out-textfield_ogykf_42 {
|
|
1413
1416
|
height: 52px;
|
|
1414
1417
|
margin-top: 24px;
|
|
1415
1418
|
}
|
|
1416
|
-
.
|
|
1419
|
+
._textfield_ogykf_1._white_ogykf_46 {
|
|
1417
1420
|
background: var(--neutral-container-lowest);
|
|
1418
1421
|
}
|
|
1419
|
-
.
|
|
1422
|
+
._textfield_ogykf_1._gray_ogykf_49 {
|
|
1420
1423
|
background: var(--neutral-container-mid);
|
|
1421
1424
|
}
|
|
1422
|
-
.
|
|
1425
|
+
._label_ogykf_38 {
|
|
1423
1426
|
position: absolute;
|
|
1424
1427
|
left: 0;
|
|
1425
1428
|
top: 0;
|
|
1426
1429
|
color: var(--neutral-label-secondary);
|
|
1427
1430
|
cursor: text;
|
|
1428
1431
|
}
|
|
1429
|
-
._label-
|
|
1432
|
+
._label-in_ogykf_61 {
|
|
1430
1433
|
transform-origin: left top;
|
|
1431
1434
|
transform: translate(var(--lp-sys-padding-component-400), 100%) scale(1);
|
|
1432
1435
|
transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
|
|
1433
1436
|
}
|
|
1434
|
-
._label-
|
|
1437
|
+
._label-out_ogykf_42 {
|
|
1435
1438
|
transform: translateY(-150%);
|
|
1436
1439
|
}
|
|
1437
|
-
.
|
|
1440
|
+
._label-visually-hidden_ogykf_71 {
|
|
1441
|
+
position: absolute;
|
|
1442
|
+
width: 1px;
|
|
1443
|
+
height: 1px;
|
|
1444
|
+
overflow: hidden;
|
|
1445
|
+
margin: -1px;
|
|
1446
|
+
clip: rect(0 0 0 0);
|
|
1447
|
+
white-space: nowrap;
|
|
1448
|
+
border: 0;
|
|
1449
|
+
}
|
|
1450
|
+
._input-wrapper_ogykf_82 {
|
|
1438
1451
|
display: flex;
|
|
1439
1452
|
align-items: center;
|
|
1440
1453
|
justify-content: space-between;
|
|
@@ -1442,7 +1455,7 @@
|
|
|
1442
1455
|
height: 100%;
|
|
1443
1456
|
gap: var(--lp-sys-gap-positive-300);
|
|
1444
1457
|
}
|
|
1445
|
-
.
|
|
1458
|
+
._input_ogykf_82 {
|
|
1446
1459
|
background: transparent;
|
|
1447
1460
|
border: none;
|
|
1448
1461
|
outline: none;
|
|
@@ -1456,68 +1469,68 @@
|
|
|
1456
1469
|
font-weight: var(--lp-pri-font-weight-400);
|
|
1457
1470
|
line-height: 130%;
|
|
1458
1471
|
}
|
|
1459
|
-
.
|
|
1460
|
-
.
|
|
1472
|
+
._input_ogykf_82:focus + ._label-in_ogykf_61,
|
|
1473
|
+
._input_ogykf_82:not(:placeholder-shown) + ._label-in_ogykf_61 {
|
|
1461
1474
|
transform: translate(var(--lp-sys-padding-component-400), 60%) scale(0.8);
|
|
1462
1475
|
font-weight: var(--lp-pri-font-weight-500);
|
|
1463
1476
|
color: var(--neutral-label-primary);
|
|
1464
1477
|
}
|
|
1465
|
-
.
|
|
1478
|
+
._input_ogykf_82::placeholder {
|
|
1466
1479
|
color: var(--neutral-label-tertiary);
|
|
1467
1480
|
font-size: var(--lp-pri-font-size-15);
|
|
1468
1481
|
font-style: normal;
|
|
1469
1482
|
font-weight: var(--lp-pri-font-weight-400);
|
|
1470
1483
|
line-height: 130%;
|
|
1471
1484
|
}
|
|
1472
|
-
._label-out-
|
|
1485
|
+
._label-out-input_ogykf_118 {
|
|
1473
1486
|
transform: translateY(0);
|
|
1474
1487
|
}
|
|
1475
|
-
._input-action-
|
|
1488
|
+
._input-action-buttons_ogykf_122 {
|
|
1476
1489
|
display: flex;
|
|
1477
1490
|
align-items: center;
|
|
1478
1491
|
gap: var(--lp-sys-gap-positive-50);
|
|
1479
1492
|
}
|
|
1480
|
-
._action-
|
|
1493
|
+
._action-button_ogykf_128 {
|
|
1481
1494
|
margin-right: var(--lp-sys-padding-component-100);
|
|
1482
1495
|
}
|
|
1483
|
-
._action-
|
|
1496
|
+
._action-button_ogykf_128 > svg > circle {
|
|
1484
1497
|
fill: var(--neutral-label-secondary);
|
|
1485
1498
|
}
|
|
1486
|
-
.
|
|
1499
|
+
._error_ogykf_135 {
|
|
1487
1500
|
display: block;
|
|
1488
1501
|
outline: 2px solid var(--function-label-negative);
|
|
1489
1502
|
}
|
|
1490
|
-
.
|
|
1503
|
+
._error_ogykf_135 > ._input_ogykf_82 + ._label_ogykf_38 {
|
|
1491
1504
|
color: var(--function-label-negative);
|
|
1492
1505
|
}
|
|
1493
|
-
.
|
|
1506
|
+
._error_ogykf_135:hover {
|
|
1494
1507
|
outline: 2px solid var(--function-label-negative);
|
|
1495
1508
|
}
|
|
1496
|
-
.
|
|
1509
|
+
._error_ogykf_135:focus-within {
|
|
1497
1510
|
outline: 2px solid var(--function-label-negative);
|
|
1498
1511
|
}
|
|
1499
|
-
.
|
|
1512
|
+
._error_ogykf_135:focus-within > ._label_ogykf_38 {
|
|
1500
1513
|
color: var(--function-label-negative);
|
|
1501
1514
|
}
|
|
1502
|
-
.
|
|
1515
|
+
._error_ogykf_135 > div > ._error-message_ogykf_151 {
|
|
1503
1516
|
color: var(--function-label-negative);
|
|
1504
1517
|
}
|
|
1505
|
-
._error-
|
|
1518
|
+
._error-wrapper_ogykf_155 {
|
|
1506
1519
|
display: flex;
|
|
1507
1520
|
align-items: flex-end;
|
|
1508
1521
|
gap: 4px;
|
|
1509
1522
|
}
|
|
1510
|
-
._error-
|
|
1523
|
+
._error-wrapper_ogykf_155 > ._error-message_ogykf_151 {
|
|
1511
1524
|
color: var(--function-label-negative);
|
|
1512
1525
|
}
|
|
1513
|
-
.
|
|
1526
|
+
._footer_ogykf_164 {
|
|
1514
1527
|
display: flex;
|
|
1515
1528
|
justify-content: space-between;
|
|
1516
1529
|
align-items: center;
|
|
1517
1530
|
gap: 8px;
|
|
1518
1531
|
min-height: var(--lp-sys-icon-size-xs);
|
|
1519
1532
|
}
|
|
1520
|
-
.
|
|
1533
|
+
._character_ogykf_172 {
|
|
1521
1534
|
color: var(--neutral-label-secondary);
|
|
1522
1535
|
}
|
|
1523
1536
|
|
package/lib/index.d.ts
CHANGED
|
@@ -396,7 +396,7 @@ declare const defaultTextfieldVariants: (props?: ({
|
|
|
396
396
|
className?: cva.ClassValue;
|
|
397
397
|
})) | undefined) => string;
|
|
398
398
|
type TextfieldButtonProps = Omit<DefaultButtonProps<FillType>, 'size'>;
|
|
399
|
-
type TextfieldLabelType = 'in' | 'out';
|
|
399
|
+
type TextfieldLabelType = 'in' | 'out' | 'visually-hidden';
|
|
400
400
|
interface TextfieldLabelProps {
|
|
401
401
|
text: string;
|
|
402
402
|
type?: TextfieldLabelType;
|
package/lib/index.js
CHANGED
|
@@ -17123,24 +17123,25 @@ var import_react19 = require("react");
|
|
|
17123
17123
|
|
|
17124
17124
|
// src/components/Textfield/style.module.scss
|
|
17125
17125
|
var style_module_default13 = {
|
|
17126
|
-
"textfield-container": "_textfield-
|
|
17127
|
-
"textfield": "
|
|
17128
|
-
"label": "
|
|
17129
|
-
"label-out-textfield": "_label-out-
|
|
17130
|
-
"white": "
|
|
17131
|
-
"gray": "
|
|
17132
|
-
"label-in": "_label-
|
|
17133
|
-
"label-out": "_label-
|
|
17134
|
-
"
|
|
17135
|
-
"input": "
|
|
17136
|
-
"
|
|
17137
|
-
"
|
|
17138
|
-
"action-
|
|
17139
|
-
"
|
|
17140
|
-
"error
|
|
17141
|
-
"error-
|
|
17142
|
-
"
|
|
17143
|
-
"
|
|
17126
|
+
"textfield-container": "_textfield-container_ogykf_1",
|
|
17127
|
+
"textfield": "_textfield_ogykf_1",
|
|
17128
|
+
"label": "_label_ogykf_38",
|
|
17129
|
+
"label-out-textfield": "_label-out-textfield_ogykf_42",
|
|
17130
|
+
"white": "_white_ogykf_46",
|
|
17131
|
+
"gray": "_gray_ogykf_49",
|
|
17132
|
+
"label-in": "_label-in_ogykf_61",
|
|
17133
|
+
"label-out": "_label-out_ogykf_42",
|
|
17134
|
+
"label-visually-hidden": "_label-visually-hidden_ogykf_71",
|
|
17135
|
+
"input-wrapper": "_input-wrapper_ogykf_82",
|
|
17136
|
+
"input": "_input_ogykf_82",
|
|
17137
|
+
"label-out-input": "_label-out-input_ogykf_118",
|
|
17138
|
+
"input-action-buttons": "_input-action-buttons_ogykf_122",
|
|
17139
|
+
"action-button": "_action-button_ogykf_128",
|
|
17140
|
+
"error": "_error_ogykf_135",
|
|
17141
|
+
"error-message": "_error-message_ogykf_151",
|
|
17142
|
+
"error-wrapper": "_error-wrapper_ogykf_155",
|
|
17143
|
+
"footer": "_footer_ogykf_164",
|
|
17144
|
+
"character": "_character_ogykf_172"
|
|
17144
17145
|
};
|
|
17145
17146
|
|
|
17146
17147
|
// src/components/Textfield/index.tsx
|
|
@@ -17216,7 +17217,7 @@ var Textfield = (0, import_react19.forwardRef)((props, ref) => {
|
|
|
17216
17217
|
}
|
|
17217
17218
|
}, "handleDeidentify");
|
|
17218
17219
|
(0, import_react19.useImperativeHandle)(ref, () => inputRef.current);
|
|
17219
|
-
return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { className: style_module_default13["textfield-container"], children: [
|
|
17220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { className: style_module_default13["textfield-container"], "data-disabled": disabled, children: [
|
|
17220
17221
|
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
17221
17222
|
"div",
|
|
17222
17223
|
{
|
|
@@ -17230,7 +17231,7 @@ var Textfield = (0, import_react19.forwardRef)((props, ref) => {
|
|
|
17230
17231
|
"input",
|
|
17231
17232
|
{
|
|
17232
17233
|
className: (0, import_clsx15.default)(style_module_default13.input, {
|
|
17233
|
-
[style_module_default13["label-out-input"]]: !label || labelType === "out"
|
|
17234
|
+
[style_module_default13["label-out-input"]]: !label || labelType === "out" || labelType === "visually-hidden"
|
|
17234
17235
|
}),
|
|
17235
17236
|
type: isDeidentified ? "password" : "text",
|
|
17236
17237
|
placeholder,
|
|
@@ -17246,7 +17247,8 @@ var Textfield = (0, import_react19.forwardRef)((props, ref) => {
|
|
|
17246
17247
|
{
|
|
17247
17248
|
className: (0, import_clsx15.default)(style_module_default13.label, {
|
|
17248
17249
|
[style_module_default13["label-in"]]: labelType === "in",
|
|
17249
|
-
[style_module_default13["label-out"]]: !label || labelType === "out"
|
|
17250
|
+
[style_module_default13["label-out"]]: !label || labelType === "out",
|
|
17251
|
+
[style_module_default13["label-visually-hidden"]]: labelType === "visually-hidden"
|
|
17250
17252
|
}),
|
|
17251
17253
|
size: label?.type === "out" ? "s" : void 0,
|
|
17252
17254
|
htmlFor: id,
|