@liner-fe/prism 3.5.3 → 3.5.4
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 +119 -115
- package/lib/index.d.ts +26 -1
- package/lib/index.js +73 -56
- package/package.json +3 -3
package/lib/index.css
CHANGED
|
@@ -1239,37 +1239,78 @@
|
|
|
1239
1239
|
text-overflow: ellipsis;
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
1242
|
+
/* esbuild-sass-plugin:css-chunk:src/components/ListItem/primitive/style.module.scss */
|
|
1243
|
+
._root_1j4ne_2 {
|
|
1244
|
+
display: flex;
|
|
1245
|
+
gap: var(--lp-sys-gap-positive-150);
|
|
1246
|
+
box-sizing: border-box;
|
|
1247
|
+
width: 100%;
|
|
1248
|
+
cursor: pointer;
|
|
1249
|
+
outline: none;
|
|
1250
|
+
padding-block: var(--lp-sys-padding-component-150);
|
|
1251
|
+
padding-inline-start: var(--lp-sys-padding-component-200);
|
|
1252
|
+
padding-inline-end: var(--lp-sys-padding-component-150);
|
|
1253
|
+
border-radius: var(--lp-sys-radius-s);
|
|
1254
|
+
background: var(--neutral-fill-overlay-lowest);
|
|
1255
|
+
}
|
|
1256
|
+
._root_1j4ne_2:hover {
|
|
1257
|
+
background: var(--neutral-fill-overlay-lowest-hover);
|
|
1258
|
+
}
|
|
1259
|
+
._root_1j4ne_2[data-highlighted] {
|
|
1260
|
+
background: var(--neutral-fill-overlay-lowest-hover);
|
|
1261
|
+
}
|
|
1262
|
+
._root_1j4ne_2:active {
|
|
1263
|
+
background: var(--neutral-fill-overlay-lowest-hover);
|
|
1264
|
+
}
|
|
1265
|
+
._root_1j4ne_2 {
|
|
1266
|
+
}
|
|
1267
|
+
._root_1j4ne_2:focus-visible:not(:hover) {
|
|
1268
|
+
background: var(--neutral-fill-overlay-lowest-hover);
|
|
1269
|
+
box-shadow: inset 0 0 0 1px #006aff;
|
|
1270
|
+
}
|
|
1271
|
+
._root_1j4ne_2[data-state=checked] {
|
|
1272
|
+
background: var(--neutral-fill-overlay-low);
|
|
1273
|
+
}
|
|
1274
|
+
._root_1j4ne_2[data-disabled] {
|
|
1275
|
+
background: transparent;
|
|
1276
|
+
cursor: not-allowed;
|
|
1277
|
+
}
|
|
1278
|
+
[data-zone=main] {
|
|
1279
|
+
flex: 1;
|
|
1280
|
+
min-width: 0;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1242
1283
|
/* esbuild-sass-plugin:css-chunk:src/components/Select/style.module.scss */
|
|
1243
|
-
.
|
|
1284
|
+
._root_1m2x2_3 {
|
|
1244
1285
|
display: flex;
|
|
1245
1286
|
flex-direction: column;
|
|
1246
1287
|
gap: var(--lp-sys-padding-component-100);
|
|
1247
1288
|
width: fit-content;
|
|
1248
1289
|
}
|
|
1249
|
-
.
|
|
1290
|
+
._root_1m2x2_3[data-trigger-type=select-button] {
|
|
1250
1291
|
gap: 0;
|
|
1251
1292
|
}
|
|
1252
|
-
.
|
|
1293
|
+
._root_1m2x2_3[data-trigger-type=select-field][data-size=s] {
|
|
1253
1294
|
width: 200px;
|
|
1254
1295
|
}
|
|
1255
|
-
.
|
|
1296
|
+
._root_1m2x2_3[data-trigger-type=select-field][data-size=l] {
|
|
1256
1297
|
width: 240px;
|
|
1257
1298
|
}
|
|
1258
|
-
.
|
|
1299
|
+
._root_1m2x2_3[data-trigger-type=select-button][data-size=s] {
|
|
1259
1300
|
width: 105px;
|
|
1260
1301
|
}
|
|
1261
|
-
.
|
|
1302
|
+
._root_1m2x2_3[data-trigger-type=select-button][data-size=m] {
|
|
1262
1303
|
width: 123px;
|
|
1263
1304
|
}
|
|
1264
|
-
.
|
|
1305
|
+
._label_1m2x2_35 {
|
|
1265
1306
|
padding-block-end: var(--lp-sys-padding-component-100);
|
|
1266
1307
|
margin: 0;
|
|
1267
1308
|
}
|
|
1268
|
-
.
|
|
1309
|
+
._requiredMark_1m2x2_40 {
|
|
1269
1310
|
color: var(--function-label-negative);
|
|
1270
1311
|
margin-inline-start: 2px;
|
|
1271
1312
|
}
|
|
1272
|
-
.
|
|
1313
|
+
._srOnly_1m2x2_45 {
|
|
1273
1314
|
position: absolute;
|
|
1274
1315
|
width: 1px;
|
|
1275
1316
|
height: 1px;
|
|
@@ -1280,7 +1321,7 @@
|
|
|
1280
1321
|
white-space: nowrap;
|
|
1281
1322
|
border: 0;
|
|
1282
1323
|
}
|
|
1283
|
-
.
|
|
1324
|
+
._trigger_1m2x2_58 {
|
|
1284
1325
|
display: flex;
|
|
1285
1326
|
align-items: center;
|
|
1286
1327
|
justify-content: space-between;
|
|
@@ -1291,36 +1332,36 @@
|
|
|
1291
1332
|
font: inherit;
|
|
1292
1333
|
text-align: start;
|
|
1293
1334
|
}
|
|
1294
|
-
.
|
|
1295
|
-
.
|
|
1335
|
+
._trigger_1m2x2_58:hover:not(:disabled),
|
|
1336
|
+
._trigger_1m2x2_58:active:not(:disabled) {
|
|
1296
1337
|
background: var(--neutral-container-lowest-hover);
|
|
1297
1338
|
border-color: var(--neutral-border-opaque-strong);
|
|
1298
1339
|
}
|
|
1299
|
-
.
|
|
1340
|
+
._trigger_1m2x2_58 {
|
|
1300
1341
|
}
|
|
1301
|
-
.
|
|
1302
|
-
.
|
|
1342
|
+
._trigger_1m2x2_58:focus,
|
|
1343
|
+
._trigger_1m2x2_58:focus-visible {
|
|
1303
1344
|
outline: none;
|
|
1304
1345
|
}
|
|
1305
|
-
.
|
|
1346
|
+
._trigger_1m2x2_58 {
|
|
1306
1347
|
}
|
|
1307
|
-
.
|
|
1308
|
-
.
|
|
1348
|
+
._trigger_1m2x2_58:disabled,
|
|
1349
|
+
._trigger_1m2x2_58[data-disabled] {
|
|
1309
1350
|
cursor: not-allowed;
|
|
1310
1351
|
color: var(--neutral-label-tertiary);
|
|
1311
1352
|
}
|
|
1312
|
-
.
|
|
1353
|
+
._trigger_1m2x2_58 {
|
|
1313
1354
|
}
|
|
1314
|
-
.
|
|
1355
|
+
._trigger_1m2x2_58[data-state=open] ._icon_1m2x2_94 {
|
|
1315
1356
|
transform: rotate(180deg);
|
|
1316
1357
|
}
|
|
1317
|
-
.
|
|
1358
|
+
._trigger_1m2x2_58 ._icon_1m2x2_94 {
|
|
1318
1359
|
transition: transform 120ms ease;
|
|
1319
1360
|
flex-shrink: 0;
|
|
1320
1361
|
display: flex;
|
|
1321
1362
|
align-items: center;
|
|
1322
1363
|
}
|
|
1323
|
-
.
|
|
1364
|
+
._trigger_1m2x2_58[data-trigger-type=select-field] {
|
|
1324
1365
|
border-radius: var(--lp-sys-radius-m);
|
|
1325
1366
|
background: var(--neutral-container-lowest);
|
|
1326
1367
|
font-family:
|
|
@@ -1332,47 +1373,47 @@
|
|
|
1332
1373
|
line-height: var(--lp-pri-font-lineheight-130);
|
|
1333
1374
|
color: var(--neutral-label-primary);
|
|
1334
1375
|
}
|
|
1335
|
-
.
|
|
1376
|
+
._trigger_1m2x2_58[data-trigger-type=select-field][data-size=s] {
|
|
1336
1377
|
height: 32px;
|
|
1337
1378
|
padding-inline: var(--lp-sys-padding-component-200);
|
|
1338
1379
|
}
|
|
1339
|
-
.
|
|
1380
|
+
._trigger_1m2x2_58[data-trigger-type=select-field][data-size=m] {
|
|
1340
1381
|
height: 40px;
|
|
1341
1382
|
padding-inline: var(--lp-sys-padding-component-300);
|
|
1342
1383
|
}
|
|
1343
|
-
.
|
|
1384
|
+
._trigger_1m2x2_58[data-trigger-type=select-field][data-size=l] {
|
|
1344
1385
|
height: 45px;
|
|
1345
1386
|
padding-inline-start: var(--lp-sys-padding-component-400);
|
|
1346
1387
|
padding-inline-end: var(--lp-sys-padding-component-300);
|
|
1347
1388
|
}
|
|
1348
|
-
.
|
|
1389
|
+
._trigger_1m2x2_58[data-trigger-type=select-field] {
|
|
1349
1390
|
}
|
|
1350
|
-
.
|
|
1391
|
+
._trigger_1m2x2_58[data-trigger-type=select-field][data-placeholder] {
|
|
1351
1392
|
color: var(--neutral-label-tertiary);
|
|
1352
1393
|
}
|
|
1353
|
-
.
|
|
1394
|
+
._trigger_1m2x2_58[data-trigger-type=select-field] {
|
|
1354
1395
|
}
|
|
1355
|
-
.
|
|
1356
|
-
.
|
|
1396
|
+
._trigger_1m2x2_58[data-trigger-type=select-field]:disabled,
|
|
1397
|
+
._trigger_1m2x2_58[data-trigger-type=select-field][data-disabled] {
|
|
1357
1398
|
background: var(--neutral-container-mid);
|
|
1358
1399
|
border-color: var(--neutral-border-opaque-subtle);
|
|
1359
1400
|
}
|
|
1360
|
-
.
|
|
1401
|
+
._trigger_1m2x2_58 > span:not([class]) {
|
|
1361
1402
|
flex: 1;
|
|
1362
1403
|
min-width: 0;
|
|
1363
1404
|
overflow: hidden;
|
|
1364
1405
|
white-space: nowrap;
|
|
1365
1406
|
text-overflow: ellipsis;
|
|
1366
1407
|
}
|
|
1367
|
-
.
|
|
1408
|
+
._triggerButton_1m2x2_159 {
|
|
1368
1409
|
}
|
|
1369
|
-
.
|
|
1410
|
+
._triggerButton_1m2x2_159 > span {
|
|
1370
1411
|
width: 100%;
|
|
1371
1412
|
justify-content: space-between !important;
|
|
1372
1413
|
}
|
|
1373
|
-
.
|
|
1414
|
+
._triggerButton_1m2x2_159 {
|
|
1374
1415
|
}
|
|
1375
|
-
.
|
|
1416
|
+
._triggerButton_1m2x2_159 span:not([class]) {
|
|
1376
1417
|
flex: 1;
|
|
1377
1418
|
min-width: 0;
|
|
1378
1419
|
text-align: start;
|
|
@@ -1380,33 +1421,33 @@
|
|
|
1380
1421
|
white-space: nowrap;
|
|
1381
1422
|
text-overflow: ellipsis;
|
|
1382
1423
|
}
|
|
1383
|
-
.
|
|
1424
|
+
._triggerButton_1m2x2_159 {
|
|
1384
1425
|
}
|
|
1385
|
-
.
|
|
1426
|
+
._triggerButton_1m2x2_159[data-state=open] svg:last-child {
|
|
1386
1427
|
transform: rotate(180deg);
|
|
1387
1428
|
}
|
|
1388
|
-
.
|
|
1429
|
+
._triggerButton_1m2x2_159 svg:last-child {
|
|
1389
1430
|
transition: transform 120ms ease;
|
|
1390
1431
|
}
|
|
1391
|
-
.
|
|
1432
|
+
._root_1m2x2_3[data-error] ._trigger_1m2x2_58[data-trigger-type=select-field] {
|
|
1392
1433
|
outline: 1px solid var(--function-label-negative);
|
|
1393
1434
|
border-color: var(--function-label-negative);
|
|
1394
1435
|
}
|
|
1395
|
-
.
|
|
1396
|
-
.
|
|
1436
|
+
._trigger_1m2x2_58 svg path,
|
|
1437
|
+
._triggerButton_1m2x2_159 svg path {
|
|
1397
1438
|
fill: currentColor !important;
|
|
1398
1439
|
}
|
|
1399
|
-
.
|
|
1440
|
+
._errorMessage_1m2x2_203 {
|
|
1400
1441
|
display: flex;
|
|
1401
1442
|
align-items: center;
|
|
1402
1443
|
gap: var(--lp-sys-gap-positive-100);
|
|
1403
1444
|
padding-block-start: var(--lp-sys-padding-component-100);
|
|
1404
1445
|
}
|
|
1405
|
-
.
|
|
1446
|
+
._errorText_1m2x2_211 {
|
|
1406
1447
|
margin: 0;
|
|
1407
1448
|
line-height: 1;
|
|
1408
1449
|
}
|
|
1409
|
-
.
|
|
1450
|
+
._content_1m2x2_220 {
|
|
1410
1451
|
max-width: var(--radix-select-content-available-width);
|
|
1411
1452
|
max-height: var(--radix-select-content-available-height);
|
|
1412
1453
|
transform-origin: var(--radix-select-content-transform-origin);
|
|
@@ -1418,35 +1459,35 @@
|
|
|
1418
1459
|
overflow: hidden;
|
|
1419
1460
|
z-index: 1000;
|
|
1420
1461
|
}
|
|
1421
|
-
.
|
|
1422
|
-
animation:
|
|
1462
|
+
._content_1m2x2_220[data-state=open] {
|
|
1463
|
+
animation: _fadeScaleIn_1m2x2_1 120ms ease-out;
|
|
1423
1464
|
}
|
|
1424
|
-
.
|
|
1465
|
+
._content_1m2x2_220[data-trigger-type=select-field] {
|
|
1425
1466
|
width: var(--radix-select-trigger-width);
|
|
1426
1467
|
}
|
|
1427
|
-
.
|
|
1468
|
+
._content_1m2x2_220[data-trigger-type=select-button] {
|
|
1428
1469
|
width: 320px;
|
|
1429
1470
|
}
|
|
1430
|
-
.
|
|
1471
|
+
._viewport_1m2x2_251 {
|
|
1431
1472
|
max-height: 268px;
|
|
1432
1473
|
overflow-y: auto !important;
|
|
1433
1474
|
scrollbar-width: thin !important;
|
|
1434
1475
|
scrollbar-color: var(--neutral-fill-overlay-mid) transparent;
|
|
1435
1476
|
}
|
|
1436
|
-
.
|
|
1477
|
+
._viewport_1m2x2_251::-webkit-scrollbar {
|
|
1437
1478
|
display: block !important;
|
|
1438
1479
|
width: 7px;
|
|
1439
1480
|
}
|
|
1440
|
-
.
|
|
1481
|
+
._viewport_1m2x2_251::-webkit-scrollbar-track {
|
|
1441
1482
|
background-color: transparent;
|
|
1442
1483
|
}
|
|
1443
|
-
.
|
|
1484
|
+
._viewport_1m2x2_251::-webkit-scrollbar-thumb {
|
|
1444
1485
|
background-color: var(--neutral-fill-overlay-mid);
|
|
1445
1486
|
border: 2px solid transparent;
|
|
1446
1487
|
background-clip: padding-box;
|
|
1447
1488
|
border-radius: 7px;
|
|
1448
1489
|
}
|
|
1449
|
-
@keyframes
|
|
1490
|
+
@keyframes _fadeScaleIn_1m2x2_1 {
|
|
1450
1491
|
from {
|
|
1451
1492
|
opacity: 0;
|
|
1452
1493
|
transform: scale(0.95);
|
|
@@ -1456,7 +1497,7 @@
|
|
|
1456
1497
|
transform: scale(1);
|
|
1457
1498
|
}
|
|
1458
1499
|
}
|
|
1459
|
-
.
|
|
1500
|
+
._selectItem_1m2x2_283 {
|
|
1460
1501
|
display: flex;
|
|
1461
1502
|
align-items: center;
|
|
1462
1503
|
gap: var(--lp-sys-gap-positive-150);
|
|
@@ -1467,60 +1508,63 @@
|
|
|
1467
1508
|
cursor: pointer;
|
|
1468
1509
|
outline: none;
|
|
1469
1510
|
}
|
|
1470
|
-
.
|
|
1511
|
+
._selectItem_1m2x2_283 span:not([class]) {
|
|
1471
1512
|
display: none;
|
|
1472
1513
|
}
|
|
1473
|
-
.
|
|
1514
|
+
._selectItem_1m2x2_283[data-disabled] {
|
|
1474
1515
|
cursor: not-allowed;
|
|
1475
1516
|
color: var(--neutral-label-tertiary);
|
|
1476
1517
|
}
|
|
1477
|
-
.
|
|
1478
|
-
.
|
|
1518
|
+
._selectItem_1m2x2_283:hover:not([data-disabled]),
|
|
1519
|
+
._selectItem_1m2x2_283[data-highlighted] {
|
|
1479
1520
|
background: var(--neutral-fill-overlay-low);
|
|
1480
1521
|
}
|
|
1481
|
-
.
|
|
1522
|
+
._selectItem_1m2x2_283:active:not([data-disabled]) {
|
|
1482
1523
|
background: var(--neutral-fill-overlay-lowest-hover);
|
|
1483
1524
|
}
|
|
1484
|
-
.
|
|
1525
|
+
._selectItem_1m2x2_283 {
|
|
1485
1526
|
}
|
|
1486
|
-
.
|
|
1527
|
+
._selectItem_1m2x2_283:focus-visible:not(:hover) {
|
|
1487
1528
|
background: var(--neutral-container-low);
|
|
1488
1529
|
box-shadow: inset 0 0 0 1px #006aff;
|
|
1489
1530
|
}
|
|
1490
|
-
.
|
|
1531
|
+
._selectItem_1m2x2_283[data-state=checked] {
|
|
1491
1532
|
padding-inline-end: var(--lp-sys-padding-component-200);
|
|
1492
1533
|
}
|
|
1493
|
-
.
|
|
1534
|
+
._selectItem_1m2x2_283 [data-zone=leading] {
|
|
1494
1535
|
align-self: flex-start;
|
|
1495
1536
|
}
|
|
1496
|
-
.
|
|
1537
|
+
._primitiveItem_1m2x2_336 > span:not([class]) {
|
|
1538
|
+
display: none;
|
|
1539
|
+
}
|
|
1540
|
+
._selectItem_1m2x2_283[data-state=checked] ._itemLabel_1m2x2_341 {
|
|
1497
1541
|
color: var(--brand-label-primary) !important;
|
|
1498
1542
|
font-weight: var(--lp-pri-font-weight-500);
|
|
1499
1543
|
}
|
|
1500
|
-
.
|
|
1544
|
+
._itemIndicator_1m2x2_346 {
|
|
1501
1545
|
flex-shrink: 0;
|
|
1502
1546
|
display: flex;
|
|
1503
1547
|
align-items: center;
|
|
1504
1548
|
}
|
|
1505
|
-
.
|
|
1549
|
+
._trailingSlot_1m2x2_354 p,
|
|
1506
1550
|
[data-zone=leading] p {
|
|
1507
1551
|
margin: 0;
|
|
1508
1552
|
}
|
|
1509
|
-
.
|
|
1553
|
+
._selectItem_1m2x2_283[data-state=checked] ._trailingSlot_1m2x2_354 {
|
|
1510
1554
|
display: none;
|
|
1511
1555
|
}
|
|
1512
|
-
.
|
|
1556
|
+
._group_1m2x2_367 {
|
|
1513
1557
|
display: flex;
|
|
1514
1558
|
flex-direction: column;
|
|
1515
1559
|
}
|
|
1516
|
-
.
|
|
1560
|
+
._group_1m2x2_367:not(:last-child) {
|
|
1517
1561
|
border-block-end: 1px solid var(--neutral-border-overlay-normal);
|
|
1518
1562
|
padding-block-end: var(--lp-sys-padding-component-150);
|
|
1519
1563
|
}
|
|
1520
|
-
.
|
|
1564
|
+
._group_1m2x2_367 + ._group_1m2x2_367 {
|
|
1521
1565
|
padding-block-start: var(--lp-sys-padding-component-150);
|
|
1522
1566
|
}
|
|
1523
|
-
.
|
|
1567
|
+
._groupLabel_1m2x2_382 {
|
|
1524
1568
|
display: block;
|
|
1525
1569
|
margin: 0;
|
|
1526
1570
|
padding-block: var(--lp-sys-padding-component-150);
|
|
@@ -1528,62 +1572,22 @@
|
|
|
1528
1572
|
padding-inline-end: var(--lp-sys-padding-component-150);
|
|
1529
1573
|
}
|
|
1530
1574
|
@media (prefers-reduced-motion: reduce) {
|
|
1531
|
-
.
|
|
1575
|
+
._trigger_1m2x2_58 ._icon_1m2x2_94 {
|
|
1532
1576
|
transition: none;
|
|
1533
1577
|
}
|
|
1534
|
-
.
|
|
1578
|
+
._content_1m2x2_220[data-state=open] {
|
|
1535
1579
|
animation: none;
|
|
1536
1580
|
}
|
|
1537
1581
|
}
|
|
1538
1582
|
@media (forced-colors: active) {
|
|
1539
|
-
.
|
|
1583
|
+
._trigger_1m2x2_58 {
|
|
1540
1584
|
border: 1px solid ButtonText;
|
|
1541
1585
|
}
|
|
1542
|
-
.
|
|
1586
|
+
._trigger_1m2x2_58:focus-visible {
|
|
1543
1587
|
outline: 2px solid Highlight;
|
|
1544
1588
|
}
|
|
1545
1589
|
}
|
|
1546
1590
|
|
|
1547
|
-
/* esbuild-sass-plugin:css-chunk:src/components/ListItem/primitive/style.module.scss */
|
|
1548
|
-
._root_1y0m7_2 {
|
|
1549
|
-
display: flex;
|
|
1550
|
-
gap: var(--lp-sys-gap-positive-150);
|
|
1551
|
-
width: 100%;
|
|
1552
|
-
cursor: pointer;
|
|
1553
|
-
padding-block: var(--lp-sys-padding-component-150);
|
|
1554
|
-
padding-inline-start: var(--lp-sys-padding-component-200);
|
|
1555
|
-
padding-inline-end: var(--lp-sys-padding-component-150);
|
|
1556
|
-
border-radius: var(--lp-sys-radius-s);
|
|
1557
|
-
background: var(--neutral-fill-overlay-lowest);
|
|
1558
|
-
}
|
|
1559
|
-
._root_1y0m7_2:hover {
|
|
1560
|
-
background: var(--neutral-fill-overlay-lowest-hover);
|
|
1561
|
-
}
|
|
1562
|
-
._root_1y0m7_2[data-highlighted] {
|
|
1563
|
-
background: var(--neutral-fill-overlay-lowest-hover);
|
|
1564
|
-
}
|
|
1565
|
-
._root_1y0m7_2:active {
|
|
1566
|
-
background: var(--neutral-fill-overlay-lowest-hover);
|
|
1567
|
-
}
|
|
1568
|
-
._root_1y0m7_2 {
|
|
1569
|
-
}
|
|
1570
|
-
._root_1y0m7_2:focus-visible:not(:hover) {
|
|
1571
|
-
outline: none;
|
|
1572
|
-
background: var(--neutral-fill-overlay-lowest-hover);
|
|
1573
|
-
box-shadow: 0 0 0 1px #006aff;
|
|
1574
|
-
}
|
|
1575
|
-
._root_1y0m7_2[data-state=checked] {
|
|
1576
|
-
background: var(--neutral-fill-overlay-low);
|
|
1577
|
-
}
|
|
1578
|
-
._root_1y0m7_2[data-disabled] {
|
|
1579
|
-
background: transparent;
|
|
1580
|
-
cursor: not-allowed;
|
|
1581
|
-
}
|
|
1582
|
-
[data-zone=main] {
|
|
1583
|
-
flex: 1;
|
|
1584
|
-
min-width: 0;
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
1591
|
/* esbuild-sass-plugin:css-chunk:src/components/List/style.module.scss */
|
|
1588
1592
|
._root_x5fwq_2 {
|
|
1589
1593
|
list-style: none;
|
package/lib/index.d.ts
CHANGED
|
@@ -460,6 +460,30 @@ interface SelectItemProps extends Omit<ComponentPropsWithoutRef<typeof Select$1.
|
|
|
460
460
|
interface SelectGroupProps extends ComponentPropsWithoutRef<typeof Select$1.Group> {
|
|
461
461
|
label?: ReactNode;
|
|
462
462
|
}
|
|
463
|
+
/**
|
|
464
|
+
* @description Select.PrimitiveItem — `Select.Item`의 기본 스타일 외 완전 커스텀 visual을 원할 때 사용.
|
|
465
|
+
*
|
|
466
|
+
* PrimitiveListItem과 **동일 시각 base** (padding · hover bg · focus ring · disabled · checked)
|
|
467
|
+
* + Radix Select integration (selection · typeahead · keyboard nav · trigger value mirror)를 보장하되,
|
|
468
|
+
* 본문 visual은 consumer가 children으로 완전히 결정.
|
|
469
|
+
*
|
|
470
|
+
* 왜 literal-wrap이 아닌가: `PrimitiveListItem`은 자체 `CollectionContext`/click-keyboard handler를 가져
|
|
471
|
+
* RadixSelect.Item과 double-fire 위험 + provider 강제 throw. CSS class(`primitiveListItemStyle.root`)와
|
|
472
|
+
* data-zone 구조만 공유해 시각 base는 동등.
|
|
473
|
+
*
|
|
474
|
+
* 사용 예:
|
|
475
|
+
* ```tsx
|
|
476
|
+
* <Select.PrimitiveItem value="apple" textValue="Apple">
|
|
477
|
+
* <ListItem label="Apple" leadingSlot={<IconStar/>} description="..." />
|
|
478
|
+
* </Select.PrimitiveItem>
|
|
479
|
+
* ```
|
|
480
|
+
*/
|
|
481
|
+
interface SelectPrimitiveItemProps extends Omit<ComponentPropsWithoutRef<typeof Select$1.Item>, 'value'> {
|
|
482
|
+
value: string;
|
|
483
|
+
/** typeahead(키보드 첫 글자 검색) + 선택 시 Trigger Value mirror 텍스트. visual은 children. */
|
|
484
|
+
textValue: string;
|
|
485
|
+
children?: ReactNode;
|
|
486
|
+
}
|
|
463
487
|
interface BaseSelectTriggerProps {
|
|
464
488
|
label?: ReactNode;
|
|
465
489
|
placeholder?: ReactNode;
|
|
@@ -490,6 +514,7 @@ declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAtt
|
|
|
490
514
|
Trigger: react.ForwardRefExoticComponent<SelectTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
491
515
|
Content: react.ForwardRefExoticComponent<SelectContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
492
516
|
Item: react.ForwardRefExoticComponent<SelectItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
517
|
+
PrimitiveItem: react.ForwardRefExoticComponent<SelectPrimitiveItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
493
518
|
Group: react.ForwardRefExoticComponent<SelectGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
494
519
|
};
|
|
495
520
|
|
|
@@ -1011,4 +1036,4 @@ interface RatioProps extends react.HTMLAttributes<HTMLDivElement> {
|
|
|
1011
1036
|
*/
|
|
1012
1037
|
declare const Ratio: react.ForwardRefExoticComponent<RatioProps & react.RefAttributes<HTMLDivElement>>;
|
|
1013
1038
|
|
|
1014
|
-
export { AlertDialog, type AlertDialogAction, type AlertDialogConfirmAction, type AlertDialogContentProps, Avatar, type AvatarLoadingStatus, type AvatarProps, type AvatarSize, Badge, type BadgeColor, type BadgeIconProps, type BadgeProps, type BadgeSize, type BadgeVariant, BottomSheet, type BottomSheetAction, type BottomSheetConfirmAction, type BottomSheetContentProps, type BottomSheetMode, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, type CompactCoachMarkContentProps, DEFAULT_LEVEL_OPTIONS, DEFAULT_SIZE_OPTIONS, DefaultButton, type DefaultButtonProps, type DefaultLevelType, Dialog, type DialogAction, type DialogConfirmAction, type DialogContentProps, Display, Heading, ICON_LEVEL_OPTIONS, ICON_SIZE_OPTIONS, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, IconButton, type IconButtonProps, LOGOS, Label, List, type ListGroupProps, ListItem, type ListItemProps, type ListProps, Loading, type LoadingLevelType, Logo, type LogoCategory, type LogoName, type LogoProps, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, PrimitiveListItem, type PrimitiveListItemProps, type PromiseToastOptions, RATIO, Radio, Ratio, type RatioProps, Select, type SelectButtonSize, type SelectContentProps, type SelectFieldSize, type SelectGroupProps, type SelectItemProps, type SelectProps, type SelectTriggerProps, type SelectTriggerType, type SelectWidthOptions, TEXT_LEVEL_OPTIONS, TEXT_SIZE_OPTIONS, Tag, TextButton, type TextButtonProps, type TextSizeType, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, type ToastOptions, type ToastType, Toaster, Tooltip, Typography, arrayToStyleObject, isEmptyObject, objectToArray, rootMediaStyle, toast };
|
|
1039
|
+
export { AlertDialog, type AlertDialogAction, type AlertDialogConfirmAction, type AlertDialogContentProps, Avatar, type AvatarLoadingStatus, type AvatarProps, type AvatarSize, Badge, type BadgeColor, type BadgeIconProps, type BadgeProps, type BadgeSize, type BadgeVariant, BottomSheet, type BottomSheetAction, type BottomSheetConfirmAction, type BottomSheetContentProps, type BottomSheetMode, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, type CompactCoachMarkContentProps, DEFAULT_LEVEL_OPTIONS, DEFAULT_SIZE_OPTIONS, DefaultButton, type DefaultButtonProps, type DefaultLevelType, Dialog, type DialogAction, type DialogConfirmAction, type DialogContentProps, Display, Heading, ICON_LEVEL_OPTIONS, ICON_SIZE_OPTIONS, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, IconButton, type IconButtonProps, LOGOS, Label, List, type ListGroupProps, ListItem, type ListItemProps, type ListProps, Loading, type LoadingLevelType, Logo, type LogoCategory, type LogoName, type LogoProps, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, PrimitiveListItem, type PrimitiveListItemProps, type PromiseToastOptions, RATIO, Radio, Ratio, type RatioProps, Select, type SelectButtonSize, type SelectContentProps, type SelectFieldSize, type SelectGroupProps, type SelectItemProps, type SelectPrimitiveItemProps, type SelectProps, type SelectTriggerProps, type SelectTriggerType, type SelectWidthOptions, TEXT_LEVEL_OPTIONS, TEXT_SIZE_OPTIONS, Tag, TextButton, type TextButtonProps, type TextSizeType, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, type ToastOptions, type ToastType, Toaster, Tooltip, Typography, arrayToStyleObject, isEmptyObject, objectToArray, rootMediaStyle, toast };
|
package/lib/index.js
CHANGED
|
@@ -1455,7 +1455,7 @@ import {
|
|
|
1455
1455
|
useMemo
|
|
1456
1456
|
} from "react";
|
|
1457
1457
|
import clsx14 from "clsx";
|
|
1458
|
-
import { IconInfo,
|
|
1458
|
+
import { IconInfo, IconArrowChevronDown, IconCheckMark as IconCheckMark2 } from "@liner-fe/icon";
|
|
1459
1459
|
|
|
1460
1460
|
// src/components/ListItem/style.module.scss
|
|
1461
1461
|
var style_module_default12 = {
|
|
@@ -1467,26 +1467,32 @@ var style_module_default12 = {
|
|
|
1467
1467
|
"description": "_description_mmjcv_6"
|
|
1468
1468
|
};
|
|
1469
1469
|
|
|
1470
|
-
// src/components/
|
|
1470
|
+
// src/components/ListItem/primitive/style.module.scss
|
|
1471
1471
|
var style_module_default13 = {
|
|
1472
|
-
"root": "
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
"
|
|
1478
|
-
"
|
|
1479
|
-
"
|
|
1480
|
-
"
|
|
1481
|
-
"
|
|
1482
|
-
"
|
|
1483
|
-
"
|
|
1484
|
-
"
|
|
1485
|
-
"
|
|
1486
|
-
"
|
|
1487
|
-
"
|
|
1488
|
-
"
|
|
1489
|
-
"
|
|
1472
|
+
"root": "_root_1j4ne_2"
|
|
1473
|
+
};
|
|
1474
|
+
|
|
1475
|
+
// src/components/Select/style.module.scss
|
|
1476
|
+
var style_module_default14 = {
|
|
1477
|
+
"root": "_root_1m2x2_3",
|
|
1478
|
+
"label": "_label_1m2x2_35",
|
|
1479
|
+
"requiredMark": "_requiredMark_1m2x2_40",
|
|
1480
|
+
"srOnly": "_srOnly_1m2x2_45",
|
|
1481
|
+
"trigger": "_trigger_1m2x2_58",
|
|
1482
|
+
"icon": "_icon_1m2x2_94",
|
|
1483
|
+
"triggerButton": "_triggerButton_1m2x2_159",
|
|
1484
|
+
"errorMessage": "_errorMessage_1m2x2_203",
|
|
1485
|
+
"errorText": "_errorText_1m2x2_211",
|
|
1486
|
+
"content": "_content_1m2x2_220",
|
|
1487
|
+
"fadeScaleIn": "_fadeScaleIn_1m2x2_1",
|
|
1488
|
+
"viewport": "_viewport_1m2x2_251",
|
|
1489
|
+
"selectItem": "_selectItem_1m2x2_283",
|
|
1490
|
+
"primitiveItem": "_primitiveItem_1m2x2_336",
|
|
1491
|
+
"itemLabel": "_itemLabel_1m2x2_341",
|
|
1492
|
+
"itemIndicator": "_itemIndicator_1m2x2_346",
|
|
1493
|
+
"trailingSlot": "_trailingSlot_1m2x2_354",
|
|
1494
|
+
"group": "_group_1m2x2_367",
|
|
1495
|
+
"groupLabel": "_groupLabel_1m2x2_382"
|
|
1490
1496
|
};
|
|
1491
1497
|
|
|
1492
1498
|
// src/components/Select/index.tsx
|
|
@@ -1529,7 +1535,7 @@ var SelectRoot = forwardRef14(
|
|
|
1529
1535
|
return /* @__PURE__ */ jsx18(SelectInternalContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs8(
|
|
1530
1536
|
"div",
|
|
1531
1537
|
{
|
|
1532
|
-
className: clsx14(
|
|
1538
|
+
className: clsx14(style_module_default14.root, className),
|
|
1533
1539
|
style: rootStyle,
|
|
1534
1540
|
"data-size": resolvedSize,
|
|
1535
1541
|
"data-trigger-type": triggerType,
|
|
@@ -1543,12 +1549,12 @@ var SelectRoot = forwardRef14(
|
|
|
1543
1549
|
type: "normal",
|
|
1544
1550
|
weight: "regular",
|
|
1545
1551
|
color: labelColor,
|
|
1546
|
-
className:
|
|
1552
|
+
className: style_module_default14.label,
|
|
1547
1553
|
children: [
|
|
1548
1554
|
label,
|
|
1549
1555
|
required && /* @__PURE__ */ jsxs8(Fragment7, { children: [
|
|
1550
|
-
/* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className:
|
|
1551
|
-
/* @__PURE__ */ jsx18("span", { className:
|
|
1556
|
+
/* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className: style_module_default14.requiredMark, children: "*" }),
|
|
1557
|
+
/* @__PURE__ */ jsx18("span", { className: style_module_default14.srOnly, children: " (\uD544\uC218)" })
|
|
1552
1558
|
] })
|
|
1553
1559
|
]
|
|
1554
1560
|
}
|
|
@@ -1573,8 +1579,8 @@ var SelectRoot = forwardRef14(
|
|
|
1573
1579
|
level: "tertiary",
|
|
1574
1580
|
size: resolvedSize,
|
|
1575
1581
|
width: "full",
|
|
1576
|
-
rightIcon: { icon:
|
|
1577
|
-
className:
|
|
1582
|
+
rightIcon: { icon: IconArrowChevronDown },
|
|
1583
|
+
className: style_module_default14.triggerButton,
|
|
1578
1584
|
children: triggerContent !== void 0 ? (
|
|
1579
1585
|
/* triggerContent 제공 시 RadixSelect.Value 완전 우회 — Radix의 hasChildren 경로는
|
|
1580
1586
|
useLayoutEffect → SelectImpl setState → context broadcast로 전체 트리 reconciliation을
|
|
@@ -1598,7 +1604,7 @@ var SelectRoot = forwardRef14(
|
|
|
1598
1604
|
"aria-labelledby": showLabel ? labelId : void 0,
|
|
1599
1605
|
"aria-describedby": showErrorMessage ? errorId : void 0,
|
|
1600
1606
|
"aria-invalid": hasError || void 0,
|
|
1601
|
-
className:
|
|
1607
|
+
className: style_module_default14.trigger,
|
|
1602
1608
|
"data-size": resolvedSize,
|
|
1603
1609
|
"data-trigger-type": triggerType,
|
|
1604
1610
|
children: [
|
|
@@ -1608,14 +1614,14 @@ var SelectRoot = forwardRef14(
|
|
|
1608
1614
|
유발. consumer가 controlled value 기반으로 직접 렌더하므로 우회해도 무방. */
|
|
1609
1615
|
triggerContent
|
|
1610
1616
|
) : /* @__PURE__ */ jsx18(RadixSelect.Value, { placeholder }),
|
|
1611
|
-
/* @__PURE__ */ jsx18(RadixSelect.Icon, { className:
|
|
1617
|
+
/* @__PURE__ */ jsx18(RadixSelect.Icon, { className: style_module_default14.icon, children: /* @__PURE__ */ jsx18(IconArrowChevronDown, { size: "s" }) })
|
|
1612
1618
|
]
|
|
1613
1619
|
}
|
|
1614
1620
|
)
|
|
1615
1621
|
),
|
|
1616
1622
|
children
|
|
1617
1623
|
] }),
|
|
1618
|
-
showErrorMessage && /* @__PURE__ */ jsxs8("span", { id: errorId, "aria-live": "polite", "aria-atomic": "true", className:
|
|
1624
|
+
showErrorMessage && /* @__PURE__ */ jsxs8("span", { id: errorId, "aria-live": "polite", "aria-atomic": "true", className: style_module_default14.errorMessage, children: [
|
|
1619
1625
|
/* @__PURE__ */ jsx18(IconInfo, { size: "xs", type: "function-label-negative" }),
|
|
1620
1626
|
/* @__PURE__ */ jsx18(
|
|
1621
1627
|
Caption,
|
|
@@ -1625,7 +1631,7 @@ var SelectRoot = forwardRef14(
|
|
|
1625
1631
|
type: "normal",
|
|
1626
1632
|
weight: "regular",
|
|
1627
1633
|
color: "function-label-negative",
|
|
1628
|
-
className:
|
|
1634
|
+
className: style_module_default14.errorText,
|
|
1629
1635
|
children: error
|
|
1630
1636
|
}
|
|
1631
1637
|
)
|
|
@@ -1658,10 +1664,10 @@ var SelectContent = forwardRef14(
|
|
|
1658
1664
|
ref,
|
|
1659
1665
|
position,
|
|
1660
1666
|
sideOffset,
|
|
1661
|
-
className: clsx14(
|
|
1667
|
+
className: clsx14(style_module_default14.content, className),
|
|
1662
1668
|
"data-trigger-type": triggerType,
|
|
1663
1669
|
style: contentStyle,
|
|
1664
|
-
children: /* @__PURE__ */ jsx18(RadixSelect.Viewport, { className:
|
|
1670
|
+
children: /* @__PURE__ */ jsx18(RadixSelect.Viewport, { className: style_module_default14.viewport, children })
|
|
1665
1671
|
}
|
|
1666
1672
|
) });
|
|
1667
1673
|
}
|
|
@@ -1707,7 +1713,7 @@ var SelectItem = forwardRef14(
|
|
|
1707
1713
|
value,
|
|
1708
1714
|
textValue: computedTextValue,
|
|
1709
1715
|
disabled,
|
|
1710
|
-
className: clsx14(
|
|
1716
|
+
className: clsx14(style_module_default14.selectItem, className),
|
|
1711
1717
|
"data-danger": danger ? "" : void 0,
|
|
1712
1718
|
children: [
|
|
1713
1719
|
leadingSlot != null && /* @__PURE__ */ jsx18("div", { "data-zone": "leading", children: leadingSlot }),
|
|
@@ -1722,7 +1728,7 @@ var SelectItem = forwardRef14(
|
|
|
1722
1728
|
type: "normal",
|
|
1723
1729
|
weight: "regular",
|
|
1724
1730
|
color: getItemLabelColor(disabled, danger),
|
|
1725
|
-
className: clsx14(style_module_default12.label,
|
|
1731
|
+
className: clsx14(style_module_default12.label, style_module_default14.itemLabel),
|
|
1726
1732
|
children: label
|
|
1727
1733
|
}
|
|
1728
1734
|
),
|
|
@@ -1740,8 +1746,8 @@ var SelectItem = forwardRef14(
|
|
|
1740
1746
|
}
|
|
1741
1747
|
)
|
|
1742
1748
|
] }),
|
|
1743
|
-
trailingSlot != null && /* @__PURE__ */ jsx18("div", { "data-zone": "trailing", className:
|
|
1744
|
-
/* @__PURE__ */ jsx18(RadixSelect.ItemIndicator, { "data-zone": "trailing", className:
|
|
1749
|
+
trailingSlot != null && /* @__PURE__ */ jsx18("div", { "data-zone": "trailing", className: style_module_default14.trailingSlot, children: trailingSlot }),
|
|
1750
|
+
/* @__PURE__ */ jsx18(RadixSelect.ItemIndicator, { "data-zone": "trailing", className: style_module_default14.itemIndicator, children: /* @__PURE__ */ jsx18(IconCheckMark2, { size: "xs", type: "brand-label-primary" }) })
|
|
1745
1751
|
]
|
|
1746
1752
|
}
|
|
1747
1753
|
);
|
|
@@ -1749,7 +1755,7 @@ var SelectItem = forwardRef14(
|
|
|
1749
1755
|
);
|
|
1750
1756
|
SelectItem.displayName = "Select.Item";
|
|
1751
1757
|
var SelectGroup = forwardRef14(
|
|
1752
|
-
({ label, children, className, ...rest }, ref) => /* @__PURE__ */ jsxs8(RadixSelect.Group, { ...rest, ref, className: clsx14(
|
|
1758
|
+
({ label, children, className, ...rest }, ref) => /* @__PURE__ */ jsxs8(RadixSelect.Group, { ...rest, ref, className: clsx14(style_module_default14.group, className), children: [
|
|
1753
1759
|
label != null && /* @__PURE__ */ jsx18(RadixSelect.Label, { asChild: true, children: /* @__PURE__ */ jsx18(
|
|
1754
1760
|
Caption,
|
|
1755
1761
|
{
|
|
@@ -1758,7 +1764,7 @@ var SelectGroup = forwardRef14(
|
|
|
1758
1764
|
type: "normal",
|
|
1759
1765
|
weight: "regular",
|
|
1760
1766
|
color: "neutral-label-secondary",
|
|
1761
|
-
className:
|
|
1767
|
+
className: style_module_default14.groupLabel,
|
|
1762
1768
|
children: label
|
|
1763
1769
|
}
|
|
1764
1770
|
) }),
|
|
@@ -1766,6 +1772,23 @@ var SelectGroup = forwardRef14(
|
|
|
1766
1772
|
] })
|
|
1767
1773
|
);
|
|
1768
1774
|
SelectGroup.displayName = "Select.Group";
|
|
1775
|
+
var SelectPrimitiveItem = forwardRef14(
|
|
1776
|
+
({ value, textValue, children, className, ...rest }, ref) => /* @__PURE__ */ jsxs8(
|
|
1777
|
+
RadixSelect.Item,
|
|
1778
|
+
{
|
|
1779
|
+
...rest,
|
|
1780
|
+
ref,
|
|
1781
|
+
value,
|
|
1782
|
+
textValue,
|
|
1783
|
+
className: clsx14(style_module_default13.root, style_module_default14.primitiveItem, className),
|
|
1784
|
+
children: [
|
|
1785
|
+
/* @__PURE__ */ jsx18(RadixSelect.ItemText, { children: textValue }),
|
|
1786
|
+
children
|
|
1787
|
+
]
|
|
1788
|
+
}
|
|
1789
|
+
)
|
|
1790
|
+
);
|
|
1791
|
+
SelectPrimitiveItem.displayName = "Select.PrimitiveItem";
|
|
1769
1792
|
var SelectTrigger = forwardRef14((props, ref) => {
|
|
1770
1793
|
const {
|
|
1771
1794
|
label,
|
|
@@ -1810,7 +1833,7 @@ var SelectTrigger = forwardRef14((props, ref) => {
|
|
|
1810
1833
|
return /* @__PURE__ */ jsxs8(
|
|
1811
1834
|
"div",
|
|
1812
1835
|
{
|
|
1813
|
-
className: clsx14(
|
|
1836
|
+
className: clsx14(style_module_default14.root, className),
|
|
1814
1837
|
style: rootStyle,
|
|
1815
1838
|
"data-size": resolvedSize,
|
|
1816
1839
|
"data-trigger-type": triggerType,
|
|
@@ -1824,12 +1847,12 @@ var SelectTrigger = forwardRef14((props, ref) => {
|
|
|
1824
1847
|
type: "normal",
|
|
1825
1848
|
weight: "regular",
|
|
1826
1849
|
color: labelColor,
|
|
1827
|
-
className:
|
|
1850
|
+
className: style_module_default14.label,
|
|
1828
1851
|
children: [
|
|
1829
1852
|
label,
|
|
1830
1853
|
required && /* @__PURE__ */ jsxs8(Fragment7, { children: [
|
|
1831
|
-
/* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className:
|
|
1832
|
-
/* @__PURE__ */ jsx18("span", { className:
|
|
1854
|
+
/* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className: style_module_default14.requiredMark, children: "*" }),
|
|
1855
|
+
/* @__PURE__ */ jsx18("span", { className: style_module_default14.srOnly, children: " (\uD544\uC218)" })
|
|
1833
1856
|
] })
|
|
1834
1857
|
]
|
|
1835
1858
|
}
|
|
@@ -1841,8 +1864,8 @@ var SelectTrigger = forwardRef14((props, ref) => {
|
|
|
1841
1864
|
level: "tertiary",
|
|
1842
1865
|
size: resolvedSize,
|
|
1843
1866
|
width: "full",
|
|
1844
|
-
rightIcon: { icon:
|
|
1845
|
-
className:
|
|
1867
|
+
rightIcon: { icon: IconArrowChevronDown },
|
|
1868
|
+
className: style_module_default14.triggerButton,
|
|
1846
1869
|
disabled,
|
|
1847
1870
|
onClick,
|
|
1848
1871
|
type: "button",
|
|
@@ -1856,7 +1879,7 @@ var SelectTrigger = forwardRef14((props, ref) => {
|
|
|
1856
1879
|
ref,
|
|
1857
1880
|
type: "button",
|
|
1858
1881
|
id,
|
|
1859
|
-
className:
|
|
1882
|
+
className: style_module_default14.trigger,
|
|
1860
1883
|
"data-size": resolvedSize,
|
|
1861
1884
|
"data-trigger-type": triggerType,
|
|
1862
1885
|
"data-placeholder": showingPlaceholder ? "" : void 0,
|
|
@@ -1865,11 +1888,11 @@ var SelectTrigger = forwardRef14((props, ref) => {
|
|
|
1865
1888
|
...commonAria,
|
|
1866
1889
|
children: [
|
|
1867
1890
|
display,
|
|
1868
|
-
/* @__PURE__ */ jsx18("span", { className:
|
|
1891
|
+
/* @__PURE__ */ jsx18("span", { className: style_module_default14.icon, "aria-hidden": "true", children: /* @__PURE__ */ jsx18(IconArrowChevronDown, { size: "s" }) })
|
|
1869
1892
|
]
|
|
1870
1893
|
}
|
|
1871
1894
|
),
|
|
1872
|
-
showErrorMessage && /* @__PURE__ */ jsxs8("span", { id: errorId, "aria-live": "polite", "aria-atomic": "true", className:
|
|
1895
|
+
showErrorMessage && /* @__PURE__ */ jsxs8("span", { id: errorId, "aria-live": "polite", "aria-atomic": "true", className: style_module_default14.errorMessage, children: [
|
|
1873
1896
|
/* @__PURE__ */ jsx18(IconInfo, { size: "xs", type: "function-label-negative" }),
|
|
1874
1897
|
/* @__PURE__ */ jsx18(
|
|
1875
1898
|
Caption,
|
|
@@ -1879,7 +1902,7 @@ var SelectTrigger = forwardRef14((props, ref) => {
|
|
|
1879
1902
|
type: "normal",
|
|
1880
1903
|
weight: "regular",
|
|
1881
1904
|
color: "function-label-negative",
|
|
1882
|
-
className:
|
|
1905
|
+
className: style_module_default14.errorText,
|
|
1883
1906
|
children: error
|
|
1884
1907
|
}
|
|
1885
1908
|
)
|
|
@@ -1893,6 +1916,7 @@ var Select = Object.assign(SelectRoot, {
|
|
|
1893
1916
|
Trigger: SelectTrigger,
|
|
1894
1917
|
Content: SelectContent,
|
|
1895
1918
|
Item: SelectItem,
|
|
1919
|
+
PrimitiveItem: SelectPrimitiveItem,
|
|
1896
1920
|
Group: SelectGroup
|
|
1897
1921
|
});
|
|
1898
1922
|
|
|
@@ -1931,13 +1955,6 @@ import clsx16 from "clsx";
|
|
|
1931
1955
|
import { forwardRef as forwardRef15 } from "react";
|
|
1932
1956
|
import { composeEventHandlers } from "@radix-ui/primitive";
|
|
1933
1957
|
import clsx15 from "clsx";
|
|
1934
|
-
|
|
1935
|
-
// src/components/ListItem/primitive/style.module.scss
|
|
1936
|
-
var style_module_default14 = {
|
|
1937
|
-
"root": "_root_1y0m7_2"
|
|
1938
|
-
};
|
|
1939
|
-
|
|
1940
|
-
// src/components/ListItem/primitive/index.tsx
|
|
1941
1958
|
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1942
1959
|
var PrimitiveListItem = forwardRef15(
|
|
1943
1960
|
({ value, leadingSlot, children, trailingSlot, disabled, onClick, role, className, ...rest }, ref) => {
|
|
@@ -1969,7 +1986,7 @@ var PrimitiveListItem = forwardRef15(
|
|
|
1969
1986
|
...rest,
|
|
1970
1987
|
ref,
|
|
1971
1988
|
role,
|
|
1972
|
-
className: clsx15(
|
|
1989
|
+
className: clsx15(style_module_default13.root, className),
|
|
1973
1990
|
tabIndex: rest.tabIndex ?? -1,
|
|
1974
1991
|
"data-state": isSelected ? "checked" : "unchecked",
|
|
1975
1992
|
"data-disabled": disabled ? "" : void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liner-fe/prism",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"dependencies": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"react-dom": "^19.1.0",
|
|
21
21
|
"jotai": "2.18.0",
|
|
22
22
|
"vaul": "1.1.2",
|
|
23
|
-
"@liner-fe/design-token": "^3.0.5",
|
|
24
23
|
"@liner-fe/design-token-primitive": "^0.2.50",
|
|
25
24
|
"@liner-fe/icon": "^2.0.23",
|
|
26
|
-
"@liner-fe/illust": "^1.0.1"
|
|
25
|
+
"@liner-fe/illust": "^1.0.1",
|
|
26
|
+
"@liner-fe/design-token": "^3.0.5"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@chromatic-com/storybook": "^1.5.0",
|