@liner-fe/prism 3.5.3 → 3.6.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/lib/index.css +119 -115
- package/lib/index.d.ts +244 -3
- package/lib/index.js +352 -56
- package/package.json +2 -2
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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SystemKeys, TypographyCaptionPrefix, TypographyParagraphPrefix, TypographyHeadingPrefix, TypographyTitlePrefix, TypographyDisplayPrefix, BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ButtonHTMLAttributes, HTMLAttributes, JSX, ReactNode, ComponentPropsWithoutRef, InputHTMLAttributes, MouseEventHandler, ReactElement } from 'react';
|
|
3
|
+
import react__default, { ButtonHTMLAttributes, HTMLAttributes, JSX, ReactNode, ComponentPropsWithoutRef, InputHTMLAttributes, MouseEventHandler, ReactElement, CSSProperties, ElementType } from 'react';
|
|
4
4
|
import * as cva from 'cva';
|
|
5
5
|
import { VariantProps } from 'cva';
|
|
6
6
|
import { IconProps, IconComponentType } from '@liner-fe/icon';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import * as _artsy_fresnel_dist_Media from '@artsy/fresnel/dist/Media';
|
|
9
|
-
import { breakpointOrigin } from '@liner-fe/design-token';
|
|
9
|
+
import { breakpointOrigin, vars } from '@liner-fe/design-token';
|
|
10
10
|
import { Popover as Popover$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, RadioGroup, Select as Select$1, Label as Label$1, Avatar as Avatar$1, AlertDialog as AlertDialog$1, Dialog as Dialog$1 } from 'radix-ui';
|
|
11
11
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
12
|
import { PopoverProps, PopoverPortalProps } from '@radix-ui/react-popover';
|
|
@@ -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,220 @@ interface RatioProps extends react.HTMLAttributes<HTMLDivElement> {
|
|
|
1011
1036
|
*/
|
|
1012
1037
|
declare const Ratio: react.ForwardRefExoticComponent<RatioProps & react.RefAttributes<HTMLDivElement>>;
|
|
1013
1038
|
|
|
1014
|
-
|
|
1039
|
+
/** padding prop 스케일. `component-*`(컴포넌트 내부 여백) / `section-*`(섹션 여백) 계열. */
|
|
1040
|
+
type PaddingToken = keyof typeof vars.padding;
|
|
1041
|
+
/** gap prop 스케일. `positive-*` 계열(요소 사이 간격). */
|
|
1042
|
+
type GapToken = keyof typeof vars.gap;
|
|
1043
|
+
/** margin prop 스케일. 원시 size 스케일(`minus*`로 음수 마진 지원). */
|
|
1044
|
+
type MarginToken = keyof typeof vars.size;
|
|
1045
|
+
/** Section 세로 여백 스케일 — padding 토큰 중 `section-*` 계열만. */
|
|
1046
|
+
type SectionPaddingToken = Extract<PaddingToken, `section-${string}`>;
|
|
1047
|
+
type BoxDisplay = 'none' | 'inline' | 'inline-block' | 'block' | 'flex' | 'inline-flex' | 'grid' | 'inline-grid' | 'contents';
|
|
1048
|
+
interface PaddingProps {
|
|
1049
|
+
/** 전체 padding */
|
|
1050
|
+
p?: PaddingToken;
|
|
1051
|
+
/** 좌우 padding (padding-inline) */
|
|
1052
|
+
px?: PaddingToken;
|
|
1053
|
+
/** 상하 padding (padding-block) */
|
|
1054
|
+
py?: PaddingToken;
|
|
1055
|
+
/** padding-top */
|
|
1056
|
+
pt?: PaddingToken;
|
|
1057
|
+
/** padding-right */
|
|
1058
|
+
pr?: PaddingToken;
|
|
1059
|
+
/** padding-bottom */
|
|
1060
|
+
pb?: PaddingToken;
|
|
1061
|
+
/** padding-left */
|
|
1062
|
+
pl?: PaddingToken;
|
|
1063
|
+
}
|
|
1064
|
+
interface MarginProps {
|
|
1065
|
+
/** 전체 margin */
|
|
1066
|
+
m?: MarginToken;
|
|
1067
|
+
/** 좌우 margin (margin-inline) */
|
|
1068
|
+
mx?: MarginToken;
|
|
1069
|
+
/** 상하 margin (margin-block) */
|
|
1070
|
+
my?: MarginToken;
|
|
1071
|
+
/** margin-top */
|
|
1072
|
+
mt?: MarginToken;
|
|
1073
|
+
/** margin-right */
|
|
1074
|
+
mr?: MarginToken;
|
|
1075
|
+
/** margin-bottom */
|
|
1076
|
+
mb?: MarginToken;
|
|
1077
|
+
/** margin-left */
|
|
1078
|
+
ml?: MarginToken;
|
|
1079
|
+
}
|
|
1080
|
+
interface SizingProps {
|
|
1081
|
+
/** raw CSS 값. 예: `'100%'`, `'320px'` */
|
|
1082
|
+
width?: CSSProperties['width'];
|
|
1083
|
+
height?: CSSProperties['height'];
|
|
1084
|
+
minWidth?: CSSProperties['minWidth'];
|
|
1085
|
+
maxWidth?: CSSProperties['maxWidth'];
|
|
1086
|
+
minHeight?: CSSProperties['minHeight'];
|
|
1087
|
+
maxHeight?: CSSProperties['maxHeight'];
|
|
1088
|
+
}
|
|
1089
|
+
interface PositionProps {
|
|
1090
|
+
position?: CSSProperties['position'];
|
|
1091
|
+
inset?: CSSProperties['inset'];
|
|
1092
|
+
overflow?: CSSProperties['overflow'];
|
|
1093
|
+
}
|
|
1094
|
+
interface FlexItemProps {
|
|
1095
|
+
flexBasis?: CSSProperties['flexBasis'];
|
|
1096
|
+
flexGrow?: CSSProperties['flexGrow'];
|
|
1097
|
+
flexShrink?: CSSProperties['flexShrink'];
|
|
1098
|
+
}
|
|
1099
|
+
interface GridItemProps {
|
|
1100
|
+
gridColumn?: CSSProperties['gridColumn'];
|
|
1101
|
+
gridRow?: CSSProperties['gridRow'];
|
|
1102
|
+
gridArea?: CSSProperties['gridArea'];
|
|
1103
|
+
}
|
|
1104
|
+
/** Box가 소비하는 모든 레이아웃 prop의 합집합. Flex/Grid/Container/Section이 확장한다. */
|
|
1105
|
+
interface LayoutProps extends PaddingProps, MarginProps, SizingProps, PositionProps, FlexItemProps, GridItemProps {
|
|
1106
|
+
display?: BoxDisplay;
|
|
1107
|
+
}
|
|
1108
|
+
interface BoxProps extends LayoutProps, Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
1109
|
+
/** 렌더할 엘리먼트. 기본 `div`. */
|
|
1110
|
+
as?: ElementType;
|
|
1111
|
+
/** true면 자식 엘리먼트에 props를 병합(radix Slot). `as`보다 우선. */
|
|
1112
|
+
asChild?: boolean;
|
|
1113
|
+
}
|
|
1114
|
+
declare const gapTok: (k?: GapToken) => string | undefined;
|
|
1115
|
+
/**
|
|
1116
|
+
* Box 레이아웃 prop들을 inline style로 해석한다.
|
|
1117
|
+
* 우선순위: 축약(p/px/py, m/mx/my) < 개별 변(pt/pr/pb/pl, mt/mr/mb/ml).
|
|
1118
|
+
*/
|
|
1119
|
+
declare function resolveLayoutStyle(props: LayoutProps): CSSProperties;
|
|
1120
|
+
/**
|
|
1121
|
+
* LayoutProps를 소비하고 나머지(HTML 속성)만 남긴다.
|
|
1122
|
+
* Flex/Grid/Container/Section이 Box에 위임할 때 자기 prop만 뽑고 나머지를 넘기기 위해 쓴다.
|
|
1123
|
+
*/
|
|
1124
|
+
declare function splitLayoutProps<T extends LayoutProps>(props: T): {
|
|
1125
|
+
layout: LayoutProps;
|
|
1126
|
+
rest: Omit<T, keyof LayoutProps>;
|
|
1127
|
+
};
|
|
1128
|
+
/** align/justify 문자열을 flexbox CSS 값으로 매핑. Flex에서 재사용. */
|
|
1129
|
+
declare const FLEX_ALIGN: {
|
|
1130
|
+
readonly start: "flex-start";
|
|
1131
|
+
readonly center: "center";
|
|
1132
|
+
readonly end: "flex-end";
|
|
1133
|
+
readonly baseline: "baseline";
|
|
1134
|
+
readonly stretch: "stretch";
|
|
1135
|
+
};
|
|
1136
|
+
declare const FLEX_JUSTIFY: {
|
|
1137
|
+
readonly start: "flex-start";
|
|
1138
|
+
readonly center: "center";
|
|
1139
|
+
readonly end: "flex-end";
|
|
1140
|
+
readonly between: "space-between";
|
|
1141
|
+
readonly around: "space-around";
|
|
1142
|
+
readonly evenly: "space-evenly";
|
|
1143
|
+
};
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* 토큰 세이프한 spacing(padding/margin)·display·sizing prop을 붙인 범용 레이아웃 블록.
|
|
1147
|
+
* 너비 제약이나 정렬 의견이 없다(그건 Container/Flex의 역할). 기본 `div`로 렌더하며
|
|
1148
|
+
* `as`로 시맨틱 엘리먼트, `asChild`로 자식에 병합할 수 있다.
|
|
1149
|
+
*
|
|
1150
|
+
* ```tsx
|
|
1151
|
+
* <Box p="component-400" m="8" maxWidth="640px">…</Box>
|
|
1152
|
+
* ```
|
|
1153
|
+
*/
|
|
1154
|
+
declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLElement>>;
|
|
1155
|
+
|
|
1156
|
+
type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
1157
|
+
type FlexAlign = keyof typeof FLEX_ALIGN;
|
|
1158
|
+
type FlexJustify = keyof typeof FLEX_JUSTIFY;
|
|
1159
|
+
type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
1160
|
+
interface FlexProps extends BoxProps {
|
|
1161
|
+
/** true면 `inline-flex`로 렌더. */
|
|
1162
|
+
inline?: boolean;
|
|
1163
|
+
/** flex-direction. 기본 `row`. */
|
|
1164
|
+
direction?: FlexDirection;
|
|
1165
|
+
/** align-items. `start | center | end | baseline | stretch`. */
|
|
1166
|
+
align?: FlexAlign;
|
|
1167
|
+
/** justify-content. `start | center | end | between | around | evenly`. */
|
|
1168
|
+
justify?: FlexJustify;
|
|
1169
|
+
/** flex-wrap. 기본 `nowrap`. */
|
|
1170
|
+
wrap?: FlexWrap;
|
|
1171
|
+
/** 요소 사이 간격(gap 토큰). */
|
|
1172
|
+
gap?: GapToken;
|
|
1173
|
+
/** 가로 간격(column-gap). `gap`보다 우선. */
|
|
1174
|
+
gapX?: GapToken;
|
|
1175
|
+
/** 세로 간격(row-gap). `gap`보다 우선. */
|
|
1176
|
+
gapY?: GapToken;
|
|
1177
|
+
}
|
|
1178
|
+
/**
|
|
1179
|
+
* flexbox 컨테이너. Box 위에 flex 배치 prop(direction/align/justify/wrap/gap)을 얹는다.
|
|
1180
|
+
* 모든 Box prop(padding/margin/sizing/asChild 등)을 그대로 받는다.
|
|
1181
|
+
*
|
|
1182
|
+
* ```tsx
|
|
1183
|
+
* <Flex direction="column" gap="positive-300" align="center" p="component-400">…</Flex>
|
|
1184
|
+
* ```
|
|
1185
|
+
*/
|
|
1186
|
+
declare const Flex: react.ForwardRefExoticComponent<FlexProps & react.RefAttributes<HTMLElement>>;
|
|
1187
|
+
|
|
1188
|
+
type GridAlign = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
1189
|
+
type GridJustify = 'start' | 'center' | 'end' | 'between';
|
|
1190
|
+
type GridFlow = 'row' | 'column' | 'dense' | 'row-dense' | 'column-dense';
|
|
1191
|
+
interface GridProps extends BoxProps {
|
|
1192
|
+
/** true면 `inline-grid`로 렌더. */
|
|
1193
|
+
inline?: boolean;
|
|
1194
|
+
/** grid-template-columns. 숫자 N → `repeat(N, minmax(0, 1fr))`, 문자열 → 그대로. */
|
|
1195
|
+
columns?: number | string;
|
|
1196
|
+
/** grid-template-rows. 숫자 N → `repeat(N, minmax(0, 1fr))`, 문자열 → 그대로. */
|
|
1197
|
+
rows?: number | string;
|
|
1198
|
+
/** grid-auto-flow. */
|
|
1199
|
+
flow?: GridFlow;
|
|
1200
|
+
/** align-items. `start | center | end | baseline | stretch`. */
|
|
1201
|
+
align?: GridAlign;
|
|
1202
|
+
/** justify-content. `start | center | end | between`. */
|
|
1203
|
+
justify?: GridJustify;
|
|
1204
|
+
/** 셀 사이 간격(gap 토큰). */
|
|
1205
|
+
gap?: GapToken;
|
|
1206
|
+
/** 가로 간격(column-gap). `gap`보다 우선. */
|
|
1207
|
+
gapX?: GapToken;
|
|
1208
|
+
/** 세로 간격(row-gap). `gap`보다 우선. */
|
|
1209
|
+
gapY?: GapToken;
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* CSS grid 컨테이너. Box 위에 grid 배치 prop(columns/rows/flow/align/justify/gap)을 얹는다.
|
|
1213
|
+
*
|
|
1214
|
+
* ```tsx
|
|
1215
|
+
* <Grid columns={3} gap="positive-200">…</Grid>
|
|
1216
|
+
* <Grid columns="1fr 2fr" rows="auto 1fr">…</Grid>
|
|
1217
|
+
* ```
|
|
1218
|
+
*/
|
|
1219
|
+
declare const Grid: react.ForwardRefExoticComponent<GridProps & react.RefAttributes<HTMLElement>>;
|
|
1220
|
+
|
|
1221
|
+
/** Container 최대 너비 프리셋 — breakpoint 토큰 값을 재사용한다. */
|
|
1222
|
+
type ContainerSize = 's' | 'm' | 'l' | 'xl';
|
|
1223
|
+
interface ContainerProps extends BoxProps {
|
|
1224
|
+
/** 최대 너비 프리셋. 기본 `l`(1366px). `maxWidth`를 직접 주면 그 값이 우선한다. */
|
|
1225
|
+
size?: ContainerSize;
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* 콘텐츠를 읽기 좋은 최대 너비로 제한하고 가로 중앙 정렬하는 페이지 레벨 래퍼다.
|
|
1229
|
+
* 와이드 스크린에서 본문이 화면 끝까지 늘어나지 않게 감쌀 때 쓴다.
|
|
1230
|
+
* (Box와 달리 `max-width` + 중앙정렬 의견을 가진 프리셋이다.)
|
|
1231
|
+
*
|
|
1232
|
+
* ```tsx
|
|
1233
|
+
* <Container size="l" px="component-400">…</Container>
|
|
1234
|
+
* ```
|
|
1235
|
+
*/
|
|
1236
|
+
declare const Container: react.ForwardRefExoticComponent<ContainerProps & react.RefAttributes<HTMLElement>>;
|
|
1237
|
+
|
|
1238
|
+
interface SectionProps extends BoxProps {
|
|
1239
|
+
/**
|
|
1240
|
+
* 세로 여백 프리셋(`section-*` 토큰). 기본 `section-400`.
|
|
1241
|
+
* `py`를 직접 주면 그 값이 우선한다.
|
|
1242
|
+
*/
|
|
1243
|
+
size?: SectionPaddingToken;
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* 페이지를 세로로 나누는 구획이다. `section-*` 여백 스케일로 위아래 리듬을 준다.
|
|
1247
|
+
* 기본 시맨틱 엘리먼트는 `<section>`이며 `as`로 바꿀 수 있다.
|
|
1248
|
+
*
|
|
1249
|
+
* ```tsx
|
|
1250
|
+
* <Section size="section-500">…</Section>
|
|
1251
|
+
* ```
|
|
1252
|
+
*/
|
|
1253
|
+
declare const Section: react.ForwardRefExoticComponent<SectionProps & react.RefAttributes<HTMLElement>>;
|
|
1254
|
+
|
|
1255
|
+
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, Box, type BoxDisplay, type BoxProps, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, type CompactCoachMarkContentProps, Container, type ContainerProps, type ContainerSize, DEFAULT_LEVEL_OPTIONS, DEFAULT_SIZE_OPTIONS, DefaultButton, type DefaultButtonProps, type DefaultLevelType, Dialog, type DialogAction, type DialogConfirmAction, type DialogContentProps, Display, FLEX_ALIGN, FLEX_JUSTIFY, Flex, type FlexAlign, type FlexDirection, type FlexItemProps, type FlexJustify, type FlexProps, type FlexWrap, type GapToken, Grid, type GridAlign, type GridFlow, type GridItemProps, type GridJustify, type GridProps, 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, type LayoutProps, List, type ListGroupProps, ListItem, type ListItemProps, type ListProps, Loading, type LoadingLevelType, Logo, type LogoCategory, type LogoName, type LogoProps, type MarginProps, type MarginToken, Media, MediaContextProvider, type PaddingProps, type PaddingToken, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, type PositionProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, PrimitiveListItem, type PrimitiveListItemProps, type PromiseToastOptions, RATIO, Radio, Ratio, type RatioProps, Section, type SectionPaddingToken, type SectionProps, Select, type SelectButtonSize, type SelectContentProps, type SelectFieldSize, type SelectGroupProps, type SelectItemProps, type SelectPrimitiveItemProps, type SelectProps, type SelectTriggerProps, type SelectTriggerType, type SelectWidthOptions, type SizingProps, 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, gapTok as resolveGapToken, resolveLayoutStyle, rootMediaStyle, splitLayoutProps, 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,
|
|
@@ -3614,21 +3631,296 @@ var Ratio = React5.forwardRef(
|
|
|
3614
3631
|
({ ratio = 1, children, ...props }, ref) => /* @__PURE__ */ jsx39(AspectRatioPrimitive.Root, { ref, ratio, ...props, children })
|
|
3615
3632
|
);
|
|
3616
3633
|
Ratio.displayName = "Ratio";
|
|
3634
|
+
|
|
3635
|
+
// src/components/Box/index.tsx
|
|
3636
|
+
import { forwardRef as forwardRef26 } from "react";
|
|
3637
|
+
import { Slot as SlotPrimitive2 } from "radix-ui";
|
|
3638
|
+
import { vars as vars2 } from "@liner-fe/design-token";
|
|
3639
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3640
|
+
var { Slot: Slot2 } = SlotPrimitive2;
|
|
3641
|
+
var padTok = /* @__PURE__ */ __name((k) => k ? vars2.padding[k] : void 0, "padTok");
|
|
3642
|
+
var gapTok = /* @__PURE__ */ __name((k) => k ? vars2.gap[k] : void 0, "gapTok");
|
|
3643
|
+
var marginTok = /* @__PURE__ */ __name((k) => k ? vars2.size[k] : void 0, "marginTok");
|
|
3644
|
+
function resolveLayoutStyle(props) {
|
|
3645
|
+
const {
|
|
3646
|
+
p,
|
|
3647
|
+
px,
|
|
3648
|
+
py,
|
|
3649
|
+
pt,
|
|
3650
|
+
pr,
|
|
3651
|
+
pb,
|
|
3652
|
+
pl,
|
|
3653
|
+
m,
|
|
3654
|
+
mx,
|
|
3655
|
+
my,
|
|
3656
|
+
mt,
|
|
3657
|
+
mr,
|
|
3658
|
+
mb,
|
|
3659
|
+
ml,
|
|
3660
|
+
display,
|
|
3661
|
+
width,
|
|
3662
|
+
height,
|
|
3663
|
+
minWidth,
|
|
3664
|
+
maxWidth,
|
|
3665
|
+
minHeight,
|
|
3666
|
+
maxHeight,
|
|
3667
|
+
position,
|
|
3668
|
+
inset,
|
|
3669
|
+
overflow,
|
|
3670
|
+
flexBasis,
|
|
3671
|
+
flexGrow,
|
|
3672
|
+
flexShrink,
|
|
3673
|
+
gridColumn,
|
|
3674
|
+
gridRow,
|
|
3675
|
+
gridArea
|
|
3676
|
+
} = props;
|
|
3677
|
+
const style = {};
|
|
3678
|
+
if (p) style.padding = padTok(p);
|
|
3679
|
+
if (px) {
|
|
3680
|
+
style.paddingLeft = padTok(px);
|
|
3681
|
+
style.paddingRight = padTok(px);
|
|
3682
|
+
}
|
|
3683
|
+
if (py) {
|
|
3684
|
+
style.paddingTop = padTok(py);
|
|
3685
|
+
style.paddingBottom = padTok(py);
|
|
3686
|
+
}
|
|
3687
|
+
if (pt) style.paddingTop = padTok(pt);
|
|
3688
|
+
if (pr) style.paddingRight = padTok(pr);
|
|
3689
|
+
if (pb) style.paddingBottom = padTok(pb);
|
|
3690
|
+
if (pl) style.paddingLeft = padTok(pl);
|
|
3691
|
+
if (m) style.margin = marginTok(m);
|
|
3692
|
+
if (mx) {
|
|
3693
|
+
style.marginLeft = marginTok(mx);
|
|
3694
|
+
style.marginRight = marginTok(mx);
|
|
3695
|
+
}
|
|
3696
|
+
if (my) {
|
|
3697
|
+
style.marginTop = marginTok(my);
|
|
3698
|
+
style.marginBottom = marginTok(my);
|
|
3699
|
+
}
|
|
3700
|
+
if (mt) style.marginTop = marginTok(mt);
|
|
3701
|
+
if (mr) style.marginRight = marginTok(mr);
|
|
3702
|
+
if (mb) style.marginBottom = marginTok(mb);
|
|
3703
|
+
if (ml) style.marginLeft = marginTok(ml);
|
|
3704
|
+
if (display) style.display = display;
|
|
3705
|
+
if (width !== void 0) style.width = width;
|
|
3706
|
+
if (height !== void 0) style.height = height;
|
|
3707
|
+
if (minWidth !== void 0) style.minWidth = minWidth;
|
|
3708
|
+
if (maxWidth !== void 0) style.maxWidth = maxWidth;
|
|
3709
|
+
if (minHeight !== void 0) style.minHeight = minHeight;
|
|
3710
|
+
if (maxHeight !== void 0) style.maxHeight = maxHeight;
|
|
3711
|
+
if (position) style.position = position;
|
|
3712
|
+
if (inset !== void 0) style.inset = inset;
|
|
3713
|
+
if (overflow) style.overflow = overflow;
|
|
3714
|
+
if (flexBasis !== void 0) style.flexBasis = flexBasis;
|
|
3715
|
+
if (flexGrow !== void 0) style.flexGrow = flexGrow;
|
|
3716
|
+
if (flexShrink !== void 0) style.flexShrink = flexShrink;
|
|
3717
|
+
if (gridColumn !== void 0) style.gridColumn = gridColumn;
|
|
3718
|
+
if (gridRow !== void 0) style.gridRow = gridRow;
|
|
3719
|
+
if (gridArea !== void 0) style.gridArea = gridArea;
|
|
3720
|
+
return style;
|
|
3721
|
+
}
|
|
3722
|
+
__name(resolveLayoutStyle, "resolveLayoutStyle");
|
|
3723
|
+
function splitLayoutProps(props) {
|
|
3724
|
+
const {
|
|
3725
|
+
p,
|
|
3726
|
+
px,
|
|
3727
|
+
py,
|
|
3728
|
+
pt,
|
|
3729
|
+
pr,
|
|
3730
|
+
pb,
|
|
3731
|
+
pl,
|
|
3732
|
+
m,
|
|
3733
|
+
mx,
|
|
3734
|
+
my,
|
|
3735
|
+
mt,
|
|
3736
|
+
mr,
|
|
3737
|
+
mb,
|
|
3738
|
+
ml,
|
|
3739
|
+
display,
|
|
3740
|
+
width,
|
|
3741
|
+
height,
|
|
3742
|
+
minWidth,
|
|
3743
|
+
maxWidth,
|
|
3744
|
+
minHeight,
|
|
3745
|
+
maxHeight,
|
|
3746
|
+
position,
|
|
3747
|
+
inset,
|
|
3748
|
+
overflow,
|
|
3749
|
+
flexBasis,
|
|
3750
|
+
flexGrow,
|
|
3751
|
+
flexShrink,
|
|
3752
|
+
gridColumn,
|
|
3753
|
+
gridRow,
|
|
3754
|
+
gridArea,
|
|
3755
|
+
...rest
|
|
3756
|
+
} = props;
|
|
3757
|
+
return {
|
|
3758
|
+
layout: {
|
|
3759
|
+
p,
|
|
3760
|
+
px,
|
|
3761
|
+
py,
|
|
3762
|
+
pt,
|
|
3763
|
+
pr,
|
|
3764
|
+
pb,
|
|
3765
|
+
pl,
|
|
3766
|
+
m,
|
|
3767
|
+
mx,
|
|
3768
|
+
my,
|
|
3769
|
+
mt,
|
|
3770
|
+
mr,
|
|
3771
|
+
mb,
|
|
3772
|
+
ml,
|
|
3773
|
+
display,
|
|
3774
|
+
width,
|
|
3775
|
+
height,
|
|
3776
|
+
minWidth,
|
|
3777
|
+
maxWidth,
|
|
3778
|
+
minHeight,
|
|
3779
|
+
maxHeight,
|
|
3780
|
+
position,
|
|
3781
|
+
inset,
|
|
3782
|
+
overflow,
|
|
3783
|
+
flexBasis,
|
|
3784
|
+
flexGrow,
|
|
3785
|
+
flexShrink,
|
|
3786
|
+
gridColumn,
|
|
3787
|
+
gridRow,
|
|
3788
|
+
gridArea
|
|
3789
|
+
},
|
|
3790
|
+
rest
|
|
3791
|
+
};
|
|
3792
|
+
}
|
|
3793
|
+
__name(splitLayoutProps, "splitLayoutProps");
|
|
3794
|
+
var FLEX_ALIGN = {
|
|
3795
|
+
start: "flex-start",
|
|
3796
|
+
center: "center",
|
|
3797
|
+
end: "flex-end",
|
|
3798
|
+
baseline: "baseline",
|
|
3799
|
+
stretch: "stretch"
|
|
3800
|
+
};
|
|
3801
|
+
var FLEX_JUSTIFY = {
|
|
3802
|
+
start: "flex-start",
|
|
3803
|
+
center: "center",
|
|
3804
|
+
end: "flex-end",
|
|
3805
|
+
between: "space-between",
|
|
3806
|
+
around: "space-around",
|
|
3807
|
+
evenly: "space-evenly"
|
|
3808
|
+
};
|
|
3809
|
+
var Box = forwardRef26(/* @__PURE__ */ __name(function Box2({ as: Tag2 = "div", asChild, className, style, children, ...props }, ref) {
|
|
3810
|
+
const { layout, rest } = splitLayoutProps(props);
|
|
3811
|
+
const Comp = asChild ? Slot2 : Tag2;
|
|
3812
|
+
return /* @__PURE__ */ jsx40(Comp, { ref, className, style: { ...resolveLayoutStyle(layout), ...style }, ...rest, children });
|
|
3813
|
+
}, "Box"));
|
|
3814
|
+
|
|
3815
|
+
// src/components/Flex/index.tsx
|
|
3816
|
+
import { forwardRef as forwardRef27 } from "react";
|
|
3817
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3818
|
+
var Flex = forwardRef27(/* @__PURE__ */ __name(function Flex2({ inline, direction, align, justify, wrap, gap, gapX, gapY, style, ...boxProps }, ref) {
|
|
3819
|
+
const flexStyle = {
|
|
3820
|
+
display: inline ? "inline-flex" : "flex",
|
|
3821
|
+
flexDirection: direction,
|
|
3822
|
+
alignItems: align ? FLEX_ALIGN[align] : void 0,
|
|
3823
|
+
justifyContent: justify ? FLEX_JUSTIFY[justify] : void 0,
|
|
3824
|
+
flexWrap: wrap,
|
|
3825
|
+
gap: gapTok(gap),
|
|
3826
|
+
columnGap: gapTok(gapX),
|
|
3827
|
+
rowGap: gapTok(gapY)
|
|
3828
|
+
};
|
|
3829
|
+
return /* @__PURE__ */ jsx41(Box, { ref, style: { ...flexStyle, ...style }, ...boxProps });
|
|
3830
|
+
}, "Flex"));
|
|
3831
|
+
|
|
3832
|
+
// src/components/Grid/index.tsx
|
|
3833
|
+
import { forwardRef as forwardRef28 } from "react";
|
|
3834
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3835
|
+
var GRID_JUSTIFY = {
|
|
3836
|
+
start: "start",
|
|
3837
|
+
center: "center",
|
|
3838
|
+
end: "end",
|
|
3839
|
+
between: "space-between"
|
|
3840
|
+
};
|
|
3841
|
+
var GRID_FLOW = {
|
|
3842
|
+
row: "row",
|
|
3843
|
+
column: "column",
|
|
3844
|
+
dense: "dense",
|
|
3845
|
+
"row-dense": "row dense",
|
|
3846
|
+
"column-dense": "column dense"
|
|
3847
|
+
};
|
|
3848
|
+
var track = /* @__PURE__ */ __name((v) => {
|
|
3849
|
+
if (v === void 0) return void 0;
|
|
3850
|
+
return typeof v === "number" ? `repeat(${v}, minmax(0, 1fr))` : v;
|
|
3851
|
+
}, "track");
|
|
3852
|
+
var Grid = forwardRef28(/* @__PURE__ */ __name(function Grid2({ inline, columns, rows, flow, align, justify, gap, gapX, gapY, style, ...boxProps }, ref) {
|
|
3853
|
+
const gridStyle = {
|
|
3854
|
+
display: inline ? "inline-grid" : "grid",
|
|
3855
|
+
gridTemplateColumns: track(columns),
|
|
3856
|
+
gridTemplateRows: track(rows),
|
|
3857
|
+
gridAutoFlow: flow ? GRID_FLOW[flow] : void 0,
|
|
3858
|
+
alignItems: align,
|
|
3859
|
+
justifyContent: justify ? GRID_JUSTIFY[justify] : void 0,
|
|
3860
|
+
gap: gapTok(gap),
|
|
3861
|
+
columnGap: gapTok(gapX),
|
|
3862
|
+
rowGap: gapTok(gapY)
|
|
3863
|
+
};
|
|
3864
|
+
return /* @__PURE__ */ jsx42(Box, { ref, style: { ...gridStyle, ...style }, ...boxProps });
|
|
3865
|
+
}, "Grid"));
|
|
3866
|
+
|
|
3867
|
+
// src/components/Container/index.tsx
|
|
3868
|
+
import { forwardRef as forwardRef29 } from "react";
|
|
3869
|
+
import { breakpointOrigin as breakpointOrigin2 } from "@liner-fe/design-token";
|
|
3870
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
3871
|
+
var SIZE_MAX_WIDTH = {
|
|
3872
|
+
s: breakpointOrigin2.s,
|
|
3873
|
+
// 600px
|
|
3874
|
+
m: breakpointOrigin2.m,
|
|
3875
|
+
// 1024px
|
|
3876
|
+
l: breakpointOrigin2.l,
|
|
3877
|
+
// 1366px
|
|
3878
|
+
xl: breakpointOrigin2.xl
|
|
3879
|
+
// 1536px
|
|
3880
|
+
};
|
|
3881
|
+
var Container = forwardRef29(/* @__PURE__ */ __name(function Container2({ size = "l", style, maxWidth, ...boxProps }, ref) {
|
|
3882
|
+
const containerStyle = {
|
|
3883
|
+
width: "100%",
|
|
3884
|
+
marginInline: "auto"
|
|
3885
|
+
};
|
|
3886
|
+
return /* @__PURE__ */ jsx43(
|
|
3887
|
+
Box,
|
|
3888
|
+
{
|
|
3889
|
+
ref,
|
|
3890
|
+
maxWidth: maxWidth ?? SIZE_MAX_WIDTH[size],
|
|
3891
|
+
style: { ...containerStyle, ...style },
|
|
3892
|
+
...boxProps
|
|
3893
|
+
}
|
|
3894
|
+
);
|
|
3895
|
+
}, "Container"));
|
|
3896
|
+
|
|
3897
|
+
// src/components/Section/index.tsx
|
|
3898
|
+
import { forwardRef as forwardRef30 } from "react";
|
|
3899
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
3900
|
+
var Section = forwardRef30(/* @__PURE__ */ __name(function Section2({ size = "section-400", py, as = "section", ...boxProps }, ref) {
|
|
3901
|
+
return /* @__PURE__ */ jsx44(Box, { ref, as, py: py ?? size, ...boxProps });
|
|
3902
|
+
}, "Section"));
|
|
3617
3903
|
export {
|
|
3618
3904
|
AlertDialog,
|
|
3619
3905
|
Avatar,
|
|
3620
3906
|
Badge,
|
|
3621
3907
|
BottomSheet,
|
|
3908
|
+
Box,
|
|
3622
3909
|
Button,
|
|
3623
3910
|
Caption,
|
|
3624
3911
|
Checkbox,
|
|
3625
3912
|
CoachMark,
|
|
3626
3913
|
CompactCoachMark,
|
|
3914
|
+
Container,
|
|
3627
3915
|
DEFAULT_LEVEL_OPTIONS,
|
|
3628
3916
|
DEFAULT_SIZE_OPTIONS,
|
|
3629
3917
|
DefaultButton,
|
|
3630
3918
|
Dialog,
|
|
3631
3919
|
Display,
|
|
3920
|
+
FLEX_ALIGN,
|
|
3921
|
+
FLEX_JUSTIFY,
|
|
3922
|
+
Flex,
|
|
3923
|
+
Grid,
|
|
3632
3924
|
Heading,
|
|
3633
3925
|
ICON_LEVEL_OPTIONS,
|
|
3634
3926
|
ICON_SIZE_OPTIONS,
|
|
@@ -3648,6 +3940,7 @@ export {
|
|
|
3648
3940
|
RATIO,
|
|
3649
3941
|
Radio,
|
|
3650
3942
|
Ratio,
|
|
3943
|
+
Section,
|
|
3651
3944
|
Select,
|
|
3652
3945
|
TEXT_LEVEL_OPTIONS,
|
|
3653
3946
|
TEXT_SIZE_OPTIONS,
|
|
@@ -3661,6 +3954,9 @@ export {
|
|
|
3661
3954
|
arrayToStyleObject,
|
|
3662
3955
|
isEmptyObject,
|
|
3663
3956
|
objectToArray,
|
|
3957
|
+
gapTok as resolveGapToken,
|
|
3958
|
+
resolveLayoutStyle,
|
|
3664
3959
|
rootMediaStyle,
|
|
3960
|
+
splitLayoutProps,
|
|
3665
3961
|
toast
|
|
3666
3962
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liner-fe/prism",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"dependencies": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"vaul": "1.1.2",
|
|
23
23
|
"@liner-fe/design-token": "^3.0.5",
|
|
24
24
|
"@liner-fe/design-token-primitive": "^0.2.50",
|
|
25
|
-
"@liner-fe/icon": "^2.0.
|
|
25
|
+
"@liner-fe/icon": "^2.0.24",
|
|
26
26
|
"@liner-fe/illust": "^1.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|